.qsh-page{background:#fff}
#pageContent:has(>.qsh-page){padding:0!important;gap:0!important;background:#fff}
#pageContent:has(>.qsh-page)>.qsh-page{width:100%;max-width:none!important;margin:0!important;box-sizing:border-box}
.qsh-back,.qsh-summary article,.qsh-toolbar label{box-shadow:0 7px 20px rgba(20,21,24,.035)}
.qsh-date-card{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;padding:12px;border:1px solid #e7e6e2;border-radius:17px;background:#f7f7f5}
.qsh-date-copy{display:flex;min-width:90px;flex-direction:column;gap:2px}
.qsh-date-copy small{color:#a97b1e;font-size:7px;font-weight:900;letter-spacing:.14em}
.qsh-date-copy strong{font-size:11px}
.qsh-date-actions{display:flex;align-items:center;gap:5px}
.qsh-date-actions>button,.qsh-calendar{display:grid;place-items:center;height:34px;border:1px solid #dfdfdc;border-radius:11px;background:#fff;color:#6e7177;font-size:8px;font-weight:850}
.qsh-date-actions>button{padding:0 10px}
.qsh-date-actions>button.active{border-color:#17191d;background:#17191d;color:#fff}
.qsh-calendar{position:relative;width:36px;color:#a97b1e;overflow:hidden}
.qsh-calendar input{position:absolute;inset:0;width:100%;height:100%;opacity:0}
.qsh-list-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:13px;padding:12px 4px;color:#888b91;font-size:9px;font-weight:700}
.qsh-list-footer[hidden]{display:none!important}
.qsh-list-footer button{height:38px;padding:0 15px;border:0;border-radius:12px;background:#17191d;color:#fff;font-size:9px;font-weight:850}
.qsh-list-footer button:disabled{opacity:.55}
.qsh-item.is-expired{background:#fafaf9;color:#8f9297}.qsh-item.is-expired>b{padding:5px 7px;border-radius:8px;background:#eeeeeb;color:#8f9297}
.qsh-sale{cursor:pointer}
.qsh-sale.is-reversed{opacity:.72}
.qsh-actor{display:flex;align-items:center;gap:4px;color:#56595f;font-size:8px;font-weight:750}
.qsh-details-link{display:flex;align-items:center;gap:4px;margin-top:3px;color:#888b91;font-size:8px;font-weight:750}.qsh-details-link i{font-size:7px}
.qsh-status{margin-top:2px;padding:4px 6px;border-radius:7px;font-size:7px;letter-spacing:.05em}
.qsh-status.returned{background:#fff4e1;color:#9b6f16}.qsh-status.reversed{background:#f4e7e4;color:#9d4036}
.qsh-sale>footer{display:flex;justify-content:flex-end;padding:8px 12px;border-top:1px solid #ededeb;background:#fff}
.qsh-card-reverse{height:32px;padding:0 11px;border:1px solid rgba(157,64,54,.24);border-radius:10px;background:#fff5f3;color:#9d4036;font-size:8px;font-weight:900}.qsh-card-reverse i{margin-right:5px}

.qsh-details{position:fixed;z-index:910;inset:0;display:flex;align-items:flex-end;justify-content:center}
.qsh-details[hidden]{display:none!important}
.qsh-details-backdrop{position:absolute;inset:0;border:0;background:rgba(18,19,22,.46);backdrop-filter:blur(6px)}
.qsh-details-card{position:relative;width:100%;max-width:650px;max-height:calc(100dvh - env(safe-area-inset-top) - 10px);padding:10px 18px calc(24px + env(safe-area-inset-bottom));border-radius:25px 25px 0 0;background:#fff;overflow-y:auto;overscroll-behavior:contain}
.qsh-details-card>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.qsh-details-card>header small{color:#a8791c;font-size:8px;font-weight:900;letter-spacing:.16em}
.qsh-details-card>header h3{margin:3px 0 0;font-size:20px}
.qsh-details-card>header button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #e4e4e1;border-radius:13px;background:#f8f8f6;color:#17191d!important}
.qsh-detail-status{display:flex;justify-content:space-between;gap:10px;padding:11px 12px;border-radius:13px;background:#edf8f0;color:#2e7650;font-size:9px;font-weight:850}
.qsh-detail-status.reversed{background:#f7ebe8;color:#9d4036}
.qsh-detail-line{display:flex;justify-content:space-between;gap:16px;padding:12px 2px;border-bottom:1px solid #ededeb;font-size:10px}
.qsh-detail-line span{color:#85888e}.qsh-detail-line strong{text-align:right}
.qsh-detail-section{margin-top:14px;padding:12px;border:1px solid #e8e7e3;border-radius:15px;background:#fafaf8}
.qsh-detail-section>small{display:block;margin-bottom:7px;color:#a8791c;font-size:7px;font-weight:900;letter-spacing:.14em}
.qsh-detail-section>div,.qsh-detail-totals>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;font-size:10px}
.qsh-detail-section>div+div{border-top:1px solid #ecebe8}
.qsh-detail-items{max-height:205px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.qsh-detail-items>small{position:sticky;z-index:1;top:-12px;margin:-12px -12px 7px;padding:12px 12px 7px;background:#fafaf8}
.qsh-detail-totals{margin-top:11px;padding:8px 12px;border-radius:15px;background:#f3f3f1}
.qsh-detail-totals>div:last-child{border-top:1px solid #dededb;font-size:12px}
.qsh-detail-note{display:flex;flex-direction:column;gap:3px;margin-top:11px;padding:11px 12px;border-radius:13px;background:#f7ebe8;color:#9d4036;font-size:9px}
.qsh-detail-note span{color:#7e6460}
.qsh-reverse-open{width:100%;height:48px;margin-top:13px;border:1px solid rgba(160,55,45,.28);border-radius:14px;background:#fff5f3;color:#9d4036;font-size:11px;font-weight:900}
.qsh-reverse-open i{margin-right:7px}
.qsh-reverse-form{margin-top:13px;padding:13px;border:1px solid rgba(160,55,45,.22);border-radius:16px;background:#fff8f7}
.qsh-reverse-form>strong{color:#9d4036;font-size:13px}.qsh-reverse-form>p{margin:4px 0 10px;color:#7f7776;font-size:9px}
.qsh-reverse-form>label{display:flex;flex-direction:column;gap:5px;margin-top:9px;color:#777a80;font-size:8px;font-weight:850;text-transform:uppercase}
.qsh-reverse-form select,.qsh-reverse-form textarea{width:100%;min-height:43px;padding:10px;border:1px solid #dfd5d2;border-radius:12px;background:#fff;color:#17191d;font:600 16px/1.2 inherit;text-transform:none;outline:0}
.qsh-reverse-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:8px;margin-top:11px}
.qsh-reverse-actions button{height:44px;border:1px solid #dededb;border-radius:12px;background:#fff;color:#17191d;font-size:9px;font-weight:850}
.qsh-reverse-actions button:last-child{border-color:#9d4036;background:#9d4036;color:#fff}
.qsh-reverse-actions button:disabled{opacity:.55}
@media(max-width:390px){.qsh-date-card{align-items:flex-start;flex-direction:column}.qsh-date-actions{width:100%}.qsh-date-actions>button{flex:1}}
@media(min-width:700px){.qsh-details-card{margin-bottom:18px;border-radius:25px}}

/* v548: correction sheets must cover the fixed app navigation. */
.qsh-return{z-index:900}
.qsh-return-card{max-height:calc(100dvh - env(safe-area-inset-top) - 10px);padding-bottom:calc(24px + env(safe-area-inset-bottom));overscroll-behavior:contain}
.qsh-return-card header button{color:#17191d!important}

/* v549: reversal is a separate correction sheet; validation stays above sheets. */
.qsh-reversal{position:fixed;z-index:930;inset:0;display:flex;align-items:flex-end;justify-content:center}
.qsh-reversal[hidden]{display:none!important}
.qsh-reversal-card{position:relative;width:100%;max-width:650px;max-height:calc(100dvh - env(safe-area-inset-top) - 10px);padding:10px 18px calc(24px + env(safe-area-inset-bottom));border-radius:25px 25px 0 0;background:#fff;overflow-y:auto;overscroll-behavior:contain}
.qsh-reversal-card>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.qsh-reversal-card>header small{color:#a8791c;font-size:8px;font-weight:900;letter-spacing:.16em}
.qsh-reversal-card>header h3{margin:3px 0 0;font-size:20px}
.qsh-reversal-card>header button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #e4e4e1;border-radius:13px;background:#f8f8f6;color:#17191d!important}
.qsh-reversal-card>label{display:flex;flex-direction:column;gap:6px;margin-top:12px;color:#73767c;font-size:8px;font-weight:850;text-transform:uppercase}
.qsh-reversal-card select,.qsh-reversal-card textarea{width:100%;min-height:45px;padding:10px 12px;border:1px solid #dededb;border-radius:13px;background:#fff;color:#17191d;font:600 16px/1.2 inherit;text-transform:none;outline:0}
.qsh-reversal-summary{padding:9px 12px;border-radius:15px;background:#f3f3f1}
.qsh-reversal-summary>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;font-size:10px}
.qsh-reversal-summary>div+div{border-top:1px solid #dededb}
.qsh-reversal-warning{display:flex;gap:10px;margin-top:12px;padding:12px;border:1px solid rgba(160,55,45,.22);border-radius:15px;background:#fff5f3;color:#9d4036}
.qsh-reversal-warning>span{display:flex;flex-direction:column;gap:3px}.qsh-reversal-warning strong{font-size:10px}.qsh-reversal-warning small{color:#7e6460;font-size:8px;line-height:1.4}
.qsh-return-card select.invalid,.qsh-reversal-card select.invalid{border-color:#a84236!important;box-shadow:0 0 0 3px rgba(168,66,54,.13)}
.qsh-toast{z-index:1000!important;bottom:calc(90px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 32px)}
@media(min-width:700px){.qsh-reversal-card{margin-bottom:18px;border-radius:25px}}
