:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #071739;
    --muted: #60708f;
    --muted-2: #8b9ab5;
    --line: #dbe5f2;
    --line-soft: #edf2f8;
    --navy: #061a36;
    --navy-2: #082756;
    --navy-3: #0e3773;
    --blue: #1457ff;
    --blue-2: #0997ff;
    --green: #12b981;
    --red: #ef3e4a;
    --amber: #f59f22;
    --purple: #7a5cff;
    --shadow: 0 18px 50px rgba(7, 23, 57, .08);
    --shadow-soft: 0 8px 24px rgba(7, 23, 57, .06);
    --radius: 8px;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(20, 87, 255, .10), transparent 34%),
        linear-gradient(180deg, #fbfdff 0%, var(--bg) 54%, #edf4ff 100%);
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: #0b3fc4;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

img,
svg {
    display: block;
}

.app-shell {
    min-height: 100vh;
}

.app-layout {
    min-height: 100vh;
    display: flex;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 28px 22px 20px;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(8, 39, 86, .94), rgba(3, 18, 42, .98)),
        radial-gradient(circle at 12% 0%, rgba(9, 151, 255, .30), transparent 30%);
    border-right: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 20px 0 60px rgba(4, 18, 38, .14);
    z-index: 40;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    margin-bottom: 34px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 900;
    font-size: 23px;
    line-height: 1;
    letter-spacing: 0;
    background:
        linear-gradient(145deg, #12c9ff 0%, #1768ff 52%, #5847ff 100%);
    box-shadow: 0 18px 36px rgba(9, 151, 255, .30);
}

.brand-text {
    font-size: 18px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.nav-section-label {
    margin: 0 0 12px 8px;
    color: rgba(226, 237, 255, .62);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.side-nav {
    display: grid;
    gap: 8px;
}

.nav-link {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    min-height: 46px;
    padding: 7px 10px;
    color: rgba(255, 255, 255, .88);
    border-radius: 8px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(20, 87, 255, .95), rgba(70, 104, 255, .95));
    box-shadow: 0 12px 24px rgba(20, 87, 255, .25);
}

.nav-link:hover {
    transform: translateX(2px);
}

.nav-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 7px;
    color: currentColor;
    font-size: 12px;
    font-weight: 900;
}

.sidebar-panel {
    margin-top: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.sidebar-panel-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-weight: 800;
}

.live-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 999px;
    background: #2fe179;
    box-shadow: 0 0 0 5px rgba(47, 225, 121, .14);
}

.sidebar-panel p {
    margin: 0 0 14px;
    color: rgba(226, 237, 255, .72);
    font-size: 12px;
    line-height: 1.45;
}

.sidebar-panel .ghost-button {
    width: 100%;
    justify-content: center;
    color: #ffffff;
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .045);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px -4px 0;
    padding: 14px 4px 2px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(145deg, #16d0ff, #1457ff);
    box-shadow: 0 12px 24px rgba(20, 87, 255, .24);
}

.user-copy strong,
.user-copy span {
    display: block;
}

.user-copy strong {
    font-size: 14px;
    line-height: 1.2;
}

.user-copy span {
    color: rgba(226, 237, 255, .72);
    font-size: 12px;
}

.app-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width);
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.icon-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.hamburger {
    width: 18px;
    height: 12px;
    display: grid;
    gap: 4px;
}

.hamburger span {
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.global-search {
    flex: 0 1 430px;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
    box-shadow: var(--shadow-soft);
}

.global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0;
    margin: 0;
    color: var(--text);
    background: transparent;
}

.search-key {
    color: var(--muted-2);
    font-size: 12px;
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.user-menu .avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.user-menu a {
    font-size: 12px;
    font-weight: 800;
}

.content-wrap {
    width: min(100%, 1370px);
    margin: 0 auto;
    padding: 28px 32px 34px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.page-header h1,
.page-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: 0;
}

.page-kicker,
.page-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.page-actions,
.action-row,
.list-top-actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.card,
.panel,
.table-card,
.toolbar {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.card,
.panel {
    padding: 20px;
    margin-bottom: 16px;
}

.card h2,
.card h3,
.panel h2,
.panel h3 {
    margin-top: 0;
}

.table-card {
    overflow: hidden;
    margin-bottom: 18px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.stat-card {
    position: relative;
    min-height: 136px;
    padding: 22px;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -18px -34px auto;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(20, 87, 255, .08);
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.stat,
.stat-value {
    margin-top: 10px;
    color: var(--text);
    font-size: 27px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
}

.stat-meta {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.stat-meta.positive {
    color: #078a57;
}

.stat-meta.negative {
    color: #ce2633;
}

.stat-icon {
    position: absolute;
    right: 18px;
    top: 20px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    background: #eaf2ff;
}

.stat-icon.green {
    color: #08875c;
    background: #dff8ee;
}

.stat-icon.red {
    color: #d82835;
    background: #ffe4e8;
}

.stat-icon.amber {
    color: #b76b02;
    background: #fff0d9;
}

.stat-icon.purple {
    color: #6c40e8;
    background: #f0eaff;
}

.button,
.ghost-button,
.list-top-actions a,
.row-actions a,
.card > p a,
.panel > p a,
button[type="submit"] {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #1457ff, #326cff);
    box-shadow: 0 12px 24px rgba(20, 87, 255, .18);
    cursor: pointer;
}

.button:hover,
.list-top-actions a:hover,
.row-actions a:hover,
.card > p a:hover,
.panel > p a:hover,
button[type="submit"]:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.button.secondary,
.ghost-button,
.row-actions a,
.card > p a,
.panel > p a {
    color: var(--text);
    border-color: var(--line);
    background: #ffffff;
    box-shadow: none;
}

.button.secondary:hover,
.ghost-button:hover,
.row-actions a:hover,
.card > p a:hover,
.panel > p a:hover {
    color: var(--blue);
    background: #f7fbff;
}

.button.danger,
.row-actions a.danger-action {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff1f2;
}

.button.warning,
.row-actions a.risk-action {
    color: #a45a00;
    border-color: #fed7aa;
    background: #fff7ed;
}

form .grid {
    align-items: end;
}

label {
    display: block;
    margin: 0 0 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(20, 87, 255, .65);
    box-shadow: 0 0 0 4px rgba(20, 87, 255, .12);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: 0;
    padding: 0;
}

.date-widget-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.date-widget-wrapper input[type="text"] {
    flex: 1;
}

.date-widget-button {
    position: relative;
    width: 48px;
    min-width: 48px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #1457ff, #326cff);
    box-shadow: 0 12px 24px rgba(20, 87, 255, .18);
    cursor: pointer;
    overflow: hidden;
}

.date-widget-native-picker {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.date-invalid {
    border: 2px solid #dc2626 !important;
    background: #fee2e2 !important;
}

.table-search-wrap {
    padding: 14px;
    border-bottom: 1px solid var(--line-soft);
    background: #ffffff;
}

.table-search-field {
    position: relative;
}

.table-search-field::before,
.global-search::before {
    content: "/";
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, #1457ff, #0997ff);
}

.table-search-field::before {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
}

.table-search-input {
    padding-left: 46px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.card .table-scroll,
.panel .table-scroll {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
}

.card .table-scroll table,
.panel .table-scroll table {
    min-width: 640px;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #10234b;
    background: #ffffff;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
}

th {
    color: #10234b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    background: #fbfdff;
    white-space: nowrap;
}

td {
    color: #213760;
}

tbody tr:hover {
    background: #f8fbff;
}

.cell-main {
    color: var(--text);
    font-weight: 900;
}

.cell-sub {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.money {
    color: var(--text);
    font-weight: 900;
    white-space: nowrap;
}

.money.due {
    color: #ce2633;
}

.money.credit {
    color: #008d58;
}

.status-pill,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 7px;
    color: #08744f;
    font-size: 12px;
    font-weight: 900;
    background: #dff8ee;
    white-space: nowrap;
}

.status-vacant,
.status-unpaid,
.status-overdue,
.status-cancelled,
.badge-danger {
    color: #b91c1c;
    background: #fee2e2;
}

.status-partial,
.status-moved_out,
.badge-warning {
    color: #a45a00;
    background: #fff0d9;
}

.status-paid,
.status-active,
.status-occupied,
.status-received,
.badge-success {
    color: #08744f;
    background: #dff8ee;
}

.status-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
    border-radius: 999px;
    background: #c9d4e5;
    vertical-align: middle;
}

.status-toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(7, 23, 57, .16);
}

.status-toggle.is-on {
    background: linear-gradient(135deg, #1457ff, #0997ff);
}

.status-toggle.is-on::after {
    left: 23px;
}

.flash {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #1e3a8a;
    background: #eaf2ff;
    font-weight: 700;
}

.flash.danger {
    color: #991b1b;
    border-color: #fecaca;
    background: #fee2e2;
}

.flash.success {
    color: #166534;
    border-color: #bbf7d0;
    background: #dcfce7;
}

.flash.warning {
    color: #92400e;
    border-color: #fde68a;
    background: #fef3c7;
}

.muted,
.muted-list-note {
    color: var(--muted);
}

.mini-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 14px;
}

.chart-card canvas {
    display: block;
    width: 100%;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.metric-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-form {
    width: 100%;
    margin: 0;
}

.full-span {
    grid-column: 1 / -1;
}

.tight-header {
    margin-bottom: 12px;
}

.narrow-card {
    max-width: 620px;
}

.metric-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.quick-list {
    display: grid;
    gap: 9px;
}

.quick-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    color: var(--text);
    background: #fbfdff;
}

.quick-item:hover {
    color: var(--blue);
    background: #f5f9ff;
}

.quick-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--blue);
    font-weight: 900;
    background: #eaf2ff;
}

.quick-item small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.manager-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.manager-action-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 112px;
    margin-bottom: 0;
    color: var(--text);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.manager-action-card:hover {
    color: var(--text);
    border-color: rgba(20, 87, 255, .34);
    box-shadow: 0 14px 34px rgba(7, 23, 57, .10);
    transform: translateY(-2px);
}

.manager-action-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--blue);
    font-weight: 900;
    background: #eaf2ff;
}

.manager-action-copy {
    min-width: 0;
}

.manager-action-copy strong,
.manager-action-copy small {
    display: block;
}

.manager-action-copy strong {
    color: var(--text);
    font-size: 17px;
    line-height: 1.25;
}

.manager-action-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.manager-action-arrow {
    color: var(--muted-2);
    font-weight: 900;
}

.mobile-list {
    display: none;
}

.mobile-list-search {
    display: none;
}

.mobile-card {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.mobile-card-title {
    color: #ffffff;
    font-weight: 900;
}

.mobile-card-sub {
    margin-top: 2px;
    color: rgba(226, 237, 255, .70);
    font-size: 12px;
}

.mobile-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.mobile-metrics span {
    display: block;
    color: rgba(226, 237, 255, .68);
    font-size: 11px;
}

.mobile-metrics strong {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 13px;
}

.mobile-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mobile-card-actions a {
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(20, 87, 255, .24);
}

.mobile-card .status-pill {
    min-height: 24px;
    padding: 4px 8px;
}

.empty-state {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.app-footer {
    margin: 0 auto 22px;
    padding: 0 32px;
    color: rgba(96, 112, 143, .86);
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

.app-footer strong {
    color: #334155;
}

body.login-page {
    min-height: 100vh;
    color: #ffffff;
    background:
        radial-gradient(circle at 16% 18%, rgba(9, 151, 255, .22), transparent 24%),
        linear-gradient(135deg, #041226 0%, #061a36 42%, #eef6ff 42%, #ffffff 100%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: 54px;
    padding: 42px 7vw;
    overflow: hidden;
}

.login-brand-panel {
    position: relative;
    z-index: 1;
}

.login-brand-panel .brand {
    margin-bottom: 52px;
}

.login-hero-title {
    max-width: 560px;
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(38px, 4.4vw, 62px);
    line-height: 1.04;
    letter-spacing: 0;
}

.login-hero-title span {
    color: #12c9ff;
}

.login-hero-copy {
    max-width: 500px;
    margin: 0 0 28px;
    color: rgba(226, 237, 255, .88);
    font-size: 18px;
    line-height: 1.7;
}

.login-features {
    display: grid;
    gap: 16px;
    max-width: 520px;
}

.login-feature {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 14px;
}

.login-feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    color: #dff6ff;
    background: rgba(20, 87, 255, .36);
}

.login-feature strong,
.login-feature span {
    display: block;
}

.login-feature strong {
    font-size: 16px;
}

.login-feature span {
    margin-top: 3px;
    color: rgba(226, 237, 255, .78);
    font-size: 14px;
}

.login-visual-card {
    position: absolute;
    left: 32%;
    bottom: 6%;
    width: min(440px, 48vw);
    height: 390px;
    opacity: .76;
    pointer-events: none;
}

.building {
    position: absolute;
    bottom: 0;
    width: 44%;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #16447f, #071d3d);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 30px 70px rgba(0, 0, 0, .24);
}

.building::before {
    content: "";
    position: absolute;
    inset: 18px 18px 24px;
    background:
        linear-gradient(90deg, rgba(255, 198, 94, .85) 0 18%, transparent 18% 33%, rgba(255, 198, 94, .72) 33% 51%, transparent 51% 66%, rgba(255, 198, 94, .82) 66% 84%, transparent 84%),
        linear-gradient(180deg, transparent 0 12%, rgba(255, 255, 255, .08) 12% 14%, transparent 14% 28%, rgba(255, 255, 255, .08) 28% 30%, transparent 30% 44%, rgba(255, 255, 255, .08) 44% 46%, transparent 46% 60%, rgba(255, 255, 255, .08) 60% 62%, transparent 62%);
    background-size: 100% 54px, 100% 100%;
}

.building.one {
    left: 0;
    height: 280px;
}

.building.two {
    left: 32%;
    width: 54%;
    height: 360px;
    background: linear-gradient(180deg, #1d5ba7, #082655);
}

.building.three {
    right: 0;
    width: 38%;
    height: 240px;
}

.login-stats {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 36px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    background: rgba(8, 39, 86, .72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
    backdrop-filter: blur(12px);
}

.login-stat {
    padding: 10px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .10);
}

.login-stat:last-child {
    border-right: 0;
}

.login-stat strong,
.login-stat span {
    display: block;
}

.login-stat strong {
    font-size: 24px;
}

.login-stat span {
    margin-top: 5px;
    color: rgba(226, 237, 255, .78);
    font-size: 13px;
}

.login-form-side {
    display: flex;
    justify-content: center;
}

.login-card {
    width: min(100%, 500px);
    padding: 46px 42px;
    border: 1px solid rgba(219, 229, 242, .92);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 90px rgba(15, 23, 42, .18);
    backdrop-filter: blur(18px);
}

.shield {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    border-radius: 8px;
    color: var(--blue);
    font-weight: 900;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    box-shadow: inset 0 1px 0 #ffffff;
}

.login-card h1 {
    margin: 0 0 10px;
    color: var(--text);
    text-align: center;
    font-size: 28px;
    letter-spacing: 0;
}

.login-card button[type="submit"] {
    width: 100%;
    height: 56px;
}

.login-subtitle {
    margin: 0 0 26px;
    color: var(--muted);
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    background: linear-gradient(135deg, #1457ff, #0997ff);
    pointer-events: none;
}

.input-wrap input {
    height: 54px;
    padding-left: 46px;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.help-link {
    color: var(--blue);
    font-weight: 800;
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    padding: 14px;
    border-radius: 8px;
    color: var(--muted);
    background: #f8fafc;
    font-size: 13px;
}

.secure-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--blue);
    font-weight: 900;
    background: #eff6ff;
}

.secure-note strong {
    display: block;
    margin-bottom: 2px;
    color: #334155;
    font-size: 14px;
}

.login-page-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 10;
    color: rgba(71, 85, 105, .88);
    text-align: center;
    font-size: 13px;
    line-height: 1.55;
    pointer-events: none;
}

.login-page-footer strong {
    color: #334155;
}

@media (max-width: 1100px) {
    :root {
        --sidebar-width: 246px;
    }

    .app-sidebar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .content-wrap,
    .app-topbar {
        padding-left: 22px;
        padding-right: 22px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    body {
        color: #ffffff;
        background:
            radial-gradient(circle at 80% 0%, rgba(9, 151, 255, .22), transparent 36%),
            linear-gradient(180deg, #051a38 0%, #062145 42%, #061a36 100%);
    }

    .app-layout {
        display: block;
    }

    .app-sidebar {
        display: none;
    }

    .app-main {
        margin-left: 0;
        padding-bottom: 84px;
    }

    .app-topbar {
        min-height: 76px;
        padding: 14px 16px;
        color: #ffffff;
        background: rgba(5, 26, 56, .72);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        backdrop-filter: blur(18px);
    }

    .global-search {
        display: none;
    }

    .user-menu {
        display: none;
    }

    .icon-button {
        color: #ffffff;
        border-color: rgba(255, 255, 255, .10);
        background: rgba(255, 255, 255, .08);
        box-shadow: none;
    }

    .content-wrap {
        padding: 20px 14px 26px;
    }

    .page-header {
        align-items: center;
        margin-bottom: 16px;
    }

    .page-header h1,
    .page-title {
        color: #ffffff;
        font-size: 24px;
    }

    .page-subtitle,
    .page-kicker {
        color: rgba(226, 237, 255, .72);
        font-size: 13px;
    }

    .card,
    .panel,
    .toolbar,
    .table-card {
        color: #ffffff;
        border-color: rgba(255, 255, 255, .08);
        background: rgba(255, 255, 255, .06);
        box-shadow: none;
    }

    .card h2,
    .card h3,
    .panel h2,
    .panel h3,
    .stat,
    .stat-value,
    .cell-main {
        color: #ffffff;
    }

    .muted,
    .muted-list-note,
    .stat-label,
    .stat-meta,
    .cell-sub {
        color: rgba(226, 237, 255, .70);
    }

    .manager-action-card,
    .manager-action-card:hover,
    .manager-action-copy strong {
        color: #ffffff;
    }

    .manager-action-copy small,
    .manager-action-arrow {
        color: rgba(226, 237, 255, .70);
    }

    .manager-action-icon {
        color: #ffffff;
        background: rgba(20, 87, 255, .42);
    }

    .stat-card {
        min-height: 116px;
        padding: 16px;
    }

    .stat {
        font-size: 22px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .toolbar {
        padding: 10px;
    }

    .desktop-table,
    .table-card.desktop-table {
        display: none;
    }

    .mobile-list {
        display: grid;
        gap: 10px;
    }

    .mobile-list-search {
        display: block;
        margin-bottom: 12px;
    }

    .table-card:not(.desktop-table) {
        overflow: auto;
    }

    .table-card:not(.desktop-table) table {
        min-width: 720px;
    }

    .table-search-wrap {
        padding: 10px 0 14px;
        border-bottom: 0;
        background: transparent;
    }

    .table-search-input,
    input,
    select,
    textarea {
        color: var(--text);
        background: #ffffff;
    }

    .mobile-tabbar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 10px;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        padding: 7px;
        border: 1px solid rgba(255, 255, 255, .10);
        border-radius: 8px;
        background: rgba(5, 26, 56, .94);
        box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
        backdrop-filter: blur(18px);
    }

    .mobile-tabbar a {
        display: grid;
        place-items: center;
        gap: 4px;
        min-height: 50px;
        color: rgba(226, 237, 255, .72);
        border-radius: 8px;
        font-size: 11px;
        font-weight: 700;
    }

    .mobile-tabbar a.is-active {
        color: #ffffff;
        background: rgba(20, 87, 255, .42);
    }

    .mobile-tabbar .nav-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .app-footer {
        display: none;
    }

    body.login-page {
        background:
            radial-gradient(circle at 50% 0%, rgba(9, 151, 255, .34), transparent 32%),
            linear-gradient(180deg, #041226 0%, #061a36 47%, #ffffff 47%, #ffffff 100%);
    }

    .login-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        padding: 26px 18px 32px;
        align-items: start;
    }

    .login-brand-panel .brand {
        margin-bottom: 30px;
    }

    .login-hero-title {
        max-width: 380px;
        margin-bottom: 14px;
        font-size: 36px;
    }

    .login-hero-copy {
        max-width: 360px;
        margin-bottom: 20px;
        font-size: 15px;
        line-height: 1.6;
    }

    .login-features,
    .login-stats,
    .login-visual-card {
        display: none;
    }

    .login-form-side {
        justify-content: stretch;
    }

    .login-card {
        width: 100%;
        padding: 34px 22px 26px;
        border-radius: 8px;
    }

    .login-card h1 {
        font-size: 22px;
    }

    .form-row {
        font-size: 13px;
    }

    .login-page-footer {
        position: static;
        margin: 10px auto 18px;
        padding: 0 18px;
    }
}

@media (min-width: 821px) {
    .mobile-tabbar {
        display: none;
    }
}

@media (max-width: 560px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        display: grid;
        gap: 12px;
    }

    .page-actions,
    .action-row {
        width: 100%;
    }

    .page-actions .button,
    .action-row .button,
    .list-top-actions a {
        width: 100%;
    }

    .mobile-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .login-card {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ASCO_NOTIFICATION_BELL_PHASE2 */
.notification-bell {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.notification-bell:hover {
    color: var(--blue);
    border-color: rgba(20, 87, 255, .32);
    background: #f8fbff;
}

.bell-icon {
    font-size: 18px;
    line-height: 1;
}

.notification-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--red);
    box-shadow: 0 8px 16px rgba(239, 62, 74, .25);
}

.notification-list {
    display: grid;
    gap: 10px;
}

.notification-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.notification-item.is-unread {
    border-color: rgba(20, 87, 255, .26);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: var(--shadow-soft);
}

.notification-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 999px;
    background: #cbd5e1;
}

.notification-item.is-unread .notification-dot {
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(20, 87, 255, .10);
}

.notification-copy h4 {
    margin: 0;
    font-size: 15px;
}

.notification-copy p {
    margin: 6px 0 8px;
    color: var(--muted);
    line-height: 1.45;
}

.notification-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.notification-type {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    color: #0f3f8f;
    font-size: 11px;
    font-weight: 900;
    border-radius: 999px;
    background: #eaf2ff;
}

.notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
}

.unread-text {
    color: var(--blue);
}

.btn.tiny {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
}

@media (max-width: 760px) {
    .notification-item {
        grid-template-columns: 10px minmax(0, 1fr);
    }

    .notification-item form {
        grid-column: 2;
    }
}

/* ASCO_CENTERED_GLOBAL_FOOTER_V1 */
.app-footer {
    width: 100%;
    margin: 34px auto 18px;
    padding: 0;
    display: grid;
    gap: 4px;
    justify-items: center;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.app-footer div {
    text-align: center;
}

.app-footer strong {
    color: var(--text);
    font-weight: 900;
}

/* ASCO_TRUE_FOOTER_ROW_CLICK_V2 */
.app-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrap {
    flex: 1 0 auto;
}

.app-footer {
    flex-shrink: 0;
    width: 100%;
    margin: 20px auto 18px;
    padding: 0 32px;
    display: grid;
    gap: 4px;
    justify-items: center;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.app-footer div {
    width: 100%;
    text-align: center;
}

.notification-item {
    position: relative;
    cursor: pointer;
}

.notification-row-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 8px;
}

.notification-item:hover {
    border-color: rgba(20, 87, 255, .34);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: var(--shadow-soft);
}

.notification-dot,
.notification-copy {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.notification-title-row h4 {
    color: var(--blue);
}

.notification-title-row h4,
.notification-copy p,
.notification-meta {
    pointer-events: none;
}

/* ASCO_TRUE_FOOTER_ROW_CLICK_V3 */
.app-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrap {
    flex: 1 0 auto;
}

.app-footer {
    flex-shrink: 0;
    width: 100%;
    margin: 20px auto 18px;
    padding: 0 32px;
    display: grid;
    gap: 4px;
    justify-items: center;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.app-footer div {
    width: 100%;
    text-align: center;
}

.notification-item {
    position: relative;
    cursor: pointer;
}

.notification-row-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 8px;
}

.notification-item:hover {
    border-color: rgba(20, 87, 255, .34);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: var(--shadow-soft);
}

.notification-dot,
.notification-copy {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.notification-title-row h4 {
    color: var(--blue);
}

.notification-title-row h4,
.notification-copy p,
.notification-meta {
    pointer-events: none;
}

/* ASCO_CLIENT_AGREEMENT_PORTAL_PHASE3A */
.agreement-summary-card {
    margin-bottom: 16px;
}

.notice-box {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 12px;
    background: #f8fbff;
    color: var(--text);
}

.agreement-document {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.agreement-document-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.agreement-text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
}

.agreement-text p {
    margin: 0 0 10px;
}


/* ASCO_SIDEBAR_AUTO_COLLAPSE_V1 */
.app-sidebar {
    transition: transform .22s ease, opacity .22s ease, box-shadow .22s ease;
}

.app-main {
    transition: margin-left .22s ease;
}

.sidebar-backdrop {
    display: none;
}

body.app-shell.sidebar-collapsed .app-sidebar {
    transform: translateX(calc(-1 * var(--sidebar-width)));
    opacity: 0;
    pointer-events: none;
}

body.app-shell.sidebar-collapsed .app-main {
    margin-left: 0;
}

.sidebar-toggle {
    position: relative;
}

@media (max-width: 820px) {
    .app-shell .app-sidebar {
        display: flex;
        width: min(82vw, 280px);
        transform: translateX(-105%);
        opacity: 0;
        pointer-events: none;
        z-index: 80;
    }

    body.app-shell.sidebar-open .app-sidebar {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    body.app-shell.sidebar-collapsed .app-sidebar {
        transform: translateX(-105%);
        opacity: 0;
        pointer-events: none;
    }

    body.app-shell.sidebar-open {
        overflow: hidden;
    }

    body.app-shell.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(2, 8, 23, .52);
        z-index: 70;
    }

    body.app-shell.sidebar-collapsed .app-main,
    body.app-shell.sidebar-open .app-main {
        margin-left: 0;
    }
}


@media print {
    .sidebar,
    .topbar,
    .page-actions,
    .app-footer {
        display: none !important;
    }

    .app-main,
    .content-wrap {
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .agreement-document {
        box-shadow: none !important;
        border: 0 !important;
        max-width: 100% !important;
    }
}

/* ASCO_AGREEMENT_POLISH_4A3_CSS */
.agreement-page-header,
.agreement-summary-card {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

.agreement-document {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
    padding: 28px;
    background: #ffffff;
}

.agreement-letterhead {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--navy);
    margin-bottom: 18px;
}

.agreement-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.agreement-brand img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    flex: 0 0 auto;
}

.agreement-brand h2 {
    margin: 0 0 4px;
    font-size: 24px;
    letter-spacing: .03em;
    color: var(--navy);
}

.agreement-brand p {
    margin: 2px 0;
    color: var(--muted);
    font-size: 13px;
}

.agreement-title-block {
    text-align: right;
    color: var(--navy);
    max-width: 320px;
}

.agreement-title-block span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--muted);
    font-weight: 800;
}

.agreement-title-block h2 {
    margin: 7px 0 10px;
    font-size: 25px;
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.agreement-title-block strong {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e7f8ef;
    color: #047857;
    font-size: 12px;
}

.agreement-client-strip {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr .8fr;
    gap: 10px;
    margin: 18px 0 24px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fafc;
}

.agreement-client-strip span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}

.agreement-client-strip strong {
    display: block;
    color: var(--text);
    font-size: 13px;
}

.agreement-text {
    font-size: 15px;
    line-height: 1.72;
    color: var(--text);
}

.agreement-text h3 {
    margin: 20px 0 14px;
    color: var(--navy);
    font-size: 18px;
    text-align: center;
    letter-spacing: .08em;
}

.agreement-text h4 {
    margin: 20px 0 8px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
}

.agreement-text p {
    margin: 0 0 11px;
    text-align: justify;
}

@media (max-width: 760px) {
    .agreement-document {
        padding: 20px;
    }

    .agreement-letterhead {
        display: block;
    }

    .agreement-brand {
        align-items: flex-start;
    }

    .agreement-brand img {
        width: 76px;
        height: 76px;
    }

    .agreement-title-block {
        text-align: left;
        margin-top: 18px;
    }

    .agreement-client-strip {
        grid-template-columns: 1fr;
    }

    .agreement-text p {
        text-align: left;
    }
}

@media print {
    .agreement-summary-card {
        display: none !important;
    }

    .agreement-document {
        padding: 0 !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    .agreement-letterhead {
        margin-top: 0;
    }

    .agreement-text {
        font-size: 12px;
        line-height: 1.55;
    }

    .agreement-text p {
        text-align: justify;
    }
}

/* ASCO_CLIENT_HIDE_HEADER_DASHBOARD_ON_MOBILE_4C4
   The mobile bottom tab already provides Dashboard access, so repeated page-header
   Dashboard buttons are hidden on small screens only. */
@media (max-width: 700px) {
    .mobile-hide-dashboard-action {
        display: none !important;
    }
}

/* ASCO_MOBILE_LOGOUT_CSS_4C6B
   Desktop keeps the user-menu logout. Mobile hides the K shortcut and shows Logout
   directly because the user-menu is hidden on small screens. */
.mobile-logout-link {
    display: none;
}

@media (max-width: 820px) {
    .topbar-password-shortcut {
        display: none !important;
    }

    .mobile-logout-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 13px;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 8px;
        color: #ffffff;
        background: rgba(255, 255, 255, .08);
        font-size: 12px;
        font-weight: 800;
        text-decoration: none;
        box-shadow: none;
    }
}

/* ASCO_TOPBAR_USER_CARD_CSS_4C7
   Polishes the desktop top-right user card after removing the unnecessary K shortcut. */
.user-menu {
    min-width: 230px;
    justify-content: flex-start;
    padding: 7px 12px 7px 7px;
}

.user-menu .user-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.user-menu .user-copy strong {
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu .user-copy span {
    color: var(--muted-2);
    font-size: 11px;
}

.user-menu a {
    margin-left: auto;
    padding-left: 10px;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .user-menu {
        min-width: 0;
    }
}

/* ASCO_TOPBAR_HIDE_ROLE_SUBTITLE_4C8
   Hide the small role subtitle only in the top-right user card.
   Sidebar user context remains unchanged. */
.app-topbar .user-menu .user-copy span {
    display: none;
}

.app-topbar .user-menu {
    min-width: 205px;
    align-items: center;
}

.app-topbar .user-menu .user-copy strong {
    max-width: 155px;
    line-height: 1.2;
}

/* ASCO_STATEMENT_MOBILE_CARD_POLISH_STEP1B_4D2A
   Improves spacing and readability for statement mobile cards. */
#client-statement-mobile-list .mobile-card {
    padding: 16px;
}

#client-statement-mobile-list .mobile-card-title {
    font-size: 15px;
    line-height: 1.25;
}

#client-statement-mobile-list .mobile-card-head {
    margin-bottom: 12px;
}

#client-statement-mobile-list .mobile-card > .mobile-card-sub {
    margin-top: 6px;
    margin-bottom: 12px;
    padding-bottom: 0;
    color: rgba(226, 237, 255, .82);
    font-size: 13px;
    line-height: 1.45;
}

#client-statement-mobile-list .mobile-metrics {
    gap: 10px;
    padding-top: 12px;
}

#client-statement-mobile-list .mobile-metrics span {
    font-size: 11.5px;
}

#client-statement-mobile-list .mobile-metrics strong {
    font-size: 14px;
    line-height: 1.25;
}

/* ASCO_CLIENT_STATEMENT_SECTION_HEADING_CSS_4D5B */
.client-section-heading {
    margin: 22px 0 12px;
}

.client-section-heading h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.client-section-heading p {
    margin: 4px 0 0;
    color: rgba(226, 237, 255, 0.72);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .client-section-heading {
        margin: 18px 0 10px;
        padding: 0 2px;
    }

    .client-section-heading h2 {
        font-size: 17px;
    }

    .client-section-heading p {
        font-size: 12.5px;
    }
}








.agreement-signature-line {
    height: 34px;
    border-bottom: 1px solid #0f172a;
    margin: 4px 0 10px;
}

@media (max-width: 760px) {
}


/* ASCO_CLIENT_AGREEMENT_PDF_PREVIEW_CSS_4D10C */
.agreement-pdf-preview-card {
    padding: 1rem;
    overflow: hidden;
}

.agreement-pdf-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.agreement-pdf-preview-header h2 {
    margin: 0 0 0.25rem;
}

.agreement-pdf-preview-header p,
.agreement-pdf-preview-note {
    margin: 0;
    color: var(--muted, #64748b);
    font-size: 0.95rem;
}

.agreement-pdf-preview-frame {
    display: block;
    width: 100%;
    height: 78vh;
    min-height: 640px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    background: #ffffff;
}

.agreement-pdf-preview-note {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .agreement-pdf-preview-card {
        padding: 0.75rem;
    }

    .agreement-pdf-preview-header {
        flex-direction: column;
        align-items: stretch;
    }

    .agreement-pdf-preview-frame {
        height: 72vh;
        min-height: 520px;
        border-radius: 10px;
    }
}


/* ASCO_CLIENT_AGREEMENT_HTML_PREVIEW_CSS_4D10D */
.agreement-html-preview-card {
    padding: 1rem;
}

.agreement-html-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.agreement-html-preview-header h2 {
    margin: 0 0 0.25rem;
}

.agreement-html-preview-header p,
.agreement-html-preview-note,
.agreement-html-preview-empty {
    margin: 0;
    color: var(--muted, #64748b);
    font-size: 0.95rem;
}


.agreement-html-preview-body {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    background: #ffffff;
    padding: 1.25rem;
    max-height: 78vh;
    overflow: auto;
}

.agreement-html-preview-text {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text, #0f172a);
}

.agreement-html-preview-note {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .agreement-html-preview-card {
        padding: 0.75rem;
    }

    .agreement-html-preview-header {
        flex-direction: column;
        align-items: stretch;
    }

    .agreement-html-preview-body {
        max-height: none;
        padding: 1rem;
        border-radius: 10px;
    }
}

/* ASCO_CLIENT_AGREEMENT_REMOVE_DUPLICATE_BUTTONS_CSS_4D10E */


/* ASCO_CLIENT_CHANGE_PASSWORD_POLISH_CSS_4D14A */
.client-password-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .75fr);
    gap: 18px;
    align-items: start;
    max-width: 980px;
}

.client-password-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.client-password-card-head h3,
.client-password-help h3 {
    margin-top: 0;
}

.client-password-form {
    display: grid;
    gap: 14px;
}

.client-password-field {
    display: grid;
    gap: 7px;
}

.client-password-field label {
    font-weight: 700;
    color: var(--text);
}

.client-password-field input {
    width: 100%;
}

.client-password-actions {
    padding-top: 4px;
}

.client-password-help ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
    line-height: 1.65;
}

.client-password-help li + li {
    margin-top: 8px;
}

@media (max-width: 760px) {
    .client-password-layout {
        grid-template-columns: 1fr;
    }

    .client-password-card-head {
        align-items: center;
    }

    .client-password-actions .button {
        width: 100%;
    }
}


/* ASCO_MOBILE_FOOTER_PASSWORD_CONTRAST_4D14B
   Improves contrast for dark mobile client portal pages without changing desktop. */
@media (max-width: 820px) {
    .app-footer {
        color: rgba(255, 255, 255, 0.82);
    }

    .app-footer div {
        color: rgba(255, 255, 255, 0.82);
    }

    .app-footer strong {
        color: #ffffff;
    }

    .client-password-field label {
        color: rgba(255, 255, 255, 0.92);
    }

    .client-password-card .muted,
    .client-password-help,
    .client-password-help li {
        color: rgba(255, 255, 255, 0.72);
    }

    .client-password-card h3,
    .client-password-help h3 {
        color: #ffffff;
    }
}


/* ASCO_CLIENT_ELECTRICITY_ALL_STATES_CSS_4D14C */
.client-electricity-stats {
    margin-bottom: 18px;
}

.client-electricity-card {
    min-height: 178px;
}

.client-electricity-meter {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.client-electricity-card-actions {
    margin-top: 14px;
}

.client-electricity-action-card {
    max-width: 980px;
}

.client-electricity-action-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.client-electricity-action-head h3 {
    margin-top: 0;
}

.client-electricity-ready p,
.client-electricity-notice p {
    margin-top: 8px;
}

.client-electricity-notice {
    border: 1px solid rgba(37, 99, 235, .18);
    background: rgba(37, 99, 235, .06);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text);
}

.client-electricity-notice.warning {
    border-color: rgba(245, 158, 11, .28);
    background: rgba(245, 158, 11, .08);
}

.client-electricity-notice strong {
    display: block;
    color: var(--navy);
}

@media (max-width: 820px) {
    .client-electricity-action-head {
        align-items: center;
    }

    .client-electricity-card .stat-label,
    .client-electricity-card .stat,
    .client-electricity-action-card h3,
    .client-electricity-notice strong {
        color: #ffffff;
    }

    .client-electricity-card .stat-meta,
    .client-electricity-action-card .muted,
    .client-electricity-ready p,
    .client-electricity-notice p {
        color: rgba(255, 255, 255, .76);
    }

    .client-electricity-notice {
        color: rgba(255, 255, 255, .82);
        border-color: rgba(255, 255, 255, .14);
        background: rgba(255, 255, 255, .07);
    }

    .client-electricity-notice.warning {
        border-color: rgba(251, 191, 36, .34);
        background: rgba(251, 191, 36, .10);
    }

    .client-electricity-card-actions .button,
    .client-electricity-ready .button {
        width: 100%;
    }
}


/* ASCO_TOKEN_SERVICE_STATUS_GLOW_CSS_4D14D */
.client-electricity-service-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    line-height: 1.15;
}

.client-electricity-service-status::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.client-electricity-service-status.online {
    color: #16a34a;
    text-shadow:
        0 0 10px rgba(34, 197, 94, .45),
        0 0 22px rgba(34, 197, 94, .22);
}

.client-electricity-service-status.online::before {
    background: #22c55e;
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, .12),
        0 0 16px rgba(34, 197, 94, .75);
}

.client-electricity-service-status.offline {
    color: #dc2626;
    text-shadow:
        0 0 10px rgba(239, 68, 68, .42),
        0 0 22px rgba(239, 68, 68, .20);
}

.client-electricity-service-status.offline::before {
    background: #ef4444;
    box-shadow:
        0 0 0 4px rgba(239, 68, 68, .12),
        0 0 16px rgba(239, 68, 68, .72);
}

@media (max-width: 820px) {
    .client-electricity-service-status.online {
        color: #86efac;
        text-shadow:
            0 0 12px rgba(34, 197, 94, .75),
            0 0 26px rgba(34, 197, 94, .35);
    }

    .client-electricity-service-status.offline {
        color: #fca5a5;
        text-shadow:
            0 0 12px rgba(239, 68, 68, .75),
            0 0 26px rgba(239, 68, 68, .35);
    }
}


/* ASCO_ADMIN_FILTER_MOBILE_LABEL_CONTRAST_4E5C */
.date-filter-input {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
    .filter-form label {
        color: rgba(255, 255, 255, .92);
        font-weight: 800;
    }

    .filter-form .date-filter-input::placeholder {
        color: rgba(15, 23, 42, .55);
    }
}



/* ASCO_CLIENT_DATE_FILTER_CSS_4E6C */
.client-date-filter {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) auto;
    gap: 12px;
    align-items: end;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 16px;
    background: rgba(255, 255, 255, .74);
}

.client-date-filter label {
    display: block;
    font-size: .78rem;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 6px;
}

.client-date-filter-input {
    width: 100%;
    font-variant-numeric: tabular-nums;
}

.client-date-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 820px) {
    .client-date-filter {
        grid-template-columns: 1fr;
        background: rgba(255, 255, 255, .08);
        border-color: rgba(255, 255, 255, .14);
    }

    .client-date-filter label {
        color: rgba(255, 255, 255, .9);
    }

    .client-date-filter-actions .button {
        width: 100%;
    }
}


/* ASCO_TOKEN_SERVICE_STATUS_GLOW_GUARD_4E7A
   Keeps client electricity token service status visibly glowing after later CSS edits. */
.client-electricity-service-status.online {
    color: #16a34a !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, .55) !important;
}

.client-electricity-service-status.online::before {
    background: #22c55e !important;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .16), 0 0 16px rgba(34, 197, 94, .9) !important;
}

.client-electricity-service-status.offline {
    color: #dc2626 !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, .45) !important;
}

.client-electricity-service-status.offline::before {
    background: #ef4444 !important;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, .14), 0 0 16px rgba(239, 68, 68, .85) !important;
}


/* ASCO_ADMIN_COMPACT_TABLE_CSS_4E7D
   Compact desktop tables for admin invoices and payments. */
.admin-compact-table-card .table-scroll {
    max-height: min(72vh, 720px);
    overflow: auto;
    border-radius: 16px;
}

.admin-compact-table {
    min-width: 1160px;
}

.admin-compact-table th,
.admin-compact-table td {
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.25;
    vertical-align: top;
}

.admin-compact-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fbfdff;
    box-shadow: 0 1px 0 var(--line-soft);
}

.admin-compact-table th:last-child,
.admin-compact-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 4;
    min-width: 150px;
    background: #ffffff;
    box-shadow: -8px 0 14px rgba(15, 23, 42, .08);
}

.admin-compact-table th:last-child {
    z-index: 6;
    background: #fbfdff;
}

.admin-compact-table td[colspan] {
    position: static;
    box-shadow: none;
}

.admin-compact-table .row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 165px;
}

.admin-compact-table .row-actions a {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(37, 99, 235, .08);
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
}

.admin-compact-table .status-pill {
    white-space: nowrap;
}

@media (max-width: 820px) {
    .admin-compact-table-card .table-scroll {
        max-height: none;
    }
}


/* ASCO_AUTO_INVOICE_VIEW_ONLY_PILLS_CSS_4F3A */
.auto-invoice-mode-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    cursor: help;
}

.auto-invoice-mode-pill.is-auto {
    color: #075985;
    background: rgba(14, 165, 233, .14);
    border: 1px solid rgba(14, 165, 233, .25);
}

.auto-invoice-mode-pill.is-manual {
    color: #64748b;
    background: rgba(148, 163, 184, .16);
    border: 1px solid rgba(148, 163, 184, .30);
}


/* ASCO_CLIENT_DETAIL_HEADER_CSS_4F5 */
.client-detail-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.client-detail-hero h1 {
    margin-bottom: 4px;
}

.client-detail-meta {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.client-detail-quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 560px;
}

.client-detail-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    line-height: 1.1;
    background: #f8fafc;
    color: var(--text);
    white-space: nowrap;
}

.client-detail-action.primary {
    background: #1f2937;
    color: #ffffff;
    border-color: #1f2937;
}

.client-detail-action.statement {
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, .22);
}

.client-detail-section-title {
    margin-top: 0;
}

.client-moved-out-card {
    background: #f1f5f9;
    border-color: rgba(148, 163, 184, .35);
}

@media (max-width: 820px) {
    .client-detail-hero {
        display: block;
    }

    .client-detail-quick-actions {
        justify-content: stretch;
        max-width: none;
        margin-top: 12px;
    }

    .client-detail-action {
        flex: 1 1 150px;
    }
}


/* ASCO_CLIENT_DETAIL_ACTION_CARDS_CSS_4F6 */
.account-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.account-action-box {
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 16px;
    padding: 15px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.account-action-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text);
}

.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, .36);
    border-radius: 10px;
    text-decoration: none;
    background: #f8fafc;
    color: var(--text);
    font-weight: 850;
    font-size: 13px;
    line-height: 1.1;
}

.action-links a.primary-action {
    background: #1f2937;
    color: #ffffff;
    border-color: #1f2937;
}

.action-links a.warning-action {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.action-links a.danger-action {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.muted-action-note {
    color: var(--muted);
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
}


/* ASCO_UNIT_FORM_INLINE_STYLE_CSS_4G4 */
.unit-form-select {
    width: 100%;
    padding: 10px;
    margin: 6px 0 14px;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font-weight: 700;
}

.unit-form-help {
    margin-top: -8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.unit-form-check {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 6px 0 14px;
    font-weight: 800;
    color: var(--text);
}

.unit-form-check-input {
    width: auto;
    margin: 0;
}


/* ASCO_LOCATIONS_BLOCKS_STYLE_CSS_4G6B */
.locations-blocks-table {
    min-width: 820px;
}

.locations-blocks-action,
.locations-blocks-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 6px 9px;
    border: 1px solid rgba(148, 163, 184, .38);
    border-radius: 9px;
    background: #f8fafc;
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
    cursor: pointer;
}

.locations-blocks-inline-form {
    display: inline-flex;
    margin-left: 6px;
    vertical-align: middle;
}

.locations-blocks-toggle-button {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}


/* ASCO_REPORTS_TABLE_FILTER_CSS_4H2 */
.report-compact-table {
    min-width: 1120px;
}

.report-compact-table td,
.report-compact-table th {
    vertical-align: top;
}


/* ASCO_REPORTS_INDEX_CARD_CSS_4H3 */
.reports-page-header {
    margin-bottom: 18px;
}

.reports-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.reports-hub-card {
    display: block;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
    color: var(--text);
    text-decoration: none;
}

.reports-hub-card h3 {
    margin: 8px 0 8px;
    font-size: 18px;
}

.reports-hub-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.45;
}

.reports-hub-kicker {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
}

.reports-hub-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 11px;
    border-radius: 10px;
    background: #1f2937;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.reports-note-card {
    border-color: rgba(148, 163, 184, .28);
    background: #f8fafc;
}


/* ASCO_SMS_MAIN_STYLE_CSS_4J1B */
.sms-custom-phone-help {
    margin-top: -8px;
}

.sms-recipient-box {
    background: #f9fafb;
    margin: 12px 0 16px;
    display: none;
}

.sms-recipient-title {
    margin-top: 0;
}

.sms-choice-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sms-choice-row-spaced {
    margin-top: 8px;
}

.sms-check-input {
    width: auto;
}

.sms-recipient-note {
    margin-top: 8px;
}

.sms-message-textarea {
    width: 100%;
    box-sizing: border-box;
    display: block;
    margin: 6px 0 8px;
}

.sms-template-help {
    margin-top: 0;
}

.sms-history-table {
    min-width: 1120px;
}

.sms-row-failed {
    background: #fde2e2;
}

.sms-message-body-cell {
    max-width: 320px;
    white-space: normal;
}


/* ASCO_SMS_PROVIDER_RAW_SUMMARY_CSS_4J1D */
.sms-raw-response-summary {
    cursor: pointer;
}


/* ASCO_SMS_AUTOMATION_PREVIEW_CSS_4J2B */
.sms-preview-action {
    align-self: end;
}

.sms-automation-preview-table {
    min-width: 1160px;
}

.sms-automation-skipped-table {
    min-width: 900px;
}


/* ASCO_PAYMENT_THANK_YOU_SMS_CSS_4J3B */
.payment-thankyou-recipient-box {
    background: #f9fafb;
    margin: 12px 0 16px;
}

.payment-thankyou-recipient-title {
    margin-top: 0;
}

.payment-thankyou-choice-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-thankyou-choice-row-spaced {
    margin-top: 8px;
}

.payment-thankyou-check-input {
    width: auto;
}

.payment-thankyou-note {
    margin-top: 8px;
}

.payment-thankyou-message-textarea {
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.payment-thankyou-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}


/* ASCO_SETTINGS_TABLE_CSS_4K2 */
.settings-stored-table {
    min-width: 760px;
}

.settings-stored-table td:last-child {
    white-space: normal;
    word-break: break-word;
}


/* ASCO_CLIENT_ACCOUNT_FORM_CSS_4M1 */
.client-account-select {
    padding: 10px;
    width: 100%;
    margin: 6px 0 14px;
}

.client-account-helper-tight {
    margin-top: -8px;
}

.client-account-checkbox {
    width: auto;
}

.client-account-divider {
    margin: 22px 0 16px;
}

.client-account-section-heading {
    margin-bottom: 8px;
}

.client-account-opening-balance {
    background: #f9fafb;
    margin: 18px 0;
    padding: 16px;
}

.client-account-inline-check {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}


/* ASCO_AGREEMENTS_ADMIN_CSS_4N2 */
.agreement-inline-form {
    display: inline;
}

.agreement-body-preview {
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.7;
    margin: 0;
}


/* ASCO_CLIENT_RECEIPT_COMPACT_SUMMARY_CSS_4P2 */
.receipt-summary-grid {
    gap: 12px;
    margin: 18px 0 18px;
}

.receipt-summary-card {
    min-height: auto;
    padding: 14px 16px;
}

.receipt-summary-card::after {
    display: none;
}

.receipt-summary-card span {
    display: block;
    margin-bottom: 4px;
}

.receipt-summary-card strong {
    display: block;
    margin: 0;
    line-height: 1.25;
}

.receipt-summary-card p {
    margin: 6px 0 0;
    line-height: 1.35;
}

@media (max-width: 760px) {
    .receipt-summary-grid {
        gap: 10px;
        margin: 14px 0 16px;
    }

    .receipt-summary-card {
        padding: 12px 14px;
    }
}
