/* Shift Turnover: Issues, photos, DO NOT SERVE (Task 13).
   NEUTRAL: CSS vars lang ng styles.css (ang itsura ng Daet ay nasa daet-pos.css).
   Lahat ng class ay may prefix na st-. Ginagamit muli ang mga --st-* token at ang
   mga class ng turnover.css (.st-sw, .st-ta, .st-thumb, .st-nav, .st-chip ...).
   Walang `display: ... !important`: tinatalo nito ang gating ng roles.js/features.js. */

/* ---- Report: mga bahagi ng form ---- */
.st-fld { display: grid; gap: 8px; min-width: 0; }
.st-link--start { justify-self: start; padding-left: 0; padding-right: 0; }

.st-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.st-cat {
    min-height: 44px;
    padding: 6px 14px;
    border: 2px solid var(--st-line);
    border-radius: 999px;
    background: var(--st-paper);
    color: var(--st-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.st-cat[aria-pressed="true"] {
    border-color: var(--st-primary);
    background: var(--st-primary-soft);
    box-shadow: inset 0 0 0 1px var(--st-primary);
}

/* Ang napili na (tao, menu item, equipment): isang linya + Change. */
.st-picked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 6px 6px 6px 12px;
    border: 2px solid var(--st-primary);
    border-radius: var(--st-radius);
    background: var(--st-primary-soft);
}
.st-picked__t { min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.st-picked__t small { display: block; font-size: 12px; font-weight: 600; color: var(--st-muted); }

.st-results {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.st-results > .st-note { grid-column: 1 / -1; }
.st-resbtn {
    min-height: 44px;
    padding: 8px 12px;
    border: 2px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-paper);
    color: var(--st-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.st-resbtn small { display: block; font-size: 12px; font-weight: 600; color: var(--st-muted); }

/* Ang switch na DO NOT SERVE: buong lapad, pula kapag naka-on. */
.st-dnssw {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    border: 2px solid var(--st-dns);
    border-radius: var(--st-radius);
    background: var(--st-paper);
    color: var(--st-dns);
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}
.st-dnssw[aria-checked="true"] { background: var(--st-dns); color: var(--st-dns-ink); }
.st-knob {
    position: relative;
    flex: none;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--st-line);
}
.st-knob::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--st-paper);
    transition: left 0.15s;
}
.st-dnssw[aria-checked="true"] .st-knob { background: var(--st-dns-ink); }
.st-dnssw[aria-checked="true"] .st-knob::after { left: 23px; background: var(--st-dns); }

/* ---- Issues: listahan ---- */
.st-isstop { display: flex; justify-content: flex-end; }
.st-filters { display: grid; gap: 8px; }
.st-isslist { display: grid; gap: 8px; }
.st-iss {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    border: 2px solid var(--st-card-line);
    border-radius: 12px;
    background: var(--st-paper);
}
.st-iss--dns { border-color: var(--st-dns); box-shadow: inset 4px 0 0 var(--st-dns); }
.st-iss--done { background: var(--st-bg); }
.st-iss.is-focus { outline: 3px solid var(--st-primary); outline-offset: 2px; }
.st-iss__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-iss__cat {
    margin-right: auto;
    color: var(--st-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.st-iss__subj { font-size: 16px; font-weight: 900; overflow-wrap: anywhere; }
.st-iss__desc { margin: 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.st-iss__meta { color: var(--st-muted); font-size: 13px; overflow-wrap: anywhere; }
.st-iss__res {
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--st-ok-soft);
    color: var(--st-ok);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.st-iss__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.st-dnsb {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--st-dns);
    color: var(--st-dns-ink);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.st-photo { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 10px; }
.st-resolve { display: grid; gap: 8px; }

/* ---- Global na banner (sa ilalim ng .top-bar, labas ng .st-root) ----
   ISANG linya (44px) kahit ilan ang issue, para hindi matakpan ang menu sa 1024x768.
   May .st-layer siya para makuha ang mga --st-* token (at ang kulay ng Daet sa susunod). */
.st-dnsg {
    position: relative;
    z-index: 5;
    flex: none;
    display: block;
    height: 44px;
    overflow: hidden;
    background: var(--st-dns);
    color: var(--st-dns-ink);
}
.st-dnsg__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}
button.st-dnsg__row { cursor: pointer; }
.st-dnsg__row b { flex: none; font-weight: 900; letter-spacing: 0.04em; }
.st-dnsg__txt { flex: 0 1 auto; min-width: 4em; overflow: hidden; font-weight: 600; text-overflow: ellipsis; }
.st-dnsg__more { flex: none; font-weight: 900; }
.st-dnsg__old { flex: 0 1 auto; min-width: 0; overflow: hidden; font-size: 12px; font-weight: 600; opacity: 0.9; text-overflow: ellipsis; }
.st-dnsg__row:focus-visible { outline: 3px solid var(--st-dns-ink); outline-offset: -4px; }
/* Ang Home ng Shift Turnover ay may sariling .st-dnsbar: huwag doblehin habang nakabukas ito. */
body:has(.module.active .st-root[data-screen="home"]) .st-dnsg { display: none; }

/* ---- Tatak sa card ng POS (sa loob ng .menu-item-img, labas ng .st-root) ----
   Hindi humaharang sa pindot (pointer-events: none): ang addToOrder ang humihinto, may toast. */
.st-dns {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: rgba(185, 28, 28, 0.82);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
}

@media (max-width: 420px) {
    .st-dnsg__row { padding: 0 12px; font-size: 13px; }
}
