/* Dashboard only: compact mockup layout, existing navigation and workflows retained. */
.pd-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px;color:#102e62}.pd-topbar h2{font-size:25px;line-height:1.2;margin:0 0 5px}.pd-topbar p{font-size:13px;margin:0;color:#425778}.pd-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.pd-tools .p2-button,.pd-tools button{padding:7px 10px;font-size:12px;min-height:34px;white-space:nowrap}.pd-overview{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.pd-legend{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:12px;color:#18345f}.pd-legend>span{display:flex;align-items:center;gap:7px;padding:5px 8px;background:#f1f5fa;border-radius:6px}.pd-legend>span:before{content:'';display:block;width:20px;height:20px;border-radius:4px;background:var(--pd-tile)}.pd-legend small{display:flex;gap:6px;align-items:center;margin-left:8px;color:#1c5ed7;font-size:12px}.pd-icon{width:22px;height:22px;flex-shrink:0}.pd-legend .pd-icon{width:18px;height:18px}#pd-message{margin:0;font-size:11px;color:#64758d;white-space:nowrap}
.pd-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;color:#102e62}.pd-card{background:#fff;border:1px solid #dce6f2;border-radius:10px;min-width:0;padding:12px 12px 10px;box-shadow:0 2px 5px #183b6a05}.pd-card.pd-card-selected{border-color:#82afff;box-shadow:0 0 0 1px #e6efff}.pd-card>header{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:0;margin:0 0 8px;height:auto;min-height:0;background:none;border:0}.pd-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:linear-gradient(140deg,#388cff,#1260d8);color:white;font-size:17px;font-weight:750;box-shadow:inset 0 0 0 1px #ffffff30}.pd-identity{min-width:0}.pd-card h2{font-size:14px;line-height:1.25;margin:0 0 3px;font-weight:750;overflow-wrap:anywhere}.pd-card p{font-size:12px;margin:0}.pd-agent-pending{color:#b9400c}.pd-days{display:grid;gap:2px}.pd-day{display:flex;width:100%;min-width:0;align-items:center;justify-content:space-between;gap:7px;padding:2px 3px;border:1px solid transparent;border-radius:5px;background:transparent;color:#19345f;text-align:left;cursor:pointer;min-height:24px;box-shadow:none;line-height:1.15}.pd-day:hover{background:#edf5ff}.pd-day:focus-visible{outline:2px solid #2674ff;outline-offset:1px}.pd-day.pd-selected{background:#edf5ff;border-color:#89b5ff}.pd-date{text-transform:capitalize;font-size:12px;font-weight:500;white-space:nowrap}.pd-date small{display:inline-block;font-size:9px;font-weight:700;color:#08703c;background:#c4f1d7;padding:2px 3px;border-radius:4px;margin-left:3px}.pd-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;flex:0 0 55%;min-width:0}.pd-counts>span,.pd-summary>span{background:var(--pd-tile);border-radius:5px;text-align:center;min-width:0}.pd-counts b{display:block;font-size:13px;font-weight:750;line-height:1.35}.pd-counts small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.pd-total{--pd-tile:#e3efff;color:#173f80}.pd-done{--pd-tile:#dff5e9;color:#08793e}.pd-pending{--pd-tile:#ffeadc;color:#bd3e08}.pd-empty .pd-counts b{opacity:.65}
.pd-sedip{grid-column:1/-1;display:grid;grid-template-columns:250px minmax(0,1fr);align-items:stretch;gap:18px;padding:12px;border-color:#8db7ff;background:linear-gradient(110deg,#e8f3ff,#f1f7ff)}.pd-sedip>header{display:grid;grid-template-columns:62px minmax(0,1fr);align-content:center;gap:9px 14px;margin:0;padding:0 4px}.pd-sedip .pd-avatar{width:60px;height:60px;font-size:28px}.pd-warehouse .pd-icon{width:32px;height:32px}.pd-sedip h2{font-size:29px;letter-spacing:.2px}.pd-sedip p{font-size:14px}.pd-sedip-pending{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;background:#dcecff80;border-radius:6px;padding:6px 8px;font-size:12px;line-height:1.2;font-weight:650}.pd-sedip-pending strong{font-size:24px;color:#bd3e08;background:#ffeadc;padding:2px 10px;border-radius:6px}.pd-sedip .pd-days{grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.pd-sedip .pd-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:14px 8px 12px;gap:20px;background:white;border-radius:8px;min-height:120px;box-shadow:0 3px 5px #264c7720}.pd-sedip .pd-day.pd-selected{border-color:#2476ff;box-shadow:0 0 0 1px #2476ff,0 3px 5px #264c7720}.pd-sedip .pd-date{font-weight:750;font-size:14px;position:relative}.pd-sedip .pd-date small{position:absolute;top:66px;left:50%;transform:translateX(-50%);margin:0;font-size:10px}.pd-sedip .pd-counts{width:100%;flex:0 0 auto;gap:5px}.pd-sedip .pd-counts b{font-size:22px;line-height:1.5}
.pd-detail{color:#102e62;background:white;border:1px solid #dce6f2;border-radius:10px;margin-top:10px;min-width:0;overflow:hidden}.pd-detail-head{display:flex;align-items:center;gap:15px;padding:10px 14px;border-bottom:1px solid #eaf0f7;background:linear-gradient(90deg,#fff,#f8fbff);flex-wrap:wrap}.pd-detail-identity{display:flex;align-items:center;gap:10px;padding-right:16px;border-right:1px solid #dce6f2}.pd-detail h2{font-size:21px;margin:0;line-height:1.2}.pd-detail-date{display:flex;align-items:center;gap:8px;flex:1;flex-wrap:wrap;min-width:210px;text-transform:capitalize}.pd-detail-date>strong{font-size:17px}.pd-run{font-size:11px;color:#065bd7;background:#e7f0ff;border-radius:5px;padding:4px 7px;white-space:nowrap}.pd-summary{display:grid;grid-template-columns:repeat(3,minmax(75px,1fr));gap:7px}.pd-summary>span{padding:3px 12px;display:flex;flex-direction:column}.pd-summary b{font-size:23px;line-height:1.1}.pd-summary small{font-size:11px;white-space:nowrap}.pd-progress{display:flex;align-items:center;gap:7px;font-size:13px}.pd-progress progress{appearance:none;-webkit-appearance:none;width:140px;height:11px;border:0;border-radius:8px;overflow:hidden;background:#e6ebf2}.pd-progress progress::-webkit-progress-bar{background:#e6ebf2;border-radius:8px}.pd-progress progress::-webkit-progress-value{background:#32b981;border-radius:8px}.pd-progress progress::-moz-progress-bar{background:#32b981;border-radius:8px}.pd-in-progress{margin:6px 14px 0;font-size:11px;color:#426187}.pd-workbar{display:flex;align-items:flex-end;gap:16px;padding:10px 14px}.pd-filters{display:flex;gap:10px;flex:1;min-width:0}.pd-filters label{display:flex;flex-direction:column;font-size:11px;gap:2px;min-width:100px;flex:1;margin:0;color:#354d72}.pd-filters .pd-customer-filter{flex:2}.pd-filters input,.pd-filters select{height:34px;min-height:34px;padding:5px 8px;margin:0;font-size:12px;border:1px solid #dce5f0;border-radius:5px;min-width:0;width:100%}.pd-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pd-actions button{padding:8px 10px;min-height:35px;font-size:11px;border-radius:5px;white-space:nowrap}.pd-actions [data-pd-action=all]{color:#214b80;background:#f4f8fd}.pd-actions [data-pd-action=start]{background:#2474f8;color:white;font-weight:700}.pd-detail .table-wrap{margin:0 14px;max-width:calc(100% - 28px);overflow:auto}.pd-detail table{width:100%;font-size:12px;border-collapse:collapse;margin:0}.pd-detail th{padding:6px 8px;background:#edf1f6;color:#143365;font-size:11px;font-weight:750;white-space:nowrap}.pd-detail td{padding:6px 8px;border-bottom:1px solid #e7edf5;line-height:1.3;color:#365078;vertical-align:middle}.pd-detail th:first-child,.pd-detail td:first-child{width:32px;padding-left:7px;padding-right:3px}.pd-detail .pd-customer-cell{font-weight:650;color:#123263;max-width:250px}.pd-order-cell{white-space:nowrap}.pd-detail input[type=checkbox]{display:block;width:17px;height:17px;margin:0;accent-color:#2674f6;cursor:pointer}.pd-detail .badge{display:inline-block;border-radius:4px;padding:3px 6px;font-size:10px;font-weight:700;white-space:nowrap}.pd-prepared{background:#dff5e9;color:#08793e}.pd-working{background:#e3efff;color:#175eba}.pd-todo{background:#ffeadc;color:#b94109}.pd-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-top:1px solid #e5edf7;margin-top:9px;padding:11px 14px;background:#fbfdff}.pd-history{flex:1;min-width:0}.pd-history summary{display:flex;align-items:center;gap:10px;min-height:35px;cursor:pointer;list-style:none;font-size:14px}.pd-history summary::-webkit-details-marker{display:none}.pd-chevron{font-size:24px;color:#2467ca;transition:transform .15s}.pd-history[open] .pd-chevron{transform:rotate(90deg)}.pd-history-items{display:flex;gap:8px;flex-wrap:wrap;padding:7px 0}.pd-history a{display:block;padding:7px 10px;background:#edf5ff;border:1px solid #dceafb;border-radius:6px;font-size:12px}.pd-history a span{display:block;font-size:11px;margin-top:3px}.pd-history p{font-size:12px;margin:0}.pd-close{max-width:45%;padding:0;margin:0}.pd-close>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:4px}.pd-close button{min-height:36px;padding:8px 15px;font-size:12px;white-space:nowrap;border-radius:6px}.pd-close small,.pd-close p{font-size:11px;max-width:200px;margin:0;line-height:1.4}.pd-prompt{padding:15px;color:#536779;font-size:13px}.pd-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}button:disabled[data-pd-action],button:disabled[data-pd-close]{opacity:.5;cursor:not-allowed}
@media(max-width:1500px){.pd-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pd-sedip{grid-template-columns:190px minmax(0,1fr);gap:10px}.pd-sedip h2{font-size:26px}.pd-sedip .pd-counts b{font-size:19px}.pd-sedip .pd-day{padding:14px 5px 12px}.pd-progress progress{width:95px}.pd-workbar{flex-wrap:wrap}.pd-filters{flex-basis:60%}.pd-topbar{align-items:flex-start}.pd-tools{justify-content:flex-end;max-width:360px}}
@media(max-width:1100px){.pd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pd-sedip{grid-template-columns:1fr}.pd-sedip>header{display:flex;justify-content:flex-start}.pd-sedip-pending{margin-left:auto;gap:15px}.pd-sedip .pd-day{min-height:110px}.pd-sedip .pd-date{font-size:12px}.pd-topbar{flex-wrap:wrap}.pd-tools{max-width:none}.pd-overview{flex-wrap:wrap}.pd-detail-head{gap:10px}.pd-summary{margin-left:auto}.pd-legend small{margin-left:0}}
@media(max-width:800px){.pd-sedip .pd-days{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.pd-sedip .pd-day{min-height:104px;padding-top:10px}.pd-topbar h2{font-size:23px}.pd-workbar{padding:9px}.pd-actions{justify-content:space-between;width:100%}.pd-actions button{white-space:normal}.pd-filters{flex-wrap:wrap;flex-basis:100%}.pd-filters .pd-customer-filter{flex-basis:100%}.pd-footer{flex-direction:column}.pd-close{max-width:none}.pd-detail-date{min-width:0}.pd-detail .table-wrap{margin:0 9px;max-width:calc(100% - 18px)}.pd-detail table{min-width:660px}.pd-detail th,.pd-detail td{padding-top:8px;padding-bottom:8px}.pd-day{min-height:30px}.pd-progress progress{width:90px}}
@media(max-width:450px){.pd-grid{grid-template-columns:1fr}.pd-sedip>header{flex-wrap:wrap}.pd-sedip-pending{margin:0;width:100%}.pd-summary{margin:0;flex:1}.pd-detail-head{padding:10px}.pd-detail-identity{border:0}.pd-detail-date{flex-basis:100%}.pd-tools{justify-content:flex-start}.pd-legend>span{padding:4px;font-size:11px}.pd-progress{width:100%}.pd-progress progress{flex:1}}
.pd-detail table{white-space:normal}.pd-detail th{letter-spacing:0;text-transform:none}.pd-detail td{font-size:12px}.pd-detail td:nth-child(4){max-width:410px}.pd-detail td:last-child{white-space:nowrap}.pd-topbar .p2-button{margin-right:0}
/* Keep the existing account controls inside this page at narrow widths. */
@media(max-width:700px){main:has(#pd-cards)>header{flex-wrap:wrap}main:has(#pd-cards)>header>.user-bar{margin-left:auto;flex-wrap:wrap}}

/* Today is an exceptional agent-only channel; future/Sedip tiles are unchanged. */
.pd-card:not(.pd-sedip) .pd-day.pd-today{border-color:#b4c9e5;background:#f0f5fc;margin-bottom:4px}.pd-today .pd-date b{font-size:11px;letter-spacing:.35px;color:#25598e}.pd-card:not(.pd-sedip) .pd-day.pd-today.pd-selected{border-color:#2476ff;background:#e4efff}
