:root {
    --app-ink: #10273a;
    --app-muted: #6a7b8e;
    --app-line: #dde6ee;
    --app-surface: rgba(255, 255, 255, 0.86);
    --app-surface-strong: #ffffff;
    --app-primary: #0f4c81;
    --app-primary-strong: #0a3356;
    --app-accent: #1c8c7b;
    --app-success: #127a5b;
    --app-danger: #b42318;
    --app-warning: #a16207;
    --app-shadow: 0 24px 60px rgba(16, 39, 58, 0.12);
    --app-radius: 22px;
}

body.app-body {
    margin: 0;
    color: var(--app-ink);
    background:
        radial-gradient(circle at top left, rgba(28, 140, 123, 0.10), transparent 26%),
        radial-gradient(circle at top right, rgba(15, 76, 129, 0.10), transparent 22%),
        linear-gradient(180deg, #f4f8fb 0%, #ecf2f7 100%);
    min-height: 100vh;
}

body, .table, .form-control, .form-select, .btn {
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

.app-shell {
    max-width: 1320px;
}

.app-navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(221, 230, 238, 0.9);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--app-ink);
}

.app-brand:hover {
    color: var(--app-primary-strong);
}

.app-brand strong {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.app-brand small {
    display: block;
    color: var(--app-muted);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.app-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary-strong), var(--app-primary));
    box-shadow: 0 12px 26px rgba(15, 76, 129, 0.24);
}

.app-nav-links {
    gap: 6px;
    margin-left: 24px;
}

.app-nav-links .nav-link {
    color: var(--app-ink);
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 16px;
}

.app-nav-links .nav-link:hover,
.app-nav-links .nav-link:focus {
    color: var(--app-primary-strong);
    background: rgba(15, 76, 129, 0.08);
}

.app-topbar-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

@media (min-width: 1200px) {
    .app-topbar-tools {
        margin-top: 0;
    }
}

.app-user-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 16px;
    background: rgba(15, 76, 129, 0.07);
    min-width: 180px;
}

.app-user-name {
    font-weight: 700;
    color: var(--app-ink);
}

.app-user-chip small {
    color: var(--app-muted);
}

.app-main {
    padding-top: 32px;
    padding-bottom: 48px;
}

.app-footer {
    padding: 24px 0 40px;
    color: var(--app-muted);
    font-size: 0.92rem;
}

.app-alert {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--app-shadow);
}

.page-hero {
    margin-bottom: 24px;
    padding: 24px 28px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 24%),
        linear-gradient(135deg, #0f3553 0%, #0f4c81 58%, #1b726e 100%);
    color: #fff;
    box-shadow: var(--app-shadow);
}

/* Login page */
.auth-screen {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f6f9fc 0%, #e9eff6 100%);
    padding: 20px 0;
}

.auth-shell {
    width: min(800px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    padding: 0.75rem;
}

.auth-showcase,
.auth-panel {
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(13, 47, 84, 0.09);
    box-shadow: 0 18px 38px rgba(16, 39, 58, 0.09);
}

.auth-showcase {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-showcase h1 {
    font-size: clamp(1.35rem, 2.1vw, 1.68rem);
    margin: 0;
    font-weight: 800;
    color: var(--app-primary-strong);
}

.auth-showcase p {
    color: var(--app-muted);
    line-height: 1.5;
}

.auth-point-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.auth-point {
    background: rgba(15, 76, 129, 0.05);
    border-radius: 12px;
    padding: 11px;
}

.auth-point strong {
    font-size: 0.92rem;
    color: var(--app-primary);
}

.auth-point span {
    font-size: 0.83rem;
    color: #5f6d7d;
}

.auth-panel {
    padding: 20px 16px;
}

.auth-panel h4 {
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: var(--app-primary);
}

.auth-panel p {
    margin-bottom: 1.25rem;
    color: var(--app-muted);
}

.auth-panel .form-control {
    border-radius: 12px;
    padding: 0.72rem 0.85rem;
}

.auth-panel .btn {
    border-radius: 12px;
    padding: 0.82rem 1.1rem;
    font-weight: 700;
}

.auth-panel .overline-badge {
    background: rgba(13, 47, 84, 0.07);
    color: var(--app-primary-strong);
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-panel a {
    color: var(--app-primary);
}

/* Ensure login badge and Bismillah text are visible on white surfaces */
.auth-showcase .page-badge,
.auth-showcase .overline-badge {
    background: rgba(15, 76, 129, 0.12);
    color: #0f3458;
    font-weight: 700;
}

.bismillah-text {
    color: #0f3458;
    font-weight: 700;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 16px;
    }

    .auth-showcase,
    .auth-panel {
        padding: 20px;
    }

    .auth-showcase {
        text-align: center;
    }

    .auth-point-grid {
        grid-template-columns: 1fr;
    }
}

.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero .hero-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-hero p,
.page-hero .hero-text {
    margin: 10px 0 0;
    color: rgba(255,255,255,0.78);
}

.page-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.page-badge,
.overline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card,
.surface-card,
.panel-card {
    border: 0;
    border-radius: var(--app-radius);
    background: var(--app-surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--app-shadow);
}

.card .card-body,
.surface-card .card-body,
.panel-card .card-body {
    padding: 1.5rem;
}

.table-responsive {
    border-radius: 20px;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--app-muted);
    background: #f5f8fb;
    border-bottom-width: 1px;
}

.table tbody tr {
    border-color: #edf2f7;
}

.table tbody tr:hover {
    background: rgba(15, 76, 129, 0.03);
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 14px;
    border: 1px solid var(--app-line);
    padding: 0.8rem 0.95rem;
    background: rgba(255,255,255,0.92);
    color: var(--app-ink);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(15, 76, 129, 0.48);
    box-shadow: 0 0 0 0.25rem rgba(15, 76, 129, 0.12);
}

.form-label {
    color: var(--app-ink);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.btn {
    border-radius: 14px;
    font-weight: 700;
    padding: 0.78rem 1.1rem;
    border-width: 1px;
}

.btn-sm {
    border-radius: 12px;
    padding: 0.5rem 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--app-primary-strong), var(--app-primary));
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(15, 76, 129, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #082a45, #0d426f);
    border-color: transparent;
}

.btn-outline-primary {
    color: var(--app-primary);
    border-color: rgba(15, 76, 129, 0.18);
    background: rgba(255,255,255,0.8);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-success:hover,
.btn-outline-success:focus {
    color: #fff;
}

.btn-outline-secondary {
    color: var(--app-ink);
    border-color: rgba(106, 123, 142, 0.2);
    background: rgba(255,255,255,0.8);
}

.btn-outline-success {
    color: var(--app-success);
    border-color: rgba(18, 122, 91, 0.2);
    background: rgba(255,255,255,0.8);
}

.pagination .page-link {
    border: 0;
    color: var(--app-ink);
    background: rgba(255,255,255,0.88);
    border-radius: 12px;
    margin-right: 6px;
    box-shadow: 0 10px 20px rgba(16, 39, 58, 0.06);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--app-primary-strong), var(--app-primary));
    color: #fff;
}

.section-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    margin: 6px 0 0;
    color: var(--app-muted);
}

.info-grid {
    display: grid;
    gap: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

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

.info-row strong,
.info-row dt {
    color: var(--app-ink);
}

.info-row span,
.info-row dd,
.info-row small {
    color: var(--app-muted);
}

.auth-screen {
    min-height: calc(100vh - 220px);
    display: grid;
    place-items: center;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 24px;
    width: min(1100px, 100%);
}

.auth-showcase,
.auth-panel {
    border-radius: 28px;
    box-shadow: var(--app-shadow);
}

.auth-showcase {
    color: #fff;
    padding: 36px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 28%),
        linear-gradient(135deg, #0d2d47 0%, #0f4c81 55%, #1c8c7b 100%);
}

.auth-showcase h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 14px;
}

.auth-showcase p {
    color: rgba(255,255,255,0.8);
    max-width: 540px;
}

.bismillah-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    text-align: center;
    direction: rtl;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.auth-point-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.auth-point {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
}

.auth-point strong {
    display: block;
    margin-bottom: 4px;
}

.auth-panel {
    background: rgba(255,255,255,0.92);
    padding: 28px;
}

.auth-panel h4 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-panel p {
    color: var(--app-muted);
    margin-bottom: 20px;
}

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

.profile-photo-card img,
.verification-photo img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--app-shadow);
}

.verification-status-card {
    border-radius: 22px;
    padding: 18px 20px;
}

.verification-status-card.valid {
    background: linear-gradient(135deg, #e8fff2, #d8f6ea);
    color: #0f6b47;
}

.verification-status-card.invalid {
    background: linear-gradient(135deg, #fff1f1, #ffe3e3);
    color: var(--app-danger);
}

.id-card-preview {
    border-radius: 24px;
    border: 1px solid rgba(11, 44, 69, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
    padding: 24px;
    max-width: 760px;
    box-shadow: var(--app-shadow);
}

.id-header {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--app-primary-strong);
    margin-bottom: 18px;
}

.id-body {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    gap: 18px;
    align-items: center;
}

.id-photo img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #dce5ee;
}

.id-info {
    display: grid;
    gap: 8px;
    color: var(--app-ink);
}

.id-info div {
    padding-bottom: 8px;
    border-bottom: 1px solid #eef3f8;
}

.id-info div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.id-qr img {
    width: 110px;
    height: 110px;
}

.dashboard-hero {
    border: 0;
    border-radius: 24px;
    color: #fff;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 28%), linear-gradient(135deg, #0b2c45 0%, #114c6d 55%, #1d6f7f 100%);
    overflow: hidden;
}

.dashboard-hero .lead,
.dashboard-hero .text-muted {
    color: rgba(255, 255, 255, 0.82) !important;
}

.dashboard-hero .btn-outline-secondary {
    color: #f5fbff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-hero .btn-outline-secondary:hover,
.dashboard-hero .btn-outline-secondary:focus {
    color: #0b2c45;
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.92);
}

.dashboard-kpi {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 18px 38px rgba(11, 44, 69, 0.08);
}

.dashboard-kpi .metric-label {
    color: #6b7b8c;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-kpi .metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0b2c45;
    line-height: 1.1;
}

.dashboard-kpi .metric-note {
    color: #6b7b8c;
    font-size: 0.92rem;
}

.dashboard-panel {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(11, 44, 69, 0.08);
}

.dashboard-panel .panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0b2c45;
}

.dashboard-panel .panel-subtitle {
    color: #6b7b8c;
    font-size: 0.92rem;
}

.health-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#b9ffcf var(--progress), rgba(255,255,255,0.18) 0);
    padding: 10px;
    margin-left: auto;
}

.health-ring::before {
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(11, 44, 69, 0.88);
    display: block;
}

.health-ring-value {
    position: absolute;
    color: #fff;
    text-align: center;
}

.health-ring-value strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1;
}

.health-ring-value span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
}

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

.health-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f6f9fc;
}

.health-item strong {
    color: #0b2c45;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
}

.status-pill.good {
    background: #e6f8ec;
    color: #0b7a35;
}

.status-pill.bad {
    background: #ffe8e8;
    color: #b42318;
}

.metric-bars {
    display: grid;
    gap: 12px;
}

.metric-bar-row {
    display: grid;
    gap: 6px;
}

.metric-bar-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
}

.metric-bar-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b2c45, #2aa67a);
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.quick-action-card {
    display: block;
    border-radius: 18px;
    padding: 16px;
    text-decoration: none;
    background: #f7fafc;
    color: #0b2c45;
    border: 1px solid #e4ebf3;
}

.quick-action-card:hover {
    background: #eef5fb;
}

.quick-action-card strong {
    display: block;
    margin-bottom: 4px;
}

.dashboard-mini-list {
    display: grid;
    gap: 12px;
}

.dashboard-mini-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

.dashboard-mini-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-mini-item strong,
.dashboard-mini-item span:first-child {
    color: #0b2c45;
}

.dashboard-mini-item small,
.dashboard-mini-item span:last-child {
    color: #6b7b8c;
}

.scanner-shell {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0b2c45;
    min-height: 280px;
}

.scanner-video {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    background: #0b2c45;
}

.scanner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scanner-frame {
    width: min(68vw, 240px);
    height: min(68vw, 240px);
    border: 3px solid rgba(255,255,255,0.9);
    border-radius: 20px;
    box-shadow: 0 0 0 9999px rgba(4, 12, 24, 0.35);
}

.scanner-status {
    font-size: 0.92rem;
    color: #6b7b8c;
}

@media (max-width: 1199.98px) {
    .auth-shell,
    .page-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .health-ring {
        margin: 0 auto;
    }

    .id-body {
        grid-template-columns: 1fr;
    }

    .id-photo img,
    .id-qr img {
        margin: 0 auto;
        display: block;
    }
}

.auth-screen.auth-screen-photo {
    position: relative;
    padding: 12px;
}

.auth-screen.auth-screen-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(7, 26, 39, 0.82), rgba(12, 50, 71, 0.58)),
        url('../images/IMG_4547.jpg') center center / cover no-repeat;
    box-shadow: var(--app-shadow);
}

.auth-screen.auth-screen-photo .auth-shell {
    position: relative;
    z-index: 1;
}

.auth-screen.auth-screen-photo .auth-showcase {
    background:
        linear-gradient(180deg, rgba(6, 23, 36, 0.78), rgba(7, 30, 45, 0.64));
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 42px rgba(5, 17, 28, 0.24);
}

.auth-screen.auth-screen-photo .auth-panel {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(14px);
}

.auth-screen.auth-screen-photo .page-badge {
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.14);
    color: #f5fbff;
}

.auth-screen.auth-screen-photo .auth-point {
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.12);
}

.auth-screen.auth-screen-photo .auth-point strong,
.auth-screen.auth-screen-photo .auth-showcase h1 {
    color: #ffffff;
}

.auth-screen.auth-screen-photo .auth-showcase p,
.auth-screen.auth-screen-photo .auth-point span,
.auth-screen.auth-screen-photo .bismillah-text {
    color: rgba(255,255,255,0.9);
}

@media (max-width: 1199.98px) {
    .auth-screen.auth-screen-photo::before {
        border-radius: 24px;
    }
}

.id-preview-shell {
    border: 0;
    background: radial-gradient(circle at top right, rgba(22, 110, 126, 0.08), transparent 24%), linear-gradient(180deg, #fbfdff 0%, #f1f7fb 100%);
}

.id-preview-stage {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 6px;
}

.id-preview-stage .agid-card {
    width: min(100%, 760px);
    box-shadow: 0 28px 70px rgba(10, 34, 56, 0.16);
}

.agid-card {
    position: relative;
    border-radius: 30px;
    border: 1px solid rgba(15, 49, 77, 0.12);
    background:
        radial-gradient(circle at top right, rgba(26, 136, 130, 0.18), transparent 22%),
        radial-gradient(circle at bottom left, rgba(13, 53, 86, 0.10), transparent 20%),
        linear-gradient(180deg, #f9fcff 0%, #eef5fa 100%);
    overflow: hidden;
}

.agid-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.24), transparent 35%, transparent 65%, rgba(255,255,255,0.16));
    pointer-events: none;
}

.agid-topband {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #0c2f4c 0%, #12415f 45%, #1a6c77 100%);
    padding: 24px 28px 20px;
}

.agid-brandmark {
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(13, 53, 86, 0.1), 0 10px 22px rgba(7, 18, 31, 0.18);
}

.agid-brandcopy {
    width: auto;
    flex: 1 1 auto;
}

.agid-status {
    box-shadow: 0 10px 20px rgba(9, 51, 31, 0.18);
}

.agid-body {
    position: relative;
    z-index: 1;
}

.agid-photo-frame,
.agid-qr-shell,
.agid-security {
    box-shadow: 0 16px 26px rgba(14, 41, 66, 0.08);
}

.agid-name {
    letter-spacing: -0.03em;
}

.agid-meta .value {
    word-break: break-word;
}

.agid-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0d3556 0%, #123e61 100%);
}

.agid-footer span:last-child {
    text-align: right;
}

@media (max-width: 991.98px) {
    .id-preview-stage .agid-card {
        min-width: 720px;
    }
}

.agcard-preview-stack {
    display: grid;
    gap: 24px;
    justify-items: center;
}

.agcard-side {
    width: 100%;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.agcard-side-label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #4b7a5b;
}

.agcard {
    position: relative;
    width: min(100%, 760px);
    aspect-ratio: 85.6 / 54;
    border-radius: 24px;
    border: 1px solid #b7dac2;
    background: linear-gradient(180deg, #fbfdfb 0%, #f1f7f3 100%);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(12, 33, 21, 0.14);
}

.agcard-front::before,
.agcard-back::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(47, 170, 92, 0.12), transparent 28%);
    pointer-events: none;
}

.agcard-bismillah {
    padding-top: 10px;
    text-align: center;
    color: #0f8d54;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.agcard-header {
    padding: 0 18px;
}

.agcard-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agcard-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #cae6d1;
    background: #fff;
    flex: 0 0 auto;
}

.agcard-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agcard-brand-title {
    font-size: clamp(1rem, 1.8vw, 1.75rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #161f1d;
    line-height: 1.05;
}

.agcard-brand-rule {
    margin-top: 10px;
    height: 1px;
    background: #b7dac2;
}

.agcard-main {
    padding: 14px 18px 0;
}

.agcard-identity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.agcard-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #cae6d1;
    background: #fff;
    flex: 0 0 auto;
}

.agcard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agcard-member-name {
    font-size: clamp(0.96rem, 1.4vw, 1.3rem);
    font-weight: 800;
    color: #2c3734;
    line-height: 1.1;
}

.agcard-aims {
    margin-top: 4px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #28a75b;
}

.agcard-content-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 142px;
    gap: 14px;
    align-items: start;
}

.agcard-info-panel {
    min-width: 0;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #dce9e0;
    border-radius: 16px;
    padding: 12px;
}

.agcard-idbox {
    background: #f4faf5;
    border: 1px solid #cde4d5;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.agcard-idbox-label {
    font-size: 0.7rem;
    color: #55a66b;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.agcard-idbox-value {
    margin-top: 3px;
    font-size: 1rem;
    font-weight: 900;
    color: #21312d;
    word-break: break-word;
}

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

.agcard-detail-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.agcard-detail-item .icon {
    color: #169552;
    font-size: 1rem;
    line-height: 1;
    margin-top: 2px;
}

.agcard-detail-item .label {
    display: block;
    font-size: 0.64rem;
    color: #7b8f85;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.agcard-detail-item strong {
    display: block;
    margin-top: 2px;
    font-size: 0.86rem;
    color: #253430;
    line-height: 1.2;
    word-break: break-word;
}

.agcard-qr-panel {
    position: relative;
    text-align: center;
}

.agcard-qr-panel::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #26b35d;
    border: 2px solid #f1f7f3;
}

.agcard-qr-box,
.agcard-back-qr-shell {
    background: #fff;
    border: 1px solid #d7e6db;
    border-radius: 12px;
    padding: 10px;
}

.agcard-qr-box img,
.agcard-back-qr-shell img {
    width: 100%;
    display: block;
}

.agcard-verify-copy {
    margin-top: 8px;
    font-size: 0.76rem;
    font-weight: 900;
    color: #3e9a56;
    line-height: 1.1;
}

.agcard-footer {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #27a858;
    font-size: 0.85rem;
    font-weight: 800;
}

.agcard-active-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #29b15c;
    display: inline-block;
}

.agcard-back {
    padding: 18px;
}

.agcard-back-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.agcard-back-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agcard-back-brand img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #cfe4d6;
    background: #fff;
}

.agcard-back-title {
    font-size: 1.08rem;
    font-weight: 900;
    color: #1b2a28;
    line-height: 1.12;
}

.agcard-back-subtitle {
    margin-top: 4px;
    font-size: 0.76rem;
    color: #75877f;
}

.agcard-back-chip {
    background: #edf7ef;
    border: 1px solid #d4ead9;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.68rem;
    font-weight: 900;
    color: #2f7c49;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.agcard-back-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    gap: 14px;
}

.agcard-back-section,
.agcard-back-item {
    background: #fff;
    border: 1px solid #d9e7de;
    border-radius: 12px;
}

.agcard-back-section {
    padding: 12px;
    margin-bottom: 12px;
}

.section-label {
    font-size: 0.64rem;
    color: #7c8e86;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-value {
    margin-top: 4px;
    font-size: 0.98rem;
    font-weight: 900;
    color: #1f312d;
}

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

.agcard-back-item {
    padding: 10px 12px;
    min-height: 74px;
}

.agcard-back-item-wide {
    grid-column: 1 / span 2;
}

.agcard-back-item span {
    display: block;
    font-size: 0.64rem;
    color: #7a8c84;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.agcard-back-item strong {
    display: block;
    margin-top: 4px;
    font-size: 0.86rem;
    color: #223430;
    line-height: 1.2;
    word-break: break-word;
}

.agcard-back-note {
    margin-top: 12px;
    background: #f3f8f4;
    border: 1px solid #dae8df;
    border-radius: 12px;
    padding: 12px;
    font-size: 0.74rem;
    line-height: 1.5;
    color: #5d7068;
}

.agcard-back-right-text {
    margin-top: 10px;
    font-size: 0.74rem;
    line-height: 1.5;
    color: #60736b;
}

.agcard-back-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #26a95a;
    color: #f7fffa;
    padding: 10px 18px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

@media (max-width: 991.98px) {
    .agcard {
        min-width: 720px;
    }
}

.agcard-authority-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.agcard-authority-pill {
    background: #edf7ef;
    border: 1px solid #d4ead9;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #2f7c49;
    letter-spacing: 0.08em;
}

.agcard-authority-strip {
    font-size: 0.72rem;
    font-weight: 800;
    color: #687d73;
    letter-spacing: 0.05em;
}

.agcard-signature-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.agcard-signature-block {
    background: #fff;
    border: 1px solid #d9e7de;
    border-radius: 12px;
    padding: 10px 12px;
}

.sig-label {
    display: block;
    font-size: 0.64rem;
    color: #7a8c84;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sig-line {
    display: block;
    height: 1px;
    background: #c9dad0;
    margin: 30px 0 8px;
}

.agcard-signature-block strong {
    font-size: 0.78rem;
    color: #263833;
}

@media (max-width: 991.98px) {
    .agcard-authority-row,
    .agcard-signature-panel {
        grid-template-columns: 1fr;
        display: grid;
    }
}

body.app-body {
    overflow-x: hidden;
}

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

.app-workspace {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 24px;
}

.app-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    width: 100%;
    min-height: calc(100vh - 40px);
    background: linear-gradient(180deg, rgba(8, 32, 50, 0.96) 0%, rgba(10, 44, 64, 0.96) 58%, rgba(18, 102, 90, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(8, 28, 43, 0.24);
    color: #fff;
    overflow: hidden;
}

.app-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 18px 20px;
}

.app-sidebar-head {
    padding: 0 8px 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar .app-brand,
.app-mobilebar .app-brand {
    color: #fff;
}

.app-sidebar .app-brand small,
.app-mobilebar .app-brand small {
    color: rgba(255, 255, 255, 0.66);
}

.app-sidebar .app-brand-mark,
.app-mobilebar .app-brand-mark {
    background: linear-gradient(135deg, #e8fff4, #b6f0d1);
    color: #0d3f34;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
}

.app-sidebar-section {
    margin-bottom: 18px;
}

.app-sidebar-label {
    display: block;
    padding: 0 10px;
    margin-bottom: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(226, 243, 236, 0.7);
}

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

.app-nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.app-nav-link:hover,
.app-nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.app-nav-link.active {
    background: linear-gradient(135deg, rgba(236, 255, 244, 0.16), rgba(52, 188, 120, 0.18));
    border-color: rgba(147, 243, 188, 0.22);
    box-shadow: inset 0 0 0 1px rgba(162, 246, 197, 0.12);
}

.app-nav-copy {
    display: grid;
    gap: 3px;
}

.app-nav-copy strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.app-nav-copy small {
    color: rgba(220, 241, 231, 0.7);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.app-sidebar-card {
    margin-top: auto;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-user {
    display: grid;
    gap: 4px;
}

.app-sidebar-user strong {
    font-size: 1rem;
    color: #fff;
}

.app-sidebar-user small,
.app-sidebar-note {
    color: rgba(228, 242, 236, 0.72);
    margin: 0;
}

.app-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.app-content-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(221, 230, 238, 0.9);
    box-shadow: 0 16px 40px rgba(16, 39, 58, 0.08);
    backdrop-filter: blur(14px);
}

.app-content-kicker {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--app-accent);
}

.app-content-title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.app-content-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-content-main {
    padding-top: 0;
    padding-bottom: 0;
}

.app-footer {
    margin-top: auto;
    padding: 16px 4px 8px;
}

.app-mobilebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 0;
}

@media (max-width: 1199.98px) {
    .app-workspace {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    .app-workspace {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .app-sidebar {
        position: static;
        min-height: auto;
        margin-bottom: 8px;
    }

    .app-content-top {
        padding: 18px 18px;
        flex-direction: column;
        align-items: flex-start;
    }
}

.app-topbar {
    padding-top: 1rem;
    background: transparent;
}

.app-topbar-panel {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(221, 230, 238, 0.88);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(16, 39, 58, 0.12);
    backdrop-filter: blur(18px);
    padding: 0.9rem 1rem;
}

.app-topbar-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-menu-toggle {
    border: 1px solid rgba(15, 76, 129, 0.16);
    border-radius: 14px;
    padding: 0.5rem 0.75rem;
}

.app-menu-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(15, 76, 129, 0.14);
}

.app-menu-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.app-nav-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-nav-cluster-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--app-muted);
    padding-left: 0.25rem;
}

.app-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-left: 0;
}

.app-nav-links .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--app-ink);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.app-nav-links .nav-link:hover,
.app-nav-links .nav-link:focus {
    color: var(--app-primary-strong);
    background: rgba(15, 76, 129, 0.08);
    border-color: rgba(15, 76, 129, 0.12);
}

.app-nav-links .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary-strong), var(--app-primary));
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.22);
}

.app-topbar-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.app-topbar-button {
    min-width: 110px;
    border-radius: 999px;
    padding-inline: 1rem;
}

.app-topbar-meta {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(221, 230, 238, 0.9);
    align-items: center;
    gap: 1rem;
}

.app-topbar-meta-label {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(28, 140, 123, 0.1);
    color: var(--app-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-topbar-meta-copy {
    color: var(--app-muted);
    font-size: 0.92rem;
}

.app-user-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 0.95rem;
    border-radius: 18px;
    background: rgba(15, 76, 129, 0.07);
    min-width: 220px;
    border: 1px solid rgba(15, 76, 129, 0.08);
}

.app-user-name {
    font-weight: 800;
    color: var(--app-ink);
}

.app-user-chip small {
    color: var(--app-muted);
}

@media (min-width: 1200px) {
    .app-topbar-panel {
        padding: 1rem 1.15rem;
    }

    .app-menu-shell {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 1rem;
        margin-top: 0;
    }

    .app-nav-cluster {
        gap: 0.35rem;
    }

    .app-nav-cluster + .app-nav-cluster {
        padding-left: 1rem;
        border-left: 1px solid rgba(221, 230, 238, 0.9);
    }

    .app-topbar-tools {
        margin-top: 0;
        padding-left: 1rem;
        border-left: 1px solid rgba(221, 230, 238, 0.9);
    }
}

@media (max-width: 1199.98px) {
    .app-topbar-panel {
        border-radius: 24px;
    }

    .app-topbar-main {
        flex-wrap: wrap;
    }

    .app-brand {
        flex: 1 1 auto;
    }

    .app-topbar .navbar-collapse {
        width: 100%;
    }
}

.app-topbar {
    padding-top: 0.55rem;
    background: transparent;
}

.app-topbar-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(221, 230, 238, 0.92);
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(16, 39, 58, 0.08);
    backdrop-filter: blur(14px);
    padding: 0.55rem 0.8rem;
}

.app-topbar-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.app-brand {
    gap: 0.75rem;
    min-width: 0;
}

.app-brand-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(15, 76, 129, 0.12);
    box-shadow: 0 8px 20px rgba(16, 39, 58, 0.10);
    background: #fff;
}

.app-brand-mark {
    display: none;
}

.app-brand strong {
    font-size: 0.96rem;
    line-height: 1.1;
}

.app-brand small {
    font-size: 0.7rem;
    line-height: 1.15;
}

.app-menu-toggle {
    border: 1px solid rgba(15, 76, 129, 0.16);
    border-radius: 12px;
    padding: 0.4rem 0.65rem;
}

.app-menu-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 76, 129, 0.12);
}

.app-menu-shell {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    margin-top: 0.85rem;
}

.app-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.app-nav-group-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--app-muted);
    padding-left: 0.15rem;
}

.app-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-left: 0;
}

.app-nav-links .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    color: var(--app-ink);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.48rem 0.82rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(221, 230, 238, 0.7);
    transition: 0.2s ease;
}

.app-nav-links .nav-link:hover,
.app-nav-links .nav-link:focus {
    color: var(--app-primary-strong);
    background: rgba(15, 76, 129, 0.08);
    border-color: rgba(15, 76, 129, 0.12);
}

.app-nav-links .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary-strong), var(--app-primary));
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(15, 76, 129, 0.16);
}

.app-topbar-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.1rem;
}

.app-topbar-button {
    min-width: 96px;
    border-radius: 999px;
    padding-inline: 0.9rem;
}

.app-user-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 0.08rem;
    padding: 0.5rem 0.8rem;
    border-radius: 14px;
    background: rgba(15, 76, 129, 0.06);
    min-width: 190px;
    border: 1px solid rgba(15, 76, 129, 0.06);
}

.app-user-name {
    font-weight: 800;
    color: var(--app-ink);
    font-size: 0.88rem;
}

.app-user-chip small {
    color: var(--app-muted);
    font-size: 0.72rem;
}

@media (min-width: 1200px) {
    .app-topbar-panel {
        padding: 0.55rem 0.85rem;
    }

    .app-menu-shell {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 0.85rem;
        margin-top: 0;
    }

    .app-nav-group {
        flex-direction: row;
        align-items: center;
        gap: 0.55rem;
    }

    .app-nav-group + .app-nav-group {
        padding-left: 0.85rem;
        border-left: 1px solid rgba(221, 230, 238, 0.9);
    }

    .app-nav-group-title {
        padding-left: 0;
        margin-bottom: 0;
    }

    .app-topbar-tools {
        margin-top: 0;
        padding-left: 0.85rem;
        border-left: 1px solid rgba(221, 230, 238, 0.9);
    }
}

@media (max-width: 1199.98px) {
    .app-topbar-panel {
        border-radius: 20px;
    }

    .app-topbar-main {
        flex-wrap: wrap;
    }

    .app-brand {
        flex: 1 1 auto;
    }

    .app-topbar .navbar-collapse {
        width: 100%;
    }
}
 

/* Dashboard collapsible */
.dashboard-collapsible {
    width: 100%;
}

.dashboard-collapsible summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(221, 230, 238, 0.9);
    box-shadow: 0 12px 26px rgba(16, 39, 58, 0.08);
    font-weight: 700;
    color: var(--app-ink);
}

.dashboard-collapsible summary small {
    color: var(--app-muted);
    font-weight: 600;
}

.dashboard-collapsible summary:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(15, 76, 129, 0.14);
}

.dashboard-collapsible summary::-webkit-details-marker {
    display: none;
}

.dashboard-collapsible[open] summary {
    margin-bottom: 12px;
}
