:root {
    --font-body: "Inter", sans-serif;
    --font-display: "Inter", sans-serif;
    --page-bg: #ffffff;
    --page-bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f7faff;
    --surface-muted: #edf3fa;
    --border: #d3dfef;
    --border-strong: #b7cae3;
    --text: #0a1424;
    --text-soft: #334760;
    --text-faint: #60748f;
    --navy: #172235;
    --navy-deep: #0c1525;
    --navy-soft: #243247;
    --blue: #2563eb;
    --blue-strong: #1d4ed8;
    --teal: #1ecad3;
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --shadow: 0 24px 48px rgba(15, 23, 42, 0.09);
    --shadow-soft: 0 14px 28px rgba(15, 23, 42, 0.06);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    letter-spacing: -0.01em;
    color: var(--text);
    background: #ffffff;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.admin-body,
.admin-guest {
    min-height: 100vh;
}

.admin-app {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 10px 86px;
}

.admin-header {
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, #0b4f9f 0%, #083a77 58%, #06264f 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(10, 17, 31, 0.18);
}

.admin-header-top,
.admin-header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-header-top {
    padding: 2px 4px 10px;
}

.admin-header-nav {
    padding: 8px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #31c8d5 0%, #5b8cff 100%);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.header-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header-brand-copy strong {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.header-brand-copy span {
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(225, 233, 245, 0.78);
    line-height: 1.2;
}

.header-search {
    flex: 1 1 auto;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    min-height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.header-search-icon {
    color: rgba(232, 240, 252, 0.7);
    font-size: 0.95rem;
    font-weight: 700;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

.header-search input::placeholder {
    color: rgba(227, 235, 245, 0.6);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-badge,
.header-action,
.context-pill,
.workspace-range {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.header-badge {
    gap: 8px;
    background: rgba(245, 158, 11, 0.18);
    color: #f8d277;
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.header-badge [data-notification-count] {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: #a16207;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.header-action {
    background: #ffffff;
    color: #083a77;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.header-action:hover {
    background: #eff6ff;
    border-color: #dbe9fb;
    color: #083a77;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 4px 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.header-user-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #31c8d5 0%, #5b8cff 100%);
    color: #ffffff;
    font-size: 0.73rem;
    font-weight: 800;
}

.header-user-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header-user-copy strong {
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 800;
    color: #ffffff;
}

.header-user-copy span {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(225, 233, 245, 0.7);
}

.header-logout {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #f5f7fb;
    cursor: pointer;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.primary-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 11px;
    color: rgba(245, 248, 254, 0.96);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: 0.18s ease;
}

.primary-nav-link::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.primary-nav-link:hover,
.primary-nav-link.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.primary-nav-link.is-active::before {
    background: linear-gradient(135deg, #31c8d5 0%, #5b8cff 100%);
}

.context-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.context-pill {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #083a77;
}

.admin-workspace {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.module-rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
    background: linear-gradient(180deg, #0b4f9f 0%, #083a77 58%, #06264f 100%);
    box-shadow: 0 22px 40px rgba(8, 38, 79, 0.14);
}

.module-rail-compact {
    gap: 10px;
}

.rail-card {
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.module-card {
    position: relative;
    overflow: hidden;
    padding: 14px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #d9e5f3;
    box-shadow: var(--shadow-soft);
}

.module-card-current {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(135deg, #3f63f2 0%, #2563eb 55%, #16c6d0 100%);
    color: #ffffff;
    border-color: rgba(70, 110, 255, 0.26);
}

.module-card-current .module-kicker,
.module-card-current p,
.module-card-current .module-meta span {
    color: rgba(244, 248, 255, 0.86);
}

.module-card-current h2 {
    color: #ffffff;
}

.module-card h2 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.18;
}

.module-card p {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.65;
    font-weight: 700;
    color: var(--text-soft);
}

.module-kicker,
.eyebrow,
.panel-label,
.stats-label,
.field-group label,
.field-block label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.module-kicker {
    color: #7c8ca6;
}

.module-meta {
    margin-top: 14px;
}

.module-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.module-link-stack,
.module-chip-grid {
    display: grid;
    gap: 8px;
}

.module-link-stack {
    grid-template-columns: 1fr;
}

.module-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-inline-link,
.module-chip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 36px;
    padding: 0 11px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #083a77;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.module-inline-link.is-active,
.module-chip.is-active {
    background: linear-gradient(135deg, #1ecad3 0%, #5b8cff 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.module-inline-link:hover,
.module-chip:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: #ffffff;
    color: #083a77;
}

.module-inline-link.is-active:hover,
.module-chip.is-active:hover {
    background: linear-gradient(135deg, #1ecad3 0%, #5b8cff 100%);
    color: #ffffff;
    border-color: transparent;
}

.rail-account {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rail-account strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
}

.rail-account span {
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(224, 238, 255, 0.84);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.rail-account p {
    margin: 2px 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(235, 243, 255, 0.88);
}

.admin-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    background: linear-gradient(180deg, #0b4f9f 0%, #083a77 58%, #06264f 100%);
    box-shadow: 0 -10px 24px rgba(8, 38, 79, 0.12);
}

.admin-panel,
.hero-card,
.toolbar-card,
.stats-card,
.panel-card,
.list-card,
.surface-card,
.card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dde8f5;
    box-shadow: var(--shadow-soft);
}

.admin-panel::before,
.hero-card::before,
.toolbar-card::before,
.stats-card::before,
.panel-card::before,
.list-card::before,
.surface-card::before,
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3578f6 0%, #20d0ca 55%, #f7a70d 100%);
}

.hero-card,
.toolbar-card,
.panel-card,
.admin-panel,
.surface-card,
.card,
.list-card {
    padding: 18px;
}

.admin-panel {
    padding: 18px 18px 20px;
}

.admin-panel.panel-shell {
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-panel.panel-shell::before {
    display: none;
}

.panel-header,
.hero-head,
.list-head,
.panel-head,
.guest-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.panel-header {
    margin-bottom: 18px;
}

.hero-head,
.list-head,
.panel-head {
    margin-bottom: 14px;
}

.panel-header h1,
.guest-title-sm,
.panel-title,
.list-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.28;
    color: var(--text);
}

.panel-header h1 {
    font-size: 2rem;
    letter-spacing: -0.035em;
}

.eyebrow,
.panel-label {
    color: #3467d7;
}

.panel-copy,
.hero-meta,
.panel-meta,
.guest-subtext,
.stats-note,
.toolbar-range-note,
.otp-text,
.data-row small,
.data-row time {
    color: #4b607b;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.55;
}

.hero-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.hero-avatar {
    width: 58px;
    height: 58px;
    padding: 10px;
    border-radius: 16px;
    background: #f5f8ff;
    border: 1px solid #d7e4f2;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-copy {
    min-width: 0;
}

.hero-copy .guest-title-sm {
    font-size: 1.32rem;
    letter-spacing: -0.04em;
}

.hero-chip-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d6e2ef;
    color: #17273e;
    font-size: 0.68rem;
    font-weight: 800;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.workspace-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d6e2ef;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.workspace-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #31c8d5 0%, #5b8cff 100%);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
}

.workspace-copy {
    display: flex;
    flex-direction: column;
}

.workspace-copy strong {
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.workspace-copy span {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-soft);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wallet-summary-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    min-width: min(100%, 320px);
}

.wallet-summary-item {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.wallet-summary-item strong {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.wallet-summary-item span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: #244b90;
    letter-spacing: -0.03em;
    text-transform: none;
    line-height: 1.1;
}

.workspace-range {
    background: #ffffff;
    border: 1px solid #d6e2ef;
    color: #16263d;
}

.button-row,
.button-row-right,
.toolbar-actions,
.otp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.button-row-right {
    justify-content: flex-end;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-link:hover {
    transform: translateY(-1px);
}

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4386ff 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3d7cf0 0%, #1d4ed8 100%);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    border-color: #d7e3f1;
    color: #334155;
}

.btn-secondary:hover {
    background: #eef5ff;
    border-color: #bfd2eb;
    color: #17304f;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e33b3b 0%, #c81e1e 100%);
    color: #ffffff;
}

.btn-link {
    min-height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--blue-strong);
}

.btn-sm {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.74rem;
}

.table-actions [data-notification-seen-button] {
    min-width: 104px;
}

.alert,
.status-box,
.error-box {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.alert-success,
.status-box {
    background: #ecfdf3;
    border: 1px solid #c7f1d9;
    color: #117847;
}

.alert-error,
.error-box {
    background: #fef2f2;
    border: 1px solid #f7c8c8;
    color: #c2410c;
}

.form-shell {
    width: 100%;
}

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

.field-grid-transaction {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 18px;
}

.field-span-6 {
    grid-column: span 6;
}

.field-span-3 {
    grid-column: span 3;
}

.field-span-2 {
    grid-column: span 2;
}

.field-group,
.field-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label,
.field-block label {
    color: #2f5ed1;
}

.field-group label.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: #ffffff;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.field-group label.checkbox-row input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.field-group input,
.field-group select,
.field-group textarea,
.field-block input,
.field-block select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: #ffffff;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field-group textarea {
    min-height: 108px;
    resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder,
.field-block input::placeholder {
    color: var(--text-faint);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus,
.field-block input:focus,
.field-block select:focus {
    border-color: #79a9ff;
    box-shadow: 0 0 0 4px rgba(86, 144, 255, 0.15);
}

.field-error {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--red);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.toolbar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) minmax(320px, 1.2fr);
    gap: 14px;
    align-items: end;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stats-card {
    padding: 14px 14px 12px;
}

.stats-label {
    color: #3666da;
}

.stats-value {
    font-family: var(--font-display);
    font-size: 1.68rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.stats-value strong,
.stats-value span {
    font-size: inherit;
}

.stats-card .stats-note {
    margin-top: 6px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.85fr);
    gap: 12px;
}

.lower-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.panel-card,
.list-card {
    padding: 16px;
}

.list-title,
.panel-title {
    font-size: 0.98rem;
}

.chart-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #43506a;
}

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.chart-svg {
    width: 100%;
    height: auto;
}

.chart-labels {
    display: grid;
    grid-template-columns: repeat(var(--count, 1), minmax(0, 1fr));
    gap: 10px;
}

.chart-labels span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-soft);
}

.status-shell {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.donut {
    position: relative;
    width: min(100%, 200px);
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 50%;
}

.donut::after {
    content: "";
    position: absolute;
    inset: 24%;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #dfebf7;
}

.donut-center {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    text-align: center;
}

.donut-center strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}

.donut-center span {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-soft);
}

.status-list,
.data-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-item,
.data-row,
.list-item {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e1ebf6;
    background: #f9fbff;
}

.status-item,
.status-left,
.data-row-top,
.list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.status-left {
    align-items: center;
}

.status-left > div strong,
.data-row strong,
.list-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text);
}

.status-left > div span,
.list-item span {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-soft);
}

.data-row small,
.data-row time {
    display: block;
}

.branch-detail-table {
    display: grid;
    gap: 12px;
}

.branch-detail-row {
    display: grid;
    grid-template-columns: minmax(140px, 164px) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #dbe7f5;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.branch-detail-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef5ff;
    border: 1px solid #d5e3f4;
    color: #5a7393;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.branch-detail-value {
    display: flex;
    align-items: center;
    min-width: 0;
    color: #12263f;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-word;
}

@media (max-width: 720px) {
    .branch-detail-row {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
}

.badge,
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-green,
.status-chip.is-active {
    background: #eafbf1;
    color: #15803d;
}

.badge-red,
.status-chip.is-inactive {
    background: #fef2f2;
    color: #c2410c;
}

.badge-amber {
    background: #fff7e5;
    color: #b45309;
}

.badge-blue {
    background: #ecf3ff;
    color: #1d4ed8;
}

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

.table-shell {
    overflow: auto;
    border: 1px solid #dde6f1;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.datatable-panel {
    display: flex;
    flex-direction: column;
    min-height: 50vh;
}

.datatable-panel-compact {
    min-height: auto;
}

.dashboard-reminder-panel {
    display: block;
    align-self: start;
}

.dashboard-reminder-panel .table-shell {
    flex: none;
}

.dashboard-reminder-panel .dt-scroll,
.dashboard-reminder-panel .dt-scroll-body,
.dashboard-reminder-panel .table-wrap {
    height: auto !important;
    max-height: none !important;
}

.datatable-panel .list-head,
.datatable-panel .panel-header {
    flex: 0 0 auto;
}

.datatable-panel .table-shell,
.datatable-panel .table-wrap {
    flex: 1 1 auto;
    min-height: 0;
}

.data-table {
    width: 100%;
    min-width: 960px;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    font-variant-numeric: tabular-nums;
}

.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 15px 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #eef4fb 100%);
    border-bottom: 1px solid #dfe9f5;
    color: #1f446f;
    font-family: var(--font-display);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
}

.data-table thead th + th {
    border-left: 1px solid #eef2f8;
}

.data-table thead th.is-sortable {
    cursor: pointer;
    user-select: none;
}

.data-table thead th.is-sortable::after {
    content: "↕";
    margin-left: 8px;
    font-size: 0.72rem;
    color: #7e95b3;
}

.data-table thead th.sort-asc::after {
    content: "↑";
    color: #083a77;
}

.data-table thead th.sort-desc::after {
    content: "↓";
    color: #083a77;
}

.data-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #e7edf5;
    border-left: 1px solid #eef3f8;
    font-size: 0.8rem;
    font-weight: 600;
    color: #13243a;
    line-height: 1.55;
    vertical-align: top;
    background: rgba(255, 255, 255, 0.96);
}

.data-table tbody td:first-child {
    border-left: 0;
}

.data-table tbody tr:nth-child(even) td {
    background: #fcfdff;
}

.data-table tbody tr:hover td {
    background: #f5f9ff;
}

.table-actions {
    width: 1%;
    white-space: nowrap;
}

.cell-stack {
    display: grid;
    gap: 4px;
}

.cell-title {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 700;
    color: #15253a;
    line-height: 1.35;
}

.cell-sub {
    font-size: 0.77rem;
    font-weight: 600;
    color: #475b75;
    line-height: 1.45;
}

.cell-meta,
.cell-note {
    font-size: 0.71rem;
    font-weight: 700;
    color: #73849a;
    line-height: 1.45;
}

.cell-note {
    margin-top: 2px;
}

.kv-list {
    display: grid;
    gap: 8px;
}

.kv-row {
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e5edf5;
}

.kv-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.kv-label {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #70839b;
}

.kv-value {
    font-size: 0.77rem;
    font-weight: 700;
    color: #15253a;
    line-height: 1.45;
}

.validity-cycle-col,
.validity-cycle-cell {
    min-width: 260px;
    width: 260px;
}

.validity-cycle-cell {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.validity-cycle-card {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f1f7ff 100%);
    border: 1px solid #d9e6f5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.validity-cycle-row {
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0 0 8px;
    border-bottom: 1px dashed #dbe7f5;
}

.validity-cycle-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.validity-cycle-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d5e3f4;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6c84a5;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.validity-cycle-value {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #123255;
}

.amount-text {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #13243a;
}

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

.approval-action-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 10px;
    min-width: 300px;
    align-items: start;
}

.approval-action-form {
    display: grid;
    gap: 8px;
    padding: 0;
    border-radius: 14px;
    border: 0;
    background: transparent;
}

.approval-action-form input {
    width: 100%;
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cfdceb;
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
}

.approval-action-form input::placeholder {
    color: #8da0b8;
}

.approval-action-form input:focus {
    outline: none;
    border-color: #79a9ff;
    box-shadow: 0 0 0 4px rgba(86, 144, 255, 0.12);
}

.approval-action-form .btn-sm {
    width: 100%;
}

.approval-action-form-reject input {
    border-color: #f0cccc;
}

.document-chip-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 110px;
}

.document-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #d7e3f1;
    background: #f8fbff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.document-chip-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
}

.document-chip-active {
    color: #166534;
    border-color: #bde3ca;
    background: #edfdf4;
}

.document-chip-active .document-chip-mark {
    background: #22c55e;
    color: #ffffff;
}

.document-chip-muted {
    color: #64748b;
    border-color: #dbe5ef;
    background: #f8fafc;
}

.document-chip-muted .document-chip-mark {
    background: #dfe7f0;
    color: #64748b;
}

@media (max-width: 640px) {
    .approval-action-stack {
        grid-template-columns: 1fr;
        min-width: 0;
    }
}

.empty-state-cell {
    text-align: center;
    color: var(--text-soft);
    font-weight: 700;
}

.report-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.report-filter-group {
    min-width: 240px;
}

.report-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.report-filter-group select {
    width: 100%;
}

.report-nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.report-overview-card {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.92) 100%);
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.report-overview-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.report-overview-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-strong);
}

.report-overview-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--navy);
}

.report-overview-copy {
    color: var(--text-soft);
    line-height: 1.6;
}

div.dt-container {
    width: 100%;
}

div.dt-container div.dt-layout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    flex-wrap: wrap;
}

div.dt-container div.dt-layout-cell {
    margin: 0;
}

div.dt-container div.dt-layout-row:last-child .dt-layout-cell:first-child {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

div.dt-container .dt-search,
div.dt-container .dt-length,
div.dt-container .dt-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

div.dt-container .dt-search label,
div.dt-container .dt-length label,
div.dt-container .dt-info {
    color: var(--text-soft);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

div.dt-container .dt-input,
div.dt-container .dt-search input,
div.dt-container .dt-length select {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #d7e3f1;
    background: #ffffff;
    color: #17304f;
    font-size: 0.71rem;
    font-weight: 700;
    box-shadow: none;
}

div.dt-container .dt-search input {
    min-width: 240px;
}

div.dt-container .dt-length {
    flex-wrap: nowrap;
}

div.dt-container .dt-length span,
div.dt-container .dt-info {
    white-space: nowrap;
}

div.dt-container .dt-button,
div.dt-container button.dt-button {
    min-height: 38px;
    padding: 0 16px !important;
    border-radius: 12px !important;
    border: 1px solid #c8d9ef !important;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
    color: #083a77 !important;
    font-size: 0.71rem !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

div.dt-container .dt-button:hover,
div.dt-container button.dt-button:hover {
    border-color: #b5cde9 !important;
    background: #ffffff !important;
    color: #083a77 !important;
}

div.dt-container .dt-scroll {
    border: 1px solid #dfe9f5;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

div.dt-container .dt-scroll-head {
    border-bottom: 1px solid #dfe9f5;
}

div.dt-container .dt-scroll-body {
    scrollbar-width: thin;
    scrollbar-color: #b8cae2 #f3f7fd;
}

div.dt-container .dt-scroll-body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

div.dt-container .dt-scroll-body::-webkit-scrollbar-track {
    background: #f3f7fd;
}

div.dt-container .dt-scroll-body::-webkit-scrollbar-thumb {
    background: #b8cae2;
    border-radius: 999px;
}

div.dt-container .dt-paging {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

div.dt-container .dt-paging .dt-paging-button {
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px !important;
    border-radius: 10px !important;
    border: 1px solid #d8e4f1 !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
    background: linear-gradient(135deg, #4386ff 0%, #2563eb 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

div.dt-container .dt-paging .dt-paging-button:hover {
    background: #eef5ff !important;
    border-color: #bfd2eb !important;
    color: #17304f !important;
}

div.dt-container .dt-paging .dt-paging-button.is-disabled,
div.dt-container .dt-paging .dt-paging-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item .page-link,
.pagination span,
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid #d8e4f1;
    background: #ffffff;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 800;
}

.pagination .active .page-link,
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #4386ff 0%, #2563eb 100%);
    border-color: transparent;
    color: #ffffff;
}

.guest-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.guest-frame {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.82fr);
    gap: 22px;
}

.guest-brand,
.guest-card {
    border-radius: 22px;
    border: 1px solid #dbe7f5;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.guest-brand {
    padding: 30px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 30%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 26%),
        rgba(255, 255, 255, 0.97);
}

.guest-card {
    padding: 28px;
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.brand-top img {
    width: 64px;
    height: 64px;
    padding: 10px;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid #dce7f4;
    background: #ffffff;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.brand-copy span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-soft);
}

.guest-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.08;
    color: var(--navy-deep);
}

.guest-text {
    margin: 0 0 22px;
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--text-soft);
}

.guest-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.guest-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.guest-stat {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #dbe7f5;
    background: rgba(255, 255, 255, 0.88);
}

.guest-stat strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
}

.guest-stat span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-soft);
}

.admin-theme-admin .admin-header,
.admin-theme-admin .module-rail,
.admin-theme-admin .admin-footer {
    background: linear-gradient(180deg, #07111f 0%, #0a1f39 52%, #123d6a 100%);
    border-color: rgba(154, 184, 255, 0.14);
    box-shadow: 0 24px 44px rgba(6, 13, 24, 0.26);
}

.admin-theme-admin .header-brand,
.admin-theme-admin .header-user {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(186, 206, 245, 0.16);
}

.admin-theme-admin .header-brand-copy span,
.admin-theme-admin .header-user-copy span {
    color: rgba(231, 239, 252, 0.9);
}

.admin-theme-admin .header-search {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(163, 190, 244, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-theme-admin .header-search-icon {
    color: rgba(243, 248, 255, 0.86);
}

.admin-theme-admin .header-search input::placeholder {
    color: rgba(230, 238, 249, 0.78);
}

.admin-theme-admin .primary-nav-link {
    color: #f8fbff;
}

.admin-theme-admin .primary-nav-link::before {
    background: rgba(255, 255, 255, 0.34);
}

.admin-theme-admin .primary-nav-link:hover,
.admin-theme-admin .primary-nav-link.is-active {
    background: rgba(255, 255, 255, 0.17);
    box-shadow: inset 0 0 0 1px rgba(186, 206, 245, 0.12);
}

.admin-theme-admin .primary-nav-link.is-active::before {
    background: linear-gradient(135deg, #35d4ff 0%, #f8b22d 100%);
}

.admin-theme-admin .rail-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(194, 214, 249, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-theme-admin .module-inline-link,
.admin-theme-admin .module-chip {
    background: #f8fbff;
    border-color: #d8e4f5;
    color: #0a3362;
    box-shadow: 0 8px 18px rgba(8, 18, 33, 0.12);
}

.admin-theme-admin .module-inline-link:hover,
.admin-theme-admin .module-chip:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #072a53;
}

.admin-theme-admin .module-inline-link.is-active,
.admin-theme-admin .module-chip.is-active,
.admin-theme-admin .module-inline-link.is-active:hover,
.admin-theme-admin .module-chip.is-active:hover {
    background: linear-gradient(135deg, #20c4d8 0%, #3e6dff 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(30, 76, 188, 0.3);
}

.admin-theme-admin .rail-account strong {
    color: #ffffff;
}

.admin-theme-admin .rail-account span {
    color: rgba(232, 241, 255, 0.88);
}

.admin-theme-admin .rail-account p {
    color: rgba(243, 247, 255, 0.96);
}

.admin-theme-admin .header-badge {
    background: rgba(245, 158, 11, 0.24);
    color: #fff4cf;
    border-color: rgba(245, 158, 11, 0.32);
}

.admin-theme-admin .context-pill {
    background: #ffffff;
    color: #0a3362;
    border-color: rgba(206, 220, 244, 0.9);
}

.branch-theme-owner .admin-header,
.branch-theme-owner .module-rail,
.branch-theme-owner .admin-footer {
    background: linear-gradient(180deg, #0a6f5b 0%, #0b5a48 58%, #07362c 100%);
    border-color: rgba(172, 245, 228, 0.16);
    box-shadow: 0 24px 44px rgba(6, 52, 42, 0.24);
}

.branch-theme-owner .header-brand,
.branch-theme-owner .header-user {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(201, 251, 239, 0.16);
}

.branch-theme-owner .header-brand-copy span,
.branch-theme-owner .header-user-copy span {
    color: rgba(228, 249, 243, 0.88);
}

.branch-theme-owner .header-search {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(185, 248, 231, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.branch-theme-owner .header-search-icon {
    color: rgba(239, 252, 248, 0.84);
}

.branch-theme-owner .header-search input::placeholder {
    color: rgba(226, 248, 241, 0.7);
}

.branch-theme-owner .header-action,
.branch-theme-owner .context-pill {
    background: #ffffff;
    color: #095140;
    border-color: rgba(198, 238, 228, 0.92);
}

.branch-theme-owner .header-action:hover {
    background: #ecfdf7;
    border-color: #caefe5;
    color: #074638;
}

.branch-theme-owner .header-badge {
    background: rgba(250, 204, 21, 0.2);
    color: #fff5bf;
    border-color: rgba(250, 204, 21, 0.3);
}

.branch-theme-owner .header-badge [data-notification-count] {
    color: #0b5a48;
}

.branch-theme-owner .primary-nav-link {
    color: rgba(243, 255, 251, 0.96);
}

.branch-theme-owner .primary-nav-link::before {
    background: rgba(255, 255, 255, 0.26);
}

.branch-theme-owner .primary-nav-link:hover,
.branch-theme-owner .primary-nav-link.is-active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(205, 249, 239, 0.14);
}

.branch-theme-owner .primary-nav-link.is-active::before {
    background: linear-gradient(135deg, #facc15 0%, #67e8f9 100%);
}

.branch-theme-owner .rail-card {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(200, 248, 237, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.branch-theme-owner .module-inline-link,
.branch-theme-owner .module-chip {
    background: #f7fffc;
    border-color: #d2efe7;
    color: #0b5a48;
    box-shadow: 0 8px 18px rgba(5, 42, 34, 0.12);
}

.branch-theme-owner .module-inline-link:hover,
.branch-theme-owner .module-chip:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #084537;
}

.branch-theme-owner .module-inline-link.is-active,
.branch-theme-owner .module-chip.is-active,
.branch-theme-owner .module-inline-link.is-active:hover,
.branch-theme-owner .module-chip.is-active:hover {
    background: linear-gradient(135deg, #19c39c 0%, #0ea5a6 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(12, 110, 90, 0.28);
}

.branch-theme-owner .rail-account strong {
    color: #ffffff;
}

.branch-theme-owner .rail-account span {
    color: rgba(225, 249, 242, 0.88);
}

.branch-theme-owner .rail-account p {
    color: rgba(241, 255, 251, 0.94);
}

.branch-theme-employee .admin-header,
.branch-theme-employee .module-rail,
.branch-theme-employee .admin-footer {
    background: linear-gradient(180deg, #5f225f 0%, #4a1f55 56%, #30163d 100%);
    border-color: rgba(244, 189, 234, 0.16);
    box-shadow: 0 24px 44px rgba(45, 18, 53, 0.24);
}

.branch-theme-employee .header-brand,
.branch-theme-employee .header-user {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(248, 213, 241, 0.16);
}

.branch-theme-employee .header-brand-copy span,
.branch-theme-employee .header-user-copy span {
    color: rgba(251, 232, 248, 0.88);
}

.branch-theme-employee .header-search {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(248, 201, 239, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.branch-theme-employee .header-search-icon {
    color: rgba(255, 240, 252, 0.84);
}

.branch-theme-employee .header-search input::placeholder {
    color: rgba(248, 223, 244, 0.74);
}

.branch-theme-employee .header-action,
.branch-theme-employee .context-pill {
    background: #ffffff;
    color: #4a1f55;
    border-color: rgba(242, 210, 238, 0.92);
}

.branch-theme-employee .header-action:hover {
    background: #fff4fc;
    border-color: #f6d7f1;
    color: #3c1844;
}

.branch-theme-employee .header-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fff5cb;
    border-color: rgba(251, 191, 36, 0.28);
}

.branch-theme-employee .header-badge [data-notification-count] {
    color: #5f225f;
}

.branch-theme-employee .primary-nav-link {
    color: rgba(255, 244, 253, 0.96);
}

.branch-theme-employee .primary-nav-link::before {
    background: rgba(255, 255, 255, 0.26);
}

.branch-theme-employee .primary-nav-link:hover,
.branch-theme-employee .primary-nav-link.is-active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(248, 214, 242, 0.14);
}

.branch-theme-employee .primary-nav-link.is-active::before {
    background: linear-gradient(135deg, #fb7185 0%, #facc15 100%);
}

.branch-theme-employee .rail-card {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(248, 216, 243, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.branch-theme-employee .module-inline-link,
.branch-theme-employee .module-chip {
    background: #fff8fe;
    border-color: #f2dced;
    color: #4a1f55;
    box-shadow: 0 8px 18px rgba(43, 19, 48, 0.12);
}

.branch-theme-employee .module-inline-link:hover,
.branch-theme-employee .module-chip:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #3a1842;
}

.branch-theme-employee .module-inline-link.is-active,
.branch-theme-employee .module-chip.is-active,
.branch-theme-employee .module-inline-link.is-active:hover,
.branch-theme-employee .module-chip.is-active:hover {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(146, 52, 115, 0.28);
}

.branch-theme-employee .rail-account strong {
    color: #ffffff;
}

.branch-theme-employee .rail-account span {
    color: rgba(252, 232, 249, 0.88);
}

.branch-theme-employee .rail-account p {
    color: rgba(255, 245, 254, 0.94);
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.otp-input {
    text-align: center;
    letter-spacing: 0.36em;
}

@media (max-width: 1320px) {
    .admin-workspace {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 1120px) {
    .admin-header-top,
    .admin-header-nav,
    .panel-header,
    .hero-head,
    .list-head,
    .panel-head,
    .guest-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-search,
    .context-pills,
    .header-actions,
    .hero-right {
        width: 100%;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .admin-workspace,
    .content-grid,
    .status-shell,
    .guest-frame {
        grid-template-columns: 1fr;
    }

    .module-rail {
        order: 2;
    }

    .admin-main {
        order: 1;
    }
}

@media (max-width: 920px) {
    .toolbar-grid,
    .field-grid,
    .field-grid-transaction,
    .stats-grid,
    .lower-grid,
    .guest-stats {
        grid-template-columns: 1fr;
    }

    .field-span-6,
    .field-span-3,
    .field-span-2 {
        grid-column: span 1;
    }

    .module-chip-grid {
        grid-template-columns: 1fr 1fr;
    }

    .button-row,
    .button-row-right,
    .toolbar-actions,
    .otp-row,
    .action-row,
    .data-row-top,
    .status-item,
    .status-left,
    .list-item {
        align-items: stretch;
        flex-direction: column;
    }

    .workspace-card,
    .header-user {
        width: 100%;
    }

    .report-filter-form {
        width: 100%;
    }

    .report-filter-group {
        min-width: 0;
        width: 100%;
    }

    .wallet-summary-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-app {
        padding: 8px 8px 78px;
    }

    .admin-header {
        border-radius: 16px;
    }

    .hero-card,
    .toolbar-card,
    .panel-card,
    .list-card,
    .admin-panel,
    .guest-brand,
    .guest-card {
        padding: 14px;
        border-radius: 16px;
    }

    .guest-shell {
        padding: 14px;
    }

    .guest-title {
        font-size: 1.72rem;
    }

    .panel-header h1 {
        font-size: 1.46rem;
    }

    .admin-footer {
        left: 0;
        right: 0;
        bottom: 0;
        padding: 11px 14px;
        font-size: 0.68rem;
        text-align: center;
        letter-spacing: 0.08em;
    }

    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-sm {
        width: 100%;
    }
}
