/* Complaint portal UI — modern dashboard look */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --navy: #2f2b5a;
    --navy-2: #4b46c6;
    --accent: #6c63ff;
    --bg: #f3f4fb;
    --card: #ffffff;
    --text: #1c1b33;
    --muted: #7b8199;
    --line: #eceef6;
    --ok: #1aae6f;
    --warn: #f08a4b;
    --info: #4c7dff;
    --shadow: 0 12px 32px rgba(47, 43, 90, 0.07);
    --shadow-sm: 0 6px 18px rgba(47, 43, 90, 0.05);
    --radius: 22px;
}

body.portal {
    background: var(--bg) !important;
    background-image: none !important;
    color: var(--text);
    font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html {
    width: 100%;
    max-width: none;
}

body.portal a {
    font-size: inherit;
}

#container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 18px 24px !important;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-areas:
        "header header"
        "side main"
        "footer footer";
    column-gap: 18px;
    row-gap: 16px;
    align-items: stretch;
    justify-items: stretch;
}

#header {
    grid-area: header;
    height: auto !important;
    margin: 0 -18px 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    justify-self: stretch;
    background: transparent !important;
}

.portal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    border-radius: 0;
    padding: 14px 28px;
    box-shadow: 0 10px 30px rgba(47, 43, 90, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.portal-header img#logo {
    width: 48px !important;
    height: 48px !important;
    background: #fff;
    border-radius: 14px;
    padding: 4px;
    object-fit: contain;
    box-shadow: var(--shadow-sm);
}

.portal-header h1,
.portal-header h1 a {
    color: var(--text) !important;
    font-size: 18px !important;
    letter-spacing: -0.02em !important;
    text-shadow: none !important;
    float: none !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    padding: 0 !important;
}

.portal-header h1 small {
    display: block;
    font-size: 12px !important;
    font-weight: 500;
    color: var(--muted) !important;
    opacity: 1;
    letter-spacing: .2px;
}

.portal-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-user {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    text-align: right;
    background: #eef0ff;
    border-radius: 999px;
    padding: 8px 14px;
}

.nav-toggle {
    display: inline-block;
    border: 0;
    background: #eef0ff;
    color: var(--navy);
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

body.nav-collapsed #container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "header"
        "main"
        "footer";
}
body.nav-collapsed .sidebar {
    display: none;
}

#nav {
    display: none !important;
}

#body {
    grid-area: main;
    padding: 0 !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: none !important;
    order: unset !important;
    justify-self: stretch;
    background: none !important;
}

#content {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.sidebar {
    grid-area: side;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-height: calc(100vh - 150px) !important;
    margin: 0 !important;
    padding: 16px 12px !important;
    background: var(--card);
    border: 0 !important;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    flex: none !important;
    order: unset !important;
    justify-self: stretch;
}

body.portal .clear {
    display: none;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 4px;
}

.sidebar li {
    margin: 0 0 6px;
}

.sidebar a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #5c6178 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px !important;
}

.sidebar a:hover {
    background: #f3f4ff;
    color: var(--navy) !important;
}

.sidebar a.active {
    background: #ecebff;
    color: var(--accent) !important;
}

.box,
.main {
    background: var(--card);
    border: 0 !important;
    border-radius: var(--radius);
    padding: 22px 24px;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    box-shadow: var(--shadow);
}

.box h4,
.boxhead {
    background: none !important;
    color: var(--text) !important;
    font-size: 22px !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    padding: 0 !important;
}

.portal-lead {
    color: var(--muted);
    margin-bottom: 18px;
}
.cutoff-note {
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 14px;
}
.portal-lead + .cutoff-note {
    margin-top: -10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 12px 0 20px;
}

.stat-card {
    display: block;
    text-decoration: none !important;
    background: #fff;
    border: 0 !important;
    border-radius: 20px;
    padding: 18px 56px 16px 18px;
    color: inherit !important;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.stat-card:before {
    display: none;
}
.stat-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border-radius: 14px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 0;
    line-height: 0;
}
.stat-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
.stat-card strong + span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-top: 6px;
}
.stat-pending .stat-icon { background: #d9e6ff; color: #3b6dff; }
.stat-inprogress .stat-icon { background: #ffe0c7; color: #e07830; }
.stat-completed .stat-icon { background: #c9f0dc; color: #169a5c; }
.stat-canceled .stat-icon { background: #e4e6ee; color: #6b7280; }
.stat-all .stat-icon { background: #ddd8ff; color: #6c63ff; }
.stat-pending { background: linear-gradient(180deg, #eef4ff 0%, #fff 70%); }
.stat-inprogress { background: linear-gradient(180deg, #fff3e8 0%, #fff 70%); }
.stat-completed { background: linear-gradient(180deg, #e9f9f1 0%, #fff 70%); }
.stat-canceled { background: linear-gradient(180deg, #f3f4f7 0%, #fff 70%); }
.stat-all { background: linear-gradient(180deg, #f0eeff 0%, #fff 70%); }

.stat-card strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1.1;
}

.stat-pending strong { color: #3b6dff; }
.stat-inprogress strong { color: #e07830; }
.stat-completed strong { color: #169a5c; }
.stat-canceled strong { color: #6b7280; }
.stat-all strong { color: var(--accent); }

.stat-card span:not(.stat-icon) {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-top: 6px;
}

.chart-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
    margin: 8px 0 22px;
}
.chart-card {
    border: 0;
    border-radius: 20px;
    padding: 18px;
    background: #f7f8fd;
    min-width: 0;
    box-shadow: none;
}
.chart-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.chart-card canvas {
    width: 100%;
    max-width: 100%;
    display: block;
}
.chart-wrap {
    position: relative;
}
.chart-tooltip {
    display: none;
    position: absolute;
    z-index: 6;
    pointer-events: none;
    background: #1c1b33;
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(28, 27, 51, 0.18);
    min-width: 128px;
    max-width: 240px;
    white-space: nowrap;
}
.chart-tooltip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.chart-tooltip div {
    color: #e8eaf3;
}
.chart-tooltip i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}
.chart-caption {
    font-size: 12px;
    color: var(--muted);
    margin: 8px 0 0;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.tabs a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #eef0f7;
    color: #5c6178 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px !important;
    border: 0;
}
.tabs a.tab-pending { background: #e8f0ff; color: #3b6dff !important; }
.tabs a.tab-inprogress { background: #fff1e6; color: #d56a20 !important; }
.tabs a.tab-completed { background: #e7f8ef; color: #169a5c !important; }
.tabs a.tab-canceled { background: #eef0f4; color: #6b7280 !important; }
.tabs a.tab-all { background: #ecebff; color: var(--accent) !important; }
.tabs a.tab-pending.active { background: #3b6dff; color: #fff !important; }
.tabs a.tab-inprogress.active { background: #e07830; color: #fff !important; }
.tabs a.tab-completed.active { background: #169a5c; color: #fff !important; }
.tabs a.tab-canceled.active { background: #6b7280; color: #fff !important; }
.tabs a.tab-all.active { background: var(--accent); color: #fff !important; }

.filters {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(140px, 1.4fr) 140px 140px auto;
    gap: 12px;
    margin: 0 0 16px;
    align-items: end;
}
.filters .filter-actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}
.filters.custom-range {
    grid-template-columns: 170px 170px auto;
    max-width: 540px;
}
.filters.list-filters {
    grid-template-columns: minmax(180px, 2fr) 140px 140px auto;
}

.filters label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.filters input,
.filters select,
.tbox35,
.tbox40,
input[type="text"],
input[type="password"],
input[type="date"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 0;
    border-radius: 14px;
    padding: 11px 14px;
    font-size: 14px;
    background: #f4f5fb;
    box-shadow: inset 0 0 0 1px #eceef6;
}

.filters input:focus,
.filters select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: 0;
    box-shadow: inset 0 0 0 2px #c9c6ff;
    background: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.attachment-preview {
    margin-top: 8px;
}
.attachment-preview img {
    display: block;
    max-width: 100%;
    max-height: 420px;
    border-radius: 16px;
    border: 0;
    box-shadow: var(--shadow-sm);
}

.btn,
.submitbutton,
.formbutton,
input[type="submit"],
button.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    border: 0;
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(108, 99, 255, 0.25);
}

.btn:hover,
input[type="submit"]:hover {
    background: #5750e6;
}

.btn-secondary {
    background: #edeff7;
    color: var(--navy) !important;
    box-shadow: none;
}
.btn-secondary:hover {
    background: #e2e5f2;
}

.btn-danger {
    background: #ff6b6b;
    box-shadow: 0 8px 18px rgba(255, 107, 107, 0.22);
}
.btn-danger:hover {
    background: #ee5a5a;
}

.inline-assign {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.inline-assign select {
    min-width: 180px;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.row-actions .btn {
    padding: 7px 12px;
    font-size: 12px;
    box-shadow: none;
}

.portal-table tr.is-disabled td {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    min-width: 0;
}

.portal-table {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    background: transparent;
    table-layout: auto;
}

.portal-table th {
    background: transparent !important;
    color: var(--muted) !important;
    text-shadow: none !important;
    text-transform: uppercase !important;
    letter-spacing: .04em;
    font-size: 11px !important;
    font-weight: 700;
    padding: 8px 14px !important;
    text-align: left;
}

.portal-table td {
    padding: 14px !important;
    border-bottom: 0 !important;
    font-size: 14px !important;
    vertical-align: middle;
    background: #f7f8fd !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.portal-table.detail-table {
    border-spacing: 0 8px;
}
.portal-table.detail-table th {
    width: 38%;
    max-width: 220px;
    vertical-align: top;
    background: #f7f8fd !important;
    color: var(--muted) !important;
    text-transform: none !important;
    letter-spacing: 0;
    font-size: 13px !important;
    font-weight: 700;
    border-radius: 16px 0 0 16px;
}
.portal-table.detail-table td {
    border-radius: 0 16px 16px 0;
    vertical-align: top;
}

.portal-table tbody tr td:first-child {
    border-radius: 16px 0 0 16px;
}
.portal-table tbody tr td:last-child {
    border-radius: 0 16px 16px 0;
}

.portal-table tr:nth-child(even) td {
    background: #f7f8fd !important;
}

.portal-table a {
    color: var(--accent) !important;
    font-weight: 600;
    text-decoration: none;
}

.link-btn {
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 13px !important;
}

.cell-stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.cell-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}
.status-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.status-stack .badge,
.status-stack .link-btn {
    white-space: nowrap;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef0ff;
    color: var(--accent) !important;
}
.icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}
.portal-table td.col-print {
    width: 52px;
    text-align: center;
}
.cell-when {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
    white-space: nowrap;
}
.portal-table.compact-table th {
    padding: 8px 10px !important;
}
.portal-table.compact-table td {
    padding: 10px !important;
    font-size: 13px !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: inherit !important;
    box-sizing: border-box;
}
.status-note {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.badge-info { background: #e8f0ff; color: #3b6dff !important; }
.badge-warn { background: #fff1e6; color: #d56a20 !important; }
.badge-success { background: #e7f8ef; color: #169a5c !important; }
.badge-muted { background: #eef0f4; color: #6b7280 !important; }

.pager {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.pager-top {
    margin-top: 4px;
    margin-bottom: 10px;
}

.pager a, .pager span {
    padding: 8px 12px;
    border-radius: 12px;
    border: 0;
    background: #eef0f7;
    text-decoration: none;
    color: var(--navy) !important;
    font-weight: 600;
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    border: 0;
}

.alert-ok { background: #e7f8ef; color: #146c43; }
.alert-err { background: #ffe8e8; color: #b42318; }

.login-card,
.password-form {
    max-width: 460px;
}

.auth-links {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.auth-links a {
    font-weight: 700 !important;
    font-size: 14px !important;
    color: var(--accent) !important;
}

body.portal-guest #container {
    grid-template-columns: 1fr;
    grid-template-areas:
        "header"
        "main"
        "footer";
}
body.portal-guest .nav-toggle,
body.portal-guest .sidebar {
    display: none !important;
}
body.portal-guest #body {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 28px 0 0 !important;
}
body.portal-guest #content {
    width: 100%;
    max-width: 480px;
}
body.portal-guest .login-card {
    max-width: none;
}

.suffix {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.email-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

#footer {
    grid-area: footer;
    background: transparent !important;
    margin: 0 !important;
    padding: 8px 0 12px !important;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    order: unset !important;
}

#footer p, #footer a {
    color: var(--muted) !important;
    text-align: center !important;
    text-decoration: none;
}

body.portal #footer-links p,
body.portal .footer-content {
    width: auto !important;
    max-width: none !important;
    margin: 0 auto !important;
}

body.portal #footer-links {
    background: transparent !important;
}

.citsc-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.citsc-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef0f7;
    color: #5c6178 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px !important;
}
.citsc-links a:hover,
.citsc-links a.active {
    background: #ecebff;
    color: var(--accent) !important;
}

.queue-note {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}
.queue-banner {
    background: #eef2ff;
    border: 0;
    border-radius: 18px;
    padding: 16px 18px;
    margin: 0 0 16px;
}
.queue-pos {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}
.queue-pos span {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}
.queue-banner p {
    margin: 8px 0 0;
    color: var(--text);
}

@media (max-width: 860px) {
    #container {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "header"
            "side"
            "main"
            "footer";
        padding: 0 12px 16px !important;
    }
    #header { margin: 0 -12px 0 !important; }
    .sidebar {
        display: none;
        min-height: 0 !important;
    }
    .sidebar.open,
    body.nav-collapsed .sidebar.open { display: block; }
    .filters {
        grid-template-columns: 1fr 1fr;
    }
    .filters .filter-actions { grid-column: 1 / -1; }
    .form-grid { grid-template-columns: 1fr; }
    .chart-grid { grid-template-columns: 1fr; }
    .portal-header h1 a { font-size: 16px !important; }
    .portal-user { display: none; }
    .box,
    .main {
        padding: 16px 12px;
        overflow-x: hidden;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .table-wrap {
        overflow: visible;
    }
    .portal-table { border-spacing: 0; }
    .portal-table thead { display: none; }
    .portal-table,
    .portal-table tbody {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    .portal-table tr {
        display: block;
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
        background: #f7f8fd;
        border-radius: 16px;
        margin-bottom: 10px;
        padding: 8px 10px;
        overflow: hidden;
    }
    .portal-table tbody tr td:first-child,
    .portal-table tbody tr td:last-child,
    .portal-table.detail-table th,
    .portal-table.detail-table td {
        border-radius: 0;
    }
    .portal-table td {
        display: grid;
        grid-template-columns: minmax(84px, 36%) minmax(0, 1fr);
        align-items: start;
        gap: 8px 10px;
        width: auto !important;
        max-width: 100%;
        box-sizing: border-box;
        border: 0 !important;
        background: transparent !important;
        padding: 8px 2px !important;
        min-width: 0;
    }
    .portal-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted);
        padding-right: 0;
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .portal-table td > * {
        grid-column: 2;
        min-width: 0;
        max-width: 100%;
    }
    .status-stack .badge,
    .status-stack .link-btn {
        white-space: nowrap;
    }
    .cell-now,
    .cell-when {
        white-space: normal;
    }
    .portal-table.detail-table th,
    .portal-table.detail-table td {
        display: block;
        grid-template-columns: none;
        width: 100% !important;
        max-width: 100%;
        padding: 4px 2px !important;
    }
    .portal-table.detail-table th {
        padding-top: 8px !important;
        padding-bottom: 0 !important;
    }
    .portal-table.detail-table td:before {
        display: none;
    }
    .portal-table.detail-table tr {
        padding: 8px 12px 10px;
    }
}

.portal-modal {
    display: none;
    position: fixed;
    z-index: 80;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.portal-modal.is-open {
    display: flex;
}
.portal-modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(20, 22, 48, 0.48);
}
.portal-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 22px 22px 18px;
    box-shadow: 0 18px 48px rgba(20, 24, 60, 0.28);
}
.portal-modal-card h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--navy);
}
.portal-modal-card .field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
}
.portal-modal-card input[type="text"],
.portal-modal-card select {
    width: 100%;
    box-sizing: border-box;
}
.portal-modal-actions {
    margin: 16px 0 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
body.modal-open {
    overflow: hidden;
}
