/* Scoped to Production V2; existing login, hanger and bottom navigation are untouched. */
.av2 {color:#213047}.av2 .av2-header{padding:16px;background:#f7fafc;border-bottom:1px solid #dce4ed}.av2-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.av2-fields label,.av2-dialog label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#53657a}.av2-fields strong{color:#203650;font-size:15px}.av2-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:9px 14px;border-block:1px solid #dce4ed;background:#edf3f8}.av2 button,.av2-dialog button{min-height:40px;padding:8px 14px;border:1px solid #bfccdb;border-radius:6px;background:#fff;color:#244465;font-weight:600;cursor:pointer}.av2 button:disabled,.av2-dialog button:disabled{opacity:.45;cursor:default}.av2 button.av2-primary,.av2-dialog button.av2-primary,.av2 .av2-tabs .active{background:#164f85;color:#fff;border-color:#164f85}.av2 input,.av2 select,.av2-dialog input,.av2-dialog select{min-height:42px;width:100%;box-sizing:border-box;border:1px solid #c4d1df;border-radius:6px;background:#fff;color:#1c314b;padding:8px;font:inherit}.av2-dialog input[type=checkbox]{min-height:24px;width:24px}.av2-tabs,.av2-queue-tools,.av2-quick{display:flex;gap:8px;flex-wrap:wrap;padding:12px 14px}.av2-grid-wrap{overflow:auto;max-width:100%}.av2 table,.av2-dialog table{width:100%;border-collapse:collapse;font-size:13px}.av2 th,.av2 td,.av2-dialog th,.av2-dialog td{padding:10px;border:1px solid #dce4ed;text-align:left;white-space:nowrap}.av2 th,.av2-dialog th{background:#eaf1f8;color:#22466d}.av2 small{display:block;font-size:12px;color:#61758c;margin-top:3px}.av2-selected{background:#edf7ff}.av2-status{padding:10px 15px;background:#edf3f8;border-top:1px solid #dce4ed;font-size:12px}.av2-empty{padding:40px 20px;text-align:center;color:#60758d}.av2-punch-panel{margin:16px!important;padding:16px!important}.av2 .apo-mobile-entry{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}.av2 .apo-mobile-entry label{display:flex;flex-direction:column;gap:5px}.av2-rejection,.av2-ready{padding:14px;margin:12px;border:1px solid #dae4ee;border-radius:8px}.av2-rejection{background:#fff7f4}.av2-ready{background:#f0faf5}.av2-mobile{display:none}.av2-dialog{width:min(1000px,94vw);max-height:90vh;padding:0;border:1px solid #c9d6e4;border-radius:12px;color:#243d59;z-index:2147483647;box-shadow:0 16px 70px #1235}.av2-dialog::backdrop{background:#12283d88}.av2-dialog-title{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:#eaf2fa;font-size:18px}.av2-dialog-body{padding:20px;overflow:auto;max-height:65vh}.av2-dialog-actions{display:flex;gap:10px;justify-content:flex-end;padding:14px 20px;background:#f4f7fb}.av2-error{padding:0 20px;color:#ae2525;white-space:pre-wrap}.av2-billing{display:contents}.av2-billing[hidden]{display:none}.req-processes{min-width:210px}.av2-process-history details{padding:12px;border:1px solid #dae4ed;border-radius:8px;margin:8px}.av2-process-history summary{cursor:pointer;font-weight:600;line-height:1.6}.av2-card-meta{padding-block:8px;line-height:1.6}
@media(max-width:760px){.av2 .av2-header{padding:12px}.av2-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.av2-desktop{display:none}.av2-mobile{display:block}.av2 button,.av2-dialog button{font-size:16px;min-height:46px}.av2 input,.av2 select,.av2-dialog input,.av2-dialog select{font-size:17px;min-height:46px}.av2 .ahl-top{flex-wrap:wrap}.av2 .ahl-top strong{font-size:12px}.av2 .av2-toolbar{gap:5px}.av2 .av2-toolbar button{padding:7px 10px;font-size:14px}.av2 .apo-mobile-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.av2 .apo-mobile-stats span{display:block;font-size:13px;color:#64768c}.av2 .apo-mobile-stats b{font-size:17px}.av2 .apo-mobile-head b{font-size:20px}.av2 .apo-mobile-entry{grid-template-columns:repeat(2,minmax(0,1fr))}.av2 .apo-punch{grid-column:1/-1}.av2 .av2-punch-panel{margin:10px!important}.av2-dialog-body{padding:14px}.av2-dialog .av2-fields{grid-template-columns:1fr}.av2{padding-bottom:80px!important}}
@media(max-width:760px){#agileProductionOk.av2 .av2-toolbar{display:none!important}#agileProductionOk.av2 .av2-tabs{flex-wrap:nowrap;overflow-x:auto}#agileProductionOk.av2 .av2-tabs button{flex-shrink:0}#agileProductionOk.av2 .apo-mobile-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}#agileProductionOk.av2 .apo-mobile-stats span{font-size:13px!important}#agileProductionOk.av2 .av2-queue-tools{padding:6px 12px}#agileProductionOk.av2 .av2-queue-tools button{font-size:13px;padding:6px;min-height:40px}#agileProductionOk.av2 .av2-queue-tools button[data-rights]{display:none}#agileProductionOk.av2 .apo-mobile-head small{font-size:12px!important}#agileProductionOk.av2 .apo-mobile-head b{font-size:20px!important}}
@media print{body.av2-printing>*{display:none!important}body.av2-printing>.av2-print-target{display:block!important;position:static!important;width:100%!important;max-height:none!important;border:0!important;box-shadow:none!important}.av2-print-target .av2-dialog-body{max-height:none!important;overflow:visible!important}.av2-print-target button,.av2-print-target .av2-dialog-actions{display:none!important}}

/* Dedicated dashboard, scoped to preserve the existing mobile entry. */
#agileProductionDashboard{padding:18px;color:#102344;font-family:Arial,sans-serif;background:#dce6ed;box-sizing:border-box;max-width:none;width:100%}
#agileProductionDashboard *{box-sizing:border-box}
.av2-dashboard .apd-panel{background:linear-gradient(120deg,#f5faff,#fff);border:1px solid #c9d6e2;border-radius:9px;padding:24px;box-shadow:0 2px 3px #22384d18}
.av2-dashboard .apd-heading,.av2-dashboard .apd-title,.av2-dashboard .apd-heading-actions,.av2-dashboard .apd-tools,.av2-dashboard .apd-footer{display:flex;align-items:center;gap:16px}
.av2-dashboard .apd-heading,.av2-dashboard .apd-footer{justify-content:space-between}.av2-dashboard .apd-title>i{font-size:32px;color:#617887}.av2-dashboard h1{margin:0;font-size:27px;font-weight:700}.av2-dashboard .apd-title p{margin:7px 0 0;font-size:13px}
.av2-dashboard label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:500}.av2-dashboard input,.av2-dashboard select,.av2-dashboard button{font:inherit;border:1px solid #cbd8e6;border-radius:5px;padding:8px 11px;background:#fff;color:#102344;min-height:34px}.av2-dashboard button{cursor:pointer;font-size:13px;font-weight:600}.av2-dashboard button:disabled{opacity:.5;cursor:default}.av2-dashboard button:focus-visible,.av2-dashboard input:focus,.av2-dashboard select:focus{outline:2px solid #1686ff;outline-offset:1px}.av2-dashboard .apd-blue{background:linear-gradient(#2681ff,#0660ed);border-color:#126af3;color:#fff;white-space:nowrap}.av2-dashboard .apd-heading-actions>button{padding:12px 24px;margin-top:19px}
.av2-dashboard .apd-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:24px 0 18px}.av2-dashboard .apd-kpi{display:flex;align-items:center;gap:15px;text-align:left;padding:13px;border:1px solid #dbe3ef;min-height:77px;font-weight:400}.av2-dashboard .apd-kpi b{font-size:27px;display:block;line-height:1.1}.av2-dashboard .apd-kpi small{display:block;margin-top:4px;font-size:13px}.av2-dashboard .apd-kpi-icon{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border-radius:50%;font-size:23px;background:#ffffff66}.av2-dashboard .apd-red{background:#fdebed}.av2-dashboard .apd-red .apd-kpi-icon{color:#c3202b;background:#facdd1}.av2-dashboard .apd-green{background:#e9f7ee}.av2-dashboard .apd-green .apd-kpi-icon{color:#136736;background:#b5ebc8}.av2-dashboard .apd-blue.apd-kpi{background:#e7f2ff;color:#102344;border-color:#d2e5fc}.av2-dashboard .apd-blue .apd-kpi-icon{background:#bddcfc;color:#143978}.av2-dashboard .apd-purple{background:#f0ebff}.av2-dashboard .apd-purple .apd-kpi-icon{color:#6434c8;background:#e1d5ff}.av2-dashboard .apd-amber{background:#fff7e6}.av2-dashboard .apd-amber .apd-kpi-icon{color:#7d5300;background:#ffe5a6}.av2-dashboard .apd-kpi-selected{box-shadow:0 0 0 2px #6caaff}
.av2-dashboard .apd-filters{display:grid;grid-template-columns:repeat(6,minmax(90px,1fr)) minmax(180px,1.6fr);gap:12px}.av2-dashboard .apd-filters select,.av2-dashboard .apd-filters input{width:100%;min-width:0}.av2-dashboard .apd-tools{margin:12px 0;gap:8px;flex-wrap:wrap}.av2-dashboard .apd-tools label{flex-direction:row;align-items:center}.av2-dashboard #apdOpenCount{margin-left:auto;font-size:13px;color:#52667b}
.av2-dashboard .apd-table-wrap{overflow:auto;border:1px solid #dce6ef;border-radius:5px}.av2-dashboard table{width:100%;border-collapse:collapse;font-size:13px;min-width:1080px}.av2-dashboard th{background:#e8eff6;text-align:left;font-weight:700;padding:11px 10px;white-space:nowrap}.av2-dashboard td{padding:9px 10px;border-top:1px solid #dce6ef;vertical-align:middle}.av2-dashboard th,.av2-dashboard td{border-right:1px solid #e0e8f0}.av2-dashboard tbody tr:nth-child(even){background:#f5faff}.av2-dashboard tbody tr:hover{background:#eaf3ff}.av2-dashboard td small{display:block;color:#65768a;font-size:10px;margin-top:4px;max-width:170px}.av2-dashboard td button{padding:6px 11px;min-height:30px}.av2-dashboard .apd-late{color:#f03c43;font-weight:700}.av2-dashboard .apd-badge{display:inline-block;border-radius:4px;padding:4px 10px;font-size:12px;white-space:nowrap}.av2-dashboard .apd-status-overdue{background:#ffe0e3;color:#ce1621}.av2-dashboard .apd-status-pending{background:#fff0c9;color:#925500}.av2-dashboard .apd-status-completed{background:#dcf5e6;color:#146c3c}.av2-dashboard .apd-status-hold{background:#eae1ff;color:#6434b9}.av2-dashboard .apd-footer{margin-top:14px;font-size:13px;flex-wrap:wrap}.av2-dashboard .apd-pagination{display:flex;gap:6px}.av2-dashboard .apd-updated{font-size:11px;color:#697d90;margin-top:12px}.av2-dashboard #apdError{color:#b3182a;padding:5px 0;font-size:13px}.av2-dashboard #apdError:empty{display:none}.av2-dashboard .apd-empty{padding:35px;text-align:center;color:#64768a}.av2-dashboard .apd-mobile-cards{display:none}
@media(max-width:1100px){.av2-dashboard .apd-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.av2-dashboard .apd-kpi{gap:8px;padding:10px}.av2-dashboard .apd-kpi-icon{width:36px;height:36px;font-size:18px}.av2-dashboard .apd-kpi b{font-size:23px}}
@media(max-width:760px){#agileProductionDashboard{padding:8px}.av2-dashboard .apd-panel{padding:12px}.av2-dashboard .apd-heading{align-items:flex-start;flex-direction:column;gap:10px}.av2-dashboard h1{font-size:21px}.av2-dashboard .apd-title>i{font-size:24px}.av2-dashboard .apd-heading-actions{width:100%;justify-content:space-between}.av2-dashboard .apd-heading-actions>button{padding:8px 14px}.av2-dashboard .apd-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.av2-dashboard .apd-kpi:last-child{grid-column:1/-1}.av2-dashboard .apd-kpi{min-height:62px}.av2-dashboard .apd-kpi small{font-size:11px}.av2-dashboard .apd-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.av2-dashboard .apd-search{grid-column:1/-1}.av2-dashboard .apd-table-wrap{display:none}.av2-dashboard .apd-mobile-cards{display:grid;gap:10px}.av2-dashboard .apd-mobile-card{padding:12px;background:#fff;border:1px solid #d7e3ef;border-radius:7px}.av2-dashboard .apd-mobile-card header,.av2-dashboard .apd-mobile-card footer,.av2-dashboard .apd-card-process{display:flex;align-items:center;justify-content:space-between;gap:8px}.av2-dashboard .apd-mobile-card small{font-size:11px;color:#61758a}.av2-dashboard .apd-mobile-card header small{display:block;margin-top:4px}.av2-dashboard .apd-mobile-card p{font-size:13px;line-height:1.6;margin:10px 0}.av2-dashboard .apd-card-process{font-size:13px;background:#edf5ff;padding:8px}.av2-dashboard .apd-card-stats{display:flex;justify-content:space-between;font-size:12px;padding:10px 0}.av2-dashboard .apd-footer{gap:10px}.av2-dashboard .apd-pagination button{padding:6px 9px}.av2-dashboard #apdOpenCount{width:100%;margin:3px 0}.av2-dashboard .apd-tools button{font-size:11px}}


/* V3 PC Production Dashboard isolation — desktop only.  Prevent legacy form
   toolbars/pages from bleeding into the dashboard while keeping mobile rules intact. */
@media (min-width:761px){
  #agileProductionDashboard[data-av2-dashboard="3"]{display:block;min-height:calc(100vh - 132px);padding:20px 22px;background:#d7e0e6}
  #agileProductionDashboard[data-av2-dashboard="3"]>.apd-panel{display:block!important;width:100%;max-width:none;margin:0 auto;padding:20px 22px;background:#f8fbfe}
  #agileProductionDashboard[data-av2-dashboard="3"] .agile-toolbar,
  #agileProductionDashboard[data-av2-dashboard="3"] .apo-desktop-toolbar-standard,
  #agileProductionDashboard[data-av2-dashboard="3"] .av2-toolbar,
  #agileProductionDashboard[data-av2-dashboard="3"] .ai-global-toolbar,
  #agileProductionDashboard[data-av2-dashboard="3"] [data-form-toolbar]{display:none!important}
  #agileProductionDashboard[data-av2-dashboard="3"] .apd-heading{display:flex!important}
  #agileProductionDashboard[data-av2-dashboard="3"] .apd-kpis{display:grid!important}
  #agileProductionDashboard[data-av2-dashboard="3"] .apd-filters{display:grid!important}
  #agileProductionDashboard[data-av2-dashboard="3"] .apd-tools{display:flex!important}
  #agileProductionDashboard[data-av2-dashboard="3"] .apd-table-wrap{display:block!important}
  #agileProductionDashboard[data-av2-dashboard="3"] .apd-mobile-cards{display:none!important}
}


/* V7 — PC Production Dashboard exact visual alignment with approved reference.
   Desktop only. Existing mobile Production Entry/dashboard rules remain untouched. */
@media (min-width:761px){
  body.av2-dashboard-active #agileProductionOk,
  body.av2-dashboard-active .apo-desktop-toolbar-standard,
  body.av2-dashboard-active #agileProductionOk .av2-toolbar,
  body.av2-dashboard-active #agileProductionOk .agile-toolbar{display:none!important;visibility:hidden!important}

  #agileProductionDashboard[data-av2-dashboard="4"]{
    display:block!important;
    min-height:calc(100vh - 128px);
    padding:14px 18px 22px!important;
    background:#d9e3ea!important;
  }
  #agileProductionDashboard[data-av2-dashboard="4"]>.apd-panel{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:18px 22px 16px!important;
    background:linear-gradient(135deg,#f8fbfe 0%,#ffffff 100%)!important;
    border:1px solid #cbd8e5!important;
    border-radius:9px!important;
    box-shadow:0 2px 6px rgba(20,45,70,.12)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-heading{
    display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
    gap:18px!important;margin:0 0 18px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-title{display:flex!important;align-items:flex-start!important;gap:14px!important}
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-title>i{font-size:31px!important;color:#536c7d!important;margin-top:5px!important}
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-title h1{
    display:block!important;visibility:visible!important;margin:0!important;padding:0!important;
    font-size:27px!important;line-height:1.12!important;color:#14243b!important;font-weight:700!important;
  }
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-title p{
    display:block!important;margin:6px 0 0!important;font-size:13px!important;color:#4b5f74!important;
  }
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-heading-actions{display:flex!important;align-items:flex-end!important;gap:12px!important}
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-heading-actions label{font-size:12px!important;color:#26384d!important}
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-heading-actions>button{margin:0!important;min-height:39px!important;padding:9px 24px!important}

  #agileProductionDashboard[data-av2-dashboard="4"] .apd-kpis{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:14px!important;margin:0 0 16px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-kpi{
    min-height:73px!important;padding:12px 15px!important;border-radius:7px!important;
    box-shadow:none!important;border:1px solid #dbe4ed!important;
  }
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-kpi b{font-size:25px!important}
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-kpi small{font-size:12px!important;color:#24384f!important}
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-kpi-icon{width:45px!important;height:45px!important;font-size:21px!important}

  #agileProductionDashboard[data-av2-dashboard="4"] .apd-filters{
    display:grid!important;grid-template-columns:repeat(6,minmax(105px,1fr)) minmax(220px,1.65fr)!important;
    gap:10px!important;margin-top:2px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-filters label{font-size:12px!important;color:#1f3147!important}
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-filters input,
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-filters select{min-height:34px!important;padding:7px 9px!important;background:#fff!important}

  #agileProductionDashboard[data-av2-dashboard="4"] .apd-tools{
    display:flex!important;align-items:center!important;gap:8px!important;margin:10px 0 12px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-tools button{background:#fff!important;color:#14243b!important;border:1px solid #c8d5e1!important}
  #agileProductionDashboard[data-av2-dashboard="4"] #apdOpenCount{margin-left:auto!important;color:#4d6278!important}

  #agileProductionDashboard[data-av2-dashboard="4"] .apd-table-wrap{
    display:block!important;background:#fff!important;border:1px solid #d5e0ea!important;border-radius:5px!important;overflow:auto!important;
  }
  #agileProductionDashboard[data-av2-dashboard="4"] table{min-width:1040px!important;font-size:12px!important}
  #agileProductionDashboard[data-av2-dashboard="4"] th{background:#e9f0f6!important;padding:9px 9px!important;color:#172b42!important;font-size:12px!important}
  #agileProductionDashboard[data-av2-dashboard="4"] td{padding:8px 9px!important;background:#fff!important;color:#1c3149!important}
  #agileProductionDashboard[data-av2-dashboard="4"] tbody tr:nth-child(even) td{background:#f9fbfd!important}
  #agileProductionDashboard[data-av2-dashboard="4"] tbody tr{cursor:pointer!important}
  #agileProductionDashboard[data-av2-dashboard="4"] tbody tr:hover td{background:#edf5ff!important}
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-blue{background:linear-gradient(#2c86ff,#0868ec)!important;color:#fff!important;border-color:#0f6fe9!important}
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-empty{padding:28px!important;color:#62768b!important}
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-footer{margin-top:10px!important}
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-updated{margin-top:8px!important}
  #agileProductionDashboard[data-av2-dashboard="4"] .apd-mobile-cards{display:none!important}
}

/* V8 — desktop Production Dashboard finishing: no form toolbar, compact KPIs,
   single-screen scroll list, latest records first. Mobile rules unchanged. */
@media (min-width:761px){
  #agileProductionDashboard[data-av2-dashboard="5"]{
    display:block!important;
    min-height:calc(100vh - 128px);
    padding:10px 14px 14px!important;
    background:#d9e3ea!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"]>.apd-panel{
    width:100%!important;max-width:none!important;margin:0!important;
    padding:14px 18px 12px!important;background:#fbfdff!important;
    border:1px solid #cbd8e5!important;border-radius:8px!important;
    box-shadow:0 2px 6px rgba(20,45,70,.10)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .clean-action-toolbar,
  #agileProductionDashboard[data-av2-dashboard="5"] .final-action-toolbar,
  #agileProductionDashboard[data-av2-dashboard="5"] .safe-erp-toolbar,
  #agileProductionDashboard[data-av2-dashboard="5"] .erp-action-toolbar,
  #agileProductionDashboard[data-av2-dashboard="5"] .agile-toolbar,
  #agileProductionDashboard[data-av2-dashboard="5"] .apo-desktop-toolbar-standard,
  #agileProductionDashboard[data-av2-dashboard="5"] .av2-toolbar,
  #agileProductionDashboard[data-av2-dashboard="5"] [data-form-toolbar]{display:none!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading{
    display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
    gap:16px!important;margin:0 0 10px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title{display:flex!important;align-items:flex-start!important;gap:10px!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title>i{font-size:27px!important;color:#536c7d!important;margin-top:4px!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title h1{margin:0!important;font-size:25px!important;line-height:1.1!important;color:#14243b!important;font-weight:700!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title p{margin:4px 0 0!important;font-size:12px!important;color:#566a7e!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions{display:flex!important;align-items:flex-end!important;gap:10px!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions label{font-size:11px!important;color:#26384d!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions input{height:34px!important;padding:5px 8px!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions>button{min-height:34px!important;padding:7px 18px!important;margin:0!important}

  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpis{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:9px!important;margin:0 0 10px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi{
    min-height:56px!important;padding:7px 10px!important;border-radius:6px!important;
    border:1px solid #dbe4ed!important;box-shadow:none!important;gap:8px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-icon{width:36px!important;height:36px!important;font-size:17px!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi b{font-size:21px!important;line-height:1!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi small{font-size:10.5px!important;margin-top:3px!important;color:#24384f!important}

  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters{
    display:grid!important;grid-template-columns:repeat(6,minmax(92px,1fr)) minmax(200px,1.6fr)!important;
    gap:8px!important;margin:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters label{font-size:11px!important;color:#1f3147!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters input,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters select{min-height:31px!important;padding:5px 7px!important;background:#fff!important;font-size:12px!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools{display:flex!important;align-items:center!important;gap:7px!important;margin:8px 0!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools button,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools select{min-height:31px!important;padding:5px 9px!important;font-size:11.5px!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools button{background:#fff!important;color:#14243b!important;border:1px solid #c8d5e1!important}
  #agileProductionDashboard[data-av2-dashboard="5"] #apdOpenCount{margin-left:auto!important;color:#4d6278!important;font-size:11.5px!important}

  #agileProductionDashboard[data-av2-dashboard="5"] .apd-table-wrap{
    display:block!important;background:#fff!important;border:1px solid #d5e0ea!important;border-radius:5px!important;
    overflow:auto!important;max-height:calc(100vh - 365px)!important;min-height:165px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] table{width:100%!important;min-width:1040px!important;font-size:11.5px!important}
  #agileProductionDashboard[data-av2-dashboard="5"] thead{position:sticky!important;top:0!important;z-index:2!important}
  #agileProductionDashboard[data-av2-dashboard="5"] th{background:#e9f0f6!important;padding:7px 8px!important;color:#172b42!important;font-size:11px!important;white-space:nowrap!important}
  #agileProductionDashboard[data-av2-dashboard="5"] td{padding:6px 8px!important;background:#fff!important;color:#1c3149!important}
  #agileProductionDashboard[data-av2-dashboard="5"] tbody tr:nth-child(even) td{background:#f9fbfd!important}
  #agileProductionDashboard[data-av2-dashboard="5"] tbody tr{cursor:pointer!important}
  #agileProductionDashboard[data-av2-dashboard="5"] tbody tr:hover td{background:#edf5ff!important}
  #agileProductionDashboard[data-av2-dashboard="5"] td small{font-size:9.5px!important;margin-top:2px!important}
  #agileProductionDashboard[data-av2-dashboard="5"] td button{min-height:27px!important;padding:4px 9px!important;font-size:11px!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-empty{padding:24px!important;color:#62768b!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-footer{margin-top:6px!important;font-size:11px!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-pagination{display:none!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-updated{margin-top:4px!important;font-size:10px!important}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-cards{display:none!important}
}


/* V9 — desktop dashboard header/spacing finishing only.
   Uses the top area for title + subtitle, tightens KPIs and removes dead space.
   Mobile remains untouched. */
@media (min-width:761px){
  #agileProductionDashboard[data-av2-dashboard="5"]>.apd-panel{
    padding:10px 14px 10px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading{
    min-height:54px!important;
    align-items:center!important;
    margin:0 0 6px!important;
    gap:12px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title{
    align-items:center!important;
    gap:9px!important;
    min-width:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title>i{
    font-size:25px!important;
    margin-top:0!important;
    width:28px!important;
    text-align:center!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title h1{
    display:block!important;
    visibility:visible!important;
    margin:0!important;
    font-size:22px!important;
    line-height:1.05!important;
    color:#14243b!important;
    font-weight:700!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title p{
    display:block!important;
    margin:3px 0 0!important;
    font-size:11.5px!important;
    line-height:1.2!important;
    color:#5c7084!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions{
    align-items:center!important;
    gap:8px!important;
    flex-shrink:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions label{
    gap:3px!important;
    font-size:10.5px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions input{
    width:132px!important;
    height:31px!important;
    min-height:31px!important;
    padding:4px 7px!important;
    font-size:11.5px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions>button{
    min-height:31px!important;
    height:31px!important;
    padding:5px 14px!important;
    font-size:11.5px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpis{
    gap:7px!important;
    margin:0 0 7px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi{
    min-height:49px!important;
    padding:5px 8px!important;
    gap:7px!important;
    border-radius:5px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-icon{
    width:32px!important;
    height:32px!important;
    font-size:15px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi b{
    font-size:19px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi small{
    font-size:10px!important;
    margin-top:2px!important;
    line-height:1.1!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters{
    gap:7px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools{
    margin:6px 0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-table-wrap{
    max-height:calc(100vh - 325px)!important;
    min-height:185px!important;
  }
}

/* V10 — premium desktop finishing for Production Dashboard controls/header only.
   Business logic and mobile remain untouched. */
@media (min-width:761px){
  #agileProductionDashboard[data-av2-dashboard="5"]>.apd-panel{
    border-color:#c7d5e3!important;
    box-shadow:0 4px 14px rgba(32,58,82,.10)!important;
    overflow:hidden!important;
  }

  /* Premium title / header strip */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading{
    position:relative!important;
    padding:8px 10px 9px 12px!important;
    margin:-2px -2px 8px!important;
    min-height:58px!important;
    border:1px solid #d8e5f0!important;
    border-radius:8px!important;
    background:linear-gradient(180deg,#ffffff 0%,#f4f9fd 100%)!important;
    box-shadow:0 1px 4px rgba(30,58,84,.06)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title{
    position:relative!important;
    padding-left:7px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title:before{
    content:""!important;
    position:absolute!important;
    left:0!important;top:4px!important;bottom:4px!important;
    width:4px!important;border-radius:5px!important;
    background:linear-gradient(180deg,#2b8cff,#0c66db)!important;
    box-shadow:0 0 0 1px rgba(32,113,218,.08)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title>i{
    display:grid!important;place-items:center!important;
    width:34px!important;height:34px!important;
    margin:0 0 0 4px!important;
    border-radius:9px!important;
    font-size:17px!important;
    color:#1769b0!important;
    background:#eaf4ff!important;
    border:1px solid #cfe5fb!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title h1{
    font-size:22px!important;
    letter-spacing:-.2px!important;
    color:#122943!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title p{
    color:#63778b!important;
    font-size:11.5px!important;
  }

  /* Reference date becomes a clean control group */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions{
    padding:0!important;
    gap:8px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions label{
    color:#42576c!important;
    font-weight:700!important;
    letter-spacing:.1px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions input{
    width:138px!important;
    border-color:#bfcfe0!important;
    border-radius:7px!important;
    background:#fff!important;
    box-shadow:inset 0 1px 2px rgba(17,42,68,.03)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions input:focus{
    border-color:#3186e8!important;
    box-shadow:0 0 0 3px rgba(49,134,232,.12)!important;
    outline:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions>button{
    min-width:100px!important;
    border-radius:7px!important;
    border:1px solid #116ee0!important;
    background:linear-gradient(180deg,#318af5 0%,#126bdf 100%)!important;
    box-shadow:0 2px 5px rgba(16,97,202,.20)!important;
    font-weight:700!important;
    letter-spacing:.1px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions>button:hover{
    filter:brightness(.98)!important;
    transform:translateY(-1px)!important;
  }

  /* Compact premium KPI cards */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpis{
    gap:8px!important;
    margin:0 0 8px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi{
    min-height:48px!important;
    border-radius:8px!important;
    border-color:rgba(104,130,154,.20)!important;
    box-shadow:0 2px 6px rgba(31,58,83,.07)!important;
    transition:transform .12s ease, box-shadow .12s ease!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi:hover{
    transform:translateY(-1px)!important;
    box-shadow:0 4px 9px rgba(31,58,83,.10)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-icon{
    width:31px!important;height:31px!important;
    border:1px solid rgba(255,255,255,.6)!important;
    box-shadow:inset 0 0 0 1px rgba(70,100,130,.04)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi b{
    font-size:18px!important;
    color:#112b46!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi small{
    font-weight:700!important;
    color:#41566a!important;
  }

  /* Premium queue/action strip */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools{
    min-height:42px!important;
    margin:7px 0 8px!important;
    padding:5px 7px!important;
    border:1px solid #d7e2ec!important;
    border-radius:8px!important;
    background:linear-gradient(180deg,#fbfdff,#f4f8fb)!important;
    box-shadow:0 1px 3px rgba(25,52,78,.05)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools label{
    gap:7px!important;
    color:#41566b!important;
    font-weight:700!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools select{
    min-width:103px!important;
    border-radius:7px!important;
    border-color:#bfcfe0!important;
    background:#fff!important;
    font-weight:600!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools button{
    min-height:31px!important;
    border-radius:7px!important;
    padding:5px 12px!important;
    font-weight:700!important;
    background:#fff!important;
    color:#183550!important;
    border:1px solid #c4d3e1!important;
    box-shadow:0 1px 3px rgba(24,52,80,.07)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools button:hover{
    border-color:#7baee3!important;
    background:#f4f9ff!important;
    color:#0b5fab!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] #apdMaterial{
    color:#0d5ea8!important;
    border-color:#b7d3ee!important;
    background:#f5faff!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] #apdOpenCount{
    padding:4px 8px!important;
    border-radius:999px!important;
    background:#eef4f9!important;
    color:#526a7e!important;
    font-weight:700!important;
  }

  /* Table finishing */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-table-wrap{
    border-color:#cddbe7!important;
    border-radius:7px!important;
    box-shadow:0 1px 3px rgba(25,50,75,.05)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] th{
    background:linear-gradient(180deg,#eef4f8,#e6eef5)!important;
    color:#17324d!important;
    border-bottom:1px solid #c5d4e1!important;
  }
}

/* V11 — icon-only refresh + mobile Production Dashboard. Scope only to this dashboard. */
#agileProductionDashboard[data-av2-dashboard="5"] .apd-refresh-icon{
  width:36px!important;
  min-width:36px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  border:1px solid #c3d2df!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#183b5b!important;
  box-shadow:0 1px 3px rgba(24,52,80,.08)!important;
}
#agileProductionDashboard[data-av2-dashboard="5"] .apd-refresh-icon:hover{
  background:#f4f8fb!important;
  border-color:#8fb3d4!important;
  color:#0c5d9e!important;
  transform:none!important;
  filter:none!important;
}
#agileProductionDashboard[data-av2-dashboard="5"] .apd-refresh-icon:disabled{
  opacity:.5!important;
}

@media (max-width:760px){
  /* Keep the existing Agile mobile shell; only this dashboard changes. */
  body.av2-dashboard-active #agileProductionDashboard[data-av2-dashboard="5"]{
    padding:7px!important;
    margin:0!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"]>.apd-panel{
    padding:9px!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    border-radius:10px!important;
    background:#f7fafc!important;
    border:1px solid #d3e0ea!important;
    box-shadow:none!important;
  }

  /* Compact premium mobile heading. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:7px!important;
    padding:8px!important;
    margin:0 0 8px!important;
    border:1px solid #d7e3ed!important;
    border-radius:9px!important;
    background:#fff!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    min-width:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title>i{
    width:31px!important;
    height:31px!important;
    min-width:31px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:8px!important;
    font-size:15px!important;
    color:#1769a8!important;
    background:#eaf4fc!important;
    border:1px solid #d4e7f5!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title h1{
    margin:0!important;
    font-size:17px!important;
    line-height:1.05!important;
    color:#122943!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title p{
    margin:3px 0 0!important;
    font-size:9.5px!important;
    line-height:1.15!important;
    color:#607487!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions{
    display:flex!important;
    align-items:flex-end!important;
    gap:5px!important;
    width:auto!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions label{
    display:none!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-refresh-icon{
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    min-height:34px!important;
  }

  /* KPI strip: one-line horizontal swipe, preserving vertical space. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpis{
    display:flex!important;
    gap:7px!important;
    margin:0 0 8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:1px 1px 5px!important;
    scroll-snap-type:x proximity!important;
    scrollbar-width:none!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpis::-webkit-scrollbar{display:none!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi{
    flex:0 0 126px!important;
    min-height:54px!important;
    padding:7px!important;
    gap:7px!important;
    border-radius:9px!important;
    scroll-snap-align:start!important;
    box-shadow:0 1px 3px rgba(26,52,78,.06)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-icon{
    width:31px!important;height:31px!important;font-size:15px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi b{font-size:17px!important;line-height:1!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi small{font-size:9.5px!important;line-height:1.08!important;margin-top:2px!important;}

  /* Filters fit phone widths without horizontal page scrolling. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:6px!important;
    margin:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters label{
    min-width:0!important;
    font-size:10px!important;
    gap:3px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters select,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters input{
    width:100%!important;
    min-width:0!important;
    min-height:32px!important;
    height:32px!important;
    padding:5px 7px!important;
    font-size:11px!important;
    border-radius:7px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-search{
    grid-column:1/-1!important;
  }

  /* Work-queue controls: compact, wrap safely. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools{
    display:grid!important;
    grid-template-columns:minmax(110px,.8fr) 1fr 1fr!important;
    align-items:end!important;
    gap:6px!important;
    padding:6px!important;
    margin:7px 0!important;
    min-height:0!important;
    border:1px solid #dbe5ed!important;
    border-radius:8px!important;
    background:#fff!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools label{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:3px!important;
    font-size:9.5px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools select,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools button{
    width:100%!important;
    min-width:0!important;
    min-height:32px!important;
    height:32px!important;
    padding:4px 6px!important;
    font-size:10px!important;
    border-radius:7px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] #apdOpenCount{
    grid-column:1/-1!important;
    margin:0!important;
    padding:2px 1px!important;
    font-size:10px!important;
    color:#60758a!important;
    background:transparent!important;
  }

  /* Mobile uses cards only. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-table-wrap{display:none!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-cards{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card{
    margin:0!important;
    padding:10px!important;
    border:1px solid #d5e1eb!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:0 2px 6px rgba(27,54,80,.07)!important;
    cursor:pointer!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card:active{
    transform:scale(.995)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card header{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:8px!important;
    padding-bottom:7px!important;
    border-bottom:1px solid #edf2f6!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-part b{
    display:block!important;
    font-size:14px!important;
    color:#17324d!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-part small{
    display:block!important;
    margin-top:2px!important;
    font-size:10px!important;
    color:#63778b!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-meta{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:3px 8px!important;
    padding:7px 0!important;
    font-size:10.5px!important;
    color:#536a80!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-meta>b{
    grid-column:1/-1!important;
    color:#1e3b57!important;
    font-size:11.5px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-process{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
    margin:0!important;
    padding:7px 8px!important;
    border-radius:8px!important;
    background:#edf5fc!important;
    color:#173b5c!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-process>span{
    display:flex!important;
    flex-direction:column!important;
    gap:2px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-process small,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-stats small{
    font-size:8.5px!important;
    color:#6b7f91!important;
    text-transform:uppercase!important;
    letter-spacing:.25px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-process b{font-size:12px!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-pending{
    text-align:right!important;
    min-width:64px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-pending b{
    font-size:18px!important;
    line-height:1!important;
    color:#0b5fa8!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-stats{
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:5px!important;
    padding:8px 0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-stats>span{
    display:flex!important;
    flex-direction:column!important;
    gap:2px!important;
    padding:5px!important;
    border:1px solid #e4ecf3!important;
    border-radius:7px!important;
    background:#fafcfe!important;
    text-align:center!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-stats b{font-size:12px!important;color:#203c57!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card footer{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    padding-top:1px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card footer>small{
    font-size:9.5px!important;
    color:#667a8e!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card footer .apd-blue{
    min-width:92px!important;
    min-height:34px!important;
    height:34px!important;
    padding:6px 10px!important;
    border-radius:8px!important;
    font-size:11px!important;
  }

  #agileProductionDashboard[data-av2-dashboard="5"] .apd-footer{
    margin:7px 0 0!important;
    font-size:9.5px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-updated{
    margin-top:4px!important;
    font-size:9px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-empty{
    padding:24px 8px!important;
    font-size:12px!important;
  }
}

/* V12 — final refresh treatment + professional mobile dashboard finishing. */
#agileProductionDashboard[data-av2-dashboard="5"] #apdRefresh.apd-refresh-icon,
#agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions>#apdRefresh{
  width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;
  background:transparent!important;background-image:none!important;color:#263746!important;
  box-shadow:none!important;filter:none!important;transform:none!important;
  display:inline-grid!important;place-items:center!important;
}
#agileProductionDashboard[data-av2-dashboard="5"] #apdRefresh:hover{
  background:#eef2f5!important;color:#111f2c!important;box-shadow:none!important;filter:none!important;transform:none!important;
}
#agileProductionDashboard[data-av2-dashboard="5"] #apdRefresh i{font-size:14px!important;line-height:1!important;pointer-events:none!important;}

@media (max-width:760px){
  body.av2-dashboard-active #agileProductionDashboard[data-av2-dashboard="5"]{
    padding:0!important;background:#f3f5f7!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"]>.apd-panel{
    padding:10px 10px 76px!important;border:0!important;border-radius:0!important;background:#f3f5f7!important;box-shadow:none!important;
  }

  /* Mobile shell already shows “Production Dashboard”; use this row only for context/actions. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading{
    min-height:40px!important;padding:5px 7px!important;margin:0 0 8px!important;
    border:0!important;border-bottom:1px solid #dfe5ea!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title>i{display:none!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title h1{display:none!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title p{
    display:block!important;margin:0!important;font-size:11px!important;font-weight:600!important;color:#526170!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions{margin-left:auto!important;align-items:center!important;gap:5px!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions label{display:none!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] #apdRefresh.apd-refresh-icon{
    width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;border:0!important;background:transparent!important;color:#253746!important;
  }

  /* Compact KPI rail — clean white cards, status colour only in icon. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpis{gap:7px!important;margin:0 0 10px!important;padding:0 0 3px!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-red,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-green,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-blue,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-purple,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-amber{
    flex:0 0 116px!important;min-height:52px!important;padding:7px 8px!important;border:1px solid #dde4ea!important;border-radius:10px!important;
    background:#fff!important;color:#172635!important;box-shadow:0 1px 3px rgba(25,42,58,.06)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-selected{outline:2px solid #aebdca!important;outline-offset:-2px!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-icon{width:30px!important;height:30px!important;min-width:30px!important;border:0!important;box-shadow:none!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi b{font-size:17px!important;color:#172635!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi small{font-size:9px!important;color:#536270!important;font-weight:700!important;}

  /* One professional filter card, less visual nesting. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters{
    gap:7px!important;padding:9px!important;margin:0!important;border:1px solid #dfe5ea!important;border-radius:11px 11px 0 0!important;background:#fff!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters label{font-size:9.5px!important;font-weight:700!important;color:#3c4d5d!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters select,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters input{
    height:34px!important;min-height:34px!important;padding:5px 8px!important;border:1px solid #ccd6df!important;border-radius:7px!important;background:#fff!important;font-size:11px!important;box-shadow:none!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-search{margin-top:1px!important;}

  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:6px!important;align-items:end!important;
    margin:0 0 10px!important;padding:8px 9px!important;border:1px solid #dfe5ea!important;border-top:0!important;border-radius:0 0 11px 11px!important;background:#fff!important;box-shadow:0 2px 5px rgba(25,42,58,.04)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools label{font-size:9.5px!important;font-weight:700!important;color:#3c4d5d!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools select{height:34px!important;min-height:34px!important;border:1px solid #ccd6df!important;background:#fff!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools button{
    width:auto!important;min-width:0!important;height:34px!important;min-height:34px!important;padding:0 10px!important;border:1px solid #ccd6df!important;border-radius:7px!important;background:#fff!important;color:#263746!important;box-shadow:none!important;font-size:9.5px!important;font-weight:700!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools button:active{background:#f0f3f5!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] #apdOpenCount{grid-column:1/-1!important;padding:1px 0 0!important;font-size:9px!important;color:#71808d!important;}

  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-cards{gap:9px!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card{
    padding:10px!important;border:1px solid #dce3e9!important;border-radius:11px!important;background:#fff!important;box-shadow:0 2px 6px rgba(25,42,58,.055)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-process{background:#f2f5f7!important;color:#203342!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-pending b{color:#172635!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card footer .apd-blue{
    min-width:82px!important;background:#263746!important;border-color:#263746!important;color:#fff!important;box-shadow:none!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-empty{
    margin-top:4px!important;padding:26px 12px!important;border:1px dashed #d5dde4!important;border-radius:10px!important;background:#fff!important;color:#6b7884!important;text-align:center!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-footer{display:none!important;}
}
\n\n/* V13 — compact single-row mobile KPIs + customer-first production cards. */\n.apd-label-mobile{display:none;}\n@media (max-width:760px){\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpis{\n    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;\n    gap:4px!important;width:100%!important;overflow:visible!important;padding:0!important;margin:0 0 8px!important;\n  }\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi,\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-red,\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-green,\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-blue,\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-purple,\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-amber{\n    min-width:0!important;width:100%!important;min-height:46px!important;height:46px!important;\n    padding:4px 2px!important;gap:3px!important;border-radius:8px!important;overflow:hidden!important;\n    display:flex!important;align-items:center!important;justify-content:center!important;\n    background:#fff!important;border:1px solid #dce4ea!important;box-shadow:0 1px 3px rgba(25,42,58,.045)!important;\n  }\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-icon{\n    width:22px!important;height:22px!important;min-width:22px!important;font-size:11px!important;\n  }\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi>span:last-child{min-width:0!important;text-align:left!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi b{font-size:14px!important;line-height:1!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi small{\n    margin-top:2px!important;font-size:7.2px!important;line-height:1!important;white-space:nowrap!important;\n    overflow:hidden!important;text-overflow:clip!important;letter-spacing:-.1px!important;\n  }\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-label-full{display:none!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-label-mobile{display:inline!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-selected{outline:1.5px solid #ff9f2f!important;outline-offset:-1.5px!important;}\n\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-cards{gap:7px!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card{padding:9px!important;border-radius:10px!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:7px!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-customer{display:flex!important;align-items:baseline!important;gap:7px!important;min-width:0!important;flex:1!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-customer b{font-size:13px!important;color:#172635!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-customer span{font-size:10px!important;color:#5b6976!important;white-space:nowrap!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-top .apd-badge{padding:3px 6px!important;font-size:8.5px!important;border-radius:5px!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-gate{\n    display:flex!important;justify-content:flex-start!important;gap:12px!important;flex-wrap:wrap!important;\n    margin:5px 0 6px!important;padding-bottom:6px!important;border-bottom:1px solid #edf1f4!important;\n    font-size:9.5px!important;color:#5a6875!important;\n  }\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-gate b{color:#263746!important;font-weight:700!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-partline{\n    display:flex!important;gap:6px!important;align-items:center!important;min-width:0!important;margin-bottom:6px!important;\n    font-size:9.5px!important;color:#485866!important;\n  }\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-partline span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-partline span+span:before{content:'•';margin-right:6px;color:#a2adb7;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-process{\n    display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:8px!important;\n    padding:7px 8px!important;border-radius:8px!important;background:#f6f8fa!important;\n  }\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-process>span:first-child small{display:block!important;font-size:8px!important;color:#687784!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-process>span:first-child b{display:block!important;font-size:15px!important;color:#172635!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-stats-inline{display:flex!important;gap:7px!important;justify-content:flex-end!important;min-width:0!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-stats-inline span{font-size:8.5px!important;color:#60707d!important;white-space:nowrap!important;}\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card .apd-blue{\n    min-width:66px!important;height:31px!important;min-height:31px!important;padding:0 9px!important;\n    border-radius:7px!important;background:#ffa52f!important;border:1px solid #dc8510!important;color:#172635!important;\n    font-size:9.5px!important;font-weight:800!important;box-shadow:0 2px 4px rgba(167,97,5,.18)!important;\n  }\n  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card .apd-blue:active{background:#f0961f!important;box-shadow:none!important;}\n}\n
/* V14 — final compact no-scroll mobile KPI row + premium orange Punch. */
@media (max-width:760px){
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpis{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:3px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    overflow-x:hidden!important;
    padding:0!important;
    margin:0 0 8px!important;
    scroll-snap-type:none!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-red,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-green,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-blue,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-purple,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-amber{
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:none!important;
    width:100%!important;
    height:54px!important;
    min-height:54px!important;
    margin:0!important;
    padding:4px 1px!important;
    border-radius:8px!important;
    display:grid!important;
    grid-template-columns:20px minmax(0,1fr)!important;
    align-items:center!important;
    justify-content:stretch!important;
    column-gap:2px!important;
    overflow:hidden!important;
    background:#fff!important;
    border:1px solid #d9e2e9!important;
    box-shadow:0 1px 3px rgba(27,45,62,.055)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-icon{
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
    font-size:10px!important;
    margin:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi>span:last-child{
    min-width:0!important;
    width:100%!important;
    text-align:left!important;
    overflow:hidden!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi b{
    display:block!important;
    font-size:15px!important;
    line-height:16px!important;
    margin:0!important;
    color:#172635!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi small{
    display:block!important;
    width:100%!important;
    margin:1px 0 0!important;
    padding:0!important;
    font-size:7.5px!important;
    line-height:9px!important;
    font-weight:800!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    color:#4b5965!important;
    letter-spacing:-.12px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-selected{
    outline:1.5px solid #f0a13b!important;
    outline-offset:-1.5px!important;
    background:#fffaf3!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card .apd-blue{
    background:#ffa52f!important;
    border-color:#dc8510!important;
    color:#172635!important;
    box-shadow:0 2px 5px rgba(167,97,5,.18)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card .apd-blue:hover,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card .apd-blue:focus{
    background:#ffad3f!important;
    border-color:#d9820c!important;
    color:#172635!important;
  }
}


/* V16 — mobile Production Dashboard premium final pass. Desktop remains unchanged. */
@media (max-width:760px){
  body.av2-dashboard-active #agileMobilePageTitle{display:none!important;}
  body.av2-dashboard-active #agileProductionDashboard[data-av2-dashboard="5"]{
    padding:0!important;
    background:#eef3f8!important;
  }
  body.av2-dashboard-active #agileProductionDashboard[data-av2-dashboard="5"]>.apd-panel{
    padding:10px 10px 78px!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:#eef3f8!important;
    box-shadow:none!important;
  }

  /* Premium title card. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
    min-height:72px!important;
    margin:0 0 8px!important;
    padding:10px 10px!important;
    border:1px solid #d8e3ec!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:0 2px 8px rgba(26,45,65,.06)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title{
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    align-items:center!important;
    gap:8px!important;
    min-width:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title>i{
    display:grid!important;
    place-items:center!important;
    width:34px!important;
    height:34px!important;
    margin:0!important;
    border-radius:9px!important;
    background:#edf7ff!important;
    color:#1687c9!important;
    font-size:16px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title>div{min-width:0!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title h1{
    display:block!important;
    margin:0!important;
    font-size:16px!important;
    line-height:19px!important;
    font-weight:800!important;
    color:#10243a!important;
    white-space:nowrap!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title p{
    display:block!important;
    margin:2px 0 0!important;
    max-width:100%!important;
    font-size:8.5px!important;
    line-height:11px!important;
    font-weight:500!important;
    color:#708090!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    margin:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions label{
    display:flex!important;
    gap:2px!important;
    margin:0!important;
    font-size:7.5px!important;
    line-height:9px!important;
    font-weight:700!important;
    color:#607181!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions input{
    width:92px!important;
    height:30px!important;
    min-height:30px!important;
    padding:3px 5px!important;
    border:1px solid #ccd8e2!important;
    border-radius:7px!important;
    background:#fff!important;
    font-size:9px!important;
    color:#172a3d!important;
    box-shadow:none!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] #apdRefresh.apd-refresh-icon{
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
    min-height:32px!important;
    padding:0!important;
    margin:9px 0 0!important;
    border:1px solid #d5e0e8!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#21394c!important;
    box-shadow:0 2px 6px rgba(25,43,62,.07)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] #apdRefresh i{font-size:13px!important;}

  /* Exactly five compact KPI cards in one line, no horizontal scroll. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpis{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:4px!important;
    width:100%!important;
    min-width:0!important;
    margin:0 0 8px!important;
    padding:0!important;
    overflow:hidden!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-red,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-green,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-blue,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-purple,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-amber{
    display:grid!important;
    grid-template-rows:22px 17px 12px!important;
    grid-template-columns:1fr!important;
    justify-items:center!important;
    align-items:center!important;
    gap:0!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:58px!important;
    min-height:58px!important;
    margin:0!important;
    padding:3px 1px!important;
    border:1px solid #d9e3eb!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#152b40!important;
    box-shadow:0 2px 6px rgba(22,45,66,.055)!important;
    overflow:hidden!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-icon{
    grid-row:1!important;
    width:22px!important;
    min-width:22px!important;
    height:22px!important;
    margin:0!important;
    border-radius:50%!important;
    font-size:10px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi>span:last-child{
    display:contents!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi b{
    grid-row:2!important;
    display:block!important;
    margin:0!important;
    font-size:15px!important;
    line-height:17px!important;
    font-weight:800!important;
    color:#10243a!important;
    text-align:center!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi small{
    grid-row:3!important;
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    font-size:7.2px!important;
    line-height:10px!important;
    font-weight:800!important;
    color:#536576!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-selected{
    outline:1.5px solid #f4a23a!important;
    outline-offset:-1.5px!important;
    background:#fffaf4!important;
  }

  /* Premium filter card. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters{
    position:relative!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px 8px!important;
    margin:0!important;
    padding:34px 10px 10px!important;
    border:1px solid #d9e3eb!important;
    border-radius:12px 12px 0 0!important;
    background:#fff!important;
    box-shadow:0 2px 8px rgba(25,43,62,.045)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters:before{
    content:'Filters';
    position:absolute!important;
    left:11px!important;
    top:9px!important;
    padding-left:18px!important;
    font-size:12px!important;
    line-height:16px!important;
    font-weight:800!important;
    color:#1a3147!important;
    background:linear-gradient(90deg,#198fd0 0 3px,transparent 3px)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters label{
    gap:4px!important;
    min-width:0!important;
    font-size:9px!important;
    line-height:11px!important;
    font-weight:700!important;
    color:#31495f!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters select,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-filters input{
    width:100%!important;
    height:34px!important;
    min-height:34px!important;
    padding:5px 8px!important;
    border:1px solid #cbd7e1!important;
    border-radius:7px!important;
    background:#fff!important;
    font-size:11px!important;
    color:#172b3e!important;
    box-shadow:none!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-search{grid-column:1/-1!important;}

  /* One-line queue/actions bar. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools{
    display:grid!important;
    grid-template-columns:minmax(86px,1fr) auto auto!important;
    gap:6px!important;
    align-items:end!important;
    margin:0 0 8px!important;
    padding:8px 9px!important;
    border:1px solid #d9e3eb!important;
    border-top:0!important;
    border-radius:0 0 12px 12px!important;
    background:#fff!important;
    box-shadow:0 2px 8px rgba(25,43,62,.045)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools label{
    gap:3px!important;
    font-size:9px!important;
    line-height:11px!important;
    font-weight:800!important;
    color:#31495f!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools select{
    width:100%!important;
    height:33px!important;
    min-height:33px!important;
    padding:4px 7px!important;
    border:1px solid #cbd7e1!important;
    border-radius:7px!important;
    background:#fff!important;
    font-size:10px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-tools button{
    height:33px!important;
    min-height:33px!important;
    min-width:0!important;
    padding:0 8px!important;
    border:1px solid #cbd7e1!important;
    border-radius:7px!important;
    background:#fff!important;
    color:#263a4e!important;
    box-shadow:none!important;
    font-size:8.5px!important;
    line-height:10px!important;
    font-weight:800!important;
    white-space:nowrap!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] #apdOpenCount{
    grid-column:1/-1!important;
    margin:0!important;
    padding-top:1px!important;
    font-size:8px!important;
    color:#778795!important;
  }

  /* Pending work section and cards. */
  #agileProductionDashboard[data-av2-dashboard="5"] #apdGrid{
    margin-top:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-cards{
    display:grid!important;
    gap:7px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card{
    padding:9px!important;
    border:1px solid #dae4ec!important;
    border-left:3px solid #f3a13a!important;
    border-radius:11px!important;
    background:#fff!important;
    box-shadow:0 2px 7px rgba(24,43,62,.055)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-top{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:6px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-customer{
    display:flex!important;
    align-items:baseline!important;
    gap:6px!important;
    min-width:0!important;
    flex:1!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-customer b{
    min-width:0!important;
    max-width:70%!important;
    font-size:12px!important;
    line-height:15px!important;
    color:#15324c!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-customer span{
    font-size:8.5px!important;
    color:#687b8d!important;
    white-space:nowrap!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-top .apd-badge{
    padding:3px 5px!important;
    border-radius:5px!important;
    font-size:7.5px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-gate{
    display:flex!important;
    gap:10px!important;
    flex-wrap:wrap!important;
    margin:4px 0 5px!important;
    padding-bottom:5px!important;
    border-bottom:1px solid #edf1f4!important;
    font-size:8px!important;
    color:#657789!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-partline{
    display:flex!important;
    gap:5px!important;
    margin-bottom:5px!important;
    min-width:0!important;
    font-size:8px!important;
    color:#53677a!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-process{
    display:grid!important;
    grid-template-columns:auto 1fr auto!important;
    align-items:center!important;
    gap:6px!important;
    padding:6px 7px!important;
    border-radius:8px!important;
    background:#f7f9fb!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-process>span:first-child small{font-size:7px!important;color:#70808f!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-process>span:first-child b{font-size:14px!important;color:#172b3e!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-stats-inline{
    display:flex!important;
    gap:5px!important;
    justify-content:flex-end!important;
    min-width:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-stats-inline span{
    font-size:7px!important;
    color:#66798a!important;
    white-space:nowrap!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card .apd-blue{
    min-width:58px!important;
    width:auto!important;
    height:30px!important;
    min-height:30px!important;
    padding:0 8px!important;
    border:1px solid #dc8614!important;
    border-radius:7px!important;
    background:#ffa52f!important;
    color:#172635!important;
    font-size:8.5px!important;
    font-weight:800!important;
    box-shadow:0 2px 5px rgba(175,103,12,.16)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-empty{
    margin:0!important;
    padding:24px 10px!important;
    border:1px dashed #d5dfe7!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#71808e!important;
    font-size:10px!important;
    text-align:center!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-updated{display:none!important;}
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-footer{display:none!important;}
}

/* V17 — mobile target-match: fixed 5 KPI row, full heading, visible orange PUNCH. */
@media (max-width:760px){
  /* Header: give the title its own space so it never truncates. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"title title" "actions actions"!important;
    row-gap:6px!important;
    column-gap:6px!important;
    padding:9px 10px!important;
    margin:0 0 7px!important;
    border:1px solid #d8e3eb!important;
    border-radius:11px!important;
    background:#fff!important;
    box-shadow:0 2px 7px rgba(24,43,62,.05)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title{
    grid-area:title!important;
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    column-gap:8px!important;
    min-width:0!important;
    width:100%!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title>i{
    display:grid!important;
    grid-row:1/3!important;
    width:34px!important;height:34px!important;min-width:34px!important;
    place-items:center!important;
    border:1px solid #d7e8f4!important;
    border-radius:9px!important;
    background:#eef7fd!important;
    color:#147ab7!important;
    font-size:15px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title h1{
    display:block!important;
    margin:0!important;
    font-size:15px!important;
    line-height:18px!important;
    font-weight:800!important;
    color:#122b43!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-title p{
    display:block!important;
    margin:1px 0 0!important;
    font-size:8.5px!important;
    line-height:11px!important;
    color:#708091!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions{
    grid-area:actions!important;
    display:flex!important;
    align-items:end!important;
    justify-content:flex-end!important;
    gap:5px!important;
    width:100%!important;
    margin:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions label{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:5px!important;
    margin:0!important;
    font-size:8px!important;
    font-weight:700!important;
    color:#5c7083!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-heading-actions input{
    width:108px!important;
    height:29px!important;min-height:29px!important;
    padding:3px 5px!important;
    font-size:9px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] #apdRefresh.apd-refresh-icon{
    width:29px!important;min-width:29px!important;height:29px!important;min-height:29px!important;
    margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
  }

  /* Force all five KPI cards into one non-scrolling row. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpis{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    grid-auto-flow:column!important;
    gap:3px!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    overflow:hidden!important;overflow-x:hidden!important;
    margin:0 0 7px!important;padding:0!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi:last-child,
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi.apd-amber{
    grid-column:auto!important;
    grid-row:auto!important;
    min-width:0!important;max-width:none!important;width:100%!important;
    height:54px!important;min-height:54px!important;
    padding:3px 1px!important;margin:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:20px 16px 10px!important;
    place-items:center!important;
    gap:0!important;
    border-radius:8px!important;
    overflow:hidden!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi-icon{
    width:20px!important;height:20px!important;min-width:20px!important;font-size:9px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi b{
    font-size:14px!important;line-height:15px!important;text-align:center!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-kpi small{
    width:100%!important;font-size:6.9px!important;line-height:9px!important;
    text-align:center!important;white-space:nowrap!important;overflow:hidden!important;
  }

  /* Pending cards: keep the action visible at all phone widths. */
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card .apd-card-process{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:5px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-card-stats-inline{
    min-width:0!important;overflow:hidden!important;gap:4px!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card .apd-blue{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    visibility:visible!important;
    opacity:1!important;
    flex:0 0 auto!important;
    min-width:58px!important;
    width:auto!important;
    height:30px!important;min-height:30px!important;
    padding:0 8px!important;
    border:1px solid #d98210!important;
    border-radius:7px!important;
    background:#ffa52f!important;
    background-image:none!important;
    color:#1b2c3a!important;
    font-size:8.5px!important;
    line-height:1!important;
    font-weight:800!important;
    box-shadow:0 2px 4px rgba(169,98,8,.16)!important;
  }
  #agileProductionDashboard[data-av2-dashboard="5"] .apd-mobile-card .apd-blue:disabled{
    display:inline-flex!important;
    opacity:.45!important;
  }
}


/* V18 — Premium mobile Production Entry only. No production calculations changed. */
@media (max-width:760px){
  #agileProductionOk.av2{background:#eef4f8!important;padding:0 0 84px!important;}
  #agileProductionOk.av2 .ahl-shell.apo-shell{background:transparent!important;border:0!important;box-shadow:none!important;margin:0!important;padding:0 10px 18px!important;}
  #agileProductionOk.av2 .ahl-top{margin:0 -10px 12px!important;padding:13px 16px!important;background:linear-gradient(135deg,#0d6ca6,#1789c7)!important;color:#fff!important;border-radius:0!important;border:0!important;box-shadow:0 3px 12px rgba(11,72,110,.20)!important;}
  #agileProductionOk.av2 .ahl-title-text{font-size:19px!important;font-weight:800!important;color:#fff!important;letter-spacing:.1px!important;}
  #agileProductionOk.av2 #av2Mode{background:rgba(255,255,255,.16)!important;border:1px solid rgba(255,255,255,.35)!important;color:#fff!important;font-size:9px!important;padding:3px 7px!important;border-radius:999px!important;}
  #agileProductionOk.av2 .ahl-top>strong{display:none!important;}

  #agileProductionOk.av2 #av2Header.av2-header{padding:0!important;background:transparent!important;border:0!important;margin:0 0 9px!important;}
  #agileProductionOk.av2 .av2-entry-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;padding:12px 12px 5px!important;background:#fff!important;border:1px solid #d8e3ec!important;border-radius:14px!important;box-shadow:0 4px 14px rgba(27,57,83,.08)!important;overflow:hidden!important;}
  #agileProductionOk.av2 .av2-entry-summary label{display:block!important;min-width:0!important;padding:6px 8px 10px!important;border-bottom:1px solid #edf2f6!important;}
  #agileProductionOk.av2 .av2-entry-summary label:nth-last-child(-n+2){border-bottom:0!important;}
  #agileProductionOk.av2 .av2-entry-summary label span{display:block!important;font-size:10px!important;line-height:1.2!important;font-weight:700!important;color:#66798b!important;margin-bottom:3px!important;text-transform:none!important;}
  #agileProductionOk.av2 .av2-entry-summary label strong{display:block!important;min-width:0!important;font-size:15px!important;line-height:1.15!important;color:#132a42!important;font-weight:800!important;white-space:normal!important;overflow-wrap:anywhere!important;}
  #agileProductionOk.av2 .av2-entry-summary label:last-child strong{color:#0b7bba!important;}

  #agileProductionOk.av2 .av2-toolbar{display:flex!important;position:static!important;gap:6px!important;margin:0 0 9px!important;padding:7px!important;background:#536371!important;border:0!important;border-radius:10px!important;box-shadow:0 3px 8px rgba(24,40,54,.15)!important;overflow-x:auto!important;}
  #agileProductionOk.av2 .av2-toolbar button{display:none!important;}
  #agileProductionOk.av2 .av2-toolbar button[data-toolbar="Add"],
  #agileProductionOk.av2 .av2-toolbar button[data-toolbar="Find"],
  #agileProductionOk.av2 .av2-toolbar button[data-toolbar="Save"]{display:block!important;flex:1 0 30%!important;min-width:84px!important;min-height:38px!important;height:38px!important;padding:0 8px!important;border:1px solid #d77e09!important;border-radius:7px!important;background:linear-gradient(#ffb23e,#f89b1c)!important;color:#1c2732!important;font-size:12px!important;font-weight:800!important;box-shadow:0 2px 5px rgba(126,75,11,.20)!important;}
  #agileProductionOk.av2 .av2-toolbar button:disabled{opacity:.52!important;filter:saturate(.75)!important;}

  #agileProductionOk.av2 .av2-entry-back{display:block!important;margin:0 0 9px!important;}
  #agileProductionOk.av2 .av2-entry-back button{width:auto!important;min-height:38px!important;height:38px!important;padding:0 13px!important;border:1px solid #d88416!important;border-radius:9px!important;background:#ffa52f!important;color:#1c2a37!important;font-size:11px!important;font-weight:800!important;box-shadow:0 2px 6px rgba(172,101,13,.16)!important;}

  #agileProductionOk.av2 .av2-premium-history{display:grid!important;gap:8px!important;margin:0 0 9px!important;}
  #agileProductionOk.av2 .av2-premium-history details{margin:0!important;padding:0!important;background:#fff!important;border:1px solid #d9e3eb!important;border-radius:12px!important;box-shadow:0 3px 10px rgba(28,54,77,.06)!important;overflow:hidden!important;}
  #agileProductionOk.av2 .av2-premium-history summary{display:grid!important;grid-template-columns:28px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;padding:10px 11px!important;background:#fff!important;list-style:none!important;}
  #agileProductionOk.av2 .av2-premium-history summary::-webkit-details-marker{display:none!important;}
  #agileProductionOk.av2 .av2-step-no{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;border-radius:8px!important;background:#eaf6fd!important;color:#087bb9!important;font-size:12px!important;font-weight:900!important;}
  #agileProductionOk.av2 .av2-step-main{min-width:0!important;}
  #agileProductionOk.av2 .av2-step-main b{display:block!important;font-size:12px!important;color:#172b40!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  #agileProductionOk.av2 .av2-step-main small{display:block!important;margin:2px 0 0!important;font-size:9px!important;color:#6d7d8c!important;}
  #agileProductionOk.av2 .av2-step-qty{padding:4px 7px!important;border-radius:999px!important;background:#fff2cf!important;color:#80560b!important;font-size:9px!important;font-weight:800!important;white-space:nowrap!important;}
  #agileProductionOk.av2 .av2-process-metrics{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;border-top:1px solid #edf2f5!important;background:#f8fafc!important;padding:7px 5px!important;}
  #agileProductionOk.av2 .av2-process-metrics span{text-align:center!important;min-width:0!important;border-right:1px solid #e8eef3!important;}
  #agileProductionOk.av2 .av2-process-metrics span:last-child{border-right:0!important;}
  #agileProductionOk.av2 .av2-process-metrics small{font-size:7px!important;line-height:1!important;color:#7a8996!important;margin:0 0 3px!important;}
  #agileProductionOk.av2 .av2-process-metrics b{display:block!important;font-size:11px!important;color:#1c3248!important;}
  #agileProductionOk.av2 .av2-premium-history details>button{margin:7px 10px 10px!important;min-height:32px!important;height:32px!important;padding:0 12px!important;background:#ffa52f!important;border-color:#d88416!important;color:#1b2b3a!important;font-size:10px!important;font-weight:800!important;}
  #agileProductionOk.av2 .av2-process-reason{padding:6px 10px 0!important;font-size:9px!important;color:#8a4b3e!important;}

  #agileProductionOk.av2 .av2-punch-panel.av2-premium-entry{margin:0!important;padding:12px!important;background:#fff!important;border:1px solid #d6e2eb!important;border-radius:14px!important;box-shadow:0 5px 16px rgba(24,54,79,.09)!important;}
  #agileProductionOk.av2 .av2-premium-entry .apo-mobile-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:10px 11px!important;margin:-1px -1px 10px!important;background:linear-gradient(135deg,#06283e,#0b466a)!important;border-radius:11px!important;color:#fff!important;}
  #agileProductionOk.av2 .av2-premium-entry .apo-mobile-head small{display:block!important;margin:0 0 2px!important;color:#ffd25c!important;font-size:8px!important;font-weight:800!important;letter-spacing:.4px!important;}
  #agileProductionOk.av2 .av2-premium-entry .apo-mobile-head b{font-size:18px!important;color:#fff!important;line-height:1!important;}
  #agileProductionOk.av2 .av2-premium-entry .apo-process-chip{padding:6px 9px!important;border-radius:999px!important;background:#e9f6ff!important;color:#397594!important;font-size:9px!important;font-weight:800!important;white-space:nowrap!important;}

  #agileProductionOk.av2 .av2-entry-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;margin:0 0 10px!important;}
  #agileProductionOk.av2 .av2-entry-kpis>div{min-width:0!important;padding:8px 4px!important;border-radius:9px!important;text-align:center!important;border:1px solid #dce7ef!important;background:#f4f9fd!important;}
  #agileProductionOk.av2 .av2-entry-kpis>div:nth-child(2){background:#edf9f2!important;border-color:#d2efdd!important;}
  #agileProductionOk.av2 .av2-entry-kpis>div:nth-child(3){background:#fff7e7!important;border-color:#f3dfb5!important;}
  #agileProductionOk.av2 .av2-entry-kpis>div:nth-child(4){background:#f7f0ff!important;border-color:#e5d9f4!important;}
  #agileProductionOk.av2 .av2-entry-kpis small{display:block!important;margin:0 0 3px!important;font-size:7.5px!important;color:#667887!important;white-space:nowrap!important;}
  #agileProductionOk.av2 .av2-entry-kpis b{display:block!important;font-size:17px!important;line-height:1!important;color:#122c43!important;}

  #agileProductionOk.av2 .av2-quick-premium{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;padding:0!important;margin:0 0 9px!important;}
  #agileProductionOk.av2 .av2-quick-premium button{min-height:34px!important;height:34px!important;padding:0 6px!important;border-radius:8px!important;background:#f4f8fb!important;border:1px solid #cbd9e4!important;color:#24415b!important;font-size:9px!important;font-weight:800!important;}
  #agileProductionOk.av2 .av2-quick-premium button:first-child{background:#eaf8f0!important;border-color:#c9ead6!important;color:#13713d!important;}
  #agileProductionOk.av2 .av2-quick-premium button:last-child{background:#fff1ef!important;border-color:#f0d2ce!important;color:#a34738!important;}

  #agileProductionOk.av2 .apo-mobile-entry{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  #agileProductionOk.av2 .apo-mobile-entry label{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important;font-size:9px!important;font-weight:700!important;color:#566d80!important;}
  #agileProductionOk.av2 .apo-mobile-entry input,
  #agileProductionOk.av2 .apo-mobile-entry select{min-width:0!important;width:100%!important;height:39px!important;min-height:39px!important;padding:7px 8px!important;border:1px solid #c7d5e1!important;border-radius:8px!important;background:#fff!important;color:#172f47!important;font-size:12px!important;box-shadow:inset 0 1px 2px rgba(24,55,80,.03)!important;}
  #agileProductionOk.av2 .av2-pending-preview{justify-content:center!important;padding:6px 9px!important;border:1px solid #e1e8ee!important;border-radius:8px!important;background:#f7fafc!important;}
  #agileProductionOk.av2 .av2-pending-preview span{font-size:8px!important;color:#6a7d8d!important;}
  #agileProductionOk.av2 .av2-pending-preview strong{font-size:18px!important;line-height:1!important;color:#163956!important;}
  #agileProductionOk.av2 .apo-punch{grid-column:1/-1!important;min-height:43px!important;height:43px!important;margin-top:1px!important;border:0!important;border-radius:9px!important;background:linear-gradient(135deg,#0c83d0,#0870b4)!important;color:#fff!important;font-size:13px!important;font-weight:900!important;box-shadow:0 4px 10px rgba(7,104,169,.22)!important;}

  #agileProductionOk.av2 .av2-secondary-actions{display:flex!important;gap:6px!important;padding:9px 0 0!important;margin:10px 0 0!important;border-top:1px solid #edf2f5!important;overflow-x:auto!important;}
  #agileProductionOk.av2 .av2-secondary-actions button{flex:0 0 auto!important;min-height:32px!important;height:32px!important;padding:0 10px!important;border-radius:7px!important;background:#fff!important;border:1px solid #cad7e1!important;color:#37536c!important;font-size:9px!important;font-weight:800!important;}
  #agileProductionOk.av2 .av2-no-action{margin:8px 0!important;padding:10px!important;border-radius:8px!important;background:#f7f9fb!important;color:#71808d!important;text-align:center!important;font-size:10px!important;}

  #agileProductionOk.av2 .av2-rejection,#agileProductionOk.av2 .av2-ready{margin:9px 0 0!important;border-radius:11px!important;font-size:10px!important;box-shadow:0 2px 7px rgba(28,55,79,.05)!important;}
  #agileProductionOk.av2 .av2-ready{background:#eef9f3!important;border-color:#d3eadc!important;color:#24583c!important;}
  #agileProductionOk.av2 .av2-status{display:none!important;}
}


/* V19 — premium polish + compact mobile Production Entry. Logic unchanged. */
@media (max-width:760px){
  #agileProductionOk.av2 .ahl-shell.apo-shell{padding:0 8px 14px!important;}
  #agileProductionOk.av2 .ahl-top{margin:0 -8px 8px!important;padding:9px 13px!important;box-shadow:0 2px 8px rgba(11,72,110,.16)!important;}
  #agileProductionOk.av2 .ahl-title-text{font-size:17px!important;}
  #agileProductionOk.av2 #av2Mode{font-size:7.5px!important;padding:2px 6px!important;}

  /* Compact premium top information card */
  #agileProductionOk.av2 #av2Header.av2-header{margin-bottom:6px!important;}
  #agileProductionOk.av2 .av2-entry-summary{
    padding:6px 8px 3px!important;border-radius:11px!important;
    box-shadow:0 3px 10px rgba(27,57,83,.07)!important;
  }
  #agileProductionOk.av2 .av2-entry-summary label{padding:4px 6px 6px!important;}
  #agileProductionOk.av2 .av2-entry-summary label span{font-size:8.2px!important;margin-bottom:1px!important;line-height:1.1!important;}
  #agileProductionOk.av2 .av2-entry-summary label strong{font-size:12.5px!important;line-height:1.08!important;}

  /* Add > Find > Edit > Save always visible, compact and premium */
  #agileProductionOk.av2 .av2-toolbar{
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:4px!important;margin:0 0 6px!important;padding:5px!important;border-radius:8px!important;
    overflow:visible!important;background:linear-gradient(180deg,#4e5d69,#44525e)!important;
  }
  #agileProductionOk.av2 .av2-toolbar button{display:none!important;}
  #agileProductionOk.av2 .av2-toolbar button[data-toolbar="Add"],
  #agileProductionOk.av2 .av2-toolbar button[data-toolbar="Find"],
  #agileProductionOk.av2 .av2-toolbar button[data-toolbar="Edit"],
  #agileProductionOk.av2 .av2-toolbar button[data-toolbar="Save"]{
    display:block!important;min-width:0!important;width:100%!important;min-height:31px!important;height:31px!important;
    padding:0 4px!important;border-radius:6px!important;font-size:10px!important;font-weight:850!important;
    border:1px solid #d77e09!important;background:linear-gradient(#ffb13b,#f49a1c)!important;color:#172533!important;
    box-shadow:0 1px 3px rgba(108,64,8,.18)!important;
  }
  #agileProductionOk.av2 .av2-toolbar button[data-toolbar="Edit"]{background:linear-gradient(#fff4df,#ffe1ae)!important;border-color:#e4ad55!important;}
  #agileProductionOk.av2 .av2-toolbar button:disabled{opacity:.46!important;filter:grayscale(.12)!important;}

  #agileProductionOk.av2 .av2-entry-back{margin-bottom:6px!important;}
  #agileProductionOk.av2 .av2-entry-back button{min-height:32px!important;height:32px!important;padding:0 10px!important;border-radius:7px!important;font-size:9.5px!important;}

  /* Process history is deliberately dense so current production entry stays above the fold. */
  #agileProductionOk.av2 .av2-premium-history{gap:5px!important;margin-bottom:6px!important;}
  #agileProductionOk.av2 .av2-premium-history details{border-radius:9px!important;box-shadow:0 2px 6px rgba(28,54,77,.045)!important;}
  #agileProductionOk.av2 .av2-premium-history summary{grid-template-columns:23px minmax(0,1fr) auto!important;gap:6px!important;padding:6px 8px!important;}
  #agileProductionOk.av2 .av2-step-no{width:23px!important;height:23px!important;border-radius:6px!important;font-size:10px!important;}
  #agileProductionOk.av2 .av2-step-main b{font-size:10.5px!important;}
  #agileProductionOk.av2 .av2-step-main small{font-size:7.5px!important;margin-top:1px!important;}
  #agileProductionOk.av2 .av2-step-qty{padding:3px 6px!important;font-size:7.8px!important;}
  #agileProductionOk.av2 .av2-process-metrics{padding:5px 3px!important;}
  #agileProductionOk.av2 .av2-process-metrics small{font-size:6.3px!important;margin-bottom:2px!important;}
  #agileProductionOk.av2 .av2-process-metrics b{font-size:9.5px!important;}
  #agileProductionOk.av2 .av2-premium-history details>button{margin:5px 8px 7px!important;height:28px!important;min-height:28px!important;padding:0 10px!important;font-size:8.5px!important;}

  /* Current process card: tighter but more polished/visible */
  #agileProductionOk.av2 .av2-punch-panel.av2-premium-entry{padding:8px!important;border-radius:11px!important;box-shadow:0 4px 12px rgba(24,54,79,.075)!important;}
  #agileProductionOk.av2 .av2-premium-entry .apo-mobile-head{padding:7px 9px!important;margin:-1px -1px 7px!important;border-radius:9px!important;}
  #agileProductionOk.av2 .av2-premium-entry .apo-mobile-head small{font-size:7px!important;margin-bottom:1px!important;}
  #agileProductionOk.av2 .av2-premium-entry .apo-mobile-head b{font-size:15px!important;}
  #agileProductionOk.av2 .av2-premium-entry .apo-process-chip{padding:4px 7px!important;font-size:8px!important;}
  #agileProductionOk.av2 .av2-entry-kpis{gap:4px!important;margin-bottom:7px!important;}
  #agileProductionOk.av2 .av2-entry-kpis>div{padding:5px 2px!important;border-radius:7px!important;}
  #agileProductionOk.av2 .av2-entry-kpis small{font-size:6.6px!important;margin-bottom:2px!important;}
  #agileProductionOk.av2 .av2-entry-kpis b{font-size:14px!important;}
  #agileProductionOk.av2 .av2-quick-premium{gap:4px!important;margin-bottom:6px!important;}
  #agileProductionOk.av2 .av2-quick-premium button{height:30px!important;min-height:30px!important;border-radius:7px!important;font-size:8.2px!important;}

  #agileProductionOk.av2 .apo-mobile-entry{gap:5px 6px!important;}
  #agileProductionOk.av2 .apo-mobile-entry label{gap:2px!important;font-size:8px!important;}
  #agileProductionOk.av2 .apo-mobile-entry input,
  #agileProductionOk.av2 .apo-mobile-entry select{height:34px!important;min-height:34px!important;padding:5px 7px!important;border-radius:7px!important;font-size:10.5px!important;}
  #agileProductionOk.av2 .av2-pending-preview{padding:4px 7px!important;border-radius:7px!important;}
  #agileProductionOk.av2 .av2-pending-preview span{font-size:7px!important;}
  #agileProductionOk.av2 .av2-pending-preview strong{font-size:15px!important;}
  #agileProductionOk.av2 .apo-punch{height:37px!important;min-height:37px!important;border-radius:8px!important;font-size:11.5px!important;box-shadow:0 3px 8px rgba(7,104,169,.18)!important;}

  #agileProductionOk.av2 .av2-secondary-actions{gap:4px!important;padding-top:6px!important;margin-top:7px!important;}
  #agileProductionOk.av2 .av2-secondary-actions button{height:29px!important;min-height:29px!important;padding:0 8px!important;border-radius:6px!important;font-size:8px!important;}
  #agileProductionOk.av2 .av2-rejection,#agileProductionOk.av2 .av2-ready{margin-top:6px!important;border-radius:9px!important;font-size:9px!important;}
}


/* 2026-09-14 V21: make previously produced quantity unmistakable on mobile. */
#agileProductionOk.av2 .av2-process-chips{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:wrap!important;}
#agileProductionOk.av2 .av2-done-chip{background:#dcfce7!important;border:1px solid #86efac!important;color:#16713a!important;font-weight:800!important;}
#agileProductionOk.av2 .av2-entry-kpis .av2-kpi-done{background:#eafaf0!important;border-color:#9adeb1!important;}
#agileProductionOk.av2 .av2-entry-kpis .av2-kpi-done small,#agileProductionOk.av2 .av2-entry-kpis .av2-kpi-done b{color:#13733a!important;}
#agileProductionDashboard[data-av2-dashboard="5"] .apd-card-stats-inline .apd-done-stat{background:#e8f8ee!important;border:1px solid #9dddb3!important;color:#14733b!important;font-weight:800!important;padding:3px 6px!important;border-radius:999px!important;}
@media(max-width:760px){
 #agileProductionOk.av2 .av2-process-chips{max-width:58%!important;}
 #agileProductionOk.av2 .av2-done-chip,#agileProductionOk.av2 .apo-process-chip{font-size:10px!important;line-height:1.1!important;padding:6px 8px!important;}
}

/* Production Work Queue: contain filter/layout overrides within this screen. */
/* Customer / Gate based Production Entry, matching the approved form. */
#agileProductionOk.av2:has(#av2PcCustomer) .av2-toolbar{display:flex!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:6px!important;background:#626f79!important;padding:7px 10px!important;margin:10px 0!important;border:1px solid #4c5862!important;border-radius:4px!important;}
#agileProductionOk.av2:has(#av2PcCustomer) .av2-toolbar button{min-width:80px!important;height:33px!important;min-height:33px!important;padding:4px 12px!important;border-radius:3px!important;font:700 12px Arial,sans-serif!important;}
#agileProductionOk.av2 .av2-pc-prod-grid td,#agileProductionOk.av2 .av2-pc-prod-grid input,#agileProductionOk.av2 .av2-pc-prod-grid select,#agileProductionOk.av2 .av2-pc-prod-grid option{background:#fff!important;color:#102c43!important;-webkit-text-fill-color:#102c43!important;}
#agileProductionOk.av2 .av2-pc-prod-grid th{background:#dce9f2!important;color:#173b56!important;padding:9px 7px!important;font:700 11px Arial,sans-serif!important;}
#agileProductionOk.av2 .av2-pc-prod-grid td{border:1px solid #c4d2dd!important;padding:7px!important;font:12px Arial,sans-serif!important;}
#agileProductionOk.av2 .av2-pc-prod-grid input,#agileProductionOk.av2 .av2-pc-prod-grid select{height:33px!important;box-sizing:border-box!important;border:1px solid #a9bfd0!important;padding:5px 7px!important;min-width:70px!important;width:100%!important;}
#agileProductionOk.av2:has(#av2Search) #av2Header select,#agileProductionOk.av2:has(#av2Search) #av2Header option{color:#102c43!important;-webkit-text-fill-color:#102c43!important;opacity:1!important;}
#agileProductionOk.av2:has(#av2Search) .av2-grid-wrap tbody td{background:#fff!important;color:#102c43!important;-webkit-text-fill-color:#102c43!important;}
#agileProductionOk.av2:has(#av2Search) .av2-grid-wrap tbody tr:nth-child(even) td{background:#f4f8fb!important;}
#agileProductionOk.av2:has(#av2Search) .av2-grid-wrap tbody tr:hover td{background:#eaf4fc!important;}
#agileProductionOk.av2:has(#av2Search){font-family:Arial,sans-serif!important;box-sizing:border-box!important;padding:10px!important;}
#agileProductionOk.av2:has(#av2Search)>.ahl-shell{padding:10px!important;margin:0!important;border:1px solid #bacbd8!important;border-radius:6px!important;background:#fff!important;}
#agileProductionOk.av2:has(#av2Search) .ahl-top{margin:0 0 10px!important;padding:0 12px!important;min-height:42px!important;background:#6e7b85!important;border-bottom:2px solid #f6a126!important;}
#agileProductionOk.av2:has(#av2Search) #av2Header{padding:12px!important;margin:0 0 10px!important;background:#f7fafc!important;border:1px solid #bdcedb!important;border-radius:4px!important;}
#agileProductionOk.av2:has(#av2Search) #av2Header>.av2-fields{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(180px,1fr)!important;gap:14px!important;padding:0!important;margin:0!important;border:0!important;}
#agileProductionOk.av2:has(#av2Search) #av2Header label{display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;margin:0!important;font-size:12px!important;font-weight:600!important;color:#173b56!important;}
#agileProductionOk.av2:has(#av2Search) #av2Header input,#agileProductionOk.av2:has(#av2Search) #av2Header select{box-sizing:border-box!important;width:100%!important;min-width:0!important;height:34px!important;padding:6px 9px!important;margin:0!important;border:1px solid #a9bdd0!important;border-radius:3px!important;background:#fff!important;color:#102c43!important;font:12px Arial,sans-serif!important;}
#agileProductionOk.av2:has(#av2Search) .av2-filter-details{margin-top:12px!important;border:0!important;border-top:1px solid #d5e0e8!important;padding-top:8px!important;}
#agileProductionOk.av2:has(#av2Search) .av2-filter-details summary{font:600 12px Arial,sans-serif!important;color:#23516d!important;padding:4px 0!important;cursor:pointer!important;}
#agileProductionOk.av2:has(#av2Search) .av2-filter-details .av2-fields{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;padding:12px 0 0!important;margin:0!important;border:0!important;}
#agileProductionOk.av2:has(#av2Search) .av2-toolbar{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:6px!important;padding:7px 9px!important;margin:0 0 12px!important;min-height:46px!important;height:auto!important;border-radius:4px!important;background:#626f79!important;}
#agileProductionOk.av2:has(#av2Search) .av2-toolbar button{width:auto!important;min-width:76px!important;height:32px!important;min-height:32px!important;padding:4px 12px!important;font:700 12px Arial,sans-serif!important;border-radius:3px!important;}
#agileProductionOk.av2:has(#av2Search) button:disabled{opacity:.45!important;cursor:default!important;box-shadow:none!important;}
#agileProductionOk.av2:has(#av2Search) .av2-tabs{display:flex!important;flex-wrap:wrap!important;gap:6px!important;padding:0 0 10px!important;margin:0!important;border-bottom:1px solid #d2dfe8!important;}
#agileProductionOk.av2:has(#av2Search) .av2-tabs button{height:33px!important;min-height:33px!important;margin:0!important;padding:5px 15px!important;border:1px solid #aebfcd!important;border-radius:4px!important;background:#edf3f8!important;color:#254b65!important;box-shadow:none!important;font:700 12px Arial,sans-serif!important;}
#agileProductionOk.av2:has(#av2Search) .av2-tabs button.active{background:#1f5f8b!important;color:#fff!important;border-color:#16496d!important;-webkit-text-fill-color:#fff!important;}
#agileProductionOk.av2:has(#av2Search) .av2-queue-tools{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:6px!important;margin:0!important;padding:9px 0!important;}
#agileProductionOk.av2:has(#av2Search) .av2-queue-tools button{height:31px!important;min-height:31px!important;padding:4px 11px!important;margin:0!important;border-radius:3px!important;box-shadow:none!important;font:600 11px Arial,sans-serif!important;}
#agileProductionOk.av2:has(#av2Search) .av2-grid-wrap{margin:0!important;max-width:100%!important;overflow:auto!important;border:1px solid #aebfce!important;border-radius:3px!important;}
#agileProductionOk.av2:has(#av2Search) .av2-grid-wrap table{width:100%!important;min-width:940px!important;border-collapse:collapse!important;font:12px Arial,sans-serif!important;}
#agileProductionOk.av2:has(#av2Search) .av2-grid-wrap th{padding:10px 8px!important;background:#dce9f2!important;color:#173b56!important;font-size:11px!important;text-align:left!important;white-space:nowrap!important;}
#agileProductionOk.av2:has(#av2Search) .av2-grid-wrap td{padding:9px 8px!important;vertical-align:middle!important;line-height:1.45!important;border-color:#c8d7e3!important;}
#agileProductionOk.av2:has(#av2Search) .av2-grid-wrap small{display:block!important;margin-top:3px!important;color:#516c80!important;font-size:11px!important;}
#agileProductionOk.av2:has(#av2Search) .av2-grid-wrap tbody tr:hover{background:#f0f7fc!important;}
#agileProductionOk.av2:has(#av2Search) .av2-grid-wrap button{height:32px!important;min-height:32px!important;padding:4px 12px!important;font:700 12px Arial,sans-serif!important;border-radius:4px!important;box-shadow:none!important;}
#agileProductionOk.av2:has(#av2Search) .av2-status{padding:9px 12px!important;margin-top:0!important;font:11px Arial,sans-serif!important;background:#edf4f9!important;color:#36576e!important;}
@media(max-width:760px){
 #agileProductionOk.av2:has(#av2Search){padding:6px!important;width:100%!important;max-width:100%!important;}
 #agileProductionOk.av2:has(#av2Search) .ahl-top{display:flex!important;flex-wrap:wrap!important;height:auto!important;gap:6px!important;padding:8px!important;}
 #agileProductionOk.av2:has(#av2Search) .ahl-top strong{font-size:10px!important;}
 #agileProductionOk.av2:has(#av2Search) #av2Header>.av2-fields{grid-template-columns:1fr!important;gap:10px!important;}
 #agileProductionOk.av2:has(#av2Search) .av2-filter-details .av2-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 #agileProductionOk.av2:has(#av2Search) .av2-toolbar{justify-content:flex-start!important;}
 #agileProductionOk.av2:has(#av2Search) .av2-toolbar button{min-width:65px!important;flex:1 0 20%!important;}
 #agileProductionOk.av2:has(#av2Search) .av2-tabs{flex-wrap:wrap!important;overflow:visible!important;}
 #agileProductionOk.av2:has(#av2Search) .av2-tabs button{flex:1 0 28%!important;padding:5px 8px!important;}
 #agileProductionOk.av2:has(#av2Search) .av2-queue-tools{justify-content:flex-start!important;}
}

/* Production Entry Find — approved Gate Entry find-window standard */
.av2-dialog.av2-standard-find{width:min(1040px,96vw);height:min(550px,86vh);max-height:86vh;border:1px solid #9fb4c7;border-radius:0;padding:0;overflow:hidden;background:#fff;box-shadow:0 14px 42px #10283c66}
.av2-standard-find form{height:100%;display:flex;flex-direction:column}
.av2-standard-find .av2-dialog-title{min-height:48px;box-sizing:border-box;padding:0 12px;background:#08496b;color:#fff;border-bottom:2px solid #f6a000;font-size:19px;border-radius:0}
.av2-standard-find .av2-dialog-title button{width:32px;min-width:32px;min-height:32px;height:32px;padding:0;background:#ef2d2d;color:#fff;border:0;border-radius:0;font-size:19px;line-height:32px}
.av2-standard-find .av2-dialog-body{padding:10px 10px 0;max-height:none;overflow:hidden;display:flex;flex-direction:column;flex:1;min-height:0}
.av2-standard-find .av2-find-search{display:grid;grid-template-columns:28px minmax(0,1fr) 116px;align-items:center;gap:0;margin:0 0 10px}
.av2-standard-find .av2-find-icon{height:36px;display:flex;align-items:center;justify-content:center;border:1px solid #1494e6;border-right:0;background:#fff;color:#315978;font-size:18px}
.av2-standard-find #av2FindSearch{height:36px;min-height:36px;border:1px solid #1494e6;border-left:0;border-radius:0;padding-left:4px;outline:0}
.av2-standard-find #av2FindSearch:focus{box-shadow:inset 0 0 0 1px #1494e6}
.av2-standard-find #av2FindSearchBtn{height:36px;min-height:36px;margin-left:8px;padding:0 14px;border:1px solid #d78300;border-radius:0;background:#f6a000;color:#07131c;font-weight:700}
.av2-standard-find .av2-find-grid{flex:1;min-height:0;border:1px solid #879cad;border-bottom:0;overflow:auto;background:#fff}
.av2-standard-find .av2-find-grid table{font-size:12px}
.av2-standard-find .av2-find-grid th{padding:9px 8px;background:#d8e6f1;color:#17293a;border:1px solid #9eafbd;text-transform:none;font-weight:700}
.av2-standard-find .av2-find-grid td{padding:8px;border:1px solid #a9b8c4;color:#111;background:#fff}
.av2-standard-find .av2-find-grid td small{display:block;color:#31485c;margin-top:2px}
.av2-standard-find .av2-find-grid tbody tr{cursor:pointer}
.av2-standard-find .av2-find-grid tbody tr:hover td{background:#fff2cc}
.av2-standard-find .av2-find-grid tbody tr.av2-find-selected td{background:#f6a000!important;color:#111!important}
.av2-standard-find .av2-find-grid tbody tr.av2-find-selected td small{color:#111!important}
.av2-standard-find .av2-error{padding:0 10px;color:#b21f1f;background:#fff}
.av2-standard-find .av2-dialog-actions{min-height:50px;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 12px 8px 10px;background:#08496b;border-radius:0}
.av2-standard-find .av2-find-footer{margin-right:auto;color:#fff;font-size:13px;font-weight:700}
.av2-standard-find .av2-dialog-actions button{min-height:32px;height:32px;padding:0 14px;border:1px solid #d78300;border-radius:0;background:#f6a000;color:#07131c;font-weight:700}
.av2-standard-find .av2-dialog-actions .av2-primary{order:1;background:#f6a000;color:#07131c;border-color:#d78300}
.av2-standard-find .av2-dialog-actions [data-close]{order:2}

/* Production Entry Find — never allow black/dark selected rows; Gate Entry standard */
.av2-dialog.av2-standard-find .av2-find-grid tbody tr.av2-find-selected,
.av2-dialog.av2-standard-find .av2-find-grid tbody tr.av2-find-selected:hover,
.av2-dialog.av2-standard-find .av2-find-grid tbody tr.selected,
.av2-dialog.av2-standard-find .av2-find-grid tbody tr.active,
.av2-dialog.av2-standard-find .av2-find-grid tbody tr:focus,
.av2-dialog.av2-standard-find .av2-find-grid tbody tr:focus-within{
  background:#f6a000!important;
  color:#111!important;
}
.av2-dialog.av2-standard-find .av2-find-grid tbody tr.av2-find-selected>td,
.av2-dialog.av2-standard-find .av2-find-grid tbody tr.av2-find-selected:hover>td,
.av2-dialog.av2-standard-find .av2-find-grid tbody tr.selected>td,
.av2-dialog.av2-standard-find .av2-find-grid tbody tr.active>td,
.av2-dialog.av2-standard-find .av2-find-grid tbody tr:focus>td,
.av2-dialog.av2-standard-find .av2-find-grid tbody tr:focus-within>td{
  background:#f6a000!important;
  background-color:#f6a000!important;
  color:#111!important;
}
.av2-dialog.av2-standard-find .av2-find-grid tbody tr.av2-find-selected>td *,
.av2-dialog.av2-standard-find .av2-find-grid tbody tr.selected>td *,
.av2-dialog.av2-standard-find .av2-find-grid tbody tr.active>td *{
  color:#111!important;
  background:transparent!important;
}
