/* roadpo.css -- Road PO page (RoadPO.aspx / RoadPOMobile.aspx). Everything is scoped under .rpo-wrap and
 * sets its own explicit colors (the mobile pages default to white text on a dark body). */
.rpo-wrap { box-sizing: border-box; max-width: 780px; margin: 0 auto; padding: 16px 14px 48px; color: #111827; background: #f3f4f6; border-radius: 14px; font-family: inherit; }
.rpo-wrap *, .rpo-wrap *::before, .rpo-wrap *::after { box-sizing: border-box; }
/* Site.Master's SAAQ popup is styled only by Tailwind utility classes, and this desktop page does not load
 * Tailwind -- without these rules the popup renders unstyled under the footer. Same look, no CDN needed. */
#saaqAlertModal.hidden { display: none; }
#saaqAlertModal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.6); }
#saaqAlertModal > div { width: 100%; max-width: 32rem; background: #fff; border-radius: 16px; border-top: 8px solid #dc2626; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); overflow: hidden; }
#saaqAlertModal > div > div:first-child { padding: 24px; }
#saaqAlertModal > div > div:first-child > div:first-child { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
#saaqAlertModal span.text-3xl { font-size: 30px; line-height: 1; }
#saaqAlertModal h3 { margin: 0; font-size: 20px; font-weight: 900; color: #1f2937; text-transform: uppercase; letter-spacing: -.025em; }
#saaqAlertModal p { margin: 0 0 16px; font-size: 14px; font-weight: 700; color: #6b7280; }
#saaqAlertList { max-height: 15rem; overflow-y: auto; padding-right: 8px; }
#saaqAlertList > div { display: flex; justify-content: space-between; align-items: center; padding: 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid; }
#saaqAlertList .bg-red-100 { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
#saaqAlertList .bg-orange-100 { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
#saaqAlertList .font-black { font-weight: 900; font-size: 14px; }
#saaqAlertList .uppercase { font-size: 10px; font-weight: 700; text-transform: uppercase; opacity: .8; }
#saaqAlertList > div > span { font-size: 9px; font-weight: 900; padding: 4px 8px; background: rgba(255,255,255,.5); border-radius: 8px; }
#saaqAlertModal > div > div:last-child { display: flex; justify-content: flex-end; padding: 16px; background: #f9fafb; }
#saaqAlertModal button { background: #1f2937; color: #fff; font-weight: 900; font-size: 12px; letter-spacing: .1em; padding: 12px 32px; border: 0; border-radius: 12px; cursor: pointer; }
#saaqAlertModal button:hover { background: #000; }
.rpo-mobile { max-width: none; border-radius: 0; padding: 12px 12px 40px; min-height: 100vh; }

.rpo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rpo-head-text { min-width: 0; }
.rpo-head h1 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; color: #111827; }
.rpo-head p { margin: 4px 0 0; font-size: 13px; color: #4b5563; }

.rpo-banner { background: #fef3c7; border: 1px solid #f59e0b; color: #78350f; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.rpo-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.rpo-tab { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.2; overflow-wrap: break-word; border: 2px solid #d1d5db; background: #fff; color: #374151; font-weight: 700; font-size: 14px; padding: 12px 10px; border-radius: 12px; cursor: pointer; }
.rpo-tab.on { background: #1e3a8a; border-color: #1e3a8a; color: #fff; }
.rpo-badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 12px; text-align: center; margin-left: 4px; }

.rpo-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.rpo-center { text-align: center; padding: 26px 16px; }
.rpo-hint { margin: 8px 0 0; font-size: 13px; color: #6b7280; }
.rpo-h2 { margin: 22px 0 10px; font-size: 16px; font-weight: 800; color: #111827; }
.rpo-h2-first { margin-top: 0; }
.rpo-h3 { margin: 16px 0 8px; font-size: 15px; font-weight: 800; color: #111827; }

.rpo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 18px; min-height: 48px; font-size: 15px; font-weight: 800; cursor: pointer; color: #fff; text-align: center; -webkit-tap-highlight-color: transparent; }
.rpo-btn:disabled { opacity: .55; cursor: default; }
.rpo-btn:active:not(:disabled) { transform: translateY(1px); }
.rpo-btn-wide { width: 100%; margin-top: 10px; }
.rpo-btn-big { width: 100%; min-height: 60px; font-size: 18px; margin-top: 6px; }
.rpo-btn-sm { min-height: 40px; padding: 8px 12px; font-size: 13px; }
.rpo-btn-green { background: #16a34a; }
.rpo-btn-blue { background: #1d4ed8; margin-top: 10px; }
.rpo-btn-amber { background: #d97706; }
.rpo-btn-ghost { background: #e5e7eb; color: #1f2937; }
.rpo-link { background: none; border: 0; padding: 12px 4px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline; }
.rpo-link-red { color: #b91c1c; }

.rpo-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.rpo-row > .rpo-btn { flex: 1 1 140px; }
.rpo-row-end { justify-content: center; margin-top: 4px; }

.rpo-numbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rpo-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.rpo-number { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 34px; font-weight: 800; color: #1e3a8a; line-height: 1.15; word-break: break-all; }
.rpo-saved { text-align: center; border-color: #16a34a; background: #f0fdf4; }
.rpo-saved-ico { width: 52px; height: 52px; margin: 0 auto 6px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 30px; line-height: 52px; font-weight: 800; }
.rpo-saved-title { margin: 6px 0 0; font-size: 17px; font-weight: 800; color: #14532d; }

.rpo-field { margin-top: 16px; }
.rpo-field > label:first-child, .rpo-wrap label.rpo-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: #374151; }
.rpo-wrap input[type=text], .rpo-wrap input[type=search], .rpo-wrap textarea {
    width: 100%; max-width: none; font-size: 17px; padding: 13px 14px; border: 2px solid #d1d5db; border-radius: 12px; background: #fff; color: #111827; font-family: inherit; outline: none; }
.rpo-wrap input[type=text]:focus, .rpo-wrap input[type=search]:focus, .rpo-wrap textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.2); }
.rpo-wrap input:disabled { background: #f3f4f6; color: #9ca3af; }
.rpo-wrap textarea { resize: vertical; min-height: 84px; }
.rpo-dim > .rpo-acwrap, .rpo-dim > .rpo-chips { opacity: .5; }

.rpo-check { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: #374151; cursor: pointer; font-weight: 600; }
.rpo-check input { width: 22px; height: 22px; flex: 0 0 auto; }
.rpo-check-inline { margin-top: 0; white-space: nowrap; }

.rpo-acwrap { position: relative; }
.rpo-aclist { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 2px solid #2563eb; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.18); max-height: 330px; overflow-y: auto; }
.rpo-aclist li { padding: 11px 12px; border-radius: 8px; cursor: pointer; min-height: 44px; display: flex; flex-direction: column; justify-content: center; color: #111827; }
.rpo-aclist li small { color: #6b7280; font-size: 12px; }
.rpo-aclist li.on, .rpo-aclist li:hover { background: #dbeafe; }

.rpo-chips { margin-top: 6px; min-height: 0; }
.rpo-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.rpo-chip-ok { background: #dcfce7; color: #166534; }
.rpo-chip-warn { background: #fef3c7; color: #92400e; }
.rpo-chip-info { background: #dbeafe; color: #1e40af; }

.rpo-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; border-radius: 10px; padding: 10px 12px; margin: 14px 0 4px; font-weight: 700; font-size: 14px; }
.rpo-dup { background: #fef3c7; border: 2px solid #f59e0b; color: #78350f; border-radius: 12px; padding: 12px; margin: 14px 0 4px; }
.rpo-dup p { margin: 6px 0 0; font-size: 14px; }

.rpo-pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.rpo-pill-draft { background: #fef3c7; color: #92400e; }
.rpo-pill-open { background: #dbeafe; color: #1e40af; }
.rpo-pill-done { background: #dcfce7; color: #166534; }
.rpo-pill-void { background: #e5e7eb; color: #4b5563; }

.rpo-list { display: flex; flex-direction: column; gap: 10px; }
.rpo-row-item, .rpo-qcard { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; }
.rpo-row-item.tap { cursor: pointer; border-left: 5px solid #2563eb; }
.rpo-qcard-open { border-left: 5px solid #2563eb; }
.rpo-qcard-done { border-left: 5px solid #16a34a; }
.rpo-qcard-draft { border-left: 5px solid #f59e0b; }
.rpo-qcard-void { border-left: 5px solid #9ca3af; opacity: .8; }
.rpo-ri-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rpo-ri-num { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; color: #1e3a8a; }
.rpo-ri-sup { margin-top: 4px; font-size: 16px; font-weight: 700; color: #111827; word-break: break-word; }
.rpo-ri-sub { margin-top: 2px; font-size: 14px; color: #374151; }
.rpo-ri-desc { margin-top: 6px; font-size: 14px; color: #1f2937; white-space: pre-wrap; word-break: break-word; background: #f9fafb; border-radius: 8px; padding: 8px 10px; }
.rpo-ri-meta { margin-top: 4px; font-size: 12px; color: #6b7280; }
.rpo-qfoot { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.rpo-qfoot > .rpo-btn { width: 100%; }
.rpo-qbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.rpo-qbtns .rpo-btn { flex: 1 1 auto; }

.rpo-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rpo-fchip { flex: 0 0 auto; border: 2px solid #d1d5db; background: #fff; color: #374151; font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.rpo-fchip.on { background: #1e3a8a; border-color: #1e3a8a; color: #fff; }
.rpo-fchip b { margin-left: 4px; }
.rpo-qtools { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.rpo-qtools input[type=search] { flex: 1 1 200px; }

.rpo-info { font-size: 14px; color: #1f2937; margin: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.rpo-typed ul, .rpo-skipped { margin: 6px 0 0; padding-left: 20px; font-size: 13px; color: #374151; max-height: 180px; overflow-y: auto; }
.rpo-skipped small { color: #6b7280; }
.rpo-filename { font-size: 13px; color: #4b5563; word-break: break-all; }
.rpo-stats { border-collapse: collapse; width: 100%; font-size: 14px; margin-bottom: 8px; }
.rpo-stats td { padding: 6px 4px; border-bottom: 1px solid #e5e7eb; color: #111827; }
.rpo-stats td:last-child { text-align: right; }

@media (max-width: 420px) {
    .rpo-tabs { gap: 4px; }
    .rpo-head h1 { font-size: 19px; }
    .rpo-number { font-size: 29px; }
    .rpo-tab { padding: 10px 4px; font-size: 12.5px; }
}

/* Mobile master header: the other mobile pages load Tailwind, whose preflight caps every <img> at
 * max-width:100%. That cap is what keeps the wide logo image from pushing the hamburger button off
 * screen; these pages don't load Tailwind, so restore the cap (and let the brand link shrink). */
.navbar-fixed-top .navbar-brand { min-width: 0; flex: 0 1 auto; }
.navbar-fixed-top .navbar-brand img { max-width: 100%; }
.navbar-fixed-top .manual-toggle { flex: 0 0 auto; }

/* Labelled fields on the inFlow queue cards (label first, then the value) */
.rpo-flds { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.rpo-fld { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: #111827; }
.rpo-fld-l { flex: 0 0 118px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; }
.rpo-fld-v { flex: 1 1 auto; min-width: 0; word-break: break-word; font-weight: 600; }
.rpo-fld-desc { display: block; white-space: pre-wrap; font-weight: 500; background: #f9fafb; border-radius: 8px; padding: 6px 8px; }
@media (max-width: 420px) {
    .rpo-fld { flex-direction: column; gap: 1px; }
    .rpo-fld-l { flex: none; }
}
