:root{--bg:#f5f7fb;--card:#fff;--text:#172033;--muted:#6b7280;--nav:#111827;--blue:#2563eb;--green:#16a34a;--amber:#d97706;--red:#dc2626;--border:#e5e7eb}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}.app{display:flex;min-height:100vh}.sidebar{width:230px;background:var(--nav);color:#fff;padding:18px 14px;position:fixed;inset:0 auto 0 0;z-index:5}.brand{font-weight:800;font-size:20px;margin:0 8px 24px}.brand span{margin-left:8px}.sidebar button{width:100%;border:0;background:transparent;color:#cbd5e1;padding:12px 14px;text-align:left;border-radius:9px;margin:3px 0;cursor:pointer}.sidebar button.active,.sidebar button:hover{background:#1d4ed8;color:#fff}.sidefoot{position:absolute;bottom:18px;left:22px;color:#94a3b8;line-height:1.5}main{margin-left:230px;width:calc(100% - 230px)}header{height:64px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:14px;padding:0 22px;position:sticky;top:0;z-index:4}header input{flex:1;max-width:620px;background:#f3f4f6;border:1px solid var(--border);border-radius:9px;padding:10px 12px}.user{margin-left:auto;font-weight:600}.iconbtn{display:none}.contenthead{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:18px}.contenthead h1{margin:0 0 5px}.muted{color:var(--muted);font-size:13px}.pad{padding:24px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:16px;box-shadow:0 2px 8px #1118270a}.metric b{display:block;font-size:28px;margin-top:8px}.metric .tag{font-size:12px;color:var(--muted)}.two{display:grid;grid-template-columns:1.4fr 1fr;gap:14px;margin-top:14px}.btn{border:0;border-radius:8px;padding:10px 13px;font-weight:700;cursor:pointer}.primary{background:var(--blue);color:#fff}.success{background:var(--green);color:white}.danger{background:var(--red);color:white}.ghost{background:#eef2ff;color:#1d4ed8}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.toolbar input,.toolbar select,.form input,.form select,.form textarea{border:1px solid var(--border);border-radius:8px;padding:10px;background:#fff}.toolbar input{min-width:250px}.tablewrap{overflow:auto;background:#fff;border:1px solid var(--border);border-radius:12px}table{border-collapse:collapse;width:100%;min-width:760px}th,td{padding:12px 13px;border-bottom:1px solid #eef0f3;text-align:left;font-size:13px}th{background:#f8fafc;font-size:12px;color:#475569}.badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700}.ok{background:#dcfce7;color:#166534}.warn{background:#fef3c7;color:#92400e}.bad{background:#fee2e2;color:#991b1b}.blue{background:#dbeafe;color:#1e40af}.form{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.form .full{grid-column:1/-1}.form label{font-size:12px;font-weight:700;color:#475569;display:flex;flex-direction:column;gap:6px}.tabs{display:flex;gap:8px;margin:14px 0}.tabs button{border:0;background:#eef2f7;padding:9px 12px;border-radius:8px;cursor:pointer}.tabs button.active{background:#dbeafe;color:#1d4ed8;font-weight:700}.sitehero{display:grid;grid-template-columns:260px 1fr;gap:16px}.photo{height:170px;border-radius:12px;background:linear-gradient(135deg,#0f172a,#334155);display:grid;place-items:center;color:#cbd5e1;font-weight:700}.alert{padding:10px;border-radius:9px;background:#fff7ed;color:#9a3412;font-size:13px;margin:8px 0}.chartbar{height:9px;background:#e5e7eb;border-radius:10px;overflow:hidden;margin:8px 0}.chartbar>i{display:block;height:100%;background:#2563eb;border-radius:10px}.modal{position:fixed;inset:0;background:#0007;display:grid;place-items:center;z-index:20;padding:20px}.modal.hidden{display:none}.modalbox{background:#fff;border-radius:14px;max-width:860px;width:100%;max-height:90vh;overflow:auto;padding:22px;position:relative}.close{position:absolute;right:12px;top:10px;border:0;background:#eee;border-radius:50%;width:30px;height:30px;font-size:20px;cursor:pointer}.empty{padding:28px;text-align:center;color:var(--muted)}@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.iconbtn{display:block}main{margin-left:0;width:100%}.grid{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}.sitehero{grid-template-columns:1fr}.form{grid-template-columns:1fr}.form .full{grid-column:auto}}@media(max-width:560px){.grid{grid-template-columns:1fr}.pad{padding:14px}.toolbar input{min-width:100%;width:100%}.contenthead{align-items:flex-start;flex-direction:column}}
.linehead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.outrow{display:grid;grid-template-columns:2fr 1.1fr 1.2fr .65fr .7fr auto;gap:9px;align-items:end;background:#f8fafc;border:1px solid var(--border);border-radius:10px;padding:10px;margin:9px 0}.outrow label{min-width:0}.rowremove{height:38px}.actionrow{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:14px}.docmeta{background:#f8fafc;border:1px solid var(--border);padding:12px;border-radius:10px;line-height:1.8;margin:12px 0}@media(max-width:900px){.outrow{grid-template-columns:1fr 1fr}.rowremove{grid-column:1/-1}.linehead{align-items:flex-start;flex-direction:column}}

.buildtag{font-size:11px;font-weight:800;letter-spacing:.04em;color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;padding:6px 10px;white-space:nowrap}
.site-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.site-title-row h2{margin:0 0 4px}.sitephoto{width:100%;height:190px;object-fit:cover;border-radius:12px;border:1px solid var(--border);display:block}.photo-btn{width:100%;margin-top:8px}.siteinfo p{margin:8px 0}.coordbox{margin-top:12px;padding:12px;border:1px solid var(--border);background:#f8fafc;border-radius:10px;line-height:1.7}.coordactions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.site-tabs{border-bottom:1px solid var(--border);padding-bottom:10px}.site-tabs button{transition:.15s}.section-title{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:14px 0 10px}.section-title h3{margin:0}@media(max-width:700px){.site-title-row,.section-title{align-items:flex-start;flex-direction:column}.coordactions .btn{flex:1}.site-tabs{overflow:auto;white-space:nowrap}}
.install-banner{display:grid;grid-template-columns:auto 1fr auto 1fr auto 1fr;gap:8px 12px;align-items:center;background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:12px 14px;margin-bottom:14px}.install-banner span{font-size:11px;color:#64748b;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.install-banner b{font-size:13px}.gallery-main{border-radius:12px;overflow:hidden;background:#0f172a}.gallery-thumbs{display:flex;gap:7px;overflow:auto;margin-top:8px;padding-bottom:2px}.gallery-thumbs .thumb{width:58px;height:46px;border:2px solid transparent;border-radius:8px;padding:0;background:#fff;overflow:hidden;cursor:pointer;flex:0 0 auto}.gallery-thumbs .thumb.active{border-color:#2563eb}.gallery-thumbs img{width:100%;height:100%;object-fit:cover;display:block}.gallery-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.gallery-actions .btn{flex:1}.maptools{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;flex-wrap:wrap;background:#f8fafc;border:1px solid var(--border);padding:10px;border-radius:10px}.vendor-note{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:11px;color:#1e3a8a;font-size:13px;line-height:1.5}
@media(max-width:900px){.install-banner{grid-template-columns:1fr 1fr}.maptools{align-items:stretch}.maptools .btn{flex:1}}
@media(max-width:560px){.install-banner{grid-template-columns:1fr}.gallery-actions .btn{width:100%;flex:auto}}

/* V1.5 - vertical location detail + coordinate picker */
.form-stack{display:flex;flex-direction:column;gap:13px}.form-stack label{width:100%}.form-note{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;padding:11px 12px;border-radius:10px;margin-bottom:14px;font-size:13px;line-height:1.5}.coordinate-section{border:1px solid var(--border);background:#f8fafc;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:10px}.coordinate-head{display:flex;justify-content:space-between;gap:10px}.coord-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.parsed-ok{border-color:#22c55e!important;background:#f0fdf4!important}.sitehero-v15{grid-template-columns:300px 1fr;align-items:start}.site-detail-list{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}.detail-row{display:grid;grid-template-columns:220px 1fr;gap:16px;padding:12px 14px;border-bottom:1px solid #eef0f3;align-items:start}.detail-row:last-child{border-bottom:0}.detail-label{font-size:12px;font-weight:800;color:#64748b}.detail-value{font-size:13px;color:#172033;line-height:1.55}.detail-row-coord .coordactions{margin-top:8px}.map-picker-overlay{position:fixed;inset:0;background:#0009;z-index:100;display:grid;place-items:center;padding:20px}.map-picker-box{background:#fff;border-radius:16px;width:min(900px,96vw);overflow:hidden;box-shadow:0 20px 70px #0006}.map-picker-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:16px 18px;border-bottom:1px solid var(--border)}.close-map-picker{border:0;background:#eef2f7;border-radius:50%;width:34px;height:34px;font-size:22px;cursor:pointer}.map-picker-box #mapPickerCanvas{height:460px;background:#e5e7eb}.picker-coord{padding:11px 18px;background:#f8fafc;border-top:1px solid var(--border);font-size:13px}.map-picker-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 18px}.map-load-error{height:100%;display:grid;place-items:center;color:#64748b;padding:30px;text-align:center}
@media(max-width:760px){.coord-grid{grid-template-columns:1fr}.sitehero-v15{grid-template-columns:1fr}.detail-row{grid-template-columns:1fr;gap:4px}.map-picker-box #mapPickerCanvas{height:360px}.map-picker-actions{flex-direction:column}.map-picker-actions .btn{width:100%}}

/* V1.6 - installed hardware reference + guided outbound replacement */
.installed-hardware-section{border:1px solid var(--border);background:#fff;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:10px}.install-hw-row{display:grid;grid-template-columns:2.1fr 1.2fr .7fr 1.5fr auto;gap:9px;align-items:end;padding:10px;border:1px solid var(--border);border-radius:10px;background:#f8fafc}.install-hw-row label{min-width:0}.outrow-v16{grid-template-columns:1.5fr 1.8fr 1.1fr 1fr .55fr .65fr auto}.outrow-v16 .target-hardware-label{min-width:210px}@media(max-width:1050px){.install-hw-row,.outrow-v16{grid-template-columns:1fr 1fr}.install-hw-row .btn,.outrow-v16 .btn{grid-column:1/-1}}@media(max-width:620px){.install-hw-row,.outrow-v16{grid-template-columns:1fr}.install-hw-row .btn,.outrow-v16 .btn{grid-column:auto}}

/* V1.7 - operational dashboard */
.quick-actions{display:flex;gap:9px;flex-wrap:wrap;margin:-4px 0 14px}.dashboard-metrics{grid-template-columns:repeat(5,1fr)}.metric.clickable{cursor:pointer;transition:.16s;position:relative;overflow:hidden}.metric.clickable:hover{transform:translateY(-2px);box-shadow:0 8px 24px #11182712;border-color:#cbd5e1}.metric small{display:block;margin-top:7px;color:var(--muted);font-size:11px}.metric-alert:before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:#dc2626}.dashboard-two{display:grid;grid-template-columns:1.65fr 1fr;gap:14px;margin-top:14px}.dashboard-two.equal{grid-template-columns:1fr 1fr}.card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}.card-title-row h3{margin:0 0 4px}.card-title-row p{margin:0;color:var(--muted);font-size:12px}.svg-wrap{overflow-x:auto;padding-top:6px}.svg-wrap svg{width:100%;min-width:650px;height:240px}.axis-line{stroke:#dbe2ea;stroke-width:1}.line-in,.line-out{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.line-in{stroke:#2563eb}.line-out{stroke:#f97316}.dot-in{fill:#2563eb}.dot-out{fill:#f97316}.svg-label{font-size:10px;fill:#64748b}.chart-legend{display:flex;gap:18px;justify-content:center;font-size:11px;color:#64748b;margin-top:0}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{width:18px;height:3px;border-radius:3px;display:inline-block}.legend-in{background:#2563eb}.legend-out{background:#f97316}.dash-bars{display:flex;flex-direction:column;gap:11px;margin-top:12px}.dash-bar-row{display:grid;grid-template-columns:24px minmax(115px,1.3fr) 2fr 42px;align-items:center;gap:9px;width:100%;border:0;background:transparent;padding:0;text-align:left;color:inherit}.dash-bar-row[onclick]{cursor:pointer}.bar-rank{width:22px;height:22px;border-radius:7px;background:#f1f5f9;display:grid;place-items:center;font-size:10px;font-weight:800;color:#64748b}.bar-name{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar-track{height:9px;background:#eef2f7;border-radius:999px;overflow:hidden}.bar-track i{display:block;height:100%;background:#2563eb;border-radius:999px}.dash-bar-row b{text-align:right;font-size:12px}.attention-row{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #eef0f3}.attention-row:last-child{border-bottom:0}.attention-icon{width:30px;height:30px;border-radius:9px;background:#fff7ed;display:grid;place-items:center}.attention-row b,.activity-row b{display:block;font-size:12px}.attention-row small,.activity-row small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.mini-link{border:0;background:#eff6ff;color:#1d4ed8;border-radius:7px;padding:6px 8px;font-weight:700;font-size:10px;cursor:pointer}.dashboard-recent{margin-top:14px}.activity-row{display:grid;grid-template-columns:14px 1fr;gap:9px;align-items:start;padding:9px 0;border-bottom:1px solid #eef0f3}.activity-row:last-child{border-bottom:0}.activity-dot{width:9px;height:9px;border-radius:50%;margin-top:4px}.activity-dot.in{background:#2563eb}.activity-dot.out{background:#f97316}.empty.compact{padding:18px 4px}
@media(max-width:1180px){.dashboard-metrics{grid-template-columns:repeat(3,1fr)}.dashboard-two,.dashboard-two.equal{grid-template-columns:1fr}}
@media(max-width:700px){.dashboard-metrics{grid-template-columns:1fr 1fr}.quick-actions .btn{flex:1}.dash-bar-row{grid-template-columns:24px 1fr 42px}.bar-track{grid-column:2/4}.svg-wrap svg{min-width:620px}}
@media(max-width:480px){.dashboard-metrics{grid-template-columns:1fr}}


/* V1.8 - technician dispatch, reconciliation, service return */
.dashboard-metrics{grid-template-columns:repeat(6,1fr)}.metric-warn:before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:#d97706}.workflow-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 14px}.wf{background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px;position:relative}.wf b{display:block;font-size:12px}.wf small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.wf.active{border-color:#bfdbfe;background:#eff6ff}.dispatch-row{display:grid;grid-template-columns:2fr 2fr 1fr 1fr .8fr auto;gap:9px;align-items:end;background:#f8fafc;border:1px solid var(--border);border-radius:10px;padding:10px;margin:9px 0}.dispatch-row label{min-width:0}.dispatch-row input,.dispatch-row select{width:100%}.recon-table input,.recon-table select{border:1px solid var(--border);border-radius:7px;padding:7px;background:#fff}.recon-table select:disabled{opacity:.55}.success-summary{border:1px solid #bbf7d0;background:#f0fdf4;padding:16px;border-radius:12px}.recon-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.recon-summary-grid>div{background:#fff;border:1px solid #dcfce7;border-radius:10px;padding:12px}.recon-summary-grid span{font-size:10px;color:#64748b;display:block}.recon-summary-grid b{font-size:22px;display:block;margin-top:5px}.service-summary,.report-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.report-metrics{grid-template-columns:repeat(4,1fr)}.service-summary .card span,.report-metrics .card span{font-size:11px;color:var(--muted)}.service-summary .card b,.report-metrics .card b{display:block;font-size:24px;margin-top:5px}
@media(max-width:1200px){.dashboard-metrics{grid-template-columns:repeat(3,1fr)}.dispatch-row{grid-template-columns:1fr 1fr}.dispatch-row .rowremove{grid-column:1/-1}}
@media(max-width:760px){.workflow-strip{grid-template-columns:1fr 1fr}.recon-summary-grid,.service-summary,.report-metrics{grid-template-columns:1fr 1fr}.dispatch-row{grid-template-columns:1fr}.dispatch-row .rowremove{grid-column:auto}}
@media(max-width:480px){.workflow-strip,.recon-summary-grid,.service-summary,.report-metrics{grid-template-columns:1fr}}

/* V1.15 - tidy location action buttons */
.tablewrap td:last-child{vertical-align:middle}
.tablewrap td:last-child .btn{margin:2px}
.location-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.location-actions .btn{min-width:76px;justify-content:center;margin:0!important}

/* ===== PTC GROUP V1.20.1 — CSS-ONLY UI LAYER, V1.16 LOGIC UNTOUCHED ===== */
.sidebar{
 width:250px!important;background:linear-gradient(180deg,#08182d,#0d223b)!important;
 padding:18px 14px!important;display:flex!important;flex-direction:column!important;
 height:100vh!important;box-sizing:border-box!important;overflow:hidden!important
}
.brand{font-size:21px!important;margin:0 8px 18px!important;flex:0 0 auto!important;color:#fff!important}
.sidebar nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;padding-right:4px!important}
.sidebar nav::-webkit-scrollbar{width:5px}.sidebar nav::-webkit-scrollbar-thumb{background:#314a69;border-radius:8px}
.sidebar button{min-height:45px!important;border-radius:10px!important;margin:3px 0!important;color:#c7d2e3!important;font-weight:650!important}
.sidebar button:hover{background:rgba(255,255,255,.06)!important;color:#fff!important}
.sidebar button.active{background:linear-gradient(135deg,#2878ff,#175fe1)!important;color:#fff!important;box-shadow:0 7px 18px rgba(31,109,238,.25)}
.sidefoot{position:static!important;flex:0 0 auto!important;padding:12px 8px 0!important;margin-top:8px!important;border-top:1px solid rgba(255,255,255,.08)!important;color:#8fa3bc!important}
main{margin-left:250px!important;width:calc(100% - 250px)!important}
header{background:linear-gradient(90deg,#091a31,#102742)!important;border:0!important;box-shadow:0 3px 14px rgba(8,24,45,.16)!important}
header input{background:rgba(255,255,255,.10)!important;border-color:rgba(255,255,255,.15)!important;color:#fff!important}
header input::placeholder{color:#c7d3e4!important}.user{color:#fff!important}
.card,.tablewrap{box-shadow:0 4px 14px rgba(15,35,65,.05)}
@media(max-width:800px){main{margin-left:0!important;width:100%!important}}

/* ==========================================================
   PTC GROUP V1.21 PREMIUM UI
   Core logic remains V1.16 / app.js untouched
   ========================================================== */

:root{
  --ptc-navy:#08172a;
  --ptc-navy2:#0d223a;
  --ptc-blue:#226ff2;
  --ptc-blue2:#1559d4;
  --ptc-bg:#f4f7fb;
  --ptc-card:#ffffff;
  --ptc-text:#17263b;
  --ptc-muted:#708096;
  --ptc-border:#e3e9f1;
  --ptc-shadow:0 8px 24px rgba(17,38,70,.07);
}

/* PAGE */
body{
  background:
    radial-gradient(circle at top right,rgba(34,111,242,.055),transparent 32%),
    var(--ptc-bg)!important;
  color:var(--ptc-text)!important;
}

/* SIDEBAR */
.sidebar{
  width:252px!important;
  background:linear-gradient(180deg,var(--ptc-navy) 0%,var(--ptc-navy2) 100%)!important;
  border-right:1px solid rgba(255,255,255,.04)!important;
  box-shadow:10px 0 30px rgba(4,18,36,.09)!important;
  padding:16px 13px 14px!important;
}
.brand{
  min-height:66px!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  margin:0 8px 16px!important;
  padding:0 8px 14px!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  font-size:22px!important;
  letter-spacing:.2px!important;
}
.brand span{margin-left:0!important}
.sidebar nav{
  padding:2px 1px 10px!important;
}
.sidebar button{
  position:relative!important;
  min-height:46px!important;
  margin:3px 0!important;
  padding:0 14px!important;
  border-radius:11px!important;
  color:#b8c7da!important;
  font-size:13.5px!important;
  font-weight:650!important;
  letter-spacing:.05px!important;
  transition:all .18s ease!important;
}
.sidebar button:hover{
  color:#fff!important;
  background:rgba(255,255,255,.07)!important;
  transform:translateX(2px)!important;
}
.sidebar button.active{
  color:#fff!important;
  background:linear-gradient(135deg,#2d7cff 0%,#145edb 100%)!important;
  box-shadow:0 8px 20px rgba(21,94,219,.28)!important;
}
.sidebar button.active:before{
  content:""!important;
  position:absolute!important;
  left:-7px!important;
  top:12px!important;
  width:3px!important;
  height:22px!important;
  border-radius:5px!important;
  background:#79adff!important;
}
.sidefoot{
  font-size:11.5px!important;
  line-height:1.5!important;
  color:#8094ad!important;
}
.sidefoot b{
  display:inline-block!important;
  margin-top:3px!important;
  color:#e9f1fb!important;
  font-size:12px!important;
}
.sidefoot small{
  color:#7187a2!important;
}

/* MAIN + HEADER */
main{
  margin-left:252px!important;
  width:calc(100% - 252px)!important;
}
header{
  height:70px!important;
  padding:0 24px!important;
  background:rgba(255,255,255,.96)!important;
  backdrop-filter:blur(10px)!important;
  border-bottom:1px solid #e4eaf2!important;
  box-shadow:0 3px 12px rgba(16,36,68,.045)!important;
}
header input{
  max-width:660px!important;
  height:41px!important;
  box-sizing:border-box!important;
  background:#f6f8fb!important;
  border:1px solid #e0e7f0!important;
  border-radius:11px!important;
  padding:0 14px!important;
  color:#23344e!important;
  outline:none!important;
  transition:.18s ease!important;
}
header input:focus{
  background:#fff!important;
  border-color:#8db6ff!important;
  box-shadow:0 0 0 4px rgba(34,111,242,.08)!important;
}
header input::placeholder{color:#93a0b2!important}
.user{
  color:#26384f!important;
  background:#f6f8fb!important;
  border:1px solid #e3e9f1!important;
  border-radius:10px!important;
  padding:9px 12px!important;
}

/* CONTENT */
.pad{padding:26px 28px 34px!important}
.contenthead{
  margin-bottom:20px!important;
  padding-bottom:2px!important;
}
.contenthead h1{
  color:#13223a!important;
  font-size:28px!important;
  letter-spacing:-.25px!important;
}
.contenthead .muted,
.muted{
  color:#738197!important;
}

/* CARDS */
.card{
  background:var(--ptc-card)!important;
  border:1px solid var(--ptc-border)!important;
  border-radius:16px!important;
  box-shadow:var(--ptc-shadow)!important;
}
.card:hover{
  box-shadow:0 11px 28px rgba(17,38,70,.09)!important;
}
.metric{
  position:relative!important;
  overflow:hidden!important;
  min-height:104px!important;
}
.metric:after{
  content:""!important;
  position:absolute!important;
  right:-18px!important;
  top:-18px!important;
  width:72px!important;
  height:72px!important;
  border-radius:50%!important;
  background:rgba(34,111,242,.045)!important;
}
.metric b{
  color:#13213a!important;
  font-size:30px!important;
  letter-spacing:-.5px!important;
}
.metric .tag{
  color:#77869a!important;
}

/* BUTTONS */
.btn{
  min-height:39px!important;
  border-radius:9px!important;
  padding:9px 14px!important;
  font-weight:700!important;
  transition:all .16s ease!important;
  box-shadow:none!important;
}
.btn:hover{
  transform:translateY(-1px)!important;
  filter:brightness(.985)!important;
}
.primary{
  background:linear-gradient(135deg,var(--ptc-blue),var(--ptc-blue2))!important;
  color:#fff!important;
  box-shadow:0 5px 13px rgba(34,111,242,.19)!important;
}
.success{
  background:linear-gradient(135deg,#18ae71,#12945f)!important;
  color:#fff!important;
}
.danger{
  background:linear-gradient(135deg,#ef5a62,#d9424a)!important;
  color:#fff!important;
}
.ghost{
  background:#eef4ff!important;
  color:#1e63d7!important;
  border:1px solid #dbe8ff!important;
}

/* TOOLBAR + INPUTS */
.toolbar{
  background:#fff!important;
  border:1px solid var(--ptc-border)!important;
  border-radius:13px!important;
  padding:11px!important;
  margin:12px 0 14px!important;
  box-shadow:0 4px 13px rgba(17,38,70,.035)!important;
}
.toolbar input,.toolbar select,
.form input,.form select,.form textarea{
  min-height:40px!important;
  box-sizing:border-box!important;
  border:1px solid #dfe6ef!important;
  border-radius:9px!important;
  background:#fbfcfe!important;
  color:#22344e!important;
  outline:none!important;
  transition:.15s ease!important;
}
.toolbar input:focus,.toolbar select:focus,
.form input:focus,.form select:focus,.form textarea:focus{
  background:#fff!important;
  border-color:#8bb4fb!important;
  box-shadow:0 0 0 3px rgba(34,111,242,.07)!important;
}
.form label{
  color:#4c5b70!important;
  font-weight:700!important;
  font-size:12px!important;
}

/* TABLES */
.tablewrap{
  background:#fff!important;
  border:1px solid var(--ptc-border)!important;
  border-radius:15px!important;
  overflow:auto!important;
  box-shadow:var(--ptc-shadow)!important;
}
table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
th{
  background:#f5f8fc!important;
  color:#42536b!important;
  font-size:11.5px!important;
  text-transform:uppercase!important;
  letter-spacing:.3px!important;
  font-weight:800!important;
  border-bottom:1px solid #dfe6ee!important;
  padding:12px 11px!important;
  white-space:nowrap!important;
}
td{
  color:#34455d!important;
  border-bottom:1px solid #edf1f5!important;
  padding:11px!important;
  vertical-align:middle!important;
}
tbody tr{
  transition:background .13s ease!important;
}
tbody tr:hover{
  background:#f9fbfe!important;
}
tbody tr:last-child td{border-bottom:0!important}

/* BADGES / STATUS */
.badge,.pill,.tag{
  border-radius:999px!important;
  padding:5px 9px!important;
  font-weight:700!important;
}

/* FORMS */
.form{
  background:#fff!important;
  border:1px solid var(--ptc-border)!important;
  border-radius:15px!important;
  padding:18px!important;
  box-shadow:var(--ptc-shadow)!important;
}
.form textarea{min-height:90px!important}

/* MODALS */
.modal{
  backdrop-filter:blur(3px)!important;
  background:rgba(7,19,37,.48)!important;
}
.modal .box,.modalbox{
  border-radius:17px!important;
  border:1px solid #e3e9f1!important;
  box-shadow:0 22px 55px rgba(6,23,46,.18)!important;
}

/* TABS */
.tabs{
  gap:7px!important;
  border-bottom:1px solid #e3e9f1!important;
}
.tabs button{
  border-radius:9px 9px 0 0!important;
  font-weight:700!important;
}
.tabs button.active{
  color:#1e68e5!important;
  background:#eef5ff!important;
}

/* SITE DETAIL / PANELS */
.two{
  gap:16px!important;
}
.section,.panel{
  border-radius:14px!important;
}
.empty{
  color:#8b98aa!important;
  background:#fafbfd!important;
  border-radius:11px!important;
  padding:18px!important;
}

/* SCROLLBARS */
*{
  scrollbar-width:thin;
  scrollbar-color:#c2ccd9 transparent;
}
*::-webkit-scrollbar{width:7px;height:7px}
*::-webkit-scrollbar-thumb{background:#c2ccd9;border-radius:9px}
*::-webkit-scrollbar-track{background:transparent}

/* RESPONSIVE */
@media(max-width:1100px){
  .grid{grid-template-columns:repeat(2,1fr)!important}
}
@media(max-width:800px){
  main{margin-left:0!important;width:100%!important}
  .pad{padding:18px!important}
  header{padding:0 14px!important}
  .grid{grid-template-columns:1fr!important}
  .two{grid-template-columns:1fr!important}
}

/* ==================================================
   V1.22.1 - ACTIVE DASHBOARD FIX
   ================================================== */
.dash221-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:17px}
.dash221-head h1{font-size:34px;line-height:1;margin:5px 0 8px;color:#12233e;letter-spacing:-.7px}
.dash221-head p{margin:0;color:#718096;font-size:13px}
.dash221-kicker{font-size:9px;letter-spacing:1.15px;color:#2871e7;font-weight:900}
.dash221-date{display:flex;gap:11px;align-items:center;min-width:240px;background:#fff;border:1px solid #e1e8f1;border-radius:13px;padding:11px 14px;box-shadow:0 5px 15px rgba(17,38,70,.05)}
.dash221-date>span{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#edf4ff;color:#1d6ce9}
.dash221-date b,.dash221-date small{display:block}.dash221-date b{font-size:12px}.dash221-date small{color:#8794a4;margin-top:2px;font-size:10px}

.dash221-hero{min-height:265px;display:grid;grid-template-columns:55% 45%;border:1px solid #dbe5f1;border-radius:18px;overflow:hidden;background:#f5f9ff;box-shadow:0 9px 25px rgba(18,45,82,.075);margin-bottom:15px}
.dash221-hero-copy{padding:27px 30px;background:linear-gradient(100deg,#fbfdff 0%,#edf5ff 100%);position:relative;z-index:2}
.dash221-badge{display:inline-block;padding:6px 9px;border-radius:999px;background:#e7f1ff;border:1px solid #d3e4ff;color:#1767df;font-size:9px;font-weight:900;letter-spacing:.65px}
.dash221-hero h2{font-size:30px;line-height:1.16;letter-spacing:-.7px;color:#132741;margin:14px 0 11px}.dash221-hero h2 strong{color:#176ce9}
.dash221-hero p{max-width:590px;color:#5c6d82;font-size:13.5px;line-height:1.55;margin:0}
.dash221-tags{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.dash221-tags span{background:#fff;border:1px solid #e0e7ef;border-radius:9px;padding:7px 10px;font-size:10px;font-weight:750;color:#405169}
.dash221-actions{display:flex;gap:7px;flex-wrap:wrap}.dash221-actions .btn{min-height:35px!important;font-size:11px!important;padding:7px 10px!important}
.dash221-hero-visual{position:relative;background:linear-gradient(90deg,rgba(7,22,42,.04),rgba(7,22,42,.22)),url('ptc-hero.png') center/cover no-repeat}
.dash221-hero-visual:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#edf5ff 0%,rgba(237,245,255,0) 17%)}
.dash221-floating{position:absolute;right:16px;bottom:16px;z-index:2;display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap;max-width:245px}
.dash221-floating span{background:rgba(7,22,42,.74);color:#fff;border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(6px);border-radius:999px;padding:5px 7px;font-size:8px;letter-spacing:.35px}

.dash221-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:15px}
.dash221-kpis button{border:1px solid #e1e8f0;background:#fff;border-radius:14px;min-height:96px;display:flex;align-items:center;gap:10px;text-align:left;padding:12px 10px;cursor:pointer;box-shadow:0 5px 15px rgba(17,38,70,.045);transition:.17s ease}
.dash221-kpis button:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(17,38,70,.08)}
.dash221-kpis button.warn{border-color:#f2d6d8}
.dash221-kpis i{font-style:normal;width:40px;height:40px;display:grid;place-items:center;border-radius:10px;flex:0 0 40px;font-size:18px}.dash221-kpis i.blue{background:#eaf2ff;color:#2472f2}.dash221-kpis i.green{background:#e9f9f0;color:#17a46a}.dash221-kpis i.orange{background:#fff2dc;color:#f09a00}.dash221-kpis i.red{background:#ffe9eb;color:#e84a55}.dash221-kpis i.amber{background:#fff4e4;color:#dc8a00}.dash221-kpis i.purple{background:#f4eaff;color:#8944ca}
.dash221-kpis label{display:block;color:#56667b;font-size:9.7px;font-weight:850}.dash221-kpis b{display:block;color:#102039;font-size:24px;line-height:1.05;margin:3px 0}.dash221-kpis small{display:block;color:#8995a5;font-size:8.8px}

.dash221-two{display:grid;grid-template-columns:1.5fr .9fr;gap:14px;margin-bottom:14px}.dash221-two.equal{grid-template-columns:1fr 1fr}
.dash221-panel{padding:16px!important;border-radius:16px!important}
.dash221-label{display:inline-block;background:#edf4ff;color:#1e69df;border-radius:999px;padding:4px 7px;font-size:8px;font-weight:900;letter-spacing:.6px;margin-bottom:5px}.dash221-label.red{background:#fff0f1;color:#df4250}
.dash221-alertcount{min-width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#fff0f1;color:#df4250;font-weight:900}
.dash221-visit{padding:7px 10px;border:1px solid #dce7f8;background:#eef5ff;color:#1e64d6;border-radius:999px;font-size:10px;font-weight:800}
.dash221-activity{padding:10px 3px!important}

@media(max-width:1350px){.dash221-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1050px){.dash221-hero{grid-template-columns:1fr}.dash221-hero-visual{min-height:220px}.dash221-two,.dash221-two.equal{grid-template-columns:1fr}}
@media(max-width:700px){.dash221-head{flex-direction:column}.dash221-date{width:100%;box-sizing:border-box}.dash221-hero-copy{padding:21px}.dash221-hero h2{font-size:24px}.dash221-kpis{grid-template-columns:1fr}}

/* ============================================================
   PTC GROUP V2.0 ENTERPRISE UI
   UI-only layer. Core business functions remain V1.22.1/V1.16.
   ============================================================ */

.enterprise-header{
  height:auto!important;
  min-height:108px!important;
  padding:0!important;
  display:block!important;
  position:sticky!important;
  top:0!important;
  z-index:12!important;
  background:
    linear-gradient(100deg,rgba(6,25,50,.98),rgba(8,39,75,.97) 58%,rgba(7,29,57,.98))!important;
  border-bottom:1px solid rgba(72,154,255,.34)!important;
  box-shadow:0 7px 24px rgba(4,20,39,.16)!important;
  overflow:hidden!important;
}
.enterprise-header:before{
  content:"";
  position:absolute;inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 72% -80%,rgba(41,133,255,.28),transparent 42%),
    linear-gradient(115deg,transparent 0 45%,rgba(35,119,239,.07) 45% 46%,transparent 46% 100%);
}
.enterprise-toprow{
  position:relative;z-index:1;
  height:62px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:0 18px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.enterprise-menu{
  flex:0 0 auto!important;
  color:#ddebff!important;
  background:rgba(255,255,255,.075)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:9px!important;
}
.enterprise-mini-brand{
  display:flex;align-items:center;gap:9px;
  min-width:142px;
  color:#fff;
  padding-right:12px;
  border-right:1px solid rgba(255,255,255,.10);
}
.enterprise-brandmark{
  width:31px;height:31px;border-radius:9px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#2991ff,#1556d9);
  box-shadow:0 0 17px rgba(38,132,255,.34);
  color:#fff;font-size:14px;
}
.enterprise-mini-brand b{display:block;font-size:12px;letter-spacing:.45px}
.enterprise-mini-brand small{display:block;margin-top:1px;color:#7fa0c8;font-size:8.5px;letter-spacing:.35px}

.welcome-marquee{
  position:relative;
  flex:1 1 auto;
  min-width:0;
  height:38px;
  overflow:hidden;
  border:1px solid rgba(49,139,255,.37);
  border-radius:11px;
  background:linear-gradient(90deg,rgba(12,62,118,.38),rgba(7,39,78,.38));
  box-shadow:inset 0 0 18px rgba(24,110,231,.08);
}
.welcome-marquee:before,.welcome-marquee:after{
  content:"";position:absolute;top:0;bottom:0;width:45px;z-index:2;pointer-events:none
}
.welcome-marquee:before{left:0;background:linear-gradient(90deg,#0b315d,transparent)}
.welcome-marquee:after{right:0;background:linear-gradient(270deg,#0a2b52,transparent)}
.welcome-track{
  width:max-content;
  height:100%;
  display:flex;
  align-items:center;
  animation:ptcWelcomeTicker 30s linear infinite;
  will-change:transform;
}
.welcome-marquee:hover .welcome-track{animation-play-state:paused}
.welcome-set{
  display:flex;align-items:center;gap:15px;
  white-space:nowrap;
  padding-right:48px;
  color:#cbdcf3;
  font-size:11px;
}
.welcome-set strong{
  color:#ffe74f;
  font-size:11.5px;
  font-weight:800;
  text-shadow:0 0 10px rgba(255,221,49,.20);
}
.welcome-set i{font-style:normal;color:#4f9aff}
.welcome-set .speaker{
  width:25px;height:25px;border-radius:50%;
  display:grid;place-items:center;
  margin-left:12px;
  background:#1767df;
  color:#fff;
  box-shadow:0 0 13px rgba(37,118,255,.35);
}
@keyframes ptcWelcomeTicker{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

.enterprise-clock{
  flex:0 0 142px;
  min-width:142px;
  color:#fff;
  padding:2px 13px;
  border-left:1px solid rgba(255,255,255,.10);
  border-right:1px solid rgba(255,255,255,.10);
}
.clock-date{
  color:#9eb6d4;font-size:8.8px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.clock-time{
  margin-top:2px;color:#fff;font-size:16px;font-weight:850;letter-spacing:.8px;
  font-variant-numeric:tabular-nums
}

.enterprise-user{
  margin-left:0!important;
  display:flex!important;align-items:center;gap:8px!important;
  color:#fff!important;background:transparent!important;
  border:0!important;padding:0!important;
  min-width:150px;
}
.user-avatar{
  width:32px;height:32px;border-radius:50%;
  display:grid;place-items:center;
  color:#0c376a;background:#ddecff;
  border:2px solid #7eb6ff;
  font-size:12px;font-weight:900
}
.enterprise-user b{display:block;color:#fff;font-size:10.5px}
.enterprise-user small{display:block;color:#8eaaca;font-size:8.5px;margin-top:1px}
.user-caret{color:#97add0;margin-left:auto}

.enterprise-toolrow{
  position:relative;z-index:1;
  height:46px;
  display:flex;align-items:center;gap:14px;
  padding:0 18px;
  background:rgba(2,15,31,.16);
}
.enterprise-search{
  flex:1;max-width:650px;
  height:32px;
  display:flex;align-items:center;gap:8px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:9px;
  background:rgba(255,255,255,.075);
  padding:0 10px;
}
.enterprise-search>span{color:#86a7d1;font-size:16px}
.enterprise-search input{
  flex:1!important;max-width:none!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#eaf3ff!important;
  font-size:11px!important;
}
.enterprise-search input::placeholder{color:#7692b6!important}
.enterprise-status{
  margin-left:auto;
  display:flex;align-items:center;gap:8px;
}
.lan-status,.developer-tag{
  height:27px;display:inline-flex;align-items:center;
  border-radius:999px;padding:0 9px;
  font-size:8.7px;font-weight:800;letter-spacing:.25px;
  border:1px solid rgba(255,255,255,.11);
  background:rgba(255,255,255,.065);
  color:#a8bdd7;
}
.lan-status i{
  width:6px;height:6px;border-radius:50%;
  background:#31d18b;margin-right:6px;
  box-shadow:0 0 8px rgba(49,209,139,.7)
}
.enterprise-status .buildtag{
  height:27px!important;display:inline-flex!important;align-items:center!important;
  padding:0 9px!important;
  color:#dbeaff!important;
  background:rgba(30,113,235,.20)!important;
  border:1px solid rgba(72,148,255,.30)!important;
  font-size:8.7px!important;
}
.developer-tag b{color:#fff;margin-left:3px}

/* enterprise dashboard entrance animation */
.dash221-head,.dash221-hero,.dash221-kpis,.dash221-two,.dash221-recent{
  animation:ptcFadeUp .46s ease both;
}
.dash221-hero{animation-delay:.04s}
.dash221-kpis{animation-delay:.08s}
.dash221-two{animation-delay:.12s}
.dash221-recent{animation-delay:.16s}
@keyframes ptcFadeUp{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}
.dash221-kpis button:after{
  content:"";position:absolute;inset:auto 10px 8px 10px;height:2px;border-radius:5px;
  opacity:0;transform:scaleX(.25);transition:.18s ease;
  background:linear-gradient(90deg,#1d72ec,#62a7ff)
}
.dash221-kpis button:hover:after{opacity:.8;transform:scaleX(1)}

/* header-responsive */
@media(max-width:1180px){
  .enterprise-mini-brand{display:none}
  .enterprise-user{min-width:118px}
  .enterprise-clock{flex-basis:125px;min-width:125px}
  .developer-tag{display:none}
}
@media(max-width:850px){
  .enterprise-header{min-height:98px!important}
  .enterprise-toprow{height:55px;padding:0 10px;gap:8px}
  .enterprise-toolrow{height:43px;padding:0 10px}
  .enterprise-clock{flex-basis:108px;min-width:108px;padding:2px 8px}
  .clock-date{display:none}.clock-time{font-size:14px}
  .enterprise-user{min-width:auto}.enterprise-user>div,.user-caret{display:none}
  .welcome-set{font-size:10px}.welcome-set strong{font-size:10.5px}
  .enterprise-status .buildtag{display:none!important}
}
@media(max-width:560px){
  .enterprise-clock{display:none}
  .enterprise-search{max-width:none}
  .lan-status{display:none}
  .welcome-marquee{height:36px}
}
@media(prefers-reduced-motion:reduce){
  .welcome-track{animation:none}
  .dash221-head,.dash221-hero,.dash221-kpis,.dash221-two,.dash221-recent{animation:none}
}

/* ===== V2.0.1 SIDEBAR SPACE FIX ===== */
.sidebar{
  padding-bottom:10px!important;
}
.sidebar nav{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  padding-bottom:8px!important;
  margin-bottom:0!important;
}
.sidefoot{
  display:none!important;
}

/* ============================================================
   V2.0.3 GLOBAL SEARCH FIX
   ============================================================ */

/* Fix: old header input:focus rule made background white while
   Enterprise search text remained white. Keep the search dark. */
.enterprise-header .enterprise-search input,
.enterprise-header .enterprise-search input:focus,
.enterprise-header .enterprise-search input:active{
  background:transparent!important;
  color:#f4f8ff!important;
  -webkit-text-fill-color:#f4f8ff!important;
  caret-color:#69a9ff!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
.enterprise-header .enterprise-search input::placeholder{
  color:#88a3c4!important;
  -webkit-text-fill-color:#88a3c4!important;
  opacity:1!important;
}
.enterprise-search:focus-within{
  border-color:rgba(77,158,255,.72)!important;
  background:rgba(255,255,255,.105)!important;
  box-shadow:0 0 0 3px rgba(41,126,239,.10), inset 0 0 18px rgba(31,110,222,.08)!important;
}
.enterprise-search.search-open{
  border-color:rgba(86,166,255,.80)!important;
}

/* Global result popup is attached to BODY, so it won't be clipped
   by the sticky enterprise header. */
.ptc-search-results{
  position:fixed;
  z-index:10050;
  display:none;
  overflow:hidden;
  background:#ffffff;
  border:1px solid #d9e3f0;
  border-radius:13px;
  box-shadow:0 18px 48px rgba(7,25,49,.22);
  color:#1b2b42;
}
.ptc-search-results.show{display:block}
.ptc-search-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 12px;
  background:#f7f9fc;
  border-bottom:1px solid #e5ebf2;
  font-size:10px;
  color:#718097;
}
.ptc-search-head b{
  color:#31445f;
  font-size:10.5px;
}
.ptc-search-list{
  max-height:360px;
  overflow:auto;
  padding:5px;
}
.ptc-search-item{
  width:100%;
  min-height:58px;
  display:grid;
  grid-template-columns:35px 1fr auto;
  gap:10px;
  align-items:center;
  text-align:left;
  padding:8px 9px;
  margin:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#23364f;
  cursor:pointer;
  transition:.14s ease;
}
.ptc-search-item:hover,
.ptc-search-item.active{
  background:#edf5ff;
}
.ptc-search-icon{
  width:34px;height:34px;
  display:grid;place-items:center;
  border-radius:9px;
  background:#eaf2ff;
  color:#1d6be5;
  font-size:15px;
}
.ptc-search-main b{
  display:block;
  color:#1c2f49;
  font-size:11.5px;
  line-height:1.3;
}
.ptc-search-main small{
  display:block;
  color:#78879a;
  font-size:9.7px;
  line-height:1.35;
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:520px;
}
.ptc-search-type{
  justify-self:end;
  padding:4px 7px;
  border-radius:999px;
  background:#f1f4f8;
  color:#65758a;
  font-size:8.5px;
  font-weight:800;
  white-space:nowrap;
}
.ptc-search-empty{
  padding:24px 16px;
  text-align:center;
  color:#7d8b9d;
  font-size:11px;
}
.ptc-search-empty b{
  display:block;
  color:#34475f;
  margin-bottom:4px;
  font-size:12px;
}
.ptc-search-hint{
  border-top:1px solid #e8edf3;
  padding:7px 11px;
  background:#fbfcfe;
  color:#94a0af;
  font-size:8.7px;
}
.ptc-search-mark{
  background:#fff0a8;
  color:#27354a;
  border-radius:3px;
  padding:0 1px;
}

@media(max-width:700px){
  .ptc-search-results{
    left:10px!important;
    right:10px!important;
    width:auto!important;
  }
  .ptc-search-main small{max-width:230px}
  .ptc-search-type{display:none}
}

/* ============================================================
   V2.0.4 REPORT DATE RANGE
   ============================================================ */
.report-range-bar{
  margin-top:14px;
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:wrap;
  padding:13px 14px;
  background:linear-gradient(100deg,#f8fbff,#f3f7fd);
  border:1px solid #dce6f2;
  border-radius:14px;
  box-shadow:0 5px 15px rgba(17,38,70,.04);
}
.report-range-title{
  min-width:215px;
  display:flex;
  align-items:center;
  gap:10px;
  padding-right:8px;
}
.report-range-icon{
  width:36px;height:36px;
  display:grid;place-items:center;
  flex:0 0 36px;
  border-radius:10px;
  background:#e7f1ff;
  color:#1769e3;
  font-size:16px;
}
.report-range-title b{
  display:block;
  color:#263950;
  font-size:11.5px;
}
.report-range-title small{
  display:block;
  color:#7d8b9d;
  font-size:9px;
  margin-top:2px;
}
.report-range-bar label{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.report-range-bar label>span{
  color:#687990;
  font-size:9px;
  font-weight:800;
}
.report-range-bar input[type=date]{
  height:38px;
  min-width:150px;
  padding:0 10px;
  box-sizing:border-box;
  background:#fff;
  color:#26384f;
  border:1px solid #d9e2ed;
  border-radius:9px;
  outline:none;
}
.report-range-bar input[type=date]:focus{
  border-color:#76a9f5;
  box-shadow:0 0 0 3px rgba(34,111,242,.08);
}
.report-range-sep{
  height:38px;
  display:flex;
  align-items:center;
  color:#8492a4;
  font-size:10px;
}
.report-range-current{
  margin-left:auto;
  min-width:165px;
  padding:7px 10px;
  border-left:1px solid #dce4ee;
}
.report-range-current small{
  display:block;
  color:#8a97a7;
  font-size:8.5px;
}
.report-range-current b{
  display:block;
  margin-top:2px;
  color:#29415f;
  font-size:10.5px;
}
.report-quick-range{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  padding:7px 4px 0;
  color:#7c8a9c;
  font-size:9px;
}
.report-quick-range button{
  border:1px solid #dce5ef;
  background:#fff;
  color:#49627f;
  border-radius:999px;
  padding:5px 9px;
  font-size:9px;
  cursor:pointer;
}
.report-quick-range button:hover{
  background:#edf5ff;
  color:#1767df;
  border-color:#cfe1fb;
}
.report-action-group{
  display:flex;
  align-items:center;
  gap:8px;
}
.report-count{
  display:inline-flex;
  align-items:center;
  height:30px;
  padding:0 9px;
  border-radius:999px;
  background:#eef4fb;
  color:#63768d;
  font-size:9px;
  font-weight:800;
}
@media(max-width:900px){
  .report-range-current{margin-left:0;border-left:0;padding-left:0}
  .report-range-title{width:100%}
}

/* ============================================================
   V2.1.0 - PTC GROUP watermark background
   ============================================================ */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:url('branding/ptc-logo-transparent.png') center 58% / min(42vw,560px) auto no-repeat;
  opacity:.055;
  filter:saturate(.95);
}
main,
.enterprise-header,
#content{
  position:relative;
  z-index:1;
}
@media (max-width:900px){
  body::before{
    background-size:min(58vw,380px) auto;
    opacity:.048;
  }
}

/* ============================================================
   V2.2.0 INVENTORY GUDANG
   ============================================================ */
.inv-module-note{
  margin:-4px 0 14px;
  padding:10px 13px;
  border:1px solid #d9e6f5;
  background:#f5f9ff;
  border-radius:11px;
  color:#63758c;
  font-size:10.5px;
}
.inv-module-note b{color:#2869c9}
.inv-tabs{
  display:flex;
  gap:6px;
  overflow-x:auto;
  padding:7px;
  margin-bottom:15px;
  background:#fff;
  border:1px solid #e1e8f0;
  border-radius:13px;
  box-shadow:0 4px 13px rgba(17,38,70,.04);
}
.inv-tabs button{
  min-height:34px;
  padding:0 11px;
  white-space:nowrap;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#66778e;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.inv-tabs button:hover{background:#f2f6fb;color:#285fba}
.inv-tabs button.active{
  background:linear-gradient(135deg,#2878ff,#1761de);
  color:#fff;
  box-shadow:0 5px 12px rgba(31,104,224,.18);
}
.inv-tabbody{animation:ptcFadeUp .28s ease both}
.inv-page-actions{
  display:flex;justify-content:space-between;align-items:center;gap:15px;
  margin-bottom:13px;
}
.inv-page-actions h2{margin:0;color:#1c2e48;font-size:19px}
.inv-page-actions p{margin:4px 0 0;color:#7c8a9d;font-size:10.5px}
.inv-kpis{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
  margin-bottom:14px;
}
.inv-kpis button{
  position:relative;
  display:flex;align-items:center;gap:10px;
  min-height:94px;
  padding:11px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  box-shadow:0 5px 15px rgba(17,38,70,.045);
  transition:.16s ease;
}
.inv-kpis button:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(17,38,70,.08)}
.inv-kpis i{
  width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;
  border-radius:10px;font-style:normal;font-size:18px;
}
.inv-kpis i.blue{background:#eaf2ff;color:#2472f2}
.inv-kpis i.green{background:#e9f9f0;color:#13a269}
.inv-kpis i.purple{background:#f4eaff;color:#8a44ca}
.inv-kpis i.orange{background:#fff2dd;color:#ed9700}
.inv-kpis i.red{background:#ffe9eb;color:#e64854}
.inv-kpis i.cyan{background:#e7f8fb;color:#0d98b7}
.inv-kpis label{display:block;color:#65748a;font-size:9.2px;font-weight:850}
.inv-kpis b{display:block;color:#14253e;font-size:23px;line-height:1.05;margin:3px 0}
.inv-kpis small{display:block;color:#8d98a8;font-size:8.5px}
.inv-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:14px;
}
.inv-grid.wide{grid-template-columns:1.45fr .75fr}
.inv-grid.equal{grid-template-columns:1fr 1fr}
.inv-panel{padding:15px!important}
.inv-panel-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:10px;
  margin-bottom:11px;
}
.inv-panel-head span{font-size:8px;letter-spacing:.7px;color:#236fe7;font-weight:900}
.inv-panel-head h3{margin:3px 0 2px;color:#1d2f48;font-size:14px}
.inv-panel-head p{margin:0;color:#8491a2;font-size:9.5px}
.inv-alert-list>div,.inv-activity-list>div{
  display:flex;align-items:center;gap:9px;
  padding:8px 2px;border-bottom:1px solid #edf1f5;
}
.inv-alert-list>div:last-child,.inv-activity-list>div:last-child{border-bottom:0}
.inv-alert-icon{
  width:27px;height:27px;display:grid;place-items:center;border-radius:8px;
  background:#fff0e7;color:#ef8a1d;font-weight:900
}
.inv-alert-list section,.inv-activity-list section{flex:1;min-width:0}
.inv-alert-list b,.inv-activity-list b{display:block;color:#2a3b53;font-size:10.5px}
.inv-alert-list small,.inv-activity-list small{display:block;margin-top:2px;color:#8490a0;font-size:9px}
.inv-alert-list button{
  border:0;background:#edf5ff;color:#2468cf;border-radius:8px;padding:5px 7px;font-size:8.5px;cursor:pointer
}
.inv-activity-list i{
  width:28px;height:28px;display:grid;place-items:center;border-radius:8px;font-style:normal;font-weight:900
}
.inv-activity-list i.in{background:#e9f9f0;color:#13a269}
.inv-activity-list i.out{background:#ffecef;color:#e84955}
.inv-activity-list i.neutral{background:#eef2f7;color:#78889d}
.inv-bars{display:grid;gap:9px;padding-top:3px}
.inv-bars header{display:flex;justify-content:space-between;color:#55677f;font-size:9.5px}
.inv-bar{height:7px;background:#edf1f6;border-radius:999px;overflow:hidden;margin-top:4px}
.inv-bar i{display:block;height:100%;background:linear-gradient(90deg,#2d7cff,#55b0ff);border-radius:999px}
.inv-formcard{padding:15px!important}
.inv-master-form{max-height:70vh;overflow:auto;padding-right:5px!important}
.inv-photo-preview img{max-height:160px;max-width:280px;border-radius:11px;border:1px solid #dfe6ef}
.inv-detail-head{display:flex;gap:13px;align-items:center;margin-bottom:13px}
.inv-detail-head img{width:80px;height:80px;object-fit:cover;border-radius:12px;border:1px solid #e0e7ef}
.inv-detail-head span{font-size:9px;color:#2870df;font-weight:900}
.inv-detail-head h2{margin:3px 0;font-size:20px}.inv-detail-head p{margin:0;color:#7b899b;font-size:10px}
.inv-detail-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:15px}
.inv-detail-kpis>div{padding:9px;border:1px solid #e4eaf1;border-radius:10px;background:#f9fbfd}
.inv-detail-kpis small{display:block;color:#8290a2;font-size:8.5px}.inv-detail-kpis b{display:block;margin-top:3px;color:#273950;font-size:11px}
.inv-timeline>div{display:flex;gap:9px;align-items:center;padding:7px 0;border-bottom:1px solid #edf1f5}
.inv-timeline i{width:8px;height:8px;border-radius:50%;background:#9ba8ba}.inv-timeline i.in{background:#1daf70}.inv-timeline i.out{background:#ef4c57}
.inv-timeline b{display:block;font-size:10.5px}.inv-timeline small{display:block;color:#8591a1;font-size:9px;margin-top:2px}
.inv-lines-head{display:flex;justify-content:space-between;align-items:center;margin:6px 0 8px}
.inv-line{
  display:grid;
  grid-template-columns:2.2fr .65fr .75fr 1fr 36px;
  gap:7px;
  align-items:end;
  padding:8px;
  margin-bottom:7px;
  border:1px solid #e3e9f0;
  border-radius:10px;
  background:#fafcfe;
}
.inv-line label{margin:0!important}
.inv-remove-line{min-height:38px!important;padding:0!important}
.inv-return-meta{padding:9px 11px;background:#f5f8fc;border:1px solid #e1e8f0;border-radius:10px;margin-bottom:10px}
.inv-return-meta b,.inv-return-meta small{display:block}.inv-return-meta small{margin-top:2px;color:#7e8b9d}
.inv-return-line{
  display:grid;grid-template-columns:1fr 95px 150px;gap:8px;align-items:end;
  padding:9px;border:1px solid #e3e9f0;border-radius:10px;background:#fafcfe;margin-bottom:7px;
}
.inv-return-line>div b,.inv-return-line>div small{display:block}.inv-return-line>div small{margin-top:2px;color:#8491a2}
.inv-history-search input{
  min-width:280px;height:37px;border:1px solid #dfe6ef;border-radius:9px;padding:0 10px;background:#fff
}
.inv-delta{display:inline-flex;min-width:38px;justify-content:center;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:850}
.inv-delta.plus{background:#e9f9f0;color:#139c66}.inv-delta.minus{background:#ffecef;color:#dd4350}.inv-delta.zero{background:#eef2f6;color:#708096}
.inv-report-tabs{display:flex;gap:7px;flex-wrap:wrap;padding:10px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}
.inv-report-range{margin-top:10px!important}
.inv-setting-text{width:100%;min-height:250px;box-sizing:border-box;border:1px solid #dfe6ef;border-radius:10px;padding:10px;background:#fbfcfe;resize:vertical}
.about-card{text-align:center}
.about-card img{max-width:260px;max-height:95px;object-fit:contain;margin:5px auto 10px}
.about-card h2{margin:4px 0;color:#1c2f49}.about-card p{margin:0;color:#687b92}
.about-meta{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:13px 0}
.about-meta span{padding:6px 9px;border:1px solid #dfe7f0;background:#f7f9fc;border-radius:999px;color:#697c92;font-size:9px}
.about-card>small{display:block;color:#8a97a7;line-height:1.6}
@media(max-width:1300px){.inv-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1000px){.inv-grid,.inv-grid.wide,.inv-grid.equal{grid-template-columns:1fr}.inv-line{grid-template-columns:1fr 90px 100px 130px 36px}}
@media(max-width:700px){.inv-kpis{grid-template-columns:1fr 1fr}.inv-page-actions{align-items:flex-start;flex-direction:column}.inv-history-search input{min-width:0;width:100%}.inv-line,.inv-return-line{grid-template-columns:1fr}.inv-remove-line{width:100%}.inv-detail-kpis{grid-template-columns:1fr}}

/* ============================================================
   V2.3.0 SECURE LICENSE + LAN ADDRESS
   ============================================================ */
.license-screen{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:26px;
  box-sizing:border-box;
  background:
    radial-gradient(circle at 75% 15%,rgba(34,115,240,.18),transparent 32%),
    linear-gradient(140deg,#07182d,#0b294e 58%,#061629);
}
.license-card{
  width:min(880px,100%);
  padding:27px;
  border:1px solid rgba(112,169,247,.28);
  border-radius:20px;
  background:rgba(255,255,255,.97);
  box-shadow:0 28px 75px rgba(0,10,30,.32);
}
.license-logo{display:block;max-width:250px;max-height:88px;object-fit:contain;margin:0 auto 14px}
.license-kicker{text-align:center;color:#246fe4;font-size:9px;font-weight:900;letter-spacing:1.1px}
.license-card h1{text-align:center;margin:5px 0 4px;color:#152740;font-size:28px}
.license-sub{text-align:center;margin:0;color:#758399;font-size:11px}
.license-state{width:max-content;margin:13px auto;padding:7px 12px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.5px}
.license-state.active{background:#e7f8ef;color:#11945d}.license-state.inactive{background:#fff0f1;color:#d74350}
.license-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0}
.license-info-grid>div{position:relative;padding:10px 11px;border:1px solid #e0e7ef;background:#f8fafc;border-radius:11px;min-width:0}
.license-info-grid small{display:block;color:#8290a2;font-size:8.5px}
.license-info-grid b{display:block;margin-top:4px;color:#253950;font-size:10.5px;word-break:break-all}
.license-info-grid button{position:absolute;right:8px;top:8px;border:0;border-radius:7px;background:#e8f1ff;color:#2169d5;font-size:8px;padding:4px 6px;cursor:pointer}
.license-help{padding:12px 14px;border:1px solid #dce6f2;border-radius:11px;background:#f4f8fe;color:#64758b;font-size:10px}
.license-help>b{color:#26405f}.license-help ol{margin:7px 0 0;padding-left:18px;line-height:1.65}
.license-activate{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:center;margin-top:13px}
.license-activate input{border:1px solid #dce4ee;border-radius:9px;padding:8px;background:#fff}
.license-activate button{height:39px;border:0;border-radius:9px;padding:0 15px;background:linear-gradient(135deg,#2878ff,#1761dc);color:#fff;font-weight:800;cursor:pointer}
#licenseMsg{grid-column:1/-1;color:#d34853;font-size:9.5px}
.license-mobile{margin-top:15px;padding:13px;border-radius:12px;background:#081d37;color:#c8dbf4}
.license-mobile b{display:block;color:#fff;font-size:11px}.license-mobile p{margin:4px 0;color:#8faacc;font-size:9.5px}
.license-mobile strong{display:block;padding:8px 10px;background:#0d2d54;border:1px solid #1e4e82;border-radius:8px;color:#66b0ff;font-size:15px;letter-spacing:.2px}
.license-mobile small{display:block;margin-top:6px;color:#829dbc;font-size:8.8px}
.license-card footer{text-align:center;margin-top:16px;color:#8995a4;font-size:8.5px}
.server-license-loading{padding:20px;color:#8492a4}
.server-license-info{display:grid;gap:7px}
.server-info-row{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #edf1f5}
.server-info-row small{color:#8491a2}.server-info-row b{color:#2c3e56;text-align:right}
.oktxt{color:#11965f!important}.badtxt{color:#dd4652!important}.mono{font-family:Consolas,monospace;font-size:10px}
.server-address-box{margin-top:5px;padding:11px;border:1px solid #d7e6fa;border-radius:11px;background:#f2f7ff}
.server-address-box small{display:block;color:#69809e;font-size:9px}.server-address-box strong{display:block;margin:5px 0 9px;color:#1769e4;font-size:16px;word-break:break-all}
.server-tip{padding:7px 9px;background:#f8fafc;border-radius:8px;color:#8693a4;font-size:8.7px}
@media(max-width:650px){.license-info-grid{grid-template-columns:1fr}.license-activate{grid-template-columns:1fr}.license-activate button{width:100%}}

/* ============================================================
   V2.4.2 SIDEBAR / MENU RECOVERY FIX
   Desktop sidebar remains visible down to 701px.
   ============================================================ */
@media (min-width:701px){
  .sidebar{
    transform:none!important;
    left:0!important;
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
  }
  main{
    margin-left:252px!important;
    width:calc(100% - 252px)!important;
  }
  .enterprise-menu{
    display:none!important;
  }
}
@media (max-width:700px){
  .sidebar{
    transform:translateX(-100%)!important;
    transition:transform .2s ease!important;
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:50!important;
  }
  .sidebar.open{
    transform:translateX(0)!important;
  }
  main{
    margin-left:0!important;
    width:100%!important;
  }
  .enterprise-menu{
    display:inline-grid!important;
    place-items:center!important;
  }
}
.sidebar nav#nav{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}
.sidebar nav#nav button{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}

/* ============================================================
   V2.4.3 FIXED PTC GROUP CORPORATE BRANDING
   ============================================================ */
.ptc-fixed-brand{
  min-height:78px!important;
  height:auto!important;
  padding:12px 13px 10px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:5px!important;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.ptc-fixed-brand img{
  width:150px!important;
  max-width:88%!important;
  height:auto!important;
  max-height:46px!important;
  object-fit:contain!important;
  object-position:left center!important;
  display:block!important;
}
.ptc-fixed-brand small{
  display:block!important;
  width:100%;
  color:rgba(220,234,251,.72)!important;
  font-size:7.5px!important;
  font-weight:650!important;
  line-height:1.3!important;
  letter-spacing:.15px!important;
}
.ptc-enterprise-brand{
  min-width:155px;
}
.ptc-mini-mark{
  width:28px;
  height:28px;
  object-fit:contain;
  display:block;
  flex:0 0 28px;
}
.ptc-enterprise-brand b{
  color:#fff!important;
  letter-spacing:.25px;
}
.ptc-enterprise-brand small{
  color:#9fb8d6!important;
  font-size:7.8px!important;
}

/* Fixed corporate watermark remains intentionally subtle. */
body::before{
  background-image:url('branding/ptc-logo-transparent.png')!important;
  opacity:.052!important;
}

/* Preserve PTC identity in print-friendly areas. */
.about-card img{
  max-width:310px!important;
  max-height:105px!important;
}

/* Corporate edition branding is intentionally non-editable. */
.ptc-branding-locked-note{
  padding:8px 10px;
  border-radius:9px;
  background:#f3f7fc;
  border:1px solid #e0e8f1;
  color:#718198;
  font-size:8.8px;
}

/* ============================================================
   V2.4.4 DESKTOP ZOOM SAFE + MOBILE PWA
   Desktop vs mobile is based on pointer capability, not CSS width.
   Browser zoom therefore does not hide the sidebar on PC/laptop.
   ============================================================ */

/* DESKTOP/LAPTOP: mouse/trackpad available. Always show sidebar,
   even when browser zoom reduces the CSS viewport below old breakpoints. */
@media (any-hover:hover) and (any-pointer:fine){
  html.ptc-desktop-pointer .sidebar,
  .sidebar{
    transform:none!important;
    translate:none!important;
  }
  html.ptc-desktop-pointer .sidebar{
    left:0!important;
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    width:250px!important;
    z-index:30!important;
  }
  html.ptc-desktop-pointer main{
    margin-left:250px!important;
    width:calc(100% - 250px)!important;
    min-width:0!important;
  }
  html.ptc-desktop-pointer .enterprise-menu{
    display:none!important;
  }
  html.ptc-desktop-pointer .sidebar-backdrop{
    display:none!important;
  }
}

/* TOUCH / MOBILE PWA */
html.ptc-touch-device{
  overscroll-behavior-y:none;
}
html.ptc-touch-device body{
  min-width:0!important;
  overflow-x:hidden;
  -webkit-tap-highlight-color:transparent;
}
html.ptc-touch-device .sidebar{
  width:min(86vw,310px)!important;
  transform:translateX(-102%)!important;
  left:0!important;
  z-index:90!important;
  box-shadow:18px 0 45px rgba(0,15,35,.28)!important;
  padding-top:max(12px,env(safe-area-inset-top))!important;
  padding-bottom:max(12px,env(safe-area-inset-bottom))!important;
}
html.ptc-touch-device .sidebar.open{
  transform:translateX(0)!important;
}
html.ptc-touch-device main{
  margin-left:0!important;
  width:100%!important;
  min-width:0!important;
}
html.ptc-touch-device .enterprise-menu{
  display:inline-grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
}
.sidebar-backdrop{
  display:none;
}
html.ptc-touch-device body.sidebar-open .sidebar-backdrop{
  display:block!important;
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(2,12,25,.52);
  backdrop-filter:blur(2px);
}

/* PWA standalone safe areas */
html.pwa-standalone .enterprise-header{
  padding-top:env(safe-area-inset-top);
}
html.pwa-standalone #content{
  padding-bottom:env(safe-area-inset-bottom);
}

/* Install button */
.pwa-install-btn{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#dcecff;
  height:28px;
  padding:0 9px;
  border-radius:8px;
  font-size:8.5px;
  font-weight:800;
  cursor:pointer;
}
.pwa-install-hint{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:200;
  width:min(520px,calc(100vw - 24px));
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:9px;
  align-items:center;
  padding:11px 13px;
  border-radius:12px;
  background:#0a2342;
  color:#dcecff;
  box-shadow:0 15px 45px rgba(0,0,0,.28);
}
.pwa-install-hint b{font-size:10px}
.pwa-install-hint span{font-size:9px;color:#a9c1de;line-height:1.4}
.pwa-install-hint button{border:0;background:transparent;color:#fff;font-size:18px;cursor:pointer}

/* Phone layout tuned for PWA use. */
@media (hover:none), (pointer:coarse){
  .enterprise-header{
    min-height:auto!important;
    position:sticky!important;
    top:0!important;
    z-index:60!important;
  }
  .enterprise-toprow{
    height:56px!important;
    padding:0 9px!important;
    gap:7px!important;
  }
  .enterprise-mini-brand{
    display:flex!important;
    min-width:0!important;
    padding-right:7px!important;
  }
  .ptc-mini-mark{width:26px!important;height:26px!important;flex-basis:26px!important}
  .ptc-enterprise-brand b{font-size:10px!important}
  .ptc-enterprise-brand small{display:none!important}
  .welcome-marquee{
    min-width:0!important;
    height:34px!important;
    flex:1 1 auto!important;
  }
  .welcome-set,.welcome-set strong{font-size:9px!important}
  .enterprise-clock,.enterprise-user{display:none!important}
  .enterprise-toolrow{
    min-height:50px!important;
    height:auto!important;
    padding:7px 9px!important;
    gap:7px!important;
  }
  .enterprise-search{
    max-width:none!important;
    flex:1 1 100%!important;
  }
  .enterprise-search input{
    height:38px!important;
    font-size:14px!important;
  }
  .enterprise-status{
    display:none!important;
  }
  .pad{padding:10px!important}
  .contenthead{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:8px!important;
    margin-bottom:12px!important;
  }
  .contenthead h1{font-size:22px!important}
  .grid,.dashboard-metrics,.dash221-kpis,.inv-kpis{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .two,.dashboard-two,.dashboard-two.equal,.dash221-two,.dash221-two.equal,
  .inv-grid,.inv-grid.wide,.inv-grid.equal{
    grid-template-columns:1fr!important;
  }
  .card{border-radius:11px!important;padding:11px!important}
  .btn,.sidebar button,.tabs button,.site-tabs button,.inv-tabs button{
    min-height:44px!important;
  }
  .toolbar{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .toolbar input,.toolbar select,.toolbar .btn{
    width:100%!important;
    min-width:0!important;
  }
  .form{
    grid-template-columns:1fr!important;
  }
  .form .full{grid-column:auto!important}
  .modal{
    padding:0!important;
    align-items:end!important;
  }
  .modalbox{
    width:100%!important;
    max-width:none!important;
    max-height:92dvh!important;
    border-radius:18px 18px 0 0!important;
    padding:17px 13px max(17px,env(safe-area-inset-bottom))!important;
  }
  .tablewrap{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
    border-radius:10px!important;
  }
  table{min-width:720px}
  th,td{padding:10px 9px!important;font-size:11px!important}
  .tabs,.site-tabs,.inv-tabs,.inv-report-tabs{
    overflow-x:auto!important;
    flex-wrap:nowrap!important;
    white-space:nowrap!important;
    -webkit-overflow-scrolling:touch;
    padding-bottom:7px!important;
  }
  .tabs button,.site-tabs button,.inv-tabs button,.inv-report-tabs button{
    flex:0 0 auto!important;
  }
  .dash221-head{flex-direction:column!important}
  .dash221-date{width:100%!important;min-width:0!important}
  .dash221-hero{grid-template-columns:1fr!important}
  .dash221-hero-visual{min-height:180px!important}
  .dash221-hero-copy{padding:18px!important}
  .dash221-hero h2{font-size:23px!important}
  .inv-line,.inv-return-line,.dispatch-row,.outrow,.outrow-v16,.install-hw-row{
    grid-template-columns:1fr!important;
  }
  .sitehero,.sitehero-v15{grid-template-columns:1fr!important}
  .report-range-bar{
    align-items:stretch!important;
  }
  .report-range-bar label,.report-range-bar input,.report-range-bar .btn{
    width:100%!important;
  }
}

/* Very small phones */
@media (max-width:430px) and (hover:none), (max-width:430px) and (pointer:coarse){
  .grid,.dashboard-metrics,.dash221-kpis,.inv-kpis{
    grid-template-columns:1fr!important;
  }
  .welcome-marquee{display:none!important}
  .enterprise-mini-brand{flex:1 1 auto!important}
  .ptc-enterprise-brand small{display:block!important;font-size:7px!important}
}

/* ============================================================
   V2.4.5 FIXED SIDEBAR + PROFESSIONAL APP SHELL
   Authoritative final desktop layout.
   ============================================================ */

/* Desktop / laptop: the browser page itself does NOT scroll.
   Only the application main workspace scrolls. */
@media (any-hover:hover) and (any-pointer:fine){
  html.ptc-desktop-pointer,
  html.ptc-desktop-pointer body{
    height:100%;
    min-height:100%;
    overflow:hidden!important;
  }

  html.ptc-desktop-pointer body{
    margin:0!important;
    background:#eef3f8!important;
  }

  /* Sidebar is physically pinned to the viewport. */
  html.ptc-desktop-pointer .sidebar{
    position:fixed!important;
    top:0!important;
    right:auto!important;
    bottom:0!important;
    left:0!important;
    inset:0 auto 0 0!important;
    width:250px!important;
    height:100vh!important;
    height:100dvh!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    transform:none!important;
    translate:none!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:100!important;
    border-right:1px solid rgba(255,255,255,.055)!important;
    box-shadow:8px 0 28px rgba(8,24,45,.08)!important;
  }

  /* Logo/brand never moves. Only nav can internally scroll
     if a very short screen cannot fit every menu item. */
  html.ptc-desktop-pointer .ptc-fixed-brand{
    flex:0 0 auto!important;
    position:relative!important;
    top:auto!important;
    background:transparent!important;
    z-index:2!important;
  }

  html.ptc-desktop-pointer .sidebar nav#nav{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-width:thin;
    scrollbar-color:rgba(126,167,218,.30) transparent;
    padding-right:4px!important;
    padding-bottom:14px!important;
  }

  html.ptc-desktop-pointer .sidebar nav#nav::-webkit-scrollbar{
    width:5px;
  }
  html.ptc-desktop-pointer .sidebar nav#nav::-webkit-scrollbar-track{
    background:transparent;
  }
  html.ptc-desktop-pointer .sidebar nav#nav::-webkit-scrollbar-thumb{
    background:rgba(126,167,218,.25);
    border-radius:999px;
  }

  /* Main is the only vertical scrolling workspace. */
  html.ptc-desktop-pointer main{
    position:relative!important;
    margin-left:250px!important;
    width:calc(100% - 250px)!important;
    height:100vh!important;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    scroll-behavior:smooth;
    scrollbar-width:thin;
    scrollbar-color:#b8c7d9 #edf2f7;
    background:#f4f7fb!important;
  }

  html.ptc-desktop-pointer main::-webkit-scrollbar{
    width:9px;
  }
  html.ptc-desktop-pointer main::-webkit-scrollbar-track{
    background:#edf2f7;
  }
  html.ptc-desktop-pointer main::-webkit-scrollbar-thumb{
    background:#bcc9d8;
    border:2px solid #edf2f7;
    border-radius:999px;
  }
  html.ptc-desktop-pointer main::-webkit-scrollbar-thumb:hover{
    background:#9eafc3;
  }

  /* Header stays visible inside the scrollable main workspace. */
  html.ptc-desktop-pointer .enterprise-header{
    position:sticky!important;
    top:0!important;
    left:0!important;
    right:0!important;
    z-index:90!important;
    margin:0!important;
    width:100%!important;
    box-sizing:border-box!important;
    box-shadow:0 6px 22px rgba(8,24,45,.13)!important;
  }

  html.ptc-desktop-pointer #content{
    position:relative!important;
    z-index:1!important;
    min-height:calc(100dvh - 108px)!important;
  }

  /* Cleaner modern spacing: content does not visually touch edges. */
  html.ptc-desktop-pointer #content > .pad{
    max-width:1800px;
    margin:0 auto;
    padding:22px 24px 34px!important;
  }

  html.ptc-desktop-pointer .sidebar-backdrop{
    display:none!important;
  }

  html.ptc-desktop-pointer .enterprise-menu{
    display:none!important;
  }
}

/* Touch/mobile keeps normal document scrolling and off-canvas sidebar. */
html.ptc-touch-device,
html.ptc-touch-device body{
  height:auto!important;
  min-height:100%!important;
  overflow-y:auto!important;
}

html.ptc-touch-device .sidebar{
  position:fixed!important;
  top:0!important;
  bottom:0!important;
  height:100dvh!important;
  overflow:hidden!important;
}

html.ptc-touch-device .sidebar nav#nav{
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}

/* Prevent accidental body shift when mobile menu opens. */
html.ptc-touch-device body.sidebar-open{
  overflow:hidden!important;
}

/* ============================================================
   V2.4.6 PWA INSTALL HINT CLOSE FIX
   ============================================================ */

/* Author CSS previously overrode the browser's [hidden] behavior. */
[hidden]{
  display:none!important;
}

.pwa-install-hint[hidden]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

.pwa-install-hint .pwa-hint-close{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  min-width:34px;
  padding:0;
  border:0;
  border-radius:9px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:21px;
  line-height:1;
  font-weight:500;
  cursor:pointer;
  pointer-events:auto;
  touch-action:manipulation;
  transition:background .15s ease,transform .15s ease;
}
.pwa-install-hint .pwa-hint-close:hover{
  background:rgba(255,255,255,.16);
}
.pwa-install-hint .pwa-hint-close:active{
  transform:scale(.94);
}


/* =====================================================================
   V2.4.9 - COMPACT CATEGORY SEARCH UI
   ===================================================================== */
.compact-list-shell{
  margin-top:12px;
}
.compact-data-tools{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 8px;
  margin-bottom:8px;
  background:rgba(255,255,255,.92);
  border:1px solid #e4eaf1;
  border-radius:11px;
  box-shadow:0 4px 14px rgba(21,45,75,.045);
}
.compact-search{
  position:relative;
  display:flex;
  align-items:center;
  flex:1 1 360px;
  min-width:190px;
  max-width:560px;
}
.compact-search-icon{
  position:absolute;
  left:11px;
  top:50%;
  transform:translateY(-50%);
  color:#8291a6;
  font-size:18px;
  line-height:1;
  pointer-events:none;
}
.compact-search-input{
  width:100%;
  height:34px!important;
  min-height:34px!important;
  padding:0 34px 0 34px!important;
  border:1px solid #dce4ed!important;
  border-radius:9px!important;
  background:#f8fafc!important;
  color:#203044!important;
  font-size:11.5px!important;
  outline:none;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.compact-search-input:focus{
  background:#fff!important;
  border-color:#9bbce4!important;
  box-shadow:0 0 0 3px rgba(54,125,214,.09)!important;
}
.compact-search-input::-webkit-search-cancel-button{
  display:none;
}
.compact-search-clear{
  position:absolute;
  right:5px;
  top:50%;
  transform:translateY(-50%);
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#8796a9;
  font-size:16px;
  line-height:1;
  cursor:pointer;
}
.compact-search-clear:hover{
  background:#edf2f7;
  color:#30445e;
}
.compact-category-filter{
  width:auto!important;
  max-width:190px;
  height:34px!important;
  min-height:34px!important;
  padding:0 28px 0 10px!important;
  border:1px solid #dce4ed!important;
  border-radius:9px!important;
  background:#f8fafc!important;
  color:#34465d!important;
  font-size:10.5px!important;
  font-weight:700;
}
.compact-result-count{
  flex:0 0 auto;
  min-width:66px;
  height:30px;
  padding:0 9px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#eef4fb;
  color:#6f8197;
  font-size:9.5px;
  white-space:nowrap;
}
.compact-result-count b{
  color:#234a78;
  margin-right:3px;
  font-size:11px;
}
.compact-tablewrap{
  margin-top:0!important;
  border:1px solid #e4eaf1;
  border-radius:11px!important;
  background:#fff;
}
.compact-data-table thead th{
  position:sticky;
  top:0;
  z-index:3;
  background:#f7f9fc!important;
  color:#5a6b80!important;
  font-size:9px!important;
  letter-spacing:.02em;
  white-space:nowrap;
}
.compact-data-table tbody tr[data-search]{
  transition:background .12s ease;
}
.compact-data-table tbody tr[data-search]:hover{
  background:#fafcff;
}
.compact-category-row td{
  height:27px;
  padding:5px 10px!important;
  background:#f2f6fb!important;
  border-top:1px solid #dfe7f0!important;
  border-bottom:1px solid #e7edf4!important;
}
.compact-category-name{
  color:#294d77;
  font-size:9.5px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.compact-category-count{
  display:inline-flex;
  margin-left:7px;
  padding:2px 6px;
  border-radius:999px;
  background:#fff;
  border:1px solid #dce6f1;
  color:#8795a8;
  font-size:8px;
  font-weight:700;
}
.compact-cat-pill{
  display:inline-flex;
  align-items:center;
  min-height:21px;
  padding:2px 7px;
  border-radius:999px;
  background:#edf4fc;
  border:1px solid #dae8f7;
  color:#365f8e;
  font-size:8.5px;
  font-weight:750;
  white-space:nowrap;
}
.compact-action-cell{
  white-space:nowrap;
}
.compact-action-cell .btn{
  min-height:27px!important;
  height:27px!important;
  padding:0 8px!important;
  font-size:8.5px!important;
}
.compact-actions{
  gap:4px!important;
  flex-wrap:nowrap!important;
}

/* Tablet / phone: keep controls compact but easy to use */
@media (hover:none), (pointer:coarse){
  .compact-data-tools{
    display:grid;
    grid-template-columns:1fr auto;
    gap:7px;
    padding:8px;
  }
  .compact-search{
    max-width:none;
    min-width:0;
    grid-column:1 / -1;
  }
  .compact-search-input{
    height:42px!important;
    min-height:42px!important;
    font-size:14px!important;
  }
  .compact-category-filter{
    max-width:none;
    width:100%!important;
    height:40px!important;
    min-height:40px!important;
    font-size:12px!important;
  }
  .compact-result-count{
    height:40px;
    min-width:78px;
    font-size:11px;
  }
  .compact-result-count b{
    font-size:13px;
  }
}


/* =====================================================================
   V2.5.0 - COMPACT FIXED TABLE LAYOUT + FAST UP/DOWN NAVIGATION
   ===================================================================== */
.compact-tablewrap{
  max-height:calc(100dvh - 270px);
  overflow:auto!important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#b9c7d7 #eef3f7;
}
.compact-tablewrap::-webkit-scrollbar{width:8px;height:8px}
.compact-tablewrap::-webkit-scrollbar-track{background:#eef3f7}
.compact-tablewrap::-webkit-scrollbar-thumb{background:#b9c7d7;border:2px solid #eef3f7;border-radius:999px}
.compact-tablewrap::-webkit-scrollbar-thumb:hover{background:#9dacc0}

#master-compact-table,
#stock-compact-table,
#inventory-master-compact-table{
  width:100%!important;
  table-layout:fixed!important;
  border-collapse:separate;
  border-spacing:0;
}
#master-compact-table{min-width:900px!important}
#stock-compact-table{min-width:1040px!important}
#inventory-master-compact-table{min-width:1080px!important}

.compact-data-table th,
.compact-data-table td{
  box-sizing:border-box;
  height:36px;
  max-height:36px;
  padding:6px 7px!important;
  vertical-align:middle!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.compact-data-table tbody tr[data-search] td{
  font-size:10px!important;
}
.compact-data-table thead th{
  height:34px;
  top:0!important;
  box-shadow:0 1px 0 #e3e9f0;
}
.compact-category-row td{
  height:28px!important;
  max-height:28px!important;
  position:relative;
  overflow:visible!important;
  white-space:nowrap!important;
}
.compact-action-cell{
  overflow:visible!important;
  text-overflow:clip!important;
}
.compact-action-cell .compact-actions{
  justify-content:flex-start;
}
.compact-action-cell .btn{
  white-space:nowrap;
}

/* Master Data column proportions */
#master-compact-table th:nth-child(1),#master-compact-table td:nth-child(1){width:18%}
#master-compact-table th:nth-child(2),#master-compact-table td:nth-child(2){width:13%}
#master-compact-table th:nth-child(3),#master-compact-table td:nth-child(3){width:12%}
#master-compact-table th:nth-child(4),#master-compact-table td:nth-child(4){width:14%}
#master-compact-table th:nth-child(5),#master-compact-table td:nth-child(5){width:10%}
#master-compact-table th:nth-child(6),#master-compact-table td:nth-child(6){width:15%}
#master-compact-table th:nth-child(7),#master-compact-table td:nth-child(7){width:7%}
#master-compact-table th:nth-child(8),#master-compact-table td:nth-child(8){width:11%}

/* Spare Gudang column proportions */
#stock-compact-table th:nth-child(1),#stock-compact-table td:nth-child(1){width:16%}
#stock-compact-table th:nth-child(2),#stock-compact-table td:nth-child(2){width:9%}
#stock-compact-table th:nth-child(3),#stock-compact-table td:nth-child(3){width:9%}
#stock-compact-table th:nth-child(4),#stock-compact-table td:nth-child(4){width:11%}
#stock-compact-table th:nth-child(5),#stock-compact-table td:nth-child(5){width:8%}
#stock-compact-table th:nth-child(6),#stock-compact-table td:nth-child(6){width:12%}
#stock-compact-table th:nth-child(7),#stock-compact-table td:nth-child(7){width:6%}
#stock-compact-table th:nth-child(8),#stock-compact-table td:nth-child(8){width:6%}
#stock-compact-table th:nth-child(9),#stock-compact-table td:nth-child(9){width:5%}
#stock-compact-table th:nth-child(10),#stock-compact-table td:nth-child(10){width:7%}
#stock-compact-table th:nth-child(11),#stock-compact-table td:nth-child(11){width:11%}

/* Master Inventory column proportions */
#inventory-master-compact-table th:nth-child(1),#inventory-master-compact-table td:nth-child(1){width:7%}
#inventory-master-compact-table th:nth-child(2),#inventory-master-compact-table td:nth-child(2){width:13%}
#inventory-master-compact-table th:nth-child(3),#inventory-master-compact-table td:nth-child(3){width:9%}
#inventory-master-compact-table th:nth-child(4),#inventory-master-compact-table td:nth-child(4){width:10%}
#inventory-master-compact-table th:nth-child(5),#inventory-master-compact-table td:nth-child(5){width:8%}
#inventory-master-compact-table th:nth-child(6),#inventory-master-compact-table td:nth-child(6){width:5%}
#inventory-master-compact-table th:nth-child(7),#inventory-master-compact-table td:nth-child(7){width:5%}
#inventory-master-compact-table th:nth-child(8),#inventory-master-compact-table td:nth-child(8){width:4%}
#inventory-master-compact-table th:nth-child(9),#inventory-master-compact-table td:nth-child(9){width:6%}
#inventory-master-compact-table th:nth-child(10),#inventory-master-compact-table td:nth-child(10){width:7%}
#inventory-master-compact-table th:nth-child(11),#inventory-master-compact-table td:nth-child(11){width:7%}
#inventory-master-compact-table th:nth-child(12),#inventory-master-compact-table td:nth-child(12){width:19%}

.compact-scroll-controls{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:4px;
}
.compact-scroll-btn{
  height:30px;
  min-width:58px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  border:1px solid #dce5ef;
  border-radius:8px;
  background:#fff;
  color:#53677f;
  font-size:9px;
  font-weight:750;
  cursor:pointer;
  transition:background .12s ease,border-color .12s ease,color .12s ease;
}
.compact-scroll-btn:hover{
  background:#edf5ff;
  border-color:#bfd4ed;
  color:#235c97;
}
.custom-category-note{
  margin-top:2px;
  padding:8px 10px;
  border:1px solid #e1e9f2;
  border-radius:9px;
  background:#f7f9fc;
  color:#687a91;
  font-size:9px;
  line-height:1.45;
}

/* When browser height is small, preserve enough visible rows. */
@media (max-height:720px) and (any-hover:hover) and (any-pointer:fine){
  .compact-tablewrap{max-height:calc(100dvh - 235px)}
}

/* Touch/PWA */
@media (hover:none), (pointer:coarse){
  .compact-tablewrap{
    max-height:62dvh;
    -webkit-overflow-scrolling:touch;
  }
  .compact-scroll-controls{
    grid-column:1 / -1;
    justify-content:flex-end;
  }
  .compact-scroll-btn{
    height:38px;
    min-width:84px;
    font-size:11px;
  }
  #master-compact-table{min-width:900px!important}
  #stock-compact-table{min-width:1040px!important}
  #inventory-master-compact-table{min-width:1080px!important}
}


/* =====================================================================
   V2.5.1 - VISIBLE CUSTOM CATEGORY UI
   ===================================================================== */
.master-category-field{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.master-category-field>label{
  font-size:9px;
  font-weight:700;
  color:#5e7188;
}
.master-category-combo{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px;
  align-items:center;
}
.master-category-combo select{
  width:100%!important;
  min-width:0!important;
}
.master-add-category-btn{
  height:34px!important;
  min-height:34px!important;
  padding:0 10px!important;
  white-space:nowrap;
  border-style:dashed!important;
  color:#2e659f!important;
  background:#f6faff!important;
}
.master-add-category-btn:hover,
.master-add-category-btn.active{
  background:#eaf4ff!important;
  border-color:#9fc3e8!important;
}
.master-custom-category-box{
  grid-column:1 / -1;
  margin-top:3px;
  padding:9px;
  border:1px solid #cfe0f2;
  border-radius:9px;
  background:#f7fbff;
}
.master-custom-category-box[hidden]{
  display:none!important;
}
.master-custom-category-box label{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.master-custom-category-box input{
  width:100%!important;
}
.master-custom-category-box small{
  display:block;
  margin-top:5px;
  color:#71849b;
  font-size:8.5px;
  line-height:1.4;
}

@media (hover:none), (pointer:coarse){
  .master-category-combo{
    grid-template-columns:1fr;
  }
  .master-add-category-btn{
    height:42px!important;
    min-height:42px!important;
  }
}


/* =====================================================================
   V2.5.2 - SPARE GUDANG MODEL PHOTO
   ===================================================================== */
.master-photo-field{
  border:1px solid #dfe7f0;
  border-radius:10px;
  padding:10px;
  background:#fbfcfe;
}
.master-photo-field>label{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.master-photo-field input[type=file]{
  width:100%;
}
.master-photo-field small{
  color:#718198;
  font-size:9px;
  line-height:1.4;
}
.master-photo-current{
  margin-top:9px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px;
  border:1px solid #e1e8f0;
  border-radius:9px;
  background:#fff;
}
.master-photo-current-thumb{
  width:62px;
  height:62px;
  flex:0 0 62px;
  padding:3px;
  border:1px solid #d7e1eb;
  border-radius:9px;
  background:#f6f8fb;
  cursor:pointer;
}
.master-photo-current-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  border-radius:6px;
}
.master-photo-current>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.master-photo-current b{font-size:10px}
.master-photo-remove{
  margin-top:4px;
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  gap:6px!important;
  color:#a13e3e;
  font-size:9px;
}
.master-photo-remove input{
  width:auto!important;
  margin:0;
}

#stock-compact-table{
  min-width:1080px!important;
}
#stock-compact-table th:nth-child(1),#stock-compact-table td:nth-child(1){width:6%}
#stock-compact-table th:nth-child(2),#stock-compact-table td:nth-child(2){width:14%}
#stock-compact-table th:nth-child(3),#stock-compact-table td:nth-child(3){width:9%}
#stock-compact-table th:nth-child(4),#stock-compact-table td:nth-child(4){width:10%}
#stock-compact-table th:nth-child(5),#stock-compact-table td:nth-child(5){width:10%}
#stock-compact-table th:nth-child(6),#stock-compact-table td:nth-child(6){width:8%}
#stock-compact-table th:nth-child(7),#stock-compact-table td:nth-child(7){width:10%}
#stock-compact-table th:nth-child(8),#stock-compact-table td:nth-child(8){width:5%}
#stock-compact-table th:nth-child(9),#stock-compact-table td:nth-child(9){width:5%}
#stock-compact-table th:nth-child(10),#stock-compact-table td:nth-child(10){width:4%}
#stock-compact-table th:nth-child(11),#stock-compact-table td:nth-child(11){width:6%}
#stock-compact-table th:nth-child(12),#stock-compact-table td:nth-child(12){width:13%}

#stock-compact-table tbody tr[data-search] td{
  height:50px!important;
  max-height:50px!important;
}
.stock-photo-cell{
  text-align:center!important;
  padding:4px!important;
}
.stock-model-photo{
  width:40px;
  height:40px;
  margin:0 auto;
  padding:2px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d8e2ec;
  border-radius:8px;
  background:#fff;
  cursor:pointer;
  overflow:hidden;
}
.stock-model-photo:hover{
  border-color:#9fbedd;
  box-shadow:0 2px 8px rgba(33,77,118,.12);
}
.stock-model-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  border-radius:5px;
}
.stock-model-photo.empty-photo{
  cursor:default;
  background:#f3f6f9;
  color:#9aa9ba;
  border-style:dashed;
}
.stock-model-photo.empty-photo span{
  font-size:8px;
  font-weight:800;
  letter-spacing:.4px;
}
.master-photo-modal{
  width:min(640px,90vw);
}
.master-photo-modal-head span{
  font-size:9px;
  font-weight:800;
  letter-spacing:.8px;
  color:#67809a;
}
.master-photo-modal-head h2{
  margin:3px 0 2px;
}
.master-photo-modal-head p{
  margin:0;
  color:#718198;
}
.master-photo-modal-image{
  margin-top:12px;
  min-height:220px;
  max-height:62vh;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e0e7ef;
  border-radius:12px;
  background:#f7f9fb;
  overflow:hidden;
}
.master-photo-modal-image img{
  max-width:100%;
  max-height:58vh;
  object-fit:contain;
}
.master-photo-modal-meta{
  margin-top:10px;
  padding:8px 10px;
  border-radius:9px;
  background:#f4f7fa;
  color:#5f7186;
  font-size:9px;
}

@media (hover:none), (pointer:coarse){
  #stock-compact-table{min-width:1080px!important}
  .stock-model-photo{width:44px;height:44px}
  #stock-compact-table tbody tr[data-search] td{
    height:54px!important;
    max-height:54px!important;
  }
}


/* =====================================================================
   V2.5.3 - LOKASI TERPASANG LIVE SEARCH
   ===================================================================== */
.location-search-tools{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 9px;
  min-height:34px;
}
.location-search-box{
  position:relative;
  display:flex;
  align-items:center;
  flex:1 1 520px;
  max-width:680px;
  min-width:220px;
}
.location-search-icon{
  position:absolute;
  left:10px;
  z-index:1;
  color:#7890aa;
  font-size:16px;
  pointer-events:none;
}
.location-search-input{
  width:100%;
  height:34px;
  padding:0 34px 0 32px!important;
  border:1px solid #dce5ef!important;
  border-radius:9px!important;
  background:#fff!important;
  font-size:10px!important;
  color:#213852!important;
  outline:none;
  transition:border-color .12s ease,box-shadow .12s ease;
}
.location-search-input:focus{
  border-color:#9fc3e8!important;
  box-shadow:0 0 0 3px rgba(56,130,206,.09)!important;
}
.location-search-clear{
  position:absolute;
  right:7px;
  width:23px;
  height:23px;
  border:0;
  border-radius:7px;
  background:#eef3f8;
  color:#60748b;
  font-size:15px;
  line-height:1;
  cursor:pointer;
}
.location-search-clear:hover{background:#e2eaf3;color:#284f7a}
.location-search-clear[hidden]{display:none!important}
.location-search-count{
  flex:0 0 auto;
  display:flex;
  align-items:baseline;
  gap:3px;
  padding:5px 9px;
  border:1px solid #e2e8f0;
  border-radius:8px;
  background:#f7f9fc;
  color:#738399;
  font-size:9px;
  white-space:nowrap;
}
.location-search-count b{font-size:11px;color:#2c527c}
.location-data-table tbody tr[hidden]{display:none!important}
.location-tablewrap{
  scrollbar-width:thin;
}

@media (hover:none), (pointer:coarse){
  .location-search-tools{
    align-items:stretch;
    flex-wrap:wrap;
  }
  .location-search-box{
    flex:1 1 100%;
    max-width:none;
  }
  .location-search-input{
    height:42px;
    font-size:12px!important;
    padding-left:34px!important;
  }
  .location-search-clear{
    top:6px;
    width:30px;
    height:30px;
  }
  .location-search-count{
    margin-left:auto;
    font-size:10px;
    padding:7px 10px;
  }
}


/* =====================================================================
   V2.5.4 - SECURE LOCAL/LAN LOGIN
   ===================================================================== */
.auth-screen{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  background:
    radial-gradient(circle at 20% 15%,rgba(32,126,218,.18),transparent 32%),
    radial-gradient(circle at 80% 85%,rgba(30,186,213,.13),transparent 30%),
    linear-gradient(145deg,#061526,#0a2340 58%,#071a30);
  color:#1c3550;
}
.auth-card{
  width:min(430px,94vw);
  padding:26px 28px 20px;
  border:1px solid rgba(129,179,224,.28);
  border-radius:20px;
  background:rgba(255,255,255,.98);
  box-shadow:0 28px 80px rgba(0,9,25,.35);
}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.auth-brand img{width:92px;height:44px;object-fit:contain;object-position:left center}
.auth-brand>div{display:flex;flex-direction:column;gap:2px;border-left:1px solid #dce5ef;padding-left:11px}
.auth-brand b{font-size:13px;letter-spacing:.5px;color:#102e4e}
.auth-brand small{font-size:9px;color:#778ba0}
.auth-kicker{font-size:8px;font-weight:800;letter-spacing:1.35px;color:#4381bd;margin-bottom:6px}
.auth-card h1{margin:0 0 5px;font-size:25px;color:#102c49}
.auth-sub{margin:0 0 18px;color:#71849a;font-size:10px;line-height:1.55}
.auth-form{display:flex;flex-direction:column;gap:11px}
.auth-form label{display:flex;flex-direction:column;gap:5px;font-size:9px;font-weight:750;color:#536b83}
.auth-form input[type=text],.auth-form input[type=password],.auth-form input:not([type]){
  height:39px!important;width:100%!important;box-sizing:border-box;padding:0 11px!important;
  border:1px solid #d5e0eb!important;border-radius:9px!important;background:#fff!important;
  color:#1e3854!important;font-size:11px!important;outline:none;
}
.auth-form input:focus{border-color:#82b6e5!important;box-shadow:0 0 0 3px rgba(49,132,211,.10)!important}
.auth-form label>small{font-size:8px;font-weight:500;color:#8898aa}
.auth-password{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center}
.auth-password button{height:39px;padding:0 10px;border:1px solid #d8e2ec;border-radius:9px;background:#f5f8fb;color:#4e6c8a;font-size:9px;font-weight:750;cursor:pointer}
.auth-remember{flex-direction:row!important;align-items:center!important;gap:7px!important;font-weight:600!important;cursor:pointer}
.auth-remember input{width:15px!important;height:15px!important;margin:0!important}
.auth-primary{height:42px;border:0;border-radius:10px;background:linear-gradient(135deg,#0d5eaa,#168bc8);color:#fff;font-size:11px;font-weight:800;letter-spacing:.15px;cursor:pointer;box-shadow:0 7px 18px rgba(15,99,172,.20)}
.auth-primary:hover{filter:brightness(1.04)}
.auth-primary:disabled{opacity:.65;cursor:wait}
.auth-msg{min-height:16px;padding:0 2px;font-size:9px;line-height:1.45;color:#6d8095}
.auth-msg.bad{color:#b33b46}.auth-msg.ok{color:#21754e}
.auth-footnote{display:flex;gap:9px;align-items:flex-start;margin-top:16px;padding:10px;border:1px solid #e2e9f0;border-radius:10px;background:#f7f9fc;color:#657a91}
.auth-footnote>span{font-size:16px}.auth-footnote>div{display:flex;flex-direction:column;gap:2px}.auth-footnote b{font-size:9px;color:#3d5c7a}.auth-footnote small{font-size:8px;line-height:1.45}
.auth-alert{display:flex;flex-direction:column;gap:5px;padding:12px;border-radius:10px;font-size:9px;line-height:1.55;margin-top:14px}
.auth-alert.warn{background:#fff8e8;border:1px solid #f0d795;color:#70551b}.auth-alert code{background:rgba(255,255,255,.7);padding:2px 4px;border-radius:4px}
.auth-icon-lock{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#edf5fd;color:#1b68a9;font-size:25px;margin:4px 0 13px}
.auth-card footer{margin-top:18px;padding-top:12px;border-top:1px solid #e5ebf1;text-align:center;color:#8a98a8;font-size:8px}
.enterprise-user{user-select:none}
@media (hover:none),(pointer:coarse){
  .auth-screen{padding:14px}.auth-card{padding:22px 18px 18px;border-radius:17px}
  .auth-form input[type=text],.auth-form input[type=password],.auth-form input:not([type]){height:44px!important;font-size:13px!important}
  .auth-password button{height:44px;font-size:10px}.auth-primary{height:46px;font-size:12px}
}


/* =====================================================================
   V2.5.5 - EXPLICIT VISIBLE LOGOUT BUTTON
   ===================================================================== */
.enterprise-logout-btn{
  flex:0 0 auto;
  height:32px;
  min-width:82px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:9px;
  background:rgba(255,255,255,.075);
  color:#eaf3ff;
  font-size:9.5px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.enterprise-logout-btn:hover{
  background:rgba(223,73,84,.20);
  border-color:rgba(255,130,139,.45);
  color:#fff;
}
.enterprise-logout-btn:active{transform:translateY(1px)}
.enterprise-logout-btn:disabled{opacity:.55;cursor:wait}
.enterprise-logout-btn .logout-icon{font-size:15px;line-height:1}
.enterprise-logout-btn.is-logging-out .logout-label{opacity:.7}

/* Desktop: keep account name visible but logout separate and obvious. */
.enterprise-user{
  min-width:118px!important;
  max-width:155px;
}
.enterprise-user>div{
  min-width:0;
}
.enterprise-user b,.enterprise-user small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Touch/PWA: profile can stay compact/hidden, but Logout MUST remain visible. */
@media (hover:none), (pointer:coarse){
  .enterprise-logout-btn{
    display:inline-flex!important;
    height:38px!important;
    min-width:42px!important;
    width:42px!important;
    padding:0!important;
    border-radius:10px!important;
  }
  .enterprise-logout-btn .logout-label{display:none!important}
  .enterprise-logout-btn .logout-icon{font-size:18px!important}
}

/* Very narrow phone header */
@media (max-width:420px){
  .enterprise-logout-btn{
    width:38px!important;
    min-width:38px!important;
    height:36px!important;
  }
}


/* =====================================================================
   V3.0.1 ONLINE CLOUD EDITION
   ===================================================================== */
.cloud-online-status{color:#dfffee!important}.cloud-online-status i{background:#23d18b!important;box-shadow:0 0 0 4px rgba(35,209,139,.12)}
.cloud-settings-grid .cloud-core-card{min-height:210px}.cloud-kpi-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cloud-kpi-list>div{padding:10px;border:1px solid #e4ebf3;border-radius:10px;background:#f9fbfd;display:flex;flex-direction:column;gap:4px}.cloud-kpi-list small{font-size:8.5px;color:#74869c;text-transform:uppercase;letter-spacing:.04em}.cloud-kpi-list b{font-size:11px;color:#183653}.cloud-user-table,.cloud-audit-table{min-width:760px}.cloud-user-table td,.cloud-user-table th,.cloud-audit-table td,.cloud-audit-table th{white-space:nowrap}.cloud-audit-table th:nth-child(1){width:170px}.cloud-audit-table th:nth-child(2){width:150px}.cloud-audit-table th:nth-child(4){width:150px}
@media (hover:none),(pointer:coarse){.cloud-kpi-list{grid-template-columns:1fr 1fr}.cloud-user-table,.cloud-audit-table{min-width:720px}}


/* =====================================================================
   V3.1.1 TICKETING CENTER
   ===================================================================== */
.ticket-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.ticket-kpis button{border:1px solid #e1e8f0;border-radius:14px;background:#fff;padding:15px;text-align:left;cursor:pointer;box-shadow:0 5px 18px rgba(23,52,79,.05)}
.ticket-kpis span{display:block;font-size:9px;color:#78899c;text-transform:uppercase;letter-spacing:.05em}.ticket-kpis b{display:block;margin-top:6px;font-size:25px;color:#163b61}
.ticket-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.ticket-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ticket-card{background:#fff;border:1px solid #e2e9f1;border-left:4px solid #72a6d4;border-radius:14px;padding:15px;box-shadow:0 6px 20px rgba(25,53,80,.05)}.ticket-card.high{border-left-color:#e5a13b}.ticket-card.critical{border-left-color:#d95864}.ticket-card.low{border-left-color:#72a6d4}
.ticket-card-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.ticket-card-top>div:first-child{display:flex;flex-direction:column;gap:3px}.ticket-card-top b{font-size:12px;color:#173a5d}.ticket-card-top small{font-size:8px;color:#8b9aab}.ticket-card h3{margin:14px 0 5px;font-size:16px;color:#102f4e}.ticket-card>p{font-size:10px;line-height:1.5;color:#63788e;min-height:30px}.ticket-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.ticket-meta>span{display:flex;flex-direction:column;gap:3px;padding:8px;background:#f7f9fc;border:1px solid #edf1f5;border-radius:9px;font-size:8px;color:#8291a1}.ticket-meta b{font-size:9px;color:#36536f}.ticket-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.ticket-actions.detail{padding:12px 0;border-top:1px solid #e5ebf1;border-bottom:1px solid #e5ebf1}.ticket-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.ticket-detail-head h2{margin:4px 0 10px}.ticket-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ticket-detail-grid>div{padding:9px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;display:flex;flex-direction:column;gap:4px}.ticket-detail-grid small{font-size:8px;color:#8494a5}.ticket-detail-grid b{font-size:10px;color:#294b6d}.ticket-description,.ticket-resolution{margin-top:12px;padding:12px;border:1px solid #e4eaf0;border-radius:10px;background:#fff}.ticket-description p,.ticket-resolution p{font-size:10px;color:#5c7188;line-height:1.55}.ticket-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.ticket-log{display:flex;flex-direction:column;gap:3px;padding:9px 0;border-bottom:1px solid #edf1f4}.ticket-log b{font-size:9px;color:#294d70}.ticket-log span{font-size:9px;color:#647990}.ticket-log small{font-size:8px;color:#9aa6b2}.ticket-photo-group{margin-top:12px}.ticket-photo-group>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}.ticket-photo-group img{width:88px;height:68px;object-fit:cover;border-radius:8px;border:1px solid #dce4ec}.ticket-location-summary{margin-top:14px}.ticket-location-summary .report-metrics{grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){.ticket-kpis{grid-template-columns:1fr 1fr}.ticket-grid{grid-template-columns:1fr}.ticket-two-col{grid-template-columns:1fr}}
@media(max-width:520px){.ticket-kpis{grid-template-columns:1fr 1fr;gap:8px}.ticket-kpis button{padding:11px}.ticket-kpis b{font-size:20px}.ticket-toolbar{align-items:flex-start;flex-direction:column}.ticket-meta,.ticket-detail-grid{grid-template-columns:1fr}.ticket-card{padding:12px}.ticket-actions .btn{flex:1 1 auto;min-height:40px}.modalbox{max-width:96vw!important}}

/* V3.1.2 - responsive Ticketing modal; never crop the second column */
.modal .modalbox.ticket-modal312 {width:min(960px,calc(100vw - 28px))!important;max-width:960px!important;max-height:calc(100dvh - 30px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:26px!important;overscroll-behavior:contain}
.modal .ticket-modal312 #modalBody{width:100%;min-width:0;overflow-x:hidden;padding-top:4px}
.ticket-form-heading{max-width:100%;padding:4px 40px 10px 0}
.ticket-form-heading h2{font-size:24px;margin:8px 0}
.ticket-form-heading p{color:#6b7e93;font-size:13px;margin:0 0 10px}
.ticket-eyebrow{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#2265b1;font-weight:800}
.form.ticket-form.v312{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;width:100%!important;min-width:0!important;padding:20px!important}
.ticket-form.v312>label,.ticket-form.v312>.full,.ticket-form.v312 label>*{min-width:0!important;max-width:100%}
.ticket-form.v312 input:not([type=hidden]),.ticket-form.v312 select,.ticket-form.v312 textarea{display:block;width:100%!important;min-width:0!important;max-width:100%!important;font:inherit}
.ticket-form.v312 input[type=file]{white-space:normal}
.ticket-form.v312 .full{grid-column:1/-1!important}
.ticket-help{font-size:11px;color:#77879a;font-weight:400}
.ticket-site-hint{font-size:11px;color:#8c9cac;font-weight:400}
.ticket-site-valid{color:#138a62}
.ticket-category-line{display:flex;gap:8px;min-width:0;width:100%}
.ticket-category-line select{flex:1;min-width:0!important;width:0!important}
.ticket-category-line button{flex-shrink:0;white-space:nowrap}
.ticket-new-category{display:flex;gap:8px;align-items:center;margin-top:8px}
.ticket-new-category[hidden]{display:none!important}
.ticket-new-category input{flex:1}
.ticket-new-category button{flex-shrink:0}
.ticket-create-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:5px}
.ticket-create-footer span{max-width:500px;font-size:11px;color:#738398}
.ticket-create-footer button{min-width:135px}
.ticket-visit-section{margin-bottom:18px}
.ticket-visit-title{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:10px}
.ticket-visit-title h3{margin:0 0 4px}
.ticket-visit-title p{margin:0}
.ticket-visit-scroll{max-width:100%;overflow:auto}
.ticket-visit-table{min-width:750px!important}
.ticket-visit-table td small{display:block;color:#8494a5;margin-top:4px}
@media(max-width:850px){.form.ticket-form.v312{grid-template-columns:minmax(0,1fr)!important}.modal .modalbox.ticket-modal312{width:100%!important;max-width:100%!important;max-height:94dvh!important;padding:18px 14px!important}.ticket-form.v312 .full{grid-column:1/-1!important}}
@media(max-width:520px){.ticket-form-heading h2{font-size:20px}.ticket-category-line{flex-wrap:wrap}.ticket-category-line select{flex-basis:100%;width:100%!important}.ticket-new-category{flex-direction:column;align-items:stretch}.ticket-visit-title{align-items:flex-start;flex-direction:column}}

/* V3.1.3 – Compact Ticketing and ticket-sourced Surat Tugas */
.ticket-kpis313{gap:9px;margin-bottom:10px}
.ticket-kpis313 button{padding:9px 13px;border-radius:10px;min-height:60px;box-shadow:none}
.ticket-kpis313 b{font-size:20px;margin-top:3px}
.ticket-compact-panel313{padding:12px!important;max-width:100%;min-width:0}
.ticket-toolbar313{display:flex;flex-wrap:wrap;margin-bottom:9px;gap:12px}
.ticket-toolbar313>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:110px}
.ticket-toolbar313 small{font-size:11px;color:#70859d}
.ticket-tools313{display:flex;gap:7px;align-items:center;flex-wrap:wrap;max-width:100%}
.ticket-tools313 input[type=search]{width:min(340px,100%);min-height:34px;padding:8px 11px;border:1px solid #d8e2ee;background:#fff;border-radius:8px;font:inherit;font-size:12px;color:#143b5e}
.ticket-tools313 .btn{padding:8px 10px;min-height:34px;font-size:11px}
.ticket-compact-scroll313{overflow-x:auto;max-width:100%;border:1px solid #e7edf3;border-radius:10px}
.ticket-table313{width:100%;min-width:760px;table-layout:auto;border-collapse:collapse}
.ticket-table313 th{background:#f5f8fc;color:#587089;text-align:left;padding:10px 9px;font-size:10px;letter-spacing:.02em;font-weight:750;white-space:nowrap}
.ticket-table313 td{border-top:1px solid #e9eef4;padding:8px 9px;vertical-align:middle;font-size:11px;color:#39516a;line-height:1.35}
.ticket-table313 tbody tr:hover{background:#f9fbff}
.ticket-table313 td:nth-child(1){min-width:152px}
.ticket-table313 td:nth-child(2){min-width:145px;max-width:230px}
.ticket-table313 td:nth-child(3){max-width:260px}
.ticket-table313 td:nth-child(4){min-width:110px}
.ticket-table313 td small{display:block;font-size:10px;color:#8494a4;margin-top:3px}
.ticket-table313 .ticket-no313{font-size:11px;color:#155a9f;white-space:nowrap}
.ticket-table313 .ticket-desc313{overflow-wrap:anywhere;min-width:145px;color:#6b8197}
.ticket-table313 .badge{font-size:9px;padding:4px 7px}
.ticket-sla313{margin-top:3px}
.ticket-row-actions313{display:flex;gap:5px;flex-wrap:wrap}
.ticket-row-actions313 .btn{padding:6px 9px;min-height:28px;font-size:10px;white-space:nowrap;border-radius:7px}
.workorder-section313{padding:16px!important;margin-bottom:14px}
.workorder-picker313{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0 15px}
.workorder-picker313 label{font-size:11px;font-weight:700;color:#304e6b;display:flex;flex-direction:column;gap:6px;flex:1 1 300px;max-width:530px}
.workorder-picker313 input{border:1px solid #cbd8e9;border-radius:9px;padding:10px 12px;font-size:12px;min-width:0;width:100%;background:#fff;color:#223c55}
.ticket-workorders-table313{min-width:700px!important;width:100%;border-collapse:collapse}
.ticket-workorders-table313 th{font-size:10px;background:#f4f8fc;padding:10px;text-align:left}
.ticket-workorders-table313 td{font-size:11px;padding:9px 10px;border-top:1px solid #e8eef4;vertical-align:middle}
.ticket-workorders-table313 .badge{font-size:9px}
.workorder-separate313>details{margin:17px 0;border:1px solid #e0e9f3;background:#f7f9fd;border-radius:10px;padding:12px}
.workorder-separate313 summary{cursor:pointer;font-size:13px;font-weight:750;color:#244d72;padding:5px}
.workorder-separate313>details>.muted{padding:7px;font-size:11px}
.workorder-separate313 .pad{padding:0}
.modal .modalbox.workorder-modalbox313{width:min(870px,calc(100vw - 28px))!important;max-width:870px!important;max-height:calc(100dvh - 30px)!important;overflow:auto!important;overflow-x:hidden!important}
.workorder-modal313{min-width:0;width:100%;max-width:100%;overflow-wrap:anywhere}
.workorder-modal313 h2{margin:8px 0}
.workorder-summary313{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}
.workorder-summary313>div{border:1px solid #e2e9f1;background:#f7faff;border-radius:8px;padding:9px;min-width:0;display:flex;flex-direction:column;gap:4px}
.workorder-summary313 small{font-size:10px;color:#7e91a5}
.workorder-summary313 strong{font-size:12px;color:#234562;overflow-wrap:anywhere}
.workorder-complaint313{background:#fff;border:1px solid #e0e6ef;border-radius:9px;padding:12px;margin:9px 0 16px}
.workorder-complaint313 p{white-space:pre-wrap;margin:7px 0;color:#50657d;font-size:12px}
.workorder-form313{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%;min-width:0}
.workorder-form313 label,.workorder-form313 label input,.workorder-form313 label textarea{width:100%;min-width:0;max-width:100%}
.workorder-form313 .full{grid-column:1/-1}
.workorder-actions313{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:5px}
.workorder-warning313{font-size:11px;color:#b04e23;flex:1 1 100%}
@media(max-width:720px){.ticket-kpis313{grid-template-columns:repeat(2,minmax(0,1fr))}.ticket-compact-panel313{padding:9px!important}.ticket-tools313{width:100%}.ticket-tools313 input[type=search]{flex:1 1 100%;width:100%}.workorder-summary313{grid-template-columns:1fr}.workorder-form313{grid-template-columns:minmax(0,1fr)!important}.modal .modalbox.workorder-modalbox313{width:calc(100vw - 18px)!important;max-height:94dvh!important;padding:15px!important}}

/* V3.1.4 — Ticketing goes into the actual Visit & Penugasan form */
.visit-ticket-picker314{grid-column:1/-1;min-width:0;border:1px solid #c8d9ee;background:#f5f9ff;border-radius:12px;padding:16px;margin-bottom:5px}
.visit-ticket-top314 h3{margin:5px 0;font-size:16px;color:#11395f}
.visit-ticket-top314 p{font-size:12px;color:#69809a;margin:4px 0 10px}
.visit-ticket-search314{display:flex;flex-wrap:wrap;align-items:end;gap:9px}
.visit-ticket-search314 label{flex:1 1 320px;display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:750;color:#27476c;min-width:0}
.visit-ticket-search314 input{min-width:0;width:100%;background:#fff;border:1px solid #cbd7e5;border-radius:9px;padding:10px}
.visit-ticket-search314 .btn{font-size:11px;min-height:39px}
.visit-ticket-summary314{margin-top:12px;background:white;border:1px dashed #c8d6e5;padding:12px;border-radius:10px;min-width:0;font-size:12px;overflow-wrap:anywhere}
.ticket-linked314{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.ticket-linked314>b{color:#155ba2;font-size:13px}
.ticket-linked-info314{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;font-size:11px;margin:8px 0}
.visit-ticket-list314{margin-top:18px;padding:16px!important}
.visit-ticket-table314{min-width:740px;font-size:11px}
.visit-ticket-table314 td{padding:9px 10px;vertical-align:middle}
.visit-ticket-table314 td small{display:block;color:#7c8a9d;margin-top:3px}
@media(max-width:760px){.visit-ticket-picker314{padding:12px}.visit-ticket-search314 .btn{flex:1}.ticket-linked-info314{grid-template-columns:1fr}}
.ticket-visit-history314{margin-top:18px;padding:14px!important}.ticket-visit-history314 h3{font-size:15px;margin:0 0 7px}.ticket-visit-history314 p{font-size:11px}.ticket-visit-history314 .ticket-visit-table td{padding:9px;font-size:11px}.ticket-visit-history314 .ticket-visit-table small{display:block;font-size:10px;color:#7e91a5}

/* V3.1.9: reporting reconciliation with responsive tables */
.ptc-recon-report-head319 h3{margin:7px 0 4px;color:#153654;font-size:17px}
.ptc-report-visits319{min-width:0;max-width:100%}
.ptc-visit-recon319{border:1px solid #d6e3f0;border-radius:13px;margin:10px 0 16px;overflow:hidden;background:#fafcff}
.ptc-visit-recon-title319{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;padding:11px 14px;border-bottom:1px solid #d6e3f0}
.ptc-visit-recon-title319 span{font-size:12px;color:#48647e}
.ptc-recon-report-table319{min-width:640px;width:100%}
.ptc-recon-report-table319 th,.ptc-recon-report-table319 td{padding:8px;vertical-align:middle}
.ptc-recon-report-table319 td small{display:block;color:#64748b}
.ptc-recon-report-table319 input[type=number]{width:75px;max-width:100%;padding:8px}
.ptc-recon-report-table319 select{min-width:155px;padding:8px}
.ptc-recon-confirm319{display:flex!important;align-items:center;gap:9px;font-weight:600}
.ptc-recon-confirm319 input[type=checkbox]{width:19px;height:19px;flex:none}

/* V3.2.0: salam dashboard teknisi / akses foto lokasi */
.ptc-tech-greeting320{border-radius:18px;background:linear-gradient(118deg,#102a4d 0%,#1469bb 75%,#1799cf 100%);color:#fff;padding:22px 24px;margin:0 0 18px;box-shadow:0 9px 24px rgba(14,70,132,.15)}
.ptc-tech-hello320{font-weight:900;letter-spacing:.09em;font-size:12px;opacity:.9}
.ptc-tech-greeting320 h2{font-size:clamp(18px,2vw,25px);margin:10px 0 8px;color:#fff!important}
.ptc-tech-greeting320 p{margin:0 0 14px;font-size:13px;opacity:.94;max-width:680px}
.ptc-tech-actions320{display:flex;gap:9px;flex-wrap:wrap}.ptc-tech-greeting320 .btn.ghost{background:#fff;color:#164c87}
.ptc-photo-only-label320{padding:8px 10px;border-radius:10px;background:#ecfdf5;color:#166534;font-weight:700;font-size:12px}
@media(max-width:600px){.ptc-tech-greeting320{padding:18px 16px}.ptc-tech-actions320 .btn{flex:1}}


/* ======================================================================
   V3.1.11 — modern compact Ticketing + technician-first Android layout
   ====================================================================== */
/* Multi-tech checkbox grid: no giant native checkboxes, no wasted space */
.team-tech-options317{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(138px,1fr))!important;gap:8px!important;width:100%!important;max-height:200px;overflow-y:auto;overflow-x:hidden;padding:3px;margin:6px 0 0}
.team-tech-option317{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;margin:0!important;padding:9px 10px!important;min-height:40px!important;min-width:0!important;background:#f8fbff;border:1px solid #dbe6f4;border-radius:10px;font-size:12px!important;font-weight:700;color:#214260;cursor:pointer;line-height:1.3!important}
.team-tech-option317:hover{border-color:#93b8ed;background:#f0f7ff}
.team-tech-option317:has(input:checked){border-color:#2779d9;background:#edf6ff}
.team-tech-option317 input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;accent-color:#1875d1!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;max-width:17px!important;max-height:17px!important;flex:0 0 17px!important;margin:0!important;padding:0!important;border-radius:4px!important;box-shadow:none!important;transform:none!important;position:static!important}
.team-tech-option317 span{display:block!important;overflow-wrap:anywhere;font-size:12px!important;line-height:1.35!important}
.visit-team317 .team-tech-options317{max-height:168px}
/* Detail ticket drawer-like modal with tidy control groups */
.modal .modalbox.ptc-detail-modal3111{width:min(840px,calc(100vw - 28px))!important;max-width:840px!important;max-height:min(92dvh,940px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:22px!important}
.ptc-detail-modal3111 .ticket-detail-head{padding:0 30px 12px 0;gap:10px;align-items:center}
.ptc-detail-modal3111 .ticket-detail-head h2{font-size:20px;margin:4px 0}
.ptc-detail-modal3111 .ticket-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.ptc-detail-modal3111 .ticket-detail-grid>div{padding:10px 12px;min-width:0;border-radius:10px}
.ptc-detail-modal3111 .ticket-detail-grid small{font-size:10px}
.ptc-detail-modal3111 .ticket-detail-grid b{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.ptc-detail-modal3111 .ticket-description,.ptc-detail-modal3111 .ticket-resolution{margin-top:10px;padding:12px 14px}
.ptc-detail-modal3111 .ticket-description p,.ptc-detail-modal3111 .ticket-resolution p{font-size:12px;margin:5px 0;line-height:1.5;overflow-wrap:anywhere}
.ptc-detail-modal3111 .ticket-photo-group{margin-top:10px}
.ptc-detail-modal3111 .ticket-photo-group img{width:78px;height:62px}
.ptc-detail-modal3111 .ticket-actions.detail{display:flex;flex-wrap:wrap;gap:7px;padding:11px 0;margin-top:10px}
.ptc-detail-modal3111 .ticket-actions.detail>.btn{min-height:35px;padding:8px 11px;font-size:11px;flex:0 1 auto}
.ptc-detail-docs3111{display:flex;gap:7px;flex-wrap:wrap;width:100%;margin-bottom:3px}
.ptc-detail-docs3111 button{min-height:38px;padding:9px 13px;font-size:12px;flex:0 1 auto}
.ptc-detail-more3111{border:1px solid #e4eaf3;border-radius:9px;background:#f9fbfd;padding:9px 12px}
.ptc-detail-more3111 summary{cursor:pointer;font-size:11px;color:#647990;font-weight:700}
.ptc-detail-more3111 .btn{margin:10px 7px 0 0;font-size:11px}
.ptc-detail-danger3111{width:100%;margin-top:2px}
.ptc-detail-modal3111 .ticket-two-col{margin-top:10px;gap:9px}
.ptc-detail-modal3111 .ticket-two-col h3{font-size:13px}
.ptc-detail-modal3111 .ticket-log{padding:8px 0}
.ptc-detail-modal3111 .ticket-log b,.ptc-detail-modal3111 .ticket-log span,.ptc-detail-modal3111 .ticket-log small{font-size:11px}
/* User technican small-screen bottom navigation */
.ptc-tech-bottom-nav3111{display:none}
.ptc-tech-home3111{max-width:1080px;margin:auto}
.ptc-tech-hero3111{border-radius:18px;padding:22px;background:linear-gradient(125deg,#0a2c58,#0757a7 72%,#0d93c3);box-shadow:0 9px 24px rgba(9,59,122,.15);color:#fff}
.ptc-tech-kicker3111{font-size:10px;letter-spacing:.12em;font-weight:800;color:#a8dafe}
.ptc-tech-hero3111 h1{color:#fff;font-size:clamp(19px,3vw,26px);line-height:1.25;margin:10px 0 8px}
.ptc-tech-hero3111 p{font-size:13px;line-height:1.55;max-width:500px;margin:0 0 16px;color:#dfedff}
.ptc-tech-hero3111 button{background:#fff;color:#15509c;border:0;border-radius:11px;padding:12px 15px;font-weight:800;cursor:pointer;display:flex;align-items:center;gap:16px}
.ptc-tech-metrics3111{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.ptc-tech-metrics3111>div{display:flex;flex-direction:column;gap:6px;border:1px solid #deebf7;background:#fff;border-radius:13px;padding:14px}
.ptc-tech-metrics3111 b{font-size:25px;color:#0f3e77}.ptc-tech-metrics3111 small{color:#627b95;font-size:11px}
.ptc-tech-section3111{margin:17px 0}.ptc-tech-section-head3111{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 9px}.ptc-tech-section-head3111 h2{margin:0;font-size:16px}.ptc-tech-section-head3111 button{border:0;background:none;color:#1467b4;font-weight:800;cursor:pointer}
.ptc-tech-recent3111,.ptc-tech-ticket-list3111{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:10px}
.ptc-tech-task3111{border:1px solid #e0e9f3;border-radius:13px;background:#fff;box-shadow:0 2px 10px rgba(20,58,95,.05);padding:14px;text-align:left;display:flex;flex-direction:column;gap:9px;cursor:pointer;min-width:0;color:#193c5e}
.ptc-tech-task3111>span:first-child{display:flex;align-items:center;gap:8px;justify-content:space-between;font-size:11px}
.ptc-tech-task3111>span:first-child strong{color:#1364b2;font-size:12px}.ptc-tech-task3111>b{font-size:14px}.ptc-tech-task3111>small{color:#627b93;line-height:1.4;min-height:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ptc-tech-task-bottom3111{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:auto}.ptc-tech-task-bottom3111 em{font-style:normal;color:#1768b4;font-weight:800;font-size:11px}
.ptc-tech-empty3111{background:#fff;border:1px dashed #c9d9e9;padding:25px 12px;border-radius:13px;text-align:center;color:#627b93}
.ptc-tech-shortcuts3111{display:flex;gap:10px}.ptc-tech-shortcuts3111 button{flex:1;min-width:0;background:#eef5ff;color:#185595;border:1px solid #dce9f7;border-radius:12px;font-weight:800;padding:14px;cursor:pointer;display:flex;justify-content:center;gap:7px}
.ptc-tech-account3111{text-align:center;padding:14px}.ptc-tech-account3111 h2{margin:4px 0 10px}.ptc-tech-avatar3111{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#e5f1ff;color:#176cbb;font-size:25px;font-weight:800;margin:20px auto 10px}.ptc-tech-account3111 .danger{margin-top:18px}
@media(max-width:760px){
 body.ptc-technician3111 main{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
 body.ptc-technician3111 #content>.pad{padding:14px 12px!important}
 body.ptc-technician3111 .enterprise-toolrow{display:none!important}
 body.ptc-technician3111 .welcome-marquee{display:none!important}
 body.ptc-technician3111 .enterprise-clock{display:none!important}
 body.ptc-technician3111 .enterprise-mini-brand{min-width:0}
 body.ptc-technician3111 .enterprise-toprow{height:auto;min-height:60px;gap:8px}
 body.ptc-technician3111 .enterprise-user{max-width:140px;min-width:0}
 body.ptc-technician3111 .enterprise-user b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.ptc-technician3111 .enterprise-logout-btn{display:none!important}
 body.ptc-technician3111 .ptc-tech-bottom-nav3111{position:fixed;bottom:0;left:0;right:0;z-index:18;background:#fff;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;border-top:1px solid #dce7f1;box-shadow:0 -9px 24px rgba(13,50,84,.13);padding:5px 8px calc(6px + env(safe-area-inset-bottom,0px))}
 .ptc-tech-bottom-nav3111 button{background:transparent;border:0;border-radius:11px;color:#648099;font-size:10px;font-weight:700;min-height:52px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;cursor:pointer}
 .ptc-tech-bottom-nav3111 button.active{background:#e8f3ff;color:#0d63b6}
 .ptc-tab-icon3111{font-size:21px;line-height:22px}
 body.ptc-technician3111 .ptc-tech-hero3111{padding:18px 16px;border-radius:16px}
 body.ptc-technician3111 .ptc-tech-hero3111 h1{font-size:20px}
 body.ptc-technician3111 .ptc-tech-hero3111 p{font-size:12px}
 body.ptc-technician3111 .ptc-tech-metrics3111{gap:7px;margin:10px 0}
 body.ptc-technician3111 .ptc-tech-metrics3111>div{padding:12px 8px;align-items:center;text-align:center}
 body.ptc-technician3111 .ptc-tech-metrics3111 b{font-size:22px}
 body.ptc-technician3111 .ptc-tech-metrics3111 small{font-size:10px}
 body.ptc-technician3111 .ptc-tech-recent3111,body.ptc-technician3111 .ptc-tech-ticket-list3111{grid-template-columns:1fr!important}
 body.ptc-technician3111 #ptcCompactRows313 .ticket-compact-scroll313{display:block!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
 body.ptc-technician3111 #ticketingRoot .ticket-kpis{display:none!important}
 body.ptc-technician3111 .ticket-compact-panel313{border:0!important;padding:0!important;box-shadow:none!important;background:transparent!important}
 body.ptc-technician3111 .ticket-toolbar313{background:transparent!important;border:0!important;padding:4px 0!important}
 body.ptc-technician3111 .ticket-toolbar313 .ticket-tools313{display:flex;gap:7px}
 body.ptc-technician3111 .ticket-toolbar313 .ticket-tools313 input{width:100%;max-width:none;flex:1 1 100%;min-height:42px}
 body.ptc-technician3111 .ptc-detail-modal3111 .ticket-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.ptc-technician3111 .modal .modalbox.ptc-detail-modal3111{width:100%!important;max-width:100%!important;max-height:93dvh!important;padding:15px 12px max(20px,env(safe-area-inset-bottom,0px))!important;border-radius:18px 18px 0 0!important}
 body.ptc-technician3111 .ptc-detail-docs3111 .btn{flex:1 1 150px}
 body.ptc-technician3111 .ptc-detail-modal3111 .ticket-actions.detail>.btn{flex:1 1 125px;min-height:42px!important}
}
@media(max-width:570px){.team-tech-options317{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:175px}.ptc-detail-modal3111 .ticket-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ptc-detail-modal3111 .ticket-detail-head h2{font-size:17px}}
/* V3.1.11 last mobile override: technician does not need a large desktop sidebar.
   Higher specificity also covers Chrome device preview with mouse pointer. */
@media(max-width:760px){
 body.ptc-technician3111 .sidebar,
 html.ptc-desktop-pointer body.ptc-technician3111 .sidebar{transform:translateX(-110%)!important;left:0!important;pointer-events:none!important}
 body.ptc-technician3111 .sidebar.open,
 html.ptc-desktop-pointer body.ptc-technician3111 .sidebar.open{transform:translateX(-110%)!important}
 body.ptc-technician3111 main,
 html.ptc-desktop-pointer body.ptc-technician3111 main{margin-left:0!important;width:100%!important;min-width:0!important}
 body.ptc-technician3111 .sidebar-backdrop{display:none!important}
 body.ptc-technician3111 .enterprise-menu{display:none!important}
}
.ptc-team-picker3111{min-width:0;grid-column:1/-1}.ptc-team-picker-title3111{display:flex;justify-content:space-between;align-items:center;gap:6px;color:#27466c;font-size:12px;margin:7px 0 2px}.ptc-team-picker-title3111 small{font-size:11px;color:#7187a0;font-weight:400}
.ptc-tech-search3111{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dbe6f1;border-radius:12px;padding:2px 12px;margin-bottom:12px;color:#6a86a3}.ptc-tech-search3111 span{font-size:24px}.ptc-tech-search3111 input{width:100%;min-width:0;min-height:42px;border:0!important;outline:0;background:transparent!important;color:#203d60;font-size:13px}
.ptc-tech-location-list3111{display:grid;grid-template-columns:repeat(auto-fit,minmax(285px,1fr));gap:10px}.ptc-tech-location3111{display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:10px;row-gap:9px;align-items:center;padding:12px;border:1px solid #dfe8f2;border-radius:12px;background:#fff}.ptc-tech-location-icon3111{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#eaf4ff;color:#0d65bb;font-size:22px}.ptc-tech-location3111>div:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:3px}.ptc-tech-location3111 b{font-size:13px;color:#153b67;overflow-wrap:anywhere}.ptc-tech-location3111 small{font-size:11px;color:#6b8298}.ptc-tech-location3111 span{font-size:10px;color:#96a2b1}.ptc-tech-location3111 button{grid-column:1/-1;justify-self:stretch;cursor:pointer;min-height:35px;border:1px solid #dceaff;background:#eff7ff;border-radius:8px;color:#1165b6;font-weight:750;font-size:11px}.ptc-tech-location3111[hidden]{display:none!important}
@media(max-width:760px){body.ptc-technician3111 .ptc-tech-location-list3111{grid-template-columns:1fr}}


/* V3.1.13 — SPV compact touch layout, ticket cards, photo zoom */
.ptc-spv-nav313{display:none}
.ptc-spv-card-list313{display:none}
.ptc-photo-zoom313{display:none;position:fixed;inset:0;z-index:999999;background:rgba(3,15,31,.97);color:#fff;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);flex-direction:column}
.ptc-photo-zoom313.open{display:flex}.ptc-zoom-open313{overflow:hidden!important}
.ptc-zoom-actions313{display:flex;align-items:center;gap:9px;padding:12px 15px;min-height:58px}
.ptc-zoom-actions313 span{font-weight:750;font-size:13px;flex:1}
.ptc-zoom-actions313 button{background:#1c3450;color:white;border:1px solid #4d6684;border-radius:12px;min-width:43px;min-height:43px;font-size:22px;cursor:pointer}
.ptc-zoom-stage313{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-x pan-y}
.ptc-zoom-stage313 img{max-height:85%;max-width:95%;object-fit:contain;transform-origin:center center;transition:transform .09s ease;user-select:none;-webkit-user-select:none}
.ptc-zoom-help313{text-align:center;padding:9px;color:#b7c8db;font-size:12px}
.ticket-photo-group a img{cursor:zoom-in}
@media(max-width:760px){
 body.ptc-spv313 .sidebar,html.ptc-desktop-pointer body.ptc-spv313 .sidebar{transform:translateX(-110%)!important;left:0!important;pointer-events:none!important}
 body.ptc-spv313 .sidebar.open{transform:translateX(-110%)!important}
 body.ptc-spv313 main,html.ptc-desktop-pointer body.ptc-spv313 main{margin-left:0!important;width:100%!important;min-width:0!important;padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))!important}
 body.ptc-spv313 .sidebar-backdrop,body.ptc-spv313 .enterprise-menu{display:none!important}
 body.ptc-spv313 .enterprise-toolrow,body.ptc-spv313 .welcome-marquee,body.ptc-spv313 .enterprise-clock{display:none!important}
 body.ptc-spv313 .enterprise-toprow{height:auto!important;min-height:60px!important;gap:9px!important}
 body.ptc-spv313 .enterprise-user{min-width:0!important;max-width:132px!important}
 body.ptc-spv313 .enterprise-user b{font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.ptc-spv313 .enterprise-logout-btn{display:none!important}
 body.ptc-spv313 #content>.pad{padding:12px!important;min-width:0}
 body.ptc-spv313 .contenthead{gap:10px;flex-wrap:wrap;align-items:flex-start}
 body.ptc-spv313 .contenthead h1{font-size:21px}
 body.ptc-spv313 .contenthead>.btn{min-height:42px}
 body.ptc-spv313 .ptc-spv-nav313{position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));bottom:0;left:0;right:0;z-index:45;background:#fff;border-top:1px solid #dde7f1;box-shadow:0 -8px 24px rgba(8,31,60,.13);padding:5px 5px calc(6px + env(safe-area-inset-bottom,0px))}
 .ptc-spv-nav313 button{background:transparent;border:0;border-radius:10px;min-height:51px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;color:#648098;font-size:10px;font-weight:750;cursor:pointer}
 .ptc-spv-nav313 button i{font-size:22px;font-style:normal;line-height:1.1}
 .ptc-spv-nav313 button.active{background:#eaf3ff;color:#1466c3}
 body.ptc-spv313 .ticket-compact-scroll313{display:none!important}
 body.ptc-spv313 .ptc-spv-card-list313{display:grid;grid-template-columns:1fr;gap:10px;padding-top:10px}
 body.ptc-spv313 #ticketingRoot .ticket-kpis313{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.ptc-spv313 .ticket-kpis313>button{padding:11px!important}
 body.ptc-spv313 .ticket-compact-panel313{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
 body.ptc-spv313 .ticket-toolbar313{padding:6px 0!important;display:flex;flex-wrap:wrap;gap:9px}
 body.ptc-spv313 .ticket-tools313{display:flex;flex-wrap:wrap;width:100%}
 body.ptc-spv313 #ptcTicketSearch313{width:100%!important;max-width:none!important;min-height:44px;font-size:14px}
 body.ptc-spv313 .ptc-spv-ticket313{background:#fff;border:1px solid #dce7f1;border-radius:15px;padding:13px;box-shadow:0 3px 10px rgba(8,42,78,.035);min-width:0}
 .ptc-spv-ticket-header313{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#165aaf;font-size:13px}
 .ptc-spv-ticket-site313{font-size:15px;font-weight:800;color:#183b61;margin:8px 0 5px;overflow-wrap:anywhere}
 .ptc-spv-ticket313 p{color:#526980;font-size:12px;margin:4px 0 9px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .ptc-spv-ticket-meta313{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:11px;color:#697e94}
 .ptc-spv-ticket-meta313 span{overflow-wrap:anywhere}
 .ptc-spv-ticket-buttons313{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:6px;margin-top:12px}
 .ptc-spv-ticket-buttons313 .btn{min-width:0!important;min-height:42px!important;padding:9px 6px!important;font-size:11px!important}
 body.ptc-spv313 .modal .modalbox{width:calc(100vw - 16px)!important;max-width:none!important;max-height:92dvh!important;overflow-x:hidden!important;overflow-y:auto!important;border-radius:18px!important;padding:18px 12px calc(25px + env(safe-area-inset-bottom,0px))!important}
 body.ptc-spv313 .form,body.ptc-spv313 .ticket-form{grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
 body.ptc-spv313 .form>label,body.ptc-spv313 .form>.full{grid-column:1/-1!important;min-width:0;max-width:100%}
 body.ptc-spv313 input,body.ptc-spv313 select,body.ptc-spv313 textarea{max-width:100%;font-size:16px}
 body.ptc-spv313 .ptc-detail-modal3111 .ticket-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.ptc-spv313 .ptc-detail-modal3111 .ticket-actions.detail>.btn{min-height:44px!important}
 body.ptc-spv313 #dispatchForm .dispatch-row{grid-template-columns:minmax(0,1fr)!important}
 body.ptc-spv313 #dispatchForm .dispatch-row>*{min-width:0;width:100%}
 body.ptc-spv313 .visit-ticket-search314{display:flex;flex-wrap:wrap}
 body.ptc-spv313 .visit-ticket-search314 label{flex:1 1 100%;min-width:0}
 body.ptc-spv313 .ptc-detail-docs3111{display:flex;flex-wrap:wrap;gap:7px}
 body.ptc-spv313 .ptc-detail-docs3111 .btn{min-height:43px;flex:1 1 140px}
 body.ptc-spv313 .team-tech-options317{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:185px}
}
.ptc-spv-menu-list313{display:grid;gap:7px;margin:14px 0}
.ptc-spv-menu-list313 button{display:flex;justify-content:space-between;align-items:center;background:#f4f8ff;border:1px solid #dbe7f3;padding:14px;border-radius:10px;color:#174c80;text-align:left;font-size:14px;font-weight:700}
/* Bottom navigation must stay above legacy desktop stacking contexts. */
@media(max-width:760px){
  body.ptc-spv313 #ptcSpvQuickNav313{z-index:50000!important;pointer-events:auto!important}
  body.ptc-spv313 #modal:not(.hidden){z-index:50010!important}
  body.ptc-spv313:has(#modal:not(.hidden)) #ptcSpvQuickNav313{display:none!important}
}


/* =====================================================================
   V3.1.14 - Searchable Lokasi Terpasang (accessible combo dropdown)
   Browser native datalist is deliberately replaced for consistent UI.
   ===================================================================== */
.ticket-form.v312 .ticket-location314{min-width:0;position:relative;z-index:1;display:flex;flex-direction:column;gap:7px}
.ticket-form.v312 .ticket-location314.is-open314{z-index:30}
.ticket-location314>label{font-size:13px;font-weight:750;color:#304d6c;display:block}
.ticket-location314 .ticket-help{margin-left:5px;font-weight:400}
.ticket-location-control314{position:relative;min-width:0;width:100%}
.ticket-form.v312 .ticket-location-control314 input[name="site_query"]{
  height:48px!important;padding:10px 48px 10px 14px!important;
  border:1px solid #d3dfeb!important;border-radius:11px!important;
  color:#173958!important;background:#fff!important;font-size:14px!important;
  appearance:none;-webkit-appearance:none;
}
.ticket-form.v312 .ticket-location-control314 input[name="site_query"]:focus{
  outline:none!important;border-color:#4285ff!important;box-shadow:0 0 0 3px rgba(66,133,255,.12)!important
}
.ticket-form.v312 .ticket-location314.is-selected314 input[name="site_query"]{border-color:#95d5bc!important}
.ticket-location-control314 input[type="search"]::-webkit-search-cancel-button{cursor:pointer}
.ticket-location-toggle314{position:absolute;right:4px;top:4px;bottom:4px;width:42px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:8px;color:#395570;font-size:22px;cursor:pointer;z-index:2}
.ticket-location-toggle314:hover,.ticket-location-toggle314:focus-visible{background:#eaf3ff;color:#1c5da8;outline:none}
.ticket-location314.is-open314 .ticket-location-toggle314 span{transform:rotate(180deg)}
.ticket-location-toggle314 span{transition:transform .15s ease}
.ticket-location-menu314{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:250;max-height:min(310px,42dvh);overflow-y:auto;overscroll-behavior:contain;border:1px solid #cfdff0;border-radius:12px;background:#fff;color:#173958;box-shadow:0 14px 32px rgba(19,51,87,.18);padding:5px;-webkit-overflow-scrolling:touch}
.ticket-location-menu314[hidden]{display:none!important}
.ticket-location-option314{display:flex;flex-direction:column;gap:3px;width:100%;min-height:55px;align-items:flex-start;padding:9px 12px;border:0;border-radius:8px;cursor:pointer;background:transparent;color:#183a5d;text-align:left;font-family:inherit}
.ticket-location-option314:hover,.ticket-location-option314.is-active314,.ticket-location-option314:focus-visible{background:#eaf3ff;outline:none}
.ticket-location-option-title314{font-weight:750;font-size:13px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.ticket-location-option-sub314{color:#647f98;font-size:11px;line-height:1.3;white-space:normal}
.ticket-location-empty314,.ticket-location-count314{padding:13px 12px;color:#6b829a;font-size:12px}
.ticket-location-count314{border-top:1px solid #e7edf5}
.ticket-form.v312 .ticket-location314 .ticket-site-hint{display:block;line-height:1.35;font-size:11px;margin:1px 0 0;min-height:14px}
@media(max-width:600px){
 .ticket-form.v312 .ticket-location314{gap:6px}
 .ticket-form.v312 .ticket-location-control314 input[name="site_query"]{font-size:16px!important;height:50px!important}
 .ticket-location-menu314{max-height:min(270px,39dvh);border-radius:10px}
 .ticket-location-option314{min-height:54px;padding:10px 12px}
 .ticket-location-option-title314{font-size:13px}
 .ticket-location-toggle314{width:45px}
}

/* V3.1.15 - Tiket Pemasangan only */
.install315{--ptc-blue:#165ca4;color:#19324f}
.install-hero315{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;margin-bottom:16px;border-radius:18px;background:linear-gradient(125deg,#f1f8ff,#fff 58%,#e7f8fa);border:1px solid #d9e7f3}
.install-hero315 h1{font-size:clamp(1.4rem,2.4vw,2rem);line-height:1.2;margin:8px 0;color:#132a47}
.install-hero315 p{font-size:.91rem;color:#61758b;margin:0;max-width:650px}
.install-kpis315{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.install-kpis315>div{background:#fff;border:1px solid #d9e6f3;border-radius:14px;padding:17px;display:flex;flex-direction:column;gap:7px;box-shadow:0 5px 20px #163b6210}
.install-kpis315 span{color:#687d94;font-size:.83rem}
.install-kpis315 strong{font-size:1.8rem;color:#11385e}
.install-panel315{padding:0;overflow:hidden}
.install-toolbar315{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px}
.install-toolbar315>div{display:flex;gap:10px;align-items:center}
.install-toolbar315>div:first-child{align-items:flex-start;flex-direction:column;gap:4px}
.install-toolbar315 small{color:#74869a}
.install-toolbar315 input{min-width:220px;border:1px solid #cadbea;border-radius:10px;min-height:40px;padding:8px 12px}
.install-table-scroll315{overflow-x:auto}
.install-table-scroll315 table{width:100%;border-collapse:collapse;min-width:780px}
.install-table-scroll315 th{background:#f4f8fd;color:#536e8b;text-align:left;font-size:.79rem;padding:12px 15px;white-space:nowrap}
.install-table-scroll315 td{border-top:1px solid #e6eef6;padding:13px 15px;vertical-align:middle;font-size:.86rem}
.install-table-scroll315 td small{display:block;color:#77899b;margin-top:5px;font-size:.77rem;line-height:1.4}
.install-modal-title315{padding-bottom:10px}
.install-modal-title315 h2{margin:7px 0;font-size:1.5rem}
.install-modal-title315 p{font-size:.88rem;color:#74869a;margin:4px 0 14px}
.install-form315 input,.install-form315 select,.install-form315 textarea{max-width:100%;width:100%;border:1px solid #cadbea;border-radius:11px;background:#fff;color:#18314e;min-height:44px;padding:9px 11px}
.install-form315 textarea{min-height:95px;resize:vertical}
.install-form315 label{min-width:0}
.install-form315 small{display:block;font-size:.73rem;margin-top:5px}
.install-submit315{display:flex;justify-content:flex-end;margin-top:9px}
.install-detail315{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 19px}
.install-detail315>div{background:#f6f9fc;border:1px solid #e3edf5;border-radius:12px;padding:10px 13px;overflow-wrap:anywhere}
.install-detail315 small{font-size:.75rem;color:#74869a;display:block;margin-bottom:5px}
.install-detail315 b{display:block;font-size:.91rem}
.install-scope315{border:1px solid #e3edf5;border-radius:12px;padding:13px 15px;margin:12px 0;overflow-wrap:anywhere}
.install-scope315 p{white-space:pre-wrap;margin:7px 0 12px;font-size:.9rem}
.install-scope315 p:last-child{margin-bottom:0}
.install-tests315{display:grid;gap:9px;margin:12px 0}
.install-tests315>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e0eaf4;background:#f8fbff;border-radius:11px;padding:8px 12px}
.install-tests315>div select{width:190px;flex-shrink:0}
.install-result-list315{border:1px solid #dce9f5;border-radius:12px;overflow:hidden;margin:12px 0}
.install-result-row315{display:flex;justify-content:space-between;gap:12px;padding:11px 14px;border-bottom:1px solid #e6edf4;font-size:.88rem}
.install-result-row315:last-child{border-bottom:0}
.install-result-row315 b{color:#136c45;text-align:right}
.install-result-row315 b.is-failed315{color:#b22f37}
.install-actions315{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.install-photos315{display:flex;flex-wrap:wrap;gap:10px}
.install-photos315 img{width:120px;height:100px;object-fit:cover;border-radius:10px;border:1px solid #d7e5f0}
.install-link315{display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(100deg,#ebf5fd,#fafefe);border:1px solid #d9eaf5;border-radius:14px;padding:13px 16px;margin-bottom:14px}
.install-link315 small{display:block;color:#71849b;font-size:.8rem;margin-top:3px}
@media(max-width:700px){
 .install-hero315{flex-direction:column;align-items:stretch;padding:18px}
 .install-hero315 .btn{width:100%}
 .install-kpis315{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .install-kpis315>div{padding:12px}
 .install-kpis315 strong{font-size:1.45rem}
 .install-toolbar315{flex-direction:column;align-items:stretch}
 .install-toolbar315>div:last-child{display:flex;align-items:stretch}
 .install-toolbar315 input{min-width:0;flex:1;width:100%}
 .install-detail315{grid-template-columns:1fr}
 .install-tests315>div{flex-direction:column;align-items:stretch}
 .install-tests315>div select{width:100%}
 .install-actions315 .btn{flex:1 1 100%}
 .install-link315{flex-direction:column;align-items:stretch}
 .install-link315 button{width:100%}
}
.install-mobile-cards315{display:none}
.ptc-sales-bottom315{display:none}
@media(max-width:700px){
 .install-table-scroll315{display:none}
 .install-mobile-cards315{display:grid;gap:10px;padding:10px}
 .install-mobile-card315{border:1px solid #dfe9f2;background:#fff;border-radius:13px;padding:13px;overflow-wrap:anywhere}
 .install-mobile-top315{display:flex;align-items:center;justify-content:space-between;gap:8px}
 .install-mobile-top315 b{font-size:.8rem;color:#175a99}
 .install-mobile-card315 h3{margin:8px 0 2px;font-size:1.01rem;color:#173452}
 .install-mobile-card315 p{color:#71879b;margin:0;font-size:.83rem}
 .install-mobile-card315>small{display:block;color:#52697e;line-height:1.5;margin:8px 0}
 .install-mobile-card315>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:11px}
 .install-mobile-card315>div:last-child span{font-size:.76rem;color:#657d92;min-width:0}
 body.ptc-technician3111 .ptc-tech-bottom-nav3111{grid-template-columns:repeat(5,minmax(0,1fr))}
 body.ptc-sales315 .ptc-sales-bottom315{position:fixed;bottom:0;left:0;right:0;z-index:1800;background:#fff;box-shadow:0 -5px 22px #1c426525;border-top:1px solid #dce8f3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px 8px calc(6px + env(safe-area-inset-bottom,0px))}
 .ptc-sales-bottom315 button{border:0;background:transparent;color:#527792;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:49px;font-size:20px;border-radius:10px}
 .ptc-sales-bottom315 button span{font-size:10px;font-weight:700}
 .ptc-sales-bottom315 button.active{background:#e6f3ff;color:#1466b6}
 body.ptc-sales315 .pad{padding-bottom:82px}
 body.ptc-sales315:has(#modal:not(.hidden)) .ptc-sales-bottom315{display:none}
}

/* V3.1.16 — Satu modul Tiket Sales, jenis tiket sebagai filter internal. */
.sales316 .install-hero315{background:linear-gradient(125deg,#f1f8ff 0%,#ffffff 53%,#fff3e6 100%);border-color:#dce7ef}
.sales-kpis316{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.sales-kpi316{border:1px solid #dae6f2;background:#fff;border-radius:15px;padding:15px;text-align:left;color:#193654;box-shadow:0 3px 10px #10335909;cursor:pointer}
.sales-kpi316 small{display:block;font-size:12px;color:#6d7e94}.sales-kpi316 strong{display:block;font-size:25px;margin-top:5px}
.sales-tint0{background:#effbf5;border-color:#ccebdd}.sales-tint1{background:#fff6ed;border-color:#ffe2c6}.sales-tint2{background:#edf6ff;border-color:#d5e8ff}
.sales-listhead316{display:flex;justify-content:space-between;align-items:center;gap:12px}.sales-listhead316 h3{margin:0 0 4px;font-size:16px;color:#123254}.sales-listhead316 small{color:#75859b;font-size:12px}
.sales-filters316{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0 12px}.sales-filters316 button{border:1px solid #dce6f2;padding:9px 13px;border-radius:999px;background:#f5f8fc;color:#465d78;font-size:12px;font-weight:700;cursor:pointer}
.sales-filters316 button.active{color:#fff;background:#1e61ca;border-color:#1e61ca}.sales-filters316 button span{opacity:.77;margin-left:6px}
.sales-search316{margin-bottom:12px}.sales-search316 input{width:100%;max-width:500px;border:1px solid #cfdfed;border-radius:10px;padding:11px 13px;background:#fff;color:#203b5c}
.sales-kind316{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap;background:#e7f6eb;color:#168048}
.sales-kind-1{background:#fff0dc;color:#af5e10}.sales-kind-2{background:#e9f2ff;color:#1e5bbb}
.sales-panel316 .install-table-scroll315 th{font-size:11px}.sales-panel316 .install-table-scroll315 td{font-size:12px;vertical-align:middle}
.sales-panel316 .install-table-scroll315 td small{display:block;color:#71829a;margin-top:5px}
.sales-form316 .sales-uploads316{border:1px dashed #bcd0e7;background:#f7faff;padding:14px;border-radius:14px}
.sales-form316 .sales-uploads316 input{background:#fff;padding:10px}
.sales-preview316{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;margin:10px 0}
.sales-preview-item316{position:relative;aspect-ratio:1.1;border-radius:10px;overflow:hidden;border:1px solid #d1dfec;background:#fff}
.sales-preview-item316 img{width:100%;height:100%;object-fit:cover}.sales-preview-item316 button{position:absolute;right:4px;top:4px;width:27px;height:27px;border:0;border-radius:50%;background:#d93838;color:white;font-size:22px;cursor:pointer}
.sales-detail316 .full{grid-column:1/-1}.sales-pre316{white-space:pre-wrap;overflow-wrap:anywhere}.sales-actions316{display:flex;gap:9px;flex-wrap:wrap}.sales-ticket-card316 p{overflow-wrap:anywhere}
@media(max-width:900px){.sales-kpis316{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.sales-listhead316{align-items:flex-start}.sales-kpis316{gap:8px}.sales-kpi316{padding:12px}.sales-panel316{padding:12px}.sales-filters316{flex-wrap:nowrap;overflow-x:auto;padding-bottom:7px}.sales-filters316 button{flex:0 0 auto}.sales-actions316 .btn{width:100%}.sales-preview316{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Sales: smartphone navigation uses bottom quick actions; hide legacy desktop sidebar. */
@media(max-width:760px){
 body.ptc-sales315 .sidebar,html.ptc-desktop-pointer body.ptc-sales315 .sidebar,html.ptc-touch-device body.ptc-sales315 .sidebar{transform:translateX(-110%)!important;left:0!important;pointer-events:none!important}
 body.ptc-sales315 .sidebar.open,html.ptc-desktop-pointer body.ptc-sales315 .sidebar.open{transform:translateX(-110%)!important;pointer-events:none!important}
 body.ptc-sales315 main,html.ptc-desktop-pointer body.ptc-sales315 main{margin-left:0!important;width:100%!important;min-width:0!important;padding-bottom:85px!important}
 body.ptc-sales315 .sidebar-backdrop,body.ptc-sales315 .enterprise-menu{display:none!important}
 body.ptc-sales315 .enterprise-toolrow,body.ptc-sales315 .welcome-marquee{display:none!important}
}


/* V3.1.17 — Desktop / Android technician summary and Sales assignment */
.ptc-tech-metrics3111.ptc-tech-metrics317{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ptc-tech-sales-panel317{margin:14px 0;background:#fff;border:1px solid #d8e7f4;border-radius:15px;padding:15px}
.ptc-tech-sales-badges317{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:10px}
.ptc-sales-kind-stat317{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:2px;padding:11px 13px;border-radius:12px;border:1px solid #d9e8f3;color:#0b3157;background:#f4f8fd;cursor:pointer}
.ptc-sales-kind-stat317 strong{font-size:25px;line-height:1.2}
.ptc-sales-kind-stat317 span{font-weight:750}
.ptc-sales-kind-stat317 small{opacity:.8}
.ptc-sales-kind-stat317.sales-tint0{background:#edfcf3;border-color:#bfead0}
.ptc-sales-kind-stat317.sales-tint1{background:#fff6ec;border-color:#f9dfbd}
.ptc-sales-kind-stat317.sales-tint2{background:#f0f1ff;border-color:#d1d4fa}
.ptc-type-chip317{font-size:11px;font-weight:750;color:#1259aa;background:#eaf2ff;padding:5px 9px;border-radius:999px;display:inline-flex;align-items:center}
.ptc-type-chip317.sales{background:#e9f9ee;color:#087442}
.ptc-tech-task3111 span:has(.ptc-type-chip317){gap:7px;align-items:center;flex-wrap:wrap}
.ptc-summary-warning317{grid-column:1/-1;color:#a35f05}
.sales-team-picker317{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:9px 0}
.sales-team-choice317{display:flex!important;flex-direction:row!important;align-items:center!important;gap:11px!important;border:1px solid #d3e1f0;background:#f8fbff;padding:11px;border-radius:12px;cursor:pointer;font-size:14px!important;font-weight:700!important}
.sales-team-choice317:has(input:checked){background:#e9f3ff;border-color:#4c95e9}
.sales-team-choice317 input{width:18px!important;height:18px!important;flex-shrink:0!important;accent-color:#256de2}
.sales-team-choice317 span{display:flex;flex-direction:column;gap:2px}
.sales-team-choice317 small{font-size:11px;color:#62768d;font-weight:400}
.sales-note317{border:1px solid #bdddd6;background:#effaf6;border-radius:10px;padding:10px 13px;color:#185b49;font-size:13px}
.sales-delete317{margin-left:6px}
@media(max-width:680px){.ptc-tech-metrics3111.ptc-tech-metrics317{grid-template-columns:repeat(2,minmax(0,1fr))}.ptc-tech-sales-badges317{grid-template-columns:repeat(3,minmax(0,1fr))}.ptc-sales-kind-stat317{padding:10px 8px}.ptc-sales-kind-stat317 strong{font-size:20px}.ptc-sales-kind-stat317 span{font-size:12px}.sales-team-picker317{grid-template-columns:1fr}.sales-delete317{margin:5px 0}.ptc-tech-sales-panel317{padding:12px}}

/* V3.1.18 — Preview dan status unggahan foto pada form Sales / Teknisi */
.sales-photo-count318{font-weight:700;font-size:12px;color:#1557ab;padding:7px 0}
.sales-upload-status318{font-weight:600;font-size:13px;color:#215378;background:#edf6ff;border:1px solid #d4e6f7;border-radius:11px;padding:11px 12px}
.sales-preview-item316 button:disabled{opacity:.55;cursor:not-allowed}
.sales-uploads316{min-width:0}.sales-uploads316 input[type=file]{width:100%}


/* V3.1.19 — Custom Jenis Sistem + Filter Lokasi + Total Quantity */
.site-type-custom319 { margin-top:8px; padding:10px; background:var(--panel,#f3f7fc); border:1px solid #cbdcf4; border-radius:10px; }
.site-type-custom319[hidden] { display:none!important; }
.site-type-custom319 input { width:100%; box-sizing:border-box; }
.location-search-tools { flex-wrap:wrap; gap:12px; }
.location-filter-grid319 { display:flex; flex-wrap:wrap; align-items:end; gap:10px; width:100%; padding:5px 0; }
.location-filter-grid319 label { display:flex; flex:1 1 150px; min-width:135px; flex-direction:column; gap:4px; font-size:12px; font-weight:700; color:#486581; }
.location-filter-grid319 select { min-height:40px; padding:7px 10px; color:#193454; background:#fff; border:1px solid #d1deed; border-radius:9px; width:100%; max-width:100%; }
.location-filter-grid319 .btn {min-height:40px;}
.location-filters-mobile319 { padding:12px; border:1px solid #d6e6f8; border-radius:12px; margin:12px 0; background:#f8fbff; }
.location-filters-mobile319 #ptcTechLocationCount319 { white-space:nowrap; font-size:12px; color:#47627f; padding:8px 0; }
.inventory-total319 {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 16px;}
.inventory-total319>div {display:flex; flex-direction:column;gap:4px;padding:15px;background:#f5f9ff;border:1px solid #d3e2f7;border-radius:12px;}
.inventory-total319 span{font-size:12px;font-weight:700;color:#426183;}
.inventory-total319 b{font-size:28px;color:#0e3b72;font-weight:800;}
.inventory-total319 small{font-size:11px;color:#6a819a;}
.sales-kind-3{background:#f3e8ff!important;color:#7035aa!important;}
.sales-tint3{background:#f8f0ff!important;border-color:#e8d3ff!important;}
@media(max-width:760px){.inventory-total319{grid-template-columns:1fr 1fr;}.location-filter-grid319{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}.location-filter-grid319 label{min-width:0;}.location-filter-grid319 .btn{grid-column:1/-1;}}
@media(max-width:380px){.inventory-total319{grid-template-columns:1fr;}.location-filter-grid319{grid-template-columns:1fr;}}

.site-id319{display:block;margin-top:3px;font-size:10px;color:#69809a;white-space:normal;}

/* V3.1.21 — pencarian hardware & lampiran Troubleshooting tanpa batas jumlah tetap */
.hardware-master-search321,.hardware-service-search321{width:100%;margin-bottom:8px;box-sizing:border-box}
.ptc-tr-photo-count321{display:block;margin-top:7px;color:#42658c;font-size:12px}
.ptc-tr-photo-preview321{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.ptc-tr-photo-tile321{position:relative;display:inline-flex;border:1px solid #dce5ef;border-radius:8px;overflow:hidden;background:#f4f8fc}
.ptc-tr-photo-tile321 img{width:90px;height:78px;object-fit:cover}
.ptc-tr-photo-tile321 button{position:absolute;right:0;top:0;border:0;border-radius:0 0 0 8px;background:#ab2b37;color:white;cursor:pointer;min-width:27px;height:27px}
@media(max-width:540px){.ptc-tr-photo-tile321 img{width:72px;height:66px}}


/* InstallTrack V3.1.22 - Edit Hardware Search & SLA */
.ptc-hw-search322{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}
.ptc-hw-search322 input{flex:1;min-width:150px;max-width:100%}
.ptc-hw-search322 button{white-space:nowrap}
.ptc-hw-search-results322{display:block;margin:4px 0}
.ptc-sla-report322,.ptc-sla-home322,.ptc-sla-table322{margin-top:16px}
.ptc-sla-sectionhead322{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.ptc-sla-sectionhead322 h3{margin:0 0 5px}
.ptc-sla-sectionhead322 p{margin:0}
.ptc-sla-filters322{display:grid;grid-template-columns:repeat(5,minmax(125px,1fr));gap:12px}
.ptc-sla-filters322 label{min-width:0;font-size:13px;font-weight:600;display:flex;flex-direction:column;gap:7px}
.ptc-sla-filters322 select,.ptc-sla-filters322 input{min-width:0;width:100%;max-width:100%;padding:10px;border:1px solid var(--line,#d9e2ed);border-radius:10px;background:var(--card,#fff);color:inherit}
.ptc-sla-actions322{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.ptc-sla-metrics322{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px;margin:14px 0}
.ptc-sla-metric322{display:flex;flex-direction:column;gap:9px;min-height:90px}
.ptc-sla-metric322 small{color:var(--muted,#64748b);font-size:12px}
.ptc-sla-metric322 b{font-size:25px;line-height:1.1;overflow-wrap:anywhere}
.ptc-sla-small322{display:block;color:var(--muted,#64748b);margin-top:4px}
.ptc-sla-note322{margin-top:12px;line-height:1.5}
.ptc-sla-table322 .tablewrap{max-width:100%;overflow-x:auto}
.ptc-sla-table322 table{min-width:920px}
.ptc-sla-home322 .ptc-sla-metrics322{margin-bottom:14px}
@media(max-width:950px){.ptc-sla-filters322{grid-template-columns:repeat(2,minmax(0,1fr))}.ptc-sla-metrics322{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.ptc-sla-filters322{grid-template-columns:1fr}.ptc-sla-metrics322{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ptc-sla-metric322{padding:12px;min-height:78px}.ptc-sla-metric322 b{font-size:22px}.ptc-sla-sectionhead322{align-items:flex-start}}

/* V3.1.23: tanda tangan elektronik Teknisi (Troublesetting) */
.ptc-signature-block323{display:flex;flex-direction:column;gap:9px;padding:16px;border:1px solid #cddfed;background:#f7fbff;border-radius:14px}
.ptc-signature-block323 b{font-weight:800;color:#183d70}
.ptc-signature-block323 canvas{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:720/220;background:white;border:1px dashed #9db2ce;border-radius:10px;touch-action:none;cursor:crosshair}
.ptc-signature-actions323{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
@media(max-width:540px){.ptc-signature-block323{padding:11px}.ptc-signature-actions323 .btn{width:100%}}

/* V3.1.24 — Foto troubleshooting dan tanda tangan teknisi di mobile */
.ptc-tr-upload324{display:flex;flex-direction:column;gap:9px;border:1px dashed #b7cbe6;border-radius:12px;padding:14px;background:#f9fbff}
.ptc-tr-upload324 input[type=file]{display:block;width:100%;min-height:43px;max-width:100%;font:inherit;color:#173b69;cursor:pointer}
.ptc-tr-upload324 .ptc-tr-photo-count321{color:#11549a;font-weight:700}
.ptc-tr-upload324 .ptc-tr-photo-preview321{display:grid;grid-template-columns:repeat(auto-fill,minmax(95px,1fr));gap:8px;max-width:100%;margin-top:4px}
.ptc-tr-upload324 .ptc-tr-photo-tile321{position:relative;display:block;overflow:hidden;border-radius:9px;background:#e9f1fc;min-height:92px}
.ptc-tr-upload324 .ptc-tr-photo-tile321 img{width:100%;height:100px;object-fit:cover;display:block}
.ptc-tr-upload324 .ptc-tr-photo-tile321 button{position:absolute;right:4px;top:4px;border:0;border-radius:8px;background:#fff;color:#a31626;padding:4px 8px;cursor:pointer}
.ptc-signature-slot324{width:100%;min-width:0}
.ptc-signature-slot324 .ptc-signature-block323{width:100%;box-sizing:border-box}
.ptc-signature-slot324 #ptcSigCanvas323{max-width:100%;width:100%;height:auto;aspect-ratio:720/220;min-height:135px;touch-action:none}
@media(max-width:600px){.ptc-tr-upload324{padding:11px}.ptc-tr-upload324 .ptc-tr-photo-preview321{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* V3.1.27 - table-only technician troubleshooting, including small screens */
body.ptc-technician3111 #ptcCompactRows313 .ticket-compact-scroll313{display:block!important;max-width:100%;overflow-x:auto!important}
body.ptc-technician3111 #ptcCompactRows313 .ticket-table313{border-collapse:collapse}
body.ptc-technician3111 #ptcCompactRows313 .ticket-table313 tbody tr:focus-within{background:#eef6ff}
@media(max-width:760px){
 body.ptc-technician3111 #ticketingRoot .ticket-compact-panel313{background:#fff!important;padding:10px!important;border:1px solid #e7edf3!important;border-radius:14px}
 body.ptc-technician3111 #ptcCompactRows313 .ticket-compact-scroll313{background:#fff;border-radius:10px}
 body.ptc-technician3111 #ptcCompactRows313 .ticket-table313{min-width:760px}
}

/* V3.1.28 - compact action-first Technician dashboard, scoped only to new UI */
.ptc-tech-home328{max-width:1400px;margin:0 auto;padding-bottom:15px;color:#133555}
.ptc-tech-intro328{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:19px 22px;border-radius:16px;background:linear-gradient(110deg,#08274b,#145ca2);color:#fff}
.ptc-tech-eyebrow328{font-size:10px;letter-spacing:.12em;font-weight:800;color:#aed9ff}
.ptc-tech-intro328 h1{margin:5px 0 4px;color:#fff;font-size:21px;line-height:1.3;font-weight:800}
.ptc-tech-intro328 p{margin:0;color:#d9ecff;font-size:12px}
.ptc-tech-intro-actions328{display:flex;gap:8px;flex-wrap:wrap}
.ptc-tech-intro-actions328 button{border:1px solid #d6e8ff;background:#fff;color:#114f91;border-radius:10px;padding:10px 12px;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap}
.ptc-tech-intro-actions328 button+button{border-color:#7eb7ee;background:#245b94;color:#fff}
.ptc-tech-metrics328{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.ptc-tech-metric328{min-width:0;display:flex;flex-direction:column;gap:6px;padding:13px 16px;background:#fff;border:1px solid #dae6f1;border-radius:13px}
.ptc-tech-metric328 small{font-size:12px;color:#5b7690;font-weight:650}.ptc-tech-metric328 b{font-size:28px;line-height:1.1;color:#153d66}
.ptc-tech-metric328.pending{border-left:4px solid #2675df}.ptc-tech-metric328.working{border-left:4px solid #12a5ad}.ptc-tech-metric328.sla{border-left:4px solid #e38b3e}.ptc-tech-metric328.done{border-left:4px solid #2ca56e}
.ptc-tech-metric328.ptc-tech-error328{grid-column:1/-1}.ptc-tech-metric328.ptc-tech-error328 b{font-size:16px}
.ptc-tech-partial328{grid-column:1/-1;font-size:12px;color:#945c13;margin:0}.ptc-tech-partial328 button{border:0;color:#1764b4;background:transparent;font-weight:700;cursor:pointer}
.ptc-tech-kinds328{background:#fff;border:1px solid #dce7f1;border-radius:13px;padding:13px 16px;margin-bottom:13px}
.ptc-tech-kinds-head328{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.ptc-tech-kinds-head328 b{font-size:13px}.ptc-tech-kinds-head328 span{font-size:11px;color:#7691a6}
.ptc-tech-kinds-items328{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ptc-tech-kind328{border:1px solid #d9e7f6;border-radius:9px;background:#f5f9fe;color:#17548a;padding:8px 12px;font-weight:650;font-size:12px;display:flex;align-items:center;gap:12px;cursor:pointer}
.ptc-tech-kind328 strong{color:#114c91;background:#dfeeff;border-radius:7px;padding:2px 7px;font-size:12px}
.ptc-tech-kind-empty328{color:#5f798c;font-size:12px}
.ptc-tech-queue328{border:1px solid #dce7f1;border-radius:15px;background:#fff;padding:15px 16px;margin-bottom:12px}
.ptc-tech-queue-head328{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.ptc-tech-queue-head328 h2{font-size:17px;margin:0 0 3px;color:#133555}.ptc-tech-queue-head328 p{margin:0;font-size:11px;color:#6d829a}
.ptc-tech-queue-actions328 button{border:1px solid #d8e6f4;background:#f5f9fe;border-radius:9px;color:#145a9d;font-size:12px;font-weight:750;padding:9px 12px;cursor:pointer}
.ptc-tech-list328{display:flex;flex-direction:column;gap:0}
.ptc-tech-row328{display:grid;grid-template-columns:minmax(132px,1.25fr) minmax(200px,2fr) minmax(96px,.9fr) minmax(110px,1fr) 70px;align-items:center;gap:12px;padding:12px 10px;text-align:left}
.ptc-tech-row-head328{background:#f3f7fc;border:1px solid #e1eaf4;border-radius:9px;font-weight:800;font-size:11px;color:#426482}
.ptc-tech-row-item328{width:100%;border:0;border-bottom:1px solid #ebf0f6;background:#fff;cursor:pointer;color:#1d4160;font-size:12px}
.ptc-tech-row-item328:last-of-type{border-bottom:0}.ptc-tech-row-item328:hover,.ptc-tech-row-item328:focus-visible{background:#eff6ff;outline-offset:-2px}
.ptc-tech-row-number328,.ptc-tech-row-site328,.ptc-tech-row-priority328{min-width:0;display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.ptc-tech-row-number328 strong{font-size:12px;color:#145eb1}.ptc-tech-row-number328 small,.ptc-tech-row-site328 small{font-size:11px;color:#72899f;line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.ptc-tech-row-site328 strong{font-size:12px;line-height:1.35}
.ptc-tech-row-priority328 small{font-size:11px}.ptc-tech-row-priority328 .ptc-tech-danger328{color:#b52830;font-weight:800}.ptc-tech-row-priority328 .ptc-tech-warning328{color:#ae6400;font-weight:800}
.ptc-tech-row-action328{color:#1766bf;font-weight:800;font-size:12px;text-align:right;white-space:nowrap}
.ptc-tech-more328{margin:10px 0 0;font-size:11px;color:#67819b}
.ptc-tech-links328{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ptc-tech-links328 button{border:0;background:transparent;color:#2468af;font-size:12px;font-weight:700;padding:8px;cursor:pointer}
.ptc-tech-links328 button:hover{text-decoration:underline}
@media(max-width:1000px){.ptc-tech-row328{grid-template-columns:minmax(105px,1.1fr) minmax(140px,1.6fr) minmax(90px,.9fr) minmax(92px,.95fr) 55px;gap:8px;padding:10px 7px}.ptc-tech-intro328{padding:16px}}
@media(max-width:720px){
 .ptc-tech-intro328{align-items:stretch;flex-direction:column;gap:12px;border-radius:13px;padding:16px}
 .ptc-tech-intro328 h1{font-size:19px}.ptc-tech-intro-actions328{display:grid;grid-template-columns:1fr 1fr}
 .ptc-tech-intro-actions328 button{font-size:11px;white-space:normal;padding:9px 5px}
 .ptc-tech-metrics328{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:9px 0}
 .ptc-tech-metric328{padding:12px}.ptc-tech-metric328 b{font-size:24px}.ptc-tech-metric328 small{font-size:11px}
 .ptc-tech-kinds328,.ptc-tech-queue328{padding:12px}
 .ptc-tech-kinds-head328 span{display:none}.ptc-tech-queue-head328 h2{font-size:15px}
 .ptc-tech-row-head328{display:none}
 .ptc-tech-row-item328{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'number status' 'site site' 'priority action';gap:7px;padding:12px 3px}
 .ptc-tech-row-number328{grid-area:number}.ptc-tech-row-site328{grid-area:site}.ptc-tech-row-priority328{grid-area:priority;flex-direction:row;align-items:center;gap:6px}
 .ptc-tech-row-status328{grid-area:status;text-align:right}.ptc-tech-row-action328{grid-area:action}.ptc-tech-row-site328 small{-webkit-line-clamp:2}
 .ptc-tech-links328{justify-content:center}.ptc-tech-links328 button{padding:8px 2px}
}
