#nav58{padding:6px 14px;margin:0;gap:6px;flex-wrap:wrap}
#tabs{max-width:100%;min-width:0;overflow-x:auto}
#tabs button{flex-shrink:0}
#nav58 button{min-height:32px;font-size:12px}
.navsep{height:20px;width:1px;background:#cbd2db;margin:0 6px}
.matrix58{border-collapse:collapse;width:100%;font-size:12px}
.matrix58 th,.matrix58 td{border:1px solid #d6dce3;padding:6px 8px;vertical-align:top}
.matrix58 th{background:#eef1f5;text-align:left;color:#17212b}
.matrix58 thead th{position:sticky;top:0;z-index:2}
.matrix58 tbody th:first-child{min-width:180px}
.matrix58 .cell58{background:transparent;border:0;min-width:64px;min-height:32px;color:#28516c}
.matrix58 .cell58:hover{background:#e2ebf4}
.dates58 tbody th:first-child,.graph58 tbody th:first-child{min-width:70px;position:sticky;left:0;z-index:1}
.dates58 td{min-width:142px}
.dates58 label{display:block;font-size:12px;color:#455361}
.dates58 input{display:block;width:135px;min-height:32px}
.graph58 td{min-width:155px}
.graph58 .pgm{height:5px;background:#e1e6ed;margin:5px 0}
.graph58 .pgm i{display:block;height:5px;background:#2c6683}
.overdue58{background:#d43945;color:white}
.overdue58 .mu{color:white}
.accepted58{background:#dcefdc}
.accqty58{background:#eff4f8;padding:12px;border-radius:8px}
.kpis58{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.kpis58 .v{font-size:22px}
#dialog58{width:min(1100px,94vw);max-height:90dvh;border:1px solid #aeb9c6;border-radius:12px;padding:20px;color:#17212b;background:#fff;overflow:auto}
#dialog58::backdrop{background:rgba(22,33,45,.4)}
.modalhead58{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.modalhead58 h3{margin:0}
#dialog58 p{font-size:13px;margin:10px 0}
#dialog58 .scroll{max-height:52dvh}
button:disabled{opacity:.45;cursor:not-allowed}
.pgrid59{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:8px}
.pcard59{position:relative;border:1px solid #d6dce3;border-radius:8px;overflow:hidden;background:#f4f6f9;cursor:pointer;display:flex;flex-direction:column}
.pcard59:hover{border-color:#28516c;box-shadow:0 3px 10px rgba(20,30,45,.12)}
.pcard59 .pimg59{width:100%;height:calc((100dvh - 460px) / 3 - 45px);min-height:60px;max-height:150px;object-fit:cover;display:block;background:#e5e9ef}
.pcard59 .pmeta59{padding:5px 7px;font-size:11.5px;line-height:1.25;background:#fff;border-top:1px solid #eef1f5;display:flex;justify-content:space-between;gap:4px;align-items:center}
.pcard59 .pcap59{padding:0 7px 5px;font-size:11.5px;color:#455361;background:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#lbox59{position:fixed;inset:0;z-index:9999;background:rgba(12,16,22,.92);color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:16px}
#lbox59 .lbtop59{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
#lbox59 .lbmid59{flex:1;display:flex;align-items:center;justify-content:center;min-height:0;position:relative;margin:10px 0}
#lbox59 .lbmid59 img{max-width:94vw;max-height:76dvh;object-fit:contain;border-radius:6px;box-shadow:0 8px 32px rgba(0,0,0,.5)}
#lbox59 .lbnav59{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:999px;width:44px;height:44px;font-size:20px;display:flex;align-items:center;justify-content:center}
#lbox59 .lbnav59:hover{background:rgba(255,255,255,.28)}
#lbox59 .lbbot59{background:rgba(22,28,36,.85);border:1px solid rgba(255,255,255,.18);border-radius:8px;padding:10px 14px;font-size:13px}
@media(max-width:760px){#nav58{padding:6px}#nav58 button{min-height:40px}#dialog58{padding:12px;width:96vw}.kpis58{grid-template-columns:repeat(2,minmax(0,1fr))}.kpis58 .v{font-size:18px}.accqty58 input{max-width:100%}.frm>label{max-width:100%}.pgrid59{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.pcard59 .pimg59{height:110px}}
