/* Professional skin: clean light UI, high contrast, large readable Inter type.
   Active when <html data-style="pro">. Colours follow the chosen palette. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../../vendor/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../../vendor/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../../vendor/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../../vendor/fonts/inter-latin-700-normal.woff2") format("woff2"); }

html[data-style="pro"] {
  --md-font: "Inter", "Segoe UI", system-ui, sans-serif;
  --pr-bg: #f3f5f9; --pr-card: #ffffff; --pr-ink: #0f172a; --pr-ink2: #334155; --pr-line: #d6dce6; --pr-line2: #e8ecf3;
  --pr-shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 14px -6px rgba(15,23,42,.10);
  --md-on-surface: var(--pr-ink); --md-on-surface-variant: var(--pr-ink2);
  --md-outline: #94a3b8; --md-outline-variant: var(--pr-line);
  --md-surface: var(--pr-bg);
  --md-surface-container-lowest: #fff; --md-surface-container-low: #fff;
  --md-surface-container: #eef1f6; --md-surface-container-high: #e8ecf3;
  font-size: 16px;
}
html[data-style="pro"] body { background: var(--pr-bg) !important; color: var(--pr-ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
html[data-style="pro"] .app-page, html[data-style="pro"] .app-shell, html[data-style="pro"] .login-page { background: transparent !important; }

/* typography: bigger, darker, clearer */
html[data-style="pro"] h1, html[data-style="pro"] h2, html[data-style="pro"] h3 { color: var(--pr-ink) !important; letter-spacing: -.01em; }
html[data-style="pro"] .panel-heading h2, html[data-style="pro"] .tab-panel > h2 { font-size: 26px !important; font-weight: 700 !important; }
html[data-style="pro"] h3, html[data-style="pro"] .analytics-card h3 { font-size: 17px !important; font-weight: 600 !important; }
html[data-style="pro"] label { color: var(--pr-ink2) !important; font-size: 13.5px !important; font-weight: 600 !important; }
html[data-style="pro"] td { font-size: 14.5px !important; color: var(--pr-ink) !important; }
html[data-style="pro"] th { font-size: 12.5px !important; font-weight: 700 !important; color: var(--pr-ink2) !important; text-transform: uppercase !important; letter-spacing: .04em !important; }
html[data-style="pro"] small, html[data-style="pro"] .muted, html[data-style="pro"] .panel-heading p { font-size: 13px !important; color: #475569 !important; }
html[data-style="pro"] .eyebrow { color: var(--md-primary) !important; font-size: 12px !important; font-weight: 700 !important; }
html[data-style="pro"] input, html[data-style="pro"] select, html[data-style="pro"] textarea { font-size: 15px !important; color: var(--pr-ink) !important; }
html[data-style="pro"] input::placeholder { color: #64748b; opacity: 1; }

/* sidebar */
html[data-style="pro"] .sidebar { background: #fff !important; border-right: 1px solid var(--pr-line) !important; box-shadow: none !important; }
html[data-style="pro"] .brand-mark { background: var(--md-primary) !important; color: var(--md-on-primary) !important; border-radius: 12px !important; }
html[data-style="pro"] .sidebar-brand strong { color: var(--pr-ink) !important; font-size: 15px !important; }
html[data-style="pro"] .sidebar-brand span { color: var(--pr-ink2) !important; font-size: 12.5px !important; }
html[data-style="pro"] .sidebar .sidebar-nav button.tab:not(.secondary):not(.ghost):not(.danger):not(.link-button):not(.login-mode-tab):not(.icon-button) {
  border-radius: 10px !important; min-height: 44px !important; font-size: 14.5px !important; font-weight: 500 !important; color: var(--pr-ink2) !important; background: transparent !important;
}
html[data-style="pro"] .sidebar .sidebar-nav button.tab:hover { background: var(--pr-bg) !important; color: var(--pr-ink) !important; }
html[data-style="pro"] .sidebar .sidebar-nav button.tab.active:not(.secondary):not(.ghost):not(.danger):not(.link-button):not(.login-mode-tab):not(.icon-button) {
  background: color-mix(in srgb, var(--md-primary) 12%, #fff) !important; color: color-mix(in srgb, var(--md-primary) 80%, #000) !important; font-weight: 600 !important;
  box-shadow: inset 3px 0 0 var(--md-primary) !important; border-radius: 10px !important;
}
html[data-style="pro"] .sidebar .tab.active .nav-icon { color: var(--md-primary) !important; }
html[data-style="pro"] .sidebar-footer .user-card { background: var(--pr-bg) !important; border-radius: 12px !important; }
html[data-style="pro"] .user-meta strong { color: var(--pr-ink) !important; }
html[data-style="pro"] .user-meta small, html[data-style="pro"] .user-meta small.user-id { color: #475569 !important; }
html[data-style="pro"] .sidebar .sidebar-footer button:not(.tab):not(.icon-button) { border-radius: 10px !important; color: var(--pr-ink) !important; border: 1px solid var(--pr-line) !important; background: #fff !important; font-weight: 600 !important; }

/* top bar: clean white header with brand-coloured accent line */
html[data-style="pro"] .topbar { background: #fff !important; border-bottom: 1px solid var(--pr-line) !important; box-shadow: 0 2px 0 -1px var(--md-primary) inset, none; border-top: 4px solid var(--md-primary) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-style="pro"] .topbar h1 { font-size: 22px !important; font-weight: 700 !important; color: var(--pr-ink) !important; }
html[data-style="pro"] .topbar p { color: var(--pr-ink2) !important; font-size: 13.5px !important; }
html[data-style="pro"] .header-pill, html[data-style="pro"] .storage-status { background: var(--pr-bg) !important; color: var(--pr-ink) !important; border: 1px solid var(--pr-line) !important; border-radius: 999px !important; font-size: 13px !important; font-weight: 600 !important; padding: 6px 14px !important; display: inline-flex !important; align-items: center; gap: 8px; }
html[data-style="pro"] .storage-status::before { position: static !important; flex: none; margin: 0 !important; }

/* cards */
html[data-style="pro"] .toolbar, html[data-style="pro"] .employee-form, html[data-style="pro"] .analytics-card, html[data-style="pro"] .table-wrap,
html[data-style="pro"] .summary-layout article, html[data-style="pro"] .form-card, html[data-style="pro"] .panel-card, html[data-style="pro"] .card,
html[data-style="pro"] .login-box, html[data-style="pro"] .tool-drawer, html[data-style="pro"] details,
html[data-style="pro"] body :is(#appPage,#centralPage,#storePage) :is(.fm-head, section.fm-card, section.pw-panel, button.fm-quick) {
  background: #fff !important; border: 1px solid var(--pr-line) !important; border-radius: 14px !important; box-shadow: var(--pr-shadow) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; color: var(--pr-ink) !important;
}
html[data-style="pro"] .analytics-card::before, html[data-style="pro"] .analytics-card::after { display: none !important; }
html[data-style="pro"] .stats-grid > div, html[data-style="pro"] .kpi-grid > div, html[data-style="pro"] .performance-summary-grid > article,
html[data-style="pro"] .employee-summary-grid > div, html[data-style="pro"] .leave-overview > div, html[data-style="pro"] body :is(#appPage,#centralPage,#storePage) button.fm-kpi {
  background: #fff !important; border: 1px solid var(--pr-line) !important; border-radius: 14px !important; box-shadow: var(--pr-shadow) !important; color: var(--pr-ink) !important;
}
html[data-style="pro"] .stats-grid strong, html[data-style="pro"] .kpi-grid strong { font-size: 30px !important; font-weight: 700 !important; color: var(--pr-ink); }
html[data-style="pro"] .stats-grid span, html[data-style="pro"] .kpi-grid span { color: var(--pr-ink2) !important; font-size: 13.5px !important; font-weight: 500 !important; }

/* tables */
html[data-style="pro"] thead th, html[data-style="pro"] th { background: #f3f5f9 !important; border-bottom: 1px solid var(--pr-line) !important; }
html[data-style="pro"] td { border-bottom: 1px solid var(--pr-line2) !important; }
html[data-style="pro"] tbody tr:hover { background: color-mix(in srgb, var(--md-primary) 5%, #fff) !important; }

/* inputs */
html[data-style="pro"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), html[data-style="pro"] select, html[data-style="pro"] textarea {
  background: #fff !important; border: 1px solid #94a3b8 !important; border-radius: 10px !important; min-height: 44px; box-shadow: none !important;
}
html[data-style="pro"] input:focus, html[data-style="pro"] select:focus, html[data-style="pro"] textarea:focus { border-color: var(--md-primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-primary) 25%, transparent) !important; }

/* buttons */
html[data-style="pro"] button:not(.tab):not(.icon-button):not(.md-swatch):not(.md-fab):not(.link-button):not(.login-mode-tab):not(.employee-thumb):not(.pw-x):not(.md-theme-x):not(.ghost):not(.secondary):not(.danger):not(.profile-trigger):not([data-sm-go]):not(.password-reset-bell-btn):not([class*="fm-"]):not([class*="sm-"]):not([class*="hr-"]):not(.collapse-toggle):not(.employee-name-link),
html[data-style="pro"] body .fm-root button.fm-btn.primary, html[data-style="pro"] body :is(#appPage,#centralPage,#storePage) .fm-root button.fm-btn.primary {
  background: var(--md-primary) !important; color: var(--md-on-primary) !important; border-radius: 10px !important; font-size: 14.5px !important; font-weight: 600 !important; min-height: 42px; box-shadow: 0 1px 2px rgba(15,23,42,.2) !important;
}
html[data-style="pro"] button.ghost:not(.x), html[data-style="pro"] button.secondary:not(.x) { background: #fff !important; color: var(--pr-ink) !important; border: 1px solid #94a3b8 !important; border-radius: 10px !important; font-weight: 600 !important; box-shadow: none !important; }
html[data-style="pro"] button.ghost:hover, html[data-style="pro"] button.secondary:hover { background: var(--pr-bg) !important; }
html[data-style="pro"] button.employee-name-link, html[data-style="pro"] button.profile-trigger:not(.employee-thumb), html[data-style="pro"] a, html[data-style="pro"] .fm-root a, html[data-style="pro"] .fm-root td a { color: color-mix(in srgb, var(--md-primary) 85%, #000) !important; font-weight: 600 !important; }
html[data-style="pro"] button.collapse-toggle { color: var(--pr-ink) !important; font-weight: 600 !important; }
html[data-style="pro"] button.sm-side.active { background: color-mix(in srgb, var(--md-primary) 12%, #fff) !important; color: color-mix(in srgb, var(--md-primary) 80%, #000) !important; box-shadow: inset 3px 0 0 var(--md-primary) !important; border-radius: 10px !important; }
html[data-style="pro"] button.password-reset-bell-btn { background: #fff !important; border: 1px solid var(--pr-line) !important; }

/* dialogs / theme widget / login */
html[data-style="pro"] .form-modal, html[data-style="pro"] .pw-modal { background: rgba(15,23,42,.5) !important; }
html[data-style="pro"] .form-modal-card, html[data-style="pro"] .pw-card, html[data-style="pro"] .md-theme-panel { background: #fff !important; border: 1px solid var(--pr-line) !important; border-radius: 18px !important; box-shadow: 0 24px 60px rgba(15,23,42,.25) !important; color: var(--pr-ink) !important; }
html[data-style="pro"] body #mdThemePanel .md-seg button.on { background: var(--md-primary) !important; color: var(--md-on-primary) !important; }
html[data-style="pro"] body #mdThemePanel .md-seg { border-color: #94a3b8; }
html[data-style="pro"] body #mdThemePanel .md-seg button { color: var(--pr-ink) !important; }
html[data-style="pro"] body #mdThemePanel .md-theme-label { color: var(--pr-ink2) !important; }
html[data-style="pro"] .login-box h1 { color: var(--pr-ink) !important; font-weight: 700 !important; }
html[data-style="pro"] .login-kicker { color: var(--md-primary) !important; font-weight: 700 !important; }
html[data-style="pro"] .login-box p.login-lead { color: var(--pr-ink2) !important; font-size: 15.5px !important; }
html[data-style="pro"] .login-mode-tab { color: var(--pr-ink) !important; font-weight: 600 !important; }
html[data-style="pro"] .login-mode-tab.active { background: var(--md-primary) !important; color: var(--md-on-primary) !important; }
html[data-style="pro"] fieldset { border: 1px solid var(--pr-line) !important; border-radius: 12px !important; background: #fff !important; }
html[data-style="pro"] fieldset legend { color: var(--md-primary) !important; font-weight: 700 !important; }
html[data-style="pro"] .nav-badge { background: #dc2626 !important; color: #fff !important; }
html[data-style="pro"] body :is(#appPage,#centralPage,#storePage) .fm-root :is(td a, a.fm-link, button.fm-link, td button.link-button) { color: color-mix(in srgb, var(--md-primary) 85%, #000) !important; }
html[data-style="pro"] body .panel-heading h2, html[data-style="pro"] body .tab-panel > h2, html[data-style="pro"] body .fm-root h2 { font-weight: 700 !important; color: var(--pr-ink) !important; }
@media (max-width: 900px) { html[data-style="pro"] .topbar { border-top-width: 3px !important; } html[data-style="pro"] body { font-size: 15px; } }
@media (max-width: 900px) {
  html[data-style="pro"] .topbar-actions { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: flex-start !important; align-items: center; gap: 6px !important; }
  html[data-style="pro"] .topbar-actions > * { margin: 0 !important; }
  html[data-style="pro"] .topbar-actions .storage-status { max-width: 100%; }
}
