/* Orixont Payroll System — brand: Romanian flag blue #002B7F, accents yellow #FCD116 / red #CE1126 used sparingly */
:root {
  --brand:#002B7F; --brand-700:#00226a; --brand-500:#1f4fb5; --brand-100:#e4ebf9; --brand-50:#f3f6fd;
  --gold:#FCD116; --red:#CE1126;
  --ink:#172033; --ink-2:#4b5563; --muted:#6b7280; --line:#dfe4ee; --bg:#f4f6fa; --card:#fff;
  --ok:#15803d; --warn:#b45309; --bad:#b91c1c;
  --s1:#1f4fb5; --s2:#eb6834; --s3:#1baf7a; --s4:#eda100;
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font:14px/1.5 "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color:var(--ink); background:var(--bg); }
header.top { position:relative; background:var(--brand); color:#fff; padding:10px 28px; display:flex; align-items:center; gap:22px; min-height:56px; flex-wrap:wrap; }
header.top::after { content:""; position:absolute; left:0; right:0; bottom:-3px; height:3px; background:linear-gradient(90deg, var(--brand) 0 33.3%, var(--gold) 33.3% 66.6%, var(--red) 66.6%); }
header.top a { color:#fff; text-decoration:none; }
header.top .brand { font-weight:700; font-size:16px; letter-spacing:.2px; display:flex; align-items:center; gap:10px; white-space:nowrap; }
header.top .brand .mark { width:26px; height:26px; border-radius:6px; background:#fff; color:var(--brand); display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; }
header.top .brand small { font-weight:500; opacity:.8; font-size:12px; margin-left:4px; }
header.top nav { display:flex; flex-wrap:wrap; gap:0 18px; }
header.top nav a { margin-right:0; white-space:nowrap; opacity:.88; font-size:13.5px; padding:6px 0; border-bottom:2px solid transparent; }
header.top nav a.active, header.top nav a:hover { opacity:1; border-bottom-color:var(--gold); }
header.top .right { margin-left:auto; font-size:13px; opacity:.95; display:flex; align-items:center; gap:10px; white-space:nowrap; }
main { max-width:1320px; margin:28px auto; padding:0 28px; }
h1 { font-size:24px; margin:0 0 6px; font-weight:700; letter-spacing:-.2px; } h2 { font-size:17px; margin:24px 0 10px; font-weight:650; } h3 { font-size:14.5px; margin:16px 0 8px; font-weight:650; color:var(--ink-2); text-transform:uppercase; letter-spacing:.4px; font-size:12.5px; }
.crumbs { color:var(--muted); font-size:13px; margin-bottom:10px; } .crumbs a { color:var(--muted); }
a { color:var(--brand-500); }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:18px 20px; margin-bottom:18px; box-shadow:0 1px 2px rgba(16,24,40,.04); }
table { border-collapse:collapse; width:100%; background:var(--card); }
th, td { border-bottom:1px solid var(--line); padding:7px 10px; text-align:left; vertical-align:top; }
th { background:var(--brand-50); color:var(--brand); font-weight:650; font-size:12px; letter-spacing:.3px; text-transform:uppercase; white-space:nowrap; }
td.num, th.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
tr.total td { font-weight:700; border-top:2px solid var(--brand-100); background:var(--brand-50); }
tbody tr:hover td { background:#fafbfe; }
.btn { display:inline-block; padding:8px 14px; border-radius:7px; border:1px solid var(--brand); background:var(--brand); color:#fff; text-decoration:none; font-size:13.5px; font-weight:600; cursor:pointer; line-height:1.2; }
.btn:hover { background:var(--brand-700); }
.btn.secondary { background:#fff; color:var(--brand); } .btn.secondary:hover { background:var(--brand-50); }
.btn.danger { background:#fff; color:var(--red); border-color:var(--red); } .btn.danger:hover { background:#fff5f5; }
.btn.ok { background:var(--ok); border-color:var(--ok); }
.btn.small { padding:5px 10px; font-size:12.5px; }
form.inline { display:inline; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:12px 20px; }
.grid label, .field label { display:block; font-size:12px; color:var(--muted); margin-bottom:3px; font-weight:500; }
input[type=text], input[type=number], input[type=date], input[type=email], input[type=password], select, textarea { width:100%; padding:7px 9px; border:1px solid #c7cfdd; border-radius:6px; font:inherit; background:#fff; }
input:focus, select:focus, textarea:focus { outline:2px solid var(--brand-100); border-color:var(--brand-500); }
input[type=checkbox] { transform:scale(1.1); margin-right:6px; accent-color:var(--brand); }
.check { display:flex; align-items:center; gap:4px; padding-top:20px; }
.messages { list-style:none; padding:0; margin:0 0 16px; }
.messages li { padding:9px 13px; border-radius:7px; margin-bottom:6px; background:#ecfdf5; border:1px solid #a7f3d0; }
.messages li.error { background:#fef2f2; border-color:#fecaca; } .messages li.warning { background:#fffbeb; border-color:#fde68a; } .messages li.info { background:var(--brand-50); border-color:var(--brand-100); }
.errorlist { color:var(--bad); margin:4px 0 0; padding-left:16px; font-size:12.5px; }
.badge { display:inline-block; padding:2px 9px; border-radius:999px; font-size:11.5px; font-weight:600; }
.badge.open { background:var(--brand-100); color:var(--brand); } .badge.closed { background:#dcfce7; color:#166534; } .badge.none { background:#eef0f4; color:#64748b; }
.badge.pending { background:#fff7d6; color:#8a6d00; } .badge.approved { background:#dcfce7; color:#166534; } .badge.rejected { background:#fee2e2; color:#991b1b; } .badge.cancelled { background:#eef0f4; color:#64748b; }
.muted { color:var(--muted); } .small { font-size:12.5px; }
.kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:12px; margin:12px 0 18px; }
.kpi { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:12px 16px; border-top:3px solid var(--brand); }
.kpi .v { font-size:22px; font-weight:700; letter-spacing:-.3px; font-variant-numeric:tabular-nums; } .kpi .l { font-size:12px; color:var(--muted); } .kpi .d { font-size:12px; color:var(--ink-2); margin-top:2px; }
.actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:12px 0; }
.scroll { overflow-x:auto; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:20px; } @media (max-width:900px) { .two { grid-template-columns:1fr; } }
.three { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; } @media (max-width:1000px) { .three { grid-template-columns:1fr; } }
fieldset { border:1px solid var(--line); border-radius:10px; padding:12px 16px 16px; margin:0 0 16px; background:var(--card); }
legend { font-weight:650; font-size:12.5px; color:var(--brand); padding:0 6px; text-transform:uppercase; letter-spacing:.4px; }
.sticky-actions { position:sticky; bottom:0; background:var(--card); border-top:1px solid var(--line); padding:10px 0; margin-top:10px; }
.login { max-width:400px; margin:70px auto; }
.login .logo { display:flex; align-items:center; gap:12px; margin-bottom:6px; }
.login .logo .mark { width:40px; height:40px; border-radius:9px; background:var(--brand); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:20px; }
.login .stripe { height:4px; border-radius:2px; background:linear-gradient(90deg, var(--brand) 0 33.3%, var(--gold) 33.3% 66.6%, var(--red) 66.6%); margin:12px 0 18px; }
/* charts */
.chart { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px 16px; margin-bottom:18px; }
.chart h3 { margin:0 0 2px; } .chart .sub { font-size:12.5px; color:var(--muted); margin-bottom:8px; }
.chart svg { width:100%; height:auto; display:block; font-family:inherit; }
.chart .legend { display:flex; gap:14px; flex-wrap:wrap; font-size:12px; color:var(--ink-2); margin-top:6px; }
.chart .legend i { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:5px; vertical-align:-1px; }
.chart details { margin-top:6px; font-size:12.5px; } .chart summary { cursor:pointer; color:var(--brand-500); }
svg .bar:hover, svg .pt:hover { opacity:.85; } svg .grid { stroke:#e5e9f2; } svg .axis { fill:var(--muted); font-size:11px; } svg .lbl { fill:var(--ink-2); font-size:11px; font-weight:600; }
/* calendar */
.cal { display:grid; grid-template-columns:repeat(7, 1fr); gap:4px; }
.cal .d { min-height:72px; border:1px solid var(--line); border-radius:6px; padding:4px 6px; font-size:12px; background:#fff; }
.cal .d.wk { background:#f7f8fb; color:var(--muted); } .cal .d.ph { background:#fff7d6; } .cal .d.blocked { background:#fee2e2; }
.cal .d .n { font-weight:600; color:var(--ink-2); } .cal .d .who { display:block; margin-top:2px; padding:1px 4px; border-radius:3px; background:var(--brand-100); color:var(--brand); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cal .d.today { outline:2px solid var(--brand-500); outline-offset:-2px; }
.cal .d .who.pending { background:#fff1c2; color:#7a5c00; } .cal .d .who.rejected { background:#fee2e2; color:#991b1b; text-decoration:line-through; }
.cal .d .who.cancelled { background:#eef0f4; color:#64748b; text-decoration:line-through; } .cal .d .who.sick { background:#e0f2fe; color:#075985; }
.cal .d .who.unpaid { background:#ede9fe; color:#5b21b6; }
.legend-cal { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--ink-2); margin:8px 0; align-items:center; }
.legend-cal i { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:5px; vertical-align:-2px; border:1px solid rgba(0,0,0,.08); }
.filters { display:flex; gap:14px; flex-wrap:wrap; align-items:end; margin:8px 0 14px; }
.filters .field { min-width:160px; } .filters label.chk { display:inline-flex; align-items:center; gap:4px; margin-right:8px; font-size:12.5px; color:var(--ink-2); }
.tabs { display:flex; gap:4px; margin:10px 0; } .tabs a { padding:6px 12px; border:1px solid var(--line); border-bottom:none; border-radius:7px 7px 0 0; background:#eef1f7; color:var(--ink-2); text-decoration:none; font-size:13px; }
.tabs a.active { background:#fff; color:var(--brand); font-weight:600; }
.planner { border-collapse:collapse; font-size:11.5px; } .planner th, .planner td { padding:2px; text-align:center; border:1px solid #e9edf4; }
.planner th { background:var(--brand-50); color:var(--brand); font-size:10.5px; padding:4px 2px; text-transform:none; }
.planner td.name { text-align:left; white-space:nowrap; padding:4px 8px; font-weight:600; font-size:12px; position:sticky; left:0; background:#fff; }
.planner td.wk, .planner th.wk { background:#f3f4f7; } .planner td.ph, .planner th.ph { background:#fff3c4; } .planner td.blk { background:#ffe4e6; }
.planner td .c { display:block; height:20px; border-radius:3px; }
.planner .c.approved { background:var(--brand-500); } .planner .c.pending { background:#f3c623; } .planner .c.rejected { background:#f87171; opacity:.7; } .planner .c.cancelled { background:#cbd5e1; }
.planner .c.sick { background:#38bdf8; } .planner .c.unpaid { background:#a78bfa; } .planner td.today { box-shadow:inset 0 0 0 2px var(--brand-500); }
.planner td.days { font-weight:700; color:var(--brand); }
.cal .h { font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.3px; padding:2px 6px; }
/* printable forms */
.form-box { border:1px solid #333; padding:16px 20px; margin-bottom:18px; background:#fff; page-break-after:always; }
.form-box:last-child { page-break-after:auto; }
.form-head { display:flex; justify-content:space-between; align-items:flex-start; border-bottom:3px solid var(--brand); padding-bottom:8px; margin-bottom:10px; }
.form-head h1 { font-size:18px; color:var(--brand); } .form-box table th { background:#eef2f9; color:#223; }
.form-foot { margin-top:12px; font-size:11px; color:#666; border-top:1px solid #ddd; padding-top:6px; display:flex; justify-content:space-between; }
.boxno { font-size:11px; color:#555; padding-left:4px; }
@media print { header.top, .no-print, .messages { display:none !important; } body { background:#fff; } main { max-width:none; margin:0; padding:0; } .form-box { border:none; } }

/* payslip audit view */
.audit td { vertical-align:top; } .audit td.work { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:12px; color:#1f2937; }
.audit td.rule { color:var(--ink-2); font-size:12.5px; } .audit tr.ps td:first-child { border-left:3px solid var(--brand-500); }
.audit tr.bold td { font-weight:700; background:var(--brand-50); } .audit .note { display:block; color:var(--warn); font-size:11.5px; font-family:inherit; margin-top:2px; }
.audit .okmark { color:var(--ok); font-weight:700; } .audit .badmark { color:var(--bad); font-weight:700; white-space:nowrap; }
.audit tr.bad td { background:#fef2f2; }
.banner { padding:10px 14px; border-radius:8px; margin:10px 0 16px; border:1px solid; }
.banner.ok { background:#ecfdf5; border-color:#a7f3d0; color:#065f46; } .banner.bad { background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.kv { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:4px 18px; font-size:12.5px; } .kv span { color:var(--muted); }
