/* FarmManagerPro Stage 6 — pełny design system. Warstwa wizualna, bez zmian logiki biznesowej. */
:root{
  --fmp6-purple:#6338ee;--fmp6-purple-2:#7b4dff;--fmp6-purple-dark:#4f2bd0;
  --fmp6-purple-soft:#f3efff;--fmp6-green:#12a85b;--fmp6-green-soft:#eafaf1;
  --fmp6-blue:#2f80ed;--fmp6-blue-soft:#edf5ff;--fmp6-orange:#ff7a21;--fmp6-orange-soft:#fff2e8;
  --fmp6-red:#ef4444;--fmp6-red-soft:#fff0f1;--fmp6-bg:#f6f8fc;--fmp6-surface:#fff;
  --fmp6-text:#111a31;--fmp6-muted:#738099;--fmp6-line:#e5e9f1;--fmp6-line-strong:#dbe1eb;
  --fmp6-radius:17px;--fmp6-radius-sm:12px;--fmp6-shadow:0 8px 24px rgba(26,34,61,.055);
  --fmp6-shadow-hover:0 14px 32px rgba(43,36,91,.085);
}

body.authenticated{background:var(--fmp6-bg)!important;color:var(--fmp6-text)!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.authenticated #appMain{max-width:none}
body.authenticated .muted{color:var(--fmp6-muted)!important}
body.authenticated .eyebrow{color:#8878c9;font-weight:850;letter-spacing:.12em}

/* Marka i topbar */
body.authenticated .brand-mark{display:grid!important;place-items:center!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
body.authenticated .brand-mark img{width:40px;height:40px;display:block;border-radius:11px;box-shadow:0 5px 12px rgba(18,48,44,.13)}
body.authenticated .app-header{border-bottom:1px solid #e9edf4!important;background:rgba(255,255,255,.985)!important;box-shadow:0 2px 12px rgba(26,34,61,.035)!important}
body.authenticated .header-button{border:1px solid var(--fmp6-line)!important;border-radius:12px!important;background:#fff!important;color:#37445d!important;font-weight:800!important}
body.authenticated .header-button:hover{border-color:#d6cdfc!important;background:#fbfaff!important;color:var(--fmp6-purple)!important}
body.authenticated .scope-bar{background:rgba(255,255,255,.97)!important;border-bottom:1px solid #edf0f5!important}
body.authenticated .scope-bar label>span{font-size:9px!important;text-transform:uppercase;letter-spacing:.08em;color:#9099aa!important;font-weight:850}
body.authenticated .scope-bar select{min-height:42px;border:1px solid var(--fmp6-line)!important;border-radius:12px!important;background:#fff!important;font-weight:750;color:#26334c}
body.authenticated .active-scope-chip{border:1px solid #e8e2ff!important;border-radius:12px!important;background:#faf8ff!important}

/* Wspólne powierzchnie */
body.authenticated .fmp6-surface,
body.authenticated .card,
body.authenticated .stat,
body.authenticated .ops-subcard,
body.authenticated .section-card592,
body.authenticated .employee-card,
body.authenticated .batch-card,
body.authenticated .stock-card{
  border:1px solid var(--fmp6-line)!important;border-radius:var(--fmp6-radius)!important;background:var(--fmp6-surface)!important;
  box-shadow:var(--fmp6-shadow)!important;
}
body.authenticated .card:hover{border-color:#dde1ec}
body.authenticated .section-title,.fmp6-section-title{padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid #eef1f5}
body.authenticated .section-title h3,.fmp6-section-title h3{color:#172138;letter-spacing:-.015em;font-weight:850}
body.authenticated h2,body.authenticated h3,body.authenticated h4{color:var(--fmp6-text)}

/* Nagłówki wszystkich podmodułów */
body.authenticated .fmp6-page-heading{
  position:relative;min-height:90px;padding:17px 19px!important;margin:0 0 14px!important;align-items:center!important;overflow:hidden;
  border:1px solid var(--fmp6-line)!important;border-radius:17px!important;background:linear-gradient(135deg,#fff 0%,#fbfaff 58%,#f4f0ff 100%)!important;
  box-shadow:var(--fmp6-shadow)!important;
}
body.authenticated .fmp6-page-heading::after{content:"";position:absolute;right:-34px;top:-50px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(99,56,238,.12),rgba(99,56,238,0) 68%);pointer-events:none}
body.authenticated .fmp6-page-heading>div:first-child{position:relative;z-index:1;padding-left:54px;min-height:48px;display:flex;flex-direction:column;justify-content:center}
body.authenticated .fmp6-page-heading h2{font-size:23px!important;line-height:1.12;margin:0 0 4px!important;letter-spacing:-.028em!important}
body.authenticated .fmp6-page-heading .eyebrow{font-size:8px!important;margin-bottom:4px}
.fmp6-heading-icon{position:absolute;left:0;top:2px;width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#f2edff,#e9e1ff);color:var(--fmp6-purple);border:1px solid #e1d8ff;box-shadow:0 6px 14px rgba(99,56,238,.08)}
.fmp6-icon-svg{width:21px;height:21px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Formularze */
body.authenticated label{color:#59657a;font-weight:750;font-size:10px}
body.authenticated input,body.authenticated select,body.authenticated textarea{
  min-height:42px;border:1px solid #dfe4ed!important;border-radius:12px!important;background:#fff!important;color:#1e293d!important;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
body.authenticated textarea{min-height:88px}
body.authenticated input:hover,body.authenticated select:hover,body.authenticated textarea:hover{border-color:#d4d9e5!important}
body.authenticated input:focus,body.authenticated select:focus,body.authenticated textarea:focus{outline:none!important;border-color:#8971f3!important;box-shadow:0 0 0 4px rgba(99,56,238,.10)!important}
body.authenticated .form-grid,body.authenticated .ops-form-grid{gap:10px 12px}
body.authenticated .button-row{gap:9px}
body.authenticated .primary,body.authenticated .scan-button{
  min-height:42px;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,var(--fmp6-purple-2),var(--fmp6-purple-dark))!important;color:#fff!important;font-weight:850!important;
  box-shadow:0 8px 18px rgba(99,56,238,.19)!important;transition:transform .15s ease,box-shadow .15s ease!important;
}
body.authenticated .primary:hover,body.authenticated .scan-button:hover{transform:translateY(-1px);box-shadow:0 11px 22px rgba(99,56,238,.24)!important}
body.authenticated .secondary{min-height:40px;border:1px solid #d7d0fb!important;border-radius:11px!important;background:#fff!important;color:#5c3cda!important;font-weight:800!important}
body.authenticated .secondary:hover{background:#f8f6ff!important;border-color:#cbbfff!important}
body.authenticated .compact{min-height:34px!important;border-radius:9px!important}

/* Filtry, zakładki, komunikaty */
body.authenticated .fmp6-filter-panel,body.authenticated .list-filter-panel,body.authenticated .compact-filters,body.authenticated .inventory-history-filters{
  border:1px solid #e7eaf1!important;border-radius:14px!important;background:#fafbfe!important;padding:11px!important;box-shadow:none!important;
}
body.authenticated .history-quick-ranges{gap:6px}
body.authenticated .history-quick-ranges button,body.authenticated .range-shortcuts button{border:1px solid #e1e5ed!important;border-radius:9px!important;background:#fff!important;color:#647087!important;font-weight:800!important}
body.authenticated .history-quick-ranges button:hover,body.authenticated .range-shortcuts button:hover{border-color:#d0c5ff!important;color:var(--fmp6-purple)!important;background:#f8f6ff!important}
body.authenticated .fmp6-tabs,body.authenticated .workspace-tabs592,body.authenticated .harvest-mode-switch{
  padding:4px!important;border:1px solid #e2e6ef!important;border-radius:14px!important;background:#f7f8fb!important;gap:4px!important;
}
body.authenticated .fmp6-tabs button,body.authenticated .workspace-tabs592 button,body.authenticated .harvest-mode-switch button{border:0!important;border-radius:10px!important;background:transparent!important;color:#69758d!important;font-weight:850!important;box-shadow:none!important}
body.authenticated .fmp6-tabs button.active,body.authenticated .workspace-tabs592 button.active,body.authenticated .harvest-mode-switch button.active{background:linear-gradient(135deg,#744af5,#5b34dd)!important;color:#fff!important;box-shadow:0 6px 14px rgba(99,56,238,.18)!important}
body.authenticated .ops-notice{border-radius:12px!important;border-color:#e1e5ed!important;background:#fafbfe!important;color:#566278!important}

/* Tabele i listy */
body.authenticated .table-scroll{border:1px solid #e8ebf1!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;overflow:auto}
body.authenticated table{border-collapse:separate;border-spacing:0}
body.authenticated th{background:#f8f9fc!important;color:#8791a4!important;font-size:9px!important;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #e9edf3!important}
body.authenticated td{border-bottom:1px solid #eef1f5!important;color:#354057}
body.authenticated tbody tr:hover{background:#faf9ff!important}
body.authenticated .history-pager{border-top:0!important;margin-top:9px!important}
body.authenticated .history-pager button{border:1px solid #e0e4ed!important;border-radius:9px!important;background:#fff!important;color:#5f6980!important;font-weight:800!important}
body.authenticated .fmp6-list-row{border-radius:12px}

/* Dashboard */
#dashboard>.page-heading.fmp6-dashboard-hero{border-radius:18px!important;box-shadow:var(--fmp6-shadow)!important}
#dashboardQuickActions.fmp6-quick-actions button{border:1px solid var(--fmp6-line)!important;border-radius:15px!important;background:#fff!important;box-shadow:var(--fmp6-shadow)!important}
#dashboardQuickActions.fmp6-quick-actions button:hover{border-color:#d8cffd!important;box-shadow:var(--fmp6-shadow-hover)!important}
.dashboard-kpi-v561{border-radius:16px!important;border-color:var(--fmp6-line)!important;box-shadow:var(--fmp6-shadow)!important}
.dashboard-panel-v561{border-radius:16px!important;border-color:var(--fmp6-line)!important;box-shadow:var(--fmp6-shadow)!important}
.dashboard-panel-title button{border:0!important;border-radius:9px!important;background:#f5f1ff!important;color:#6841e8!important;font-weight:850!important}
.dashboard-system-primary{background:linear-gradient(135deg,#744af5,#5932dc)!important;border:0!important;border-radius:11px!important;color:#fff!important}
.dashboard-system-secondary{border:1px solid #d8cffd!important;border-radius:11px!important;color:#603be0!important;background:#fff!important}

/* Zbiory */
#scanner .scanner-layout{gap:14px}
#scanner .fmp6-harvest-card{padding:17px!important}
#scanner .employee-search-box{border-radius:13px!important;background:#fbfcfe}
#scanner .selected-worker{border:1px solid #e2dcff!important;border-radius:13px!important;background:#faf8ff!important;padding:12px!important}
#scanner .harvest-field-row{gap:8px}
#scanner .harvest-field-row select{flex:1}
#scanner .harvest-field-badge{border-radius:10px!important;background:var(--fmp6-green-soft)!important;border-color:#d8f1e4!important;color:#167847!important}
#scanner .harvest-scan-router-panel{border:1px solid #e6e0ff!important;border-radius:12px!important;background:#faf8ff!important;color:#5c48a7!important}
#scanner .quantity-box{padding:5px;border:1px solid #e3e6ee;border-radius:14px;background:#fafbfe}
#scanner .quantity-box input{border:0!important;background:transparent!important;box-shadow:none!important;font-size:20px;font-weight:900;text-align:center}
#scanner .quantity-control{border:0!important;border-radius:10px!important;background:#eee9ff!important;color:#6338ee!important;font-weight:900!important}
#scanner .quick-buttons{gap:7px}
#scanner .quick-buttons button{border:1px solid #ded7ff!important;border-radius:10px!important;background:#faf8ff!important;color:#6338ee!important;font-weight:850!important}
#scanner .harvest-weight-panel{border:1px solid #e4e7ef!important;border-radius:14px!important;background:#fbfcfe!important;padding:13px!important}
#scanner .harvest-net-preview{border:1px solid #ddd5ff!important;border-radius:12px!important;background:#faf8ff!important}
#scanner #saveHarvestBtn,#scanner .scan-button{width:100%}

/* Pracownicy */
#employees .employees-layout{gap:14px}
#employees .sticky-form{border-color:#e6e0ff!important;background:linear-gradient(180deg,#fff,#fcfbff)!important}
#employees .summary-chips span{border:1px solid #e3ddff!important;border-radius:11px!important;background:#faf8ff!important;color:#72668c!important}
#employees #employeeList>*{border-color:#e7eaf1!important;border-radius:13px!important;background:#fff!important;box-shadow:0 4px 14px rgba(31,39,77,.035)!important}

/* Moduły biznesowe */
#sales .sales-stats .stat,#inventory .stat,#reports .stat,#finance .stat{overflow:hidden;position:relative}
#sales .sales-stats .stat::before,#inventory .stat::before,#reports .stat::before,#finance .stat::before{content:"";position:absolute;right:-28px;bottom:-36px;width:105px;height:105px;border-radius:50%;background:radial-gradient(circle,rgba(99,56,238,.09),rgba(99,56,238,0) 70%)}
#finance .finance-layout,#inventory .finance-layout,#sales .sales-layout{gap:14px}
#operations .card,#reports .card,#settings .card,#users .card,#adminRecords .card,#finance .card,#sales .card,#inventory .card{padding:16px}

/* More menu, modale, wyszukiwarka */
.more-menu-panel,.global-search-panel,.modal-panel{border:1px solid #e3e7ef!important;border-radius:18px!important;background:#fff!important;box-shadow:0 28px 70px rgba(17,24,39,.18)!important}
.more-menu-grid button.fmp6-menu-card{border:1px solid #e7eaf1!important;border-radius:14px!important;background:#fff!important;box-shadow:0 4px 14px rgba(31,39,77,.035)!important}
.more-menu-grid button.fmp6-menu-card:hover{border-color:#d5cbff!important;background:#fbfaff!important;transform:translateY(-1px)}
.more-menu-grid button.fmp6-menu-card>span{background:#f2eeff!important;color:#6338ee!important;border:1px solid #e4dcff!important;border-radius:11px!important}

/* Desktop pełny system */
@media (min-width:1100px){
  body.authenticated #appMain{padding-top:24px}
  .enterprise-sidebar{background:#fff!important;border-right:1px solid #e9edf3!important;box-shadow:5px 0 26px rgba(22,31,52,.025)!important}
  .desktop-nav-item{min-height:43px;border-radius:11px!important;color:#39445b!important}
  .desktop-nav-item:hover{background:#f7f5ff!important;color:#5e39dc!important}
  .desktop-nav-item.active,.desktop-nav-item.active-context{background:linear-gradient(90deg,#f0ebff,#faf9ff)!important;color:#5934db!important}
  .desktop-nav-icon{background:#f5f6f9!important;color:#748097!important;border-radius:10px!important}
  .desktop-nav-item.active .desktop-nav-icon,.desktop-nav-item.active-context .desktop-nav-icon{background:#ece6ff!important;color:#6338ee!important}
  #openGlobalSearchBtn{background:#fafbfe!important;border-color:#e3e7ef!important}
  body.authenticated .fmp6-page-heading{margin-bottom:15px!important}
}

/* Telefon / terminal ręczny */
@media (max-width:1099px){
  body.authenticated{padding-bottom:calc(82px + env(safe-area-inset-bottom))!important;background:#f7f9fd!important}
  body.authenticated #appMain{padding:10px 12px 20px!important}
  body.authenticated .app-header{position:sticky!important;top:0!important;z-index:80!important;padding-top:env(safe-area-inset-top);background:rgba(255,255,255,.985)!important;backdrop-filter:blur(18px)}
  body.authenticated .header-inner{padding:8px 13px!important;min-height:64px!important}
  body.authenticated .brand-wrap h1{font-size:17px!important;letter-spacing:-.02em}
  body.authenticated .brand-mark img{width:38px;height:38px}
  body.authenticated #openGlobalSearchBtn .header-search-label{display:none}
  body.authenticated #openGlobalSearchBtn{min-width:42px!important;width:42px!important;padding:0!important}
  body.authenticated .scope-bar{position:relative!important;top:auto!important;padding:7px 12px 9px!important;background:#fff!important}
  body.authenticated .scope-bar-inner{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  body.authenticated .scope-bar label{min-width:0!important}
  body.authenticated .scope-bar label>span{display:none!important}
  body.authenticated .scope-bar select{width:100%!important;min-width:0!important;height:44px!important;padding:0 10px!important;font-size:11px!important}
  body.authenticated .active-scope-chip{display:none!important}

  /* Używamy nowego dashboardu także na mobile zamiast starego legacy. */
  #dashboard .dashboard-mobile-legacy{display:none!important}
  #dashboard .dashboard-desktop-v561{display:block!important}
  #dashboard{padding-top:0!important}
  #dashboard>.page-heading.dashboard-hero-heading{
    position:relative!important;min-height:150px!important;height:150px!important;aspect-ratio:auto!important;margin:0 0 10px!important;padding:20px 17px!important;border-radius:18px!important;overflow:hidden!important;
    background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.88) 38%,rgba(255,255,255,.24) 62%,rgba(255,255,255,0) 78%),url('../assets/dashboard-blueberry-tractor.webp')!important;
    background-size:cover!important;background-position:center!important;
  }
  #dashboard>.page-heading.dashboard-hero-heading::before,#dashboard>.page-heading.dashboard-hero-heading::after{display:none!important}
  #dashboard>.page-heading.dashboard-hero-heading>div:first-child{position:relative!important;left:auto!important;top:auto!important;opacity:1!important;display:block!important;max-width:58%!important;padding:0!important;margin:0!important;z-index:2!important}
  #dashboard>.page-heading.dashboard-hero-heading h2{font-size:25px!important;line-height:1.04!important;margin:0 0 7px!important;color:#111a31!important;text-shadow:none!important}
  #dashboard>.page-heading.dashboard-hero-heading .page-description{font-size:11px!important;line-height:1.35!important;color:#5f6c83!important;font-weight:650!important}
  #dashboard>.page-heading.dashboard-hero-heading .date-chip{display:none!important}

  #dashboardQuickActions.dashboard-quick-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;margin:0 0 12px!important}
  #dashboardQuickActions.dashboard-quick-actions button{min-height:74px!important;padding:11px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;column-gap:9px!important;text-align:left!important}
  #dashboardQuickActions.dashboard-quick-actions button:first-child{grid-column:1/-1!important;min-height:72px!important;background:linear-gradient(135deg,#754af5,#5a32dd)!important;color:#fff!important;border-color:transparent!important}
  #dashboardQuickActions.dashboard-quick-actions button:first-child b,#dashboardQuickActions.dashboard-quick-actions button:first-child small{color:#fff!important}
  #dashboardQuickActions.dashboard-quick-actions button:first-child span{background:#fff!important;color:#6338ee!important}
  #dashboardQuickActions.dashboard-quick-actions button[data-view="employees"]{display:none!important}
  #dashboardQuickActions.dashboard-quick-actions button span{width:38px!important;height:38px!important;border-radius:12px!important}
  #dashboardQuickActions.dashboard-quick-actions button b{font-size:11px!important;white-space:normal!important}
  #dashboardQuickActions.dashboard-quick-actions button small{font-size:8px!important;white-space:normal!important;line-height:1.2!important}

  .dashboard-kpi-grid-v561{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin-bottom:10px!important}
  .dashboard-kpi-v561{min-height:105px!important;padding:13px!important;border-radius:15px!important}
  .dashboard-kpi-v561 strong{font-size:20px!important}.dashboard-kpi-v561 small{font-size:8px!important}.dashboard-kpi-v561 em{font-size:8px!important}
  .dashboard-sparkline{display:block!important;width:68px!important;height:28px!important;right:8px!important;bottom:9px!important}
  .dashboard-core-grid-v561{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .dashboard-activity-v561,.dashboard-documents-v561{display:none!important}
  .dashboard-crops-v561,.dashboard-workers-v561,.dashboard-system-v561{min-height:0!important;padding:14px!important}
  .dashboard-donut-layout{grid-template-columns:130px minmax(0,1fr)!important;gap:13px!important}
  .dashboard-donut{width:126px!important;height:126px!important}.dashboard-donut::after{inset:25px!important}.dashboard-donut b{font-size:16px!important}
  .dashboard-system-v561{margin-bottom:8px}

  /* Nagłówki modułów jak w mobilnej makiecie. */
  body.authenticated .fmp6-page-heading{min-height:70px!important;padding:11px 12px!important;border-radius:15px!important;background:#fff!important}
  body.authenticated .fmp6-page-heading::after{display:none}
  body.authenticated .fmp6-page-heading>div:first-child{padding-left:49px;min-height:44px}
  body.authenticated .fmp6-page-heading h2{font-size:20px!important;margin:0!important}
  body.authenticated .fmp6-page-heading .eyebrow{font-size:7px!important}
  .fmp6-heading-icon{width:40px;height:40px;border-radius:12px}

  body.authenticated .card,body.authenticated .stat,body.authenticated .ops-subcard,body.authenticated .section-card592{border-radius:15px!important;box-shadow:0 5px 18px rgba(31,39,77,.045)!important}
  body.authenticated .card{padding:13px!important}
  body.authenticated .section-title{margin-bottom:10px;padding-bottom:9px}

  /* Zbiory */
  #scanner .scanner-layout{display:block!important}
  #scanner .scanner-layout>.card{margin-bottom:10px}
  #scanner .scanner-card{padding:13px!important}
  #scanner .scan-button{min-height:48px!important}
  #scanner .harvest-mode-switch{display:grid!important;grid-template-columns:1fr 1fr!important;margin-bottom:12px!important}
  #scanner .harvest-mode-switch button{min-height:42px!important}
  #scanner .harvest-field-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
  #scanner .harvest-field-badge{justify-self:start}
  #scanner .quantity-box{min-height:54px}
  #scanner .quantity-control{width:46px!important;height:44px!important}
  #scanner .quick-buttons{grid-template-columns:repeat(4,1fr)!important}
  #scanner .quick-buttons button{min-height:39px!important}

  /* Pracownicy */
  #employees .employees-layout{display:flex!important;flex-direction:column!important;gap:10px!important}
  #employees .sticky-form{position:relative!important;top:auto!important;order:2}
  #employees .employees-layout>.card:last-child{order:1}
  #employees .employee-heading .summary-chips{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;width:100%!important;margin-top:9px}
  #employees .employee-heading{display:block!important}
  #employees .employee-heading>div:first-child{padding-left:49px!important}
  #employees #employeeList>*{margin-bottom:7px!important}

  /* Sprzedaż / finanse / magazyn / raporty */
  #sales .sales-summary-controls,#sales .sales-layout,#finance .finance-layout,#inventory .finance-layout,.reports-layout,.settings-layout{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  #sales .sales-stats,.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  #sales .sticky-form,#finance .sticky-form,#inventory .sticky-form{position:relative!important;top:auto!important}
  .list-filter-panel,.compact-filters,.inventory-history-filters{grid-template-columns:1fr!important}
  .table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

  /* Dolna nawigacja — centralny skaner pozostaje główną akcją. */
  .bottom-nav{height:72px!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;background:rgba(255,255,255,.985)!important;border-top:1px solid #e7eaf1!important;box-shadow:0 -10px 30px rgba(31,39,77,.09)!important;overflow:visible!important}
  .bottom-nav>button{height:72px!important;color:#66738b!important;font-size:10px!important;font-weight:800!important}
  .bottom-nav>button.active{color:#6338ee!important;background:#f8f6ff!important}
  .bottom-nav>button#quickScanNavStage5 span{width:58px!important;height:58px!important;margin:-31px auto 3px!important;border-radius:50%!important;background:linear-gradient(145deg,#7b4dff,#5630df)!important;color:#fff!important;box-shadow:0 10px 24px rgba(99,56,238,.34),0 0 0 6px #fff!important}
  .bottom-nav>button#quickScanNavStage5{color:#6338ee!important}

  .more-menu-panel{border-radius:24px 24px 0 0!important;background:#f8f9fd!important}
  .more-menu-grid{grid-template-columns:1fr 1fr!important;gap:9px!important}
  .more-menu-grid button{min-height:72px!important}
  .modal-panel,.global-search-panel{border-radius:22px 22px 0 0!important}
}

@media (max-width:560px){
  #dashboard>.page-heading.dashboard-hero-heading{height:142px!important;min-height:142px!important}
  #dashboard>.page-heading.dashboard-hero-heading h2{font-size:23px!important}
  #dashboardQuickActions.dashboard-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #dashboardQuickActions.dashboard-quick-actions button{grid-template-columns:34px minmax(0,1fr)!important;padding:9px!important}
  #dashboardQuickActions.dashboard-quick-actions button span{width:34px!important;height:34px!important}
  .dashboard-kpi-v561 strong{font-size:18px!important}
  .dashboard-donut-layout{grid-template-columns:112px minmax(0,1fr)!important}.dashboard-donut{width:108px!important;height:108px!important}.dashboard-donut::after{inset:22px!important}
  body.authenticated .form-grid,body.authenticated .ops-form-grid{grid-template-columns:1fr!important}
}

@media print{.fmp6-heading-icon,#quickScanNavStage5{display:none!important}}
