.admin-shell {
    background:
        radial-gradient(ellipse at 88% 4%, rgba(188, 150, 86, 0.055), transparent 28rem),
        #f5f6f8;
}

.sidebar {
    z-index: 2;
    width: 258px;
    flex-basis: 258px;
    padding: 1.35rem 1rem 1.1rem;
    background: linear-gradient(165deg, #18334e 0%, #11283f 62%, #10243a 100%);
    box-shadow: 8px 0 28px rgba(18, 39, 60, 0.06);
}

.brand {
    gap: 0.8rem;
    padding: 0.2rem 0.4rem 1.45rem;
    margin-bottom: 1.45rem;
    border-color: rgba(255, 255, 255, 0.1);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(225, 195, 141, 0.32);
    border-radius: 14px;
    background: linear-gradient(145deg, #bd995e, #937340);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.brand strong {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.brand small {
    margin-top: 0.2rem;
    color: rgba(234, 239, 245, 0.56);
    font-size: 0.7rem;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.sidebar nav {
    gap: 0.28rem;
}

.nav-label {
    padding: 0 0.8rem 0.35rem;
    color: rgba(221, 230, 239, 0.45);
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.nav-label-spaced {
    margin-top: 1.35rem;
}

.sidebar nav a {
    position: relative;
    min-height: 44px;
    gap: 0.78rem;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    color: rgba(238, 243, 248, 0.7);
    font-size: 0.86rem;
    font-weight: 550;
    letter-spacing: 0.005em;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.sidebar nav a svg,
.logout-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar nav a:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
}

.sidebar nav a[aria-current="page"] {
    color: #fff;
    background: linear-gradient(90deg, rgba(201, 166, 107, 0.22), rgba(255, 255, 255, 0.07));
    border-color: rgba(236, 208, 160, 0.1);
    box-shadow: inset 3px 0 0 #d2ad70;
}

.sidebar nav a[aria-current="page"] svg {
    color: #e3c58f;
}

.sidebar-footer {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 0.15rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
    padding: 0.1rem 0.35rem;
}

.sidebar-avatar,
.topbar-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    font-weight: 700;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    background: rgba(216, 185, 132, 0.16);
    color: #e8ca94;
    font-size: 0.82rem;
}

.sidebar-user-copy {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.sidebar-user-copy strong {
    overflow: hidden;
    color: #f2f5f8;
    font-size: 0.78rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-copy small {
    color: rgba(231, 238, 245, 0.55);
    font-size: 0.7rem;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 40px;
    padding: 0.55rem 0.8rem;
    border-color: transparent;
    color: rgba(238, 243, 248, 0.62);
    font-size: 0.82rem;
}
.logout-form { width: 100%; margin: 0; }
.logout-button { width: 100%; background: transparent; font: inherit; cursor: pointer; }

.logout-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.content {
    padding: 1.7rem clamp(1.5rem, 3.4vw, 3.4rem) 3rem;
}

.topbar {
    max-width: 1500px;
    align-items: center;
    margin-bottom: 1.8rem;
    padding-bottom: 1.25rem;
    border-bottom-color: #e8ebef;
}

.topbar-eyebrow {
    display: block;
    margin-bottom: 0.4rem;
    color: #929eaa;
    font-size: 0.63rem;
    font-weight: 750;
    letter-spacing: 0.14em;
}

.topbar-eyebrow span {
    padding: 0 0.26rem;
    color: #c4a46d;
}

.topbar h1 {
    color: #1a3045;
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.045em;
}

.page-description {
    margin-top: 0.34rem;
    color: #7d8996;
    font-size: 0.84rem;
}

.topbar-actions {
    gap: 0.8rem;
}

.topbar-status {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border: 1px solid #e7ebe7;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #607368;
    font-size: 0.72rem;
    font-weight: 600;
}

.topbar-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5e9a76;
    box-shadow: 0 0 0 3px rgba(94, 154, 118, 0.12);
}

.topbar-avatar {
    width: 38px;
    height: 38px;
    border: 1px solid #e9dfcd;
    background: #f1e9da;
    color: #806841;
    font-size: 0.83rem;
}

.flash-stack,
.content > .alert {
    max-width: 1500px;
    margin-right: auto;
    margin-left: auto;
}

.stats-grid,
.dashboard-intro,
.analytics-section,
.recent-panel {
    max-width: 1500px;
    margin-right: auto;
    margin-left: auto;
}

.dashboard-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.4rem;
    padding: 1.65rem 1.8rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 85% 30%, rgba(198, 164, 106, 0.15), transparent 19rem),
        linear-gradient(112deg, #18334e 0%, #1b3b58 58%, #25435b 100%);
    box-shadow: 0 14px 28px rgba(22, 49, 74, 0.11);
    color: white;
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d8c195;
    font-size: 0.63rem;
    font-weight: 750;
    letter-spacing: 0.14em;
}

.dashboard-kicker > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1ad72;
    box-shadow: 0 0 0 4px rgba(209, 173, 114, 0.13);
}

.dashboard-intro h2 {
    margin: 0.65rem 0 0.45rem;
    color: #fff;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 650;
    line-height: 1.24;
    letter-spacing: -0.04em;
}

.dashboard-intro p {
    margin: 0;
    color: rgba(239, 244, 248, 0.7);
    font-size: 0.83rem;
}

.dashboard-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 42px;
    margin-bottom: 0.15rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(231, 207, 165, 0.38);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    color: #f4e5c8;
    font-size: 0.77rem;
    font-weight: 650;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.dashboard-action:hover {
    transform: translateY(-1px);
    border-color: rgba(231, 207, 165, 0.65);
    background: rgba(255, 255, 255, 0.13);
}

.dashboard-action svg,
.text-action svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    min-height: 152px;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.05rem 1.15rem 1rem;
    border-color: #ebedf0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(28, 45, 63, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card::after {
    display: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #e0e4e8;
    box-shadow: 0 10px 24px rgba(28, 45, 63, 0.07);
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
}

.stat-card span.stat-label {
    margin: 0;
    color: #738091;
    font-size: 0.76rem;
    font-weight: 600;
}

.stat-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #ebe4d7;
    border-radius: 10px;
    background: #f7f3eb;
    color: #a07d44;
}

.stat-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-rating .stat-icon {
    border-color: #eee5d2;
    background: #f8f3e8;
    color: #aa8549;
}

.stat-positive .stat-icon {
    border-color: #dcebe2;
    background: #edf5ef;
    color: #4f8767;
}

.stat-attention .stat-icon {
    border-color: #f0e5d7;
    background: #faf2e9;
    color: #a87944;
}

.stat-card > strong {
    color: #20374c;
    font-size: 1.8rem;
    font-weight: 720;
    line-height: 1.1;
    letter-spacing: -0.055em;
    font-variant-numeric: tabular-nums;
}

.stat-rating > strong {
    color: #906f3b;
}

.stat-positive > strong {
    color: #397653;
}

.stat-attention > strong {
    color: #a36e39;
}

.stat-card > strong .stat-unit {
    margin-left: 0.1rem;
    color: #8692a0;
    font-size: 0.88rem;
    font-weight: 550;
    letter-spacing: -0.01em;
}

.stat-card span.stat-footnote {
    margin: 0.45rem 0 0;
    color: #96a0ab;
    font-size: 0.69rem;
    font-weight: 450;
}

.analytics-section {
    margin-bottom: 1.8rem;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.section-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: #aa8b58;
    font-size: 0.6rem;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.section-heading h2,
.recent-heading h2 {
    margin: 0;
    color: #21374b;
    font-size: 1.12rem;
    font-weight: 680;
    letter-spacing: -0.03em;
}

.period-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 33px;
    padding: 0.38rem 0.65rem;
    border: 1px solid #e6e9ed;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: #697889;
    font-size: 0.69rem;
    font-weight: 600;
}

.period-pill svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #9b835b;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 0;
}

.panel {
    border-color: #e9ecef;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(28, 45, 63, 0.035);
}

.chart-panel {
    min-height: 300px;
    padding: 1.2rem 1.25rem 1rem;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.panel-heading h3 {
    color: #25394d;
    font-size: 0.88rem;
    font-weight: 680;
    letter-spacing: -0.015em;
}

.panel-heading p {
    margin: 0.25rem 0 0;
    color: #8b97a3;
    font-size: 0.7rem;
}

.chart-total {
    flex: 0 0 auto;
    color: #33495e;
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.chart-total span {
    color: #99a2ad;
    font-size: 0.66rem;
    font-weight: 500;
}

.chart-period {
    flex: 0 0 auto;
    padding: 0.32rem 0.48rem;
    border-radius: 6px;
    background: #f5f2eb;
    color: #9a7b49;
    font-size: 0.57rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.chart-canvas {
    height: 215px;
    margin-top: 0.9rem;
}

.chart-fallback {
    margin: 1rem 0 0;
    color: #8994a0;
    font-size: 0.75rem;
    text-align: center;
}

.recent-panel {
    padding: 1.2rem 1.25rem 0.25rem;
}

.recent-heading {
    align-items: flex-end;
    margin-bottom: 0.9rem;
}

.recent-heading h2 {
    font-size: 1.06rem;
}

.recent-heading p {
    margin-top: 0.3rem;
}

.text-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.38rem;
    padding: 0.35rem 0;
    color: #8b6e3d;
    font-size: 0.72rem;
    font-weight: 650;
    transition: color 0.16s ease;
}

.text-action:hover {
    color: #634b27;
}

.text-action svg {
    width: 14px;
    height: 14px;
}

.table-scroll {
    overflow-x: auto;
    margin: 0 -0.2rem;
}

.table-panel table {
    min-width: 700px;
    margin-top: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-panel th,
.table-panel td {
    padding: 0.78rem 0.68rem;
    border-bottom: 1px solid #eff1f3;
    font-size: 0.75rem;
    vertical-align: middle;
}

.table-panel th {
    color: #929da9;
    font-size: 0.59rem;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.table-panel tbody tr {
    transition: background-color 0.16s ease;
}

.table-panel tbody tr:hover {
    background: #fbfaf7;
}

.table-panel td {
    color: #556474;
}

.branch-cell {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    min-width: 165px;
}

.branch-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #ece5d8;
    border-radius: 10px;
    background: #f7f3eb;
    color: #987745;
    font-size: 0.75rem;
    font-weight: 700;
}

.branch-cell > span:last-child {
    display: grid;
    gap: 0.13rem;
}

.branch-cell strong {
    color: #304356;
    font-size: 0.74rem;
    font-weight: 650;
}

.branch-cell small {
    color: #9aa3ad;
    font-size: 0.64rem;
}

.staff-name {
    color: #556474;
    font-weight: 550;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    padding: 0.3rem 0.45rem;
    border: 1px solid #eee7d9;
    border-radius: 7px;
    background: #f8f4eb;
    color: #886b3b;
    font-size: 0.68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rating-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    stroke: none;
}

.rating-1,
.rating-2 {
    border-color: #f0e2da;
    background: #faf0ea;
    color: #a4674e;
}

.rating-4,
.rating-5 {
    border-color: #e1ebdf;
    background: #f0f6ed;
    color: #547d58;
}

.comment-cell {
    max-width: 290px;
    color: #71808e !important;
    line-height: 1.5;
}

.date-cell {
    color: #8995a1 !important;
    font-size: 0.69rem !important;
    white-space: nowrap;
}

.dashboard-empty {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    padding: 2.2rem 1rem;
    color: #8b97a3;
    text-align: center;
}

.empty-icon {
    display: grid;
    width: 40px;
    height: 40px;
    margin-bottom: 0.35rem;
    place-items: center;
    border-radius: 12px;
    background: #f6f2e9;
    color: #a18453;
}

.empty-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-empty strong {
    color: #384c60;
    font-size: 0.8rem;
}

.dashboard-empty > span:last-child {
    font-size: 0.7rem;
}

.admin-form-panel {
    margin-bottom: 1.25rem;
}

.admin-form-panel h3 {
    margin: 0 0 1rem;
    color: #25394d;
    font-size: 1rem;
    font-weight: 680;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: end;
    gap: 1rem;
}
.admin-form.staff-data-form { align-items: start; }

.admin-form.staff-edit-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    column-gap: 1.1rem;
    row-gap: 1.2rem;
}

.staff-code-field {
    display: grid;
    gap: 0.5rem;
    color: #455568;
    font-size: 0.84rem;
    font-weight: 600;
}

.staff-code-field strong {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0.65rem 0.78rem;
    border: 1px solid #e3e8ed;
    border-radius: 9px;
    background: #f7f9fb;
    color: #25394d;
    font-size: 0.86rem;
    letter-spacing: 0.025em;
}

.staff-code-field .field-hint {
    font-weight: 400;
}

.staff-edit-actions {
    display: flex;
    grid-column: 2 / -1;
    align-self: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 0.15rem;
}

.staff-edit-actions .btn {
    min-width: 145px;
}

@media (max-width: 900px) {
    .admin-form.staff-edit-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-edit-actions {
        grid-column: 1 / -1;
        padding-top: 0.8rem;
        border-top: 1px solid #edf0f3;
    }
}

@media (max-width: 560px) {
    .admin-form.staff-edit-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .staff-edit-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .staff-edit-actions .btn {
        min-width: 0;
    }
}

.admin-form .form-section-title {
    grid-column: 1 / -1;
    margin: 0;
    color: #25394d;
    font-size: 0.9rem;
}

.admin-form label {
    display: grid;
    gap: 0.5rem;
    color: #455568;
    font-size: 0.84rem;
    font-weight: 600;
}

.admin-form .form-control {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dfe4e9;
    border-radius: 9px;
    padding: 0.65rem 0.78rem;
    background: #fff;
    color: #25394d;
    font-size: 0.84rem;
}

.admin-form .field-error {
    color: var(--danger);
    font-size: 0.73rem;
}
.admin-form .field-hint {
    color: #8290a0;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.4;
}

.staff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.staff-actions form { margin: 0; }
.staff-actions .btn { min-height: 38px; padding: 0.55rem 0.75rem; font-size: 0.76rem; }
.staff-action-dialog {
    width: min(440px, calc(100% - 2rem));
    max-width: none;
    padding: 0;
    border: 1px solid #e3e9ef;
    border-radius: 18px;
    background: #fff;
    color: #26394d;
    box-shadow: 0 24px 70px rgba(13, 35, 56, 0.24);
}
.staff-action-dialog[open] { animation: staff-dialog-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.staff-action-dialog::backdrop { background: rgba(16, 35, 54, 0.42); animation: staff-backdrop-in 180ms ease-out both; }
.staff-action-dialog-content { padding: 1.6rem; }
.staff-action-dialog-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: #fceaea;
    color: #ad3c3c;
    font-size: 1.25rem;
    font-weight: 750;
}
.staff-action-dialog-icon.is-warning { background: #fff3d9; color: #8a641d; }
.logout-confirm-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.staff-action-dialog-content h2 { margin: 0 0 0.55rem; color: #20364c; font-size: 1.12rem; }
.staff-action-dialog-content p { margin: 0; color: #69798a; font-size: 0.88rem; line-height: 1.6; }
.staff-action-dialog-buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }
.staff-action-dialog-buttons .btn { min-height: 40px; padding: 0.6rem 0.95rem; font-size: 0.82rem; }
@keyframes staff-dialog-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes staff-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .staff-action-dialog[open], .staff-action-dialog::backdrop { animation: none; }
}

.form-help {
    margin: 0.8rem 0 0;
    color: #8995a1;
    font-size: 0.78rem;
}

.qr-inactive {
    color: var(--muted);
    font-size: 0.82rem;
}

.panel > h3 {
    margin: 0;
    color: #25394d;
    font-size: 0.98rem;
}

.alert {
    border-radius: 10px;
}

@media (max-width: 1100px) {
    .sidebar {
        width: 232px;
        flex-basis: 232px;
    }

    .content {
        padding-right: 1.6rem;
        padding-left: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-shell {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 0.8rem 1rem 0.7rem;
    }

    .brand {
        padding: 0.15rem 0.1rem 0.75rem;
        margin-bottom: 0.7rem;
    }

    .sidebar nav {
        display: flex;
        gap: 0.35rem;
        overflow-x: auto;
        padding-bottom: 0.3rem;
        scrollbar-width: none;
    }

    .sidebar nav::-webkit-scrollbar {
        display: none;
    }

    .nav-label {
        display: none;
    }

    .sidebar nav a {
        min-height: 38px;
        flex: 0 0 auto;
        gap: 0.42rem;
        padding: 0.5rem 0.65rem;
        font-size: 0.75rem;
    }

    .sidebar nav a svg {
        width: 16px;
        height: 16px;
    }

    .sidebar nav a[aria-current="page"] {
        box-shadow: inset 0 -2px 0 #d2ad70;
    }

    .sidebar-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-top: 0.65rem;
        padding-top: 0.6rem;
    }

    .sidebar-user {
        padding-left: 0.1rem;
    }

    .sidebar-avatar {
        width: 30px;
        height: 30px;
    }

    .logout-link {
        min-height: 34px;
        padding: 0.4rem 0.6rem;
    }

    .content {
        padding: 1.2rem 1rem 2rem;
    }

    .topbar {
        margin-bottom: 1.25rem;
        padding-bottom: 0.95rem;
    }

    .topbar-status {
        display: none;
    }

    .dashboard-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding: 1.3rem 1.2rem;
    }

    .dashboard-intro h2 {
        font-size: 1.55rem;
    }

    .dashboard-action {
        min-height: 38px;
    }

    .stats-grid {
        gap: 0.7rem;
        margin-bottom: 1.65rem;
    }

    .stat-card {
        min-height: 138px;
        padding: 0.9rem;
    }

    .chart-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .chart-panel {
        min-height: 280px;
    }

    .chart-canvas {
        height: 200px;
    }

    .recent-panel {
        padding: 1rem 0.9rem 0.2rem;
    }

    .table-panel table {
        min-width: 700px;
    }
}

@media (max-width: 480px) {
    .content {
        padding-right: 0.78rem;
        padding-left: 0.78rem;
    }

    .topbar h1 {
        font-size: 1.42rem;
    }

    .page-description {
        max-width: 270px;
        font-size: 0.76rem;
    }

    .topbar-avatar {
        width: 34px;
        height: 34px;
    }

    .dashboard-intro {
        border-radius: 14px;
    }

    .dashboard-intro h2 {
        font-size: 1.38rem;
    }

    .dashboard-intro p {
        max-width: 275px;
        font-size: 0.75rem;
    }

    .intro-break {
        display: none;
    }

    .stats-grid {
        gap: 0.55rem;
    }

    .stat-card {
        min-height: 130px;
        padding: 0.75rem;
        border-radius: 12px;
    }

    .stat-card span.stat-label {
        font-size: 0.68rem;
    }

    .stat-card > strong {
        font-size: 1.52rem;
    }

    .stat-card span.stat-footnote {
        font-size: 0.61rem;
    }

    .stat-icon {
        width: 30px;
        height: 30px;
    }

    .section-heading h2 {
        font-size: 1rem;
    }

    .period-pill {
        font-size: 0.63rem;
    }

    .panel-heading p {
        max-width: 225px;
        font-size: 0.65rem;
    }

    .recent-heading {
        align-items: flex-start;
    }

    .text-action {
        font-size: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar nav a,
    .dashboard-action,
    .stat-card,
    .table-panel tbody tr {
        transition: none;
    }
}

.dashboard-intro {
    position: relative;
    min-height: 222px;
    align-items: center;
    padding: 2rem 2.15rem;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 75% 20%, rgba(204, 171, 113, 0.16), transparent 18rem),
        linear-gradient(112deg, #142c43 0%, #1b3d59 56%, #29495f 100%);
}

.dashboard-intro::before {
    position: absolute;
    z-index: -1;
    top: -100px;
    right: 24%;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(241, 223, 191, 0.08);
    border-radius: 50%;
    content: "";
}

.dashboard-intro::after {
    position: absolute;
    z-index: -1;
    top: -69px;
    right: calc(24% + 31px);
    width: 258px;
    height: 258px;
    border: 1px solid rgba(241, 223, 191, 0.06);
    border-radius: 50%;
    content: "";
}

.dashboard-intro-copy {
    position: relative;
    z-index: 1;
}

.dashboard-kicker {
    font-size: 0.61rem;
    letter-spacing: 0.16em;
}

.dashboard-intro h2 {
    max-width: 600px;
    margin: 0.8rem 0 0.5rem;
    font-size: clamp(1.7rem, 2.8vw, 2.25rem);
    line-height: 1.17;
}

.dashboard-intro p {
    color: rgba(239, 244, 248, 0.72);
    font-size: 0.8rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.15rem;
}

.dashboard-action {
    min-height: 39px;
    margin: 0;
    padding: 0.56rem 0.78rem;
    border-color: #d0b581;
    background: linear-gradient(135deg, #d6bd8d, #c5a66f);
    color: #24374a;
    font-size: 0.72rem;
    box-shadow: 0 5px 16px rgba(4, 15, 26, 0.15);
}

.dashboard-action:hover {
    border-color: #e6d1a9;
    background: #dfc99f;
    color: #172d42;
}

.hero-live {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: rgba(239, 244, 248, 0.62);
    font-size: 0.68rem;
}

.hero-live > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #84b78c;
    box-shadow: 0 0 0 3px rgba(132, 183, 140, 0.14);
}

.hero-score-card {
    position: relative;
    display: flex;
    z-index: 1;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.9rem;
    min-width: 250px;
    min-height: 91px;
    overflow: hidden;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(240, 224, 195, 0.2);
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
    box-shadow: 0 10px 25px rgba(7, 20, 32, 0.1);
    backdrop-filter: blur(8px);
}

.hero-score-ring {
    position: relative;
    display: grid;
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
    place-items: center;
}

.hero-score-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
}

.hero-score-ring circle {
    fill: none;
    stroke-width: 4;
}

.hero-score-ring .score-track {
    stroke: rgba(246, 239, 223, 0.2);
}

.hero-score-ring .score-progress {
    stroke: #e2c58e;
    stroke-dasharray: 163.36;
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px rgba(226, 197, 142, 0.32));
    transition: stroke-dashoffset 0.8s ease;
}

.hero-score-value {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.hero-score-copy {
    display: grid;
    gap: 0.16rem;
}

.hero-score-copy > span {
    color: #ddc99e;
    font-size: 0.57rem;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.hero-score-copy strong {
    color: #fff;
    font-size: 0.86rem;
    font-weight: 650;
}

.hero-score-copy small {
    color: rgba(239, 244, 248, 0.6);
    font-size: 0.65rem;
}

.hero-decoration {
    position: absolute;
    right: -58px;
    bottom: -72px;
    width: 172px;
    height: 172px;
    fill: none;
    stroke: rgba(234, 214, 178, 0.13);
    stroke-width: 0.8;
    pointer-events: none;
}

.stat-card {
    min-height: 158px;
    padding-bottom: 0.88rem;
}

.stat-card::before {
    position: absolute;
    top: 0;
    right: 1rem;
    left: 1rem;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: #c2a16c;
    content: "";
}

.stat-rating::before {
    background: #c2a16c;
}

.stat-positive::before {
    background: #71a481;
}

.stat-attention::before {
    background: #d29b60;
}

.stat-card-top {
    margin-top: 0.12rem;
}

.rating-distribution {
    display: flex;
    gap: 3px;
    margin-top: auto;
    padding-top: 0.8rem;
}

.distribution-segment {
    height: 4px;
    flex: 1 1 0;
    overflow: hidden;
    border-radius: 99px;
    background: #edf0f2;
}

.distribution-segment::after {
    display: block;
    width: var(--share);
    height: 100%;
    border-radius: inherit;
    background: #bd9a60;
    content: "";
}

.rating-segment-1::after {
    background: #c8877e;
}

.rating-segment-2::after {
    background: #d6a36f;
}

.rating-segment-3::after {
    background: #d5c393;
}

.rating-segment-4::after {
    background: #91ad8e;
}

.rating-segment-5::after {
    background: #668b6c;
}

.stat-progress {
    height: 4px;
    margin-top: auto;
    overflow: hidden;
    border-radius: 99px;
    background: #edf0ee;
}

.stat-progress > span {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    transition: width 0.6s ease;
}

.progress-gold {
    background: linear-gradient(90deg, #d7bd8d, #b18b50);
}

.progress-green {
    background: linear-gradient(90deg, #8eb59a, #5a8c68);
}

.progress-amber {
    background: linear-gradient(90deg, #e3bb82, #bf8049);
}

.chart-panel {
    position: relative;
    overflow: hidden;
}

.chart-panel::before {
    position: absolute;
    top: 0;
    right: 1.25rem;
    left: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e3d7c0, transparent);
    content: "";
}

.recent-panel {
    box-shadow: 0 7px 24px rgba(28, 45, 63, 0.045);
}

@media (max-width: 760px) {
    .dashboard-intro {
        gap: 1.3rem;
        padding: 1.35rem 1.2rem;
    }

    .dashboard-intro h2 {
        font-size: 1.68rem;
    }

    .hero-score-card {
        width: 100%;
        min-height: 82px;
    }
}

@media (max-width: 480px) {
    .dashboard-intro h2 {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 0.95rem;
    }

    .hero-score-card {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-score-ring .score-progress,
    .stat-progress > span {
        transition: none;
    }
}

.stat-card,
.panel,
.recent-panel {
    border: 1px solid #e8ebef;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(25, 43, 61, 0.035);
}

.stat-card {
    min-height: 154px;
    padding: 1rem 1.1rem 0.95rem;
    background: linear-gradient(155deg, #fff 0%, #fdfdfc 100%);
}

.stat-card::before {
    display: none;
}

.stat-card:hover {
    transform: translateY(-1px);
    border-color: #dfe4e8;
    box-shadow: 0 8px 20px rgba(25, 43, 61, 0.07);
}

.stat-card-top {
    min-height: 38px;
    margin: 0 0 0.7rem;
}

.stat-card span.stat-label {
    color: #687789;
    font-size: 0.75rem;
    font-weight: 620;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 11px;
    background: #f4f1e9;
    color: #967746;
}

.stat-icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.7;
}

.stat-rating .stat-icon {
    background: #f5f0e5;
    color: #a18148;
}

.stat-icon svg .stat-icon-star {
    fill: currentColor;
    stroke: none;
}

.stat-positive .stat-icon {
    background: #edf4ef;
    color: #5d8668;
}

.stat-attention .stat-icon {
    background: #f7f0e9;
    color: #a77a4d;
}

.stat-card > strong {
    font-size: 1.85rem;
    letter-spacing: -0.06em;
}

.stat-card span.stat-footnote {
    margin-top: 0.38rem;
    color: #8d98a4;
    font-size: 0.67rem;
}

.rating-distribution {
    gap: 4px;
    padding-top: 0.72rem;
}

.distribution-segment,
.stat-progress {
    height: 3px;
}

.chart-panel,
.recent-panel {
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(25, 43, 61, 0.035);
}

.chart-panel {
    min-height: 294px;
    padding: 1.15rem 1.2rem 1rem;
}

.chart-panel::before {
    display: none;
}

.hero-score-card {
    border-radius: 12px;
}

.sidebar nav a {
    min-height: 42px;
    gap: 0.72rem;
    border-radius: 9px;
    font-size: 0.84rem;
}

.sidebar nav a svg,
.logout-link svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.75;
}

.sidebar nav a .sidebar-qr-icon {
    fill: currentColor;
    stroke: none;
}

.sidebar nav a[aria-current="page"] {
    box-shadow: inset 2px 0 0 #d2ad70;
}

@media (max-width: 760px) {
    .stat-card {
        min-height: 136px;
        padding: 0.85rem 0.9rem 0.8rem;
    }

    .stat-card-top {
        min-height: 34px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .stat-icon svg {
        width: 17px;
        height: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stat-card {
        transition: none;
    }
}


.branch-qr-panel { margin-bottom: 1.2rem; padding: clamp(1rem, 3vw, 1.75rem); }
.branch-qr-intro { margin-bottom: 1.4rem; }
.branch-qr-intro h2 { margin: 0.45rem 0; color: #25394d; font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
.branch-qr-intro p { max-width: 620px; margin: 0; color: #7c8996; font-size: 0.9rem; line-height: 1.6; }
.branch-qr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.15rem; }
.branch-qr-card, .qr-admin-card {
    overflow: hidden;
    border: 1px solid #e4eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 57, 87, 0.055);
}
.branch-qr-card-heading, .qr-admin-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #edf1f4;
}
.qr-type-badge, .qr-status-badge, .qr-count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.06em;
}
.qr-type-badge { background: #f5efe4; color: #8a6834; }
.qr-status-badge { background: #e9f6ef; color: #237149; letter-spacing: 0; }
.qr-status-badge.is-inactive { background: #f1f3f5; color: #7d8995; }
.branch-qr-artwork, .qr-admin-artwork {
    display: grid;
    min-height: 230px;
    padding: 1.1rem;
    place-items: center;
    background: linear-gradient(145deg, #f4f7fa, #eef2f5);
}
.branch-qr-image, .qr-admin-image {
    display: block;
    width: min(100%, 230px);
    height: auto;
    padding: 0.7rem;
    border: 1px solid #e8edf1;
    border-radius: 12px;
    background: #fff;
    image-rendering: pixelated;
}
.branch-qr-copy { display: grid; justify-items: center; gap: 0.6rem; padding: 0 1.25rem 1.4rem; text-align: center; }
.branch-qr-copy h3 { margin: 0; color: #183957; font-size: 1.12rem; }
.branch-qr-copy p { max-width: 340px; margin: 0 0 0.35rem; color: #728193; font-size: 0.82rem; line-height: 1.55; }
.branch-qr-copy .btn { min-width: 180px; }
.branch-qr-empty-state, .qr-admin-empty { display: grid; justify-items: center; padding: 2.5rem 1rem; text-align: center; }
.branch-qr-empty-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #f5efe4; color: #8a6834; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; }
.branch-qr-empty-state h3, .qr-admin-empty h3 { margin: 1rem 0 0.35rem; color: #25394d; font-size: 1rem; }
.branch-qr-empty-state p, .qr-admin-empty p { margin: 0; color: #7c8996; font-size: 0.84rem; }
.qr-admin-panel { padding: clamp(1rem, 3vw, 1.5rem); }
.qr-admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.qr-admin-section-heading h2 { margin: 0.35rem 0 0; color: #25394d; font-size: 1.15rem; }
.qr-admin-section-note { margin: 0.28rem 0 0; color: #8491a0; font-size: 0.72rem; }
.qr-count-badge { background: #eef3f8; color: #315675; letter-spacing: 0; white-space: nowrap; }
.qr-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; }
.qr-admin-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.qr-admin-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(24, 57, 87, 0.1); }
.qr-admin-card.is-inactive { background: #fafbfc; }
.qr-admin-card-body { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); align-items: center; gap: 1.15rem; padding: 1rem; }
.qr-admin-artwork { min-height: 0; min-width: 0; padding: 0.75rem; border: 1px solid #e9eef2; border-radius: 12px; text-decoration: none; }
.qr-admin-artwork-inactive { aspect-ratio: 1; color: #8793a0; font-size: 0.78rem; }
.qr-admin-image { width: 100%; padding: 0.35rem; border: 0; border-radius: 6px; }
.qr-admin-details { display: grid; min-width: 0; gap: 0.9rem; }
.qr-detail-label { display: block; margin-bottom: 0.25rem; color: #8996a3; font-size: 0.67rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.qr-admin-details h3 { margin: 0; color: #183957; font-size: 1rem; overflow-wrap: anywhere; }
.qr-admin-details p { margin: 0; color: #526579; font-size: 0.82rem; line-height: 1.45; }
.qr-admin-details small { display: block; margin-top: 0.2rem; color: #8996a3; font-size: 0.72rem; }
.qr-admin-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.1rem; }
.qr-admin-actions .btn { min-height: 38px; padding: 0.55rem 0.8rem; font-size: 0.76rem; }

@media (max-width: 640px) {
    .qr-admin-card-body { grid-template-columns: 1fr; }
    .qr-admin-artwork { width: min(100%, 230px); justify-self: center; }
    .qr-admin-details { width: 100%; }
    .qr-admin-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .qr-admin-card { transition: none; }
    .qr-admin-card:hover { transform: none; }
}

.dashboard-dynamic {
    transition: opacity 0.18s ease;
}

.dashboard-dynamic[aria-busy="true"] {
    opacity: 0.62;
    pointer-events: none;
    cursor: progress;
}

.dashboard-period-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.8rem;
    margin: 0 0 1.15rem;
    padding: 1rem 1.15rem;
    border: 1px solid #e6ebef;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 18px rgba(28, 45, 63, 0.035);
}

.dashboard-period-filter-copy {
    display: grid;
    flex: 1 1 220px;
    gap: 0.2rem;
    align-self: center;
    min-width: 180px;
}

.dashboard-period-filter-copy strong {
    color: #233b52;
    font-size: 0.88rem;
    font-weight: 700;
}

.dashboard-period-filter-copy span {
    color: #8491a0;
    font-size: 0.72rem;
    line-height: 1.45;
}

.dashboard-filter-field {
    display: grid;
    flex: 0 1 190px;
    gap: 0.35rem;
    min-width: 155px;
    color: #667789;
    font-size: 0.68rem;
    font-weight: 650;
}

.dashboard-filter-field select,
.dashboard-filter-field input {
    width: 100%;
    min-height: 41px;
    padding: 0.55rem 0.7rem;
    border: 1px solid #dce3e9;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #294158;
    font: inherit;
    font-size: 0.77rem;
    font-weight: 550;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.dashboard-filter-field select {
    appearance: none;
    padding-right: 2.25rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23738698' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.72rem center;
    cursor: pointer;
}

.dashboard-filter-field select:hover {
    border-color: #c5d0da;
    background-color: #fcfdfe;
}

.dashboard-filter-field select:focus,
.dashboard-filter-field input:focus {
    border-color: #b99555;
    box-shadow: 0 0 0 3px rgba(185, 149, 85, 0.14);
}

.dashboard-filter-field select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a78245' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.dashboard-filter-dates {
    display: flex;
    flex: 1 1 340px;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.dashboard-filter-dates[hidden] {
    display: none !important;
}

.dashboard-filter-dates .dashboard-filter-field {
    flex: 1 1 145px;
}

.dashboard-filter-button {
    display: inline-flex;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #173e63;
    border-radius: 9px;
    background: #183f66;
    color: #fff;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease;
}

.dashboard-filter-button:hover {
    transform: translateY(-1px);
    background: #214d78;
}

.dashboard-filter-button:focus-visible {
    outline: 3px solid rgba(41, 117, 184, 0.3);
    outline-offset: 2px;
}

.dashboard-filter-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

@media (max-width: 700px) {
    .dashboard-period-filter {
        align-items: stretch;
        padding: 0.95rem;
    }

    .dashboard-period-filter-copy,
    .dashboard-filter-field,
    .dashboard-filter-dates {
        flex: 1 1 100%;
    }

    .dashboard-filter-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-filter-field select,
    .dashboard-filter-field input,
    .dashboard-filter-button {
        transition: none;
    }

    .dashboard-filter-button:hover {
        transform: none;
    }
}

.report-page-intro {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 1rem;
}

.report-page-intro-mark {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid #e8ddc8;
    border-radius: 14px;
    background: #f7f1e6;
    color: #9a783f;
}

.report-page-intro-mark svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-page-intro h2 {
    margin: 0.15rem 0 0.2rem;
    color: #233b52;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.report-page-intro p {
    margin: 0;
    color: #8491a0;
    font-size: 0.75rem;
}

.report-filter-panel,
.report-summary-card,
.report-results-panel {
    border: 1px solid #e6ebef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(28, 45, 63, 0.035);
}

.report-filter-panel {
    margin-bottom: 1rem;
    padding: 1.15rem;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.report-field {
    display: grid;
    min-width: 0;
    gap: 0.36rem;
    color: #68798a;
    font-size: 0.69rem;
    font-weight: 650;
}

.report-field input,
.report-field select,
.report-field-static strong {
    width: 100%;
    min-height: 41px;
    padding: 0.58rem 0.7rem;
    border: 1px solid #dce3e9;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #294158;
    font: inherit;
    font-size: 0.77rem;
    font-weight: 520;
}

.report-field input:focus,
.report-field select:focus {
    border-color: #b99555;
    box-shadow: 0 0 0 3px rgba(185, 149, 85, 0.14);
}

.report-field-static strong {
    display: flex;
    align-items: center;
    border-color: #e4e9ed;
    background: #f7f9fb;
    font-weight: 650;
}

.report-keyword-field {
    grid-column: span 2;
}

.report-filter-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #edf0f3;
}

.report-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #627487;
    font-size: 0.73rem;
    cursor: pointer;
}

.report-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #183f66;
}

.report-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.report-reset-button,
.report-apply-button,
.report-export-button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.report-reset-button {
    border-color: #e0e6eb;
    background: #fff;
    color: #68798a;
}

.report-reset-button:hover {
    border-color: #cbd5de;
    background: #f8fafb;
}

.report-apply-button {
    border-color: #dfe6ec;
    background: #f2f5f8;
    color: #274761;
}

.report-apply-button:hover {
    background: #e8eef3;
}

.report-export-button {
    border-color: #173e63;
    background: #183f66;
    color: #fff;
}

.report-export-button:hover {
    transform: translateY(-1px);
    background: #214d78;
}

.report-apply-button svg,
.report-export-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.report-summary-card {
    display: grid;
    min-height: 112px;
    align-content: start;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
}

.report-summary-card > span {
    color: #778697;
    font-size: 0.68rem;
    font-weight: 650;
}

.report-summary-card > strong {
    color: #203b54;
    font-size: 1.45rem;
    font-weight: 740;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

.report-summary-card > strong small {
    color: #8996a3;
    font-size: 0.8rem;
    font-weight: 600;
}

.report-summary-card > small {
    color: #97a1ab;
    font-size: 0.66rem;
}

.report-rating-breakdown {
    gap: 0.55rem;
}

.report-rating-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
}

.report-rating-chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.4rem;
    border: 1px solid #edf0f2;
    border-radius: 6px;
    background: #fafbfc;
    color: #68798a;
    font-size: 0.64rem;
}

.report-rating-chips b,
.report-rating-value span {
    color: #b08b4d;
}

.report-results-panel {
    overflow: hidden;
    padding: 1.15rem 1.15rem 0.25rem;
}

.report-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.report-results-heading h2 {
    margin: 0.15rem 0 0.25rem;
    color: #233b52;
    font-size: 1rem;
    font-weight: 700;
}

.report-results-heading p {
    margin: 0;
    color: #8895a2;
    font-size: 0.72rem;
}

.report-page-badge {
    padding: 0.4rem 0.6rem;
    border: 1px solid #eee7db;
    border-radius: 7px;
    background: #faf7f0;
    color: #8a7043;
    font-size: 0.66rem;
    font-weight: 650;
    text-align: right;
}

.report-results-table {
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
    border-collapse: collapse;
}

.report-results-table.has-branch-column {
    min-width: 900px;
}

.report-col-date { width: 17%; }
.report-col-staff { width: 21%; }
.report-col-rating { width: 12%; }
.report-col-comment { width: 50%; }

.report-results-table.has-branch-column .report-col-date { width: 15%; }
.report-results-table.has-branch-column .report-col-branch { width: 21%; }
.report-results-table.has-branch-column .report-col-staff { width: 14%; }
.report-results-table.has-branch-column .report-col-rating { width: 10%; }
.report-results-table.has-branch-column .report-col-comment { width: 40%; }

.report-results-table th,
.report-results-table td {
    padding: 0.78rem 0.65rem;
    border-bottom: 1px solid #edf0f3;
    text-align: left;
    vertical-align: top;
}

.report-results-table th {
    color: #8794a1;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.report-results-table td {
    color: #42576c;
    font-size: 0.76rem;
    vertical-align: top;
}

.report-date-cell {
    min-width: 105px;
    white-space: nowrap;
}

.report-date-cell small {
    display: block;
    margin-top: 0.15rem;
    color: #96a1ab;
    font-size: 0.67rem;
}

.report-rating-value {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    white-space: nowrap;
    font-weight: 700;
}

.report-comment-cell {
    min-width: 230px;
    max-width: 520px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.report-empty-state {
    display: grid;
    justify-items: center;
    gap: 0.3rem;
    padding: 2.2rem 1rem;
    text-align: center;
}

.report-empty-state > span {
    color: #b99555;
    font-size: 1.5rem;
}

.report-empty-state strong {
    color: #32495f;
    font-size: 0.85rem;
}

.report-empty-state small {
    color: #8996a3;
    font-size: 0.73rem;
}

.report-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.9rem 0;
    color: #7d8b99;
    font-size: 0.7rem;
}

.report-pagination a,
.report-pagination .is-disabled {
    padding: 0.4rem 0.6rem;
    border: 1px solid #e3e8ed;
    border-radius: 7px;
    background: #fff;
    color: #36536c;
    text-decoration: none;
}

.report-pagination a:hover {
    background: #f5f8fa;
}

.report-pagination .is-disabled {
    color: #a3acb5;
}

@media (max-width: 820px) {
    .report-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-keyword-field {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .report-filter-panel {
        padding: 0.9rem;
    }

    .report-filter-grid,
    .report-summary-grid {
        grid-template-columns: 1fr;
    }

    .report-keyword-field {
        grid-column: auto;
    }

    .report-filter-actions {
        width: 100%;
    }

    .report-filter-actions > * {
        flex: 1 1 auto;
    }

    .report-results-panel {
        padding: 0.9rem 0.75rem 0.2rem;
    }

    .report-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .report-reset-button,
    .report-apply-button,
    .report-export-button {
        transition: none;
    }

    .report-export-button:hover {
        transform: none;
    }
}

.list-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.9rem;
    padding: 0.85rem 0 0.55rem;
    border-top: 1px solid #edf0f3;
    color: #738395;
    font-size: 0.7rem;
}

.list-pagination-summary {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    font-weight: 650;
}

.list-pagination-summary small {
    color: #98a2ad;
    font-size: 0.66rem;
    font-weight: 500;
}

.list-pagination-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.list-pagination-actions a,
.list-pagination-actions .is-disabled,
.list-pagination-actions .page-number {
    display: inline-flex;
    min-height: 33px;
    align-items: center;
    padding: 0.4rem 0.65rem;
    border: 1px solid #e1e7ec;
    border-radius: 7px;
    background: #fff;
    color: #36536c;
    font-size: 0.68rem;
    font-weight: 650;
    text-decoration: none;
}

.list-pagination-actions a:hover {
    border-color: #c9d4de;
    background: #f6f8fa;
}

.list-pagination-actions .page-number.is-current {
    border-color: #183f66;
    background: #183f66;
    color: #fff;
}

.list-pagination-actions .page-ellipsis {
    padding: 0 0.1rem;
    color: #98a3ae;
}

.list-pagination-actions .is-disabled {
    color: #a5aeb7;
    cursor: default;
}

@media (max-width: 600px) {
    .list-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .list-pagination-actions {
        width: 100%;
    }

    .list-pagination-actions a,
.list-pagination-actions .is-disabled,
.list-pagination-actions .page-number {
        flex: 1 1 0;
        justify-content: center;
    }
}

.branch-comparison-section {
    margin-bottom: 1.8rem;
}

.branch-comparison-section > .section-heading p {
    margin: 0.3rem 0 0;
    color: #8895a2;
    font-size: 0.72rem;
    line-height: 1.45;
}

.branch-comparison-section > .section-heading h2 {
    margin-top: 0.2rem;
    font-size: 1.2rem;
}

.branch-comparison-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0.9rem;
}

.branch-comparison-chart-panel,
.branch-comparison-table-panel {
    min-width: 0;
    min-height: 0;
    padding: 1.15rem 1.2rem;
}

.branch-comparison-chart-panel,
.branch-comparison-table-panel {
    border: 1px solid #e5eaf0;
    background: linear-gradient(155deg, #fff 0%, #fdfefe 100%);
    box-shadow: 0 8px 24px rgba(27, 49, 70, 0.045);
}

.branch-comparison-count {
    flex: 0 0 auto;
    padding: 0.38rem 0.58rem;
    border: 1px solid #e7edf2;
    border-radius: 99px;
    background: #f7f9fb;
    color: #65788a;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
}

.branch-comparison-canvas-wrap {
    position: relative;
    max-height: 520px;
    margin-top: 0.85rem;
}

.branch-comparison-table-panel .panel-heading {
    min-height: 50px;
    margin-bottom: 0.65rem;
}

.branch-comparison-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.branch-comparison-table th:first-child,
.branch-comparison-table td:first-child {
    width: 6%;
}

.branch-comparison-table th:nth-child(2),
.branch-comparison-table td:nth-child(2) {
    width: 35%;
}

.branch-comparison-table th:nth-child(3),
.branch-comparison-table td:nth-child(3) {
    width: 21%;
}

.branch-comparison-table th:nth-child(4),
.branch-comparison-table td:nth-child(4) {
    width: 18%;
}

.branch-comparison-table th:nth-child(5),
.branch-comparison-table td:nth-child(5) {
    width: 20%;
}

.branch-comparison-table th {
    padding: 0.65rem 0.58rem;
    border-bottom: 1px solid #e9eef2;
    background: #f7f9fb;
    color: #718294;
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.065em;
    text-transform: uppercase;
    white-space: nowrap;
}

.branch-comparison-table td {
    padding: 0.72rem 0.58rem;
    border-bottom: 1px solid #edf1f4;
    color: #43596d;
    font-size: 0.73rem;
    vertical-align: middle;
}

.branch-comparison-table tbody tr:last-child td {
    border-bottom: 0;
}

.branch-comparison-table tbody tr:hover {
    background: #fafbfd;
}

.branch-comparison-table tbody tr.is-leader {
    background: linear-gradient(90deg, rgba(246, 239, 225, 0.7), rgba(255, 255, 255, 0));
}

.branch-comparison-name {
    display: inline-block;
    min-width: 0;
    color: #29435b;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.branch-rank-badge {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid #e8edf1;
    border-radius: 8px;
    background: #f8fafb;
    color: #708091;
    font-size: 0.67rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.branch-rank-badge.is-first {
    border-color: #e7d5ae;
    background: #f7eedb;
    color: #987033;
}

.branch-rank-badge.is-second {
    border-color: #dce3e8;
    background: #f1f4f6;
    color: #65788a;
}

.branch-rank-badge.is-third {
    border-color: #ead8ce;
    background: #f8eee8;
    color: #9b7056;
}

.branch-average-cell {
    display: grid;
    min-width: 70px;
    gap: 0.28rem;
}

.branch-average-cell > strong {
    color: #244461;
    font-size: 0.8rem;
    font-weight: 780;
    font-variant-numeric: tabular-nums;
}

.branch-score-track {
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: #edf1f4;
}

.branch-score-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c9a96f, #a67e3b);
}

.branch-survey-count {
    display: block;
    color: #314c64;
    font-size: 0.77rem;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
}

.branch-survey-caption {
    display: block;
    margin-top: 0.12rem;
    color: #9aa4ae;
    font-size: 0.58rem;
}

.branch-satisfaction-pill {
    display: inline-flex;
    min-width: 48px;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.42rem;
    border: 1px solid #d9ece3;
    border-radius: 99px;
    background: #eef8f3;
    color: #39775d;
    font-size: 0.66rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.branch-no-data {
    color: #98a3ad;
    font-size: 0.64rem;
    font-weight: 500;
}

.branch-comparison-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.65rem 0 0;
    color: #8c99a6;
    font-size: 0.63rem;
}

.branch-comparison-legend > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #80b19a;
}

.branch-comparison-empty {
    display: grid;
    min-height: 190px;
    justify-items: center;
    align-content: center;
    gap: 0.35rem;
    padding: 1.4rem;
    border: 1px solid #e6ebef;
    border-radius: 13px;
    background: radial-gradient(ellipse at 50% 0%, rgba(188, 150, 86, 0.08), transparent 58%), #fff;
    text-align: center;
}

.branch-comparison-empty-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 0.3rem;
    border: 1px solid #ebdfc9;
    border-radius: 13px;
    background: #faf5eb;
    color: #a17d43;
}

.branch-comparison-empty-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.branch-comparison-empty strong {
    color: #32495f;
    font-size: 0.85rem;
}

.branch-comparison-empty > span:not(.branch-comparison-empty-icon) {
    color: #8996a3;
    font-size: 0.74rem;
}

.branch-comparison-empty small {
    margin-top: 0.25rem;
    color: #a0aab3;
    font-size: 0.66rem;
}

.branch-comparison-coverage {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0.6rem 0 0;
    color: #8492a0;
    font-size: 0.68rem;
}

.branch-comparison-coverage::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #c2a168;
    content: "";
}

.staff-results {
    transition: opacity 0.16s ease;
}

.staff-results[aria-busy="true"] {
    opacity: 0.58;
    pointer-events: none;
}

.staff-result-count {
    margin: 0 0 0.55rem;
    color: #8996a3;
    font-size: 0.69rem;
}

.staff-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.staff-list-heading h3 {
    margin: 0;
}

.staff-list-heading p {
    margin: 0.28rem 0 0;
    color: #8996a3;
    font-size: 0.69rem;
}

.staff-search-form {
    display: flex;
    flex: 0 1 470px;
    align-items: center;
    gap: 0.5rem;
}

.staff-search-input-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.staff-search-input-wrap svg {
    position: absolute;
    top: 50%;
    left: 0.78rem;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8b98a6;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.staff-search-input-wrap input {
    width: 100%;
    min-height: 39px;
    padding: 0.55rem 0.75rem 0.55rem 2.25rem;
    border: 1px solid #dfe6ec;
    border-radius: 9px;
    background: #fff;
    color: #34495e;
    font: inherit;
    font-size: 0.72rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.staff-search-input-wrap input::placeholder {
    color: #9ba6b1;
}

.staff-search-input-wrap input:focus {
    border-color: #b99558;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(185, 149, 88, 0.14);
}

.staff-search-button {
    min-height: 39px;
    padding: 0.55rem 0.9rem;
    border: 1px solid #183f66;
    border-radius: 9px;
    background: #183f66;
    color: #fff;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.staff-search-button:hover {
    transform: translateY(-1px);
    background: #214f7c;
}

.staff-search-reset {
    color: #718092;
    font-size: 0.69rem;
    font-weight: 650;
    text-decoration: none;
}

.staff-search-reset:hover {
    color: #183f66;
    text-decoration: underline;
}

.staff-search-empty {
    padding: 1.1rem 0.5rem;
    color: #798797;
    text-align: center;
}

.staff-search-empty a {
    margin-left: 0.25rem;
    color: #183f66;
    font-weight: 650;
    text-decoration: none;
}

.staff-search-empty a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .branch-comparison-chart-panel,
    .branch-comparison-table-panel {
        padding: 0.95rem;
    }

    .branch-comparison-section > .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .branch-comparison-table th,
    .branch-comparison-table td {
        padding-right: 0.35rem;
        padding-left: 0.35rem;
        font-size: 0.62rem;
    }

    .staff-list-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 0.7rem;
    }

    .staff-search-form {
        flex: 1 1 auto;
        flex-wrap: wrap;
    }

    .staff-search-input-wrap {
        flex-basis: 100%;
    }
}
