@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #17233c;
    --ink-soft: #41506a;
    --muted: #8290a8;
    --line: #e8edf4;
    --paper: #fff;
    --canvas: #f5f7fb;
    --blue: #426cf5;
    --blue-dark: #3158d6;
    --blue-soft: #edf2ff;
    --teal: #13a98b;
    --amber: #e5a436;
    --red: #da5b63;
    --violet: #8662df;
    --shadow: 0 14px 40px rgba(32, 54, 95, .06);
    --radius: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }

.sidebar { background: #fff; border-right: 1px solid var(--line); bottom: 0; display: flex; flex-direction: column; left: 0; padding: 22px 18px 20px; position: fixed; top: 0; transition: width .2s ease, padding .2s ease, transform .2s ease; width: 252px; z-index: 20; }
.sidebar-brand-row { align-items: center; display: flex; justify-content: space-between; min-height: 42px; }
.brand { align-items: center; color: var(--ink); display: flex; font: 800 20px 'Manrope', sans-serif; gap: 10px; letter-spacing: -.8px; padding: 0 9px; }
.brand img { border-radius: 11px; height: 38px; object-fit: contain; width: 38px; }
.brand > span > span, .auth-brand > span > span { color: var(--blue); }
.sidebar-collapse { align-items: center; background: var(--blue-soft); border: 1px solid transparent; border-radius: 8px; color: #78869c; display: flex; flex: 0 0 32px; height: 32px; justify-content: center; padding: 0; transition: background .18s, color .18s; width: 32px; }
.sidebar-collapse:hover { background: #fff; color: var(--blue); }
.sidebar-collapse i { font-size: 14px; font-weight: 900; -webkit-text-stroke: .6px currentColor; }
.workspace-label { color: #a1aabe; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; margin: 40px 10px 12px; }
.side-nav { display: grid; gap: 5px; }
.side-nav a, .side-signout { align-items: center; border-radius: 10px; color: #66748c; display: flex; font-weight: 600; gap: 13px; min-height: 44px; padding: 0 12px; transition: background .18s, color .18s; }
.side-nav a i, .side-signout i { font-size: 17px; width: 19px; }
.side-nav a:hover, .side-signout:hover { background: #f5f7fc; color: var(--ink); }
.side-nav a.active { background: var(--blue-soft); color: var(--blue); }
.sidebar-bottom { margin-top: auto; }
.secure-note { align-items: center; background: #f6f8fc; border-radius: 10px; color: #8090a7; display: flex; font-size: 11px; gap: 9px; margin: 0 2px 14px; padding: 11px 9px; }
.secure-note i { color: var(--teal); font-size: 16px; }
.side-signout { border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; }
.main-content { margin-left: 252px; max-width: 1800px; min-height: 100vh; padding: 0 38px 44px; }
.sidebar-collapsed .sidebar { padding-left: 12px; padding-right: 12px; width: 76px; }
.sidebar-collapsed .main-content { margin-left: 76px; }
.sidebar-collapsed .sidebar-brand-row { flex-direction: column; gap: 18px; margin-bottom: 12px; }
.sidebar-collapsed .brand { padding: 0; }
.sidebar-collapsed .brand > span, .sidebar-collapsed .workspace-label, .sidebar-collapsed .side-nav a > span, .sidebar-collapsed .secure-note > span, .sidebar-collapsed .side-signout > span { display: none; }
.sidebar-collapsed .side-nav a, .sidebar-collapsed .side-signout { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-collapsed .side-nav a i, .sidebar-collapsed .side-signout i { width: auto; }
.sidebar-collapsed .secure-note { justify-content: center; margin-left: 0; margin-right: 0; padding: 11px 0; }
.sidebar-collapsed .side-nav a, .sidebar-collapsed .side-signout { position: relative; }
.sidebar-collapsed .side-nav a::after, .sidebar-collapsed .side-signout::after { background: var(--ink); border-radius: 7px; color: #fff; content: attr(data-tooltip); font-size: 11px; font-weight: 600; left: calc(100% + 10px); opacity: 0; padding: 7px 10px; pointer-events: none; position: absolute; top: 50%; transform: translate(-4px, -50%); transition: opacity .14s ease, transform .14s ease; white-space: nowrap; z-index: 50; }
.sidebar-collapsed .side-nav a:hover::after, .sidebar-collapsed .side-nav a:focus-visible::after, .sidebar-collapsed .side-signout:hover::after, .sidebar-collapsed .side-signout:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.sidebar-collapse i { transition: transform .2s ease; }
.sidebar-collapsed .sidebar-collapse i { transform: rotate(180deg); }
.topbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 90px; }
.breadcrumbs { align-items: center; color: #91a0b6; display: flex; font-size: 11px; gap: 9px; margin-bottom: 2px; }
.breadcrumbs i { font-size: 9px; }
.topbar h1 { font: 700 20px 'Manrope', sans-serif; letter-spacing: -.4px; margin: 0; }
.topbar-account { align-items: center; display: flex; gap: 11px; }
.country-pill { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; color: #586780; display: flex; font-size: 12px; gap: 7px; margin-right: 12px; padding: 8px 12px; }
.country-pill i { color: var(--blue); }
.country-switcher { margin-right: 12px; }
.country-switcher-trigger { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; color: #586780; cursor: pointer; display: flex; font: 600 12px 'DM Sans', sans-serif; gap: 8px; max-width: 210px; padding: 8px 13px; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.country-switcher-trigger:hover, .country-switcher-trigger[aria-expanded="true"] { background: #f7f9ff; border-color: #cbd5f4; box-shadow: 0 4px 12px rgba(48,71,125,.08); }
.country-switcher-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.country-switcher-trigger > i { color: var(--blue); flex: 0 0 auto; }
.country-switcher-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-picker-dialog { background: #fff; border: 1px solid rgba(226,232,242,.9); border-radius: 20px; box-shadow: 0 28px 90px rgba(25,38,66,.28); color: var(--ink); margin: auto; max-height: min(86vh, 680px); max-width: min(470px, calc(100vw - 28px)); overflow: hidden; padding: 0; width: 100%; }
.country-picker-dialog::backdrop { backdrop-filter: blur(4px); background: rgba(18,29,49,.46); }
.country-picker-heading { align-items: flex-start; background: linear-gradient(135deg, #f1f5ff 0%, #f8f5ff 100%); border-bottom: 1px solid #edf0f7; display: flex; gap: 13px; padding: 22px 22px 18px; }
.country-picker-heading-icon { align-items: center; background: linear-gradient(145deg, #5578ed, #7656dc); border-radius: 13px; box-shadow: 0 7px 16px rgba(85,104,220,.22); color: #fff; display: flex; flex: 0 0 42px; height: 42px; justify-content: center; }
.country-picker-heading-icon i { font-size: 18px; }
.country-picker-heading > div { flex: 1; min-width: 0; padding-top: 1px; }
.country-picker-heading h2 { color: #273550; font: 700 16px 'Manrope', sans-serif; margin: 0 0 5px; }
.country-picker-heading p { color: #7d8ba1; font-size: 11px; line-height: 1.5; margin: 0; }
.country-picker-close { align-items: center; background: rgba(255,255,255,.82); border: 1px solid #e8ecf4; border-radius: 9px; color: #75839a; cursor: pointer; display: flex; flex: 0 0 32px; height: 32px; justify-content: center; }
.country-picker-close:hover { background: #fff; color: #293857; }
.country-picker-dialog form { margin: 0; }
.country-picker-list { display: grid; gap: 8px; max-height: min(48vh, 390px); overflow-y: auto; padding: 13px; }
.country-picker-option { align-items: center; background: #fff; border: 1px solid #e9edf4; border-radius: 13px; color: inherit; cursor: pointer; display: grid; gap: 11px; grid-template-columns: 39px minmax(0, 1fr) auto; padding: 11px 12px; text-align: left; transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; width: 100%; }
.country-picker-option:not(:disabled):hover, .country-picker-option:not(:disabled):focus-visible { background: #f8faff; border-color: #cdd8f6; box-shadow: 0 5px 14px rgba(52,76,138,.08); outline: none; transform: translateY(-1px); }
.country-picker-option.is-current { background: linear-gradient(120deg, #f3f6ff, #fbf8ff); border-color: #cbd4f5; cursor: default; }
.country-picker-option-icon { align-items: center; background: #edf2ff; border-radius: 11px; color: #5573dc; display: flex; height: 39px; justify-content: center; width: 39px; }
.country-picker-option.is-current .country-picker-option-icon { background: linear-gradient(145deg, #5578ed, #7656dc); color: #fff; }
.country-picker-option-copy { display: grid; gap: 4px; min-width: 0; }
.country-picker-option-copy strong { color: #2b3955; font: 700 12px 'Manrope', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-picker-option-copy small { color: #8995a8; font-size: 9px; letter-spacing: .4px; }
.country-picker-option-state { align-items: center; color: #6f7e96; display: flex; font-size: 9px; gap: 7px; white-space: nowrap; }
.country-picker-option-state i { color: #5573dc; font-size: 12px; }
.country-picker-option.is-current .country-picker-option-state { color: #5769ba; font-weight: 700; }
.country-picker-option.is-current .country-picker-option-state i { color: #6d63d8; }
.country-picker-footnote { align-items: center; border-top: 1px solid #edf0f5; color: #929eb1; display: flex; font-size: 9px; gap: 7px; margin: 0; padding: 12px 19px 14px; }
.country-picker-footnote i { color: #51a98a; font-size: 12px; }
.account-avatar { align-items: center; background: #e9edff; border-radius: 50%; color: var(--blue); display: flex; font-weight: 700; height: 36px; justify-content: center; width: 36px; }
.account-summary { display: grid; line-height: 1.3; }
.account-summary strong { font-size: 12px; }
.account-summary span { color: var(--muted); font-size: 10px; }
.account-menu { position: relative; }
.account-menu-trigger { align-items: center; background: transparent; border: 0; border-radius: 10px; color: inherit; display: flex; gap: 10px; padding: 5px 7px; text-align: left; }
.account-menu-trigger:hover, .account-menu-trigger[aria-expanded="true"] { background: #fff; }
.account-menu-chevron { color: #8a97ab; font-size: 10px; margin-left: 2px; }
.account-menu-panel { background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 12px 30px rgba(32,54,95,.13); min-width: 190px; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; }
.account-menu-panel[hidden] { display: none; }
.account-menu-panel a { align-items: center; border-radius: 7px; color: #52617a; display: flex; font-size: 12px; gap: 10px; min-height: 38px; padding: 0 10px; }
.account-menu-panel a:hover, .account-menu-panel a:focus-visible { background: var(--blue-soft); color: var(--blue); outline: none; }
.account-menu-panel i { font-size: 15px; }
.account-menu-panel .account-menu-signout { border-top: 1px solid var(--line); color: #c34f57; margin-top: 5px; padding-top: 5px; }
.account-menu-panel .account-menu-signout:hover, .account-menu-panel .account-menu-signout:focus-visible { background: #fff0ef; color: #b9434b; }
.account-mail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.signature-dialog { max-width: min(520px, calc(100vw - 32px)); }
.signature-dialog .form-stack > button { justify-self: start; }
.signature-image-current { align-items: center; color: #64728a; display: flex; flex-wrap: wrap; font-size: 11px; gap: 12px; justify-content: space-between; }
.signature-image-current .checkbox-label { align-items: center; display: flex; gap: 6px; }
.page-intro { align-items: center; color: #7d8ba1; display: flex; font-size: 12px; justify-content: space-between; margin: 19px 0 20px; }
.page-intro p { margin: 0; }
.page-intro time { color: #8a97aa; font-size: 11px; }
.mobile-menu { display: none; }

.welcome-card { align-items: center; background: linear-gradient(115deg, #315bdc, #5579f7 65%, #7795ff); border-radius: var(--radius); box-shadow: 0 13px 30px rgba(67, 102, 222, .18); color: #fff; display: flex; justify-content: space-between; margin-bottom: 20px; min-height: 145px; overflow: hidden; padding: 26px 30px; position: relative; }
.welcome-card:after { border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ''; height: 220px; position: absolute; right: 12%; top: -110px; width: 220px; }
.welcome-card > div:first-child, .welcome-card > a { position: relative; z-index: 1; }
.welcome-card .eyebrow { color: rgba(255,255,255,.73); }
.welcome-card h2 { font: 700 24px 'Manrope', sans-serif; letter-spacing: -.8px; margin: 6px 0; }
.welcome-card p { color: rgba(255,255,255,.8); margin: 0; }
.welcome-icon { align-items: center; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); border-radius: 24px; display: flex; font-size: 38px; height: 84px; justify-content: center; margin-right: 10%; transform: rotate(7deg); width: 84px; }
.wave { color: #f7cb75; font-size: 18px; vertical-align: 3px; }
.eyebrow { color: #7585a1; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.stats-grid { display: grid; gap: 15px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid #eef1f6; border-radius: 14px; box-shadow: 0 4px 14px rgba(41,58,98,.025); display: grid; grid-template-columns: 42px 1fr; min-height: 130px; padding: 17px; }
.stat-icon { align-items: center; border-radius: 11px; display: flex; font-size: 18px; grid-row: span 2; height: 39px; justify-content: center; width: 39px; }
.stat-icon.blue { background: #eef2ff; color: #5578ed; }
.stat-icon.green { background: #e6f8f2; color: #1aa584; }
.stat-icon.amber { background: #fff5e3; color: #d79b29; }
.stat-icon.violet { background: #f2edff; color: #8969de; }
.stat-label { align-self: center; color: #75839b; font-size: 11px; padding-left: 10px; }
.stat-card > strong { align-self: end; font: 700 25px 'Manrope', sans-serif; grid-column: 2; letter-spacing: -.7px; padding-left: 10px; }
.stat-card > strong.payroll-total-amount { font-size: clamp(13px, 1.15vw, 19px); letter-spacing: -.35px; overflow-wrap: anywhere; }
.stat-card > small { color: #95a0b3; font-size: 10px; grid-column: 2; padding-left: 10px; }
.stat-suffix { color: #a0abc0; font: 500 13px 'DM Sans',sans-serif; }
.employee-attendance-charts { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.employee-attendance-chart { margin-bottom: 18px; min-width: 0; }
.employee-attendance-chart .card-heading { align-items: center; }
.employee-attendance-chart .card-heading > .stat-icon { flex: 0 0 39px; }
.attendance-line-chart { height: 248px; width: 100%; }
.attendance-line-chart svg { height: 100%; overflow: visible; width: 100%; }
.attendance-line-grid { stroke: #e9edf5; stroke-dasharray: 4 5; stroke-width: 1; }
.attendance-line-axis, .attendance-line-month { fill: #8a97ab; font-family: 'DM Sans', sans-serif; font-size: 10px; }
.attendance-line-path { fill: none; stroke: #426cf5; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.attendance-line-point { fill: #fff; stroke: #426cf5; stroke-width: 3; }
.sales-overview-summary { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.sales-overview-summary article { background: #fafbfd; border: 1px solid #edf1f7; border-radius: 11px; display: grid; gap: 6px; min-width: 0; padding: 12px; }
.sales-overview-summary span { color: #8a97ab; font-size: 10px; }
.sales-overview-summary strong { color: #273550; font: 700 14px 'Manrope', sans-serif; overflow-wrap: anywhere; }
.sales-overview-legend { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 8px; }
.sales-overview-legend-toggle { align-items: center; background: transparent; border: 0; border-radius: 5px; color: #64728a; cursor: pointer; display: inline-flex; font: inherit; font-size: 10px; gap: 6px; padding: 3px 4px; }
.sales-overview-legend-toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.sales-overview-legend-toggle[aria-pressed="false"] { opacity: .48; text-decoration: line-through; }
.sales-overview-swatch { border-radius: 50%; height: 8px; width: 8px; }
.sales-overview-swatch.before-tax { background: linear-gradient(90deg, #2563eb, #4f46e5); }
.sales-overview-swatch.after-tax { background: linear-gradient(90deg, #0d9488, #14b8a6); }
.sales-overview-swatch.profit { background: linear-gradient(90deg, #f97316, #fb7185); }
.sales-overview-swatch.quantity { background: linear-gradient(90deg, #db2777, #ec4899); }
.sales-overview-chart { isolation: isolate; margin-inline: auto; max-width: 900px; overflow: visible; position: relative; width: 78%; }
.sales-overview-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; transition: stroke-width .14s ease, filter .14s ease; }
.sales-overview-line.before-tax { filter: drop-shadow(0 2px 3px rgba(37,99,235,.22)); stroke: url(#sales-before-tax-gradient); }
.sales-overview-line.after-tax { filter: drop-shadow(0 2px 3px rgba(13,148,136,.2)); stroke: url(#sales-after-tax-gradient); }
.sales-overview-line.profit { filter: drop-shadow(0 2px 3px rgba(249,115,22,.2)); stroke: url(#sales-profit-gradient); }
.sales-overview-line.quantity { filter: drop-shadow(0 2px 3px rgba(219,39,119,.2)); stroke: url(#sales-quantity-gradient); stroke-dasharray: 6 4; }
.sales-overview-line.is-filtered, .sales-overview-marker.is-filtered { display: none; }
.sales-overview-line.is-active { stroke-width: 3.2; }
.sales-overview-marker { cursor: pointer; outline: none; }
.sales-overview-marker-target { fill: transparent; pointer-events: all; }
.sales-overview-marker:focus-visible .sales-overview-point { stroke-width: 4; }
.sales-overview-point-halo { opacity: .16; transform-box: fill-box; transform-origin: center; transition: opacity .12s ease, transform .12s ease; }
.sales-overview-marker.is-active .sales-overview-point-halo { opacity: .36; transform: scale(1.4); }
.sales-overview-marker.before-tax .sales-overview-point-halo { fill: #2563eb; }
.sales-overview-marker.after-tax .sales-overview-point-halo { fill: #0d9488; }
.sales-overview-marker.profit .sales-overview-point-halo { fill: #f97316; }
.sales-overview-marker.quantity .sales-overview-point-halo { fill: #db2777; }
.sales-overview-point { fill: #fff; stroke-width: 2.5; transition: stroke-width .12s ease; }
.sales-overview-marker.is-active .sales-overview-point { stroke-width: 4; }
.sales-overview-marker.before-tax .sales-overview-point { stroke: #4f46e5; }
.sales-overview-marker.after-tax .sales-overview-point { stroke: #14b8a6; }
.sales-overview-marker.profit .sales-overview-point { stroke: #fb7185; }
.sales-overview-marker.quantity .sales-overview-point { stroke: #ec4899; }
.sales-report-page { display: grid; gap: 18px; }
.sales-report-filters { background: linear-gradient(110deg, #f1f5ff, #f3fbfa); border: 1px solid #e7edf8; border-radius: 12px; display: grid; gap: 8px; margin-top: 16px; padding: 11px 12px; width: 100%; }
.sales-report-filter-fields { align-items: end; display: grid; gap: 9px 11px; grid-template-columns: minmax(110px, .85fr) minmax(125px, 1fr) minmax(80px, .65fr) minmax(150px, 1.2fr) max-content; grid-template-rows: auto; min-width: 0; overflow-x: auto; width: 100%; }
.sales-report-filter-fields.has-country-filter { grid-template-columns: minmax(95px, .8fr) minmax(105px, .8fr) minmax(120px, 1fr) minmax(75px, .65fr) minmax(145px, 1.2fr) max-content; }
.sales-report-filter-fields > input[type="hidden"] { display: none; }
.sales-report-filters [hidden] { display: none !important; }
.sales-report-filters label { color: #586780; display: grid; font-size: 10px; font-weight: 700; gap: 4px; min-width: 0; }
.sales-report-filters select, .sales-report-filters input { background: #fff; border: 1px solid #dfe6f1; border-radius: 8px; color: var(--ink); font-size: 11px; min-height: 33px; min-width: 0; padding: 5px 8px; transition: border-color .15s, box-shadow .15s; width: 100%; }
.sales-report-filters select:focus, .sales-report-filters input:focus { border-color: #7d96f7; box-shadow: 0 0 0 3px rgba(66,108,245,.1); outline: none; }
.sales-report-filters select:disabled, .sales-report-filters input:disabled { background: #e8ebf1; border-color: #cbd2de; color: #858fa1; cursor: not-allowed; opacity: 1; }
.sales-report-filters label small { color: #8a97ab; font-size: 9px; font-weight: 500; }
.sales-filter-country, .sales-filter-period, .sales-filter-month, .sales-filter-year, .sales-filter-person { min-width: 0; }
.sales-filter-period { grid-column: 1; }
.sales-filter-month { grid-column: 2; }
.sales-filter-year { grid-column: 3; }
.sales-filter-person { grid-column: 4; }
.sales-report-filter-fields > .button { grid-column: 5; }
.sales-filter-year input { max-width: 90px; }
.has-country-filter .sales-filter-country { grid-column: 1; }
.has-country-filter .sales-filter-period { grid-column: 2; }
.has-country-filter .sales-filter-month { grid-column: 3; }
.has-country-filter .sales-filter-year { grid-column: 4; }
.has-country-filter .sales-filter-person { grid-column: 5; }
.has-country-filter > .button { grid-column: 6; }
.sales-report-filter-fields > .button { justify-self: start; margin: 0; min-height: 33px; padding: 6px 10px; }
.sales-report-card > .card-heading { background: linear-gradient(110deg, #f3f6ff, #f2fbf9); border: 1px solid #e9eef8; border-radius: 12px; margin-bottom: 16px; padding: 14px; }
.sales-entry-dialog { max-width: min(680px, calc(100vw - 32px)); }
.sales-entry-selector { margin-bottom: 16px; }
.sales-report-card { min-width: 0; }
.sales-report-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; }
.sales-report-view-toggle { background: #f3f5fa; border: 1px solid #e8edf4; border-radius: 9px; display: inline-flex; gap: 3px; padding: 3px; }
.sales-report-view-toggle button { background: transparent; border: 0; border-radius: 6px; color: #718098; font-size: 11px; font-weight: 600; padding: 7px 10px; }
.sales-report-view-toggle button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(32,54,95,.12); color: var(--blue); }
.sales-report-view-toggle button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sales-report-summary { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.sales-report-summary article { background: linear-gradient(145deg, #fff, #f8faff); border: 1px solid #edf1f7; border-radius: 11px; border-top: 3px solid #426cf5; display: grid; gap: 6px; min-width: 0; padding: 10px 12px; }
.sales-report-summary article:nth-child(2) { border-top-color: #0d9488; }
.sales-report-summary article:nth-child(3) { border-top-color: #f97316; }
.sales-report-summary article:nth-child(4) { border-top-color: #db2777; }
.sales-report-summary span { color: #8a97ab; font-size: 10px; }
.sales-report-summary strong { color: #273550; font: 700 14px 'Manrope', sans-serif; overflow-wrap: anywhere; }
.sales-report-pies { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 18px; }
.sales-report-pie { background: linear-gradient(145deg, #fff, #f8faff); border: 1px solid #e9edf6; border-radius: 12px; min-width: 0; padding: 14px; }
.sales-report-pie:first-child { border-top: 3px solid #0d9488; }
.sales-report-pie:last-child { border-top: 3px solid #db2777; }
.sales-report-pie-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 10px; }
.sales-report-pie-heading h3, .sales-report-pie > h3 { color: var(--ink); font: 700 12px 'Manrope', sans-serif; margin: 0 0 3px; }
.sales-report-pie-heading span { color: var(--muted); font-size: 10px; }
.sales-pie-content { align-items: center; display: grid; gap: 14px; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); }
.sales-pie { aspect-ratio: 1; border: 1px solid rgba(23,35,60,.06); border-radius: 50%; justify-self: center; max-height: 170px; max-width: 170px; width: 100%; }
.sales-pie-legend { display: grid; gap: 8px; max-height: 190px; overflow-y: auto; padding-right: 4px; }
.sales-pie-legend-item { align-items: center; color: #64728a; display: grid; font-size: 10px; gap: 3px 7px; grid-template-columns: 9px minmax(0, 1fr) auto; }
.sales-pie-swatch { border-radius: 3px; height: 8px; width: 8px; }
.sales-pie-person { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sales-pie-legend-item strong { color: var(--ink); font-size: 10px; }
.sales-pie-legend-item small { color: var(--muted); font-size: 9px; grid-column: 2 / -1; }
.sales-pie-empty { color: var(--muted); font-size: 11px; margin: 12px 0 5px; }
.sales-report-panel[hidden] { display: none; }
.sales-report-panel .table-wrap { margin-top: 10px; }
.sales-report-panel table { min-width: 880px; }
.sales-rank-badge { align-items: center; background: #edf2ff; border-radius: 50%; color: #3158d6; display: inline-flex; font-size: 11px; font-weight: 700; height: 28px; justify-content: center; width: 28px; }
.sales-change-badge { border-radius: 20px; display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 8px; white-space: nowrap; }
.sales-change-badge.positive { background: #e7f8f1; color: #14825f; }
.sales-change-badge.negative { background: #fff0ef; color: #c3484f; }
.sales-change-badge.neutral { background: #f0f3f8; color: #77849a; }
.sales-report-chart-heading { color: var(--ink); display: flex; justify-content: space-between; margin: 15px 0 4px; }
.sales-report-chart-heading div { display: grid; gap: 2px; }
.sales-report-chart-heading span { color: var(--muted); font-size: 11px; }
.sales-report-chart { height: 340px; margin: 0 auto; max-width: 980px; width: 100%; }
.sales-report-chart svg { height: 100%; overflow: visible; width: 100%; }
.sales-report-line { stroke: #426cf5; stroke-width: 2.5; }
.sales-report-point { cursor: help; stroke: #426cf5; }
.sales-combine-metric-form { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.sales-combine-metric-form select { background: #f3f6ff; border: 1px solid #dfe6f1; border-radius: 8px; color: var(--ink); font-size: 11px; min-height: 32px; padding: 5px 9px; }
.sales-report-card [aria-label="Filter sales report graph lines"] { max-height: 130px; overflow: auto; }
.sales-overview-tooltip { background: rgba(20,29,48,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 12px 30px rgba(20,29,48,.2); color: #fff; left: 50%; max-width: min(270px, calc(100% - 16px)); padding: 11px 13px; pointer-events: none; position: absolute; top: 5px; transform: translateX(-50%); width: max-content; z-index: 2; }
.sales-overview-tooltip[hidden] { display: none; }
.sales-overview-tooltip-heading { color: rgba(255,255,255,.7); display: block; font-size: 9px; margin-bottom: 3px; }
.sales-overview-tooltip-value { color: #fff; display: block; font: 700 12px 'Manrope', sans-serif; white-space: nowrap; }
.sales-overview-zero { stroke: #c5cedd; stroke-dasharray: 3 4; stroke-width: 1.5; }
.performance-period-form { flex: 0 0 135px; margin: 0; }
.performance-period-select { color: #75839b; display: grid; font-size: 9px; font-weight: 600; gap: 4px; }
.performance-period-select select { min-height: 34px; padding: 6px 9px; }
.top-sales-performance-list { display: grid; gap: 13px; }
.top-sales-live-status { color: #14947f; display: block; font-size: 8px; margin-top: 3px; }
.top-sales-performer { display: grid; gap: 6px; }
.top-sales-performer-heading { align-items: center; display: grid; gap: 9px; grid-template-columns: 31px minmax(0, 1fr) auto; }
.top-sales-rank { align-items: center; background: linear-gradient(145deg, #eef2ff, #f3edff); border-radius: 9px; color: #6474db; display: flex; font: 700 10px 'Manrope', sans-serif; height: 29px; justify-content: center; }
.top-sales-person { display: grid; gap: 3px; min-width: 0; }
.top-sales-person strong { color: #273550; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-sales-person small, .top-sales-amount small, .top-sales-profit { color: #929eb1; font-size: 9px; }
.top-sales-amount { display: grid; gap: 2px; justify-items: end; }
.top-sales-amount strong { color: #293857; font: 700 11px 'Manrope', sans-serif; }
.top-sales-meter { background: #edf0f7; border-radius: 10px; height: 5px; overflow: hidden; }
.top-sales-meter span { background: linear-gradient(90deg, #6366f1, #06b6d4 58%, #10b981); border-radius: inherit; display: block; height: 100%; }
.top-sales-profit { justify-self: end; }
.floating-quick-actions { bottom: 24px; position: fixed; right: 26px; z-index: 40; }
.floating-quick-trigger { align-items: center; background: linear-gradient(145deg, #5578ed, #7656dc); border: 0; border-radius: 50%; box-shadow: 0 10px 24px rgba(67,91,204,.32); color: #fff; cursor: pointer; display: flex; height: 58px; justify-content: center; padding: 0; transition: box-shadow .18s, transform .18s; width: 58px; }
.floating-quick-trigger:hover { box-shadow: 0 13px 28px rgba(67,91,204,.4); transform: translateY(-2px); }
.floating-quick-trigger:focus-visible { outline: 3px solid rgba(85,120,237,.35); outline-offset: 3px; }
.floating-quick-trigger i { font-size: 22px; transition: transform .18s; }
.floating-quick-trigger[aria-expanded="true"] i { transform: rotate(45deg); }
.floating-quick-menu { background: #fff; border: 1px solid #e8ecf4; border-radius: 15px; bottom: 72px; box-shadow: 0 16px 38px rgba(31,45,79,.18); display: grid; gap: 4px; padding: 8px; position: absolute; right: 0; width: 228px; }
.floating-quick-menu[hidden] { display: none; }
.floating-quick-menu a { align-items: center; border-radius: 10px; color: #394862; display: flex; font-size: 11px; font-weight: 600; gap: 11px; min-height: 42px; padding: 0 11px; transition: background .15s, color .15s, transform .15s; }
.floating-quick-menu a:hover, .floating-quick-menu a:focus-visible { background: #f2f5ff; color: #4a67d1; outline: none; transform: translateX(2px); }
.floating-quick-menu a i { align-items: center; background: #eef2ff; border-radius: 8px; color: #5b73dc; display: inline-flex; height: 28px; justify-content: center; width: 28px; }
.attendance-month-select { color: #64728a; display: grid; font-size: 11px; font-weight: 600; gap: 5px; margin: -4px 0 16px; max-width: 220px; }
.attendance-month-select select { min-height: 36px; }
.attendance-pie-content { align-items: center; display: grid; gap: 18px; grid-template-columns: minmax(120px, 1fr) minmax(130px, 1fr); min-height: 180px; }
.attendance-pie { aspect-ratio: 1; border: 1px solid rgba(23,35,60,.06); border-radius: 50%; justify-self: center; max-height: 180px; max-width: 180px; width: 100%; }
.attendance-pie-legend { display: grid; gap: 9px; }
.attendance-pie-legend-item { align-items: center; color: #64728a; display: grid; font-size: 10px; gap: 7px; grid-template-columns: 9px minmax(0, 1fr) auto; }
.attendance-pie-legend-item strong { color: var(--ink); font-size: 10px; }
.attendance-pie-legend-item.is-empty { color: #a4afbf; }
.attendance-pie-swatch { border-radius: 3px; height: 8px; width: 8px; }
.attendance-pie-empty { color: #8a97ab; font-size: 11px; margin: 0; text-align: center; }
.two-column { align-items: start; display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.content-card { background: var(--paper); border: 1px solid #edf0f5; border-radius: var(--radius); box-shadow: 0 6px 22px rgba(40,56,95,.025); margin-bottom: 18px; min-width: 0; padding: 21px; }
.two-column > .content-card { margin-bottom: 0; }
.card-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 18px; }
.card-heading h2 { font: 700 15px 'Manrope', sans-serif; letter-spacing: -.2px; margin: 0 0 4px; }
.card-heading h3 { font: 700 13px 'Manrope', sans-serif; margin: 0 0 3px; }
.card-heading p { color: #8a97ab; font-size: 11px; margin: 0; }
.compact-heading { margin-top: 18px; }
.text-link { color: var(--blue); font-size: 11px; font-weight: 700; white-space: nowrap; }
.text-link i { margin-left: 4px; }
.quick-grid { display: grid; gap: 11px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-grid a { background: #fafbfd; border: 1px solid #edf1f7; border-radius: 12px; display: grid; gap: 4px; padding: 14px; transition: border-color .2s, transform .2s; }
.quick-grid a:hover { border-color: #bac8ff; transform: translateY(-2px); }
.quick-grid a > i { color: var(--blue); font-size: 18px; margin-bottom: 5px; }
.quick-grid b { font-size: 12px; }
.quick-grid span { color: #8895aa; font-size: 10px; }
.quick-grid.compact { gap: 8px; }
.quick-grid.compact a { padding: 11px; }
.quick-grid.compact a > i { font-size: 15px; margin-bottom: 2px; }
.activity-list { display: grid; }
.activity-item { align-items: center; border-bottom: 1px solid #f0f2f6; display: flex; gap: 10px; min-height: 57px; }
.activity-item:last-child { border: 0; }
.activity-item > div { display: grid; flex: 1; line-height: 1.3; }
.activity-item b, .rank-person b { font-size: 11px; }
.activity-item small, .rank-person small { color: #97a2b3; font-size: 10px; }
.activity-avatar { align-items: center; background: #eef2ff; border-radius: 50%; color: #5271db; display: inline-flex; flex: 0 0 31px; font-size: 11px; font-weight: 700; height: 31px; justify-content: center; width: 31px; }

.button { align-items: center; border: 1px solid transparent; border-radius: 9px; display: inline-flex; font-size: 12px; font-weight: 700; gap: 8px; justify-content: center; margin: 0 5px 5px; min-height: 40px; padding: 0 15px; transition: background .17s, transform .17s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: #fff; border-color: #e1e7f0; color: #465672; }
.button.secondary:hover { border-color: #aab8f5; color: var(--blue); }
.button.tertiary { background: #f2f5fc; color: #53637f; }
.button.small-button { font-size: 10px; min-height: 31px; padding: 0 10px; }
.button.full { margin-inline: 0; width: 100%; }
.button-light { background: #fff; color: var(--blue); }
.button-glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }

.form-stack, .form-grid { display: grid; gap: 14px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.create-admin-form > button { justify-self: start; margin: 0; min-height: 34px; padding-inline: 12px; }
.form-grid label, .form-stack label, .inline-form label, .compact-form label, .import-controls label { color: #55647d; display: grid; font-size: 11px; font-weight: 600; gap: 6px; min-width: 0; }
.form-grid label small, .form-stack label small { color: #9aa5b7; font-size: 10px; font-weight: 400; }
input:not([type=checkbox]), select, textarea { background: #fff; border: 1px solid #dfe5ef; border-radius: 8px; color: var(--ink); min-height: 40px; outline: none; padding: 9px 11px; transition: border-color .15s, box-shadow .15s; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: #879df3; box-shadow: 0 0 0 3px rgba(66,108,245,.1); }
textarea { resize: vertical; }
input[type=file] { min-height: auto; padding: 8px; }
input[type=checkbox] { accent-color: var(--blue); }
.span-2 { grid-column: span 2; }
.employee-dialog { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 80px rgba(23,35,60,.24); color: var(--ink); max-height: min(90vh, 820px); max-width: min(760px, calc(100vw - 32px)); overflow-y: auto; padding: 22px; width: 100%; }
.country-admin-dialog { max-width: min(620px, calc(100vw - 32px)); }
.employee-dialog::backdrop { background: rgba(18,29,49,.52); backdrop-filter: blur(2px); }
.attendance-import-dialog { max-width: min(900px, calc(100vw - 32px)); }
.attendance-import-dialog > form:last-child { display: flex; justify-content: flex-end; margin-top: 12px; }
.attendance-import-review-form { display: grid; gap: 12px; }
.attendance-import-person { background: #f8faff; border: 1px solid var(--line); border-radius: 11px; display: grid; gap: 12px; padding: 13px; }
.attendance-import-person-title { align-items: center; color: #64728a; display: flex; flex-wrap: wrap; font-size: 11px; gap: 7px; }
.attendance-import-person > label, .attendance-new-employee-fields label { color: #55647d; display: grid; font-size: 11px; font-weight: 600; gap: 6px; min-width: 0; }
.attendance-new-employee-fields { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.attendance-new-employee-fields[hidden] { display: none; }
.attendance-new-employee-fields label small { color: #9aa5b7; font-size: 10px; font-weight: 400; }
.attendance-import-review-actions { display: flex; justify-content: flex-end; }
.attendance-import-review-actions .button { margin: 0; }
.import-controls label small { color: #9aa5b7; font-size: 10px; font-weight: 400; }
.employee-dialog-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 18px; }
.employee-dialog-heading h2 { font: 700 16px 'Manrope', sans-serif; margin: 0 0 4px; }
.employee-dialog-heading p { color: #8a97ab; font-size: 11px; margin: 0; }
.employee-dialog-close { align-items: center; background: #f4f6fb; border: 0; border-radius: 8px; color: #69768a; display: flex; height: 34px; justify-content: center; width: 34px; }
.employee-dialog .form-grid { align-items: end; }
.employee-dialog .checkbox-label { align-self: center; }
.employee-dialog button[type=submit] { justify-self: start; }
.employee-profile-page { display: grid; gap: 16px; }
.employee-profile-hero { align-items: center; display: flex; gap: 18px; }
.employee-profile-photo { align-items: center; background: #eef2ff; border: 1px solid var(--line); border-radius: 14px; color: #8290a8; display: flex; flex: 0 0 96px; height: 112px; justify-content: center; overflow: hidden; width: 96px; }
.employee-profile-photo img { height: 100%; object-fit: cover; width: 100%; }
.employee-profile-photo > span { font-size: 34px; }
.employee-profile-heading { flex: 1; min-width: 0; }
.employee-profile-heading h2 { font: 700 20px 'Manrope', sans-serif; margin: 5px 0 3px; }
.employee-profile-heading p { color: #8290a8; font-size: 11px; margin: 0; }
.employee-profile-back { flex: 0 0 auto; }
.employee-profile-edit { flex: 0 0 auto; }
.employee-directory-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 5px; }
.employee-directory-actions form { margin: 0; }
.employee-directory-actions .button { margin: 0; }
.employee-profile-form { align-items: end; max-width: 800px; }
.employee-profile-details { display: grid; gap: 1px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.employee-profile-details > div { border-bottom: 1px solid #edf0f5; display: grid; gap: 4px; padding: 11px 2px; }
.employee-profile-details dt { color: #8a97ab; font-size: 10px; font-weight: 600; }
.employee-profile-details dd { color: #273550; font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.employee-photo-upload { align-items: end; display: flex; flex-wrap: wrap; gap: 12px; }
.employee-photo-upload label, .employee-document-upload label { color: #55647d; display: grid; font-size: 11px; font-weight: 600; gap: 6px; min-width: 0; }
.employee-photo-upload label { flex: 1 1 240px; max-width: 440px; }
.employee-document-upload { align-items: end; background: #f8faff; border: 1px solid var(--line); border-radius: 11px; display: grid; gap: 12px; grid-template-columns: minmax(180px, .7fr) minmax(240px, 1fr) auto; margin-bottom: 18px; padding: 13px; }
.employee-document-groups { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.employee-document-group { border: 1px solid var(--line); border-radius: 11px; min-width: 0; padding: 13px; }
.employee-document-group h3 { font: 700 12px 'Manrope', sans-serif; margin: 0 0 9px; }
.employee-document-list { display: grid; gap: 7px; }
.employee-document-item { align-items: center; background: #f8faff; border-radius: 8px; display: flex; gap: 9px; min-width: 0; padding: 9px; }
.employee-document-item .file-icon { flex: 0 0 32px; height: 32px; width: 32px; }
.employee-document-item > span:nth-child(2) { display: grid; min-width: 0; }
.employee-document-item b { font-size: 10px; overflow-wrap: anywhere; }
.employee-document-item small, .employee-document-empty { color: #8a97ab; font-size: 9px; }
.employee-document-item > i { color: var(--blue); margin-left: auto; }
.document-actions { align-items: center; display: inline-flex; flex: 0 0 auto; gap: 5px; margin-left: auto; }
.document-actions > i { color: var(--blue); }
.employee-document-empty { margin: 0; }
.shared-documents-card > .card-heading { align-items: center; }
.shared-documents-card > .card-heading .button { flex: 0 0 auto; margin: 0 5px 0 10px; }
.shared-document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shared-document-group { padding: 8px; }
.shared-document-item { min-height: 60px; }
.shared-document-item > span:nth-child(2) { flex: 1; }
.shared-document-item small { line-height: 1.5; overflow-wrap: anywhere; }
.shared-document-download { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 7px; color: var(--blue); display: inline-flex; flex: 0 0 31px; height: 31px; justify-content: center; }
.shared-document-delete { flex: 0 0 auto; margin: 0; }
.shared-document-delete .button { margin: 0; }
.file-name-fields { display: grid; gap: 10px; }
.file-upload-dialog { max-width: min(520px, calc(100vw - 32px)); }
.file-upload-dialog .form-stack > button { justify-self: start; }
.compact-form { align-items: end; display: grid; gap: 9px; grid-template-columns: 1.2fr 1fr auto; margin-bottom: 15px; }
.compact-form label { font-size: 10px; }
.country-catalog-form { align-items: end; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(150px, .5fr) auto; margin-bottom: 16px; }
.country-catalog-form label { color: #55647d; display: grid; font-size: 11px; font-weight: 600; gap: 6px; min-width: 0; }
.country-catalog-form button { justify-self: start; }
.payroll-catalog-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.payroll-catalog-actions form { margin: 0; }
.form-panel { background: #f8faff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 15px; padding: 12px; }
.inline-form { align-items: end; display: grid; gap: 9px; grid-template-columns: 1.2fr .55fr .6fr 1.3fr auto; }
.inline-form.assign-admin-form { grid-template-columns: minmax(0, 280px) max-content; justify-content: start; max-width: 100%; width: fit-content; }
.assign-admin-form button { margin: 0; white-space: nowrap; }
.country-admin-access-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.country-admin-access-actions form, .country-admin-access-actions .button { margin: 0; }
.admin-access-heading-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-access-heading-actions .button, .inactive-admins-dialog form { margin: 0; }
.inactive-admins-dialog .table-wrap { margin-top: 12px; }
.form-hint { color: #8b97ab; font-size: 10px; margin: 8px 0 0; }
.checkbox-label { align-items: center; display: flex !important; flex-direction: row; }
.checkbox-label input { margin: 0 3px 0 0; }

.table-wrap { overflow-x: auto; width: 100%; }
table { border-collapse: collapse; min-width: 580px; width: 100%; }
th { background: #f9fafc; color: #8a96aa; font-size: 9px; font-weight: 700; letter-spacing: .55px; text-align: left; text-transform: uppercase; }
th, td { border-bottom: 1px solid #edf0f5; padding: 11px 10px; vertical-align: middle; }
td { color: #55637c; font-size: 11px; }
td strong { color: #273550; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
.table-sub { color: #9aa5b7; display: block; font-size: 10px; margin-top: 3px; }
.table-person { align-items: center; display: flex; gap: 8px; min-width: 150px; }
.table-person > span:last-child { display: grid; }
.badge { border-radius: 30px; display: inline-flex; font-size: 9px; font-weight: 700; margin: 2px; padding: 5px 8px; white-space: nowrap; }
.badge.success { background: #e8f7f1; color: #169773; }
.badge.warning { background: #fff4dc; color: #ad7a19; }
.badge.danger { background: #fff0ef; color: #c34f57; }
.badge.neutral { background: #f1f3f7; color: #69768a; }

.empty-state { align-items: center; color: #99a4b7; display: flex; flex-direction: column; gap: 6px; justify-content: center; min-height: 150px; text-align: center; }
.empty-state i { color: #bdc7d9; font-size: 25px; }
.empty-state p { font-size: 11px; margin: 0; }
.empty-state.small { min-height: 75px; }
.alert { border: 1px solid transparent; border-radius: 10px; font-size: 12px; margin: 0 0 15px; padding: 11px 13px; }
.alert.success { background: #eaf8f1; border-color: #d6f1e4; color: #168361; }
.alert.error { background: #fff0f0; border-color: #f9dddd; color: #b94a51; }
.alert.warning { background: #fff7e8; border-color: #f8e9c8; color: #92701f; }
.alert.info { background: #eff5ff; border-color: #dce8ff; color: #45639d; }
.alert-toast { align-items: center; animation: toast-enter .24s ease-out; border-radius: 13px; box-shadow: 0 16px 46px rgba(32,54,95,.18); display: flex; gap: 11px; margin: 0; max-width: calc(100vw - 32px); min-height: 54px; padding: 12px 14px; position: fixed; right: 24px; top: 20px; width: min(440px, calc(100vw - 32px)); z-index: 100; }
.alert-toast > i { flex: 0 0 auto; font-size: 18px; }
.alert-toast > span { flex: 1; }
.alert-toast button { align-items: center; background: transparent; border: 0; border-radius: 7px; color: inherit; display: flex; flex: 0 0 30px; height: 30px; justify-content: center; opacity: .7; padding: 0; }
.alert-toast button:hover { background: rgba(23,35,60,.07); opacity: 1; }
.alert-toast.is-leaving { animation: toast-exit .2s ease-in forwards; }
.confirm-dialog { border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 80px rgba(23,35,60,.24); color: var(--ink); max-width: min(460px, calc(100vw - 32px)); padding: 25px; width: 100%; }
.confirm-dialog::backdrop { backdrop-filter: blur(3px); background: rgba(18,29,49,.52); }
.confirm-dialog-icon { align-items: center; background: #fff4e5; border-radius: 12px; color: #ce8d1b; display: flex; height: 44px; justify-content: center; margin-bottom: 15px; width: 44px; }
.confirm-dialog-icon i { font-size: 20px; }
.confirm-dialog h2 { font: 700 17px 'Manrope',sans-serif; margin: 0 0 8px; }
.confirm-dialog p { color: #6f7d93; font-size: 12px; line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
.confirm-dialog-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 22px; }
.confirm-dialog-actions .button { margin: 0; }
.confirm-dialog-actions .delete-button { background: #d84f55; }
@keyframes toast-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-exit { to { opacity: 0; transform: translateY(-8px); } }

.country-cards { display: grid; gap: 15px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.country-filter select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%238290a8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; }
.section-toolbar > div > .button { margin-bottom: 18px; }
.country-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 18px; }
.country-flag { align-items: center; background: #eef2ff; border-radius: 10px; color: var(--blue); display: flex; font-size: 11px; font-weight: 800; height: 38px; justify-content: center; width: 42px; }
.country-card h3 { font: 700 15px 'Manrope', sans-serif; margin: 13px 0 2px; }
.country-card p { color: #8996aa; font-size: 10px; margin: 0; }
.country-count { align-items: baseline; border-bottom: 1px solid var(--line); display: flex; gap: 7px; margin: 15px 0 11px; padding-bottom: 12px; }
.country-count strong { font: 700 23px 'Manrope', sans-serif; }
.country-count span { color: #8c98ab; font-size: 10px; }
.country-card > a { color: var(--blue); font-size: 11px; font-weight: 700; }
.admin-layout { grid-template-columns: 1fr; }
.inline-action { display: inline; }
.inline-action button { white-space: nowrap; }

.calendar-grid { display: grid; gap: 5px; grid-template-columns: repeat(7, minmax(0,1fr)); }
.calendar-weekdays { color: #97a2b3; font-size: 9px; font-weight: 700; margin-bottom: 6px; text-align: center; }
.calendar-weekdays span { padding: 4px 0; }
.calendar-day { align-items: flex-start; background: #fafbfd; border: 1px solid #f0f2f6; border-radius: 8px; color: #53617a; display: flex; flex-direction: column; min-height: 68px; padding: 8px; }
.calendar-day:hover { border-color: #aab9fb; }
.calendar-day.weekend:not(.has-attendance) { background: #f5f6f9; color: #78859a; }
.calendar-day.public-holiday:not(.has-attendance) { background: #fff6ed; border-color: #f4e3cf; color: #8d5d2f; }
.calendar-day .weekend-label { color: #8490a3; font-size: 8px; font-weight: 700; letter-spacing: .2px; text-transform: uppercase; }
.calendar-day .holiday-label { color: #9c6632; font-size: 8px; font-weight: 700; }
.calendar-day.selected { background: #edf2ff; border-color: #7793f8; color: var(--blue); }
.calendar-day.has-attendance { background: #f0faf6; }
.calendar-day small { color: #159777; font-size: 8px; line-height: 1.2; margin-top: 3px; }
.calendar-blank { min-height: 68px; }
.month-picker { display: flex; gap: 5px; }
.month-picker input { min-height: 31px; padding: 4px 7px; width: 150px; }
.divider { border-top: 1px solid var(--line); margin: 18px 0 0; }
.ranking-list { display: grid; }
.ranking-item { align-items: center; border-bottom: 1px solid #f0f2f6; display: flex; gap: 10px; min-height: 44px; }
.ranking-item:last-child { border: 0; }
.rank-number { align-items: center; background: #f4f6fb; border-radius: 50%; color: #8291a8; display: flex; font-size: 10px; height: 25px; justify-content: center; width: 25px; }
.rank-person { display: grid; flex: 1; line-height: 1.3; }
.ranking-item > strong { font-size: 10px; }
.ranking-item > a { color: #96a2b5; }
.ranking-columns { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.ranking-label { color: #8591a5; font-size: 9px; letter-spacing: .7px; margin: 0 0 6px; text-transform: uppercase; }
.approved-leave { background: #f5f2ff; border: 1px solid #e8e0ff; border-radius: 9px; color: #6b58a6; display: grid; font-size: 10px; gap: 5px; margin-top: 12px; padding: 10px; }
.approved-leave b { font-size: 10px; }
.approved-leave i { margin-right: 4px; }
.attendance-day-stats { margin-top: 14px; }
.attendance-day-stats > div { background: #f8faff; border: 1px solid #edf0f5; border-radius: 10px; display: grid; padding: 11px 13px; }
.attendance-absent-list { border: 1px solid var(--line); border-radius: 10px; margin-top: 12px; overflow: hidden; }
.attendance-absent-heading { align-items: center; background: #fff8f5; color: #744f45; display: flex; font-size: 11px; justify-content: space-between; padding: 10px 12px; }
.attendance-absent-heading span { background: #fbe4dd; border-radius: 20px; color: #a64b37; font-weight: 700; min-width: 24px; padding: 3px 7px; text-align: center; }
.attendance-absent-person { align-items: center; border-top: 1px solid #f0f2f6; display: flex; flex-wrap: wrap; font-size: 10px; gap: 5px 12px; justify-content: space-between; padding: 9px 12px; }
.attendance-absent-person span { color: #8290a8; font-size: 9px; }
.attendance-absent-empty { color: #8290a8; font-size: 10px; margin: 0; padding: 12px; }
.all-time-attendance-card { align-self: stretch; }
.all-time-attendance-feature { align-items: center; background: linear-gradient(120deg, #f5f7ff, #f0faf6); border: 1px solid #e8edf7; border-radius: 12px; display: flex; gap: 12px; padding: 15px; }
.all-time-attendance-icon { align-items: center; background: #fff; border-radius: 11px; color: #d6a52a; display: flex; height: 40px; justify-content: center; width: 40px; }
.all-time-attendance-person { display: grid; flex: 1; gap: 4px; min-width: 0; }
.all-time-attendance-person strong { color: #35425d; font-size: 12px; }
.all-time-attendance-person small { color: #8290a8; font-size: 10px; }
.all-time-attendance-score { color: #18866b; font: 700 23px 'Manrope',sans-serif; }
.all-time-attendance-person .all-time-attendance-detail { color: #66748b; font-size: 9px; line-height: 1.4; }
.all-time-lowest-list { display: grid; gap: 12px; }
.all-time-lowest-entry + .all-time-lowest-entry { border-top: 1px solid #edf0f5; padding-top: 12px; }
.attendance-layout { grid-template-columns: minmax(0,1fr); }
.attendance-calendar-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.attendance-calendar-actions .button { margin: 0 5px 5px; }
.attendance-calendar-actions .month-picker { margin-left: 6px; }
.sr-only { clip: rect(0,0,0,0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.attendance-download-form, .employee-attendance-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.attendance-download-form select { min-height: 31px; max-width: 180px; padding: 4px 7px; }
.attendance-download-form .button, .employee-attendance-actions .button { margin: 0 5px 5px; }
.attendance-upload-form { margin: 0; }
.attendance-punch-details { min-width: 105px; }
.attendance-punch-details > summary { color: var(--blue); cursor: pointer; font-size: 10px; font-weight: 700; }
.attendance-punch-list { background: #f8faff; border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 7px; margin-top: 8px; max-width: 420px; padding: 9px; }
.attendance-punch-item, .attendance-punch-item > span:first-child { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.attendance-punch-item > span:first-child { justify-content: flex-start; }
.attendance-punch-item > span:first-child > small { color: #8290a8; font-size: 9px; }
.attendance-punch-actions { align-items: center; display: flex; gap: 9px; }
.employee-profile-calendar-grid .calendar-day { min-height: 78px; }
.employee-profile-calendar-grid .calendar-day small { font-size: 9px; }
.employee-profile-calendar-grid .attendance-single-punch { color: #ad7a19; }
.holiday-management { margin-top: 18px; }
.holiday-groups { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.holiday-groups .employee-document-group { min-width: 0; }
.holiday-delete-form { margin: 0; }
.holiday-delete-form .button { margin: 0; }
.import-form { background: #f8faff; border: 1px dashed #cfd8ec; border-radius: 12px; margin: 16px 0; padding: 13px; }
.import-title { align-items: center; color: var(--blue); display: flex; gap: 10px; margin-bottom: 12px; }
.import-title > i { font-size: 21px; }
.import-title span { display: grid; line-height: 1.4; }
.import-title b { color: #36445f; font-size: 11px; }
.import-title small { color: #929eb1; font-size: 10px; }
.import-controls { display: grid; gap: 9px; grid-template-columns: 1.4fr .7fr .65fr .7fr; margin-bottom: 10px; }
.import-controls input:not([type=checkbox]), .import-controls select { font-size: 10px; min-height: 34px; padding: 6px; }
.edit-record { min-width: 60px; }
.edit-record summary { color: var(--blue); cursor: pointer; font-size: 10px; font-weight: 700; }
.edit-record form { background: #f8faff; border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 8px; margin-top: 7px; padding: 10px; width: 240px; }
.edit-record label { color: #596781; display: grid; font-size: 10px; gap: 4px; }
.edit-record input, .edit-record select { font-size: 10px; min-height: 32px; }
.payroll-manage-dialog { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 80px rgba(23,35,60,.24); color: var(--ink); max-height: min(88vh, 760px); max-width: min(860px, calc(100vw - 32px)); overflow-y: auto; padding: 22px; width: 100%; }
.payroll-manage-dialog::backdrop { background: rgba(18,29,49,.48); backdrop-filter: blur(2px); }
.payslip-preview-dialog { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 80px rgba(23,35,60,.24); color: var(--ink); height: min(92vh, 1100px); max-height: 92vh; max-width: min(1050px, calc(100vw - 32px)); overflow: hidden; padding: 16px; width: 100%; }
.payslip-preview-dialog::backdrop { background: rgba(18,29,49,.62); backdrop-filter: blur(2px); }
.payslip-preview-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 12px; }
.payslip-preview-heading h2 { font: 700 15px 'Manrope', sans-serif; margin: 0; }
.payslip-preview-close { align-items: center; background: #f4f6fb; border: 0; border-radius: 8px; color: #69768a; display: flex; height: 34px; justify-content: center; width: 34px; }
.payslip-preview-dialog iframe { background: #eef1f7; border: 1px solid var(--line); border-radius: 8px; height: calc(100% - 112px); width: 100%; }
.payslip-preview-dialog iframe[hidden] { display: none; }
.document-preview-unavailable { align-items: center; background: #f8faff; border: 1px solid var(--line); border-radius: 8px; color: #64728a; display: flex; font-size: 13px; justify-content: center; min-height: 220px; padding: 24px; text-align: center; }
.document-preview-unavailable[hidden] { display: none; }
.payslip-preview-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 12px; }
.payroll-dialog-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 20px; }
.payroll-dialog-heading h2 { font: 700 16px 'Manrope', sans-serif; margin: 0 0 4px; }
.payroll-dialog-heading p { color: #8a97ab; font-size: 11px; margin: 0; }
.payroll-dialog-close { align-items: center; background: #f4f6fb; border: 0; border-radius: 8px; color: #69768a; display: flex; height: 34px; justify-content: center; width: 34px; }
.payroll-dialog-close:hover { background: #e9edfa; color: var(--ink); }
.payroll-manage-dialog .compact-form { background: #f8faff; border: 1px solid var(--line); border-radius: 11px; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; margin: 12px 0 0; padding: 12px; }
.payroll-manage-dialog .payroll-component-form { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.payroll-manage-dialog .payroll-loan-form { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.payroll-item-list { background: #f8faff; border: 1px solid var(--line); border-radius: 11px; margin-top: 12px; overflow: hidden; }
.payroll-item-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto auto; padding: 11px 12px; }
.payroll-item-row:last-child { border-bottom: 0; }
.payroll-item-info { display: grid; gap: 3px; min-width: 0; }
.payroll-item-info strong { color: var(--ink); font-size: 11px; overflow-wrap: anywhere; }
.payroll-item-info small { color: #8a97ab; font-size: 10px; }
.payroll-item-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.payroll-item-actions form { margin: 0; }
.payroll-item-actions .button { margin: 0; }
.button.delete-button { background: #fff0ef; border-color: #f8d8d6; color: #c34f57; }
.button.delete-button:hover { background: #ffe4e2; border-color: #efb9b6; }
.payroll-manage-dialog .compact-form label { min-width: 0; }
.payroll-manage-dialog .compact-form button { align-self: end; white-space: nowrap; }
.payroll-manage-dialog .compact-form select, .payroll-manage-dialog .compact-form input { min-width: 0; }
.employee-stats { display: grid; gap: 10px; grid-template-columns: repeat(3,1fr); }
.employee-stats > div { background: #f8faff; border: 1px solid #edf0f5; border-radius: 10px; display: grid; padding: 13px; }
.employee-stats span { color: #8793a7; font-size: 10px; }
.employee-stats b { font: 700 20px 'Manrope',sans-serif; margin-top: 4px; }

.leave-list { display: grid; gap: 10px; }
.leave-item { align-items: center; background: #fbfcfe; border: 1px solid #eef1f6; border-radius: 11px; display: flex; gap: 11px; padding: 10px; }
.leave-date { align-items: center; background: #edf2ff; border-radius: 9px; color: var(--blue); display: flex; flex-direction: column; justify-content: center; min-width: 43px; padding: 5px; }
.leave-date b { font: 700 17px 'Manrope',sans-serif; line-height: 1.2; }
.leave-date span { font-size: 9px; text-transform: uppercase; }
.leave-details { display: grid; flex: 1; line-height: 1.45; }
.leave-details b { font-size: 11px; }
.leave-details span, .leave-details small { color: #8693a7; font-size: 10px; }
.leave-actions { align-items: flex-end; display: flex; flex-direction: column; gap: 5px; }
.leave-actions form { display: flex; gap: 5px; }
.icon-button { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; display: flex; height: 25px; justify-content: center; width: 26px; }
.icon-button.approve { color: #178f69; }
.icon-button.reject { color: #c35159; }

.run-list, .file-list { display: grid; }
.run-item, .file-item { align-items: center; border-bottom: 1px solid #eef1f6; display: flex; gap: 10px; min-height: 59px; padding: 8px 2px; }
.run-item:last-child, .file-item:last-child { border-bottom: 0; }
.run-icon, .file-icon { align-items: center; background: #eff3ff; border-radius: 9px; color: var(--blue); display: flex; font-size: 15px; height: 35px; justify-content: center; width: 35px; }
.run-item > span:nth-child(2), .file-item > span:nth-child(2) { display: grid; flex: 1; line-height: 1.35; }
.run-item b, .file-item b { font-size: 11px; }
.run-item small, .file-item small { color: #96a1b3; font-size: 9px; }
.run-item > i, .file-item > i { color: #9aa5b7; font-size: 12px; }
.file-size { color: #929eb0; font-size: 9px; }
.outlook-mark { align-items: center; background: #eff4ff; border-radius: 10px; color: #4672d9; display: flex; font-size: 20px; height: 38px; justify-content: center; width: 38px; }
.graph-connect { margin-bottom: 14px; }
.graph-connect .alert { font-size: 10px; margin-bottom: 9px; }
.graph-connect .button { margin-bottom: 4px; }
.smtp-manual-fields { display: grid; gap: 12px; grid-template-columns: 1.5fr .65fr 1fr; }
.smtp-manual-fields.is-readonly { opacity: .7; }
.smtp-manual-fields input[readonly], .smtp-manual-fields select:disabled { background: #f5f7fb; color: #78869c; }
.mail-note { font-size: 10px; margin: 14px 0 0; }
.settings-meta { align-items: center; border-top: 1px solid var(--line); color: #7d8aa0; display: flex; font-size: 10px; justify-content: space-between; margin-top: 14px; padding-top: 13px; }
.settings-meta span { align-items: center; display: flex; gap: 6px; }
.settings-meta b { color: #52617a; font-weight: 600; }
.settings-annual-leave { margin-top: 30px; }
.settings-country-list { display: grid; }
.settings-country-list a { align-items: center; border-top: 1px solid #f0f2f6; display: flex; gap: 12px; min-height: 67px; padding: 10px 2px; }
.settings-country-list a:first-child { border-top: 0; }
.settings-country-list a > span:nth-child(2) { display: grid; flex: 1; gap: 3px; }
.settings-country-list b { font-size: 12px; }
.settings-country-list small { color: #8a97ab; font-size: 10px; }
.settings-country-list a > i { color: var(--blue); }
.profile-meta { display: grid; gap: 12px; margin-top: 24px; }
.profile-meta > div { align-items: baseline; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-meta span { color: #8a97ab; font-size: 10px; }
.profile-meta b { color: #52617a; font-size: 11px; font-weight: 600; }
.profile-save { font-size: 12px !important; font-weight: 700; justify-self: start; line-height: 18.6px; }
.fit-content-button { justify-self: start; }
.account-settings-card { max-width: 760px; }
.payslip-password-actions { display: flex; gap: 10px; }
.payslip-password-actions .button { flex: 1 1 0; justify-content: center; min-width: 0; padding-inline: 8px; text-align: center; white-space: normal; }
.country-flag { align-items: center; background: var(--blue-soft); border-radius: 9px; color: var(--blue); display: flex; font-size: 10px; font-weight: 700; height: 36px; justify-content: center; width: 40px; }

.auth-page { align-items: center; background: radial-gradient(circle at 20% 15%, #e8eeff, transparent 34%), radial-gradient(circle at 90% 85%, #e7f6f3, transparent 30%), #f5f7fb; display: flex; justify-content: center; min-height: 100vh; padding: 28px 16px; }
.auth-wrap { margin-block: auto; width: min(100%, 450px); }
.auth-card { background: #fff; border: 1px solid rgba(224,230,240,.85); border-radius: 20px; box-shadow: 0 20px 70px rgba(40,58,101,.1); padding: 34px; }
.auth-brand { align-items: center; display: flex; font: 800 19px 'Manrope',sans-serif; gap: 10px; letter-spacing: -.7px; margin-bottom: 32px; }
.auth-brand img { border-radius: 10px; height: 38px; object-fit: contain; width: 38px; }
.auth-card h1 { font: 700 25px 'Manrope',sans-serif; letter-spacing: -.8px; margin: 7px 0 5px; }
.muted { color: #8d99ad; }
.auth-card > .muted { font-size: 12px; margin: 0 0 23px; }
.auth-card .form-stack { gap: 16px; }
.auth-card .form-stack label { color: #4c5c76; font-size: 11px; }
.auth-card .form-stack input { min-height: 44px; }
.auth-footnote { color: #919db0; font-size: 10px; margin: 19px 0 0; text-align: center; }
.auth-footnote a { color: var(--blue); font-weight: 700; }

@media (max-width: 1120px) {
    .main-content { padding: 0 24px 34px; }
    .sidebar { width: 220px; }
    .main-content { margin-left: 220px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .attendance-layout { grid-template-columns: 1fr; }
    .import-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 761px) and (max-width: 1120px) {
    .sidebar-collapsed .main-content { margin-left: 76px; }
}
@media (max-width: 760px) {
    .alert-toast { right: 12px; top: 12px; width: calc(100vw - 24px); }
    .sidebar { box-shadow: 12px 0 30px rgba(27,42,79,.12); transform: translateX(-105%); transition: transform .2s ease; width: 255px; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-collapse { display: none; }
    .sidebar-collapsed .sidebar { padding: 22px 18px 20px; width: 255px; }
    .sidebar-collapsed .sidebar-brand-row { flex-direction: row; gap: 0; }
    .sidebar-collapsed .brand { padding: 0 9px; }
    .sidebar-collapsed .brand > span, .sidebar-collapsed .workspace-label, .sidebar-collapsed .side-nav a > span, .sidebar-collapsed .secure-note > span, .sidebar-collapsed .side-signout > span { display: initial; }
    .sidebar-collapsed .side-nav a, .sidebar-collapsed .side-signout { justify-content: flex-start; padding-left: 12px; padding-right: 12px; }
    .sidebar-collapsed .side-nav a i, .sidebar-collapsed .side-signout i { width: 19px; }
    .sidebar-collapsed .secure-note { justify-content: flex-start; margin: 0 2px 14px; padding: 11px 9px; }
    .sidebar-collapsed .sidebar-collapse { display: none; }
    .sidebar-collapsed .main-content { margin-left: 0; }
    .main-content { margin-left: 0; padding: 0 16px 30px; }
    .mobile-menu { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); display: flex; font-size: 18px; height: 35px; justify-content: center; left: 15px; position: fixed; top: 17px; width: 36px; z-index: 30; }
    .topbar { min-height: 73px; padding-left: 46px; }
    .topbar h1 { font-size: 17px; }
    .country-pill { display: none; }
    .country-switcher { margin-right: 0; }
    .country-switcher-trigger { max-width: 145px; padding: 8px 10px; }
    .account-summary { display: none; }
    .page-intro { align-items: flex-start; flex-direction: column; gap: 4px; margin: 15px 0; }
    .welcome-card { min-height: 130px; padding: 22px; }
    .welcome-card h2 { font-size: 20px; }
    .welcome-icon { height: 58px; margin-right: 0; width: 58px; }
    .welcome-icon i { font-size: 28px; }
    .two-column, .admin-layout { grid-template-columns: 1fr; }
    .sales-overview-chart { width: 100%; }
    .sales-report-card > .card-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .sales-report-actions { width: 100%; }
    .sales-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sales-report-pies { grid-template-columns: 1fr; }
    .sales-pie-content { grid-template-columns: minmax(100px, .6fr) minmax(0, 1.4fr); }
    .sales-report-filters { gap: 6px; padding: 8px; }
    .sales-report-filter-fields { gap: 6px; grid-template-columns: minmax(90px, .8fr) minmax(110px, 1fr) minmax(75px, .65fr) minmax(130px, 1.2fr) max-content; }
    .sales-report-filter-fields.has-country-filter { grid-template-columns: minmax(80px, .8fr) minmax(90px, .8fr) minmax(100px, 1fr) minmax(70px, .65fr) minmax(120px, 1.2fr) max-content; }
    .sales-report-filters select, .sales-report-filters input { font-size: 10px; padding: 4px 6px; }
    .sales-report-filter-fields > .button { padding-left: 8px; padding-right: 8px; }
    .sales-report-filter-fields > .button { justify-content: center; }
    .sales-report-chart { height: 300px; }
    .smtp-manual-fields { grid-template-columns: 1fr; }
    .payroll-manage-dialog { padding: 16px; }
    .payroll-manage-dialog .compact-form { grid-template-columns: 1fr; }
    .payroll-item-row { align-items: start; grid-template-columns: minmax(0, 1fr) auto; }
    .payroll-item-row .badge { justify-self: end; }
    .payroll-item-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .payslip-preview-dialog { height: 94vh; max-height: 94vh; padding: 10px; }
    .payslip-preview-dialog iframe { height: calc(100% - 108px); }
    .country-catalog-form { grid-template-columns: 1fr; }
    .inline-form.assign-admin-form { grid-template-columns: minmax(0, 1fr) max-content; width: 100%; }
    .ranking-columns { grid-template-columns: 1fr; }
    .country-cards { grid-template-columns: 1fr; }
    .holiday-groups { grid-template-columns: 1fr; }
    .content-card { padding: 16px; }
    .top-sales-card .card-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .performance-period-form { flex-basis: auto; width: 100%; }
    .floating-quick-actions { bottom: 18px; right: 16px; }
    .floating-quick-trigger { height: 54px; width: 54px; }
    .inline-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .inline-form button { grid-column: span 2; }
    .employee-dialog { padding: 16px; }
    .employee-dialog .form-grid { grid-template-columns: 1fr; }
    .employee-dialog .span-2 { grid-column: auto; }
    .country-picker-heading { padding: 18px 16px 15px; }
    .country-picker-option { gap: 8px; grid-template-columns: 36px minmax(0, 1fr) auto; padding: 10px; }
    .country-picker-option-icon { height: 36px; width: 36px; }
    .country-picker-option-state { font-size: 8px; gap: 4px; }
    .employee-profile-hero { align-items: flex-start; flex-wrap: wrap; }
    .employee-profile-photo { flex-basis: 76px; height: 92px; width: 76px; }
    .employee-profile-heading { flex-basis: calc(100% - 112px); }
    .employee-profile-back { margin-left: 0; }
    .employee-profile-edit { margin-left: 0; }
    .employee-profile-form { grid-template-columns: 1fr; }
    .employee-profile-form .span-2 { grid-column: auto; }
    .employee-profile-details { grid-template-columns: 1fr; }
    .employee-directory-actions { align-items: flex-start; flex-direction: column; }
    .employee-document-upload, .employee-document-groups { grid-template-columns: 1fr; }
    .shared-documents-card > .card-heading { align-items: flex-start; }
    .shared-documents-card > .card-heading .button { margin: 10px 5px 0; }
    .attendance-new-employee-fields { grid-template-columns: 1fr; }
    .attendance-import-dialog { padding: 16px; }
    .attendance-calendar-actions { align-items: flex-start; justify-content: flex-start; }
    .attendance-calendar-actions .month-picker { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 480px) {
    .stats-grid { gap: 9px; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sales-overview-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .stat-card { min-height: 119px; padding: 11px; }
    .stat-card > strong { font-size: 21px; }
    .stat-label { font-size: 10px; }
    .quick-grid { gap: 7px; }
    .quick-grid a { padding: 10px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .compact-form { grid-template-columns: 1fr; }
    .calendar-day { min-height: 43px; padding: 4px; }
    .calendar-day small { font-size: 7px; }
    .calendar-blank { min-height: 43px; }
    .month-picker input { width: 140px; }
    .auth-card { padding: 25px 21px; }
    .employee-stats { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .employee-attendance-charts { grid-template-columns: 1fr; }
}
