:root {
    --staff-green: #12352f;
    --staff-green-dark: #0b241f;
    --staff-green-soft: #1f4a3f;
    --staff-gold: #f5b331;
    --staff-orange: #e46f2e;
    --staff-cream: #fff4e3;
    --staff-white: #fffbf3;
    --staff-text: #24211d;
    --staff-muted: #655e54;
    --staff-danger: #8e2525;
    --staff-success: #176b45;
    --staff-border: rgba(18, 53, 47, 0.17);
    --staff-shadow: 0 18px 45px rgba(11, 36, 31, 0.13);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

.staff-admin-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 8% 5%, rgba(245, 179, 49, 0.2), transparent 25rem),
        var(--staff-cream);
    color: var(--staff-text);
    font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.staff-admin-header {
    min-height: 118px;
    padding: 22px clamp(20px, 6vw, 72px);
    display: flex;
    align-items: center;
    gap: 22px;
    background: linear-gradient(135deg, var(--staff-green-dark), var(--staff-green), var(--staff-green-soft));
    border-bottom: 3px solid var(--staff-gold);
    color: #fff8e8;
}

.staff-admin-brand {
    display: inline-flex;
    flex: 0 0 auto;
}

.staff-admin-brand img {
    width: min(180px, 38vw);
    height: 72px;
    display: block;
    object-fit: contain;
}

.staff-admin-header h1,
.staff-admin-card h2 {
    margin: 0;
    font-family: Cairo, "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    line-height: 1.35;
}

.staff-admin-header h1 {
    color: #fff8e8;
    font-size: clamp(23px, 3vw, 34px);
}

.staff-admin-card h2 {
    color: var(--staff-green);
    font-size: clamp(25px, 4vw, 34px);
}

.staff-admin-eyebrow {
    margin: 0 0 5px;
    color: var(--staff-orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.staff-admin-header .staff-admin-eyebrow {
    color: var(--staff-gold);
}

.staff-admin-main {
    width: min(880px, calc(100% - 32px));
    margin: 36px auto 70px;
}

.staff-admin-card {
    border: 1px solid var(--staff-border);
    border-radius: 24px;
    background: var(--staff-white);
    box-shadow: var(--staff-shadow);
}

.staff-login-card,
.staff-admin-status {
    width: min(560px, 100%);
    margin: 56px auto;
    padding: clamp(24px, 5vw, 44px);
}

.staff-admin-heading {
    margin-bottom: 26px;
}

.staff-admin-heading > p:last-child,
.staff-admin-status p,
.staff-admin-success p,
.staff-orders-placeholder {
    margin: 8px 0 0;
    color: var(--staff-muted);
}

.staff-admin-form {
    display: grid;
    gap: 18px;
}

.staff-login-methods {
    margin-bottom: 24px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    border: 1px solid var(--staff-border);
    border-radius: 15px;
    background: rgba(18, 53, 47, 0.06);
}

.staff-login-method {
    min-height: 45px;
    padding: 9px 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--staff-muted);
    font-weight: 900;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.staff-login-method.is-active {
    background: var(--staff-white);
    color: var(--staff-green-dark);
    box-shadow: 0 4px 14px rgba(11, 36, 31, 0.1);
}

.staff-login-method:focus-visible {
    outline: 3px solid rgba(245, 179, 49, 0.4);
    outline-offset: 2px;
}

.staff-login-method-panel {
    min-width: 0;
}

.staff-otp-verification {
    display: grid;
    gap: 18px;
    padding-top: 19px;
    border-top: 1px solid var(--staff-border);
}

.staff-admin-field-help {
    color: var(--staff-muted);
    font-size: 13px;
    font-weight: 600;
}

.staff-admin-field .staff-otp-code-input {
    letter-spacing: 0.4em;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
}

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

.staff-otp-resend-button:disabled {
    cursor: not-allowed;
}

.staff-admin-field {
    display: grid;
    gap: 8px;
}

.staff-admin-field label {
    color: var(--staff-green);
    font-weight: 800;
}

.staff-admin-field input {
    width: 100%;
    min-height: 50px;
    padding: 10px 13px;
    border: 1px solid rgba(18, 53, 47, 0.25);
    border-radius: 13px;
    background: #fff;
    color: var(--staff-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.staff-admin-field input:focus {
    border-color: var(--staff-gold);
    box-shadow: 0 0 0 3px rgba(245, 179, 49, 0.2);
}

.staff-admin-field input:disabled {
    background: #f4f0e8;
    opacity: 0.75;
}

.staff-admin-primary-button,
.staff-admin-secondary-button {
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 900;
    transition: transform 0.15s, opacity 0.15s, background 0.15s;
}

.staff-admin-primary-button {
    border: 0;
    background: var(--staff-gold);
    color: var(--staff-green-dark);
}

.staff-admin-secondary-button {
    border: 1px solid rgba(18, 53, 47, 0.26);
    background: transparent;
    color: var(--staff-green);
}

.staff-admin-primary-button:hover:not(:disabled),
.staff-admin-secondary-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.staff-admin-primary-button:disabled,
.staff-admin-secondary-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.staff-admin-message {
    margin: 0 0 20px;
    padding: 13px 15px;
    border-radius: 12px;
    background: rgba(18, 53, 47, 0.08);
    color: var(--staff-green);
    font-weight: 700;
}

.staff-admin-message.is-error {
    background: #fce7e4;
    color: var(--staff-danger);
}

.staff-admin-message.is-success {
    background: #e1f3e8;
    color: var(--staff-success);
}

.staff-admin-message.is-info {
    background: #fff0cc;
    color: var(--staff-green-dark);
}

.staff-admin-back-link {
    width: fit-content;
    margin: 22px auto 0;
    display: block;
    color: var(--staff-green);
    font-size: 14px;
    font-weight: 800;
    text-underline-offset: 4px;
}

.staff-admin-status {
    text-align: center;
}

.staff-admin-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    display: block;
    border: 4px solid rgba(18, 53, 47, 0.16);
    border-top-color: var(--staff-gold);
    border-radius: 50%;
    animation: staff-admin-spin 0.8s linear infinite;
}

@keyframes staff-admin-spin {
    to {
        transform: rotate(360deg);
    }
}

.staff-orders-card {
    margin: 56px auto;
    padding: clamp(24px, 5vw, 42px);
}

.staff-orders-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.staff-order-sound-panel {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(18, 53, 47, 0.2);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.78);
}

.staff-order-sound-heading,
.staff-order-sound-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.staff-order-sound-heading h3,
.staff-order-sound-heading p,
.staff-order-sound-message {
    margin: 0;
}

.staff-order-sound-heading h3 {
    color: var(--staff-green-dark);
    font-family: Cairo, "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    font-size: 18px;
}

.staff-order-sound-heading p {
    margin-top: 4px;
    color: var(--staff-muted);
    font-size: 13px;
    font-weight: 700;
}

.staff-order-sound-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ece9e2;
    color: #5f5a52;
    font-size: 13px;
    font-weight: 900;
}

.staff-order-sound-status::before {
    width: 9px;
    height: 9px;
    content: "";
    border-radius: 50%;
    background: #817a70;
}

.staff-order-sound-status.is-enabled {
    background: #e0f3e8;
    color: var(--staff-success);
}

.staff-order-sound-status.is-enabled::before {
    background: #22a465;
    box-shadow: 0 0 0 4px rgba(34, 164, 101, 0.13);
}

.staff-order-sound-status.is-needs-gesture {
    background: #fff0d3;
    color: #8b5200;
}

.staff-order-sound-status.is-needs-gesture::before {
    background: #d58312;
}

.staff-order-sound-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 15px;
}

.staff-order-volume-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--staff-border);
    border-radius: 12px;
    background: #fff;
}

.staff-order-volume-control label {
    color: var(--staff-green-dark);
    font-size: 13px;
    font-weight: 900;
}

.staff-order-volume-control select {
    min-width: 92px;
    padding: 7px 10px;
    border: 1px solid rgba(18, 53, 47, 0.24);
    border-radius: 9px;
    background: #fffdf8;
    color: var(--staff-text);
    font-weight: 800;
    cursor: pointer;
}

.staff-order-volume-control select:focus-visible {
    outline: 3px solid rgba(245, 179, 49, 0.28);
    outline-offset: 2px;
}

.staff-order-sound-device-note {
    margin: 12px 0 0;
    color: var(--staff-muted);
    font-size: 12px;
    font-weight: 750;
}

.staff-order-sound-disable {
    color: var(--staff-danger);
    border-color: rgba(142, 37, 37, 0.28);
}

.staff-order-sound-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
}

.staff-order-sound-message.is-success {
    background: #e4f4ea;
    color: var(--staff-success);
}

.staff-order-sound-message.is-warning {
    background: #fff0d3;
    color: #7a4700;
}

.staff-admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.staff-admin-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.staff-admin-success {
    margin-top: 28px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid rgba(23, 107, 69, 0.25);
    border-radius: 16px;
    background: #e4f4ea;
    color: var(--staff-success);
}

.staff-admin-success > span {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--staff-success);
    color: #fff;
    font-size: 19px;
    font-weight: 900;
}

.staff-admin-success strong {
    font-size: 18px;
}

.staff-identity {
    margin: 24px 0;
}

.staff-identity > div {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid var(--staff-border);
    border-radius: 14px;
    background: #fff;
}

.staff-identity dt {
    color: var(--staff-muted);
    font-weight: 800;
}

.staff-identity dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--staff-green-dark);
    font-weight: 800;
    text-align: left;
}

.staff-orders-placeholder {
    padding-top: 20px;
    border-top: 1px solid var(--staff-border);
    text-align: center;
    font-weight: 700;
}

.staff-orders-main {
    width: min(1240px, calc(100% - 32px));
}

.staff-orders-heading h2 {
    margin: 0;
}

.staff-orders-identity-line {
    margin: 9px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--staff-muted);
    font-weight: 800;
}

.staff-orders-summary {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 0.7fr 1.6fr 0.7fr;
    gap: 12px;
}

.staff-orders-summary > div {
    min-width: 0;
    padding: 16px;
    display: grid;
    gap: 7px;
    border: 1px solid var(--staff-border);
    border-radius: 15px;
    background: rgba(18, 53, 47, 0.035);
}

.staff-orders-summary span {
    color: var(--staff-muted);
    font-size: 13px;
    font-weight: 800;
}

.staff-orders-summary strong {
    color: var(--staff-green-dark);
    font-size: 17px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.staff-orders-tools {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--staff-border);
    border-radius: 18px;
    background: #fff;
}

.staff-orders-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.staff-order-filter {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid rgba(18, 53, 47, 0.2);
    border-radius: 999px;
    background: #fff;
    color: var(--staff-green);
    font-weight: 850;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.staff-order-filter:hover,
.staff-order-filter:focus-visible,
.staff-order-filter.is-active {
    border-color: var(--staff-green);
    background: var(--staff-green);
    color: #fff8e8;
    outline: none;
}

.staff-orders-search {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: end;
    gap: 10px;
}

.staff-orders-search .staff-admin-field {
    min-width: 0;
}

.staff-orders-search button {
    min-width: 112px;
}

.staff-orders-results {
    margin-top: 28px;
}

.staff-orders-results-heading {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.staff-orders-results-heading h3 {
    margin: 0;
    color: var(--staff-green);
    font-size: 23px;
}

.staff-orders-results-heading span {
    color: var(--staff-muted);
    font-size: 14px;
    font-weight: 800;
}

.staff-orders-list-status,
.staff-order-detail-state {
    min-height: 150px;
    padding: 24px;
    display: grid;
    place-content: center;
    text-align: center;
    border: 1px dashed rgba(18, 53, 47, 0.24);
    border-radius: 18px;
    background: rgba(18, 53, 47, 0.03);
    color: var(--staff-muted);
    font-weight: 750;
}

.staff-orders-list-status p,
.staff-order-detail-state p {
    margin: 0;
}

.staff-orders-list-status .staff-admin-spinner,
.staff-order-detail-state .staff-admin-spinner {
    margin-bottom: 12px;
}

.staff-orders-list-status.is-error,
.staff-order-detail-state.is-error {
    border-color: rgba(142, 37, 37, 0.3);
    background: #fce7e4;
    color: var(--staff-danger);
}

.staff-orders-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.staff-order-card {
    min-width: 0;
    padding: 18px;
    display: grid;
    gap: 16px;
    border: 1px solid var(--staff-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(11, 36, 31, 0.07);
}

.staff-order-card.is-unread {
    border-color: rgba(228, 111, 46, 0.6);
    box-shadow: 0 9px 26px rgba(228, 111, 46, 0.12);
}

.staff-order-card.is-new-arrival {
    border-color: var(--staff-gold);
    background: #fffaf0;
    animation: staff-order-new-arrival 0.85s ease-in-out 3;
}

@keyframes staff-order-new-arrival {
    50% {
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(245, 179, 49, 0.3);
    }
}

.staff-order-toast-region {
    position: fixed;
    z-index: 1400;
    top: 18px;
    left: 18px;
    width: min(380px, calc(100vw - 36px));
    pointer-events: none;
}

.staff-order-toast {
    padding: 15px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(23, 107, 69, 0.35);
    border-right: 5px solid var(--staff-gold);
    border-radius: 15px;
    background: var(--staff-green-dark);
    color: #fff8e8;
    box-shadow: 0 16px 38px rgba(11, 36, 31, 0.28);
    pointer-events: auto;
}

.staff-order-toast > div {
    display: grid;
    gap: 4px;
}

.staff-order-toast strong {
    color: var(--staff-gold);
    font-size: 18px;
}

.staff-order-toast span {
    font-size: 13px;
    font-weight: 800;
}

.staff-order-toast-number {
    text-align: right;
}

.staff-order-toast-close {
    width: 30px;
    height: 30px;
    padding: 0;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 21px;
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .staff-order-card.is-new-arrival {
        animation: none;
    }
}

.staff-order-card-header,
.staff-order-card-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.staff-order-card-number {
    margin: 0;
    color: var(--staff-green-dark);
    font-size: 21px;
    font-weight: 950;
}

.staff-order-card-time {
    margin: 4px 0 0;
    color: var(--staff-muted);
    font-size: 13px;
    font-weight: 700;
}

.staff-order-card-badges,
.staff-order-card-statuses {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.staff-order-badge,
.staff-order-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
}

.staff-order-badge.is-unread {
    background: #fff0cc;
    color: #714305;
}

.staff-order-badge.has-receipt {
    background: #e3edf9;
    color: #1f4f7a;
}

.staff-order-status-badge {
    background: rgba(18, 53, 47, 0.1);
    color: var(--staff-green-dark);
}

.staff-order-status-badge.status-cancelled,
.staff-order-status-badge.payment-rejected {
    background: #fce7e4;
    color: var(--staff-danger);
}

.staff-order-status-badge.status-completed,
.staff-order-status-badge.status-ready,
.staff-order-status-badge.payment-verified {
    background: #e1f3e8;
    color: var(--staff-success);
}

.staff-order-status-badge.status-awaiting-payment-verification,
.staff-order-status-badge.payment-receipt-uploaded {
    background: #fff0cc;
    color: #714305;
}

.staff-order-card-meta {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.staff-order-card-meta > div {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(18, 53, 47, 0.04);
}

.staff-order-card-meta dt {
    margin: 0 0 4px;
    color: var(--staff-muted);
    font-size: 12px;
    font-weight: 800;
}

.staff-order-card-meta dd {
    margin: 0;
    color: var(--staff-text);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.staff-order-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right;
}

.staff-order-details-button {
    flex: 0 0 auto;
}

.staff-orders-pagination {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.staff-orders-pagination span {
    min-width: 130px;
    color: var(--staff-green-dark);
    text-align: center;
    font-weight: 900;
}

.staff-modal-open {
    overflow: hidden;
}

.staff-order-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 16px;
    display: grid;
    place-items: center;
    background: rgba(4, 19, 16, 0.66);
}

.staff-receipt-modal {
    z-index: 1100;
}

.staff-order-dialog {
    width: min(980px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(245, 179, 49, 0.45);
    border-radius: 22px;
    background: var(--staff-white);
    box-shadow: 0 24px 70px rgba(4, 19, 16, 0.35);
}

.staff-receipt-dialog {
    width: min(820px, 100%);
}

.staff-order-dialog-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--staff-border);
    background: var(--staff-white);
}

.staff-order-dialog-header h2 {
    margin: 0;
    color: var(--staff-green);
}

.staff-order-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid var(--staff-border);
    border-radius: 50%;
    background: #fff;
    color: var(--staff-green-dark);
    font-size: 28px;
    line-height: 1;
}

.staff-order-detail-state {
    margin: 22px;
}

.staff-order-details-message {
    margin: 18px 22px 0;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 850;
}

.staff-order-details-message.is-success {
    border-color: rgba(23, 107, 69, 0.3);
    background: #e1f3e8;
    color: var(--staff-success);
}

.staff-order-details-message.is-error {
    border-color: rgba(142, 37, 37, 0.3);
    background: #fce7e4;
    color: var(--staff-danger);
}

.staff-order-details-message.is-loading {
    border-color: rgba(18, 53, 47, 0.2);
    background: rgba(18, 53, 47, 0.06);
    color: var(--staff-green-dark);
}

.staff-order-details-content {
    padding: 22px;
    display: grid;
    gap: 22px;
}

.staff-order-detail-section {
    min-width: 0;
}

.staff-order-detail-section h3 {
    margin: 0 0 13px;
    color: var(--staff-green);
    font-size: 21px;
}

.staff-order-actions-section {
    padding: 16px;
    border: 1px solid rgba(245, 179, 49, 0.45);
    border-radius: 16px;
    background: rgba(245, 179, 49, 0.07);
}

.staff-order-action-controls,
.staff-order-cancellation-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.staff-order-action-button,
.staff-order-danger-button {
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 900;
}

.staff-order-danger-button {
    border: 1px solid rgba(142, 37, 37, 0.4);
    background: #fff4f2;
    color: var(--staff-danger);
}

.staff-order-danger-button:hover:not(:disabled) {
    background: #fce7e4;
}

.staff-order-danger-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.staff-order-cancellation-form {
    width: 100%;
    padding: 14px;
    display: grid;
    gap: 10px;
    border: 1px solid rgba(142, 37, 37, 0.25);
    border-radius: 13px;
    background: #fff;
}

.staff-order-cancellation-form[hidden] {
    display: none;
}

.staff-order-cancellation-form label {
    color: var(--staff-danger);
    font-weight: 900;
}

.staff-order-cancellation-form textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    padding: 11px 12px;
    border: 1px solid rgba(18, 53, 47, 0.24);
    border-radius: 11px;
    background: #fff;
    color: var(--staff-text);
    font: inherit;
}

.staff-order-cancellation-form textarea:focus {
    border-color: var(--staff-green);
    outline: 3px solid rgba(18, 53, 47, 0.1);
}

.staff-order-action-notice {
    margin: 0;
    padding: 13px 15px;
    border-radius: 12px;
    background: rgba(18, 53, 47, 0.06);
    color: var(--staff-green-dark);
    font-weight: 850;
}

.staff-order-action-notice.is-warning {
    background: #fff0cc;
    color: #714305;
}

.staff-order-action-notice.is-final {
    background: #e1f3e8;
    color: var(--staff-success);
}

.staff-order-action-notice.is-error {
    background: #fce7e4;
    color: var(--staff-danger);
}

.staff-payment-rejection-note {
    margin: 10px 0 0;
    padding: 12px 14px;
    border-right: 4px solid var(--staff-danger);
    border-radius: 10px;
    background: #fff;
    color: var(--staff-danger);
    font-weight: 800;
    white-space: pre-wrap;
}

.staff-order-receipt-section {
    padding: 16px;
    border: 1px solid rgba(31, 79, 122, 0.25);
    border-radius: 16px;
    background: #f4f8fc;
}

.staff-order-receipt-description,
.staff-order-receipt-uploaded-at {
    margin: 0 0 10px;
    color: var(--staff-muted);
    font-weight: 750;
}

.staff-order-receipt-uploaded-at {
    font-size: 13px;
}

.staff-receipt-viewer {
    padding: 22px;
    min-height: 240px;
}

.staff-receipt-viewer img {
    width: 100%;
    max-height: calc(100vh - 190px);
    display: block;
    object-fit: contain;
    border: 1px solid var(--staff-border);
    border-radius: 14px;
    background: #f7f7f7;
}

.staff-receipt-pdf-card {
    min-height: 240px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    padding: 24px;
    border: 1px dashed rgba(18, 53, 47, 0.3);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.staff-receipt-pdf-card p {
    margin: 0;
    color: var(--staff-green-dark);
    font-weight: 850;
}

.staff-receipt-pdf-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.staff-order-info-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.staff-order-info-grid > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--staff-border);
    border-radius: 13px;
    background: #fff;
}

.staff-order-info-grid .is-wide {
    grid-column: 1 / -1;
}

.staff-order-info-grid dt {
    color: var(--staff-muted);
    font-size: 12px;
    font-weight: 800;
}

.staff-order-info-grid dd {
    margin: 5px 0 0;
    color: var(--staff-text);
    font-weight: 800;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.staff-order-items-list,
.staff-order-timeline {
    display: grid;
    gap: 10px;
}

.staff-order-item,
.staff-order-timeline-entry {
    padding: 14px;
    border: 1px solid var(--staff-border);
    border-radius: 14px;
    background: #fff;
}

.staff-order-item-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, auto);
    align-items: center;
    gap: 12px;
}

.staff-order-item-main strong {
    color: var(--staff-green-dark);
}

.staff-order-item-main span {
    color: var(--staff-muted);
    font-size: 13px;
    font-weight: 750;
}

.staff-order-item-note,
.staff-order-timeline-note {
    margin: 9px 0 0;
    padding-top: 9px;
    border-top: 1px solid var(--staff-border);
    color: var(--staff-muted);
    font-size: 14px;
    white-space: pre-wrap;
}

.staff-order-timeline-entry {
    border-right: 4px solid var(--staff-gold);
}

.staff-order-timeline-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.staff-order-timeline-head strong {
    color: var(--staff-green-dark);
}

.staff-order-timeline-meta {
    margin: 5px 0 0;
    color: var(--staff-muted);
    font-size: 13px;
    font-weight: 700;
}

.staff-order-empty-detail {
    margin: 0;
    padding: 15px;
    border-radius: 12px;
    background: rgba(18, 53, 47, 0.05);
    color: var(--staff-muted);
    text-align: center;
    font-weight: 750;
}

.staff-dashboard-main {
    width: min(1080px, calc(100% - 32px));
}

.staff-dashboard-welcome {
    padding: clamp(22px, 4vw, 34px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.staff-role-badge {
    margin-top: 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 13px;
    background: rgba(245, 179, 49, 0.22);
    color: var(--staff-green-dark);
    font-size: 14px;
    font-weight: 900;
}

.staff-dashboard-welcome + .staff-admin-message {
    margin-top: 20px;
}

.staff-dashboard-sections {
    margin-top: 34px;
}

.staff-dashboard-heading h2 {
    margin: 0;
    color: var(--staff-green);
    font-family: Cairo, "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    font-size: clamp(25px, 3vw, 32px);
}

.staff-dashboard-heading p {
    margin: 6px 0 0;
    color: var(--staff-muted);
}

.staff-dashboard-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.staff-section-card {
    min-width: 0;
    padding: clamp(20px, 4vw, 28px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--staff-border);
    border-radius: 20px;
    background: var(--staff-white);
    box-shadow: 0 12px 32px rgba(11, 36, 31, 0.09);
    color: var(--staff-text);
    text-decoration: none;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.staff-section-card:hover,
.staff-section-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(245, 179, 49, 0.72);
    box-shadow: 0 17px 38px rgba(11, 36, 31, 0.14);
    outline: none;
}

.staff-section-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(245, 179, 49, 0.2);
    font-size: 26px;
}

.staff-section-card strong,
.staff-section-card small {
    display: block;
}

.staff-section-card strong {
    color: var(--staff-green);
    font-size: 20px;
    font-weight: 900;
}

.staff-section-card small {
    margin-top: 5px;
    color: var(--staff-muted);
    font-size: 14px;
    line-height: 1.7;
}

.staff-section-arrow {
    color: var(--staff-orange);
    font-size: 24px;
    font-weight: 900;
}

@media (max-width: 700px) {
    .staff-admin-header {
        min-height: auto;
        flex-direction: column;
        text-align: center;
    }

    .staff-admin-main {
        width: min(100% - 22px, 880px);
        margin-top: 22px;
    }

    .staff-login-card,
    .staff-admin-status,
    .staff-orders-card {
        margin: 24px auto;
        border-radius: 19px;
    }

    .staff-orders-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-order-sound-heading,
    .staff-order-sound-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-order-sound-status {
        align-self: flex-start;
    }

    .staff-order-sound-controls > button {
        width: 100%;
    }

    .staff-order-volume-control {
        width: 100%;
        justify-content: space-between;
    }

    .staff-order-volume-control select {
        flex: 1;
        max-width: 180px;
    }

    .staff-order-toast-region {
        top: 12px;
        left: 12px;
        width: calc(100vw - 24px);
    }

    .staff-admin-page-actions,
    .staff-dashboard-welcome {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-admin-page-actions > *,
    .staff-dashboard-welcome > .staff-admin-secondary-button,
    .staff-admin-secondary-button {
        width: 100%;
    }

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

    .staff-orders-summary,
    .staff-orders-search,
    .staff-orders-list,
    .staff-order-info-grid {
        grid-template-columns: 1fr;
    }

    .staff-orders-search button,
    .staff-orders-pagination button {
        width: 100%;
    }

    .staff-orders-results-heading,
    .staff-order-card-header,
    .staff-order-card-footer,
    .staff-order-timeline-head {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-order-card-meta,
    .staff-order-item-main {
        grid-template-columns: 1fr;
    }

    .staff-order-details-button {
        width: 100%;
    }

    .staff-order-action-controls,
    .staff-order-cancellation-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-order-action-controls > button,
    .staff-order-cancellation-actions > button {
        width: 100%;
    }

    .staff-order-receipt-button,
    .staff-receipt-pdf-card a {
        width: 100%;
    }

    .staff-orders-pagination {
        display: grid;
        grid-template-columns: 1fr;
    }

    .staff-orders-pagination span {
        grid-row: 1;
    }

    .staff-order-modal {
        padding: 0;
        align-items: stretch;
    }

    .staff-order-dialog {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .staff-order-dialog-header,
    .staff-order-details-content,
    .staff-order-details-message {
        padding-right: 16px;
        padding-left: 16px;
    }

    .staff-receipt-viewer {
        padding: 16px;
    }

    .staff-login-methods,
    .staff-login-inline-actions {
        grid-template-columns: 1fr;
    }

    .staff-identity > div {
        grid-template-columns: 1fr;
    }

    .staff-identity dd {
        text-align: right;
    }
}

@media (max-width: 420px) {
    .staff-admin-header {
        padding: 18px 14px;
    }

    .staff-admin-brand img {
        height: 62px;
    }

    .staff-login-card,
    .staff-admin-status,
    .staff-orders-card {
        padding: 22px 17px;
    }
}
