:root{--bg:#f3f6fb;--panel:#fff;--text:#172033;--muted:#667085;--primary:#185cff;--dark:#0f172a;--line:#e7ebf3}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}.app-shell{display:flex;min-height:100vh}.sidebar{width:280px;background:#0f172a;color:#fff;display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;padding:22px}.brand{display:flex;gap:12px;align-items:center;margin-bottom:26px}.brand-icon,.login-logo{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#22c55e);font-size:24px}.brand small{display:block;color:#aab3c5}.sidebar nav a{display:flex;align-items:center;gap:10px;color:#dbe4ff;text-decoration:none;padding:12px 14px;border-radius:14px;margin-bottom:6px}.sidebar nav a:hover{background:rgba(255,255,255,.09);color:#fff}.sidebar-footer{margin-top:auto;color:#aab3c5;font-size:14px}.sidebar-footer a{color:#fff}.content{margin-left:280px;padding:28px;width:calc(100% - 280px)}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.topbar h1{font-size:28px;margin:0;font-weight:800}.topbar p{margin:4px 0 0;color:var(--muted)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 10px 30px rgba(15,23,42,.06)}.panel h2{font-size:19px;font-weight:800;margin:0 0 16px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.panel-head h2{margin:0}.metric{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 10px 30px rgba(15,23,42,.06)}.metric i{font-size:28px;color:var(--primary)}.metric span{display:block;font-size:34px;font-weight:900;margin-top:8px}.metric small{color:var(--muted)}.metric.danger i{color:#ef4444}.alert-item{border:1px solid var(--line);border-radius:16px;padding:12px;margin-bottom:10px}.alert-item small{display:block;color:var(--muted)}.btn{border-radius:12px}.form-control,.form-select{border-radius:12px;padding:11px 12px}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top left,#dbeafe,transparent 35%),linear-gradient(135deg,#f8fafc,#eef4ff)}.login-card{width:min(430px,92vw);background:#fff;border:1px solid var(--line);border-radius:28px;padding:32px;box-shadow:0 30px 90px rgba(15,23,42,.12)}.login-card h1{font-weight:900;margin:14px 0 4px}.login-card p{color:var(--muted)}.table>:not(caption)>*>*{padding:14px 12px}@media(max-width:900px){.sidebar{position:relative;width:100%;bottom:auto}.app-shell{display:block}.content{margin-left:0;width:100%;padding:18px}.topbar h1{font-size:22px}}
.tech-app{display:grid;gap:14px}.tech-header p{margin:0;color:var(--muted)}.tech-card h3{margin:0;font-size:18px;font-weight:800}.tech-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.tech-card p{margin:0 0 10px}.tech-actions{margin-top:8px}
@media(max-width:900px){.tech-card{padding:16px;border-radius:16px}.tech-header h2{font-size:20px}}
.mobile-app-body{background:#eef3fb}.mobile-shell{min-height:100vh;display:flex;flex-direction:column}.mobile-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#fff;border-bottom:1px solid var(--line)}.mobile-topbar h1{font-size:18px;margin:0;font-weight:800}.mobile-topbar p{margin:0;color:var(--muted);font-size:12px}.mobile-content{padding:12px 12px 84px}.mobile-nav{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:8px;background:#fff;border-top:1px solid var(--line)}.mobile-nav a{text-decoration:none;color:#42526b;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;font-weight:700;gap:2px;padding:6px;border-radius:10px}.mobile-nav a i{font-size:18px;color:#185cff}.mobile-nav a:active,.mobile-nav a:hover{background:#eef4ff}
/* Modern technician app layout */
.mobile-app-body{
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(24,92,255,.14), transparent 50%),
    radial-gradient(90% 60% at -10% 20%, rgba(34,197,94,.10), transparent 45%),
    #eef3fb;
}
.mobile-topbar{
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.82);
}
.mobile-topbar .btn{
  border-radius: 999px;
  border-color: #d6dbe8;
}

.mobile-nav{padding:10px 12px 14px;background:rgba(255,255,255,.94);backdrop-filter:blur(8px)}
.mobile-nav-single{grid-template-columns:1fr}
.mobile-nav-triple{grid-template-columns:repeat(3,1fr)}
.mobile-nav a{border:1px solid transparent;border-radius:14px;padding:8px 6px;transition:.2s ease}
.mobile-nav a:hover,.mobile-nav a:active{background:#f1f6ff;border-color:#d9e6ff}

.tech-app{display:grid;gap:14px}
.tech-hero{
  background: linear-gradient(135deg,#10213f 0%, #173762 45%, #1f5fb5 100%);
  color:#fff;
  border-radius:22px;
  padding:18px;
  box-shadow:0 14px 40px rgba(16,33,63,.28);
  display:grid;
  gap:14px;
}
.tech-kicker{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.16);padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;margin-bottom:8px}
.tech-hero h2{margin:0;font-size:26px;font-weight:900;letter-spacing:-.02em}
.tech-hero p{margin:8px 0 0;color:rgba(255,255,255,.88)}
.tech-hero-actions{display:grid;grid-template-columns:1fr;gap:8px}

.tech-btn{border-radius:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border:0}
.tech-btn-primary{background:linear-gradient(135deg,#2c6dff,#4f8cff);color:#fff}
.tech-btn-muted{background:#edf2ff;color:#1c3f72}
.tech-btn-success{background:linear-gradient(135deg,#14b86a,#0f9e5b);color:#fff}

.tech-alert-host .alert{border-radius:14px;box-shadow:0 8px 24px rgba(15,23,42,.08)}

.tech-card{
  background:#fff;
  border:1px solid #e6ebf5;
  border-radius:18px;
  padding:16px;
  box-shadow:0 8px 28px rgba(15,23,42,.07);
}
.tech-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.tech-card h3{margin:0;font-size:18px;font-weight:800;line-height:1.15}
.tech-status{font-size:11px;font-weight:800;padding:6px 10px;border-radius:999px;text-transform:uppercase;letter-spacing:.04em}
.status-open{background:#edf2ff;color:#355f9f}
.status-progress{background:#fff2d8;color:#8d6205}
.tech-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 8px}
.tech-meta span{display:flex;align-items:center;gap:6px;font-size:12px;color:#576780;background:#f7f9fd;padding:7px 9px;border-radius:10px}
.tech-desc{margin:0;color:#3f4d63;line-height:1.35}
.tech-actions{margin-top:10px}
.tech-textarea{border-radius:12px;border:1px solid #d9e2f1;background:#fbfdff}
.tech-empty{border:1px dashed #c6d4eb;border-radius:16px;padding:16px;background:#f8fbff;color:#667892;display:flex;gap:8px;align-items:center;justify-content:center}

@media (max-width:640px){
  .mobile-content{padding:10px 10px 92px}
  .tech-hero{padding:16px;border-radius:18px}
  .tech-hero h2{font-size:22px}
  .tech-meta{grid-template-columns:1fr}
}

/* Technician app v2 */
.tech-v2-app{max-width:520px;margin:0 auto;min-height:100vh;padding:10px 10px 86px;background:linear-gradient(180deg,#0e4da0 0,#0f5bb8 10%,#eef3fb 28%,#eef3fb 100%)}
.tv2-header{display:flex;justify-content:space-between;align-items:center;color:#fff;padding:4px 2px 10px}
.tv2-brand{display:flex;align-items:center;gap:8px;font-size:30px;font-weight:800}.tv2-brand i{font-size:24px}
.tv2-icon-btn{border:0;background:rgba(255,255,255,.16);color:#fff;border-radius:10px;width:38px;height:38px}
.tv2-screen{display:none}.tv2-screen.active{display:block}
.tv2-screen h2,.tv2-screen h3{margin:6px 0;color:#0f213f;font-weight:800}.tv2-sub{margin:0 0 12px;color:#61708a}
.tv2-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tv2-stat,.tv2-card{background:#fff;border:1px solid #dfe8f5;border-radius:16px;padding:12px;box-shadow:0 8px 20px rgba(8,26,53,.06)}
.tv2-stat span{font-size:12px;color:#6a7b96}.tv2-stat strong{display:block;font-size:30px;line-height:1.1;color:#142c4f}
.tv2-card-title{font-weight:700;color:#233c63;margin-bottom:8px}
.tv2-progress-wrap{display:flex;align-items:center;gap:14px}
.tv2-ring{--pct:40;width:86px;height:86px;border-radius:50%;background:conic-gradient(#11b981 calc(var(--pct)*1%),#ffb020 0 82%,#e7edf8 0);display:grid;place-items:center}
.tv2-ring:before{content:"";width:64px;height:64px;background:#fff;border-radius:50%;position:absolute}.tv2-ring span{position:relative;font-weight:800;color:#173259}
.tv2-legend{font-size:12px;color:#506382;display:grid;gap:4px}.dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:6px}.dot.ok{background:#11b981}.dot.warn{background:#ffb020}.dot.run{background:#3b82f6}
.tv2-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.tv2-search{flex:1;border:1px solid #d5e0f0;border-radius:12px;padding:9px 10px;background:#fff}
.tv2-tabs{display:flex;gap:6px;overflow:auto;padding-bottom:8px}.tv2-tab{border:1px solid #d5e0f0;background:#fff;color:#466087;border-radius:999px;padding:6px 10px;font-size:12px}.tv2-tab.active{background:#1f64cf;color:#fff;border-color:#1f64cf}
.tv2-list{display:grid;gap:8px}.tv2-order{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #dfe8f5;border-radius:14px;padding:11px 12px}.tv2-order strong{display:block;color:#132847}.tv2-order small{color:#61708a}
.tv2-badge{font-size:11px;padding:5px 8px;border-radius:999px;text-transform:capitalize}.tv2-badge.open{background:#fff1dc;color:#9c6509}.tv2-badge.in_progress{background:#e8f0ff;color:#2455a4}.tv2-badge.done{background:#dff8ee;color:#138152}
.tv2-checklist{display:grid;gap:8px;background:#fff;border:1px solid #dfe8f5;border-radius:14px;padding:12px}.tv2-checklist label{display:flex;gap:8px;align-items:center;color:#1f3558}
.tv2-notes{width:100%;margin-top:10px;border:1px solid #d5e0f0;border-radius:12px;padding:10px;background:#fff}
.tv2-action{margin-top:10px;width:100%;border:0;background:linear-gradient(135deg,#1f64cf,#2a86ff);color:#fff;font-weight:700;border-radius:12px;padding:11px}
.tv2-map-placeholder{height:120px;border:1px dashed #cbd8ec;border-radius:12px;display:grid;place-items:center;color:#6b7c98;background:#f9fbff}
.tv2-empty{padding:14px;background:#fff;border-radius:14px;border:1px dashed #cdd9ea;color:#62728d}
.tv2-bottom{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(520px,100vw);display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px 10px 12px;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-top:1px solid #dce6f4}
.tv2-nav{border:0;background:transparent;color:#5f7292;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;padding:6px 2px;border-radius:10px}.tv2-nav i{font-size:17px}.tv2-nav.active{color:#1f64cf;background:#eaf2ff}
@media (max-width:420px){.tv2-brand{font-size:24px}.tv2-grid2{grid-template-columns:1fr}.tv2-bottom{grid-template-columns:repeat(4,1fr)}}

/* SeInfra logo overrides */
.brand-icon,.login-logo{background:transparent;border-radius:0}
.brand-icon img{width:48px;height:48px;object-fit:contain;display:block}
.login-logo{width:88px;height:88px;margin:0 auto 6px;display:grid;place-items:center}
.login-logo img{width:88px;height:88px;object-fit:contain;display:block}
.tv2-brand{font-size:0}
.tv2-brand img{height:34px;width:auto;display:block}
@media (max-width:420px){.tv2-brand img{height:30px}}

/* Use original PNG logo */
.brand-icon{width:64px;height:46px;display:grid;place-items:center}
.brand-icon img{width:64px;height:46px;object-fit:contain}
.login-logo{width:164px;height:72px;margin:0 auto 10px;display:grid;place-items:center}
.login-logo img{width:164px;height:72px;object-fit:contain}
.tv2-brand img{height:30px;max-width:170px;object-fit:contain}

/* Unified SeInfra icon */
.brand-icon{width:48px;height:48px;border-radius:12px;overflow:hidden}
.brand-icon img{width:48px;height:48px;object-fit:cover;display:block}
.login-logo{width:86px;height:86px;margin:0 auto 10px;border-radius:20px;overflow:hidden}
.login-logo img{width:100%;height:100%;object-fit:cover;display:block}
.tv2-brand img{height:34px;width:34px;object-fit:cover;border-radius:10px}
