/* Airport Shuttle TR / Firm extranet v2
   Shared, conservative visual layer for all firm screens. Preserves
   existing route links, Bootstrap collapse/offcanvas, theme toggle and forms. */
body.firma-panel{
  --brand-bg:#193747;--brand-bg-2:#142d3b;
  --brand-primary:#244b60;--brand-primary-2:#345f72;
  --brand-accent:#b5c8d1;
  --radius-2xl:5px;--radius-xl:5px;--radius-lg:4px;--radius-md:4px;
  --shadow-soft:none;--shadow-strong:0 12px 32px rgba(15,38,50,.13);
  --sidebar-w:246px;--header-h:64px;
  font-family:"Segoe UI",Arial,sans-serif;
}
html[data-bs-theme="light"] body.firma-panel{
  --bs-body-bg:#f7f8f8;--bs-body-color:#213c4a;
  --bs-border-color:#e0e7e9;--bs-secondary-color:#667d88;
  --bs-tertiary-bg:#f3f6f7;--bs-link-color:#345a6c;--bs-link-hover-color:#193747;
  --bs-card-bg:#fff;
}
html[data-bs-theme="dark"] body.firma-panel{
  --bs-body-bg:#101e28;--bs-body-color:#e9f0f2;
  --bs-border-color:#354b58;--bs-secondary-color:#a2b3bc;
  --bs-tertiary-bg:#203540;--bs-link-color:#b4cbd8;--bs-link-hover-color:#fff;
  --bs-card-bg:#192d38;
}
body.firma-panel .app-header{
  height:64px;background:#193747;border-bottom:1px solid rgba(255,255,255,.09);
  box-shadow:none;
}
body.firma-panel .app-header .container-fluid{gap:12px!important;padding-inline:20px!important}
body.firma-panel .app-brand .logo{height:31px;max-width:172px;object-fit:contain;filter:none}
body.firma-panel .app-brand .brand-text{font-size:16px;font-weight:600;letter-spacing:-.02em}
body.firma-panel .app-header .input-group{max-width:610px}
body.firma-panel .app-header :is(.form-control,.input-group-text,.btn-primary){
  min-height:36px;border-radius:0;box-shadow:none;
}
body.firma-panel .app-header .input-group-text{border-radius:4px 0 0 4px;background:#f2f6f7;color:#45687a}
body.firma-panel .app-header .input-group .form-control{background:#fff;color:#1b3847;border-color:#dbe5e9}
body.firma-panel .app-header .input-group .btn-primary{border-radius:0 4px 4px 0;background:#2f586b;border:1px solid #46687b;color:#fff}
body.firma-panel .header-actions .btn,
body.firma-panel .app-header .nav-link-top{border-radius:4px;box-shadow:none;min-height:35px;font-size:12px}
body.firma-panel .app-header .dropdown-menu{
  border:1px solid var(--bs-border-color);border-radius:5px;
  box-shadow:0 12px 24px rgba(12,33,44,.12);
}
body.firma-panel .sidebar{
  width:246px;flex:0 0 246px;top:64px;height:calc(100dvh - 64px);
  background:#142e3d;border-right:1px solid #274554;
  box-shadow:none;padding:14px 12px 18px;overflow-y:auto;
}
body.firma-panel .sidebar .card-ios{
  background:#1e3c4b!important;color:#fff!important;border:1px solid #305365!important;
  border-radius:5px!important;box-shadow:none!important;
}
body.firma-panel .sidebar .card-ios :is(.fw-bold,.small){color:#edf4f6!important}
body.firma-panel .sidebar .kpi-icon{
  width:35px;height:35px;border-radius:4px;background:#34586b;color:#eaf4f7;
  border:1px solid #4a6a7a;
}
body.firma-panel :is(.sidebar,#sidebarOffcanvas) .section-title{
  margin:15px 9px 8px;color:#9fb4c0;font-size:10px;font-weight:600;
  letter-spacing:.085em;text-transform:uppercase;
}
body.firma-panel :is(.sidebar,#sidebarOffcanvas) .menu{gap:3px}
body.firma-panel :is(.sidebar,#sidebarOffcanvas) .menu .nav-link{
  min-height:40px;padding:9px 11px;border-radius:4px;
  color:#d2dfe5;font-size:12.5px;font-weight:500;gap:10px;box-shadow:none;
}
body.firma-panel :is(.sidebar,#sidebarOffcanvas) .menu .nav-link:hover{
  color:#fff;background:#25495c;
}
body.firma-panel :is(.sidebar,#sidebarOffcanvas) .menu .nav-link.active{
  background:#31586b;color:#fff;box-shadow:none;
}
body.firma-panel :is(.sidebar,#sidebarOffcanvas) .menu .nav-link.active::after{display:none}
body.firma-panel :is(.sidebar,#sidebarOffcanvas) .subnav{
  margin:5px 0 7px 20px;padding-left:11px;border-left:1px solid #476374;
}
body.firma-panel :is(.sidebar,#sidebarOffcanvas) .subnav .nav-link{
  min-height:32px;padding:7px 9px;font-size:11.5px;
}
body.firma-panel .sidebar-footer{color:#afc4ce;font-size:11px}
body.firma-panel main.content{min-width:0;background:var(--bs-body-bg)}
body.firma-panel main.content .content__container{
  max-width:1600px;margin:0 auto;padding:20px 24px 34px!important;
}
body.firma-panel .breadcrumb{font-size:12px}
body.firma-panel .breadcrumb a{color:var(--bs-link-color)}
body.firma-panel .card,
body.firma-panel .card-ios{
  background:var(--bs-card-bg);border:1px solid var(--bs-border-color);
  border-radius:5px;box-shadow:none;
}
body.firma-panel .card .card-header{
  padding:14px 17px;border-bottom:1px solid var(--bs-border-color);
}
body.firma-panel .card .card-body{padding:17px}
body.firma-panel .kpi-icon{border-radius:4px;background:var(--bs-tertiary-bg);color:var(--bs-link-color)}
body.firma-panel .btn{border-radius:4px;box-shadow:none;font-size:12px;font-weight:600}
body.firma-panel .btn-primary{border:1px solid #244b60;background:#244b60;color:#fff}
body.firma-panel .btn-primary:hover{background:#345f72;border-color:#345f72}
body.firma-panel .btn-soft-primary{background:var(--bs-tertiary-bg);color:var(--bs-body-color);border:1px solid var(--bs-border-color)}
body.firma-panel :is(.form-control,.form-select,.input-group-text){
  border-radius:4px;border-color:var(--bs-border-color);box-shadow:none;
}
body.firma-panel :is(.form-control,.form-select):focus{
  border-color:#6a91a4;box-shadow:0 0 0 2px rgba(82,120,140,.16);
}
body.firma-panel .badge{padding:5px 8px;border-radius:3px;font-size:10.5px;font-weight:600}
body.firma-panel .badge-soft{
  background:var(--bs-tertiary-bg);border:1px solid var(--bs-border-color);
  color:var(--bs-body-color);
}
body.firma-panel .table-modern{
  border:1px solid var(--bs-border-color);border-radius:4px;
  box-shadow:none;overflow:hidden;
}
body.firma-panel .table-modern .table-responsive{
  overflow-x:auto;-webkit-overflow-scrolling:touch;
}
body.firma-panel .table-modern .table{min-width:850px;margin-bottom:0;font-size:12px}
body.firma-panel .table-modern thead th{
  padding:12px 11px;background:var(--bs-tertiary-bg);
  color:var(--bs-secondary-color);letter-spacing:.03em;font-weight:600;
  font-size:10.5px;white-space:nowrap;
}
body.firma-panel .table-modern tbody td{
  padding:11px;border-color:var(--bs-border-color);line-height:1.5;
}
body.firma-panel .table-modern tbody .table-warning{
  --bs-table-bg:rgba(185,136,50,.08);
}
body.firma-panel .alert{border-radius:5px;box-shadow:none}
body.firma-panel footer{
  background:var(--bs-body-bg);border-top:1px solid var(--bs-border-color);
}
body.firma-panel .mobile-tabbar{
  background:var(--bs-card-bg);box-shadow:0 -4px 16px rgba(17,43,56,.05);
  backdrop-filter:none;
}
body.firma-panel .mobile-tabbar .btn-tab{
  min-height:52px;border-radius:4px;font-size:11px;gap:4px;
}
body.firma-panel .mobile-tabbar .btn-tab.active{
  color:var(--bs-link-color);background:var(--bs-tertiary-bg);
}
body.firma-panel #sidebarOffcanvas{
  width:min(320px,calc(100vw - 36px))!important;
  background:#142e3d!important;color:#eaf1f5!important;
  border:0;box-shadow:8px 0 28px rgba(0,0,0,.14);
}
body.firma-panel #sidebarOffcanvas .offcanvas-header{
  min-height:63px;border-bottom:1px solid #315262;padding:13px 18px;
}
body.firma-panel #sidebarOffcanvas .offcanvas-body{
  overflow-y:auto;overscroll-behavior:contain;padding:13px 16px 22px;
}
body.firma-panel #sidebarOffcanvas .btn-close{box-shadow:none}
body.firma-panel #sidebarOffcanvas .subnav .nav-link{color:#c3d5df}
body.firma-panel :is(a,button,input,select,textarea):focus-visible{
  outline:2px solid #b49a70;outline-offset:2px;
}
@media(max-width:1199.98px){
  body.firma-panel .app-header .container-fluid{padding-inline:12px!important}
  body.firma-panel main.content .content__container{padding:18px 17px 25px!important}
}
@media(max-width:767.98px){
  body.firma-panel .app-header{height:60px}
  body.firma-panel .app-brand .logo{max-width:139px;height:29px}
  body.firma-panel main.content .content__container{padding:14px 12px 92px!important}
  body.firma-panel .app-header .header-actions{gap:5px!important}
  body.firma-panel .app-header .header-actions .dropdown-toggle{
    max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body.firma-panel .card .card-body{padding:14px}
  body.firma-panel .table-modern .table{min-width:730px}
}
