/* ZA Capital — admin panel skin. Mirrors the mobile app identity:
   ink #1C2733 / #2D3845 / #4A5664, surface #F7F9FC, border #E5E7EB,
   generous radius, soft shadows. Loaded via FilamentAsset (AppServiceProvider). */
:root {
  --za-ink: #1C2733;
  --za-ink-2: #2D3845;
  --za-ink-3: #4A5664;
  --za-surface: #F7F9FC;
  --za-border: #E5E7EB;
  --za-radius: 18px;
}
.fi-body { background: var(--za-surface) !important; }
.fi-main { background: transparent; }

/* Sidebar: dark ink, like the app bar in the mobile app */
.fi-sidebar { background: var(--za-ink) !important; border-right: 0 !important; }
.fi-sidebar-header { background: var(--za-ink) !important; box-shadow: none !important; }
.fi-sidebar-nav { padding-top: .5rem; }
.fi-sidebar-group-label { color: rgba(255,255,255,.45) !important; letter-spacing: .08em; font-size: .68rem; text-transform: uppercase; }
.fi-sidebar-item-button { border-radius: 12px !important; margin: 2px 0; }
.fi-sidebar-item-label { color: rgba(255,255,255,.78) !important; font-weight: 500; }
.fi-sidebar-item-icon { color: rgba(255,255,255,.55) !important; }
.fi-sidebar-item-button:hover { background: rgba(255,255,255,.07) !important; }
.fi-sidebar-item-active .fi-sidebar-item-button { background: rgba(255,255,255,.14) !important; }
.fi-sidebar-item-active .fi-sidebar-item-label,
.fi-sidebar-item-active .fi-sidebar-item-icon { color: #fff !important; }
.fi-sidebar-group-button .fi-sidebar-group-label, .fi-sidebar-group-collapse-button { color: rgba(255,255,255,.5) !important; }
.fi-sidebar-close-overlay { background: rgba(0,0,0,.5); }

/* Topbar */
.fi-topbar nav { background: rgba(255,255,255,.85) !important; backdrop-filter: blur(14px); border-bottom: 1px solid var(--za-border); box-shadow: none !important; }
.fi-header-heading { font-weight: 800; letter-spacing: -.01em; color: var(--za-ink); }

/* Cards / sections / tables / widgets */
.fi-section, .fi-wi-chart, .fi-wi-stats-overview-stat, .fi-ta-ctn, .fi-fo-tabs, .fi-in-section, .fi-wi-table {
  border-radius: var(--za-radius) !important;
  border: 1px solid var(--za-border) !important;
  box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 8px 24px -16px rgba(17,24,39,.18) !important;
  background: #fff;
}
.fi-section-header { padding-bottom: .25rem; }
.fi-section-header-heading, .fi-wi-chart-heading, .fi-ta-header-heading { font-weight: 700; color: var(--za-ink); }

/* Stats: big numbers, tinted icon chip */
.fi-wi-stats-overview-stat { padding: 1.1rem 1.25rem !important; background: linear-gradient(180deg,#fff 0%,#fbfcfe 100%); }
.fi-wi-stats-overview-stat-label { font-size: .78rem; color: var(--za-ink-3); font-weight: 600; letter-spacing: .02em; }
.fi-wi-stats-overview-stat-value { font-size: 1.9rem !important; font-weight: 800 !important; color: var(--za-ink); letter-spacing: -.02em; }
.fi-wi-stats-overview-stat-description { font-weight: 600; }

/* Buttons / inputs / badges */
.fi-btn { border-radius: 12px !important; font-weight: 600; }
.fi-btn-color-primary { background: var(--za-ink) !important; }
.fi-btn-color-primary:hover { background: var(--za-ink-2) !important; }
.fi-input-wrp, .fi-select-input, .fi-fo-field-wrp input, .fi-fo-field-wrp select { border-radius: 12px !important; }
.fi-badge { border-radius: 999px !important; font-weight: 600; }
.fi-ta-row:hover { background: #f3f6fb !important; }
.fi-ta-header-cell { background: #f7f9fc; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--za-ink-3); }
.fi-tabs { border-radius: 14px !important; }
.fi-pagination { padding: .75rem 1rem; }

/* Chart canvas breathing room */
.fi-wi-chart canvas { padding: .25rem; }
.fi-wi-chart .fi-wi-chart-heading { font-size: .95rem; }

/* Login */
.fi-simple-layout .fi-simple-main { border-radius: 24px; box-shadow: 0 20px 50px -20px rgba(17,24,39,.35); }
.fi-simple-page { background: radial-gradient(1200px 600px at 20% -10%, #e8edf5 0%, var(--za-surface) 60%); }

/* Leaflet panes use high z-indexes; keep the map below the sidebar/topbar overlays */
#employee-map, [id^="wo-map-"] { position: relative; z-index: 0; isolation: isolate; }
.fi-sidebar, .fi-topbar, .fi-modal, .fi-dropdown-panel { z-index: 40; }
