/* Warna, panel, dan ukuran kontrol mengikuti halaman CDR. */
.queue-report-page {
    color:#51483f;
    padding:4px 0 24px;
}

.queue-report-page [hidden] {
    display:none !important;
}

.qr-hero {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    padding:28px;
    margin-bottom:18px;
    border:1px solid #efd6a0;
    border-radius:12px;
    background:linear-gradient(105deg,#fff3d8,#fff8eb 62%,#fffdf8);
}

.qr-eyebrow {
    margin:0 0 8px;
    color:#b48336;
    font-size:10px;
    font-weight:700;
    letter-spacing:1.8px;
}

.qr-hero h1 {
    margin:0;
    font-size:30px;
    font-weight:650;
    letter-spacing:-.6px;
}

.qr-hero p:not(.qr-eyebrow) {
    margin:9px 0 0;
    color:#766554;
    font-size:12px;
}

.qr-primary,.qr-secondary {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:40px;
    padding:9px 16px;
    border:1px solid #e4c27d;
    border-radius:7px;
    font:inherit;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
    cursor:pointer;
}

.qr-primary {
    background:#ffbd32;
    border-color:#d98b19;
    color:#291c0b;
    box-shadow:0 3px 8px #8b5a1517;
}

.qr-primary:hover {
    background:#ffca57;
}

.qr-secondary {
    background:#fff;
    color:#766554;
}

.queue-report-page button:disabled {
    opacity:.55;
    cursor:wait;
}

.queue-report-page :focus-visible {
    outline:2px solid #bd8324;
    outline-offset:3px;
}

.qr-summary {
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:12px;
    margin-bottom:18px;
}

.qr-metric {
    padding:17px 16px;
    border:1px solid #e8dfd3;
    border-radius:10px;
    background:#fff;
    min-width:0;
}

.qr-metric-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    font-size:11px;
    color:#7b6e5f;
}

.qr-metric-head i {
    font-size:15px;
}

.qr-metric strong {
    display:block;
    font-size:27px;
    font-weight:650;
    margin:13px 0 6px;
    letter-spacing:-.6px;
    font-variant-numeric:tabular-nums;
}

.qr-metric small {
    display:block;
    font-size:10px;
    color:#8c7d6b;
    line-height:1.6;
}

.qr-metric-gold .qr-metric-head i {
    color:#b58226;
}

.qr-metric-green .qr-metric-head i {
    color:#38805b;
}

.qr-metric-red .qr-metric-head i {
    color:#ba5656;
}

.qr-metric-blue .qr-metric-head i {
    color:#517d99;
}

.qr-panel {
    border:1px solid #e8dfd3;
    border-radius:10px;
    background:#fff;
    overflow:hidden;
}

.qr-panel-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:22px 24px;
    border-bottom:1px solid #eee6da;
}

.qr-panel-head h2 {
    margin:0 0 7px;
    font-size:16px;
    font-weight:650;
}

.qr-panel-head p {
    margin:0;
    font-size:11px;
    color:#8c7d6b;
}

.qr-tag {
    border:1px solid #ead5ad;
    border-radius:20px;
    padding:6px 10px;
    font-size:10px;
    color:#96703b;
    white-space:nowrap;
    background:#fffaf0;
}

.qr-filters {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:15px;
    padding:22px 24px 16px;
}

.qr-filters label {
    display:flex;
    flex-direction:column;
    gap:7px;
    font-size:11px;
    font-weight:600;
    min-width:0;
}

.qr-filters input,.qr-filters select {
    width:100%;
    min-width:0;
    height:38px;
    padding:8px 10px;
    border:1px solid #ddd4c6;
    border-radius:6px;
    background:#fff;
    color:#51483f;
    font:inherit;
    font-size:12px;
    box-sizing:border-box;
}

.qr-filters input::placeholder {
    color:#a69a8a;
}

.qr-filter-note {
    display:flex;
    gap:8px;
    align-items:center;
    font-size:10px;
    color:#96836b;
    line-height:1.7;
    align-self:end;
    min-height:38px;
}

.qr-filter-note i {
    flex-shrink:0;
}

.qr-definition {
    margin:0 24px 13px;
    color:#8c7d6b;
    font-size:11px;
}

.qr-definition summary {
    cursor:pointer;
    width:fit-content;
}

.qr-definition p {
    line-height:1.8;
    max-width:980px;
    padding:10px 12px;
    border-left:2px solid #ebca8a;
    background:#fffaf0;
}

.qr-result-note {
    margin:0;
    padding:0 24px 16px;
    font-size:10px;
    color:#8c7d6b;
    line-height:1.8;
}

.qr-result-note:empty {
    display:none;
}

.qr-error {
    margin:0 24px 16px;
    padding:12px;
    border:1px solid #efc5c0;
    border-radius:6px;
    background:#fff3f1;
    color:#aa4239;
    font-size:12px;
}

.qr-table-wrap {
    overflow:auto;
    max-height:560px;
    border-top:1px solid #eee6da;
}

.qr-table {
    border-collapse:separate;
    border-spacing:0;
    width:100%;
    min-width:1250px;
    text-align:left;
    font-size:11px;
}

.qr-table th {
    position:sticky;
    top:0;
    z-index:1;
    background:#faf7f1;
    color:#8c7d6b;
    font-size:10px;
    font-weight:650;
    border-bottom:1px solid #e8dfd3;
    padding:13px 16px;
    white-space:nowrap;
}

.qr-table td {
    padding:14px 16px;
    border-bottom:1px solid #f0e9df;
    vertical-align:middle;
    white-space:nowrap;
}

.qr-table tr:hover td {
    background:#fffcf6;
}

.qr-table td small {
    display:block;
    margin-top:4px;
    color:#9a8b78;
    font-size:10px;
    max-width:220px;
    white-space:normal;
    overflow-wrap:anywhere;
}

.qr-time,.qr-number,.qr-duration {
    font-variant-numeric:tabular-nums;
}

.qr-status {
    display:inline-block;
    padding:5px 8px;
    border-radius:5px;
    font-size:10px;
    font-weight:600;
}

.qr-status-success {
    color:#357251;
    background:#edf7ef;
}

.qr-status-danger {
    color:#ac4b43;
    background:#fff0ec;
}

.qr-status-active {
    color:#427493;
    background:#eef5fb;
}

.qr-status-neutral {
    color:#8a704b;
    background:#f6f1e7;
}

.qr-detail-button {
    display:inline-flex;
    gap:7px;
    align-items:center;
    background:#fff;
    border:1px solid #e5d6bc;
    border-radius:5px;
    padding:6px 9px;
    color:#9b7339;
    font:inherit;
    font-size:10px;
    cursor:pointer;
}

.qr-empty {
    padding:42px 20px;
    text-align:center;
    color:#a2937f;
}

.qr-empty>i {
    font-size:30px;
    color:#cbbb9f;
}

.qr-empty h3 {
    font-size:14px;
    color:#74644f;
    margin:12px 0 8px;
}

.qr-empty p {
    font-size:12px;
    margin:0;
}

.qr-sentinel {
    text-align:center;
    padding:15px;
    color:#9b8a74;
    font-size:11px;
}

.qr-footer {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:14px 24px;
    border-top:1px solid #eee6da;
    font-size:11px;
    color:#96836b;
}

.qr-dialog {
    width:min(720px,calc(100% - 40px));
    max-height:85vh;
    border:1px solid #e1d1b7;
    border-radius:12px;
    padding:0;
    background:#fffdf9;
    color:#51483f;
    box-shadow:0 18px 80px #382a2240;
}

.qr-dialog::backdrop {
    background:#30282066;
}

.qr-dialog>header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:22px 24px;
    border-bottom:1px solid #eee6da;
}

.qr-dialog h2 {
    font-size:20px;
    margin:0;
}

.qr-close {
    background:#fff;
    color:#8c7d6b;
    border:1px solid #e4d8c6;
    padding:8px 10px;
    border-radius:6px;
    cursor:pointer;
}

.qr-detail-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px 30px;
    padding:24px;
    margin:0;
}

.qr-detail-grid dt {
    font-size:10px;
    color:#9b8a74;
    margin-bottom:6px;
}

.qr-detail-grid dd {
    font-size:12px;
    margin:0;
    overflow-wrap:anywhere;
}

@media (max-width:1250px) {
    .qr-summary {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

}

@media (max-width:850px) {
    .qr-filters {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .qr-hero {
        padding:22px;
    }

    .qr-panel-head {
        align-items:flex-start;
    }

}

@media (max-width:520px) {
    .qr-hero {
        flex-direction:column;
        align-items:stretch;
        gap:18px;
    }

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

    .qr-metric {
        padding:13px;
    }

    .qr-metric strong {
        font-size:23px;
    }

    .qr-filters {
        grid-template-columns:1fr;
        padding:18px;
    }

    .qr-panel-head,.qr-footer {
        padding:18px;
        flex-direction:column;
        align-items:flex-start;
    }

    .qr-tag {
        white-space:normal;
    }

    .qr-detail-grid {
        grid-template-columns:1fr;
    }

}
