/* Tesnera application stylesheet – single file. Sections are kept in their original cascade order. */

/* ===== style ===== */
:root{
  --bg:#f2f2f4;
  --surface:#ffffff;
  --surface-soft:#f7f7f8;
  --surface-soft-2:#eef3ff;
  --text:#0b0d12;
  --muted:#727887;
  --line:#dde1e7;
  --line-strong:#cfd6df;
  --primary:#2563FF;
  --primary-dark:#1D4ED8;
  --primary-soft:#EEF3FF;
  --dark:#06070c;
  --danger:#b42318;
  --danger-bg:#fff0ef;
  --ok:#087443;
  --ok-bg:#eaf7ef;
  --warning:#8a6100;
  --warning-bg:#fff6cc;
  --warning-line:#f0d566;
  --info:#194b7a;
  --info-bg:#edf6ff;
  --shadow:0 12px 34px rgba(10,12,18,.08);
  --shadow-soft:0 4px 16px rgba(10,12,18,.05);
  --radius:18px;
}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:linear-gradient(180deg,#f5f5f6 0,#f1f2f5 100%);color:var(--text);line-height:1.45;-webkit-font-smoothing:antialiased}
a{color:var(--primary);text-decoration:none}a:hover{color:var(--primary-dark)}
.topbar{background:linear-gradient(90deg,#09101f 0%, #0e2549 42%, #09101f 100%);color:#fff;padding:0 28px;min-height:72px;display:flex;gap:20px;align-items:center;position:sticky;top:0;z-index:20;box-shadow:0 2px 14px rgba(0,0,0,.18);border-bottom:1px solid rgba(255,255,255,.08)}
.topbar a{color:#d9deea;font-size:14px;font-weight:600;white-space:nowrap}.topbar a:hover{color:#fff}.topbar span{color:#b6bfce;font-size:13px;white-space:nowrap}
.nav-with-count{position:relative;display:inline-flex;align-items:center}.topbar .nav-count{position:absolute;top:-14px;right:-12px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#dc2626;color:#fff!important;border:2px solid #0e2549;font-size:11px!important;font-weight:800;line-height:16px;text-align:center;justify-content:center}
.brand{display:flex;align-items:center;gap:10px;margin-right:10px;padding-right:14px;border-right:1px solid rgba(255,255,255,.10)}
.brand-fallback{color:#fff!important;font-size:14px!important;font-weight:700;letter-spacing:.02em}
.nav-logo{height:36px;max-width:220px;object-fit:contain;background:#fff;border-radius:8px;padding:4px 8px;box-shadow:0 3px 12px rgba(0,0,0,.18)}.nav-user{margin-left:auto!important}
.dropdown{position:relative;display:inline-flex}.dropbtn{background:transparent!important;box-shadow:none!important;padding:8px 9px!important;color:#dce7f5!important;font-size:14px!important}.dropbtn:hover{color:#fff!important;transform:none!important}
.dropdown-content{display:none;position:absolute;top:100%;right:0;min-width:210px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:7px;z-index:50}.dropdown:hover .dropdown-content,.dropdown:focus-within .dropdown-content{display:block}.dropdown-content a{display:block!important;color:#27364a!important;padding:9px 11px;border-radius:8px}.dropdown-content a:hover{background:#f1f5f9;color:#142033!important}

.container{max-width:1260px;margin:34px auto;padding:0 24px}
h1,h2,h3{letter-spacing:-.03em;margin-top:0;color:#11151d}h1{font-size:31px;margin-bottom:4px}h2{font-size:18px;margin-bottom:4px}h3{font-size:16px}
.page-subtitle{margin:0}.muted{color:var(--muted)}
.section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}.stats-grid{margin-bottom:18px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:18px;box-shadow:var(--shadow-soft)}
.card.brand-card{position:relative;overflow:hidden}.card.brand-card::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--primary)}
.card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.card-heading p{margin:0;font-size:13px}
.table-card{padding:14px 18px 10px}.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:separate;border-spacing:0}.data-table th,.data-table td,th,td{padding:12px 11px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
th{background:var(--surface-soft);font-size:12px;font-weight:750;color:#475166;letter-spacing:.01em;text-transform:none}tr:last-child td{border-bottom:0}.data-table tbody tr:hover td,table tbody tr:hover td{background:#fafbfd}
.serial-link{font-weight:750}.empty-row{color:var(--muted);text-align:center!important;padding:28px!important}
.btn,button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:12px;padding:10px 15px;background:var(--primary);color:#fff;cursor:pointer;font:inherit;font-size:14px;font-weight:650;box-shadow:0 2px 6px rgba(76,130,246,.18);transition:.15s ease}.btn:hover,button:hover{background:var(--primary-dark);color:#fff;transform:translateY(-1px)}
.btn.secondary,button.secondary{background:#fff;color:#334155;border-color:var(--line-strong);box-shadow:none}.btn.secondary:hover,button.secondary:hover{background:#f8fafc;color:#18212f}.btn.light{background:#eef3f8;color:#2d4058;box-shadow:none}
.btn.danger,button.danger,a.btn.danger{
  background:#dc2626!important;
  color:#fff!important;
  border-color:#dc2626!important;
  box-shadow:0 2px 8px rgba(220,38,38,.24)!important;
}
.btn.danger:hover,button.danger:hover,a.btn.danger:hover{
  background:#b91c1c!important;
  color:#fff!important;
  border-color:#b91c1c!important;
}
summary.delete-summary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #dc2626;
  border-radius:12px;
  padding:8px 12px;
  background:#dc2626;
  color:#fff;
  cursor:pointer;
  font:inherit;
  font-size:14px;
  font-weight:650;
  list-style:none;
  user-select:none;
}
summary.delete-summary::-webkit-details-marker{display:none}
summary.delete-summary:hover{background:#b91c1c;border-color:#b91c1c;color:#fff}

.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.search-form{width:min(430px,100%)}.toolbar input{max-width:none}
input,select,textarea{width:100%;padding:11px 12px;border:1px solid #cfd6df;border-radius:12px;background:#fff;color:var(--text);font:inherit;font-size:14px;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:#83a8ff;box-shadow:0 0 0 4px rgba(76,130,246,.12)}textarea{min-height:96px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .full{grid-column:1/-1}label{display:block;font-weight:650;font-size:13px;margin-bottom:6px;color:#384860}
.badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#edf2f7;color:#425268;font-size:11px;font-weight:700;border:1px solid #e4eaf1}
.badge.lifecycle{margin-left:7px;font-weight:700}.badge.lifecycle.installed{background:#dcfce7;color:#166534}.badge.lifecycle.warehouse{background:#e0f2fe;color:#075985}.badge.lifecycle.uninstalled{background:#fef3c7;color:#92400e}.badge.danger{background:#fee2e2;color:#991b1b}.badge.warning{background:#fff7db;color:#8a5a00;border-color:#f2d071}.badge.success{background:#dcfce7;color:#166534;border-color:#b7e4c7}.badge.info{background:#edf6ff;color:#195188;border-color:#cadfff}
.badge.complaint-status{font-size:12px;padding:8px 14px}.badge.complaint-status.success{background:#dcfce7;color:#166534;border-color:#b7e4c7}.badge.complaint-status.danger{background:#fee2e2;color:#991b1b;border-color:#f2b8b5}.badge.complaint-status.warning{background:#fff7db;color:#8a5a00;border-color:#f2d071}.badge.complaint-status.info{background:#dbeafe;color:#1d4ed8;border-color:#bfdbfe}
.qty-badge{width:30px;height:30px;min-width:30px;padding:0!important;border-radius:50%!important;justify-content:center;text-align:center}

.pm-column{white-space:nowrap;color:var(--text)!important;background:transparent!important;font-weight:400!important}
.pm-date{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:13px;font-weight:700;line-height:1.2;white-space:nowrap;border:1px solid transparent}
.pm-green{background:#e5f6eb!important;color:#156c3b!important;border-color:#b9e4c8!important}
.pm-yellow{background:#fff3cf!important;color:#875900!important;border-color:#f2d887!important}
.pm-red{background:#fee8e7!important;color:#a3261e!important;border-color:#f3c1bd!important}
.pm-separator{display:inline-block;margin:0 7px;color:#9aa6b5}.pm-copy{color:var(--text);font-weight:400;background:transparent!important}

.ok{color:var(--ok)}.danger{color:var(--danger)}.warning-text{color:var(--warning)}
.success,.error,.notice,.info,.warning{padding:14px 16px;border-radius:16px;margin-bottom:16px;border:1px solid transparent;box-shadow:var(--shadow-soft)}
.success{background:var(--ok-bg);color:#1d633d;border-color:#c9ebd5}
.error{background:var(--danger-bg);color:#912018;border-color:#ffd0cc}
.notice,.info{background:var(--info-bg);border-color:#c9e2ff;color:var(--info)}
.warning{background:var(--warning-bg);border-color:var(--warning-line);color:#674d00}
.alert-banner{font-size:14px;line-height:1.5}.alert-banner b{font-weight:750}
.login{max-width:430px;margin:90px auto}.parts-row{display:grid;grid-template-columns:1fr 2fr 1fr .5fr auto;gap:8px;margin-bottom:8px}.info-grid{display:grid;grid-template-columns:180px 1fr;gap:0 18px}.info-grid div{padding:9px 0;border-bottom:1px solid #eef2f6}.info-grid .k{font-weight:700;color:#526176}
.filter-grid{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:14px;align-items:end}.filter-actions{display:flex;gap:8px;align-items:center}.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.bar-chart{margin-top:16px}.bar-row{display:grid;grid-template-columns:minmax(120px,1.5fr) 3fr 44px;gap:10px;align-items:center;margin:10px 0}.bar-label{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{height:10px;background:#eef2f7;border-radius:999px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,#76a2ff,#2563FF);border-radius:999px;min-width:3px}.bar-value{font-size:12px;font-weight:700;text-align:right}.topbar{scrollbar-width:thin}
.checkline{display:flex;align-items:flex-start;gap:10px;font-weight:600;line-height:1.5}.checkline input{margin-top:4px;flex:0 0 auto}blockquote{margin:10px 0;padding:12px 14px;border-left:4px solid #b8c8dc;background:#f8fafc;border-radius:0 8px 8px 0;color:#334155}
.component-serials{padding:16px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.component-serials h3{margin:0 0 4px}.component-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.th a{color:#415065;display:inline-flex;align-items:center;gap:3px}th a{color:#415065;display:inline-flex;align-items:center;gap:3px}th a:hover{color:var(--primary)}

.report-hero{position:relative;overflow:hidden;background:var(--dark);color:#fff;border-radius:28px;padding:28px 30px;border:1px solid rgba(255,255,255,.06);box-shadow:var(--shadow);margin-bottom:20px}
.report-hero::after{content:"";position:absolute;right:-120px;bottom:-110px;width:520px;height:240px;border-top:2px solid rgba(255,255,255,.78);border-radius:50% 50% 0 0/100% 100% 0 0;opacity:.55;transform:rotate(-6deg)}
.report-hero .eyebrow{color:#b7c1d4;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px}
.report-hero h1,.report-hero h2,.report-hero h3,.report-hero p,.report-hero a{position:relative;z-index:1}.report-hero h1{color:#fff;margin-bottom:8px;font-size:34px}.report-hero p{color:#d7dfec;margin:0}
.report-hero .hero-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}.report-hero .hero-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.report-hero .hero-actions .btn.secondary{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.15);color:#fff}.report-hero .hero-actions .btn.secondary:hover{background:rgba(255,255,255,.12)}
.hero-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.hero-pills .badge{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:#fff}
.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}
.report-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow-soft);margin-bottom:18px}
.report-card h2,.report-card h3{margin-bottom:8px}
.report-section-title{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}
.report-copy{white-space:pre-wrap;line-height:1.65;font-size:14px}
.kpi-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.kpi-tag{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface-soft);padding:10px 12px;border-radius:14px;font-size:13px;color:#253043}.kpi-tag strong{font-size:14px;color:#101722}
.checklist-stack{display:flex;flex-direction:column;gap:14px}.checklist-summary{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap;padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff 0,#fafbff 100%)}
.checklist-summary .meta{margin:0;color:var(--muted)}.checklist-summary h3{margin-bottom:6px}.checklist-summary .actions{justify-content:flex-end}
.not-required-card{background:var(--warning-bg);border-color:var(--warning-line)}
.signature-box{background:#fbfbfc;border:1px dashed #cfd6df;border-radius:16px;padding:16px}
.table-title{margin-bottom:10px}
.checklist-sheet{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow-soft)}
.checklist-header-bar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}
.checklist-options{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.checklist-options label{margin-bottom:0}
.checklist-table th{background:#eff4ff;color:#31425d}.checklist-table .section-row td{background:#eef3ff!important;color:#22324f;font-weight:700;border-bottom-color:#d9e4ff}
.checklist-table input[type=radio]{width:auto}
.section-note{font-size:12px;color:var(--muted)}
.info-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:var(--primary-soft);color:#1D4ED8;border:1px solid #C7D6EF;font-size:12px;font-weight:700}
.login-brand{text-align:center}.login-logo{max-width:260px;max-height:90px;object-fit:contain;margin:0 auto 14px}.branding-preview{max-width:320px;max-height:120px;object-fit:contain;display:block;margin:10px 0 20px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px}.mini-upload{display:flex;gap:6px;align-items:center;margin-top:7px}.mini-upload input[type=file]{font-size:11px;padding:5px;max-width:180px}.mini-upload button{padding:5px 8px;font-size:11px}

@media(max-width:900px){.topbar{gap:10px;flex-wrap:wrap;overflow:visible}.container{margin-top:24px}.section-title{align-items:flex-start}.pm-column{min-width:230px}.filter-grid{grid-template-columns:repeat(2,1fr)}.analytics-grid{grid-template-columns:1fr}.component-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid{grid-template-columns:1fr}}
@media(max-width:700px){.container{padding:0 14px}.form-grid{grid-template-columns:1fr}.parts-row{grid-template-columns:1fr}.topbar{flex-wrap:wrap;padding:12px 16px}.info-grid{grid-template-columns:1fr}.section-title{flex-direction:column}.actions{width:100%;flex-wrap:wrap}.table-card{padding:8px}.report-hero{padding:22px 20px;border-radius:22px}.report-hero h1{font-size:28px}.checklist-summary{padding:16px}.hero-pills{margin-top:10px}.report-card,.checklist-sheet,.card{padding:18px}}
@media(max-width:650px){.filter-grid{grid-template-columns:1fr}.bar-row{grid-template-columns:110px 1fr 36px}.component-grid{grid-template-columns:1fr}}

.req{color:#dc2626;font-weight:800;margin-left:3px}
.checklist-table .result-radio{
  width:24px!important;height:24px!important;min-width:24px;min-height:24px;
  margin:0 auto;cursor:pointer;accent-color:#2563FF;transform:none!important;
}
.checklist-table td:nth-child(5),.checklist-table td:nth-child(6),.checklist-table td:nth-child(7){text-align:center}

/* v5.5.0 Medical Device Vigilance */
.vigilance-row td{background:#102a43!important;color:#f7fbff;border-bottom-color:#27445f!important}.vigilance-row a{color:#dbeafe;text-decoration:underline}.vigilance-row:hover td{background:#173b5e!important}.vigilance-status.open{background:#fff3cd;color:#8a5300;border-color:#e9c46a}.vigilance-status.done{background:#dcfce7;color:#166534;border-color:#86d7a0}.vigilance-btn{background:#102a43;border-color:#102a43}.vigilance-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#102a43;color:#fff;padding:24px 28px;border-radius:18px;margin-bottom:18px}.vigilance-hero h1{margin:4px 0}.vigilance-hero p{margin:0;color:#dbeafe}.vigilance-hero .eyebrow{font-size:12px;font-weight:800;letter-spacing:.08em;color:#bfdbfe}

/* v5.6.0 Complaints */
.complaint-row td{background:#eef4ff!important;border-bottom-color:#cad7f5!important}.complaint-row a{color:#173b7a}.complaint-warning td{background:#fff8e1!important}.complaint-overdue td{background:#ffe5e5!important}.complaint-serious td{background:#ffd6d6!important;border-bottom-color:#ef9a9a!important}.complaint-serious td:first-child{box-shadow:inset 5px 0 0 #c62828}.complaint-serious .complaint-status{border-color:#c62828}.timeline-entry{padding:14px 0;border-bottom:1px solid var(--line)}.timeline-entry:last-child{border-bottom:0}
/* v5.7.5 navigation/layout consistency */
html,body{max-width:100%;overflow-x:hidden}
.topbar{width:100%;box-sizing:border-box;overflow:visible;gap:10px;padding:0 16px;flex-wrap:nowrap}
.topbar>a:not(.brand){flex:0 0 82px;width:82px;min-width:82px;text-align:center;display:inline-flex;justify-content:center;align-items:center;font-size:13px}
.topbar>a[href="/service-reports"]{flex-basis:96px;width:96px;min-width:96px}
.topbar>a[href="/calibration-tools"]{flex-basis:112px;width:112px;min-width:112px}
.topbar>a[href="/spare-parts"]{flex-basis:90px;width:90px;min-width:90px}
.topbar .brand{flex:0 0 auto;margin-right:4px;padding-right:10px}.nav-logo{max-width:205px}
.topbar .dropdown{flex:0 0 130px}.topbar .dropbtn{width:130px;padding:8px 6px;font-size:12px;line-height:1.15;text-align:center;white-space:normal}
.topbar .nav-user{margin-left:auto!important;max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar>a[href="/change-password"],.topbar>a[href="/logout"]{flex-basis:70px;width:70px;min-width:70px}
.container{width:100%;box-sizing:border-box}
.table-wrap{max-width:100%;overflow-x:auto}
.vigilance-hero,.vigilance-hero h1,.vigilance-hero p{color:#fff!important}.vigilance-hero{background:linear-gradient(135deg,#102a43,#173b5e)!important}.vigilance-hero .eyebrow{color:#dbeafe!important}
\n/* v5.7.6: fixed-width navigation without page-level horizontal scrolling */
html,body{max-width:100%;overflow-x:hidden}
body{min-width:0}
.topbar{max-width:100vw;width:100%;box-sizing:border-box;overflow:visible;gap:4px;padding:0 10px;flex-wrap:nowrap}
.topbar .brand{flex:0 0 210px;width:210px;min-width:210px;margin-right:2px;padding-right:6px}
.nav-logo{width:auto;max-width:195px;height:36px}
.topbar>a:not(.brand){flex:0 0 76px;width:76px;min-width:76px;padding:0 2px;text-align:center;justify-content:center;font-size:12px}
.topbar>a[href="/service-reports"]{flex-basis:88px;width:88px;min-width:88px}
.topbar>a[href="/calibration-tools"]{flex-basis:104px;width:104px;min-width:104px}
.topbar>a[href="/spare-parts"]{flex-basis:82px;width:82px;min-width:82px}
.topbar>a[href="/document-templates"]{flex-basis:76px;width:76px;min-width:76px}
.topbar .dropdown{flex:0 0 112px;width:112px;min-width:112px}
.topbar .dropbtn{width:112px;padding:6px 3px;font-size:11px;line-height:1.1;text-align:center;white-space:normal}
.topbar .nav-user{flex:0 1 145px;max-width:145px;min-width:80px;margin-left:auto!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.topbar>a[href="/change-password"]{flex-basis:66px;width:66px;min-width:66px}
.topbar>a[href="/logout"]{flex-basis:50px;width:50px;min-width:50px}
.container{max-width:100%;min-width:0;box-sizing:border-box}
.table-wrap{max-width:100%;overflow-x:auto}
@media(max-width:1500px){
  .topbar .brand{flex-basis:175px;width:175px;min-width:175px}.nav-logo{max-width:165px}
  .topbar>a:not(.brand){flex-basis:67px;width:67px;min-width:67px;font-size:11px}
  .topbar>a[href="/service-reports"]{flex-basis:78px;width:78px;min-width:78px}
  .topbar>a[href="/calibration-tools"]{flex-basis:92px;width:92px;min-width:92px}
  .topbar>a[href="/spare-parts"]{flex-basis:72px;width:72px;min-width:72px}
  .topbar .dropdown{flex-basis:100px;width:100px;min-width:100px}.topbar .dropbtn{width:100px;font-size:10px}
  .topbar .nav-user{max-width:115px;font-size:10px}
}


/* v5.7.7: admin navigation fits viewport without horizontal scrolling */
html,body{width:100%;max-width:100%;overflow-x:hidden!important}
.topbar{width:100%;max-width:100%;min-width:0;box-sizing:border-box;display:flex;align-items:center;flex-wrap:nowrap;overflow:visible!important;gap:2px;padding:0 8px}
.topbar>*{min-width:0}
.topbar .brand{flex:0 0 190px;width:190px;min-width:0;margin-right:2px;padding-right:5px;overflow:hidden}
.topbar .nav-logo{max-width:180px;width:auto;height:36px}
.topbar>a:not(.brand){flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:108px;padding:0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.topbar>a[href="/service-reports"],.topbar>a[href="/calibration-tools"],.topbar>a[href="/spare-parts"],.topbar>a[href="/document-templates"],.topbar>a[href="/change-password"],.topbar>a[href="/logout"]{flex-basis:0!important;width:auto!important;min-width:0!important}
.topbar .dropdown{flex:0 1 118px;width:auto;min-width:88px;max-width:118px;overflow:visible}
.topbar .dropbtn{width:100%!important;min-width:0;padding:5px 2px!important;font-size:10.5px!important;line-height:1.05;white-space:normal}
.topbar .nav-user{flex:0 1 145px;min-width:75px;max-width:145px;margin-left:4px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px}
.topbar .nav-with-count{overflow:visible!important}
.topbar .nav-count{right:0;top:-14px}
@media(max-width:1500px){
  .topbar .brand{flex-basis:160px}.topbar .nav-logo{max-width:150px}
  .topbar>a:not(.brand){font-size:10.5px;padding:0 1px;max-width:92px}
  .topbar .dropdown{max-width:96px;min-width:78px}.topbar .dropbtn{font-size:9.5px!important}
  .topbar .nav-user{max-width:100px;font-size:9.5px}
}
.nav-count-orange{background:#f59e0b!important;color:#111!important}.nav-count-green{background:#16a34a!important;color:#fff!important}.nav-count-second{right:-10px;top:-8px;transform:translateX(65%)}


/* v5.8.2 compact grouped navigation with larger text */
.topbar{gap:8px!important;padding:0 14px!important;overflow:visible!important}
.topbar>a:not(.brand){font-size:15px!important;max-width:none!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;padding:0 9px!important;text-overflow:clip!important;overflow:visible!important}
.topbar .dropdown.nav-menu{flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;overflow:visible!important}
.topbar .dropdown.nav-menu .dropbtn{width:auto!important;min-width:0!important;font-size:15px!important;line-height:1.2!important;white-space:nowrap!important;padding:8px 9px!important}
.topbar .dropdown-content{font-size:14px!important}
.topbar .dropdown-content a{font-size:14px!important;text-align:left!important}
.topbar .brand{flex:0 0 205px!important;width:205px!important}.topbar .nav-logo{max-width:195px!important}
.topbar .nav-user{font-size:12px!important;max-width:145px!important}
.topbar>a[href="/change-password"],.topbar>a[href="/logout"]{font-size:13px!important;padding:0 5px!important}
select[multiple]{min-height:118px}
@media(max-width:1350px){.topbar>a:not(.brand),.topbar .dropdown.nav-menu .dropbtn{font-size:13px!important;padding-left:5px!important;padding-right:5px!important}.topbar .brand{flex-basis:175px!important;width:175px!important}.topbar .nav-logo{max-width:165px!important}}


/* v5.8.4 navigation: regular-weight labels; dropdowns only for administrators */
.topbar a{font-weight:400!important}
.topbar .dropbtn{font-weight:400!important}
.topbar .nav-user{font-weight:400!important}

/* v5.9.6 */
.public-form{max-width:1100px;margin:0 auto;padding-top:32px}.report-status-badge{display:inline-flex;align-items:center;min-height:30px}.checklist-summary .actions{align-items:center}


/* v5.9.6 complaint visual refresh */
.public-complaint-body{background:var(--bg)}
.public-complaint-page{padding-top:28px;padding-bottom:48px;max-width:1180px}
.public-complaint-hero{margin-bottom:20px}
.public-complaint-brand,.complaint-hero-brand{display:flex;align-items:center;gap:24px;position:relative;z-index:1}
.public-complaint-logo,.complaint-hero-logo{display:block;width:220px;max-height:72px;object-fit:contain;background:#fff;border-radius:12px;padding:10px 14px}
.public-complaint-card{margin-bottom:24px}
.public-complaint-submit{display:flex;justify-content:flex-start;padding-top:4px}
.public-complaint-success{max-width:760px;margin:0 auto;text-align:center}
.complaint-hero .hero-actions{position:relative;z-index:2}
@media(max-width:700px){.public-complaint-brand,.complaint-hero-brand{align-items:flex-start;flex-direction:column;gap:14px}.public-complaint-logo,.complaint-hero-logo{width:190px}.public-complaint-page{padding-top:14px}}

/* v5.9.9 checklist action alignment */
.checklist-summary .actions .badge,.checklist-summary .actions .btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.checklist-summary .actions .badge{padding:10px 14px}

/* v5.10.0 checklist action alignment */
.checklist-summary .actions{display:flex;align-items:center;gap:10px}
.checklist-summary .actions .badge,.checklist-summary .actions .btn{height:44px;min-height:44px;margin:0;line-height:1;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
.checklist-summary .actions .badge{padding:0 16px}
.checklist-summary .actions .btn{padding:0 16px}

/* v5.10.5: keep account controls grouped on the far right without moving active navigation tabs */
.topbar .nav-account{margin-left:auto;display:flex;align-items:center;gap:10px;flex:0 0 auto;white-space:nowrap}
.topbar .nav-account .nav-user{margin-left:0!important;max-width:180px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .nav-account>a{color:#d9deea;font-size:13px!important;font-weight:400!important;padding:0 5px!important;white-space:nowrap;flex:0 0 auto!important;width:auto!important;min-width:auto!important;max-width:none!important}
.topbar .nav-account>a:hover{color:#fff}
@media(max-width:1350px){.topbar .nav-account{gap:6px}.topbar .nav-account .nav-user{max-width:130px!important;font-size:10.5px!important}.topbar .nav-account>a{font-size:11px!important;padding:0 3px!important}}


/* v5.10.6: deterministic left navigation + right account controls */
.topbar{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;width:100%!important;gap:0!important;padding:0 12px!important}
.topbar .brand{flex:0 0 auto!important;margin-right:18px!important}
.topbar .nav-main{display:flex!important;align-items:center!important;gap:22px!important;flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important}
.topbar .nav-main>a,.topbar .nav-main>.dropdown{flex:0 0 auto!important;width:auto!important;min-width:auto!important;max-width:none!important;margin:0!important}
.topbar .nav-main>a{font-size:14px!important;padding:0!important}
.topbar .nav-main .dropbtn{font-size:14px!important;padding:8px 0!important;width:auto!important}
.topbar .nav-account{margin-left:auto!important;padding-left:24px!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:16px!important;flex:0 0 auto!important;white-space:nowrap!important}
.topbar .nav-account .nav-user{margin:0!important;max-width:none!important;overflow:visible!important;text-overflow:clip!important;font-size:12px!important}
.topbar .nav-account>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:auto!important;max-width:none!important;flex:0 0 auto!important;padding:0!important;font-size:13px!important}
@media(max-width:1100px){.topbar .nav-main{gap:12px!important}.topbar .nav-account{gap:10px!important;padding-left:14px!important}.topbar .nav-account .nav-user{font-size:11px!important}.topbar .nav-account>a{font-size:12px!important}}


/* v5.10.7 customer portal navigation, transparent logo and modern complaint file picker */
.topbar .nav-logo{
  background:transparent!important;
  padding:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.branding-preview{
  background:transparent!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
}
.customer-topbar .nav-main{gap:10px!important;}
/* v5.10.8: customer tabs use the same dark action-button language as Service Report headers */
.customer-topbar .customer-nav-tab{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  padding:9px 16px!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:12px!important;
  background:rgba(10,12,18,.82)!important;
  color:#ffffff!important;
  font-size:14px!important;
  font-weight:650!important;
  line-height:1!important;
  box-shadow:none!important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease!important;
}
.customer-topbar .customer-nav-tab:hover{
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.24)!important;
  color:#ffffff!important;
  transform:translateY(-1px);
}
.customer-topbar .customer-nav-tab.active{
  background:var(--primary)!important;
  border-color:var(--primary)!important;
  color:#ffffff!important;
  box-shadow:0 3px 9px rgba(76,130,246,.28)!important;
}
.customer-attachment-field{margin-top:2px;}
.modern-file-picker{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:52px;
  padding:10px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:#fff;
}
.modern-file-picker input[type=file]{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.file-picker-button{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:40px;
  margin:0!important;
  padding:8px 14px;
  border-radius:9px;
  border:1px solid #b9c4d3;
  background:#f5f7fb;
  color:#17243a;
  font-size:14px;
  font-weight:650;
  cursor:pointer;
  white-space:nowrap;
}
.file-picker-button:hover{background:#edf2f9;border-color:#9aaac0;}
.file-picker-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:14px;
}
.customer-complaint-submit{margin-top:28px;}
@media(max-width:700px){
  .customer-topbar .nav-main{gap:6px!important;}
  .customer-topbar .customer-nav-tab{padding:7px 10px!important;}
  .modern-file-picker{align-items:flex-start;flex-direction:column;}
  .file-picker-name{width:100%;}
}

/* v5.10.9 complaint notification + file picker refinements */
.modern-file-picker{box-sizing:border-box;}
.file-picker-button{box-sizing:border-box;}
.file-picker-name{display:flex;align-items:center;min-height:40px;}

/* v5.10.10: refined customer navigation spacing and active state */
.customer-topbar .brand{
  margin-right:34px!important;
  padding-right:18px!important;
}
.customer-topbar .nav-main{
  gap:12px!important;
}
.customer-topbar .customer-nav-tab{
  min-height:48px!important;
  padding:14px 20px!important;
  border-radius:12px!important;
  background:#0f1117!important;
  border-color:rgba(255,255,255,.16)!important;
  color:#ffffff!important;
  line-height:1.15!important;
  font-size:14px!important;
  font-weight:650!important;
  box-sizing:border-box!important;
}
.customer-topbar .customer-nav-tab:hover{
  background:#252830!important;
  border-color:rgba(255,255,255,.26)!important;
  transform:none!important;
}
.customer-topbar .customer-nav-tab.active{
  background:#30333b!important;
  border-color:#4b4f59!important;
  color:#ffffff!important;
  box-shadow:none!important;
}
@media(max-width:1100px){
  .customer-topbar .brand{margin-right:24px!important;padding-right:12px!important;}
  .customer-topbar .nav-main{gap:8px!important;}
  .customer-topbar .customer-nav-tab{min-height:44px!important;padding:12px 16px!important;}
}

/* v5.10.11: transparent, wider and lower-profile customer navigation tabs */
.customer-topbar .customer-nav-tab{
  min-height:34px!important;
  padding:7px 26px!important;
  border:none!important;
  border-radius:0!important;
  background:transparent!important;
  color:#ffffff!important;
  line-height:1.15!important;
  box-shadow:none!important;
}
.customer-topbar .customer-nav-tab:hover{
  background:transparent!important;
  border:none!important;
  color:#ffffff!important;
  box-shadow:none!important;
}
.customer-topbar .customer-nav-tab.active{
  background:transparent!important;
  border:none!important;
  color:#ffffff!important;
  box-shadow:none!important;
}
@media(max-width:1100px){
  .customer-topbar .customer-nav-tab{min-height:32px!important;padding:6px 20px!important;}
}

/* v5.10.12: customer navigation active tab + wider logo spacing */
.customer-topbar .brand{
  margin-right:54px!important;
  padding-right:22px!important;
}
.customer-topbar .customer-nav-tab{
  min-height:34px!important;
  padding:7px 28px!important;
  border:none!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#ffffff!important;
  line-height:1.15!important;
  box-shadow:none!important;
}
.customer-topbar .customer-nav-tab:hover{
  background:rgba(255,255,255,.06)!important;
  border:none!important;
  color:#ffffff!important;
  box-shadow:none!important;
}
.customer-topbar .customer-nav-tab.active{
  background:#30333b!important;
  border:none!important;
  color:#ffffff!important;
  box-shadow:none!important;
}
@media(max-width:1100px){
  .customer-topbar .brand{margin-right:38px!important;padding-right:16px!important;}
  .customer-topbar .customer-nav-tab{min-height:32px!important;padding:6px 22px!important;}
}

/* v5.10.13: modern customer navigation tabs */
.customer-topbar .brand{
  margin-right:68px!important;
  padding-right:24px!important;
}
.customer-topbar .nav-main{
  gap:10px!important;
}
.customer-topbar .customer-nav-tab{
  min-height:36px!important;
  padding:8px 24px!important;
  border:none!important;
  border-radius:12px!important;
  background:transparent!important;
  color:#ffffff!important;
  line-height:1!important;
  font-weight:600!important;
  box-shadow:none!important;
  transition:background .16s ease, transform .16s ease!important;
}
.customer-topbar .customer-nav-tab:hover{
  background:rgba(255,255,255,.06)!important;
  transform:translateY(-1px)!important;
}
.customer-topbar .customer-nav-tab.active{
  background:rgba(255,255,255,.14)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)!important;
}
@media(max-width:1100px){
  .customer-topbar .brand{margin-right:44px!important;padding-right:16px!important;}
  .customer-topbar .customer-nav-tab{min-height:34px!important;padding:7px 18px!important;}
}

/* v5.10.14: fully transparent customer navigation tabs */
.customer-topbar .customer-nav-tab,
.customer-topbar .customer-nav-tab:hover,
.customer-topbar .customer-nav-tab.active{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
}
.customer-topbar .customer-nav-tab.active{
  color:#ffffff!important;
  font-weight:700!important;
}


/* v5.10.15: unified transparent navigation tabs for every TSS role */
.topbar .nav-main{
  gap:10px!important;
}
.topbar .nav-main>a,
.topbar .nav-main>.dropdown>.dropbtn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  padding:8px 24px!important;
  margin:0!important;
  border:none!important;
  border-radius:0!important;
  background:transparent!important;
  color:#ffffff!important;
  box-shadow:none!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:1!important;
  white-space:nowrap!important;
  transition:opacity .15s ease!important;
}
.topbar .nav-main>a:hover,
.topbar .nav-main>.dropdown>.dropbtn:hover{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  color:#ffffff!important;
  opacity:.82;
  transform:none!important;
}
.topbar .nav-main>a.active-nav,
.topbar .nav-main>.dropdown>.dropbtn.active-nav,
.customer-topbar .customer-nav-tab.active{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  color:#ffffff!important;
  font-weight:700!important;
  opacity:1!important;
}
/* Preserve customer-specific logo spacing while using the same tab treatment. */
.customer-topbar .brand{
  margin-right:68px!important;
  padding-right:24px!important;
}
@media(max-width:1100px){
  .topbar .nav-main{gap:6px!important;}
  .topbar .nav-main>a,
  .topbar .nav-main>.dropdown>.dropbtn{min-height:34px!important;padding:7px 18px!important;}
  .customer-topbar .brand{margin-right:44px!important;padding-right:16px!important;}
}

/* v5.10.17: tighter global navigation spacing */
.topbar .nav-main{
  gap:2px!important;
}
.topbar .nav-main>a,
.topbar .nav-main>.dropdown>.dropbtn{
  padding-left:14px!important;
  padding-right:14px!important;
}
@media(max-width:1100px){
  .topbar .nav-main{gap:0!important;}
  .topbar .nav-main>a,
  .topbar .nav-main>.dropdown>.dropbtn{
    padding-left:10px!important;
    padding-right:10px!important;
  }
}

/* ==========================================================================
   v5.10.21 - Responsive main navigation
   Prevents top navigation overlap by dynamically collapsing to a menu when
   the brand + navigation + account controls no longer fit in the viewport.
   ========================================================================== */
.topbar .nav-collapse-toggle{
  display:none;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  margin:0 8px 0 0;
  padding:0!important;
  border:1px solid rgba(255,255,255,.20);
  border-radius:8px;
  background:rgba(255,255,255,.06)!important;
  color:#fff!important;
  box-shadow:none!important;
  cursor:pointer;
}
.topbar .nav-collapse-toggle:hover,
.topbar .nav-collapse-toggle:focus{
  background:rgba(255,255,255,.13)!important;
  border-color:rgba(255,255,255,.38);
}
.topbar .nav-collapse-icon{
  color:#fff!important;
  font-size:24px!important;
  line-height:1;
}

/* Never allow the account area to be painted on top of the main navigation. */
.topbar .nav-main{min-width:0}
.topbar .nav-account{
  position:relative;
  z-index:3;
  background:inherit;
}

/* JS applies .nav-collapsed exactly when the full navigation no longer fits. */
.topbar.nav-collapsed{
  position:sticky!important;
  overflow:visible!important;
  gap:8px!important;
}
.topbar.nav-collapsed .brand{
  margin-right:0!important;
}
.topbar.nav-collapsed .nav-collapse-toggle{
  display:inline-flex!important;
}
.topbar.nav-collapsed .nav-main{
  display:none!important;
  position:absolute!important;
  top:100%!important;
  left:0!important;
  right:0!important;
  z-index:1000!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  max-height:calc(100vh - 80px);
  overflow-y:auto!important;
  overflow-x:hidden!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:0!important;
  padding:8px 10px 12px!important;
  background:#0a1931!important;
  border-top:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 28px rgba(0,0,0,.30);
  white-space:normal!important;
}
.topbar.nav-collapsed.nav-panel-open .nav-main{
  display:flex!important;
}

/* Every first-level item gets its own row in the compact navigation. */
.topbar.nav-collapsed .nav-main>a,
.topbar.nav-collapsed .nav-main>.dropdown.nav-menu{
  display:flex!important;
  flex:0 0 auto!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
}
.topbar.nav-collapsed .nav-main>a,
.topbar.nav-collapsed .nav-main>.dropdown.nav-menu>.dropbtn{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:42px!important;
  padding:10px 14px!important;
  justify-content:flex-start!important;
  text-align:left!important;
  font-size:14px!important;
  line-height:1.25!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  border-radius:7px!important;
}
.topbar.nav-collapsed .nav-main>a:hover,
.topbar.nav-collapsed .nav-main>.dropdown.nav-menu>.dropbtn:hover,
.topbar.nav-collapsed .nav-main>a.active-nav,
.topbar.nav-collapsed .nav-main>.dropdown.nav-menu>.dropbtn.active-nav{
  background:rgba(255,255,255,.08)!important;
}

/* Dropdowns become nested expandable rows in the compact panel. */
.topbar.nav-collapsed .nav-main>.dropdown.nav-menu{
  position:relative!important;
  flex-direction:column!important;
  align-items:stretch!important;
}
.topbar.nav-collapsed .nav-main>.dropdown.nav-menu>.dropdown-content{
  display:none!important;
  position:static!important;
  width:100%!important;
  min-width:0!important;
  margin:0 0 4px!important;
  padding:4px 6px 6px 22px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.topbar.nav-collapsed .nav-main>.dropdown.nav-menu.mobile-open>.dropdown-content{
  display:block!important;
}
.topbar.nav-collapsed .nav-main>.dropdown.nav-menu>.dropdown-content a{
  display:block!important;
  width:100%!important;
  padding:9px 12px!important;
  border-radius:6px!important;
  color:#d9deea!important;
  font-size:13px!important;
  white-space:normal!important;
}
.topbar.nav-collapsed .nav-main>.dropdown.nav-menu>.dropdown-content a:hover{
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
}

/* Notification badges stay visible without affecting label width. */
.topbar.nav-collapsed .nav-main .nav-with-count{
  overflow:visible!important;
}
.topbar.nav-collapsed .nav-main .nav-count{
  top:2px!important;
  right:4px!important;
}

/* Keep account controls available while the main navigation is collapsed. */
.topbar.nav-collapsed .nav-account{
  margin-left:auto!important;
  padding-left:4px!important;
  gap:8px!important;
}
.topbar.nav-collapsed .nav-account .nav-user{
  max-width:155px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@media(max-width:700px){
  .topbar.nav-collapsed{
    padding:0 10px!important;
    min-height:64px!important;
  }
  .topbar.nav-collapsed .brand{
    flex:0 1 auto!important;
    width:auto!important;
    max-width:180px!important;
  }
  .topbar.nav-collapsed .nav-logo{
    max-width:165px!important;
    height:34px!important;
  }
  .topbar.nav-collapsed .nav-account .nav-user{
    display:none!important;
  }
  .topbar.nav-collapsed .nav-account>a{
    font-size:12px!important;
    padding:0 3px!important;
  }
  .topbar.nav-collapsed .nav-collapse-toggle{
    width:38px;
    height:38px;
    margin-right:2px;
  }
}
@media(max-width:480px){
  .topbar.nav-collapsed .nav-account>a[href="/change-password"]{
    display:none!important;
  }
  .topbar.nav-collapsed .brand{
    max-width:150px!important;
  }
  .topbar.nav-collapsed .nav-logo{
    max-width:140px!important;
  }
}



/* ==========================================================================\n   v5.10.23 - Progressive navigation overflow\n   Keep the maximum number of tabs visible. Only right-most items that no\n   longer fit are moved into the hamburger panel by JavaScript.\n   ========================================================================== */
.topbar.nav-has-overflow .nav-collapse-toggle{
  display:inline-flex!important;
}
.topbar .nav-overflow-panel{
  display:none;
  position:absolute!important;
  top:100%!important;
  left:auto!important;
  right:12px!important;
  z-index:1100!important;
  width:min(360px,calc(100vw - 24px))!important;
  max-height:calc(100vh - 90px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:0!important;
  padding:8px!important;
  background:#0a1931!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:0 0 10px 10px!important;
  box-shadow:0 12px 28px rgba(0,0,0,.30)!important;
}
.topbar.nav-overflow-open .nav-overflow-panel{
  display:flex!important;
}
.topbar .nav-overflow-panel>a,
.topbar .nav-overflow-panel>.dropdown.nav-menu{
  display:flex!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  flex:0 0 auto!important;
}
.topbar .nav-overflow-panel>a,
.topbar .nav-overflow-panel>.dropdown.nav-menu>.dropbtn{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-height:42px!important;
  padding:10px 14px!important;
  margin:0!important;
  border:0!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:1.25!important;
  text-align:left!important;
  white-space:normal!important;
}
.topbar .nav-overflow-panel>a:hover,
.topbar .nav-overflow-panel>.dropdown.nav-menu>.dropbtn:hover,
.topbar .nav-overflow-panel>a.active-nav,
.topbar .nav-overflow-panel>.dropdown.nav-menu>.dropbtn.active-nav{
  background:rgba(255,255,255,.08)!important;
  opacity:1!important;
}
.topbar .nav-overflow-panel>.dropdown.nav-menu{
  position:relative!important;
  flex-direction:column!important;
  align-items:stretch!important;
}
.topbar .nav-overflow-panel>.dropdown.nav-menu>.dropdown-content{
  display:none!important;
  position:static!important;
  width:100%!important;
  min-width:0!important;
  margin:0 0 4px!important;
  padding:4px 6px 6px 22px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.topbar .nav-overflow-panel>.dropdown.nav-menu.mobile-open>.dropdown-content{
  display:block!important;
}
.topbar .nav-overflow-panel>.dropdown.nav-menu>.dropdown-content a{
  display:block!important;
  width:100%!important;
  padding:9px 12px!important;
  border-radius:6px!important;
  color:#d9deea!important;
  font-size:13px!important;
  white-space:normal!important;
}
.topbar .nav-overflow-panel>.dropdown.nav-menu>.dropdown-content a:hover{
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
}
.topbar .nav-overflow-panel .nav-with-count{overflow:visible!important}
.topbar .nav-overflow-panel .nav-count{top:2px!important;right:4px!important}

/* At very small widths keep account controls compact so navigation gets as much
   horizontal space as possible before items are moved into overflow. */
@media(max-width:760px){
  .topbar .nav-account .nav-user{display:none!important}
  .topbar .nav-account{gap:6px!important;padding-left:4px!important}
  .topbar .nav-account>a{font-size:12px!important;padding:0 2px!important}
  .topbar .brand{margin-right:8px!important;padding-right:8px!important}
  .topbar .nav-logo{max-width:165px!important;height:34px!important}
}


/* v5.10.24 - place progressive overflow button at the right edge of visible tabs,
   immediately before the account/System Administrator area. */
.topbar .nav-collapse-toggle{margin:0 10px 0 8px!important;}
.topbar.nav-has-overflow .nav-main{flex:0 1 auto!important;}


/* v5.10.27 - Service Report correction approval notifications */
.topbar .nav-count-yellow{background:#facc15!important;color:#3b2f00!important;border-color:#0e2549!important}
.topbar .nav-count-correction{right:-18px!important;top:-8px!important;transform:translateX(72%)}
.menu-inline-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:8px;padding:0 6px;border-radius:999px;font-size:11px;font-weight:800;line-height:20px}
.menu-inline-count-yellow{background:#facc15;color:#3b2f00;border:1px solid #d4a900}
.overflow-count-link{display:flex!important;align-items:center;justify-content:space-between;gap:10px}
.correction-pending-row td{background:#fffbed!important}
.correction-pending-note{margin-top:5px;font-size:12px;line-height:1.3}
.correction-pending-note.small{color:#8a6100;font-weight:700}
.correction-approval-notice{border-left:5px solid #eab308!important}

/* ==========================================================================\n   v5.10.30 - Hamburger is truly optional\n   The progressive overflow button is hidden unless JavaScript determines\n   that at least one first-level navigation item genuinely does not fit.\n   Customer navigation is allowed to consume the real space up to the account\n   area instead of being constrained by older conservative flex sizing.\n   ========================================================================== */
.topbar .nav-main{
  flex:1 1 auto!important;
  width:auto!important;
}
.topbar:not(.nav-has-overflow) .nav-collapse-toggle{
  display:none!important;
}
.topbar:not(.nav-has-overflow) .nav-overflow-panel{
  display:none!important;
}
.customer-topbar .nav-main{
  flex:1 1 auto!important;
  width:auto!important;
}

.info-tip{position:relative;display:inline-block;cursor:help;color:#315efb;font-weight:700}.info-tip-text{visibility:hidden;opacity:0;position:absolute;z-index:50;left:22px;top:-8px;width:min(620px,70vw);padding:12px 14px;border-radius:10px;background:#111827;color:#fff;font-size:12px;font-weight:400;line-height:1.45;box-shadow:0 8px 30px #0003;transition:.15s}.info-tip:hover .info-tip-text,.info-tip:focus .info-tip-text{visibility:visible;opacity:1}

/* v5.10.33 - Complaint column filters */
.complaint-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.complaint-filter-actions{display:flex;align-items:end;gap:10px}
@media(max-width:1100px){.complaint-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.complaint-filter-grid{grid-template-columns:1fr}.complaint-filter-actions{align-items:stretch}}

.menu-inline-count-red{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:8px;border-radius:999px;background:#dc2626;color:#fff;font-size:11px;font-weight:800;line-height:20px}

/* TSS v1.0.0 persistent version marker */
.tss-version-corner{position:fixed;right:10px;bottom:7px;z-index:90;padding:3px 7px;border:1px solid rgba(148,163,184,.35);border-radius:7px;background:rgba(255,255,255,.88);color:var(--muted);font-size:11px;font-weight:600;line-height:1.2;box-shadow:0 2px 8px rgba(15,23,42,.06);pointer-events:none;backdrop-filter:blur(4px)}
@media(max-width:700px){.tss-version-corner{right:6px;bottom:5px;font-size:10px;padding:2px 5px}}

/* v1.0.0 validation mode + Feedback/Complaint classification */
.complaint-confirmed td{background:#e8f3ff!important;border-bottom-color:#bdd8f2!important}
.complaint-confirmed td:first-child{box-shadow:inset 5px 0 0 #6aa7d8}
.classification-box{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 14px;margin:0 0 16px;background:#f7f9fc;border:1px solid var(--line);border-radius:10px}
.classification-box p{margin:3px 0 0}.classification-form{display:flex;align-items:center;gap:12px}.checkbox-row{display:flex;align-items:center;gap:8px}.checkbox-row input{width:auto}.menu-meta{display:block;font-size:11px;opacity:.72;margin-top:2px;white-space:normal}

/* TSS v1.0.0 - clearer Feedback/Complaint classification card */
.complaint-overview-grid{align-items:stretch;margin-bottom:18px;}
.complaint-overview-grid>.card{height:100%;margin-bottom:0;}
.complaint-info-stack{display:flex;flex-direction:column;gap:16px;min-width:0;height:100%;}
.complaint-info-stack>.card{margin-bottom:0;}
.complaint-info-card{flex:1 1 auto;}
.complaint-classification-card{border-color:#cfd9e8;}
.complaint-classification-card h2{margin-bottom:6px;}
.complaint-classification-help{margin:0 0 18px;font-size:12px;line-height:1.45;color:#6b7a90;}
.complaint-classification-form{display:flex;flex-direction:column;gap:16px;}
.complaint-classification-choice{display:inline-flex;align-items:center;justify-content:flex-start;gap:16px;width:auto;max-width:100%;margin:0;padding:0;border:none;background:transparent;font-size:23px;font-weight:750;line-height:1.2;cursor:pointer;}
.complaint-classification-choice span{display:inline-block;font-size:23px;font-weight:750;line-height:1.2;white-space:nowrap;color:#31456b;}
.complaint-classification-choice input[type=checkbox]{display:inline-block;width:16px;height:16px;min-width:16px;min-height:16px;max-width:16px;max-height:16px;margin:0;padding:0;flex:0 0 16px;accent-color:var(--primary);cursor:pointer;vertical-align:middle;appearance:auto;-webkit-appearance:checkbox;box-sizing:border-box;}
.complaint-classification-save{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important;}
.complaint-classification-save:hover{background:var(--primary-dark)!important;border-color:var(--primary-dark)!important;}
.complaint-classification-readonly{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;}
.complaint-classification-readonly .classification-label{font-weight:700;}
@media(max-width:700px){.complaint-classification-save{width:100%;}}


/* Feedback/Complaint attachment previews */
.complaint-attachment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:10px 0 16px}
.complaint-attachment-card{display:flex;align-items:center;gap:12px;min-height:138px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);color:var(--text);overflow:hidden}
.complaint-attachment-card:hover{border-color:#a9bfe9;background:#f7faff;color:var(--text)}
.complaint-attachment-card span{min-width:0;display:flex;flex-direction:column}.complaint-attachment-card b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.complaint-attachment-card small{color:var(--muted);margin-top:4px}
.complaint-attachment-thumb{width:120px!important;height:120px!important;min-width:120px!important;min-height:120px!important;max-width:120px!important;max-height:120px!important;flex:0 0 120px!important;object-fit:cover!important;border-radius:8px;border:1px solid var(--line);background:#fff}
.complaint-file-icon{width:120px!important;height:120px!important;min-width:120px!important;min-height:120px!important;max-width:120px!important;max-height:120px!important;flex:0 0 120px!important;display:flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid var(--line-strong);background:#fff;font-size:18px;font-weight:800;color:#45566f;letter-spacing:.03em}

/* Complaint completion email choice */
.resolution-email-choice{display:flex;align-items:center;gap:10px;margin-top:14px;font-weight:700;cursor:pointer}.resolution-email-choice input[type=checkbox]{width:18px;height:18px;min-width:18px;accent-color:var(--primary);cursor:pointer}.resolution-email-choice span{line-height:1.3}

/* Collapsible Service Report workflow sections */
details.collapsible-card{padding:0;overflow:hidden}
details.collapsible-card>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;font-size:1.08rem;font-weight:700;user-select:none}
details.collapsible-card>summary::-webkit-details-marker{display:none}
details.collapsible-card>summary:before{content:'▸';font-size:1rem;transition:transform .15s ease}
details.collapsible-card[open]>summary:before{transform:rotate(90deg)}
details.collapsible-card .collapse-hint{margin-left:auto;font-size:.82rem;font-weight:500;color:#6b7280}
details.collapsible-card[open] .collapse-hint{font-size:0}
details.collapsible-card[open] .collapse-hint:after{content:'Compress';font-size:.82rem}
details.collapsible-card .collapsible-body{border-top:1px solid #e5e7eb;padding:18px 20px 20px}

/* Tesnera left navigation - scoped overrides, preserves existing page components */
:root{--tesnera-sidebar-width:264px;--tesnera-sidebar-mini:72px}
body:has(.tesnera-sidebar){padding-left:var(--tesnera-sidebar-width);transition:padding-left .2s ease}
body.tesnera-sidebar-collapsed:has(.tesnera-sidebar){padding-left:var(--tesnera-sidebar-mini)}
.topbar.tesnera-sidebar{position:fixed!important;inset:0 auto 0 0!important;width:var(--tesnera-sidebar-width)!important;max-width:none!important;min-height:0!important;height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important;padding:18px 12px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:12px!important;background:#0B1F44!important;border:0!important;box-shadow:2px 0 20px rgba(11,31,68,.16)!important;z-index:110}
.tesnera-sidebar .brand{display:flex!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:52px!important;margin:0!important;padding:0 10px 14px!important;border-right:0!important;border-bottom:1px solid rgba(255,255,255,.14)!important}
.tesnera-sidebar .nav-logo{max-width:190px!important;width:auto!important;max-height:48px!important;object-fit:contain}
.tesnera-sidebar .nav-main{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;flex:0 0 auto!important;min-width:0!important;width:100%!important;overflow:visible!important;padding:0!important;margin:0!important}
.tesnera-sidebar .nav-main>a,.tesnera-sidebar .nav-main>.dropdown{display:flex!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:42px!important;margin:0!important;white-space:normal!important;text-align:left!important;align-items:center!important;justify-content:flex-start!important;border-radius:10px!important}
.tesnera-sidebar .nav-main>a{padding:10px 14px!important;color:#dce8fa!important;font-size:13px!important}
.tesnera-sidebar .nav-main>a:hover,.tesnera-sidebar .nav-main>a.active-nav{background:rgba(37,99,255,.28)!important;color:white!important}
.tesnera-sidebar .dropdown{flex-direction:column!important;align-items:stretch!important}
.tesnera-sidebar .dropdown .dropbtn{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;white-space:normal!important;text-align:left!important;padding:11px 14px!important;color:#dce8fa!important;font-size:13px!important;line-height:1.35!important;border:0!important;box-shadow:none!important;background:transparent!important}
.tesnera-sidebar .dropdown .dropbtn:hover,.tesnera-sidebar .dropdown .dropbtn.active-nav{background:rgba(37,99,255,.28)!important;color:white!important}
.tesnera-sidebar .dropdown-content,.tesnera-sidebar .dropdown:hover .dropdown-content,.tesnera-sidebar .dropdown:focus-within .dropdown-content{display:none!important;position:static!important;top:auto!important;right:auto!important;width:100%!important;min-width:0!important;padding:3px 0 7px 12px!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.tesnera-sidebar .dropdown.tesnera-menu-open .dropdown-content{display:block!important}
.tesnera-sidebar .dropdown-content a{display:block!important;padding:9px 12px!important;color:#dce8fa!important;border-radius:8px!important;white-space:normal!important;font-size:12px!important}
.tesnera-sidebar .dropdown-content a:hover,.tesnera-sidebar .dropdown-content a.active-nav{background:rgba(37,99,255,.25)!important;color:white!important}
.tesnera-sidebar .nav-account{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;margin-top:auto!important;padding:12px 8px 0!important;border-top:1px solid rgba(255,255,255,.14)!important;width:100%!important;min-width:0!important}
.tesnera-sidebar .nav-account>*{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;flex:none!important;margin:0!important;padding:7px 8px!important;text-align:left!important;white-space:normal!important;color:#dce8fa!important}
.tesnera-sidebar .nav-count{position:static!important;display:inline-flex!important;vertical-align:middle!important;margin-left:7px!important;flex:0 0 auto!important}
.tesnera-sidebar .nav-collapse-toggle,.tesnera-sidebar .nav-overflow-panel{display:none!important}
.tesnera-sidebar-collapse{align-self:flex-end!important;background:rgba(255,255,255,.1)!important;color:white!important;padding:6px 11px!important;border-radius:8px!important;box-shadow:none!important}
body.tesnera-sidebar-collapsed .tesnera-sidebar{width:var(--tesnera-sidebar-mini)!important}
body.tesnera-sidebar-collapsed .tesnera-sidebar .brand{padding:0 0 12px!important;justify-content:center!important}
body.tesnera-sidebar-collapsed .tesnera-sidebar .nav-logo{max-width:42px!important}
body.tesnera-sidebar-collapsed .tesnera-sidebar .nav-main>a,body.tesnera-sidebar-collapsed .tesnera-sidebar .dropdown .dropbtn{font-size:0!important;overflow:hidden!important;padding:13px 8px!important;text-align:center!important}
body.tesnera-sidebar-collapsed .tesnera-sidebar .nav-main>a::before,body.tesnera-sidebar-collapsed .tesnera-sidebar .dropdown .dropbtn::before{content:'•';font-size:19px;color:#dce8fa}
body.tesnera-sidebar-collapsed .tesnera-sidebar .nav-account{font-size:10px!important;overflow-wrap:anywhere}
body.tesnera-sidebar-collapsed .tesnera-sidebar .dropdown.tesnera-menu-open .dropdown-content{display:block!important}
body:has(.tesnera-sidebar) .container{max-width:1600px!important;width:100%!important;margin:26px auto!important;padding:0 28px!important}
body:has(.tesnera-sidebar) .tss-version-corner{z-index:1}
.tesnera-mobile-toggle,.tesnera-sidebar-backdrop{display:none}
@media(max-width:850px){
 body:has(.tesnera-sidebar),body.tesnera-sidebar-collapsed:has(.tesnera-sidebar){padding-left:0!important;padding-top:58px!important}
 .topbar.tesnera-sidebar,body.tesnera-sidebar-collapsed .tesnera-sidebar{width:min(290px,86vw)!important;transform:translateX(-105%)!important;transition:transform .2s ease!important}
 body.tesnera-mobile-open .tesnera-sidebar{transform:translateX(0)!important}
 body.tesnera-sidebar-collapsed .tesnera-sidebar .nav-main>a,body.tesnera-sidebar-collapsed .tesnera-sidebar .dropdown .dropbtn{font-size:13px!important;text-align:left!important}
 body.tesnera-sidebar-collapsed .tesnera-sidebar .nav-main>a::before,body.tesnera-sidebar-collapsed .tesnera-sidebar .dropdown .dropbtn::before{display:none}
 .tesnera-mobile-toggle{display:block!important;position:fixed;left:12px;top:9px;z-index:105;background:#0B1F44!important;color:white!important;border-radius:9px!important;padding:8px 14px!important}
 body.tesnera-mobile-open .tesnera-sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(5,15,34,.55);z-index:108}
 body:has(.tesnera-sidebar) .container{padding:0 14px!important;margin:16px auto!important}
}


/* Tesnera unified file upload surface, shared by all forms. */
.tesnera-upload-zone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:116px;padding:18px;border:2px dashed #b8c1ff;border-radius:13px;background:#f7f8ff;color:#142b56;cursor:pointer;text-align:center;transition:border-color .18s,background .18s}
.tesnera-upload-zone:hover,.tesnera-upload-zone.dragover{border-color:#5551ff;background:#f0f1ff}
.tesnera-upload-zone:focus-within{outline:2px solid #5551ff;outline-offset:2px}
.tesnera-upload-zone input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;z-index:2}
.tesnera-upload-hint{font-weight:650;font-size:14px;pointer-events:none}
.tesnera-upload-hint::before{content:'⇧';display:block;font-size:26px;color:#5551ff;margin-bottom:5px}
.tesnera-upload-preview{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:100%;pointer-events:none}
.tesnera-file-tile{display:flex;align-items:center;gap:7px;max-width:220px;padding:7px 10px;border:1px solid #d9dff1;border-radius:9px;background:#fff;font-size:12px;overflow:hidden}
.tesnera-file-tile img{width:34px;height:34px;object-fit:cover;border-radius:4px}
.tesnera-file-tile>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tesnera-file-symbol{display:flex;align-items:center;justify-content:center;min-width:35px;height:35px;border-radius:5px;background:#e9edff;color:#3846b9;font-size:10px;font-weight:800}


.tesnera-error-shell{max-width:820px;margin:34px auto;padding:26px 28px;border:1px solid #dbe3f3;box-shadow:0 20px 48px rgba(15,23,42,.08);background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)}
.tesnera-error-hero{display:flex;gap:22px;align-items:center;margin-bottom:18px}
.tesnera-error-logo-wrap{flex:0 0 auto;width:110px;height:110px;border-radius:24px;background:linear-gradient(135deg,#f3f7ff,#ffffff);border:1px solid #dbe3f3;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
.tesnera-error-logo{max-width:78px;max-height:78px;object-fit:contain}
.tesnera-error-copy h1{margin:0 0 8px;font-size:34px;line-height:1.12;color:#0b1f44}
.tesnera-error-code{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#2563ff}
.tesnera-error-summary{font-size:16px;max-width:62ch;margin:0}
.tesnera-error-detail{margin-top:6px}
.tesnera-error-guidance{margin-top:16px}
.tesnera-error-list{margin-top:20px;padding-top:18px;border-top:1px solid #e5eaf4}
.tesnera-error-list h2{margin:0 0 12px;font-size:18px;color:#0b1f44}
.tesnera-error-list ul{margin:0;padding-left:20px;display:grid;gap:10px}
.tesnera-error-list li{line-height:1.45}
.tesnera-error-item-help{margin-top:4px}
.tesnera-error-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
@media (max-width:700px){.tesnera-error-shell{padding:20px}.tesnera-error-hero{flex-direction:column;align-items:flex-start}.tesnera-error-logo-wrap{width:88px;height:88px}.tesnera-error-copy h1{font-size:28px}}

/* Tesnera branded illustrated error pages */
.tesnera-illustrated-error{position:relative;isolation:isolate;max-width:1180px;min-height:620px;margin:22px auto 48px;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr);align-items:center;gap:8px;padding:50px 48px;border:1px solid #e1e8f4;border-radius:28px;background:linear-gradient(142deg,#ffffff 0%,#ffffff 45%,#e3faf3 45.2%,#e3faf3 76%,#fff 76.2%);box-shadow:0 20px 55px rgba(11,31,68,.08);overflow:hidden;font-family:Inter,'Segoe UI',Arial,sans-serif}
.tesnera-error-left{position:relative;z-index:2;min-width:0}
.tesnera-error-eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.15em;color:#0d947a;font-size:13px;font-weight:800;margin-bottom:2px}
.tesnera-error-bigcode{font-size:clamp(110px,14vw,210px);font-weight:950;letter-spacing:-.095em;line-height:.9;color:#0b1f44;margin:0 0 22px -9px}
.tesnera-illustrated-error h1{font-size:clamp(28px,3.1vw,40px);color:#0b1f44;letter-spacing:-.04em;margin:0 0 14px;line-height:1.14}
.tesnera-error-lead{color:#5e718a;font-size:17px;line-height:1.5;max-width:52ch;margin:0 0 22px}
.tesnera-error-advice{display:flex;gap:15px;align-items:flex-start;padding:20px;background:#fff;border:1px solid #c9e7dd;border-radius:18px;box-shadow:0 6px 24px rgba(15,51,63,.05);max-width:610px}
.tesnera-advice-symbol{display:grid;place-items:center;flex:none;width:34px;height:34px;border:2px solid #0d947a;border-radius:50%;font-weight:900;font-size:21px;color:#0d947a}
.tesnera-error-advice h2{margin:0 0 8px;font-size:18px;color:#0b1f44}
.tesnera-error-advice ul{padding-left:18px;margin:0;display:grid;gap:10px;color:#21324b}
.tesnera-error-advice li{line-height:1.4;overflow-wrap:anywhere}
.tesnera-error-advice li span{display:block;color:#64748b;font-size:14px;margin-top:3px}
.tesnera-error-advice p{margin:0;line-height:1.5;overflow-wrap:anywhere}
.tesnera-error-next{color:#62738a;line-height:1.5;max-width:600px;margin:18px 0 0}
.tesnera-error-buttons{display:flex;flex-wrap:wrap;gap:13px;margin-top:25px}
.tesnera-error-buttons .btn{border-radius:12px!important;padding:12px 21px!important;font-weight:750!important;text-decoration:none!important}
.tesnera-error-visual{position:relative;display:flex;align-items:center;justify-content:center;min-width:0}
.tesnera-error-visual img{display:block;position:relative;z-index:1;max-width:100%;height:auto;filter:drop-shadow(0 15px 16px rgba(11,31,68,.08));border-radius:28px;mix-blend-mode:multiply}
.tesnera-deco-circle{position:absolute;width:75%;aspect-ratio:1;border-radius:100%;background:rgba(73,223,168,.2);filter:blur(34px)}
@media(max-width:860px){.tesnera-illustrated-error{grid-template-columns:1fr;padding:32px 24px;gap:24px}.tesnera-error-visual{max-width:460px;margin:auto}.tesnera-error-bigcode{font-size:125px}}
@media(max-width:510px){.tesnera-illustrated-error{padding:26px 18px;min-height:0;border-radius:18px}.tesnera-error-bigcode{font-size:105px}.tesnera-error-visual{max-width:300px}}

/* Mandatory field indicator, shared by all Tesnera forms. */
.tesnera-required-star{color:#dc2626;font-weight:800;font-size:1.08em;margin-left:2px;}

/* ===== navigation critical ===== */
.topbar .nav-collapse-toggle{display:none}
.topbar.nav-has-overflow .nav-collapse-toggle{display:inline-flex!important}
.topbar .nav-overflow-panel{display:none}
.topbar.nav-overflow-open .nav-overflow-panel{display:flex!important}

/* ===== tesnera-brand ===== */
/* Tesnera Brandbook v1.0: #0B1F44 #2563FF #06D6A0 #F59E0B #EF4444 #F3F6FA; Inter */
:root{--tesnera-primary:#0B1F44;--tesnera-accent:#2563FF;--tesnera-success:#06D6A0;--tesnera-warning:#F59E0B;--tesnera-error:#EF4444;--tesnera-bg:#F3F6FA}
body{font-family:Inter,'Segoe UI',Arial,sans-serif!important;background:var(--tesnera-bg)!important;color:#152541}
.topbar{background:var(--tesnera-primary)!important;box-shadow:0 2px 12px #0b1f4420}
.topbar .brand{display:flex;align-items:center;min-width:160px}
.topbar .brand .nav-logo{max-width:160px;max-height:43px;object-fit:contain}
.topbar .nav-main a,.topbar .dropbtn,.topbar .nav-account a{border-radius:8px}
.topbar .nav-main a:hover,.topbar .dropbtn:hover{background:#ffffff1c}
.card,.login,.panel{border-radius:14px!important;box-shadow:0 4px 22px #0b1f4410}
button,.btn,input[type=submit]{border-radius:9px!important}
input,select,textarea{border-radius:8px!important}
input:focus,select:focus,textarea:focus{outline:2px solid #2563ff60;outline-offset:1px}
.login{max-width:460px!important;margin:6vh auto!important;padding:32px!important}
.login h1{color:#0B1F44!important;font-weight:700;letter-spacing:-.025em}
.tesnera-login-logo{display:block;max-width:260px;width:80%;height:auto;margin:0 auto 24px}
.tesnera-brand-logo{display:block;max-width:158px;max-height:40px;object-fit:contain}
.tss-version-corner{opacity:.65}

/* Unified admin action buttons and required input indicators */
.tesnera-branding-card{max-width:980px}
.tesnera-branding-actions{display:flex;align-items:stretch;gap:14px;flex-wrap:wrap;margin-top:20px}
.tesnera-branding-actions form{margin:0}
.tesnera-branding-actions .btn{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;width:245px;min-height:46px;max-width:100%;white-space:normal;text-align:center}
.tesnera-email-action{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;min-height:46px;width:260px;max-width:100%;text-align:center}
.tesnera-required-star{color:#dc2626;font-weight:800;margin-left:3px}
@media(max-width:520px){.tesnera-branding-actions{flex-direction:column}.tesnera-branding-actions form,.tesnera-branding-actions .btn{width:100%}}

/* ===== tesnera-sidebar-fixes ===== */
/* Tesnera sidebar final refinements; loaded after the base and brand styles. */
.topbar.tesnera-sidebar{background:#0B1F44!important;color:#e8efff!important}
.tesnera-sidebar .brand{justify-content:flex-start!important;min-height:72px!important}
.tesnera-sidebar .nav-logo{display:block!important;width:auto!important;max-width:205px!important;height:auto!important;max-height:62px!important;object-fit:contain!important;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;border-radius:0!important}
.tesnera-sidebar .nav-main{gap:3px!important}
.tesnera-sidebar .nav-main>a,.tesnera-sidebar .nav-main>.dropdown>.dropbtn{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;text-align:left!important;font-weight:550!important;line-height:1.3!important;min-height:43px!important}
.tesnera-sidebar .nav-main>.dropdown>.dropbtn{padding:10px 14px!important}
.tesnera-sidebar .tesnera-nav-icon{display:inline-flex!important;flex:0 0 18px!important;width:18px!important;height:18px!important;align-items:center!important;justify-content:center!important;opacity:.85!important;color:#a8c8ff!important}
.tesnera-sidebar .nav-main>a:hover .tesnera-nav-icon,.tesnera-sidebar .nav-main>a.active-nav .tesnera-nav-icon,.tesnera-sidebar .dropbtn:hover .tesnera-nav-icon{color:#fff!important}
.tesnera-sidebar .nav-main>.dropdown{min-height:0!important}
.tesnera-sidebar .dropdown-content{padding-left:20px!important}
.tesnera-sidebar .dropdown .dropbtn{border-radius:10px!important}
.tesnera-sidebar .nav-collapse-toggle{display:none!important}
.tesnera-sidebar-collapse{font-size:18px!important;line-height:1!important;min-height:35px!important}
body.tesnera-sidebar-collapsed .tesnera-sidebar .nav-main>a,body.tesnera-sidebar-collapsed .tesnera-sidebar .nav-main>.dropdown>.dropbtn{font-size:0!important;justify-content:center!important;gap:0!important}
body.tesnera-sidebar-collapsed .tesnera-sidebar .tesnera-nav-icon{display:inline-flex!important}
body.tesnera-sidebar-collapsed .tesnera-sidebar .nav-main>a::before,body.tesnera-sidebar-collapsed .tesnera-sidebar .dropdown .dropbtn::before{display:none!important}
@media(max-width:850px){body.tesnera-sidebar-collapsed .tesnera-sidebar .nav-main>a,body.tesnera-sidebar-collapsed .tesnera-sidebar .nav-main>.dropdown>.dropbtn{font-size:13px!important;justify-content:flex-start!important;gap:11px!important}}

/* Tesnera base edition: expanded navigation and no desktop hamburger. */
.tesnera-sidebar .tesnera-sidebar-collapse{display:none!important}
.tesnera-sidebar .nav-main>.tesnera-inline-group{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;width:100%!important;min-height:0!important;height:auto!important}
.tesnera-sidebar .nav-main>.tesnera-inline-group>.dropbtn{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;width:100%!important;min-height:43px!important;margin:0!important;padding:10px 14px!important;color:#dce8fa!important;font-size:13px!important;font-weight:550!important;cursor:default!important}
.tesnera-sidebar .nav-main>.tesnera-inline-group>.dropdown-content,
.tesnera-sidebar .nav-main>.tesnera-inline-group:hover>.dropdown-content,
.tesnera-sidebar .nav-main>.tesnera-inline-group:focus-within>.dropdown-content{display:flex!important;position:static!important;flex-direction:column!important;gap:2px!important;width:100%!important;padding:0 0 6px 39px!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.tesnera-sidebar .nav-main>.tesnera-inline-group>.dropdown-content>a{display:block!important;padding:8px 11px!important;font-size:12px!important;color:#c8d8f2!important}
.tesnera-sidebar .nav-main>.tesnera-inline-group>.dropdown-content>a:hover,
.tesnera-sidebar .nav-main>.tesnera-inline-group>.dropdown-content>a.active-nav{background:rgba(37,99,255,.28)!important;color:#fff!important}
.tesnera-sidebar .nav-main>.system-menu{padding-left:10px!important}
.tesnera-sidebar .nav-main>.system-menu>.dropbtn{font-weight:650!important}

/* Tesnera account footer */
.topbar.tesnera-sidebar .nav-account.tesnera-account{display:flex!important;flex-direction:column!important;gap:5px!important;margin-top:auto!important;padding:14px 5px 4px!important;border-top:1px solid rgba(210,226,255,.17)!important}
.topbar.tesnera-sidebar .tesnera-account-profile{display:flex!important;align-items:center!important;gap:11px!important;padding:4px 6px 13px!important;min-width:0!important;width:100%!important;max-width:100%!important}
.topbar.tesnera-sidebar .tesnera-account-avatar{display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;border-radius:12px!important;background:#2A4383!important;color:#fff!important;font-size:16px!important;font-weight:750!important}
.topbar.tesnera-sidebar .tesnera-account-identity{display:flex!important;flex-direction:column!important;min-width:0!important;gap:2px!important;flex:1 1 auto!important}
.topbar.tesnera-sidebar .tesnera-account-name{font-size:13px!important;font-weight:700!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.topbar.tesnera-sidebar .tesnera-account-role{font-size:11px!important;color:#A8BCE2!important;text-transform:capitalize!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.topbar.tesnera-sidebar .nav-account .tesnera-account-action{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;min-height:40px!important;width:100%!important;max-width:100%!important;margin:0!important;padding:9px 11px!important;border-radius:10px!important;color:#CFDCF4!important;font-size:13px!important;font-weight:550!important;text-align:left!important;white-space:nowrap!important;text-decoration:none!important;transition:background .15s ease,color .15s ease!important}
.topbar.tesnera-sidebar .nav-account .tesnera-account-action:hover,.topbar.tesnera-sidebar .nav-account .tesnera-account-action:focus-visible{background:rgba(91,132,226,.22)!important;color:#fff!important}
.topbar.tesnera-sidebar .nav-account .tesnera-account-action-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 18px!important;color:#9FBDF4!important}
.topbar.tesnera-sidebar .nav-account .tesnera-logout{margin-top:3px!important;border-top:1px solid rgba(210,226,255,.08)!important;border-radius:0 0 10px 10px!important}
.topbar.tesnera-sidebar .nav-account .tesnera-logout:hover{background:rgba(239,68,68,.12)!important;color:#FFD5D5!important}

/* Tesnera base: device type table actions */
.tesnera-device-types-grid{grid-template-columns:minmax(320px,1fr) minmax(580px,1.25fr)!important;align-items:start!important}
.tesnera-device-types-table{width:100%!important;min-width:570px!important}
.tesnera-device-types-table th,.tesnera-device-types-table td{vertical-align:middle!important;padding:12px 10px!important}
.tesnera-device-types-table .tesnera-actions-heading{text-align:right!important}
.tesnera-device-types-table .tesnera-device-actions-cell{width:1%!important;white-space:nowrap!important}
.tesnera-device-actions{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-end!important;align-items:center!important;gap:6px!important;white-space:nowrap!important}
.tesnera-device-actions form{display:inline-flex!important;flex:0 0 auto!important;margin:0!important}
.tesnera-device-actions .tesnera-device-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-height:35px!important;height:35px!important;padding:7px 10px!important;border-radius:9px!important;font-size:12px!important;font-weight:650!important;line-height:1!important;white-space:nowrap!important;box-shadow:none!important;transform:none!important}
.tesnera-device-actions .tesnera-device-action svg{flex:0 0 auto!important}
.tesnera-device-actions .tesnera-device-action.danger{background:#FEECEC!important;color:#B42318!important;border-color:#F6C7C4!important}
.tesnera-device-actions .tesnera-device-action.danger:hover{background:#FBD5D3!important;color:#9F1D16!important}
@media(max-width:1250px){.tesnera-device-types-grid{grid-template-columns:1fr!important}}

/* Tesnera role visibility matrix */
.tesnera-visibility-card{min-width:0!important}
.tesnera-visibility-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;font-size:13px!important}
.tesnera-visibility-table thead th{background:#F3F6FA!important;color:#344667!important;font-size:12px!important;font-weight:700!important;padding:13px 12px!important;border-bottom:1px solid #DDE5F0!important}
.tesnera-visibility-table thead th:first-child{text-align:left!important}
.tesnera-visibility-table thead th:not(:first-child){text-align:center!important}
.tesnera-visibility-table tbody th{padding:12px!important;color:#182B4D!important;text-align:left!important;font-weight:600!important;border-bottom:1px solid #E8EDF4!important}
.tesnera-visibility-table tbody td{text-align:center!important;padding:11px 8px!important;border-bottom:1px solid #E8EDF4!important}
.tesnera-visibility-table tbody tr:hover{background:#F7F9FF!important}
.tesnera-visibility-table tbody tr:last-child th,.tesnera-visibility-table tbody tr:last-child td{border-bottom:0!important}
.tesnera-visibility-check{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;cursor:pointer!important;min-height:26px!important}
.tesnera-visibility-check input{width:17px!important;height:17px!important;accent-color:#526AF4!important;cursor:pointer!important;margin:0!important}
.tesnera-check-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
.tesnera-visibility-card button[type=submit],.tesnera-visibility-card form>p>button{border-radius:10px!important;font-size:13px!important;padding:11px 18px!important}
/* Center device type values and column labels, keeping all action buttons inline. */
.tesnera-device-types-table.tesnera-centered-table th,.tesnera-device-types-table.tesnera-centered-table td{text-align:center!important;vertical-align:middle!important}
.tesnera-device-types-table.tesnera-centered-table .tesnera-actions-heading{text-align:center!important}
.tesnera-device-types-table.tesnera-centered-table .tesnera-device-actions{justify-content:center!important}

/* Tesnera brandbook buttons, scoped to operational pages */
:root{--tesnera-primary:#2563FF;--tesnera-primary-hover:#1C4FD4;--tesnera-teal:#06D6A0;--tesnera-navy:#0B1F44}
body:has(.tesnera-sidebar) main.container button:not(.secondary):not(.danger):not(.tfp-browse):not(.tfp-remove):not(.tfp-pick),body:has(.tesnera-sidebar) main.container .btn:not(.secondary):not(.danger),body:has(.tesnera-sidebar) main.container .tesnera-brand-primary{background:var(--tesnera-primary)!important;color:#fff!important;border:1px solid var(--tesnera-primary)!important;border-radius:11px!important;box-shadow:0 3px 10px rgba(37,99,255,.13)!important;font-weight:650!important;transition:background .16s ease,box-shadow .16s ease,transform .16s ease!important}
body:has(.tesnera-sidebar) main.container button:not(.secondary):not(.danger):not(.tfp-browse):not(.tfp-remove):not(.tfp-pick):hover,body:has(.tesnera-sidebar) main.container .btn:not(.secondary):not(.danger):hover{background:var(--tesnera-primary-hover)!important;box-shadow:0 5px 14px rgba(37,99,255,.2)!important;transform:translateY(-1px)!important}
body:has(.tesnera-sidebar) main.container button.secondary,body:has(.tesnera-sidebar) main.container .btn.secondary{background:#fff!important;color:var(--tesnera-navy)!important;border:1px solid #C7D6EF!important;border-radius:10px!important;font-weight:650!important;box-shadow:none!important}
body:has(.tesnera-sidebar) main.container button.secondary:hover,body:has(.tesnera-sidebar) main.container .btn.secondary:hover{background:#EEF3FF!important;border-color:#8FB0FF!important}
body:has(.tesnera-sidebar) main.container button.danger,body:has(.tesnera-sidebar) main.container .btn.danger{background:#FFF0F0!important;color:#C52B2B!important;border:1px solid #F4B9B9!important;border-radius:10px!important;box-shadow:none!important}
body:has(.tesnera-sidebar) main.container button:focus-visible,body:has(.tesnera-sidebar) main.container .btn:focus-visible{outline:3px solid rgba(6,214,160,.5)!important;outline-offset:2px!important}

/* ===== tesnera-lang ===== */
/* Tesnera EN/LT language switch. Plain links to /lang/{code}: works without JavaScript. */
.tesnera-language-switch{position:fixed;right:18px;top:16px;z-index:1200;display:inline-flex;gap:3px;padding:4px;background:#fff;border:1px solid #D9E2F0;border-radius:12px;box-shadow:0 5px 18px rgba(11,31,68,.12)}
.tesnera-language-switch a{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:7px 11px;color:#52627E;font-size:12px;font-weight:750;line-height:1;text-decoration:none}
.tesnera-language-switch a:hover{background:#EEF3FF;color:#0B1F44}
.tesnera-language-switch a[aria-current="true"]{background:#2563FF;color:#fff;box-shadow:0 2px 7px rgba(37,99,255,.22)}
.tesnera-language-switch a:focus-visible{outline:2px solid #06D6A0;outline-offset:2px}
.tesnera-language-switch .tesnera-flag{display:inline-block;flex:0 0 19px;width:19px;height:13px;border-radius:2px;overflow:hidden;box-shadow:0 0 0 1px rgba(11,31,68,.12)}
@media(max-width:600px){.tesnera-language-switch{right:10px;top:10px}}
/* Inside the signed-in sidebar footer */
.topbar.tesnera-sidebar .tesnera-account .tesnera-language-switch{position:static;display:flex;width:100%;box-sizing:border-box;margin:0 0 12px;gap:5px;padding:4px;background:rgba(255,255,255,.08);border:1px solid rgba(190,208,247,.22);border-radius:12px;box-shadow:none}
.topbar.tesnera-sidebar .tesnera-account .tesnera-language-switch a{flex:1 1 0;justify-content:center;min-width:0;padding:9px 7px;color:#C9D8F3;border-radius:9px}
.topbar.tesnera-sidebar .tesnera-account .tesnera-language-switch a:hover{background:rgba(255,255,255,.1);color:#fff}
.topbar.tesnera-sidebar .tesnera-account .tesnera-language-switch a[aria-current="true"]{background:#2563FF;color:#fff}
.tesnera-training-alert{margin:12px 18px;background:#fee2e2;border-color:#dc2626;color:#991b1b;font-weight:700}
/* Version badge: always bottom-right corner */
.tse-version{position:fixed;right:14px;bottom:12px;z-index:900;padding:4px 9px;border:1px solid #D9E2F0;border-radius:8px;background:rgba(255,255,255,.92);color:#52627E;font:600 11px/1.3 Inter,'Segoe UI',Arial,sans-serif;letter-spacing:.02em;pointer-events:none;box-shadow:0 2px 8px rgba(11,31,68,.06)}
.tss-version-corner{display:none!important}
.tesnera-account-company{display:block;margin-top:2px;color:#9FB4DA;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
@media print{.tse-version{display:none}}
.tesnera-password-notice{margin:14px 22px 0;padding:12px 18px;border-radius:12px;background:#E7F8F1;border:1px solid #9FE3C8;color:#065F46;font-weight:650}
main.container input.from-type[readonly]{background:#F3F6FA!important;color:#334155;cursor:default}

/* ===== tesnera-actions ===== */
/* Shared action buttons: all data tables and forms */
body:has(.tesnera-sidebar) main.container .tesnera-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;vertical-align:middle!important;white-space:nowrap!important;padding:9px 13px!important;min-height:37px!important;border-radius:10px!important;font-size:13px!important;font-weight:650!important;line-height:1.15!important;text-decoration:none!important;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease!important}
body:has(.tesnera-sidebar) main.container .tesnera-action svg{flex:0 0 16px!important;width:16px!important;height:16px!important}
body:has(.tesnera-sidebar) main.container .tesnera-action-edit,body:has(.tesnera-sidebar) main.container .tesnera-action-terminate,body:has(.tesnera-sidebar) main.container .tesnera-action-restore,body:has(.tesnera-sidebar) main.container .tesnera-action-view,body:has(.tesnera-sidebar) main.container .tesnera-action-copy{background:#fff!important;color:#0B1F44!important;border:1px solid #C7D6EF!important;box-shadow:none!important}
body:has(.tesnera-sidebar) main.container .tesnera-action-delete{background:#FFF0F0!important;color:#C52B2B!important;border:1px solid #F4B9B9!important;box-shadow:none!important}
body:has(.tesnera-sidebar) main.container .tesnera-action-delete:hover{background:#FFE1E1!important;border-color:#EAA0A0!important}
body:has(.tesnera-sidebar) main.container .tesnera-action-edit:hover,body:has(.tesnera-sidebar) main.container .tesnera-action-terminate:hover,body:has(.tesnera-sidebar) main.container .tesnera-action.tesnera-action-restore:hover{background:#EEF3FF!important;border-color:#8FB0FF!important}
body:has(.tesnera-sidebar) main.container td .tesnera-action{margin:2px 3px!important}
body:has(.tesnera-sidebar) main.container .tesnera-action:focus-visible{outline:3px solid rgba(6,214,160,.5)!important;outline-offset:2px!important}
@media(max-width:640px){body:has(.tesnera-sidebar) main.container .tesnera-action{padding:8px 10px!important;font-size:12px!important}}
/* Terminate / Restore: amber, clearly between Edit (neutral) and Delete (red) */
body:has(.tesnera-sidebar) main.container .tesnera-action.tesnera-action-terminate{background:#FFF8EB!important;color:#9A5B00!important;border:1px solid #F5D29A!important}
body:has(.tesnera-sidebar) main.container .tesnera-action.tesnera-action-terminate:hover{background:#FFEFD3!important;border-color:#E9B45E!important}
body:has(.tesnera-sidebar) main.container .tesnera-action.tesnera-action-restore{background:#ECFDF5!important;color:#047857!important;border:1px solid #A7E9CF!important}
/* Only button-only forms (Edit/Terminate/Delete…) sit inline; real forms with fields keep their layout */
body:has(.tesnera-sidebar) main.container form:has(> .tesnera-action):not(:has(input:not([type=hidden]),select,textarea)){display:inline-flex;margin:0}
/* One button height everywhere */
body:has(.tesnera-sidebar) main.container .btn,
body:has(.tesnera-sidebar) main.container button:not(.tfp-browse):not(.tfp-remove):not(.dropbtn),
body:has(.tesnera-sidebar) main.container .tesnera-action{box-sizing:border-box!important;height:40px!important;min-height:40px!important;padding-top:0!important;padding-bottom:0!important;line-height:1.2!important;white-space:nowrap!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:start}
body:has(.tesnera-sidebar) main.container td .btn,
body:has(.tesnera-sidebar) main.container td button:not(.tfp-browse):not(.tfp-remove):not(.dropbtn),
body:has(.tesnera-sidebar) main.container td .tesnera-action{height:36px!important;min-height:36px!important;padding-left:12px!important;padding-right:12px!important;font-size:13px!important}
/* Action groups in table cells: one tidy row that wraps evenly */
body:has(.tesnera-sidebar) main.container td:has(> .tesnera-action, > form > .tesnera-action),
body:has(.tesnera-sidebar) main.container .tesnera-device-actions{display:flex;flex-wrap:nowrap;gap:6px;align-items:center}
body:has(.tesnera-sidebar) main.container td .tesnera-action{margin:0!important}
/* Submit button after a form grid: normal size, aligned under the fields */
body:has(.tesnera-sidebar) main.container form > .form-grid + button,
body:has(.tesnera-sidebar) main.container form > .form-grid + p > button{margin-top:16px}

.form-grid.form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.form-grid.form-grid-3{grid-template-columns:1fr}}
.tesnera-stack{display:flex;flex-direction:column;gap:18px}
.tesnera-stack > .card{margin:0}
body:has(.tesnera-sidebar) main.container .tesnera-stack.tesnera-device-types-grid{display:flex!important;flex-direction:column!important;grid-template-columns:none!important}
.tfp-thumb.has-image{box-shadow:inset 0 0 0 1px #E2E8F0}
.tesnera-stack > .card{width:100%!important;max-width:none!important;box-sizing:border-box}
/* Device form: component rows = name | serial | remove, aligned on one line */
.component-serials .unit-row.component-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin-bottom:10px}
.component-serials .unit-remove{display:flex;align-items:flex-end}
.component-serials .unit-remove .remove-unit{height:42px!important;min-height:42px!important}
@media(max-width:700px){.component-serials .unit-row.component-grid{grid-template-columns:1fr}}
.warranty-choice{display:flex;gap:8px}
.warranty-choice select{flex:1}
.warranty-choice input{width:110px;flex:0 0 110px}
.readonly-facts{display:flex;flex-wrap:wrap;gap:6px 18px;min-height:42px;align-items:center;padding:0 14px;border:1px dashed #D5DEEC;border-radius:10px;background:#F8FAFD;font-size:13px;color:#334155;box-sizing:border-box}
/* Search fields: wide enough for their placeholder */
body:has(.tesnera-sidebar) main.container form[method="get"] input[name="q"],
body:has(.tesnera-sidebar) main.container .search-form input,
body:has(.tesnera-sidebar) main.container input[type="search"]{width:100%!important;max-width:560px;min-width:min(420px,100%);box-sizing:border-box;height:42px}
body:has(.tesnera-sidebar) main.container form[method="get"]:has(> input[name="q"]){flex:1 1 420px;max-width:560px}
body:has(.tesnera-sidebar) main.container .component-serials .unit-remove .remove-unit{height:44px!important;min-height:44px!important}
/* Tables with row actions scroll sideways instead of stacking the buttons */
body:has(.tesnera-sidebar) main.container .card:has(table td .tesnera-action),
body:has(.tesnera-sidebar) main.container .table-wrap{overflow-x:auto}
body:has(.tesnera-sidebar) main.container td:has(> .tesnera-action, > form > .tesnera-action){white-space:nowrap}
/* Identifiers never break in the middle */
body:has(.tesnera-sidebar) main.container td a[href^="/devices/"],body:has(.tesnera-sidebar) main.container td a[href^="/work-orders/"],body:has(.tesnera-sidebar) main.container td a[href^="/service-reports/"]{white-space:nowrap}
body:has(.tesnera-sidebar) main.container td .actions{display:flex!important;flex-wrap:nowrap!important;gap:6px;align-items:center;white-space:nowrap}

/* Row actions: links (Edit) and form buttons (Terminate, Delete) share exactly one height.
   The selectors repeat the general button rule's exclusions so this size wins for <button> too. */
body:has(.tesnera-sidebar) main.container td a.btn,
body:has(.tesnera-sidebar) main.container td a.tesnera-action,
body:has(.tesnera-sidebar) main.container td button.tesnera-action:not(.tfp-browse):not(.tfp-remove):not(.dropbtn),
body:has(.tesnera-sidebar) main.container td form > button:not(.tfp-browse):not(.tfp-remove):not(.dropbtn){box-sizing:border-box!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0 12px!important;font-size:13px!important;line-height:1.2!important;margin:0!important;align-self:center!important}
body:has(.tesnera-sidebar) main.container td form:has(> button):not(:has(input:not([type=hidden]),select,textarea)){display:inline-flex!important;align-items:center!important;margin:0!important}
/* Filter bars: every field has its label above it, the same width behaviour and the same height;
   Filter and Clear are two equal buttons on the fields' baseline. */
body:has(.tesnera-sidebar) main.container form.tesnera-filter-form[method="get"]{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:16px;align-items:end}
body:has(.tesnera-sidebar) main.container form.tesnera-filter-form[method="get"] > label{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;margin:0!important;min-width:0}
body:has(.tesnera-sidebar) main.container form.tesnera-filter-form[method="get"] > label > input[name],
body:has(.tesnera-sidebar) main.container form.tesnera-filter-form[method="get"] > label > select[name]{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important;box-sizing:border-box!important;font-weight:500}
body:has(.tesnera-sidebar) main.container form.tesnera-filter-form .tesnera-filter-actions{display:flex;gap:8px;align-items:center;align-self:end}
body:has(.tesnera-sidebar) main.container form.tesnera-filter-form .tesnera-filter-actions > button:not(.tfp-browse):not(.tfp-remove):not(.dropbtn),
body:has(.tesnera-sidebar) main.container form.tesnera-filter-form .tesnera-filter-actions > a.btn.secondary{height:44px!important;min-height:44px!important;padding:0 16px!important;margin:0!important;text-decoration:none!important}
@media(max-width:1100px){body:has(.tesnera-sidebar) main.container form.tesnera-filter-form[method="get"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body:has(.tesnera-sidebar) main.container form.tesnera-filter-form[method="get"]{grid-template-columns:1fr}}
/* Delete is always the red action, also when the button has no "danger" class of its own */
body:has(.tesnera-sidebar) main.container button.tesnera-action.tesnera-action-delete:not(.tfp-browse):not(.tfp-remove):not(.dropbtn),
body:has(.tesnera-sidebar) main.container a.tesnera-action.tesnera-action-delete{background:#FFF0F0!important;background-image:none!important;color:#C52B2B!important;border:1px solid #F4B9B9!important;box-shadow:none!important}
body:has(.tesnera-sidebar) main.container button.tesnera-action.tesnera-action-delete:not(.tfp-browse):not(.tfp-remove):not(.dropbtn):hover,
body:has(.tesnera-sidebar) main.container a.tesnera-action.tesnera-action-delete:hover{background:#FFE1E1!important;border-color:#EAA0A0!important}

/* ===== tesnera-file-picker ===== */
/* Tesnera file upload — one compact row: prompt or chosen document, plus the action button. */
.tfp{--tfp-blue:#2563FF;--tfp-navy:#0B1F44;--tfp-muted:#64748B;--tfp-line:#CBD6E8;position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:12px 14px;width:100%;max-width:720px;box-sizing:border-box;margin:6px 0 4px;padding:12px 14px;min-height:68px;border:1.5px dashed var(--tfp-line);border-radius:14px;background:#FAFBFE;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s;font-family:Inter,'Segoe UI',Arial,sans-serif}
.tfp:hover{border-color:#9DB6EE;background:#F6F9FF}
.tfp.is-over{border-style:solid;border-color:var(--tfp-blue);background:#EEF3FF;box-shadow:0 0 0 4px rgba(37,99,255,.12)}
.tfp:focus-within{border-color:var(--tfp-blue)}
.tfp.has-files{border-style:solid;border-color:#DCE4F1;background:#fff;cursor:default}
.tfp.is-disabled{opacity:.55;pointer-events:none}
.tfp-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;margin:0!important;padding:0!important;border:0!important}
/* empty state */
.tfp-body{display:flex;align-items:center;gap:12px;flex:1 1 240px;min-width:0}
.tfp.has-files .tfp-body{display:none}
.tfp-badge{flex:0 0 40px;display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#EEF3FF;color:var(--tfp-blue)}
.tfp-badge svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tfp-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.tfp-title{color:var(--tfp-navy);font-size:14px;font-weight:650;line-height:1.3}
.tfp-title::after{content:''}
.tfp-line{color:var(--tfp-muted);font-size:13px;line-height:1.35}
.tfp-hint{color:#8A97AB;font-size:12px;line-height:1.35}
.tfp button.tfp-browse,.tfp button.tfp-browse:hover{all:unset;display:inline!important;color:var(--tfp-blue)!important;font:inherit!important;font-weight:600!important;cursor:pointer;text-decoration:underline!important;text-underline-offset:3px;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;height:auto!important;min-height:0!important}
/* chosen documents, same row */
.tfp-files{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;flex:1 1 260px;min-width:0}
.tfp-files:empty{display:none}
.tfp-file{display:flex;align-items:center;gap:12px;min-width:0}
.tfp-thumb{flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;border-radius:9px;overflow:hidden;background:#EEF3FF;color:var(--tfp-blue);font-size:10px;font-weight:800;letter-spacing:.04em;box-shadow:inset 0 0 0 1px rgba(11,31,68,.06)}
.tfp-thumb[data-ext="PDF"]{background:#FFF0F0;color:#C52B2B}
.tfp-thumb[data-ext^="XLS"],.tfp-thumb[data-ext="CSV"]{background:#ECFDF5;color:#047857}
.tfp-thumb[data-ext^="DOC"]{background:#EEF4FF;color:#1D4ED8}
.tfp-thumb.has-image{background:#F3F6FA}
.tfp-thumb img,.tfp-thumb canvas{width:100%;height:100%;object-fit:cover}
.tfp-meta{display:flex;flex-direction:column;min-width:0;flex:1}
.tfp-name{color:var(--tfp-navy);font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tfp-size{color:var(--tfp-muted);font-size:12px}
.tfp button.tfp-remove{all:unset;flex:0 0 34px;display:grid!important;place-items:center;width:34px!important;height:34px!important;min-height:0!important;border-radius:9px;color:#94A3B8;cursor:pointer;background:transparent!important;box-shadow:none!important;padding:0!important}
.tfp button.tfp-remove:hover{background:#FFF0F0!important;color:#C52B2B}
.tfp button.tfp-remove:focus-visible{outline:2px solid var(--tfp-blue)}
.tfp-remove svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
/* action button at the end of the row */
body main.container .tfp button.tfp-pick,.tfp button.tfp-pick{flex:0 0 auto;height:38px!important;min-height:38px!important;padding:0 16px!important;border-radius:10px!important;background:#fff!important;color:var(--tfp-navy)!important;border:1px solid #C7D6EF!important;box-shadow:none!important;font-size:13px!important;font-weight:650!important;cursor:pointer;white-space:nowrap}
.tfp button.tfp-pick:hover{background:#EEF3FF!important;border-color:#8FB0FF!important}
.tfp-error{flex-basis:100%;color:#B42318;font-size:12.5px;font-weight:600}
.tfp-error:empty{display:none}
/* the form's own submit button sits below the row */
.tfp + button,.tfp + .btn{margin-top:12px}
@media(max-width:560px){.tfp button.tfp-pick{flex-basis:100%}}
.card:has(.tesnera-visibility-table){overflow-x:auto}
.tfp-thumb.is-sheet{background:#fff}
.tfp-thumb.is-sheet canvas{object-fit:cover;object-position:left top}
/* Selected file: remove (x) and Replace sit side by side, centred on one line, on every upload */
.tfp.has-files{flex-wrap:nowrap;align-items:center}
.tfp.has-files .tfp-files{flex:1 1 0;min-width:0}
.tfp.has-files .tfp-file{align-items:center}
.tfp.has-files button.tfp-remove{align-self:center!important;margin:0!important}
body main.container .tfp.has-files button.tfp-pick,.tfp.has-files button.tfp-pick{align-self:center!important;margin:0!important;width:auto!important;flex:0 0 auto!important}
.tfp.has-files:has(.tfp-error:not(:empty)){flex-wrap:wrap}
@media(max-width:560px){.tfp.has-files{flex-wrap:wrap}.tfp.has-files button.tfp-pick{flex:1 0 100%!important;width:100%!important}}
/* Larger, more legible document thumbnails */
.tfp-thumb{flex:0 0 58px!important;width:58px!important;height:58px!important;border-radius:10px!important}
.tfp-thumb.has-image{box-shadow:0 1px 3px rgba(11,31,68,.12),inset 0 0 0 1px #E2E8F0!important}

/* ===== tesnera-ui-polish ===== */
/* Tesnera UI refinement: document templates typography and dashboard indicators.
   Keep local so it cannot override user-defined document templates. */
.tesnera-doc-templates {
  --td-text: #0b1f44;
  --td-muted: #62738a;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--td-text);
  font-size: 15px;
  line-height: 1.5;
}
.tesnera-doc-templates h1,
.tesnera-doc-templates h2,
.tesnera-doc-templates h3 {
  font-family: inherit;
  color: var(--td-text);
  letter-spacing: -.025em;
  line-height: 1.25;
}
.tesnera-doc-templates > h1 {font-size: 30px; font-weight: 750; margin: 0 0 10px}
.tesnera-doc-templates > p.muted {font-size: 14px; line-height: 1.55; margin: 0 0 22px}
.tesnera-doc-templates .grid.two {align-items: stretch;gap:18px}
.tesnera-doc-templates .grid.two > .card {padding:24px;min-width:0}
.tesnera-doc-templates .card h2 {font-size:18px;font-weight:750;margin-bottom:14px}
.tesnera-doc-templates .card h3 {font-size:16px;font-weight:700;margin:18px 0 12px}
.tesnera-doc-templates .card p {font-size:14px;line-height:1.5;margin:0 0 15px}
.tesnera-doc-templates .card p.muted,
.tesnera-doc-templates .card .muted {color:var(--td-muted);font-size:14px;line-height:1.5}
.tesnera-doc-templates .card hr {border:0;border-top:1px solid #dde4ed;margin:19px 0}
.tesnera-doc-templates button,
.tesnera-doc-templates .btn,
.tesnera-doc-templates input[type=submit] {
  font-family:inherit;
  font-size:13px;
  font-weight:650;
  letter-spacing:0;
  line-height:1.35;
  min-height:40px;
  padding:10px 15px;
  white-space:normal;
  text-align:center;
}
.tesnera-doc-templates .tfp,
.tesnera-doc-templates .tfp * {font-family:inherit}
.tesnera-doc-templates .tfp {font-size:14px;line-height:1.45}
.tesnera-doc-templates .tfp-title {font-size:14px;font-weight:700}
.tesnera-doc-templates .tfp-line {font-size:13px}
.tesnera-doc-templates .tfp-size {font-size:11px;word-break:break-word;overflow-wrap:anywhere}
.tesnera-doc-templates .tfp button {font-size:13px}
.tesnera-doc-templates .notice,
.tesnera-doc-templates .info,
.tesnera-doc-templates .success {font-size:14px;line-height:1.5}
@media(max-width:720px){.tesnera-doc-templates > h1{font-size:26px}.tesnera-doc-templates .grid.two > .card{padding:18px}}

/* Stat cards (Dashboard, Statistics, PM): one brand-blue accent everywhere.
   Numbers turn orange/red only when attention is needed. */
.stats-grid .stat-card{border-left:4px solid #2563FF!important;padding:20px;min-height:116px}
.stats-grid .stat-label{color:#52627a;font-size:13px;font-weight:500;line-height:1.45;margin-bottom:24px}
.stats-grid .stat{color:#0B1F44;font-size:30px;line-height:1;font-weight:750;font-variant-numeric:tabular-nums}
.stats-grid .stat.warning-text,.stats-grid .stat-card.pm-warning-active .stat{color:#b86f00}
.stats-grid .stat.danger,.stats-grid .stat-card.pm-danger-active .stat{color:#dc2626}
/* PM yearly plan grid */
.pm-plan-table th.pm-month,.pm-plan-table td.pm-month{text-align:center;white-space:nowrap;min-width:64px;padding:8px 6px}
.pm-plan-table th.pm-month.current,.pm-plan-table td.pm-month.current{background:#eef3ff}
.pm-plan-table td.pm-month .pm-date{display:block;margin:2px 0}

/* Service report page: plain white header (no graphics), Tesnera brandbook colours */
.report-hero{background:#fff!important;color:#0B1F44!important;border:1px solid #DCE4F0!important;border-radius:14px!important;box-shadow:0 4px 22px rgba(11,31,68,.06)!important;padding:22px 26px!important}
.report-hero::before,.report-hero::after{display:none!important;content:none!important}
.report-hero h1{color:#0B1F44!important;font-family:Inter,'Segoe UI',Arial,sans-serif;font-weight:700;letter-spacing:-.02em}
.report-hero p{color:#52627a!important}
.report-hero .hero-pills .badge{background:#F3F6FA!important;border:1px solid #DCE4F0!important;color:#0B1F44!important}
.report-hero .hero-actions .btn.secondary{background:#fff!important;border:1px solid #DCE4F0!important;color:#0B1F44!important}
.report-hero .hero-actions .btn.secondary:hover{background:#F3F6FA!important}
.report-hero .hero-actions .btn:not(.secondary){background:#2563FF!important;border-color:#2563FF!important;color:#fff!important}
.report-card.brand-card,.report-card{border:1px solid #DCE4F0!important;border-radius:14px!important;box-shadow:0 4px 22px rgba(11,31,68,.06)!important;background:#fff}
.report-card h2,.report-card .report-section-title h2{color:#0B1F44;font-size:18px;font-weight:700;position:relative;padding-left:14px}
.report-card h2::before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:4px;border-radius:2px;background:#2563FF}
.report-card.collapsible-card>summary{color:#0B1F44}
.report-card .collapse-hint{color:#2563FF;font-weight:600;font-size:.85rem}
.report-card table th{background:#F3F6FA;color:#0B1F44;font-weight:600}
.badge.lifecycle.terminated{background:#fee2e2;color:#991b1b}

/* Tables with row actions: header, rows and action cells always share one grid */
.tesnera-actions-table{width:100%;border-collapse:separate;border-spacing:0}
.tesnera-actions-table th.actions-col,.tesnera-actions-table td:last-child:has(.tesnera-action){text-align:right;white-space:nowrap}
.tesnera-actions-table td{vertical-align:middle}
.tesnera-actions-table td form{margin:0}

/* Row actions: keep the cell a real table-cell (no broken row border), centred buttons */
body:has(.tesnera-sidebar) main.container td:has(> .tesnera-action, > form > .tesnera-action){display:table-cell!important;text-align:center!important;white-space:nowrap!important;vertical-align:middle!important}
body:has(.tesnera-sidebar) main.container td:has(> .tesnera-action, > form > .tesnera-action) > .tesnera-action,
body:has(.tesnera-sidebar) main.container td:has(> .tesnera-action, > form > .tesnera-action) > form{margin:0 3px!important;vertical-align:middle!important;display:inline-flex!important}
.tesnera-actions-table th.actions-col,.tesnera-actions-table td:last-child:has(.tesnera-action){text-align:center!important}

/* Row hover highlights every cell, including the Next PM column */
table tbody tr:hover td.pm-column,.data-table tbody tr:hover td.pm-column{background:#fafbfd!important}

/* Statistics: devices-by-type doughnut */
.donut-card{margin-bottom:18px}
.donut-wrap{display:flex;align-items:center;gap:36px;flex-wrap:wrap}
.donut{width:220px;height:220px;flex:0 0 220px}
.donut circle{transition:opacity .15s}.donut circle:hover{opacity:.82}
.donut-total{font-size:30px;font-weight:700;fill:#0B1F44}.donut-sub{font-size:11px;fill:#52627a}
.donut-legend{list-style:none;margin:0;padding:0;flex:1 1 260px;display:grid;gap:10px;max-width:460px}
.donut-legend li{display:grid;grid-template-columns:14px 1fr auto 52px;gap:10px;align-items:center;font-size:14px}
.donut-legend .dot{width:12px;height:12px;border-radius:50%}.donut-legend .lg-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.donut-legend .muted{text-align:right}
/* Statistics: KPI doughnuts in a responsive grid */
.donut-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(460px,1fr));gap:18px;margin:18px 0}
.donut-grid .donut-card{margin:0}
.donut-grid .donut-card h2{margin:0 0 14px;font-size:17px}
.donut-grid .donut-wrap{gap:28px;flex-wrap:nowrap}
.donut-grid .donut{width:180px;height:180px;flex:0 0 180px}
.donut-side{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:14px;align-self:stretch}
.donut-grid .donut-legend{max-width:none;gap:10px;align-content:start;flex:0 0 auto}
.donut-grid .donut-legend .lg-name{white-space:normal;overflow:visible;line-height:1.3}
.donut-grid .donut-card{display:flex;flex-direction:column}.donut-grid .donut-wrap{flex:1}
.donut-grid .donut-legend li{grid-template-columns:12px 1fr auto 48px;font-size:13.5px}
.donut-foot{display:grid;gap:6px;padding-top:12px;border-top:1px solid #E6ECF5}
.donut-foot div{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#52627a}
.donut-foot strong{color:#0B1F44;font-weight:700;white-space:nowrap}
@media(max-width:620px){.donut-grid{grid-template-columns:1fr}.donut-grid .donut-wrap{flex-wrap:wrap;justify-content:center}}

/* Help page */
.help-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px;border-bottom:1px solid #DCE4F0;padding-bottom:14px}
.help-tab{border-radius:999px!important;padding:8px 18px!important;font-weight:650}
.help-tab.active{background:#2563FF!important;border-color:#2563FF!important;color:#fff!important}
.help-intro{color:#52627a;max-width:900px}
.help-panel{max-width:900px;line-height:1.6}
.help-panel h2{color:#0B1F44;margin-top:4px}.help-panel h3{color:#0B1F44;margin-top:26px;padding-left:10px;border-left:4px solid #2563FF}
.help-panel code{background:#F3F6FA;border:1px solid #DCE4F0;border-radius:6px;padding:1px 6px;font-size:.92em}
.help-panel li{margin:5px 0}

/* Confirmation forms: equal label height so fields in a row line up, one badge style */
.confirm-grid{align-items:start}
.confirm-grid label{display:flex;align-items:center;gap:8px;min-height:28px;margin-bottom:6px}
.confirm-grid label .badge{font-size:11px;padding:2px 9px;line-height:1.4;white-space:nowrap}
.confirm-grid label label{display:contents}

/* ===== utilities (replace former inline style attributes; keep the inline priority) ===== */
.u-ai-center{align-items:center!important}
.u-ai-end{align-items:end!important}
.u-ai-flex-start{align-items:flex-start!important}
.u-as-end{align-self:end!important}
.u-bb-1-solid-e5e7eb{border-bottom:1px solid #e5e7eb!important}
.u-col-full{grid-column:1/-1!important}
.u-d-block{display:block!important}
.u-d-flex{display:flex!important}
.u-d-inline{display:inline!important}
.u-d-inline-block{display:inline-block!important}
.u-danger-box{border:1px solid #efaaa4!important;background:#fff7f6!important}
.u-fs-12{font-size:12px!important}
.u-fw-600{font-weight:600!important}
.u-fwrap-wrap{flex-wrap:wrap!important}
.u-gap-10{gap:10px!important}
.u-gap-12{gap:12px!important}
.u-gap-8{gap:8px!important}
.u-gtc-minmax-220-320-auto{grid-template-columns:minmax(220px,320px) auto!important}
.u-jc-space-between{justify-content:space-between!important}
.u-logo-preview{max-width:320px!important;max-height:100px!important;border:1px solid #ddd!important;margin-top:8px!important;background:white!important;border-radius:10px!important;padding:4px!important}
.u-m-0{margin:0!important}
.u-m-0-0-0-24{margin:0 0 0 24px!important}
.u-m-12-0{margin:12px 0!important}
.u-maxw-100{max-width:100px!important}
.u-mb-0{margin-bottom:0!important}
.u-mb-12{margin-bottom:12px!important}
.u-mb-18{margin-bottom:18px!important}
.u-minw-160{min-width:160px!important}
.u-minw-190{min-width:190px!important}
.u-minw-340{min-width:340px!important}
.u-minw-360{min-width:360px!important}
.u-minw-560{min-width:560px!important}
.u-ml-24{margin-left:24px!important}
.u-ml-8{margin-left:8px!important}
.u-mr-18{margin-right:18px!important}
.u-mt-10{margin-top:10px!important}
.u-mt-12{margin-top:12px!important}
.u-mt-14{margin-top:14px!important}
.u-mt-16{margin-top:16px!important}
.u-mt-18{margin-top:18px!important}
.u-mt-22{margin-top:22px!important}
.u-mt-4{margin-top:4px!important}
.u-mt-6{margin-top:6px!important}
.u-mt-8{margin-top:8px!important}
.u-note-box{margin-top:14px!important;padding:12px!important;border:1px solid #ddd!important;border-radius:10px!important;background:#fff!important}
.u-offscreen{position:absolute!important;left:-9999px!important}
.u-op-72{opacity:.72!important}
.u-ow-anywhere{overflow-wrap:anywhere!important}
.u-p-10-0{padding:10px 0!important}
.u-p-12-0{padding:12px 0!important}
.u-p-5-9{padding:5px 9px!important}
.u-signature-pad{width:100%!important;max-width:700px!important;height:180px!important;border:1px solid #cfd6df!important;border-radius:14px!important;background:white!important;touch-action:none!important}
.u-ta-center{text-align:center!important}
.u-ta-right{text-align:right!important}
.u-text-danger{color:#b42318!important}
.u-thumb-120{width:120px!important;height:120px!important;max-width:120px!important;max-height:120px!important;min-width:120px!important;min-height:120px!important;object-fit:cover!important}
.u-thumb-120-box{width:120px!important;height:120px!important;max-width:120px!important;max-height:120px!important;min-width:120px!important;min-height:120px!important;flex:0 0 120px!important}
.u-w-80{width:80px!important}
.u-w-95{width:95px!important}
.u-w-auto{width:auto!important}
.u-ws-nowrap{white-space:nowrap!important}
.u-ws-pre-wrap{white-space:pre-wrap!important}

/* Inline certificate approval form (calibrated tools): stacked, fits the Action column */
.review-form{display:grid;grid-template-columns:1fr 1fr;gap:6px 8px;align-items:end;margin-top:8px;min-width:0;max-width:300px}
.review-form label{display:block;margin:0 0 2px;font-size:11px;font-weight:700;line-height:1.2;white-space:normal}
.review-form input{width:100%;min-width:0;box-sizing:border-box;padding:6px 8px;font-size:12px}
.review-form .full{grid-column:1/-1}
.review-form button{width:100%;padding:7px 10px;font-size:12px}
.review-form+div,td .review-form{max-width:100%}

/* Sidebar counters: one quiet pill style, right-aligned, brand tints instead of loud solid colours */
.tesnera-sidebar .nav-with-count{display:flex!important;align-items:center!important;width:100%!important}
.tesnera-sidebar .nav-count,.tesnera-sidebar .nav-count-second,.tesnera-sidebar .nav-count-correction{
  margin:0 0 0 auto!important;transform:none!important;min-width:22px;height:22px;padding:0 7px!important;box-sizing:border-box;
  border:0!important;border-radius:999px!important;font-size:11.5px!important;font-weight:700!important;line-height:22px!important;
  letter-spacing:.01em;text-align:center;justify-content:center;
  background:rgba(37,99,255,.38)!important;color:#fff!important;box-shadow:none!important}
.tesnera-sidebar .nav-count+.nav-count{margin-left:6px!important}
.tesnera-sidebar .nav-count-orange,.tesnera-sidebar .nav-count-yellow{background:rgba(251,191,36,.18)!important;color:#FBBF24!important}
.tesnera-sidebar .nav-count-green{background:rgba(6,214,160,.22)!important;color:#06D6A0!important}
.tesnera-sidebar .nav-with-count>.nav-count:not(.nav-count-orange):not(.nav-count-yellow):not(.nav-count-green):first-of-type{background:#2563FF!important}
/* Collapsed sidebar: small dot-style counter on the icon */
body.tesnera-sidebar-collapsed .tesnera-sidebar .nav-count{position:absolute!important;top:2px;right:4px;margin:0!important;min-width:18px;height:18px;line-height:18px!important;padding:0 5px!important;font-size:10.5px!important;background:#2563FF!important}

/* Malfunction rows: a single drop-down plus Remove */
.malfunction-row{margin:10px 0}
.malfunction-line{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.malfunction-line>div{flex:1 1 320px;min-width:0}
.malfunction-line>button{flex:0 0 auto}
.u-nowrap{white-space:nowrap}
/* Malfunction row: text as large as the other fields, Remove on the same line as the drop-down */
.malfunction-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end!important}
.malfunction-line select{font-size:14px!important;height:46px;box-sizing:border-box}
.malfunction-line>button{align-self:end!important;margin:0!important;height:46px;box-sizing:border-box;white-space:nowrap}

/* report workspace: one card, divider-separated sections */
.malf-add{display:flex;justify-content:flex-start;margin-top:14px}
.report-workspace .report-block{border-top:1px solid #E6ECF5;margin-top:28px;padding-top:24px}
.report-workspace .report-block .report-section-title h2{font-size:17px}
.report-workspace details.card{background:#F7F9FD;border:1px solid #E6ECF5;box-shadow:none;border-radius:14px;padding:14px 18px}
.report-workspace details.card summary{cursor:pointer;color:#2563FF}
.report-workspace .checklist-summary{border:1px solid #E6ECF5;box-shadow:none;background:#fff}
.report-footer{display:flex;gap:10px;align-items:center;border-top:1px solid #E6ECF5;margin-top:28px;padding-top:22px}

/* ===== document templates: 3-step panels ===== */
.tesnera-doc-templates .dt-panel{padding:26px 28px;margin-bottom:22px}
.tesnera-doc-templates .dt-head{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.tesnera-doc-templates .dt-head h2{margin:0 0 2px}.tesnera-doc-templates .dt-head p{margin:0}
.tesnera-doc-templates .dt-tile{width:46px;height:46px;border-radius:14px;background:#EEF3FF;color:#2563FF;display:grid;place-items:center;flex:none}
.tesnera-doc-templates .dt-tile svg,.tesnera-doc-templates .btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tesnera-doc-templates .dt-tile svg{width:22px;height:22px}
.tesnera-doc-templates .dt-pill{margin-left:auto;display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 11px;border-radius:99px;font-size:12px;font-weight:700;white-space:nowrap}
.tesnera-doc-templates .dt-pill i{width:7px;height:7px;border-radius:50%;background:currentColor}
.tesnera-doc-templates .dt-pill.built{background:#EEF3FF;color:#2F55D4}.tesnera-doc-templates .dt-pill.custom{background:#E8F8F0;color:#047857}
.tesnera-doc-templates .dt-steps{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:18px}
.tesnera-doc-templates .dt-step{border:1px solid #E6ECF5;border-radius:16px;padding:18px;background:#FBFCFE;display:flex;flex-direction:column;gap:10px;min-width:0}
.tesnera-doc-templates .dt-step h3{margin:0;font-size:14.5px}.tesnera-doc-templates .dt-step p{margin:0;font-size:12.5px}
.tesnera-doc-templates .dt-step form{display:flex;flex-direction:column;gap:10px;margin:0}
.tesnera-doc-templates .dt-n{width:26px;height:26px;border-radius:50%;background:#0B1F44;color:#fff;font-weight:700;font-size:13px;display:grid;place-items:center}
.tesnera-doc-templates .dt-step .btn,.tesnera-doc-templates .dt-step button{display:flex;justify-content:center;align-items:center;gap:8px;width:100%}
.tesnera-doc-templates .dt-foot{margin-top:16px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}
.tesnera-doc-templates .dt-foot form{margin:0}.tesnera-doc-templates .dt-foot .btn{width:auto;display:inline-flex;align-items:center;gap:8px}
@media(max-width:900px){.tesnera-doc-templates .dt-steps{grid-template-columns:1fr}.tesnera-doc-templates .dt-head{flex-wrap:wrap}}

/* ===== unified vertical rhythm on all tool/list pages (one 18px gap between blocks) ===== */
main.container .alert-banner{margin:0 0 18px}
main.container .section-title{margin-bottom:24px;gap:20px}
main.container .section-title h1{margin:0 0 6px;line-height:1.15}
main.container .section-title p,main.container .section-title p.muted,main.container .section-title .page-subtitle{margin:0;line-height:1.5}
main.container .toolbar{margin:0 0 18px;gap:10px}
main.container .toolbar form,main.container .toolbar .search-form{margin:0}
main.container .card,main.container details.card{margin-bottom:18px}
main.container details.card{padding:18px 22px}
main.container details.card>summary{min-height:24px;display:flex;align-items:center}
main.container .card.table-wrap{padding:14px 18px 10px}
main.container .table-card{padding:14px 18px 10px}
main.container .grid.stats-grid,main.container .grid.two,main.container .grid{gap:18px}
main.container .grid.stats-grid,main.container .grid.two{margin-bottom:18px}
main.container .grid>.card,main.container .stats-grid>.card{margin-bottom:0}
main.container>:last-child{margin-bottom:0}

/* ===== expandable "New …" / "Add …" cards: clear button-like header with + icon and chevron ===== */
main.container>details.card{padding:0;overflow:hidden;transition:box-shadow .15s,border-color .15s}
main.container>details.card>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:14px;padding:14px 22px;min-height:68px;user-select:none;transition:background .15s}
main.container>details.card>summary::-webkit-details-marker{display:none}
main.container>details.card>summary::marker{content:""}
main.container>details.card>summary::before{content:"+";flex:none;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#EEF3FF;color:#2563FF;font-size:24px;font-weight:500;line-height:1;transition:background .15s,color .15s,transform .2s}
main.container>details.card>summary>strong{font-size:16px;font-weight:700;color:#0B1F44}
main.container>details.card>summary::after{content:"";margin-left:auto;flex:none;width:9px;height:9px;border-right:2px solid #64748B;border-bottom:2px solid #64748B;transform:rotate(45deg) translateY(-2px);transition:transform .2s}
main.container>details.card>summary:hover{background:#F8FAFF}
main.container>details.card:hover{border-color:#C9D5EA;box-shadow:0 6px 20px rgba(37,99,255,.08)}
main.container>details.card[open]>summary{border-bottom:1px solid #E6ECF5;background:#FAFBFE}
main.container>details.card[open]>summary::before{content:"\2212";background:#2563FF;color:#fff}
main.container>details.card[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
main.container>details.card>:not(summary){margin-left:22px;margin-right:22px}
main.container>details.card>summary+*{margin-top:18px}
main.container>details.card>:last-child{margin-bottom:22px}
main.container>details.card>summary:focus-visible{outline:2px solid #2563FF;outline-offset:-2px;border-radius:20px}
/* pixel-centred + / − (drawn, not a text glyph) */
main.container>details.card>summary::before{content:"";font-size:0;background-color:#EEF3FF;background-image:linear-gradient(currentColor,currentColor),linear-gradient(currentColor,currentColor);background-repeat:no-repeat;background-position:center;background-size:14px 2px,2px 14px}
main.container>details.card[open]>summary::before{content:"";background-color:#2563FF;background-image:linear-gradient(currentColor,currentColor);background-repeat:no-repeat;background-position:center;background-size:14px 2px}

/* ===== checklist editor: edit panel opens below the row, full width ===== */
.checklist-table tr.cl-item-row.is-editing>td{background:#F5F7FF;border-bottom:0}
.checklist-table tr.cl-item-row.is-editing .cl-text{color:#94A3B8}
.checklist-table tr.cl-edit-row>td{background:#F5F7FF;padding:4px 18px 20px;border-bottom:2px solid #DCE3EE}
.cl-edit-form{display:flex;flex-direction:column;gap:14px;margin:0}
.cl-edit-form label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:13px;color:#0B1F44}
.cl-edit-desc textarea{width:100%;min-height:96px;resize:vertical;font-size:15px;line-height:1.5;font-weight:400;box-sizing:border-box}
.cl-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start}
.cl-edit-grid small{font-weight:400;line-height:1.4}
.cl-edit-form .checkline{flex-direction:row;align-items:center;gap:8px;font-weight:500}
.cl-edit-actions{display:flex;gap:10px;align-items:center;margin-top:14px;flex-wrap:wrap}
.cl-edit-actions form{margin:0 0 0 auto}
@media(max-width:900px){.cl-edit-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.cl-edit-grid{grid-template-columns:1fr}}

/* Yes / No choice cards (radio next to the word, selected card highlighted) */
.yn-choice{border:0;margin:16px 0 0;padding:0;min-width:0}
.yn-choice>legend{padding:0;margin:0 0 10px;font-weight:700;font-size:14px;color:var(--text)}
.yn-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.yn-opt{position:relative;display:flex!important;flex-direction:column;gap:6px;margin:0!important;padding:14px 16px 14px 16px;background:var(--surface);border:1.5px solid var(--line);border-radius:14px;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}
.yn-opt:hover{border-color:var(--line-strong);box-shadow:var(--shadow-soft)}
.yn-opt input[type=radio]{position:absolute!important;opacity:0;width:1px!important;height:1px!important;margin:0!important;padding:0!important;pointer-events:none}
.yn-head{display:flex;align-items:center;gap:10px;font-weight:600;color:var(--text)}
.yn-radio{flex:0 0 auto;width:18px;height:18px;border-radius:50%;border:2px solid var(--line-strong);background:#fff;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
.yn-word{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}
.yn-yes{background:var(--ok-bg);color:var(--ok)}
.yn-no{background:var(--danger-bg);color:var(--danger)}
.yn-title{font-size:14px}
.yn-desc{padding-left:28px;font-size:13px;line-height:1.45;color:var(--muted);font-weight:400}
.yn-opt:has(input:checked){border-color:var(--primary);background:var(--primary-soft);box-shadow:0 0 0 3px rgba(37,99,255,.12)}
.yn-opt:has(input:checked) .yn-radio{border-color:var(--primary);box-shadow:inset 0 0 0 3px #fff;background:var(--primary)}
.yn-opt:has(input:focus-visible){outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:700px){.yn-options{grid-template-columns:1fr}}

/* a card grid (e.g. Assignment + Device) is followed by the next card with the same gap as between cards */
main.container>.grid{margin-bottom:18px}
main.container>.grid>.card{margin-bottom:0}

/* Support access page */
.sa-page .card,.sa-page .card.table-card{padding:24px 28px}
.sa-page .card.table-card .table-wrap{margin-top:12px}
.sa-head{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.sa-head h2{margin:0}
.sa-dot{flex:none;width:12px;height:12px;border-radius:50%;background:#94A3B8;box-shadow:0 0 0 4px #EEF2F7}
.sa-dot.on{background:#06D6A0;box-shadow:0 0 0 4px rgba(6,214,160,.22)}
.sa-status.is-on{border-color:#A7F0DC;background:linear-gradient(180deg,#F2FEFA,#fff 60%)}
.sa-info{margin:14px 0 4px;max-width:760px}
.sa-form{display:grid;gap:20px;margin-top:18px}
.sa-field>label{display:block;margin:0 0 8px;font-size:13px;font-weight:700;color:#0B1F44}
.sa-field textarea{width:100%;min-height:96px;resize:vertical}
.seg-choice{display:flex;flex-wrap:wrap;gap:10px}
.seg-opt{position:relative;margin:0!important;cursor:pointer}
.seg-opt input[type=radio]{position:absolute!important;opacity:0;width:1px!important;height:1px!important;margin:0!important;padding:0!important;pointer-events:none}
.seg-opt span{display:inline-flex;align-items:center;justify-content:center;min-width:76px;padding:10px 18px;border:1.5px solid var(--line);border-radius:999px;background:#fff;font-weight:600;font-size:14px;color:#0B1F44;transition:border-color .15s,background .15s,color .15s,box-shadow .15s}
.seg-opt:hover span{border-color:var(--line-strong)}
.seg-opt:has(input:checked) span{border-color:var(--primary);background:var(--primary-soft);color:var(--primary-dark);box-shadow:0 0 0 3px rgba(37,99,255,.12)}
.seg-opt:has(input:focus-visible) span{outline:2px solid var(--primary);outline-offset:2px}

/* ===== Commercial feature pack (2FA, setup, health, audit, QR labels, calendar, requests, API) ===== */
.feat-inline-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:10px 0}
.feat-inline-form label{display:flex;flex-direction:column;gap:4px;font-size:13px}
.feat-inline-form input,.feat-inline-form select{min-width:160px}
.feat-form textarea{width:100%}
.feat-checks{display:flex;flex-wrap:wrap;gap:8px 18px;margin:8px 0 12px}
.feat-checks label{display:flex;align-items:center;gap:6px;font-weight:500}
.feat-codes{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin:12px 0}
.feat-codes code,.feat-secret{font-size:15px;padding:8px 10px;background:#F3F6FA;border:1px solid #DCE4F0;border-radius:8px;text-align:center;word-break:break-all}
.feat-secret{display:inline-block;margin-top:6px;text-align:left;user-select:all}
.feat-steps{padding-left:20px;display:grid;gap:14px}
.feat-qr svg{width:200px;height:200px;margin:10px 0;border:1px solid #E6ECF5;border-radius:10px}
.feat-progress{height:8px;border-radius:999px;background:#E6ECF5;overflow:hidden;margin:0 0 16px}
.feat-progress span{display:block;height:100%;background:#06D6A0}
.feat-checklist{list-style:none;margin:0;padding:0}
.feat-checklist li{display:grid;grid-template-columns:28px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #EEF2F7}
.feat-checklist li:last-child{border-bottom:0}.feat-checklist p{margin:2px 0 0}
.feat-tick{width:24px;height:24px;border-radius:50%;border:2px solid #CBD6E8;display:grid;place-items:center;font-weight:800;color:#fff;font-size:13px}
.feat-checklist .is-done .feat-tick{background:#06D6A0;border-color:#06D6A0}
.feat-health{list-style:none;margin:0;padding:0}
.feat-health li{display:grid;grid-template-columns:14px 180px 1fr;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #EEF2F7}
.feat-dot{width:12px;height:12px;border-radius:50%;background:#94A3B8}
.lvl-ok .feat-dot{background:#06D6A0}.lvl-warn .feat-dot{background:#F5A524}.lvl-bad .feat-dot{background:#EF476F}
.feat-audit td{vertical-align:top}.feat-details{white-space:pre-wrap;word-break:break-word;max-width:640px}
.nowrap{white-space:nowrap}.feat-pager{display:flex;gap:14px;align-items:center;justify-content:center;margin-top:12px}
.feat-settings{display:grid;gap:14px}.feat-switch{display:flex;gap:10px;align-items:flex-start}.feat-indent{margin:-6px 0 0 30px}
.feat-num{width:96px}
.feat-req-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.feat-req-actions{display:grid;gap:4px;border-top:1px solid #EEF2F7;margin-top:10px;padding-top:6px}
.feat-pre{white-space:pre-wrap;background:#F3F6FA;padding:10px;border-radius:8px;font-size:12.5px}
/* calendar */
.feat-cal-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}.feat-cal-head h2{margin:0}
.feat-legend{display:flex;gap:8px}
.feat-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:18px}
.feat-cal-wd{font-size:12px;font-weight:700;color:#52627a;text-align:center;padding:4px 0}
.feat-cal-day{min-height:110px;background:#fff;border:1px solid #E6ECF5;border-radius:10px;padding:6px;display:flex;flex-direction:column;gap:4px;min-width:0}
.feat-cal-day.other{background:#F8FAFC;opacity:.75}.feat-cal-day.today{border-color:#2563FF;box-shadow:inset 0 0 0 1px #2563FF}
.feat-cal-day.drop{background:#EEF3FF;border-style:dashed}
.feat-cal-n{font-size:12px;font-weight:700;color:#52627a}
.feat-ev{display:block;border-radius:7px;padding:4px 6px;font-size:11.5px;line-height:1.3;text-decoration:none;color:#0B1F44;background:#EEF3FF;border-left:3px solid #2563FF;overflow:hidden}
.feat-ev strong,.feat-ev span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.feat-ev span{color:#52627a}
.feat-ev.pm{background:#FFF7E6;border-left-color:#F5A524}.feat-ev.closed{opacity:.55;text-decoration:line-through}
.feat-ev[draggable=true]{cursor:grab}
.feat-legend .feat-ev{display:inline-block}
/* QR labels: 63.5 x 38.1 mm (common A4 sheet of 21) */
.feat-labels{display:grid;grid-template-columns:repeat(auto-fill,63.5mm);gap:4mm}
.feat-label{width:63.5mm;height:38.1mm;box-sizing:border-box;border:1px dashed #CBD6E8;border-radius:3mm;padding:2.5mm;display:flex;gap:2.5mm;align-items:center;background:#fff;overflow:hidden}
.feat-label-qr svg{width:30mm;height:30mm;display:block}
.feat-label-text{display:flex;flex-direction:column;gap:1mm;font-size:8.5pt;line-height:1.2;min-width:0}
.feat-label-text strong{font-size:9.5pt}.feat-label-text span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feat-label-co{margin-top:auto;font-size:7pt;color:#52627a}
@media print{.tesnera-sidebar,.tesnera-mobile-toggle,.feat-noprint,.tesnera-net-banner{display:none!important}body{background:#fff}main.container{padding:0!important;margin:0!important;max-width:none!important}.feat-label{border-color:#ddd;break-inside:avoid}}
/* phones and tablets: larger touch targets, no tiny calendar */
@media (max-width:760px){
  body:has(.tesnera-sidebar) main.container input:not([type=checkbox]):not([type=radio]),body:has(.tesnera-sidebar) main.container select,body:has(.tesnera-sidebar) main.container textarea{min-height:44px;font-size:16px}
  body:has(.tesnera-sidebar) main.container .btn,body:has(.tesnera-sidebar) main.container button:not(.tfp-browse):not(.tfp-remove):not(.dropbtn){min-height:44px!important;height:auto!important}
  .feat-cal{grid-template-columns:1fr}.feat-cal-wd{display:none}.feat-cal-day{min-height:0}.feat-cal-day.other:not(:has(.feat-ev)){display:none}.feat-cal-day:not(:has(.feat-ev)):not(.today){display:none}
  .feat-health li{grid-template-columns:14px 1fr}.feat-health li .muted{grid-column:2}
  .feat-inline-form{flex-direction:column;align-items:stretch}
}
