/* PDS Service Centre Engine v15.25.0 — Unified UI/UX layer. Loaded after legacy styles. */
:root{
  --pds-ui-bg:#f5f8fc;--pds-ui-card:#fff;--pds-ui-line:#dbe4ef;--pds-ui-text:#0f172a;--pds-ui-muted:#64748b;
  --pds-ui-primary:var(--pds-primary,#0f4c81);--pds-ui-accent:var(--pds-accent,#2563eb);--pds-ui-radius:16px;
  --pds-mobile-nav-height:70px;--pds-ui-shadow:0 10px 30px rgba(15,23,42,.07);
}
body.pds-sce-app-mode{background:var(--pds-ui-bg)!important}
.pds-sce-app.pds-app-v2{background:var(--pds-ui-bg)!important;color:var(--pds-ui-text)!important}
.pds-sce-app *{box-sizing:border-box}
.pds-sce-app a,.pds-sce-app button,.pds-sce-app input,.pds-sce-app select,.pds-sce-app textarea,.pds-sce-app summary{font:inherit}
.pds-sce-app button,.pds-sce-app .pds-btn,.pds-sce-app .pds-mini,.pds-sce-app a.pds-btn{min-height:44px;touch-action:manipulation}
.pds-sce-app :focus-visible{outline:3px solid color-mix(in srgb,var(--pds-ui-accent) 36%,#fff);outline-offset:2px}
.pds-sce-app .pds-card,.pds-sce-app .pds-screen-card{border-color:var(--pds-ui-line)!important;border-radius:var(--pds-ui-radius)!important;box-shadow:var(--pds-ui-shadow)!important}
.pds-sce-app .pds-card h2,.pds-sce-app .pds-card h3,.pds-sce-app .pds-card h4{color:var(--pds-ui-text);letter-spacing:-.01em}
.pds-sce-app .pds-muted{color:var(--pds-ui-muted)!important}
.pds-sce-app input,.pds-sce-app select,.pds-sce-app textarea{min-height:44px;border:1px solid #cbd5e1!important;border-radius:12px!important;background:#fff!important;color:var(--pds-ui-text)!important}
.pds-sce-app input:focus,.pds-sce-app select:focus,.pds-sce-app textarea:focus{border-color:var(--pds-ui-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--pds-ui-accent) 15%,transparent)!important}
.pds-sce-app button:disabled,.pds-sce-app .pds-btn:disabled,.pds-sce-app .pds-mini:disabled{opacity:.55;cursor:not-allowed;transform:none!important}
.pds-sce-app details{border-color:var(--pds-ui-line)}
.pds-sce-app summary{cursor:pointer;min-height:40px;display:flex;align-items:center}

/* Stable header/sidebar shell */
.pds-app-v2 .pds-topbar{min-height:68px;background:rgba(255,255,255,.96)!important;border-bottom:1px solid var(--pds-ui-line)!important;box-shadow:0 4px 16px rgba(15,23,42,.04)}
.pds-sidebar{background:linear-gradient(180deg,#0b2f4d 0%,#08263f 100%)!important}
.pds-sidebar .pds-app-nav a{min-height:44px;display:flex;align-items:center}
.pds-sidebar .pds-app-nav a.active,.pds-sidebar .pds-app-nav a.is-active{background:#2563eb!important;color:#fff!important}
.pds-topbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* Universal responsive tables */
.pds-responsive-table,.pds-table-wrap,.pds-scroll{max-width:100%;overflow:auto!important;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
.pds-responsive-table table,.pds-table-wrap table{border-collapse:separate;border-spacing:0}
.pds-responsive-table th,.pds-table-wrap th{position:sticky;top:0;z-index:2;background:#f8fafc!important}
.pds-responsive-table tr:hover td,.pds-table-wrap tr:hover td{background:#f8fbff}
.pds-ui-table-scroll{position:relative}
.pds-empty-state,.pds-empty-row,.pds-empty-mini{color:var(--pds-ui-muted);text-align:center}
.pds-empty-state{padding:24px 16px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc}

/* Global request progress without blocking the page. */
#pds-unified-progress{position:fixed;left:0;right:0;top:0;height:3px;z-index:100002;pointer-events:none;opacity:0;transform:scaleX(.08);transform-origin:left;background:var(--pds-ui-accent);transition:opacity .16s ease,transform .4s ease}
body.pds-ui-network-busy #pds-unified-progress{opacity:1;transform:scaleX(.78)}
body.pds-ui-network-settling #pds-unified-progress{opacity:0;transform:scaleX(1)}
.pds-section-refreshing{position:relative}
.pds-section-refreshing:after{content:"Updating…";position:absolute;right:14px;top:14px;padding:5px 9px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:800;z-index:4}

/* Accounts/report detail clarity. */
.pds-account-detail-toolbar{display:flex!important;justify-content:space-between;gap:10px;align-items:center;position:sticky;top:68px;z-index:8;background:#fff;padding:8px 0;border-bottom:1px solid var(--pds-ui-line)}
.pds-account-detail-panel>h3{margin-top:10px}
.pds-account-detail-panel table{font-variant-numeric:tabular-nums}
.pds-payable-kpis,.pds-simple-kpis{gap:10px!important}
.pds-account-kpi-card{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.pds-account-kpi-card:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(15,23,42,.10)}

/* Courier/technician/customer daily cards. */
.pds-role-courier .pds-v43-courier-card,.pds-role-technician .pds-tech-job-card,.pds-role-customer .pds-customer-ticket-card{border:1px solid var(--pds-ui-line)!important;box-shadow:0 8px 22px rgba(15,23,42,.06)!important}
.pds-courier-more .pds-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

/* Print staging. Screen never jumps to about:blank. */
#pds-unified-print-stage{display:none}
#pds-unified-print-stage .pds-unified-print-head{display:grid;grid-template-columns:1fr auto;gap:16px;border-bottom:2px solid #111827;padding-bottom:8px;margin-bottom:10px}
#pds-unified-print-stage .pds-unified-print-head h1{font-size:18px;margin:0}
#pds-unified-print-stage .pds-unified-print-head h2{font-size:15px;margin:3px 0 0}
#pds-unified-print-stage table{width:100%;border-collapse:collapse;font-size:10.5px}
#pds-unified-print-stage th,#pds-unified-print-stage td{border:1px solid #94a3b8;padding:5px;text-align:left;vertical-align:top}
#pds-unified-print-stage th{background:#eef2f7!important;color:#111827!important}
#pds-unified-print-stage .pds-payable-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:8px 0}
#pds-unified-print-stage .pds-payable-kpis>div{border:1px solid #94a3b8;padding:7px}

/* Mobile shell. */
@media (max-width:920px){
  :root{--pds-mobile-nav-height:72px}
  .pds-sce-app.pds-app-v2{display:block!important;padding-bottom:calc(var(--pds-mobile-nav-height) + env(safe-area-inset-bottom))!important}
  .pds-sce-app.pds-app-v2 .pds-sidebar{display:none!important}
  .pds-app-content{padding:12px!important}
  .pds-app-v2 .pds-topbar{top:0!important;padding:10px 12px!important;min-height:60px!important}
  .pds-app-v2 .pds-topbar>div:first-child strong{font-size:15px}
  .pds-app-v2 .pds-topbar>div:first-child small{font-size:11px}
  .pds-workspace-menu summary,.pds-logout{min-height:40px!important;padding:8px 10px!important}
  .pds-role-manager .pds-bottom-nav,.pds-role-admin .pds-bottom-nav,.pds-role-operation .pds-bottom-nav,.pds-role-technician .pds-bottom-nav,.pds-role-courier .pds-bottom-nav,.pds-role-customer .pds-bottom-nav{display:block!important}
  .pds-bottom-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:9990!important;background:#081f35!important;border-top:1px solid #183b57!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;min-height:calc(var(--pds-mobile-nav-height) + env(safe-area-inset-bottom))!important}
  .pds-bottom-nav .pds-mobile-app-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important}
  .pds-bottom-nav .pds-mobile-app-nav a{min-width:0!important;min-height:48px!important;padding:7px 3px!important;border-radius:11px!important;color:#dbeafe!important;text-align:center!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:11px!important;line-height:1.15!important;white-space:normal!important;text-decoration:none!important;font-weight:800!important}
  .pds-bottom-nav .pds-mobile-app-nav a.active,.pds-bottom-nav .pds-mobile-app-nav a.is-active{background:#2563eb!important;color:#fff!important;box-shadow:0 5px 14px rgba(37,99,235,.28)}
  .pds-toast-stack{bottom:calc(var(--pds-mobile-nav-height) + 12px + env(safe-area-inset-bottom))!important;left:12px!important;right:12px!important;max-width:none!important}
  .pds-att-global-break{bottom:calc(var(--pds-mobile-nav-height) + 10px + env(safe-area-inset-bottom))!important}
  .pds-account-detail-toolbar{top:60px!important}
  .pds-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .pds-action-card{min-height:82px!important}
  .pds-card,.pds-screen-card{scroll-margin-top:72px}
  .pds-table-wrap,.pds-responsive-table{border-radius:12px;box-shadow:inset -12px 0 16px -18px rgba(15,23,42,.55)}
}
@media (max-width:520px){
  .pds-app-content{padding:8px!important}
  .pds-sce-app .pds-card,.pds-sce-app .pds-screen-card{padding:12px!important;border-radius:14px!important}
  .pds-action-grid,.pds-courier-more .pds-action-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .pds-action-card{padding:11px!important;min-height:74px!important}
  .pds-payable-kpis,.pds-simple-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .pds-account-detail-toolbar{flex-direction:column;align-items:stretch}
  .pds-account-detail-toolbar .pds-mini{width:100%!important}
  .pds-topbar-actions{gap:5px}
}
@media (max-width:360px){
  .pds-bottom-nav .pds-mobile-app-nav a{font-size:10px!important;padding-left:1px!important;padding-right:1px!important}
  .pds-action-grid,.pds-courier-more .pds-action-grid{grid-template-columns:1fr!important}
}

@media (prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}

@media print{
  @page pdsLandscape{size:A4 landscape;margin:9mm}
  @page pdsPortrait{size:A4 portrait;margin:10mm}
  #pds-unified-print-stage.pds-print-landscape{page:pdsLandscape}
  #pds-unified-print-stage.pds-print-portrait{page:pdsPortrait}
  body.pds-unified-print-mode>*:not(#pds-unified-print-stage){display:none!important}
  body.pds-unified-print-mode #pds-unified-print-stage{display:block!important;position:static!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important;color:#111827!important}
  #pds-unified-print-stage button,#pds-unified-print-stage input,#pds-unified-print-stage select,#pds-unified-print-stage textarea,#pds-unified-print-stage form,#pds-unified-print-stage .pds-account-detail-toolbar,#pds-unified-print-stage .pds-form-result,#pds-unified-print-stage .pds-no-print{display:none!important}
  #pds-unified-print-stage .pds-responsive-table,#pds-unified-print-stage .pds-table-wrap{overflow:visible!important}
  #pds-unified-print-stage table{min-width:0!important}
  #pds-unified-print-stage tr{break-inside:avoid}
}

/* v15.25.1 technician history, due visibility and invoice shortcut */
.pds-tech-due-kpi small{display:block;margin-top:5px;font-weight:700;color:#9a5a05}
.pds-v145-ticket-due{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:5px 9px;background:#fff3cd;color:#8a4b00;font-size:12px;font-weight:800;border:1px solid #f1d78d}
.pds-previous-history-warning{margin-top:12px}
.pds-previous-history-warning:empty{display:none!important}
.pds-previous-history-card{border-left:4px solid #f59e0b;background:#fffbeb}
.pds-previous-history-head,.pds-previous-history-foot{display:flex;gap:6px;flex-direction:column}
.pds-previous-history-head b{font-size:15px;color:#7c4700}
.pds-previous-history-list{display:grid;gap:7px;margin:10px 0}
.pds-previous-history-open-ticket{display:flex;width:100%;text-align:left;flex-direction:column;align-items:flex-start;gap:3px;padding:10px 12px;border:1px solid #e6d8b3;background:#fff;border-radius:12px;color:inherit}
.pds-previous-history-open-ticket strong{color:#17365f}
.pds-previous-history-open-ticket span,.pds-previous-history-open-ticket small{font-size:12px;color:#667085}
.pds-previous-service-summary{display:flex;flex-direction:column;gap:4px;margin:10px 0;padding:10px 12px;border-radius:12px;background:#fff8e8;border:1px solid #eed398}
.pds-tech-history-result{border-left:3px solid #9b7a34;padding-left:7px}
.pds-billing-invoice-shortcut{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0;padding:10px 12px;border:1px solid #cfe0f3;border-radius:12px;background:#f8fbff}
@media(max-width:700px){.pds-v145-ticket-title{flex-wrap:wrap}.pds-v145-ticket-due{margin-left:0}.pds-previous-history-open-ticket{min-height:64px}.pds-tech-due-kpi small{font-size:11px}}

/* v15.26.1 isolated Advanced Accounts tabs */
.pds-advanced-accounts .pds-erp-v10>.pds-erp-group[hidden],.pds-advanced-accounts .pds-erp-v10>.pds-kpi-grid[hidden],.pds-advanced-account-panel[hidden]{display:none!important}
.pds-advanced-accounts .pds-erp-subnav{position:sticky;top:0;z-index:8;display:flex;overflow-x:auto;white-space:nowrap;background:var(--pds-surface,#fff);padding:8px;border-bottom:1px solid var(--pds-border,#e5e7eb)}
/* v15.26.1 Smart QC / Estimate Ops */
.pds-smart-qc-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.pds-smart-qc-list{display:grid;gap:10px;margin:12px 0}.pds-smart-qc-item{border:1px solid #dfe5ee;border-radius:12px;padding:10px}.pds-qc-result-pills{display:flex;gap:8px;flex-wrap:wrap}.pds-qc-result-pills label{padding:6px 9px;border:1px solid #d8e0ea;border-radius:999px;background:#fff}.pds-ops-estimate-send-card,.pds-ops-decision-card,.pds-revert-panel{display:grid;gap:8px;padding:10px;border:1px solid #dfe5ee;border-radius:12px;background:#fff}
/* v15.26.1 compact GST compliance modal */
.pds-gst-compliance-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.38)}
.pds-gst-compliance-modal.is-banner-only{position:relative;inset:auto;display:block;padding:0;background:transparent;z-index:auto}.pds-gst-compliance-modal.is-banner-only .pds-gst-guard-grid,.pds-gst-compliance-modal.is-banner-only .pds-muted{display:none}.pds-gst-compliance-modal>.pds-gst-compliance-dialog{width:min(720px,100%);max-height:min(86vh,760px);overflow:auto;background:#fff;border:1px solid #dfe5ee;border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.22);padding:18px}.pds-gst-compliance-modal.is-banner-only>.pds-gst-compliance-dialog{width:auto;max-height:none;box-shadow:none;border-radius:12px;padding:12px}.pds-gst-compliance-modal .pds-gst-guard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.pds-gst-compliance-modal .pds-gst-guard-grid{display:grid;gap:12px}.pds-gst-compliance-modal .pds-gst-filing-form{display:grid;grid-template-columns:minmax(100px,.7fr) 1fr 1.4fr auto;gap:10px;align-items:end;padding:12px;border:1px solid #e3e8f0;border-radius:14px}.pds-gst-compliance-modal .pds-gst-guard-close{flex:0 0 auto;width:36px;height:36px;border-radius:50%;font-size:22px}@media(max-width:700px){.pds-gst-compliance-modal{padding:10px}.pds-gst-compliance-modal .pds-gst-filing-form{grid-template-columns:1fr}.pds-smart-qc-head{align-items:flex-start;flex-direction:column}}
/* v15.26.1 negative cash reconciliation */
.pds-negative-cash-warning{margin:12px 0;padding:14px;border:1px solid #f0c36d;border-radius:14px;background:#fff8e8}.pds-negative-cash-warning form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}@media(max-width:700px){.pds-negative-cash-warning form{grid-template-columns:1fr}}

/* v15.26.3 final workflow clarity: internal estimate, immutable QC and Ops decision UI */
.pds-estimate-work-note{margin:0 0 12px;padding:10px 12px;border-left:4px solid #2563eb;background:#eff6ff;border-radius:10px;line-height:1.45}
.pds-estimate-work-note b{display:inline-block;margin-bottom:2px}
.pds-qc-dispatch-form :disabled{opacity:.58;cursor:not-allowed}
.pds-qc-dispatch-form button:disabled{filter:saturate(.55);box-shadow:none}
.pds-ops-estimate-send-card small,.pds-ops-decision-card small{display:block;color:#64748b;line-height:1.4}
.pds-ops-decision-card label{display:grid;gap:4px;font-size:12px;font-weight:750}
.pds-ops-decision-card select,.pds-ops-decision-card input{width:100%;min-width:0}
.pds-ops-decision-card .pds-phone-approval-form{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(130px,.9fr) minmax(180px,1.5fr) auto;gap:8px;align-items:end}
.pds-ops-decision-card .pds-phone-approval-result{grid-column:1/-1}
@media(max-width:760px){.pds-ops-decision-card .pds-phone-approval-form{grid-template-columns:1fr}.pds-ops-decision-card .pds-phone-approval-form button{width:100%}.pds-estimate-work-note{padding:9px 10px}}

/* v15.26.4 — technician handoff + Fitting/Final QC mobile polish. */
.pds-role-technician .pds-tech-previous-work{margin:12px 0;padding:14px;border:1px solid #cfe0f2;border-radius:18px;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);box-shadow:0 8px 24px rgba(18,62,110,.07)}
.pds-role-technician .pds-tech-previous-work>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:11px}
.pds-role-technician .pds-tech-previous-work>header small{display:block;color:#2563eb;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.pds-role-technician .pds-tech-previous-work>header h3{margin:2px 0 3px;font-size:18px;color:#10213a!important}
.pds-role-technician .pds-tech-previous-work>header p{margin:0;color:#60748e;font-size:12px;line-height:1.45}
.pds-role-technician .pds-tech-previous-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.pds-role-technician .pds-tech-previous-stage{min-width:0;padding:12px;border:1px solid #d8e5f3;border-radius:15px;background:#fff}
.pds-role-technician .pds-tech-previous-stage-head{display:flex;justify-content:space-between;gap:8px;align-items:center}
.pds-role-technician .pds-tech-previous-stage-head span{font-weight:900;color:#17375e}
.pds-role-technician .pds-tech-previous-stage-head b{font-size:10px;color:#047857;background:#ecfdf5;border-radius:999px;padding:4px 7px;white-space:nowrap}
.pds-role-technician .pds-tech-previous-meta{margin:5px 0 8px;color:#70849c;font-size:11px;font-weight:700}
.pds-role-technician .pds-tech-previous-summary{margin:0 0 9px;color:#263d5c;font-size:12px;line-height:1.45}
.pds-role-technician .pds-tech-previous-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.pds-role-technician .pds-tech-previous-facts>div{min-width:0;padding:7px 8px;border-radius:10px;background:#f4f8fd}
.pds-role-technician .pds-tech-previous-facts small,.pds-role-technician .pds-tech-private-note small{display:block;color:#6a7f98;font-size:10px;font-weight:800}
.pds-role-technician .pds-tech-previous-facts b,.pds-role-technician .pds-tech-private-note b{display:block;color:#18324f;font-size:12px;overflow-wrap:anywhere}
.pds-role-technician .pds-tech-private-note{margin-top:8px;padding:8px 9px;border-left:3px solid #7c3aed;border-radius:8px;background:#faf7ff}
.pds-role-technician .pds-fitting-qc-work-card{border:1px solid #bcd9ee!important;background:linear-gradient(180deg,#f7fcff 0%,#fff 36%)!important}
.pds-role-technician .pds-fitting-qc-work-card>h3{margin-bottom:5px!important}
.pds-sce-app .pds-smart-qc-route-note{margin:10px 0;padding:10px 12px;border:1px solid #b9dcef;border-radius:12px;background:#effaff;color:#164e63;font-size:12px;line-height:1.45}
.pds-sce-app .pds-smart-qc-route-note b{color:#0c4a6e!important}
.pds-role-technician .pds-fitting-qc-work-card .pds-smart-qc-section{margin-top:10px!important;box-shadow:none!important;background:#fff}
.pds-role-technician .pds-fitting-qc-work-card .pds-smart-qc-head{gap:10px}
.pds-role-technician .pds-fitting-qc-work-card .pds-smart-qc-item{padding:10px!important;border-radius:13px!important}

@media(max-width:920px){
  .pds-sce-app.pds-app-v2.pds-role-technician{padding-bottom:calc(var(--pds-mobile-nav-height) + 92px + env(safe-area-inset-bottom))!important}
  .pds-role-technician .pds-tech-fastbar{bottom:calc(var(--pds-mobile-nav-height) + 8px + env(safe-area-inset-bottom))!important}
}
@media(max-width:700px){
  .pds-role-technician .pds-tech-previous-work{padding:11px;margin:10px 0}
  .pds-role-technician .pds-tech-previous-work>header{align-items:stretch}
  .pds-role-technician .pds-tech-previous-work>header .pds-mini{min-width:94px}
  .pds-role-technician .pds-tech-previous-work-grid{grid-template-columns:1fr}
  .pds-role-technician .pds-tech-previous-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pds-role-technician .pds-fitting-qc-work-card{padding:13px!important}
  .pds-role-technician .pds-fitting-qc-work-card .pds-smart-qc-section>summary{font-size:15px;font-weight:900}
}
@media(max-width:420px){
  .pds-role-technician .pds-tech-previous-work>header{display:grid;grid-template-columns:1fr}
  .pds-role-technician .pds-tech-previous-work>header .pds-mini{width:100%}
  .pds-role-technician .pds-tech-previous-facts{grid-template-columns:1fr}
}

/* v15.26.5 — compact Smart QC, limited-testing and critical-override mobile UX. */
.pds-sce-app .pds-smart-qc-progress{display:grid;gap:7px;margin:10px 0 12px;padding:10px 12px;border:1px solid #dbe7f4;border-radius:13px;background:#f8fbff}
.pds-sce-app .pds-smart-qc-progress>div{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pds-sce-app .pds-smart-qc-progress b{font-size:12px;color:#17375e!important}.pds-sce-app .pds-smart-qc-progress small{font-size:10px;color:#64748b}
.pds-sce-app .pds-qc-progress-bar{display:block;height:6px;overflow:hidden;border-radius:999px;background:#e7eef7}.pds-sce-app .pds-qc-progress-bar i{display:block;width:0;height:100%;border-radius:inherit;background:#2563eb;transition:width .18s ease}
.pds-sce-app .pds-smart-qc-list{gap:8px!important}.pds-sce-app .pds-smart-qc-item{margin:0!important;padding:9px 10px!important;border:1px solid #dbe5f0!important;border-radius:13px!important;background:#fff}
.pds-sce-app .pds-smart-qc-item legend{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:0 2px 7px;font-size:13px;font-weight:850;line-height:1.3;color:#17324f}
.pds-sce-app .pds-qc-severity-badge{flex:0 0 auto;padding:3px 6px;border-radius:999px;font-size:8px!important;font-weight:900;letter-spacing:.06em;white-space:nowrap;background:#eef4fb;color:#47627f}
.pds-sce-app .pds-qc-severity-badge.is-critical{background:#fff1f0;color:#a12a20}.pds-sce-app .pds-qc-result-pills{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important}
.pds-sce-app .pds-qc-choice{position:relative!important;display:block!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;cursor:pointer}
.pds-sce-app .pds-qc-choice input[type=radio]{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;margin:0!important}
.pds-sce-app .pds-qc-choice span{display:flex;align-items:center;justify-content:center;min-height:38px;padding:7px 8px;border:1px solid #d8e2ed;border-radius:10px;background:#f8fafc;color:#29435f;font-size:11px;font-weight:850;text-align:center;line-height:1.15;transition:.12s ease}
.pds-sce-app .pds-qc-choice input:checked+span{border-color:#2563eb;background:#eaf3ff;color:#174ea6;box-shadow:0 0 0 2px rgba(37,99,235,.10)}
.pds-sce-app .pds-qc-choice-critical input:checked+span{border-color:#c43d32;background:#fff1f0;color:#9f261e}.pds-sce-app .pds-qc-choice-advisory input:checked+span{border-color:#d08b20;background:#fff8e7;color:#8a5700}.pds-sce-app .pds-qc-choice-not_testable input:checked+span{border-color:#7257c8;background:#f4f0ff;color:#5940ad}
.pds-sce-app .pds-qc-conditional{margin-top:7px}.pds-sce-app .pds-qc-conditional[hidden]{display:none!important}.pds-sce-app .pds-qc-conditional label{display:grid;gap:4px;margin:0;font-size:10px;font-weight:800;color:#60748c}
.pds-sce-app .pds-qc-conditional input,.pds-sce-app .pds-qc-conditional select{min-height:40px!important;margin:0!important;padding:8px 10px!important;border-radius:10px!important;font-size:12px!important}
.pds-sce-app .pds-qc-critical-routing{display:grid;gap:8px;margin:12px 0;padding:12px;border:1px solid #f2b7b2;border-radius:14px;background:#fff8f7}.pds-sce-app .pds-qc-critical-routing[hidden]{display:none!important}.pds-sce-app .pds-qc-critical-routing h4{margin:0 0 2px;color:#8f251d!important;font-size:14px}
.pds-sce-app .pds-qc-route-choice{display:flex!important;align-items:flex-start!important;gap:9px!important;margin:0!important;padding:9px 10px!important;border:1px solid #e8d2d0!important;border-radius:11px!important;background:#fff!important}.pds-sce-app .pds-qc-route-choice input{margin-top:3px!important}.pds-sce-app .pds-qc-route-choice span{display:grid;gap:2px}.pds-sce-app .pds-qc-route-choice b{font-size:12px}.pds-sce-app .pds-qc-route-choice small{font-size:10px;color:#66788f}
.pds-sce-app .pds-qc-rework-options,.pds-sce-app .pds-qc-critical-override{padding:8px 10px;border-left:3px solid #dbe5ef}.pds-sce-app .pds-qc-rework-options[hidden],.pds-sce-app .pds-qc-critical-override[hidden]{display:none!important}.pds-sce-app .pds-qc-critical-override textarea{min-height:70px!important}
@media(max-width:700px){
  .pds-role-technician .pds-fitting-qc-work-card{padding-bottom:128px!important}
  .pds-role-technician .pds-fitting-qc-work-card .pds-smart-qc-section{scroll-margin-bottom:140px}
  .pds-role-technician .pds-smart-qc-item{scroll-margin-top:16px;scroll-margin-bottom:150px}
  .pds-role-technician .pds-qc-result-pills{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .pds-role-technician .pds-qc-result-pills.pds-qc-critical-choice{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .pds-role-technician .pds-qc-choice span{min-height:36px;padding:6px 5px;font-size:10.5px}
  .pds-role-technician.pds-qc-keyboard-open .pds-tech-fastbar,.pds-role-technician.pds-qc-in-view .pds-tech-fastbar{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translate(-50%,14px)!important}
}


/* v15.31.1 UI stability: final-layer interactive contrast contract.
   Keep action controls readable across WordPress themes, Android WebView/PWA
   native button rendering, AJAX disabled/loading states and stale theme CSS. */
.pds-sce-app button.pds-btn,
.pds-sce-app button.pds-mini,
.pds-sce-app a.pds-btn,
.pds-sce-app a.pds-mini{
  -webkit-appearance:none;
  appearance:none;
  background:var(--pds-primary,#124f8c)!important;
  border-color:var(--pds-primary,#124f8c)!important;
  color:#fff!important;
  -webkit-text-fill-color:currentColor;
  opacity:1;
  visibility:visible;
}
.pds-sce-app button.pds-btn.secondary,
.pds-sce-app button.pds-mini.secondary,
.pds-sce-app a.pds-btn.secondary,
.pds-sce-app a.pds-mini.secondary{
  background:#fff!important;
  border-color:#7890aa!important;
  color:#163b63!important;
  -webkit-text-fill-color:currentColor;
}
.pds-sce-app button.pds-btn.danger,
.pds-sce-app button.pds-mini.danger,
.pds-sce-app a.pds-btn.danger,
.pds-sce-app a.pds-mini.danger{
  background:#dc2626!important;
  border-color:#dc2626!important;
  color:#fff!important;
  -webkit-text-fill-color:currentColor;
}
.pds-sce-app button.pds-btn.success,
.pds-sce-app button.pds-mini.success,
.pds-sce-app a.pds-btn.success,
.pds-sce-app a.pds-mini.success{
  background:#16a34a!important;
  border-color:#16a34a!important;
  color:#fff!important;
  -webkit-text-fill-color:currentColor;
}
.pds-sce-app button.pds-btn.warning,
.pds-sce-app button.pds-mini.warning,
.pds-sce-app a.pds-btn.warning,
.pds-sce-app a.pds-mini.warning{
  background:#f59e0b!important;
  border-color:#f59e0b!important;
  color:#111827!important;
  -webkit-text-fill-color:currentColor;
}
.pds-sce-app button.pds-btn:disabled,
.pds-sce-app button.pds-mini:disabled{
  opacity:.7!important;
  -webkit-text-fill-color:currentColor;
  cursor:not-allowed;
  visibility:visible!important;
}
.pds-sce-app button.pds-tech-find-btn{
  background:#124f8c!important;
  border-color:#124f8c!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
}
