/* Operational controls share one responsive visual system. */
.production-filters{margin:0 0 24px;padding:20px 22px;border:1px solid rgba(117,180,225,.2);border-radius:18px;background:linear-gradient(130deg,rgba(17,42,67,.95),rgba(9,28,48,.95));box-shadow:0 12px 30px rgba(0,0,0,.12);color:#e5f1fb}
.production-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.production-filter-heading>div{display:grid;gap:5px}.production-filter-heading b{font-size:14px;letter-spacing:-.01em}.production-filter-heading span{color:#8fadc6;font-size:12px;line-height:1.5}
.production-filter-grid{display:grid;grid-template-columns:minmax(190px,1.6fr) repeat(2,minmax(140px,1fr)) auto;align-items:end;gap:14px}
.production-filter-grid:has(#filter-client){grid-template-columns:repeat(4,minmax(130px,1fr)) auto}
.production-filter-field{display:grid;gap:8px;min-width:0;margin:0!important;font-size:12px;font-weight:600}.production-filter-field>span{color:#b5cce0}.production-filter-field.is-wide{grid-column:span 2}
.production-filters input,.production-filters select{width:100%;min-width:0;height:44px;padding:10px 13px;border:1px solid #365470;border-radius:10px;color:#e7f3ff;background:#102c47;font-family:inherit;font-size:13px;line-height:1.3;color-scheme:dark;transition:border-color .15s,box-shadow .15s;outline-offset:2px}
.production-filters input::placeholder{color:#7d9ab4}.production-filters select{padding-right:28px}.production-filters option{background:#102c47;color:#edf6ff}
.production-filters input:focus,.production-filters select:focus{border-color:#54c4f6;box-shadow:0 0 0 3px rgba(38,160,227,.14);outline:0}.production-filters input[type=date]{min-width:140px}
.filter-refresh,.filter-reset{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;font:600 12px var(--font);white-space:nowrap;cursor:pointer}
.filter-refresh{height:44px;padding:0 18px;border:1px solid #34749d;background:#183e5e;color:#cce9ff}.filter-refresh span{font-size:20px;font-weight:400}.filter-refresh:hover{background:#205176;border-color:#68c7ef}
.filter-reset{height:32px;padding:0 10px;border:0;background:transparent;color:#83ccf7}.filter-reset:hover{background:rgba(67,158,215,.12)}.filter-reset:disabled{opacity:.38;cursor:default}
.production-section,.payment-client-portfolio{margin-top:22px;overflow:hidden}.production-section .panel-head,.payment-client-portfolio .panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.production-section .data-table td,.payment-client-portfolio .data-table td{vertical-align:middle}.payment-client-portfolio .data-table strong,.payment-client-portfolio .data-table small{display:block}.payment-client-portfolio .data-table small{margin-top:5px;font-size:10px;overflow-wrap:anywhere}.payment-client-portfolio .panel-link{white-space:nowrap}
.production-section .shift-table-wrap,.payment-client-portfolio .shift-table-wrap{max-width:100%;overflow:auto}.production-section .data-table,.payment-client-portfolio .data-table{min-width:640px;width:100%}
.custody-command-center{margin:22px 0 26px;padding:24px;border:1px solid rgba(105,176,224,.23);border-radius:20px;background:linear-gradient(130deg,#102e49,#0b1d33);color:#deedf9;box-shadow:0 14px 36px rgba(0,0,0,.15)}
.custody-command-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.custody-command-heading>div>span{color:#65b8eb;font:10px var(--mono);letter-spacing:.15em}.custody-command-heading h2{margin:7px 0;font-size:22px;font-weight:700;letter-spacing:-.04em;color:#edf7ff}.custody-command-heading p{margin:0;color:#8daec8;font-size:12px;line-height:1.5}
.custody-command-grid{display:grid;grid-template-columns:1.15fr .85fr 1fr;gap:16px}.custody-command-group{padding:17px;border:1px solid rgba(130,177,215,.16);border-radius:14px;background:rgba(6,18,34,.26)}
.custody-key-panel-group{margin:14px 0;padding:17px;border:1px solid rgba(99,166,210,.2);border-radius:14px;background:linear-gradient(135deg,rgba(13,36,59,.72),rgba(7,22,39,.62))}.custody-key-panel-group .panel-head{margin:0 0 8px;padding:0 0 12px;border-bottom:1px solid rgba(99,166,210,.16)}.custody-key-panel-group .event-row{padding:12px 0;border-bottom:1px solid rgba(99,166,210,.12)}.custody-key-panel-group .event-row:last-child{border-bottom:0}
.work-order-status-group{margin:16px 0;padding:17px;border:1px solid rgba(99,166,210,.18);border-radius:14px;background:linear-gradient(135deg,rgba(13,36,59,.66),rgba(7,22,39,.5))}.work-order-group-heading,.work-order-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.work-order-group-heading h3,.work-order-section-heading h3,.work-order-history h3,.work-order-materials h3,.work-order-completion h3{margin:0;color:#d9edfc;font-size:14px}.work-order-group-heading>span{display:grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border:1px solid rgba(99,166,210,.25);border-radius:99px;color:#a9d9f5;font-size:12px}.work-order-card-list{display:grid;gap:9px}.work-order-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid rgba(99,166,210,.14);border-radius:11px;background:rgba(4,17,31,.38)}.work-order-card-main{display:grid;gap:6px;min-width:0}.work-order-card-title{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.work-order-card-title b{color:#edf7ff;font-size:13px}.work-order-card small,.work-order-card p,.work-order-detail-summary span,.work-order-detail-summary small,.work-order-section-heading p,.work-order-history-entry small,.work-order-used-material small{margin:0;color:#94aec4;font-size:11px;line-height:1.5}.work-order-card p{color:#c2d7e8;overflow-wrap:anywhere}.work-order-detail-summary,.work-order-history,.work-order-materials,.work-order-completion{margin:14px 0;padding:15px;border:1px solid rgba(99,166,210,.16);border-radius:12px;background:rgba(8,24,42,.45)}.work-order-detail-summary{display:grid;gap:7px}.work-order-detail-summary>b{color:#eff8ff;font-size:15px}.work-order-detail-summary>p{margin:2px 0 0;color:#c3d8e9;line-height:1.55}.work-order-history-entry{margin:10px 0;padding:11px 12px;border-left:2px solid #39a9dc;border-radius:0 8px 8px 0;background:rgba(31,83,119,.14)}.work-order-history-entry p{margin:0 0 5px;color:#d8e9f6;white-space:pre-wrap;overflow-wrap:anywhere}.work-order-used-material{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid rgba(99,166,210,.12)}.work-order-used-material>b{color:#dcecf7}.work-order-used-material>span{color:#87d5ae;font-size:12px}.work-order-section-heading{margin-bottom:8px}.work-order-section-heading p{margin-top:4px}.work-order-material-row{display:grid;grid-template-columns:minmax(180px,2fr) minmax(100px,.7fr) auto;align-items:end;gap:10px;margin:10px 0;padding:11px;border:1px solid rgba(99,166,210,.15);border-radius:10px;background:rgba(4,17,31,.3)}.work-order-material-row label,.work-order-completion label{display:grid;gap:6px;color:#b8cee0;font-size:12px;font-weight:600}.work-order-material-row select,.work-order-material-row input,.work-order-completion input:not([type=checkbox]){width:100%;min-width:0;min-height:40px;padding:9px 11px;border:1px solid #365470;border-radius:9px;background:#0c2239;color:#e7f3ff;font:inherit;color-scheme:dark}.work-order-start-toggle,.work-order-signature-consent,.work-order-complete-toggle{display:flex!important;align-items:flex-start;gap:10px;margin:14px 0;padding:12px;border:1px solid rgba(92,171,215,.22);border-radius:10px;background:rgba(14,44,68,.46);color:#ddecf8}.work-order-start-toggle input,.work-order-signature-consent input,.work-order-complete-toggle input{width:18px;height:18px;margin:1px 0;accent-color:#35ace3;flex:none}.work-order-start-toggle span,.work-order-signature-consent span,.work-order-complete-toggle span{display:grid;gap:4px}.work-order-start-toggle small,.work-order-signature-consent small,.work-order-complete-toggle small{color:#99b4ca;font-size:11px;line-height:1.45}.work-order-signature-shell{display:grid;gap:8px;margin:10px 0}.work-order-signature-shell canvas{display:block;width:100%;height:150px;border:1px dashed #557b96;border-radius:9px;background:#fff;touch-action:none}.work-order-evidence-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.custody-group-title{display:flex;gap:10px;align-items:center;margin:0 0 15px}.custody-group-title>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(57,166,231,.13);color:#75d4ff;font-size:17px}.custody-group-title h3{margin:0;font-size:12px;font-weight:700;color:#c4def1}
.custody-command-buttons{display:flex;flex-wrap:wrap;gap:9px}.custody-command-center .secondary-action{display:inline-flex!important;align-items:center;justify-content:flex-start;flex:1 1 125px;min-height:41px;width:auto!important;margin:0;padding:10px 13px;border:1px solid #31516d;border-radius:9px;background:#173650;color:#bdd8ec;font-size:11px;font-weight:600;text-align:left;line-height:1.35;box-shadow:none;transition:background .15s,border-color .15s,transform .15s}
.custody-command-center .secondary-action:hover{background:#214b6c;border-color:#54b6e5;transform:translateY(-1px)}.custody-command-center [data-action=create-custody-key],.custody-command-center [data-action=start-shift]{background:#187db6;border-color:#45b6ef;color:white}.custody-command-center .custody-refresh{flex:none;gap:7px;background:transparent}.custody-command-center .custody-refresh>span{font-size:20px}
.custody-command-center+.metrics-grid{gap:14px}.custody-command-center+.metrics-grid .metric-card{padding:18px;display:flex;gap:14px;align-items:center}.custody-command-center+.metrics-grid .metric-card>b{font-size:25px}.custody-command-center+.metrics-grid .metric-card>span{font-size:12px}
.mfa-setup-key{display:block;max-width:100%;padding:14px;border:1px solid #315d81;border-radius:10px;overflow-wrap:anywhere;background:#123450;color:#b9e9ff}
@media(min-width:1150px){.production-filter-grid:has(#filter-client){grid-template-columns:minmax(170px,1.1fr) minmax(220px,1.6fr) minmax(220px,1.5fr) repeat(2,minmax(135px,.8fr)) auto}.production-filter-grid:has(#filter-client) .is-wide{grid-column:auto}}
@media(max-width:900px){.production-filter-grid,.production-filter-grid:has(#filter-client){grid-template-columns:repeat(2,minmax(0,1fr))}.production-filter-grid .is-wide{grid-column:span 2}.filter-refresh{align-self:end}.custody-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.custody-command-group:last-child{grid-column:1/-1}.custody-command-buttons .secondary-action{flex:1 1 140px}}
@media(max-width:540px){.production-filters{padding:16px;border-radius:14px}.production-filter-heading{align-items:flex-start;gap:8px}.production-filter-heading span{font-size:11px}.production-filter-grid,.production-filter-grid:has(#filter-client){grid-template-columns:1fr;gap:12px}.production-filter-grid .is-wide{grid-column:auto}.filter-refresh{width:100%}.custody-command-center{padding:17px;border-radius:15px}.custody-command-heading{align-items:flex-start}.custody-command-heading h2{font-size:19px}.custody-command-heading p{font-size:11px}.custody-command-grid{grid-template-columns:1fr;gap:12px}.custody-command-group:last-child{grid-column:auto}.custody-command-group{padding:14px}.custody-command-buttons{gap:8px}.custody-command-center .secondary-action{font-size:11px;min-height:44px}.production-section .panel-head,.payment-client-portfolio .panel-head{padding:16px}.production-section .data-table,.payment-client-portfolio .data-table{font-size:11px}}
@media(max-width:640px){.work-order-status-group{padding:12px}.work-order-card{align-items:stretch;flex-direction:column;gap:11px}.work-order-card>.panel-link{width:100%;justify-content:center}.work-order-material-row{grid-template-columns:1fr}.work-order-section-heading{align-items:flex-start;flex-direction:column}.work-order-section-heading>.secondary-action{width:100%}.work-order-signature-shell canvas{height:125px}}
