:root{--vs-bg:#F4F1EA;--vs-dark:#0C0C0C;--vs-gold:#B9985A;--vs-titanium:#A7A9AC;--vs-card:#FFFFFF;--vs-card2:#FBFAF7;--vs-text:#0C0C0C;--vs-muted:#6E6A63;--vs-line:rgba(12,12,12,.10);--vs-success:#53745C;--vs-warning:#9A742E;--vs-error:#A44E49;--vs-shadow:0 10px 32px rgba(12,12,12,.055);--vs-shadow-sm:0 2px 10px rgba(12,12,12,.045);--vs-radius:16px;--vs-radius-lg:22px;--vs-motion:180ms cubic-bezier(.2,.8,.2,1)}
*{box-sizing:border-box}html,body{background:var(--vs-bg)!important;color:var(--vs-text)!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",sans-serif!important;-webkit-font-smoothing:antialiased}body{margin:0}a{color:inherit}h1,h2,h3{letter-spacing:-.025em}h1{font-weight:730}h2,h3{font-weight:700}.muted{color:var(--vs-muted)!important}.top,.header{background:rgba(244,241,234,.88)!important;color:var(--vs-dark)!important;border-bottom:1px solid var(--vs-line)!important;backdrop-filter:saturate(150%) blur(18px)}.brand{color:var(--vs-dark)!important}.top a,.header a{color:var(--vs-dark)!important}.card,.panel,.box,.kpi,.hero,.section-card{background:var(--vs-card)!important;border:1px solid var(--vs-line)!important;border-radius:var(--vs-radius-lg)!important;box-shadow:var(--vs-shadow)!important}.card h2,.card h3{border-color:var(--vs-line)!important}.wrap,.shell,main{color:var(--vs-text)}button,.btn,input,select,textarea{font:inherit}button,.btn{appearance:none;border:1px solid transparent!important;border-radius:999px!important;padding:9px 14px!important;background:var(--vs-dark)!important;color:#fff!important;font-weight:650!important;cursor:pointer;transition:transform var(--vs-motion),box-shadow var(--vs-motion),background var(--vs-motion),border-color var(--vs-motion),opacity var(--vs-motion)}button:hover,.btn:hover{transform:translateY(-1px);box-shadow:var(--vs-shadow-sm)}button:active,.btn:active{transform:translateY(0) scale(.985)}button.lightbtn,.btn.lightbtn,.btn.secondary,.secondary{background:#fff!important;color:var(--vs-dark)!important;border-color:var(--vs-line)!important}.green,.btn.rec,.success{background:var(--vs-success)!important}.danger,.error{background:var(--vs-error)!important}.ask,.warning{background:#F7EEDB!important;color:#6F531B!important}.ai,.accent,.btn.accent{background:var(--vs-gold)!important;color:var(--vs-dark)!important}input,select,textarea{background:#fff!important;color:var(--vs-text)!important;border:1px solid var(--vs-line)!important;border-radius:12px!important;padding:9px 11px!important;outline:none;transition:border-color var(--vs-motion),box-shadow var(--vs-motion)}input:focus,select:focus,textarea:focus{border-color:rgba(185,152,90,.75)!important;box-shadow:0 0 0 4px rgba(185,152,90,.13)!important}.tabs,.vs-segmented{display:inline-flex!important;gap:2px!important;padding:3px!important;background:rgba(12,12,12,.055)!important;border-radius:13px!important}.tabs button,.vs-segmented button{background:transparent!important;color:var(--vs-muted)!important;border:0!important;box-shadow:none!important}.tabs button.on,.tabs button.active,.vs-segmented button.active{background:#fff!important;color:var(--vs-dark)!important;box-shadow:0 1px 5px rgba(0,0,0,.09)!important}.pill,.badge,.vs-status{display:inline-flex;align-items:center;border-radius:999px!important;padding:5px 9px!important;font-size:11px!important;font-weight:700!important;background:#F3F1EC!important;color:var(--vs-muted)!important;border:1px solid rgba(12,12,12,.06)!important}.badge.RECONCILED,.pill.success{background:#EAF1EB!important;color:var(--vs-success)!important}.badge.PENDING,.pill.error{background:#F8E9E7!important;color:var(--vs-error)!important}.badge.ANSWERED,.badge.AI_REVIEW_READY,.pill.warning{background:#F7EEDB!important;color:var(--vs-warning)!important}.vs-switch{position:relative;display:inline-block;width:48px;height:28px;flex:none}.vs-switch input{opacity:0;width:0;height:0}.vs-slider{position:absolute;cursor:pointer;inset:0;background:#D1D1D6;border-radius:999px;transition:var(--vs-motion)}.vs-slider:before{content:"";position:absolute;width:24px;height:24px;left:2px;top:2px;background:#fff;border-radius:50%;box-shadow:0 2px 7px rgba(0,0,0,.22);transition:var(--vs-motion)}.vs-switch input:checked+.vs-slider{background:var(--vs-gold)}.vs-switch input:checked+.vs-slider:before{transform:translateX(20px)}table{background:var(--vs-card)!important;color:var(--vs-text)!important}th{background:rgba(244,241,234,.72)!important;color:var(--vs-muted)!important;border-color:var(--vs-line)!important}td{border-color:var(--vs-line)!important}.sidebar{background:rgba(255,255,255,.76)!important;border-color:var(--vs-line)!important}.menu-label{text-transform:uppercase;letter-spacing:.1em;color:var(--vs-muted)!important}.menu-item{border-radius:14px!important;transition:background var(--vs-motion),transform var(--vs-motion),box-shadow var(--vs-motion)}.menu-item:hover{background:rgba(185,152,90,.09)!important}.menu-item.active{background:#fff!important;color:var(--vs-dark)!important;box-shadow:inset 3px 0 0 var(--vs-gold),var(--vs-shadow-sm)!important}.admin-tag{background:rgba(185,152,90,.16)!important;color:#765E2E!important}.loading{color:var(--vs-muted)!important}.modalback{background:rgba(12,12,12,.28)!important;backdrop-filter:blur(5px)}.credmodal{border-radius:24px!important;border:1px solid var(--vs-line)!important;box-shadow:0 30px 90px rgba(12,12,12,.20)!important}.vs-brand-lockup{display:flex;align-items:center;gap:12px}.vs-brand-mark{width:10px;height:10px;border-radius:50%;background:var(--vs-gold);box-shadow:0 0 0 5px rgba(185,152,90,.12)}.vs-brand-title{font-weight:760;letter-spacing:.14em;font-size:13px}.vs-brand-sub{font-size:11px;color:var(--vs-muted);letter-spacing:.06em}.vs-powered{font-size:10px;color:var(--vs-titanium);letter-spacing:.06em}.vs-page-title{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:18px}.vs-page-title h1{margin:0}.vs-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.vs-divider{height:1px;background:var(--vs-line);margin:18px 0}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* 8Q.2 data-dense desktop polish */
.scroll,.vs-table-shell{overflow:auto;border:1px solid var(--vs-line);border-radius:16px;background:#fff}.scroll table,.vs-table-shell table{margin:0;border:0!important}.scroll thead th,.vs-table-shell thead th{position:sticky;top:0;z-index:5;backdrop-filter:blur(10px)}tbody tr{transition:background var(--vs-motion)}tbody tr:hover{background:rgba(185,152,90,.045)!important}.vs-table-meta{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:10px 12px;color:var(--vs-muted);font-size:12px}.vs-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.vs-field label{display:block;font-size:11px;font-weight:700;color:var(--vs-muted);margin:0 0 6px}.vs-field input,.vs-field select,.vs-field textarea{width:100%}.vs-workflow{position:sticky;top:8px;z-index:25;background:rgba(255,255,255,.88);border:1px solid var(--vs-line);border-radius:18px;padding:12px 14px;box-shadow:var(--vs-shadow);backdrop-filter:blur(18px)}.vs-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.vs-kpi{padding:14px;background:#fff;border:1px solid var(--vs-line);border-radius:15px}.vs-kpi .k{font-size:11px;color:var(--vs-muted)}.vs-kpi .v{font-size:22px;font-weight:730;margin-top:4px}@media(max-width:1100px){.vs-form-grid{grid-template-columns:1fr 1fr}.vs-kpi-grid{grid-template-columns:1fr 1fr}}\n\n/* PATCH 8Q.4.2 — Apple Enterprise controls repair
   Fixes over-broad global button styling introduced by the UI foundation.
   Business logic/templates are untouched. */

/* Sidebar navigation is navigation, not a primary action button. */
button.menu-item,
.menu-item{
  appearance:none!important;
  width:100%;
  border:0!important;
  border-radius:14px!important;
  padding:10px 12px!important;
  background:transparent!important;
  color:var(--vs-dark)!important;
  box-shadow:none!important;
  text-align:left!important;
  font-weight:600!important;
  transform:none!important;
}
button.menu-item:hover,
.menu-item:hover{
  background:rgba(185,152,90,.075)!important;
  box-shadow:none!important;
  transform:none!important;
}
button.menu-item.active,
.menu-item.active{
  background:#fff!important;
  color:var(--vs-dark)!important;
  box-shadow:inset 3px 0 0 var(--vs-gold),0 2px 10px rgba(12,12,12,.045)!important;
}
.menu-item .menu-title{color:var(--vs-dark)!important}
.menu-item .menu-desc{color:#6f7d88!important;font-weight:500!important}

/* Column sort controls must look like table labels, not black CTA pills. */
button.colsort,
.colsort{
  appearance:none!important;
  display:inline-flex!important;
  align-items:flex-end!important;
  gap:3px!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  margin:0!important;
  min-height:0!important;
  background:transparent!important;
  color:#455b70!important;
  box-shadow:none!important;
  font:inherit!important;
  font-weight:750!important;
  line-height:1.12!important;
  text-align:left!important;
  white-space:normal!important;
  cursor:pointer!important;
  transform:none!important;
}
button.colsort:hover,
.colsort:hover{
  background:transparent!important;
  color:var(--vs-dark)!important;
  box-shadow:none!important;
  text-decoration:none!important;
  transform:none!important;
}
button.colsort:active,
.colsort:active{transform:none!important}
.colsort .sortind{
  margin-left:2px!important;
  color:#8293a0!important;
  font-size:10px!important;
  font-weight:700!important;
}
.colsort.active{color:var(--vs-dark)!important}
.colsort.active .sortind{color:var(--vs-gold)!important}

/* Table header stays quiet and enterprise-like. */
.tbl.ext thead tr:first-child th{
  background:#eaf1f6!important;
  color:#455b70!important;
}
.tbl.ext thead tr.filter-row th{
  background:#f7f9fa!important;
}
.tbl.ext thead tr:first-child th.num .colsort{
  justify-content:flex-end!important;
  width:100%!important;
}

/* Header/navigation buttons: ghost controls, not dominant CTAs. */
.header-btn,
.top a,
.header a.header-btn{
  background:rgba(255,255,255,.62)!important;
  color:var(--vs-dark)!important;
  border:1px solid var(--vs-line)!important;
  border-radius:11px!important;
  padding:8px 11px!important;
  box-shadow:none!important;
  text-decoration:none!important;
  font-weight:650!important;
}
.header-btn:hover,
.header a.header-btn:hover{
  background:#fff!important;
  box-shadow:var(--vs-shadow-sm)!important;
}

/* Explicit action buttons keep Apple Enterprise hierarchy. */
.btn,
button.secondary,
button.accent,
button.warning,
button.success,
button.danger,
.audit-actions button,
.nci-wrap button,
.search button,
.head-actions .btn{
  border-radius:11px!important;
}
.btn,
.audit-actions button,
.nci-wrap button{
  min-height:32px;
}
button.secondary,.btn.secondary{
  background:#fff!important;
  color:var(--vs-dark)!important;
  border:1px solid var(--vs-line)!important;
}
button.secondary:hover,.btn.secondary:hover{
  background:#fbfaf7!important;
}
button.accent,.btn.accent{
  background:var(--vs-gold)!important;
  color:var(--vs-dark)!important;
}
button.warning,.btn.warning{
  background:#F7EEDB!important;
  color:#6F531B!important;
}
button.success,.btn.success{
  background:var(--vs-success)!important;
  color:#fff!important;
}
button.danger,.btn.danger{
  background:var(--vs-error)!important;
  color:#fff!important;
}

/* Audit action bar: compact, consistent controls. */
.audit-actions{
  gap:6px!important;
}
.audit-actions button{
  padding:6px 10px!important;
  font-size:11px!important;
  min-height:30px!important;
  white-space:nowrap!important;
}

/* Keep segmented controls visually separate from primary buttons. */
.tabs button,
.vs-segmented button{
  border-radius:9px!important;
  padding:7px 11px!important;
  min-height:auto!important;
  transform:none!important;
}
.tabs button:hover,
.vs-segmented button:hover{
  transform:none!important;
  box-shadow:none!important;
}

/* Filter inputs stay compact under sticky headers. */
.colfilter{
  border-radius:8px!important;
  padding:5px 7px!important;
  min-height:28px!important;
  box-shadow:none!important;
}\n

/* PATCH 8Q.4.3 — Financial Reports & duplicate-header polish */

/* Financial Reports: Apple Enterprise control hierarchy */
.financial-report-page .toolbar .btn,
.financial-report-page .filters .btn,
.financial-report-page .rateBox .btn{
  min-height:34px!important;
  border-radius:11px!important;
  padding:8px 13px!important;
  font-size:12px!important;
  font-weight:700!important;
  box-shadow:none!important;
  transform:none!important;
}
.financial-report-page .toolbar .btn:hover,
.financial-report-page .filters .btn:hover,
.financial-report-page .rateBox .btn:hover{
  transform:none!important;
}
.financial-report-page .toolbar .btn.light,
.financial-report-page .toolbar a.btn.light{
  background:#fff!important;
  color:#0C0C0C!important;
  border:1px solid rgba(12,12,12,.10)!important;
}
.financial-report-page .toolbar form .btn{
  background:#B9985A!important;
  color:#0C0C0C!important;
  border:1px solid rgba(185,152,90,.55)!important;
}
.financial-report-page .toolbar .btn.green{
  background:#4F7A5A!important;
  color:#fff!important;
  border:1px solid rgba(79,122,90,.35)!important;
}
.financial-report-page .filters .btn,
.financial-report-page .rateBox .btn{
  background:#0C0C0C!important;
  color:#fff!important;
  border:1px solid #0C0C0C!important;
}

/* The "Report / ALL MEMBERS" KPI must stay readable on the light theme. */
.financial-report-page .kpi.total{
  background:#fff!important;
  color:#0C0C0C!important;
  border:1px solid rgba(12,12,12,.08)!important;
  box-shadow:0 10px 28px rgba(12,12,12,.05)!important;
  position:relative;
  overflow:hidden;
}
.financial-report-page .kpi.total:before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:4px;
  background:#B9985A;
}
.financial-report-page .kpi.total .label{
  color:#718391!important;
}
.financial-report-page .kpi.total .value{
  color:#0C0C0C!important;
}

/* Personal Member Statement follows Venturis S.I. light enterprise palette. */
.financial-report-page .memberPage{
  background:#fff!important;
  border:1px solid rgba(12,12,12,.08)!important;
  box-shadow:0 12px 34px rgba(12,12,12,.05)!important;
}
.financial-report-page .memberHead{
  background:#F4F1EA!important;
  color:#0C0C0C!important;
  border-bottom:1px solid rgba(12,12,12,.09)!important;
  box-shadow:inset 4px 0 0 #B9985A;
}
.financial-report-page .memberHead .eyebrow,
.financial-report-page .memberHead [style*="color:#c8d6e0"],
.financial-report-page .memberHead [style*="color:#c9d5de"]{
  color:#6E6A63!important;
}
.financial-report-page .memberHead h2{
  color:#0C0C0C!important;
}
.financial-report-page .memberKpis{
  background:#fff!important;
}
.financial-report-page .memberKpi .l{
  color:#6E6A63!important;
}
.financial-report-page .memberKpi .v{
  color:#0C0C0C!important;
}
.financial-report-page .tripTable th{
  background:#F4F1EA!important;
  color:#6E6A63!important;
}
.financial-report-page .rateBox{
  background:#FBFAF7!important;
  border-color:rgba(185,152,90,.45)!important;
}

/* Section headings and expanders remain quiet and readable. */
.financial-report-page .sectionHead.fixed{
  background:#F6F3ED!important;
}
.financial-report-page .sectionHead.variable{
  background:#EEF5F1!important;
}
.financial-report-page .plus{
  background:#EEF2F4!important;
  color:#102F49!important;
}
.financial-report-page .category[open]>.catSummary .plus{
  background:#102F49!important;
  color:#fff!important;
}

/* PATCH 8Q.4.5 — Executive Financial Report identity + file upload controls */

/* Wider executive report canvas */
.financial-report-page .wrap{
  max-width:1800px!important;
  width:100%!important;
  padding-left:18px!important;
  padding-right:18px!important;
}

/* Page 1 report identity card */
.financial-report-page .reportHeaderCard{
  background:#fff;
  border:1px solid rgba(12,12,12,.08);
  border-radius:20px;
  box-shadow:0 12px 32px rgba(12,12,12,.045);
  overflow:hidden;
  margin-bottom:18px;
}
.financial-report-page .reportHeaderTop{
  display:grid;
  grid-template-columns:minmax(260px,.7fr) minmax(620px,1.3fr);
  gap:28px;
  align-items:center;
  padding:20px 24px 18px;
}
.financial-report-page .reportAssetSummary .eyebrow{
  margin-bottom:5px;
}
.financial-report-page .reportAssetSummary h1{
  margin:0 0 4px;
  font-size:34px;
  line-height:1.05;
  color:#0C0C0C;
}
.financial-report-page .reportIdentity{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:20px;
  min-width:0;
}
.financial-report-page .reportIdentityLogo{
  flex:0 0 105px;
  width:105px;
  height:105px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:14px;
  background:#fff;
}
.financial-report-page .reportIdentityLogo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.financial-report-page .reportIdentityText{
  min-width:0;
  text-align:left;
}
.financial-report-page .reportIdentityTitle{
  font-size:28px;
  line-height:1.05;
  font-weight:800;
  letter-spacing:-.02em;
  color:#0C0C0C;
  margin-bottom:7px;
}
.financial-report-page .reportIdentitySubtitle{
  font-size:14px;
  line-height:1.35;
  font-weight:650;
  color:#0C0C0C;
  margin-bottom:5px;
}
.financial-report-page .reportIdentityAircraft{
  font-size:12px;
  line-height:1.35;
  color:#6E6A63;
}
.financial-report-page .reportHeaderActions{
  border-top:1px solid rgba(12,12,12,.08);
  padding:11px 16px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  background:#FBFAF7;
}
.financial-report-page .reportHeaderActions .btn{
  min-height:32px!important;
  padding:6px 11px!important;
  border-radius:10px!important;
  font-size:11px!important;
  font-weight:700!important;
  transform:none!important;
  box-shadow:none!important;
}
.financial-report-page .reportHeaderActions .btn.light{
  background:#fff!important;
  color:#0C0C0C!important;
  border:1px solid rgba(12,12,12,.11)!important;
}
.financial-report-page .reportHeaderActions form .btn{
  background:#B9985A!important;
  color:#0C0C0C!important;
  border:1px solid rgba(185,152,90,.58)!important;
}
.financial-report-page .reportHeaderActions .btn.green{
  background:#4F7A5A!important;
  color:#fff!important;
  border:1px solid rgba(79,122,90,.35)!important;
}

/* Native file input made consistent with Venturis Apple Enterprise controls */
input[type="file"]{
  max-width:100%;
  min-height:38px;
  padding:4px!important;
  border:1px solid rgba(12,12,12,.10)!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#6E6A63!important;
  font-size:12px!important;
  line-height:28px!important;
  cursor:pointer;
}
input[type="file"]::file-selector-button{
  appearance:none;
  border:0;
  border-radius:8px;
  background:#0C0C0C;
  color:#fff;
  padding:7px 11px;
  margin-right:10px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  transition:background 160ms ease, transform 160ms ease;
}
input[type="file"]::-webkit-file-upload-button{
  appearance:none;
  border:0;
  border-radius:8px;
  background:#0C0C0C;
  color:#fff;
  padding:7px 11px;
  margin-right:10px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
input[type="file"]:hover::file-selector-button{
  background:#B9985A;
  color:#0C0C0C;
}
input[type="file"]:focus{
  outline:none!important;
  border-color:rgba(185,152,90,.75)!important;
  box-shadow:0 0 0 4px rgba(185,152,90,.12)!important;
}

@media(max-width:1180px){
  .financial-report-page .reportHeaderTop{
    grid-template-columns:1fr;
  }
  .financial-report-page .reportIdentity{
    justify-content:flex-start;
  }
}
@media(max-width:720px){
  .financial-report-page .reportIdentity{
    align-items:flex-start;
  }
  .financial-report-page .reportIdentityLogo{
    flex-basis:78px;
    width:78px;
    height:78px;
  }
  .financial-report-page .reportIdentityTitle{
    font-size:22px;
  }
  .financial-report-page .reportHeaderActions{
    justify-content:flex-start;
  }
}
@media print{
  .financial-report-page .reportHeaderCard{
    box-shadow:none!important;
    border-color:#d8d8d8!important;
  }
  .financial-report-page .reportHeaderActions{
    display:none!important;
  }
}

/* PATCH 8Q.4.7 - Sidebar & Upload History Desktop Polish */
.sidebar-toggle{width:38px!important;height:38px!important;right:8px!important;top:10px!important;border-radius:12px!important;border:1px solid rgba(12,12,12,.10)!important;background:rgba(255,255,255,.94)!important;color:#0C0C0C!important;box-shadow:0 4px 14px rgba(12,12,12,.055)!important}
.sidebar-toggle-icon{width:21px!important;height:18px!important;border:1.45px solid currentColor!important;border-radius:5px!important}
.sidebar-toggle-panel{left:3px!important;top:3px!important;bottom:3px!important;width:5px!important;border-radius:2px!important}
.sidebar-toggle-icon:after{left:12px!important;top:5px!important;width:5px!important;height:5px!important;border-right:1.4px solid currentColor!important;border-bottom:1.4px solid currentColor!important}
.shell.sidebar-collapsed .sidebar-toggle{right:-20px!important;top:12px!important}
.shell.sidebar-collapsed .sidebar-toggle-panel{left:auto!important;right:3px!important}
.shell.sidebar-collapsed .sidebar-toggle-icon:after{left:4px!important}

.upload-history-page .wrap{width:100%!important;max-width:none!important;margin:0!important;padding-left:24px!important;padding-right:24px!important}
.upload-history-page .ext-history-card{width:100%!important;max-width:none!important}
.upload-history-page .history-scroller{overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
.upload-history-page .tbl.ext{width:100%!important;min-width:1660px!important;table-layout:auto!important}
.upload-history-page .tbl.ext th{padding:10px 7px!important;font-size:11px!important}
.upload-history-page .tbl.ext td{padding:9px 7px!important;font-size:11px!important;line-height:1.22!important}
.upload-history-page .tbl.ext .small{font-size:9px!important;line-height:1.18!important}
.upload-history-page .tbl.ext .supplier{font-size:11px!important}

.upload-history-page .tbl.ext th:nth-child(1),.upload-history-page .tbl.ext td:nth-child(1){min-width:92px}
.upload-history-page .tbl.ext th:nth-child(2),.upload-history-page .tbl.ext td:nth-child(2){min-width:205px}
.upload-history-page .tbl.ext th:nth-child(3),.upload-history-page .tbl.ext td:nth-child(3){min-width:150px}
.upload-history-page .tbl.ext th:nth-child(4),.upload-history-page .tbl.ext td:nth-child(4){min-width:92px}
.upload-history-page .tbl.ext th:nth-child(5),.upload-history-page .tbl.ext td:nth-child(5){min-width:54px}
.upload-history-page .tbl.ext th:nth-child(6),.upload-history-page .tbl.ext td:nth-child(6){min-width:175px}
.upload-history-page .tbl.ext th:nth-child(7),.upload-history-page .tbl.ext td:nth-child(7){min-width:165px}
.upload-history-page .tbl.ext th:nth-child(8),.upload-history-page .tbl.ext td:nth-child(8){min-width:100px}
.upload-history-page .tbl.ext th:nth-child(9),.upload-history-page .tbl.ext td:nth-child(9){min-width:54px}
.upload-history-page .tbl.ext th:nth-child(10),.upload-history-page .tbl.ext td:nth-child(10){min-width:125px}
.upload-history-page .tbl.ext th:nth-child(11),.upload-history-page .tbl.ext td:nth-child(11){min-width:72px}
.upload-history-page .tbl.ext th:nth-child(12),.upload-history-page .tbl.ext td:nth-child(12){min-width:95px}
.upload-history-page .tbl.ext th:nth-child(13),.upload-history-page .tbl.ext td:nth-child(13){min-width:118px}
.upload-history-page .tbl.ext th:nth-child(14),.upload-history-page .tbl.ext td:nth-child(14){min-width:150px}
.upload-history-page .tbl.ext th:nth-child(15),.upload-history-page .tbl.ext td:nth-child(15){min-width:95px}
.upload-history-page .tbl.ext th:nth-child(16),.upload-history-page .tbl.ext td:nth-child(16){min-width:245px}

.upload-history-page .tbl.ext thead tr:first-child th{background:#F4F1EA!important;color:#6E6A63!important;border-bottom:1px solid rgba(12,12,12,.09)!important}
.upload-history-page .tbl.ext thead tr.filter-row th{background:#FBFAF7!important;border-bottom:1px solid rgba(12,12,12,.08)!important}
.upload-history-page .colsort{color:#6E6A63!important}
.upload-history-page .colsort:hover,.upload-history-page .colsort.active{color:#0C0C0C!important}
.upload-history-page .colsort.active .sortind{color:#B9985A!important}
.upload-history-page .colfilter{background:#fff!important;border:1px solid rgba(12,12,12,.11)!important;color:#0C0C0C!important}
.upload-history-page .colfilter:focus{outline:none!important;border-color:rgba(185,152,90,.65)!important;box-shadow:0 0 0 3px rgba(185,152,90,.10)!important}

.upload-history-page .filters a{background:#F0EEE9!important;color:#6E6A63!important;border:1px solid transparent!important}
.upload-history-page .filters a:hover{background:#E9E5DC!important;color:#0C0C0C!important}
.upload-history-page .filters a.active{background:#0C0C0C!important;color:#fff!important}

.upload-history-page .head-actions .btn.open,.upload-history-page .search button,.upload-history-page .actions .btn.open{background:#0C0C0C!important;color:#fff!important;border:1px solid #0C0C0C!important}
.upload-history-page .head-actions .btn.note{background:#B9985A!important;color:#0C0C0C!important;border:1px solid rgba(185,152,90,.50)!important}
.upload-history-page .actions .btn{min-height:30px!important;padding:6px 10px!important;border-radius:10px!important;font-size:11px!important}
.upload-history-page .actions .btn.replace{background:#fff!important;color:#0C0C0C!important;border:1px solid rgba(12,12,12,.11)!important}
.upload-history-page .actions .btn.upload{background:#EAF2EC!important;color:#456B50!important;border:1px solid rgba(69,107,80,.10)!important}
.upload-history-page .actions .btn.delete{background:#F6E8E6!important;color:#9B4540!important;border:1px solid rgba(155,69,64,.08)!important}

.upload-history-page .status{padding:5px 9px!important;border-radius:999px!important;font-size:10px!important;font-weight:800!important;letter-spacing:.2px!important}
.upload-history-page .BANK_MATCHED,.upload-history-page .FILE_AVAILABLE,.upload-history-page .RECONCILED{background:#EAF2EC!important;color:#456B50!important}
.upload-history-page .BANK_REFERENCE,.upload-history-page .PENDING{background:#F7EEDB!important;color:#74591E!important}
.upload-history-page .BANK_MISSING{background:#F0EEE9!important;color:#6E6A63!important}
.upload-history-page .MISSING_FILE{background:#F6E8E6!important;color:#9B4540!important}

.upload-history-page .tbl tr:hover td{background:#FBFAF7!important}
.upload-history-page .tbl.ext tr.data-error td{background:#FBEEEE!important}
.upload-history-page .tbl.ext tr.data-error:hover td{background:#F8E5E5!important}
.upload-history-page .tbl.ext tr.data-warning td{background:#FCF6E9!important}
.upload-history-page .tbl.ext tr.data-warning:hover td{background:#F9F0DB!important}

.upload-history-page .history-scroller::-webkit-scrollbar{height:10px;width:10px}
.upload-history-page .history-scroller::-webkit-scrollbar-track{background:#F4F1EA}
.upload-history-page .history-scroller::-webkit-scrollbar-thumb{background:#C8C2B7;border:2px solid #F4F1EA;border-radius:999px}
.upload-history-page .history-scroller::-webkit-scrollbar-thumb:hover{background:#AAA296}

/* PATCH 8Q.4.8 - Executive Report single identity header */
.financial-report-page .reportHeaderCard{width:100%!important}
.financial-report-page .reportHeaderTop{display:block!important;padding:26px 30px 20px!important}
.financial-report-page .reportIdentity{display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;gap:24px!important;align-items:center!important;width:100%!important;max-width:none!important}
.financial-report-page .reportIdentityLogo{width:96px!important;min-width:96px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.financial-report-page .reportIdentityLogo img{width:88px!important;height:auto!important;max-height:92px!important;object-fit:contain!important}
.financial-report-page .reportIdentityText{min-width:0!important}
.financial-report-page .reportIdentityTitle{font-size:30px!important;line-height:1.05!important;font-weight:820!important;letter-spacing:-.6px!important;color:#0C0C0C!important;margin-bottom:6px!important}
.financial-report-page .reportIdentitySubtitle{font-size:15px!important;line-height:1.35!important;font-weight:720!important;color:#0C0C0C!important;margin-bottom:7px!important}
.financial-report-page .reportIdentityAsset{font-size:12px!important;line-height:1.4!important;color:#6E6A63!important}
.financial-report-page .reportHeaderActions{justify-content:flex-end!important;border-top:1px solid rgba(12,12,12,.08)!important;padding:12px 18px!important;gap:7px!important}
@media(max-width:900px){
  .financial-report-page .reportIdentity{grid-template-columns:74px minmax(0,1fr)!important;gap:16px!important}
  .financial-report-page .reportIdentityLogo{width:74px!important;min-width:74px!important}
  .financial-report-page .reportIdentityLogo img{width:68px!important}
  .financial-report-page .reportIdentityTitle{font-size:25px!important}
}

/* PATCH 8Q.4.10.1 - Executive Report Exact Period & Page-1 Asset Total Repair */
.financial-report-page .filters{
  display:grid!important;
  grid-template-columns:minmax(170px,1fr) minmax(170px,1fr) minmax(225px,1.35fr) minmax(190px,auto) auto!important;
  align-items:end!important;
  gap:12px!important;
}
.financial-report-page .filters>div{margin:0!important}
.financial-report-page .filters label:not(.check){display:block!important;margin:0 0 5px!important}
.financial-report-page .filters input[type="date"],
.financial-report-page .filters select{height:40px!important;min-height:40px!important;margin:0!important}
.financial-report-page .filters .check{
  min-height:40px!important;height:40px!important;margin:0!important;padding:0 8px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  align-self:end!important;white-space:nowrap!important;
}
.financial-report-page .filters>.btn{
  height:40px!important;min-height:40px!important;align-self:end!important;margin:0!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
}
@media (min-width:768px) and (max-width:1180px){
  .financial-report-page .filters{grid-template-columns:1fr 1fr 1.3fr!important}
  .financial-report-page .filters .check{grid-column:1 / span 2!important;justify-content:flex-start!important}
  .financial-report-page .filters>.btn{grid-column:3!important;justify-self:start!important}
}
@media print{
  @page{size:A4 landscape;margin:8mm}
  .financial-report-page .screenOnly{display:none!important}
  .financial-report-page .detailBody{display:none!important}
  .financial-report-page .sectionPanel{break-inside:avoid!important;margin:4px 0!important;border-radius:8px!important}
  .financial-report-page .sectionHead{padding:5px 9px!important}
  .financial-report-page .sectionHead h2{font-size:12px!important}
  .financial-report-page .sectionTotal{font-size:13px!important}
  .financial-report-page .catSummary{
    padding:4px 8px!important;min-height:auto!important;
    grid-template-columns:22px minmax(0,1fr) auto!important;font-size:9px!important;
  }
  .financial-report-page .plus{width:18px!important;height:18px!important;font-size:12px!important}
  .financial-report-page .kpis{gap:4px!important;margin:5px 0!important}
  .financial-report-page .kpi{padding:6px 9px!important;min-height:auto!important}
  .financial-report-page .kpi .label{font-size:7px!important}
  .financial-report-page .kpi .value{font-size:16px!important}
  .financial-report-page .warning{padding:5px 8px!important;margin:5px 0!important;font-size:8px!important}
  .financial-report-page .reportHeaderCard{margin-bottom:5px!important}
  .financial-report-page .reportHeaderTop{padding:8px 12px!important}
  .financial-report-page .reportIdentity{grid-template-columns:58px minmax(0,1fr)!important;gap:10px!important}
  .financial-report-page .reportIdentityLogo,
  .financial-report-page .reportIdentityLogo img{width:52px!important;min-width:52px!important;max-height:54px!important}
  .financial-report-page .reportIdentityTitle{font-size:18px!important;margin-bottom:2px!important}
  .financial-report-page .reportIdentitySubtitle{font-size:9px!important;margin-bottom:2px!important}
  .financial-report-page .reportIdentityAsset{font-size:7px!important}
  .financial-report-page .memberPage{page-break-before:always!important}
  .financial-report-page .footer{font-size:7px!important;margin-top:4px!important}
}

/* PATCH 8Q.4.10.2.1 - Exact Global Header Executive Card Repair */
body{
  background:#F4F1EA!important;
}

/* Exact production shell header from templates/asset.html */
header.header.global-app-header{
  height:76px!important;
  margin:14px 20px 0!important;
  width:calc(100% - 40px)!important;
  padding:0 20px!important;
  background:#fff!important;
  color:#0C0C0C!important;
  border:1px solid rgba(12,12,12,.08)!important;
  border-radius:20px!important;
  box-shadow:0 10px 28px rgba(12,12,12,.045)!important;
  overflow:hidden!important;
}
header.header.global-app-header .header-inner{
  height:100%!important;
}
header.header.global-app-header .brand{
  color:#0C0C0C!important;
}
header.header.global-app-header .brand small{
  color:#9DB7C9!important;
}
header.header.global-app-header .header-actions{
  gap:9px!important;
}
header.header.global-app-header .header-btn{
  color:#0C0C0C!important;
  background:#fff!important;
  border:1px solid rgba(12,12,12,.10)!important;
  border-radius:11px!important;
  padding:8px 12px!important;
  font-size:12px!important;
  font-weight:750!important;
  text-decoration:none!important;
  box-shadow:none!important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease!important;
}
header.header.global-app-header .header-btn:hover{
  background:#F4F1EA!important;
  border-color:rgba(185,152,90,.42)!important;
}
header.header.global-app-header .header-btn:active{
  transform:scale(.97)!important;
}

/* Old shell assumed header was flush to viewport. Preserve usable workspace height
   after adding the Executive-card top margin. */
header.header.global-app-header + .shell{
  height:calc(100vh - 90px)!important;
}

@media(max-width:760px){
  header.header.global-app-header{
    height:68px!important;
    margin:8px 10px 0!important;
    width:calc(100% - 20px)!important;
    padding:0 14px!important;
    border-radius:16px!important;
  }
  header.header.global-app-header + .shell{
    height:auto!important;
  }
}

/* PATCH 8Q.4.10.2.2 - Global Header Logo + Venturis S.I. Lockup */
header.header.global-app-header{
  display:flex!important;
  align-items:center!important;
}
header.header.global-app-header .header-inner{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
}
header.header.global-app-header .brand{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:15px!important;
  min-width:0!important;
}
header.header.global-app-header .global-brand-logo{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
header.header.global-app-header .global-brand-logo img{
  width:50px!important;
  height:50px!important;
  object-fit:contain!important;
  display:block!important;
}
header.header.global-app-header .global-brand-copy{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  line-height:1.05!important;
}
header.header.global-app-header .global-brand-main{
  font-size:22px!important;
  font-weight:850!important;
  letter-spacing:.035em!important;
  color:#0C0C0C!important;
  white-space:nowrap!important;
}
header.header.global-app-header .global-brand-sub{
  margin-top:5px!important;
  font-size:9px!important;
  line-height:1.2!important;
  font-weight:650!important;
  letter-spacing:.16em!important;
  text-transform:none!important;
  color:#9DB7C9!important;
  white-space:nowrap!important;
}
@media(max-width:760px){
  header.header.global-app-header .brand{gap:10px!important}
  header.header.global-app-header .global-brand-logo{width:42px!important;height:42px!important;min-width:42px!important}
  header.header.global-app-header .global-brand-logo img{width:39px!important;height:39px!important}
  header.header.global-app-header .global-brand-main{font-size:18px!important}
  header.header.global-app-header .global-brand-sub{font-size:7px!important;letter-spacing:.12em!important}
}

/* PATCH 8Q.4.11 - Owner Operations Overview + Asset Report Image */

.ownerOps{
  display:grid;
  grid-template-columns:minmax(0,1.75fr) minmax(330px,.75fr);
  gap:18px;
  margin:18px 0;
}
.ownerPanel{
  background:#fff;
  border:1px solid rgba(12,12,12,.08);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(12,12,12,.035);
}
.ownerPanelHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid rgba(12,12,12,.08);
}
.ownerPanelHead b{font-size:16px}
.ownerPeriod{font-size:11px;color:#71808c}
.destGrid{
  display:grid;
  grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr);
  min-height:350px;
}
.destList{border-right:1px solid rgba(12,12,12,.07)}
.destRow{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 64px;
  gap:8px;
  align-items:center;
  padding:10px 16px;
  border-bottom:1px solid rgba(12,12,12,.055);
  font-size:12px;
}
.destRow:last-child{border-bottom:0}
.destRank{color:#71808c;font-weight:700}
.destCode{font-weight:800}
.destVisits{text-align:right;font-weight:800}
.routeCanvas{
  position:relative;
  min-height:350px;
  padding:22px;
  background:
    radial-gradient(circle at 48% 47%,rgba(185,152,90,.10),transparent 22%),
    linear-gradient(180deg,#f8fbfc,#eef4f6);
  overflow:hidden;
}
.routeCanvas:before{
  content:"";
  position:absolute;
  inset:18px;
  border:1px solid rgba(16,47,73,.08);
  border-radius:18px;
  background:
    radial-gradient(ellipse at 22% 40%,rgba(16,47,73,.07) 0 11%,transparent 12%),
    radial-gradient(ellipse at 28% 65%,rgba(16,47,73,.07) 0 8%,transparent 9%),
    radial-gradient(ellipse at 52% 35%,rgba(16,47,73,.07) 0 12%,transparent 13%),
    radial-gradient(ellipse at 60% 55%,rgba(16,47,73,.07) 0 12%,transparent 13%),
    radial-gradient(ellipse at 76% 40%,rgba(16,47,73,.07) 0 13%,transparent 14%),
    radial-gradient(ellipse at 82% 67%,rgba(16,47,73,.07) 0 7%,transparent 8%);
}
.routeCanvasInner{position:relative;z-index:2;height:100%;min-height:306px}
.routeCurrent{
  position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);
  width:58px;height:58px;border-radius:50%;
  background:#102f49;color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:24px;box-shadow:0 8px 20px rgba(16,47,73,.2)
}
.routeLabel{
  position:absolute;left:50%;top:calc(48% + 38px);transform:translateX(-50%);
  background:#102f49;color:#fff;border-radius:10px;padding:7px 10px;
  font-size:10px;font-weight:800;white-space:nowrap
}
.routeDestinations{
  position:absolute;left:24px;right:24px;bottom:20px;
  display:flex;flex-wrap:wrap;gap:7px;justify-content:center
}
.routeChip{
  background:#fff;border:1px solid rgba(185,152,90,.30);
  border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800;color:#493b24
}

.positionBody{padding:16px}
.assetHero{
  width:100%;
  aspect-ratio:16/7;
  border-radius:14px;
  overflow:hidden;
  background:#eef1f2;
  margin-bottom:14px
}
.assetHero img{width:100%;height:100%;object-fit:cover;display:block}
.assetHero.placeholder{display:flex;align-items:center;justify-content:center;color:#71808c;font-size:12px}
.positionAsset{font-size:24px;font-weight:900;letter-spacing:-.3px}
.positionModel{font-size:13px;color:#71808c;margin-top:2px}
.positionStatus{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  margin-top:14px;padding-top:14px;border-top:1px solid rgba(12,12,12,.08)
}
.positionTile{padding:11px;border-radius:12px;background:#f8f7f3}
.positionTile .l{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#71808c;font-weight:800}
.positionTile .v{font-size:14px;font-weight:850;margin-top:4px}
.nextFlight{margin-top:12px;padding:12px;border-radius:12px;background:#f7eedb}
.nextFlight .ey{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#80652f;font-weight:850}
.nextFlight .route{font-size:16px;font-weight:900;margin-top:4px}

.recentFlightsPanel{margin:18px 0}
.recentFlights{width:100%;border-collapse:collapse}
.recentFlights th,.recentFlights td{
  padding:10px 14px;border-bottom:1px solid rgba(12,12,12,.06);font-size:11px;text-align:left
}
.recentFlights th{
  background:#f7f5ef;color:#6f6a63;font-size:9px;text-transform:uppercase;letter-spacing:.07em
}
.recentFlights td b{font-weight:850}

@media(max-width:1050px){
  .ownerOps{grid-template-columns:1fr}
}
@media print{
  .ownerOps{grid-template-columns:1.7fr .8fr;gap:8px;margin:8px 0}
  .ownerPanel{box-shadow:none;border-radius:10px}
  .ownerPanelHead{padding:8px 10px}
  .ownerPanelHead b{font-size:11px}
  .destGrid{min-height:220px;grid-template-columns:.72fr 1.28fr}
  .destRow{padding:5px 8px;font-size:8px;grid-template-columns:20px minmax(0,1fr) 38px}
  .routeCanvas{min-height:220px;padding:10px}
  .routeCanvasInner{min-height:196px}
  .routeCurrent{width:38px;height:38px;font-size:16px}
  .routeLabel{top:calc(48% + 25px);font-size:7px;padding:4px 6px}
  .routeChip{font-size:7px;padding:3px 5px}
  .positionBody{padding:8px}
  .assetHero{margin-bottom:7px}
  .positionAsset{font-size:16px}
  .positionModel{font-size:8px}
  .positionStatus{gap:5px;margin-top:7px;padding-top:7px}
  .positionTile{padding:6px}
  .positionTile .l{font-size:6px}.positionTile .v{font-size:9px}
  .nextFlight{padding:6px;margin-top:6px}.nextFlight .ey{font-size:6px}.nextFlight .route{font-size:10px}
  .recentFlightsPanel{margin:8px 0}
  .recentFlights th,.recentFlights td{padding:5px 7px;font-size:7px}
  .recentFlights th{font-size:6px}
}

/* PATCH 8Q.4.11.1 - Geographic schematic route map */
.routeCanvas.geoRouteMap{position:relative;min-height:350px;padding:0!important;background:#F7FAFB!important;overflow:hidden}
.geoMapBase{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.96}
.geoMapOverlay{position:absolute;inset:0;width:100%;height:100%}
.geoRouteLine{fill:none;stroke:#6C8EAF;stroke-width:1.8;opacity:.62;vector-effect:non-scaling-stroke}
.geoRouteLine.heavy{stroke-width:2.8;opacity:.72}
.geoAirport{fill:#B9985A;stroke:#fff;stroke-width:1.2;vector-effect:non-scaling-stroke}
.geoAirportLabel{font-size:11px;font-weight:800;fill:#334A5F;paint-order:stroke;stroke:#F7FAFB;stroke-width:3px;stroke-linejoin:round}
.geoCurrentHalo{fill:rgba(16,47,73,.14);stroke:none}
.geoCurrent{fill:#102F49;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}
.geoCurrentText{font-size:12px;font-weight:900;fill:#102F49;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.geoLegend{position:absolute;left:14px;bottom:12px;display:flex;gap:12px;align-items:center;background:rgba(255,255,255,.90);border:1px solid rgba(12,12,12,.08);border-radius:11px;padding:7px 10px;font-size:9px;color:#536879}
.geoLegendDot{width:9px;height:9px;border-radius:50%;background:#B9985A;display:inline-block;margin-right:4px}
.geoLegendLine{width:20px;border-top:2px solid #6C8EAF;display:inline-block;margin-right:4px}
.geoMapMissing{position:absolute;right:12px;bottom:12px;background:rgba(255,255,255,.86);border-radius:9px;padding:5px 7px;color:#8a8174;font-size:8px}
@media print{.routeCanvas.geoRouteMap{min-height:220px!important}.geoAirportLabel,.geoCurrentText{font-size:8px!important}.geoLegend{font-size:6px;padding:4px 6px;gap:7px}}

/* PATCH 9Q.1 - VENTURIS NAVIGATION SYSTEM */
:root{--vsi-obsidian:#0C0C0C;--vsi-ivory:#F4F1EA;--vsi-gold:#B9985A;--vsi-nav-border:rgba(12,12,12,.085)}
.shell{grid-template-columns:264px minmax(0,1fr)!important;transition:grid-template-columns .2s cubic-bezier(.2,.8,.2,1)!important}
.sidebar.venturis-nav{position:relative!important;margin:14px 0 16px 18px!important;height:calc(100% - 30px)!important;min-width:0!important;padding:16px 12px 14px!important;box-sizing:border-box!important;overflow:visible!important;background:rgba(255,255,255,.88)!important;border:1px solid var(--vsi-nav-border)!important;border-radius:20px!important;box-shadow:0 12px 34px rgba(12,12,12,.055)!important;color:var(--vsi-obsidian)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
.sidebar.venturis-nav .nav-profile{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:3px 4px 14px!important;margin:0 0 12px!important;border-bottom:1px solid rgba(12,12,12,.065)!important}
.sidebar.venturis-nav .avatar{width:38px!important;height:38px!important;border-radius:50%!important;background:linear-gradient(145deg,#181818,#454545)!important}
.sidebar.venturis-nav .person{color:#0C0C0C!important;font-size:13px!important;font-weight:650!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.sidebar.venturis-nav .person-title{color:#8A8D93!important;font-size:10px!important;line-height:1.25!important;margin-top:3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.sidebar.venturis-nav .nav-asset{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:10px!important;margin:0 0 17px!important;background:linear-gradient(145deg,rgba(244,241,234,.92),rgba(255,255,255,.95))!important;border:1px solid rgba(12,12,12,.065)!important;border-radius:14px!important}
.sidebar.venturis-nav .nav-asset-mark{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#0C0C0C;color:#fff;font:600 14px/1 Arial,sans-serif}
.sidebar.venturis-nav .asset-code{color:#0C0C0C!important;font-size:13px!important;font-weight:700!important}
.sidebar.venturis-nav .asset-name{color:#777B82!important;font-size:9.5px!important;margin-top:3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.sidebar.venturis-nav .menu-label{margin:17px 10px 7px!important;padding:0!important;color:#9A9DA2!important;font-size:8.5px!important;font-weight:700!important;letter-spacing:.13em!important;text-transform:uppercase!important}
.sidebar.venturis-nav .restricted{margin:0!important;padding:0!important;border:0!important}
.sidebar.venturis-nav .menu-item{position:relative!important;width:100%!important;min-height:50px!important;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;margin:3px 0!important;padding:8px 9px!important;border:1px solid transparent!important;border-radius:13px!important;background:transparent!important;color:#0C0C0C!important;text-align:left!important;box-shadow:none!important;cursor:pointer!important;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease!important}
.sidebar.venturis-nav .menu-item:hover{background:rgba(255,255,255,.78)!important;border-color:rgba(12,12,12,.06)!important;box-shadow:0 5px 15px rgba(12,12,12,.035)!important}
.sidebar.venturis-nav .menu-item.active{background:#fff!important;border-color:rgba(185,152,90,.32)!important;box-shadow:0 7px 20px rgba(12,12,12,.055)!important}
.sidebar.venturis-nav .menu-item.active:before{content:""!important;position:absolute!important;left:-1px!important;top:11px!important;bottom:11px!important;width:3px!important;border-radius:0 3px 3px 0!important;background:#B9985A!important}
.sidebar.venturis-nav .nav-icon{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#5F636A;background:rgba(244,241,234,.68)}
.sidebar.venturis-nav .menu-item.active .nav-icon{color:#0C0C0C;background:rgba(185,152,90,.12)}
.sidebar.venturis-nav .nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.sidebar.venturis-nav .nav-copy{min-width:0!important;display:block!important}
.sidebar.venturis-nav .menu-title{display:block!important;color:#0C0C0C!important;font-size:11.5px!important;font-weight:650!important;line-height:1.18!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.sidebar.venturis-nav .menu-desc{display:block!important;color:#898D93!important;font-size:8.8px!important;margin-top:3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.sidebar.venturis-nav .admin-tag{display:inline-flex!important;align-items:center!important;height:16px!important;margin-left:4px!important;padding:0 5px!important;border:1px solid rgba(12,12,12,.09)!important;border-radius:6px!important;background:rgba(244,241,234,.72)!important;color:#777A80!important;font-size:6.7px!important;font-weight:750!important;letter-spacing:.055em!important}
.sidebar.venturis-nav .sidebar-toggle{top:17px!important;right:-18px!important;width:36px!important;height:36px!important;border-radius:11px!important;background:rgba(255,255,255,.96)!important;border:1px solid rgba(12,12,12,.10)!important;box-shadow:0 6px 18px rgba(12,12,12,.09)!important;z-index:20!important}
.shell.sidebar-collapsed{grid-template-columns:72px minmax(0,1fr)!important}
.shell.sidebar-collapsed .sidebar.venturis-nav{width:auto!important;margin-left:12px!important;padding:14px 8px!important;border-radius:18px!important}
.shell.sidebar-collapsed .sidebar.venturis-nav .nav-profile{display:flex!important;justify-content:center!important;padding:3px 0 13px!important}
.shell.sidebar-collapsed .sidebar.venturis-nav .nav-profile-copy,.shell.sidebar-collapsed .sidebar.venturis-nav .nav-asset-copy,.shell.sidebar-collapsed .sidebar.venturis-nav .nav-copy,.shell.sidebar-collapsed .sidebar.venturis-nav .menu-label{display:none!important}
.shell.sidebar-collapsed .sidebar.venturis-nav .nav-asset{display:flex!important;justify-content:center!important;padding:7px 0!important;margin-bottom:13px!important;background:transparent!important;border-color:transparent!important}
.shell.sidebar-collapsed .sidebar.venturis-nav .menu-item{display:flex!important;width:44px!important;height:44px!important;min-height:44px!important;margin:5px auto!important;padding:5px!important;justify-content:center!important}
.shell.sidebar-collapsed .sidebar.venturis-nav .nav-icon{width:32px!important;height:32px!important;background:transparent!important}
.shell.sidebar-collapsed .sidebar.venturis-nav .menu-item.active .nav-icon{background:rgba(185,152,90,.12)!important}
.shell.sidebar-collapsed .sidebar.venturis-nav .menu-item[data-tooltip]:after{content:attr(data-tooltip);position:absolute;left:52px;top:50%;transform:translateY(-50%) translateX(-4px);opacity:0;pointer-events:none;white-space:nowrap;padding:7px 9px;border-radius:8px;background:#151515;color:#fff;font-size:10px;font-weight:550;box-shadow:0 7px 20px rgba(0,0,0,.14);transition:opacity .12s ease,transform .12s ease;z-index:100}
.shell.sidebar-collapsed .sidebar.venturis-nav .menu-item[data-tooltip]:hover:after{opacity:1;transform:translateY(-50%) translateX(0)}
@media (prefers-reduced-motion:reduce){.shell,.sidebar.venturis-nav .menu-item,.sidebar.venturis-nav .sidebar-toggle{transition:none!important}}

/* PATCH 9Q.1.2.1 - Production Signature Repair */
html,body{background:#F4F1EA!important}
.header.global-app-header,.header.global-app-header .header-inner,.shell,.content,.frame{background:#F4F1EA!important}
.sidebar.venturis-nav{background:transparent!important;border-right-color:transparent!important;box-shadow:none!important}
.global-brand-logo{width:64px!important;height:46px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.global-brand-logo img{width:64px!important;height:46px!important;object-fit:contain!important}
.global-brand-main{color:#0C0C0C!important;font-weight:800!important;letter-spacing:.08em!important}
.global-brand-sub{color:#A9BCCB!important;font-weight:700!important;letter-spacing:.13em!important}
.nav-user-avatar{display:block!important;object-fit:cover!important;border-radius:50%!important;background:#F1EFE9!important}
.positionStatus{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
.positionTileFbo{grid-column:1/-1!important;width:100%!important}

/* PATCH 9Q.2.0 - UI repair + Leon operational layer */
html,body,.shell,.content,.frame{background:#F4F1EA!important}
.sidebar.venturis-nav{background:transparent!important;border:0!important;box-shadow:none!important}
.sidebar.venturis-nav .nav-profile{background:transparent!important;border-bottom:1px solid rgba(12,12,12,.07)!important;border-radius:0!important}
.nav-user-avatar,.header-avatar,.avatar{object-fit:cover!important;object-position:center!important}
.positionTileFbo{grid-column:1/-1!important}

/* PATCH 9Q.2.0.1 - Header / Sidebar / Avatar Polish */

/* 1. Global top bar is always white */
.header,
.header.global-app-header,
.header .header-inner,
.header.global-app-header .header-inner {
  background:#FFFFFF !important;
}

/* 2. Workspace canvas / gutter keeps the warm Venturis frame tone */
html,
body,
.shell,
.content,
.frame,
.workspace,
main {
  background:#F4F1EA !important;
}

/* 3. Left navigation itself is always white */
.sidebar.venturis-nav {
  background:#FFFFFF !important;
  border:1px solid rgba(12,12,12,.06) !important;
  border-left:0 !important;
  box-shadow:none !important;
}

/* Profile area belongs to the white navigation card */
.sidebar.venturis-nav .nav-profile {
  background:#FFFFFF !important;
  border-radius:0 !important;
}

/* Keep the gap between global header / sidebar / frame on the warm canvas */
.shell {
  column-gap:0 !important;
}
.content {
  border-left:14px solid #F4F1EA !important;
}

/* 4. Avatar geometry */
.nav-user-avatar,
.header-avatar,
.profile .avatar,
.avatar {
  display:block !important;
  border-radius:50% !important;
  object-fit:cover !important;
  object-position:center !important;
  background:#F1EFE9 !important;
  border:1px solid rgba(12,12,12,.06) !important;
}

.sidebar.venturis-nav .nav-user-avatar {
  width:42px !important;
  height:42px !important;
  flex:0 0 42px !important;
}

.header-avatar {
  width:38px !important;
  height:38px !important;
  flex:0 0 38px !important;
}

/* Dashboard stays on warm canvas, cards stay white */
body.dashboard-page,
.dashboard-page main {
  background:#F4F1EA !important;
}

@media (max-width:760px) {
  .content {
    border-left:0 !important;
  }
}

/* PATCH 9Q.2.0.2 - Unified Warm Ivory Structural Background */

/*
   Structural canvas must read as ONE continuous colour.
   White remains only for header/sidebar/cards.
*/
html,
body,
.shell,
.shell::before,
.shell::after,
.content,
.frame,
.workspace,
.workspace-shell,
.app-shell,
.app-body,
.page-shell,
.page-content,
main {
  background:#F4F1EA !important;
}

/* White global header without a dark beige shadow band underneath */
.header,
.header.global-app-header,
.header .header-inner,
.header.global-app-header .header-inner {
  background:#FFFFFF !important;
  box-shadow:none !important;
}

/* White left navigation, but no shadow/tinted halo around it */
.sidebar.venturis-nav {
  background:#FFFFFF !important;
  box-shadow:none !important;
}

/* The separator/gutter between navigation and main frame uses exactly the canvas tone */
.content {
  border-left-color:#F4F1EA !important;
}

/* Prevent old patches from painting a second beige strip */
.shell > .content,
.shell > aside + .content,
.sidebar.venturis-nav + .content {
  background-color:#F4F1EA !important;
}

/* Remove structural shadow that visually darkens the canvas gap.
   Content cards retain their own card shadows. */
.global-app-header,
.sidebar.venturis-nav {
  filter:none !important;
}

/* PATCH 9Q.2.0.3 - Asset Workspace Exact Tone Match */
html,
body,
.shell,
.shell.sidebar-collapsed,
.content,
.frame,
.loading {
  background:#F4F1EA !important;
  background-color:#F4F1EA !important;
}

/* No darker structural strip between white navigation and iframe workspace */
.content {
  border-left:14px solid #F4F1EA !important;
  box-shadow:none !important;
}
.frame {
  border:0 !important;
  box-shadow:none !important;
}

/* The navigation itself remains pure white */
.sidebar,
.sidebar.venturis-nav,
.sidebar.venturis-nav .nav-profile {
  background:#FFFFFF !important;
}

/* PATCH 9Q.2.0.5 - Asset Canvas Cleanup */
:root{--vsi-canvas:#F4F1EA}
html,
body,
body:not(.dashboard-page) .shell,
body:not(.dashboard-page) .shell::before,
body:not(.dashboard-page) .shell::after,
body:not(.dashboard-page) .content,
body:not(.dashboard-page) .frame,
body:not(.dashboard-page) .loading{
  background:var(--vsi-canvas)!important;
  background-color:var(--vsi-canvas)!important;
  background-image:none!important;
}
body:not(.dashboard-page) .content{
  border-left:0!important;
  box-shadow:none!important;
}
body:not(.dashboard-page) header.header.global-app-header,
body:not(.dashboard-page) header.header.global-app-header .header-inner,
body:not(.dashboard-page) .sidebar.venturis-nav,
body:not(.dashboard-page) .sidebar.venturis-nav .nav-profile{
  background:#FFFFFF!important;
  background-color:#FFFFFF!important;
  background-image:none!important;
}

/* PATCH 9Q.2.0.6 - Remove Sidebar Beige Halo */
:root{--vsi-canvas:#F4F1EA}

/* One canvas everywhere behind the white surfaces */
html,
body,
.shell,
.content,
.frame,
.loading{
  background:#F4F1EA!important;
  background-color:#F4F1EA!important;
  background-image:none!important;
}

/* The remaining darker beige band was the sidebar glass/blur halo, not a second canvas color */
.sidebar.venturis-nav{
  background:#FFFFFF!important;
  background-color:#FFFFFF!important;
  background-image:none!important;
  box-shadow:none!important;
  filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  border:none!important;
  outline:none!important;
}

/* No structural separator between sidebar column and workspace */
.sidebar.venturis-nav + .content,
.shell > aside + .content,
.content{
  border-left:0!important;
  border-right:0!important;
  box-shadow:none!important;
  filter:none!important;
}

/* Header stays white but must not cast a beige shadow onto the canvas */
header.header.global-app-header,
header.header.global-app-header .header-inner{
  background:#FFFFFF!important;
  box-shadow:none!important;
  filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
