/* Admin Vertalix · interfaz 2026
   Capa visual desacoplada: no altera datos, rutas, formularios ni LiveQuery. */
:root{
  --bg:#f3f6f5;
  --bg-soft:#edf2f0;
  --panel:#ffffff;
  --panel-2:#f6f9f8;
  --card:#ffffff;
  --border:#dfe7e4;
  --border-strong:#c8d5d1;
  --text:#1d2927;
  --text-soft:#65736f;
  --accent:#427b73;
  --accent-2:#609187;
  --accent-soft:#e6f0ed;
  --cyan:#4f8f88;
  --success:#3f8963;
  --warning:#d88712;
  --danger:#dc3d5a;
  --info:#527887;
  --shadow:0 18px 50px rgba(35,55,50,.09);
  --shadow-soft:0 5px 18px rgba(35,55,50,.05);
  --sidebar-bg:#ffffff;
  --sidebar-border:#e0e8e5;
  --input-bg:#ffffff;
  --hover:#eaf2ef;
  --control-height:42px;
}

html[data-theme="dark"]{
  --bg:#101716;
  --bg-soft:#131d1b;
  --panel:#18211f;
  --panel-2:#141d1b;
  --card:#18211f;
  --border:rgba(255,255,255,.09);
  --border-strong:rgba(255,255,255,.16);
  --text:#f1f6f4;
  --text-soft:#a0b1ac;
  --accent:#78b6aa;
  --accent-2:#91c6bb;
  --accent-soft:rgba(120,182,170,.14);
  --cyan:#70b1aa;
  --success:#61bd8b;
  --warning:#f4ae42;
  --danger:#ff6681;
  --info:#87aab7;
  --shadow:0 20px 54px rgba(0,0,0,.30);
  --shadow-soft:0 8px 22px rgba(0,0,0,.20);
  --sidebar-bg:#141d1b;
  --sidebar-border:rgba(255,255,255,.08);
  --input-bg:#111a18;
  --hover:rgba(120,182,170,.12);
}

html{font-size:16px;background:var(--bg)}
body{
  min-width:320px;
  color:var(--text);
  background:var(--bg);
  font-size:14px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
}

/* Login: limpio, breve y centrado. */
.login-page{
  display:grid;
  min-height:100dvh;
  place-items:center;
  background:
    radial-gradient(circle at 12% 8%,rgba(66,123,115,.15),transparent 30%),
    radial-gradient(circle at 88% 92%,rgba(96,145,135,.11),transparent 30%),
    var(--bg);
}
.login-page .login-top-controls{top:18px;right:18px}
.login-page .login-shell{
  display:block;
  min-height:auto;
  width:100%;
  max-width:470px;
  padding:28px 20px;
}
.login-page .login-panel{display:block}
.login-page .login-card{
  max-width:none;
  padding:32px;
  border-radius:22px;
  background:color-mix(in srgb,var(--card) 94%,transparent);
  box-shadow:0 24px 70px rgba(35,42,75,.13);
}
.login-page .brand-header{margin-bottom:28px}
.login-page .brand-badge{width:44px;height:44px;border-radius:13px}
.login-page .brand-title{font-size:18px}
.login-page .brand-sub{font-size:12px}
.login-page .status-pill{padding:7px 10px;font-size:11px;background:var(--panel-2)}
.status-dot{width:7px;height:7px;border-radius:50%;background:var(--success);box-shadow:0 0 0 3px rgba(22,155,98,.12)}
.login-page .login-copy h1{margin:0 0 7px;font-size:27px;letter-spacing:-.035em}
.login-page .login-copy p{margin:0 0 22px;font-size:14px;line-height:1.55}
.login-page .form-label{font-size:12px}
.login-page .form-control{min-height:46px;border-radius:11px;padding:11px 13px}
.login-page .btn-lg{width:100%;min-height:46px;border-radius:11px}
.login-page .login-footnote{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:20px;font-size:12px}
.login-page .login-footnote i{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;font-style:normal;color:var(--success);background:rgba(22,155,98,.1)}
.login-page .theme-toggle{padding:9px 11px;border-radius:11px;box-shadow:none;background:var(--card)}

/* Estructura común. */
body:not(.login-page) .app-shell{grid-template-columns:236px minmax(0,1fr);background:var(--bg)}
body:not(.login-page) .sidebar{
  width:236px;
  padding:14px 12px 12px;
  border-right:1px solid var(--sidebar-border);
  background:var(--sidebar-bg);
  backdrop-filter:none;
}
.sidebar-brand-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 8px 13px}
.sidebar-brand-row .brand-lockup{gap:10px}
.sidebar-brand-row .brand-badge{width:38px;height:38px;border-radius:11px;box-shadow:0 8px 18px rgba(35,55,50,.16)}
.sidebar-brand-row .brand-title{font-size:17px}
.sidebar-brand-row .brand-sub{font-size:11px}
.sidebar-close,.mobile-menu-toggle,.topbar-icon-link{
  width:38px;height:38px;display:inline-grid;place-items:center;flex:0 0 38px;
  border:1px solid var(--border);border-radius:10px;background:var(--panel);color:var(--text-soft);cursor:pointer;
}
.sidebar-close{display:none}
.mobile-menu-toggle{display:none}
.sidebar-backdrop{display:none}

body:not(.login-page) .nav-group{
  margin:3px 0 0;
  border:0;
  border-radius:12px;
  background:transparent;
  overflow:hidden;
}
html[data-theme="dark"] body:not(.login-page) .nav-group{background:transparent}
body:not(.login-page) .nav-group + .nav-group{margin-top:3px}
body:not(.login-page) .nav-section-toggle{min-height:38px;padding:8px 9px;border-radius:9px}
body:not(.login-page) .nav-section-title{font-size:10px;letter-spacing:.12em}
body:not(.login-page) .nav-section-chevron{width:20px;height:20px;flex-basis:20px;font-size:9px;background:transparent}
body:not(.login-page) .nav-group-panel{padding:2px 4px 6px;border:0}
body:not(.login-page) .nav{gap:2px;margin-top:1px}
body:not(.login-page) .nav a{
  min-height:36px;
  padding:8px 9px;
  gap:9px;
  border-radius:9px;
  font-size:13px;
  font-weight:580;
}
body:not(.login-page) .nav a.active{
  color:var(--accent);
  background:var(--accent-soft);
  border-color:transparent;
  box-shadow:none;
}
body:not(.login-page) .nav-icon{width:17px;flex-basis:17px;font-size:12px;color:var(--text-soft)}
body:not(.login-page) .nav a.active .nav-icon{color:var(--accent)}

body:not(.login-page) .sidebar-footer{padding:12px 4px 0}
body:not(.login-page) .account-chip{gap:9px;padding:9px;border:0;border-radius:11px;background:var(--panel-2);margin-bottom:7px}
body:not(.login-page) .account-avatar{width:32px;height:32px;border-radius:9px;font-size:12px}
body:not(.login-page) .account-title{max-width:142px;font-size:12px}
body:not(.login-page) .account-sub{font-size:10px}
.sidebar-footer-actions{display:grid;grid-template-columns:1fr auto;gap:6px}
.sidebar-account-link,body:not(.login-page) .logout{
  min-height:34px;display:flex;align-items:center;justify-content:center;gap:7px;
  padding:7px 9px;border:1px solid var(--border);border-radius:9px;background:var(--panel);font-size:12px;
}
.sidebar-version{padding:8px 4px 0;color:var(--text-soft);font-size:9px;text-align:center}

body:not(.login-page) .main{min-width:0;padding:18px 24px 36px}
body:not(.login-page) .topbar{
  align-items:center;gap:16px;margin-bottom:14px;padding:10px 12px;
  border:1px solid var(--border);border-radius:15px;
  background:color-mix(in srgb,var(--card) 90%,transparent);
  box-shadow:0 4px 16px rgba(35,55,50,.055);
  -webkit-backdrop-filter:blur(18px) saturate(1.12);backdrop-filter:blur(18px) saturate(1.12);
}
html[data-theme="dark"] body:not(.login-page) .topbar{
  background:rgba(24,33,31,.96)!important;border-color:rgba(255,255,255,.10);box-shadow:0 6px 20px rgba(0,0,0,.22);
}
.topbar-heading{display:flex;align-items:center;gap:11px;min-width:0}
body:not(.login-page) .page-title{margin:2px 0 0;font-size:26px;line-height:1.15;letter-spacing:-.035em}
body:not(.login-page) .eyebrow{font-size:10px;letter-spacing:.10em;font-weight:750}
body:not(.login-page) .topbar-actions{gap:7px}
body:not(.login-page) .theme-toggle,
body:not(.login-page) .profile-chip{
  min-height:38px;padding:8px 11px;border-radius:10px;background:var(--panel-2);box-shadow:none;
}
body:not(.login-page) .theme-toggle:hover{transform:none;background:var(--panel-2)}
body:not(.login-page) .profile-chip{font-size:12px}
body:not(.login-page) .dot{width:7px;height:7px;box-shadow:0 0 0 3px rgba(22,155,98,.12)}
body:not(.login-page) .content-stack{gap:14px}
body:not(.login-page) .topbar .topbar-icon-link{background:var(--panel-2);color:var(--text-soft)}
html[data-theme="dark"] body:not(.login-page) .topbar-actions{
  padding:4px;border:1px solid rgba(255,255,255,.08);border-radius:13px;
  background:#111a18!important;box-shadow:none!important;
}
html[data-theme="dark"] body:not(.login-page) .topbar .theme-toggle,
html[data-theme="dark"] body:not(.login-page) .topbar .profile-chip,
html[data-theme="dark"] body:not(.login-page) .topbar .topbar-icon-link,
html[data-theme="dark"] body:not(.login-page) .topbar .mobile-menu-toggle{
  background:#111a18!important;border-color:rgba(255,255,255,.11)!important;color:var(--text)!important;
}

/* Jerarquía y densidad. */
body:not(.login-page) h2{font-size:20px;letter-spacing:-.025em}
body:not(.login-page) h3{font-size:16px;letter-spacing:-.015em}
body:not(.login-page) p{line-height:1.5}
body:not(.login-page) .card,
body:not(.login-page) .panel-card,
body:not(.login-page) .chart-card,
body:not(.login-page) .placeholder-card{
  border-radius:15px;
  padding:17px;
  background:var(--card);
  box-shadow:var(--shadow-soft);
}
body:not(.login-page) .kpi-grid,
body:not(.login-page) .grid-cards-4,
body:not(.login-page) .grid-cards-3,
body:not(.login-page) .grid-2,
body:not(.login-page) .grid-3,
body:not(.login-page) .mini-grid{gap:13px}
body:not(.login-page) .kpi-card .value,
body:not(.login-page) .kpi-value,
body:not(.login-page) .metric-big{font-size:27px;line-height:1.12;letter-spacing:-.035em}
body:not(.login-page) .sub,
body:not(.login-page) .muted,
body:not(.login-page) .help-text{font-size:12px;line-height:1.45}

body:not(.login-page) .period-filter-card{padding:16px 18px;border-radius:15px}
body:not(.login-page) .period-filter-form{grid-template-columns:minmax(190px,1fr) auto;gap:14px}
body:not(.login-page) .period-filter-copy h3{margin:3px 0 1px!important;font-size:16px}
body:not(.login-page) .period-filter-controls{gap:9px}
body:not(.login-page) .filter-pills{gap:5px}
body:not(.login-page) .pill{min-height:34px;padding:7px 10px;border-radius:9px;font-size:12px}
body:not(.login-page) .period-filter-dates{gap:7px}
body:not(.login-page) .period-filter-dates .form-control{width:142px;min-width:142px}
body:not(.login-page) .period-filter-dates .btn{min-width:96px}

body:not(.login-page) .smart-filter-card{padding:14px 16px;border-radius:15px;margin-bottom:14px;box-shadow:var(--shadow-soft)}
body:not(.login-page) .smart-filter-form{gap:9px}
body:not(.login-page) .smart-filter-field label{font-size:10px;letter-spacing:.07em}
body:not(.login-page) .smart-filter-card .form-control{min-height:40px}
body:not(.login-page) .smart-filter-summary{margin-top:10px;padding-top:10px}

body:not(.login-page) .form-control{
  min-height:var(--control-height);
  padding:9px 11px;
  border-radius:9px;
  font-size:13px;
  box-shadow:none;
}
body:not(.login-page) .form-control:focus{box-shadow:0 0 0 3px rgba(66,123,115,.14);border-color:rgba(66,123,115,.58)}
body:not(.login-page) .form-label{font-size:11px;margin-bottom:5px}
body:not(.login-page) .form-grid,
body:not(.login-page) .form-grid-3,
body:not(.login-page) .form-grid-4{gap:11px 12px}
body:not(.login-page) .btn{
  min-height:var(--control-height);
  padding:8px 12px;
  border-radius:9px;
  font-size:13px;
  box-shadow:none;
}
body:not(.login-page) .btn:hover{transform:none;box-shadow:none;border-color:var(--border-strong)}
body:not(.login-page) .btn-primary{background:var(--accent)}

body:not(.login-page) .data-table-wrap,
body:not(.login-page) .table-wrap{
  border-radius:14px;
  box-shadow:var(--shadow-soft);
  scrollbar-width:thin;
}
body:not(.login-page) .data-table,
body:not(.login-page) .table{font-size:13px}
body:not(.login-page) .data-table th,
body:not(.login-page) .data-table td,
body:not(.login-page) .table th,
body:not(.login-page) .table td{padding:10px 11px;font-size:12px;vertical-align:middle}
body:not(.login-page) .data-table th,
body:not(.login-page) .table th{font-size:10px;letter-spacing:.06em;background:var(--panel-2);white-space:nowrap}
body:not(.login-page) .data-table tbody tr:last-child td,
body:not(.login-page) .table tbody tr:last-child td{border-bottom:0}
body:not(.login-page) .badge{padding:4px 7px;border-radius:7px;font-size:10px}
body:not(.login-page) .inline-actions,
body:not(.login-page) .actions{gap:6px}

body:not(.login-page) .notice-success,
body:not(.login-page) .notice-error,
body:not(.login-page) .notice-warning,
body:not(.login-page) .notice-info,
body:not(.login-page) .alert{padding:10px 12px;border-radius:10px;font-size:12px}

/* Colores funcionales también en componentes antiguos. */
body:not(.login-page) .badge.success{color:var(--success);background:rgba(22,155,98,.10);border-color:rgba(22,155,98,.18)}
body:not(.login-page) .badge.warning,
body:not(.login-page) .badge.warn{color:var(--warning);background:rgba(216,135,18,.10);border-color:rgba(216,135,18,.18)}
body:not(.login-page) .badge.danger{color:var(--danger);background:rgba(220,61,90,.10);border-color:rgba(220,61,90,.18)}
body:not(.login-page) .live-indicator{padding:6px 9px;border-radius:8px;font-size:10px}

.u-hidden{display:none!important}
.entity-page-toolbar{
  display:flex;align-items:center;gap:14px;padding:13px 15px;margin-bottom:14px;
  border:1px solid var(--border);border-radius:14px;background:var(--card);box-shadow:var(--shadow-soft);
}
.entity-page-toolbar>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.entity-page-toolbar strong{font-size:14px}
.entity-page-toolbar span{color:var(--text-soft);font-size:12px}
.entity-workspace.is-list-mode,.entity-workspace.is-form-mode{display:block}
.entity-workspace.is-list-mode>.entity-form-card{display:none}
.entity-workspace.is-form-mode>.entity-list-card{display:none}
.entity-workspace.is-form-mode>.entity-form-card{width:100%;max-width:1040px;margin:0 auto}
.entity-workspace.is-list-mode>.entity-list-card{width:100%}
.entity-form-card>h3{margin-top:0}
.entity-editor-card{max-width:920px;margin:0 auto}
.entity-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.entity-editor-head h3{margin:3px 0 4px;font-size:20px}
.entity-check-field{display:flex;align-items:flex-end;padding-bottom:10px}
.entity-check-field .hostprofiles-checkbox{min-height:40px;padding:0 12px;border:1px solid var(--border);border-radius:10px;background:var(--panel-2);width:100%}

/* Identidad y consistencia de controles (auditoría septiembre 2026). */
.brand-badge.brand-badge-image{
  padding:0!important;overflow:hidden;background:transparent!important;border:0!important;color:transparent!important;
}
.brand-badge-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}

body:not(.login-page) .main,
body:not(.login-page) .content-stack,
body:not(.login-page) .content-stack>*{min-width:0;max-width:100%}
body:not(.login-page) .main{overflow-x:hidden}

body:not(.login-page) input.form-control:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body:not(.login-page) select.form-control,
body:not(.login-page) .lead-input,
body:not(.login-page) .lead-select,
body:not(.login-page) .rec-input,
body:not(.login-page) .rec-select,
body:not(.login-page) .msg-select,
body:not(.login-page) .tm-status-combo{
  height:var(--control-height)!important;
  min-height:var(--control-height)!important;
  box-sizing:border-box;
}
body:not(.login-page) select.form-control,
body:not(.login-page) select.lead-select,
body:not(.login-page) select.rec-select{padding-top:0!important;padding-bottom:0!important;line-height:calc(var(--control-height) - 2px)}
body:not(.login-page) textarea.form-control,
body:not(.login-page) .lead-textarea,
body:not(.login-page) .rec-textarea{height:auto!important;min-height:96px}
body:not(.login-page) .btn,
body:not(.login-page) .lead-btn,
body:not(.login-page) .rec-btn,
body:not(.login-page) .btn-mini{
  min-height:var(--control-height)!important;height:var(--control-height);box-sizing:border-box;
  display:inline-flex;align-items:center;justify-content:center;line-height:1.15;white-space:nowrap;
}
body:not(.login-page) .btn-primary,
body:not(.login-page) .lead-btn,
body:not(.login-page) .rec-btn:not(.secondary){background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}
body:not(.login-page) .btn-primary:hover,
body:not(.login-page) .lead-btn:hover,
body:not(.login-page) .rec-btn:not(.secondary):hover{background:var(--accent-2)!important;border-color:var(--accent-2)!important}

body:not(.login-page) .data-table-wrap,
body:not(.login-page) .table-wrap,
body:not(.login-page) .table-responsive,
body:not(.login-page) .clients-table-wrap,
body:not(.login-page) .rec-table-wrap,
body:not(.login-page) [class*="table-card"]{
  width:100%;max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;
}
body:not(.login-page) table{max-width:100%}
body:not(.login-page) .data-table td,
body:not(.login-page) .table td,
body:not(.login-page) .hostprofiles-table td{overflow-wrap:anywhere;word-break:normal}
body:not(.login-page) .data-table td:last-child,
body:not(.login-page) .table td:last-child{white-space:nowrap}

.entity-page-toolbar{justify-content:flex-start}
.entity-page-toolbar .entity-toolbar-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.lead-main.is-list-mode,.lead-main.is-detail-mode{grid-template-columns:minmax(0,1fr)!important}
.lead-main.is-detail-mode>.lead-card{width:100%;max-width:1080px;margin:0 auto}
.hostprofiles-area-badge{background:var(--accent-soft)!important;border-color:color-mix(in srgb,var(--accent) 22%,var(--border))!important;color:var(--accent)!important}
.market-admin-icon{background:var(--accent-soft)!important;color:var(--accent)!important}
.host-modal-thumb.is-active{outline-color:var(--accent)!important}
.tm-card:hover,.tm-card.is-active{border-color:var(--accent)!important}
.tm-summary-card:before{background:linear-gradient(90deg,var(--accent),var(--accent-2))!important}
.tm-decision-help summary{color:var(--accent)!important}

/* Pantallas operativas: una sola superficie de trabajo, sin columnas residuales. */
.grid.session-list-mode,.grid.session-detail-mode{grid-template-columns:minmax(0,1fr)!important}
.grid.session-list-mode>.stack{display:none!important}
.grid.session-detail-mode>.stack{position:static!important;width:100%!important;max-width:none!important;margin:0!important}
.company-workspace{grid-template-columns:minmax(0,1fr)!important}
.company-workspace>.panel-card{width:100%;max-width:100%;min-width:0}

@media (max-width:1180px){
  body:not(.login-page) .topbar{background:color-mix(in srgb,var(--card) 90%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.12);backdrop-filter:blur(18px) saturate(1.12)}
  html[data-theme="dark"] body:not(.login-page) .topbar{background:rgba(24,33,31,.96)!important}
}

@media (max-width:1360px){
  body:not(.login-page) .app-shell{grid-template-columns:218px minmax(0,1fr)}
  body:not(.login-page) .sidebar{width:218px;padding-inline:10px}
  body:not(.login-page) .main{padding-inline:20px}
  body:not(.login-page) .nav a{font-size:12px}
  body:not(.login-page) .account-title{max-width:126px}
}

@media (max-width:1180px){
  body:not(.login-page) .app-shell{display:block}
  body:not(.login-page) .sidebar{
    position:fixed;
    inset:0 auto 0 0;
    z-index:120;
    width:270px;
    height:100dvh;
    padding:14px 12px;
    border-right:1px solid var(--sidebar-border);
    border-bottom:0;
    transform:translateX(-102%);
    transition:transform .22s ease;
    box-shadow:20px 0 60px rgba(20,25,48,.18);
  }
  body.sidebar-open .sidebar{transform:translateX(0)}
  .sidebar-close,.mobile-menu-toggle{display:inline-grid}
  .sidebar-backdrop{
    position:fixed;inset:0;z-index:110;display:block;
    background:rgba(14,18,34,.42);backdrop-filter:blur(2px);
    opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease;
  }
  body.sidebar-open .sidebar-backdrop{opacity:1;visibility:visible}
  body.sidebar-open{overflow:hidden}
  body:not(.login-page) .main{width:100%;padding:16px 18px 32px}
  body:not(.login-page) .topbar{position:sticky;top:8px;z-index:90;padding:10px 12px;background:color-mix(in srgb,var(--card) 90%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.12);backdrop-filter:blur(18px) saturate(1.12)}
  html[data-theme="dark"] body:not(.login-page) .topbar{background:rgba(24,33,31,.96)!important}
  body:not(.login-page) .period-filter-form{grid-template-columns:1fr}
  body:not(.login-page) .period-filter-controls{justify-content:flex-start}
}

@media (max-width:860px){
  body:not(.login-page) .kpi-grid,
  body:not(.login-page) .grid-cards-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body:not(.login-page) .grid-3,
  body:not(.login-page) .grid-cards-3,
  body:not(.login-page) .mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body:not(.login-page) .grid-2,
  body:not(.login-page) .two-col{grid-template-columns:1fr!important}
  body:not(.login-page) .topbar-actions{flex-wrap:nowrap}
  body:not(.login-page) .profile-chip span:last-child{display:none}
}

@media (max-width:620px){
  body:not(.login-page) .main{padding:10px 12px 26px}
  body:not(.login-page) .topbar{flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:10px}
  body:not(.login-page) .topbar-actions{width:auto;justify-content:flex-end;gap:6px}
  body:not(.login-page) .page-title{font-size:21px}
  body:not(.login-page) .eyebrow{display:block;font-size:9px;letter-spacing:.08em}
  body:not(.login-page) .theme-toggle-label{display:none}
  body:not(.login-page) .theme-toggle,
  body:not(.login-page) .profile-chip,
  .topbar-icon-link,.mobile-menu-toggle{width:36px;height:36px;min-height:36px;padding:0;justify-content:center;flex-basis:36px}
  body:not(.login-page) .kpi-grid,
  body:not(.login-page) .grid-cards-4,
  body:not(.login-page) .grid-cards-3,
  body:not(.login-page) .grid-3,
  body:not(.login-page) .mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body:not(.login-page) .card,
  body:not(.login-page) .panel-card,
  body:not(.login-page) .chart-card,
  body:not(.login-page) .placeholder-card{padding:14px;border-radius:13px}
  body:not(.login-page) .period-filter-card{padding:13px}
  body:not(.login-page) .period-filter-dates{display:grid;grid-template-columns:1fr 1fr;width:100%}
  body:not(.login-page) .period-filter-dates .form-control{width:100%;min-width:0}
  body:not(.login-page) .period-filter-dates .btn{grid-column:1/-1;width:100%;min-width:0}
  body:not(.login-page) .filter-pills{display:grid;grid-template-columns:repeat(4,1fr);width:100%}
  body:not(.login-page) .pill{padding-inline:5px}
  body:not(.login-page) .form-grid,
  body:not(.login-page) .form-grid-3,
  body:not(.login-page) .form-grid-4{grid-template-columns:1fr!important}
  body:not(.login-page) .form-grid>[style*="grid-column"],
  body:not(.login-page) .form-grid-3>[style*="grid-column"],
  body:not(.login-page) .form-grid-4>[style*="grid-column"]{grid-column:1!important}
  body:not(.login-page) .data-table-wrap,
  body:not(.login-page) .table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body:not(.login-page) .data-table,
  body:not(.login-page) .table{min-width:680px}
  body:not(.login-page) .smart-filter-form{grid-template-columns:1fr!important}
  .entity-page-toolbar{align-items:flex-start;flex-direction:column;padding:12px}
  .entity-editor-head{flex-direction:column}
  .login-page .login-shell{padding:72px 14px 18px}
  .login-page .login-card{padding:24px 20px;border-radius:18px}
  .login-page .status-pill{display:none}
  .login-page .theme-toggle-label{display:none}
}

@media (max-width:360px){
  body:not(.login-page) .kpi-grid,
  body:not(.login-page) .grid-cards-4,
  body:not(.login-page) .grid-cards-3,
  body:not(.login-page) .grid-3,
  body:not(.login-page) .mini-grid{grid-template-columns:1fr!important}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
