:root{--brand:#f52a50;--brand-deep:#bd193b;--brand-dark:#9c1433;--brand-soft:#fff0f3;--ink:#242b35;--navy:#253448;--muted:#76808d;--muted2:#929ba5;--line:#ede8eb;--bg:#faf7f8;--white:#fff;--green:#16825a;--green-soft:#eaf9f1;--amber:#a46b12;--amber-soft:#fff5de;--blue:#44698d;--blue-soft:#eaf3fb;--shadow:0 12px 34px rgba(79,38,51,.045),0 2px 6px rgba(72,32,43,.025)}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:radial-gradient(ellipse 700px 400px at 105% -5%,rgba(245,42,80,.06),transparent 75%),var(--bg);color:var(--ink);font:14px/1.48 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(245,42,80,.38);outline-offset:2px}
svg{display:block}
.ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ic.sm{width:15px;height:15px}
.ic.lg{width:22px;height:22px}
.ic.xl{width:25px;height:25px}
.app{display:grid;grid-template-columns:254px minmax(0,1fr);min-height:100vh}
.sidebar{background:#fff;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:29px 16px 20px;z-index:5}
.brand-lockup{padding:0 11px 24px;border-bottom:1px solid #f1edf0}
.brand-logo{display:block;width:193px;max-width:100%;height:auto;min-height:40px}
.product-line{display:flex;align-items:center;gap:9px;margin-top:18px;color:#a98a95;letter-spacing:.17em;text-transform:uppercase;font-weight:800;font-size:10px}
.product-line .red-line{width:18px;height:2px;background:var(--brand)}
.nav-set{padding-top:24px}
.nav-heading{font-size:10px;text-transform:uppercase;letter-spacing:.15em;color:#a6a2a7;font-weight:800;padding:0 13px;margin:0 0 10px}
.nav-link{display:flex;align-items:center;gap:12px;padding:12px 13px;margin:3px 0;border-radius:11px;color:#626b77;font-weight:650;transition:.18s;position:relative}
.nav-link .ic{color:#8f97a1}
.nav-link:hover{background:#faf6f7;color:#282b36}
.nav-link.active{background:#fff0f3;color:#b51a3c}
.nav-link.active .ic{color:#c41b40}
.nav-link.active:before{content:"";width:3px;height:19px;left:0;top:11px;background:var(--brand);border-radius:0 6px 6px 0;position:absolute}
.side-bottom{margin-top:auto;border-top:1px solid #f0eaed;padding:20px 10px 0}
.sync-mini{display:flex;gap:10px;color:#6a737d;font-size:12px;line-height:1.5}
.sync-mini .ic{color:var(--brand)}
.sync-mini strong{color:#454d59;display:block;font-size:12px}
.side-bottom .side-note{font-size:10.5px;color:#a2a5ad;margin-top:22px}
.main-wrap{min-width:0}
.topbar{min-height:84px;border-bottom:1px solid #f1e9ed;background:rgba(255,255,255,.83);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(24px,3.2vw,52px);gap:20px}
.mobile-brand{display:none}
.crumb{display:flex;gap:9px;align-items:center;font-size:12px;font-weight:650;color:#a69ca2}
.crumb b{color:#606876;font-weight:700}
.crumb .ic{color:#c7bec3;width:13px;height:13px}
.top-actions{display:flex;align-items:center;gap:16px}
.date-chip{display:flex;align-items:center;gap:7px;color:#717b85;font-weight:600;font-size:12px}
.date-chip .ic{width:16px;height:16px;color:#a0a6af}
.top-divider{height:25px;width:1px;background:#ede6e9}
.avatar{width:36px;height:36px;border-radius:12px;background:linear-gradient(145deg,#ff8096,#df2c55);display:grid;place-items:center;color:#fff;font-weight:800;font-size:12px}
.user-meta{line-height:1.25;text-align:right}
.user-meta strong{display:block;font-size:12px}
.user-meta small{display:block;color:#9a9da5;font-size:11px;margin-top:4px}
.icon-button{width:36px;height:36px;display:grid;place-items:center;border:1px solid #eee5e9;background:#fff;color:#69727b;border-radius:10px}
.icon-button:hover{background:#fff2f4;color:var(--brand-deep)}
.page{max-width:1510px;margin:0 auto;padding:39px clamp(24px,3.2vw,52px) 70px}
.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:25px}
.eyebrow{font-size:11px;font-weight:820;letter-spacing:.19em;color:var(--brand-deep);text-transform:uppercase;margin-bottom:8px}
.page h1{font-size:clamp(30px,2.45vw,40px);line-height:1.1;letter-spacing:-.045em;margin:0;font-weight:770;color:#262e3b}
.subtitle{margin:10px 0 0;color:#7b838f;font-size:14px}
.header-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.btn{border:1px solid transparent;border-radius:10px;min-height:40px;padding:10px 16px;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-size:12.5px;font-weight:760;white-space:nowrap;transition:.16s}
.btn .ic{width:16px;height:16px}
.btn.primary{background:var(--brand-deep);color:#fff;box-shadow:0 5px 11px rgba(189,25,59,.14)}
.btn.primary:hover{background:var(--brand-dark)}
.btn.soft{background:var(--brand-soft);color:var(--brand-deep)}
.btn.soft:hover{background:#ffe0e8}
.btn.outline{background:#fff;border-color:#e9e0e5;color:#535967}
.btn.outline:hover{border-color:#ef9db1;color:var(--brand-deep)}
.btn.ghost{border-color:transparent;background:transparent;color:#6d7581}
.btn.small{min-height:33px;padding:7px 11px;font-size:11.5px;border-radius:8px}
.btn.disabled{opacity:.5;cursor:not-allowed}
.card{border:1px solid #f0e8ec;background:#fff;border-radius:18px;box-shadow:var(--shadow);min-width:0}
.card h2{margin:0;letter-spacing:-.025em;font-size:18px;line-height:1.27;font-weight:750;color:#29323f}
.card h3{font-size:14px;margin:0;color:#303745;font-weight:760}
.muted{color:var(--muted)}
.fine{color:#9a9da6;font-size:11px}
.upper{letter-spacing:.11em;font-size:10px;color:#98a0a7;font-weight:800;text-transform:uppercase}
.text-red{color:var(--brand-deep)}
.text-green{color:var(--green)}
.text-amber{color:var(--amber)}
.status{display:inline-flex;align-items:center;gap:6px;border-radius:100px;padding:5px 9px;font-size:11px;font-weight:750;white-space:nowrap}
.status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.status.green{background:var(--green-soft);color:var(--green)}
.status.amber{background:var(--amber-soft);color:#93651a}
.status.red{background:#fff0f1;color:#bb2141}
.status.blue{background:var(--blue-soft);color:var(--blue)}
.status.gray{background:#f3f4f6;color:#79818c}
.status.slim{padding:4px 8px}
.status.slim:before{width:5px;height:5px}
.section-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}
.section-top p{color:#939aa4;font-size:12px;margin:5px 0 0}
.section-label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.16em;color:#989eaa;font-weight:850}
.pill-icon{width:40px;height:40px;border-radius:12px;background:#fff0f3;color:var(--brand-deep);display:grid;place-items:center}
.pill-icon.green{background:#eaf8f1;color:#19865b}
.pill-icon.amber{background:#fff5e4;color:#aa7c21}
.pill-icon.blue{background:#edf5fa;color:#467391}
.divider{height:1px;background:var(--line);margin:18px 0}
.grid-2{display:grid;grid-template-columns:1.55fr 1fr;gap:20px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.grid-5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.line-justify{display:flex;justify-content:space-between;align-items:center;gap:12px}
.progress{height:8px;background:#f2edf0;border-radius:20px;overflow:hidden}
.progress>span{display:block;height:100%;background:linear-gradient(90deg,#f57a91,#e42a53);border-radius:inherit}
.tag{font-size:11px;font-weight:700;border-radius:7px;padding:5px 8px;background:#f5f5f6;color:#737985}
.tag.red{color:#b91d40;background:#fff1f4}
.tag.blue{color:#406b90;background:#eef5fd}
.form-label{display:block;font-weight:700;font-size:11.5px;color:#56616d;margin:0 0 7px}
.field,.select{width:100%;min-height:41px;background:#fff;border:1px solid #ebe7ea;border-radius:9px;color:#3d4551;padding:10px 12px;font-size:12.5px;outline:0}
.field:focus,.select:focus{border-color:#ee91a5;box-shadow:0 0 0 3px #ffeff3}
.field::placeholder{color:#a8a9af}
.field-wrap{position:relative}
.field-wrap .ic{position:absolute;top:12px;left:12px;color:#a3a8b1}
.field-wrap.has-icon input{padding-left:37px}
.tabs{display:flex;gap:5px;border:1px solid #f0e8ed;background:#fff;padding:5px;border-radius:12px;min-width:0;overflow:auto}
.tab{background:transparent;border:none;color:#777e88;font-weight:700;font-size:12px;padding:9px 13px;border-radius:8px;white-space:nowrap;display:flex;align-items:center;gap:8px}
.tab.active{background:#fff0f3;color:#b51e40}
.tab .ic{width:15px;height:15px}
.banner{display:flex;align-items:flex-start;gap:13px;border-radius:12px;padding:13px 15px;font-size:12px;line-height:1.55;border:1px solid #f5e1d7;background:#fff9f1;color:#816043}
.banner .ic{color:#d49238;width:18px;height:18px;margin-top:1px}
.banner strong{color:#604f3f}
.banner.blue{background:#f5f8fb;border-color:#e5eef3;color:#667989}
.banner.blue .ic{color:#6c91ac}
.banner.red{background:#fff2f4;border-color:#ffe0e7;color:#9b5364}
.avatar-sm{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;font-size:11px;font-weight:800;background:#f1e8f0;color:#9e537d;flex:none}
.avatar-sm.c2{background:#e8eef8;color:#5d7eae}
.avatar-sm.c3{background:#f7efe0;color:#b28b46}
.avatar-sm.c4{background:#e9f4ef;color:#41916a}
.avatar-sm.c5{background:#f5e6e8;color:#ae5870}
.table-scroller{overflow-x:auto;max-width:100%}
.data-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}
.data-table th{color:#969da6;font-weight:780;text-transform:uppercase;font-size:10px;letter-spacing:.07em;padding:14px 14px;background:#fcfbfc;border-bottom:1px solid #f0eaf0}
.data-table td{font-size:12px;padding:13px 14px;border-bottom:1px solid #f2edf0;color:#4c5562}
.data-table tr:last-child td{border-bottom:none}
.data-table tbody tr:hover td{background:#fffbfc}
.person{display:flex;align-items:center;gap:10px}
.person strong{font-size:12px;font-weight:740;display:block;color:#354152}
.person small{font-size:10.5px;color:#9a9fab;display:block;margin-top:2px}
.table-num{font-variant-numeric:tabular-nums;font-weight:690;color:#313b4b}
.table-bottom{border-top:1px solid #f2ebef;padding:15px 18px;display:flex;justify-content:space-between;align-items:center;gap:9px;color:#919ba5;font-size:11px}
.pager{display:flex;gap:7px;align-items:center}
.pager button{width:30px;height:30px;border:1px solid #eee6ea;border-radius:8px;background:#fff;color:#5d6a76}
.pager button.active{background:#be1c3e;color:#fff;border-color:#be1c3e}
.pager button:disabled{opacity:.42;cursor:not-allowed}
.mobile-bottom{display:none}
.page-footer{font-size:11px;color:#a09da6;margin:35px 0 0;display:flex;align-items:center;justify-content:space-between}
.page-footer a{color:#85828a}
.toggle-line{display:flex;align-items:center;gap:10px;font-size:12px;color:#626c77;cursor:pointer}
.toggle-line input{accent-color:var(--brand-deep);width:16px;height:16px}
.chip-set{display:flex;gap:5px;flex-wrap:wrap}
.chip{background:#fff;color:#747d88;border:1px solid #eae5e8;border-radius:100px;padding:8px 12px;font-size:11.5px;font-weight:750}
.chip.active{color:var(--brand-deep);background:#fff0f3;border-color:#f8dce5}

/* My attendance */
.hero-my{display:grid;grid-template-columns:1.3fr .87fr;gap:18px;margin-bottom:20px}
.clock-card{padding:25px 28px;position:relative;overflow:hidden;background:linear-gradient(132deg,#fff 0%,#fff 68%,#fff7f9 100%)}
.clock-card:after{content:"";position:absolute;width:250px;height:250px;right:-130px;top:-140px;border-radius:50%;border:1px solid #f9e3e9;pointer-events:none}
.live-row{display:flex;justify-content:space-between;align-items:center;margin:10px 0 20px;gap:9px}
.clock-title{font-size:24px;font-weight:780;letter-spacing:-.035em;margin:0;color:#293241}
.subline{color:#8c97a2;font-size:12px;margin:3px 0 0}
.clock-summary{display:flex;gap:38px;margin:0 0 22px}
.clock-summary>div{display:flex;flex-direction:column;gap:3px}
.clock-summary strong{font-size:26px;color:#25303f;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.clock-summary small{color:#9da4ac;font-size:11px}
.clock-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.clock-actions .select{width:128px;min-height:42px}
.clock-actions .btn{min-height:42px}
.quick-row{display:flex;align-items:center;gap:6px;color:#a0a5ad;font-size:11px;margin-top:17px}
.month-stat-card{padding:25px}
.goal-top{display:flex;justify-content:space-between;align-items:start}
.goal-data{display:flex;align-items:baseline;gap:8px;margin:18px 0 14px}
.goal-data strong{font-size:38px;letter-spacing:-.045em;line-height:1;color:#2d3743}
.goal-data span{color:#9ca2a9;font-size:12px}
.goal-meta{display:flex;justify-content:space-between;margin-top:11px;font-size:11px;color:#87919d}
.stat-row{display:flex;align-items:center;gap:7px;font-size:11px;margin-top:18px;color:#78828c}
.stat-row strong{color:#4c6065}
.calendar-card{padding:24px 25px}
.calendar-controls{display:flex;align-items:center;gap:7px}
.calendar-controls button{width:32px;height:32px;background:#fff;border:1px solid #eee7eb;border-radius:8px;color:#737f89;display:grid;place-items:center}
.calendar-controls .month-reset{width:auto;padding:0 11px;font-size:11px;font-weight:700}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.cal-day{min-width:0;min-height:91px;text-align:left;padding:10px 10px 9px;border:1px solid #f0e9ec;border-radius:10px;background:#fff;color:#4a5260;display:flex;flex-direction:column;align-items:flex-start}
.cal-day:hover{border-color:#f4b9c7;background:#fffafd}
.cal-day.empty{border:0;background:transparent;pointer-events:none}
.cal-day.future{background:#fcfbfc;color:#a8acb3}
.cal-day.weekend{background:#fafafb;color:#a1a6ac}
.cal-day.today{background:#fff7f9;border:1.5px solid #e2486a}
.cal-day.selected{box-shadow:0 0 0 2px rgba(245,42,80,.14);border-color:var(--brand)}
.day-num{font-size:12px;font-weight:780}
.cal-day.today .day-num{color:var(--brand-deep)}
.cal-data{font-size:11px;font-weight:750;color:#4d6170;margin-top:auto}
.cal-day.future .cal-data,.cal-day.weekend .cal-data{color:#a5acb4}
.cal-note{font-size:10px;color:#a1a9b2;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}
.cal-note.good{color:#2b956c}
.cal-note.alert{color:#bb784a}
.cal-leave{width:100%;margin-top:3px;color:#68478e;font-size:10px;font-weight:600;line-height:1.15;overflow-wrap:anywhere}
.calendar-foot{border-top:1px solid #f0e9ed;padding-top:17px;margin-top:19px;display:flex;align-items:center;gap:18px;color:#a1a4ad;font-size:11px}
.legend{display:flex;align-items:center;gap:6px}
.legend i{display:inline-block;width:8px;height:8px;border-radius:3px;background:#a5dfc7}
.legend i.red{background:#f4a1b1}
.legend i.muted{background:#e5e6ea}
.day-details{padding:24px}
.timeline-list{position:relative;margin:15px 0 0}
.timeline-list:before{content:"";position:absolute;top:14px;bottom:14px;left:7px;width:1px;background:#eee7ec}
.timeline-row{display:flex;align-items:flex-start;gap:13px;position:relative;padding:10px 0}
.timeline-dot{width:15px;height:15px;display:grid;place-items:center;border-radius:50%;background:#fff;border:3px solid #e73d60;flex:none;z-index:1}
.timeline-dot.gray{border-color:#cbd0d5}
.timeline-main{flex:1;display:flex;justify-content:space-between;gap:6px}
.timeline-main strong{font-size:12px;color:#49525e}
.timeline-main small{font-size:11px;color:#a0a5ad}
.details-foot{margin-top:14px;border-top:1px solid #f0e9ec;padding-top:15px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#87919c;font-size:11px}
.mobile-calendar-legend{display:none}

/* Team */
.kpi{padding:18px 18px 17px;min-width:0}
.kpi-head{display:flex;align-items:center;justify-content:space-between;gap:9px;color:#848e9a;font-size:11.5px;font-weight:700}
.kpi .pill-icon{width:32px;height:32px;border-radius:10px}
.kpi .pill-icon .ic{width:17px;height:17px}
.kpi strong{font-size:31px;line-height:1.1;display:block;letter-spacing:-.05em;margin:10px 0 5px}
.kpi small{font-size:10.8px;color:#a0a8af}
.team-toolbar{margin:19px 0 20px;padding:16px 18px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.team-toolbar .field-wrap{min-width:220px;flex:1}
.toolbar-end{display:flex;align-items:center;gap:9px}
.team-card .section-top{padding:22px 22px 0}
.empty-state{text-align:center;padding:48px 20px;color:#858c98}
.empty-state .pill-icon{margin:0 auto 12px}
.empty-state h3{margin:0 0 7px;color:#363e4c}

/* Reports */
.report-toolbar{padding:19px;display:grid;grid-template-columns:1fr 1fr 1.05fr 1fr auto;gap:13px;align-items:end;margin-bottom:18px}
.metric-cards{margin-bottom:18px}
.report-stats .kpi{padding:17px 19px}
.report-visuals{display:grid;grid-template-columns:1.45fr .83fr;gap:18px;margin-bottom:20px}
.chart-box{min-width:0;padding:23px 25px}
.trend-scroll{overflow-x:auto}
.bar-chart{height:203px;display:flex;align-items:end;justify-content:space-between;gap:10px;margin:21px 3px 9px;border-bottom:1px solid #e9e8ea;padding-bottom:1px}
.bar-pair{flex:1;display:flex;align-items:end;justify-content:center;gap:4px;height:100%;position:relative}
.bar{width:34%;max-width:23px;border-radius:6px 6px 0 0;height:var(--h);min-height:4px}
.bar.expected{background:#f1e9ed}
.bar.actual{background:linear-gradient(0deg,#c51a40,#fa5e7c)}
.bar.actual:hover{filter:brightness(.95)}
.axis-labels{display:flex;justify-content:space-around;gap:6px;color:#9ca5af;font-size:10.5px;font-weight:650}
.chart-legend{display:flex;align-items:center;gap:14px;font-size:11px;color:#87909c}
.chart-legend i{display:inline-block;width:9px;height:9px;border-radius:2px;background:var(--brand)}
.chart-legend i.expected{background:#e9e2e6}
.report-insights{padding:23px}
.donut{width:145px;height:145px;border-radius:50%;display:grid;place-items:center;margin:18px auto}
.donut:before{content:"";width:108px;height:108px;background:#fff;border-radius:50%;grid-area:1/1}
.donut-label{z-index:1;grid-area:1/1;text-align:center}
.donut-label strong{display:block;font-size:23px;letter-spacing:-.04em}
.donut-label small{color:#9da5af;font-size:10px}
.breakdown-line{display:flex;align-items:center;gap:8px;margin:8px 0;color:#767e88;font-size:11px}
.breakdown-line .b-dot{width:8px;height:8px;border-radius:3px;background:var(--brand-deep)}
.breakdown-line strong{margin-left:auto;color:#3d4654}
.reports-card .section-top{padding:22px 22px 0}

/* Settings */
.settings-tabs{margin-bottom:20px;width:max-content;max-width:100%}
.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) 295px;align-items:start;gap:20px}
.settings-main{min-width:0}
.settings-card{padding:24px;margin-bottom:17px}
.settings-card .desc{font-size:12px;color:#939ba5;margin:8px 0 22px;line-height:1.5}
.settings-head{display:flex;align-items:center;gap:12px}
.settings-head .pill-icon{width:38px;height:38px}
.settings-title{font-size:17px!important}
.settings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.settings-fields .full{grid-column:1/-1}
.hint{font-size:10.5px;color:#a0a5ad;margin-top:5px}
.weekday-set{display:flex;gap:8px;flex-wrap:wrap}
.weekday{display:grid;place-items:center;width:43px;height:40px;border:1px solid #eee5ea;border-radius:9px;background:#fff;color:#868f98;font-size:11px;font-weight:780}
.weekday.on{color:#b21c3c;border-color:#f6b2c1;background:#fff0f3}
.settings-actions{display:flex;align-items:center;gap:12px;justify-content:flex-end;margin-top:7px}
.settings-aside{position:sticky;top:104px}
.setup-card{padding:24px}
.setup-score{margin:16px 0 14px;display:flex;align-items:end;gap:8px}
.setup-score strong{font-size:33px;letter-spacing:-.05em;line-height:1}
.setup-score span{color:#99a0a7;font-size:12px}
.setup-item{display:flex;gap:9px;align-items:flex-start;padding:11px 0;border-bottom:1px solid #f0e9ed}
.setup-item:last-child{border:0}
.setup-item .ic{margin-top:2px}
.setup-item strong{display:block;font-size:11.5px;color:#505965}
.setup-item small{display:block;color:#a0a4ae;margin-top:4px;font-size:10.5px}
.side-insight{background:#fff7f9;border:1px solid #fbe2e9;border-radius:14px;padding:16px;margin-top:18px}
.side-insight strong{display:block;font-size:12px;color:#b52544}
.side-insight p{color:#9b7b86;font-size:11px;line-height:1.6;margin:5px 0 0}
.settings-employee-search{display:flex;align-items:center;gap:10px;margin:15px 0}
.settings-employee-search .field-wrap{flex:1}
.employee-list .person{padding:13px 0;border-bottom:1px solid #f1eaf0}
.employee-list .person:last-child{border:0}
.employee-list .person .person-actions{margin-left:auto;display:flex;align-items:center;gap:12px}
.employee-list .person .person-actions .tag{font-size:10px}
.integration-stat{background:#faf9fa;border:1px solid #f1ecef;border-radius:12px;padding:16px}
.integration-stat strong{font-size:25px;display:block;margin-top:8px;letter-spacing:-.045em}
.sync-history{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:17px}
.sync-history>div{padding:12px;border:1px solid #f2eaf0;border-radius:9px}
.sync-history small{display:block;font-size:10px;color:#9ea5af}
.sync-history strong{display:block;font-size:13px;margin-top:5px;color:#5a6370}

@media(max-width:1200px){.app{grid-template-columns:220px minmax(0,1fr)}
.sidebar{padding-left:12px;padding-right:12px}
.brand-logo{width:177px}
.page{padding:32px 27px 60px}
.topbar{padding:0 27px}
.grid-5{grid-template-columns:repeat(5,minmax(115px,1fr));gap:10px}
.kpi{padding:16px 13px}
.kpi-head{font-size:10.5px}
.grid-2{grid-template-columns:1.3fr 1fr}
.settings-grid{grid-template-columns:minmax(0,1fr) 260px}
.report-toolbar{grid-template-columns:1fr 1fr 1fr}
.report-toolbar .btn{align-self:end}
.report-visuals{grid-template-columns:1.3fr .9fr}
}

@media(max-width:960px){.app{display:block}
.sidebar{display:none}
.topbar{min-height:68px;padding:0 25px}
.mobile-brand{display:flex;align-items:center;gap:10px}
.mobile-brand img{width:37px;height:27px;object-fit:cover;object-position:left}
.mobile-brand strong{font-size:15px;letter-spacing:-.04em}
.mobile-brand strong b{color:var(--brand-deep)}
.crumb{display:none}
.page{padding:26px 25px 90px}
.mobile-bottom{position:fixed;bottom:0;left:0;right:0;background:rgba(255,255,255,.98);border-top:1px solid #efe6e9;display:grid;grid-template-columns:repeat(4,1fr);z-index:25;padding:8px 8px max(9px,env(safe-area-inset-bottom));box-shadow:0 -8px 24px rgba(64,25,40,.035)}
.mobile-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 2px;border-radius:9px;color:#9298a1;font-size:10px;font-weight:700}
.mobile-bottom a.active{color:var(--brand-deep);background:#fff4f6}
.mobile-bottom a .ic{width:21px;height:21px}
.page-footer{padding-bottom:22px}
.settings-aside{position:static}
}

@media(max-width:740px){.topbar{padding:0 18px}
.top-actions{gap:9px}
.date-chip,.top-divider,.user-meta{display:none}
.avatar{width:32px;height:32px;font-size:10px;border-radius:10px}
.page{padding:26px 16px 92px}
.page-header{align-items:flex-start;gap:13px;flex-direction:column;margin-bottom:20px}
.page h1{font-size:30px}
.subtitle{font-size:12px;margin-top:7px}
.header-buttons{width:100%;justify-content:space-between}
.card{border-radius:14px}
.hero-my{display:grid;grid-template-columns:1fr;gap:13px}
.clock-card,.month-stat-card{padding:20px}
.clock-title{font-size:22px}
.clock-summary{gap:26px}
.clock-summary strong{font-size:22px}
.grid-2,.grid-3,.grid-4{grid-template-columns:1fr;gap:13px}
.grid-5{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kpi{min-height:116px;padding:14px}
.kpi strong{font-size:29px;margin:9px 0 3px}
.kpi:last-child:nth-child(odd){grid-column:1/-1}
.team-toolbar{padding:14px;gap:10px}
.team-toolbar .field-wrap{width:100%;min-width:0;flex:none}
.toolbar-end{width:100%;justify-content:space-between}
.report-toolbar{grid-template-columns:1fr 1fr;gap:11px;padding:15px}
.report-toolbar>div:nth-child(3){grid-column:1/-1}
.report-toolbar>div:nth-child(4){grid-column:1/-1}
.report-toolbar>.btn{grid-column:1/-1}
.report-visuals{grid-template-columns:1fr;gap:13px}
.metric-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.metric-cards .kpi:last-child{grid-column:auto}
.table-bottom{padding:14px 16px}
.settings-grid{grid-template-columns:1fr;gap:10px}
.settings-fields{grid-template-columns:1fr;gap:13px}
.settings-card{padding:19px}
.settings-aside{grid-row:2}
.setup-card{padding:18px}
.setup-items{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
.settings-tabs{width:100%;overflow:auto}
.settings-tabs .tab{font-size:11px;padding:9px 11px}
.weekday-set{justify-content:space-between}
.weekday{flex:1;min-width:35px}
.calendar-card{padding:17px 12px}
.calendar-grid{gap:3px}
.cal-day{min-height:56px;border-radius:8px;padding:7px 5px}
.day-num{font-size:12px}
.cal-data,.cal-note{display:none}
.cal-leave{font-size:9px}
.cal-day.completed .day-num:after,.cal-day.today .day-num:after{content:"";display:block;width:5px;height:5px;border-radius:50%;background:#5dc59b;margin-top:5px}
.cal-day.today .day-num:after{background:var(--brand)}
.cal-day.weekend{background:#faf8fa}
.calendar-foot{flex-wrap:wrap;gap:11px;font-size:10px}
.mobile-calendar-legend{display:block;font-size:11px;color:#939ba6;padding-top:10px}
.day-details{padding:19px}
.chart-box,.report-insights{padding:19px}
.bar-chart{height:160px}
.employee-list .person .person-actions{gap:5px}
.employee-list .person .person-actions .tag{display:none}
.employee-list .person strong{font-size:11px}
.employee-list .person small{font-size:10px;max-width:175px;overflow:hidden;text-overflow:ellipsis}
.page-footer{margin-top:18px}
}

@media(max-width:380px){.clock-actions{gap:7px}
.clock-actions .select{width:100px}
.clock-actions .btn{padding:10px 11px}
.clock-summary{gap:18px}
.tabs .tab{padding:8px 9px}
.mobile-bottom a{font-size:9px}
.setup-items{grid-template-columns:1fr}
}

/* Live portal and Bootstrap component integration */
[hidden] { display: none !important; }
.page.container { width: 100%; }
.skip-link { position: absolute; left: -10000px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 2000; background: white; padding: .75rem; }
body { --bs-primary: #bd193b; --bs-primary-rgb: 189, 25, 59; }
.btn-primary { --bs-btn-bg: var(--brand-deep); --bs-btn-border-color: var(--brand-deep); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-disabled-bg: var(--brand-deep); --bs-btn-disabled-border-color: var(--brand-deep); }
.btn-outline-primary { --bs-btn-color: var(--brand-deep); --bs-btn-border-color: #e9e0e5; --bs-btn-hover-color: var(--brand-deep); --bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-border-color: #f0adbc; --bs-btn-active-bg: var(--brand-deep); --bs-btn-active-border-color: var(--brand-deep); }
.form-control:focus, .form-select:focus { border-color: #ee91a5; box-shadow: 0 0 0 3px #ffeff3; }
.form-check-input:checked { background-color: var(--brand-deep); border-color: var(--brand-deep); }
.btn { min-width: 0; }
.btn.primary:disabled, .btn.outline:disabled, .btn.soft:disabled, .btn.ghost:disabled { opacity: .55; }
.btn.primary:disabled { background: var(--brand-deep); color: white; }
.btn.soft:disabled { background: var(--brand-soft); color: var(--brand-deep); }
.btn.outline:disabled, .btn.ghost:disabled { color: #535967; border-color: var(--line); }
.card h2.clock-title { font-size: 24px; }
.nav-link:focus-visible, .tab:focus-visible, .weekday:focus-within, summary:focus-visible { outline: 3px solid #eb90a6; outline-offset: 2px; }
.ic { pointer-events: none; }
.main-wrap > .page :is([data-status], [data-feedback], [data-month-status], [data-day-status], [data-correction-status], [data-sync-feedback]):empty { display: none; }
.status { max-width: 100%; }
.profile-actions { min-width: 0; }
.avatar { flex: none; }
.date-control { position: relative; }
.date-control .ic { position: absolute; top: 12px; left: 11px; color: var(--muted); }
.date-control input { padding-left: 36px; }
.goal-top .goal-title { margin-top: 7px; }
.calendar-layout { align-items: start; }
.calendar-weekday { color: #a2a7af; font-size: 10px; text-align: center; font-weight: 790; }
.cal-note.alert-note { color: #9a632e; }
.day-details { position: relative; }
.day-details .section-top { padding-right: 38px; }
.close-day { position: absolute; top: 24px; right: 18px; width: 28px; height: 28px; }
.close-day .ic { width: 14px; height: 14px; }
.day-details h2, .day-badges { margin-top: 7px; }
.day-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.day-metrics strong { display: block; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.day-metrics > :last-child { text-align: right; }
.day-evidence { margin-top: 14px; font-size: 12px; color: #606876; }
.day-totals { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.timeline-main small { text-align: right; }
.details-foot .btn { margin-left: auto; }
.clock-actions { min-width: 0; }
.clock-actions select { padding-inline: 10px; }
.quick-row { margin-bottom: 0; }
.quick-row .alert { margin: 0; }
.team-toolbar { flex-direction: row; }
.filter-options { color: #606876; font-size: 12px; }
.filter-options summary, .policy-defaults summary, .policy-mappings summary { cursor: pointer; font-weight: 650; }
.filter-options[open] { flex-basis: 100%; }
.report-options { grid-column: 1 / -1; }
.filter-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-block: 9px; }
.filter-fields label { margin: 0; }
.filter-feedback { margin-block: 12px; }
[data-view="today"] .grid-5:has(> :nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi dd { margin: 0; }
.kpi strong { overflow-wrap: anywhere; }
.pager .ic { margin: auto; width: 15px; height: 15px; }
.person-button { border: 0; background: transparent; padding: 0; text-align: start; min-width: 0; }
.person-button:hover strong { color: var(--brand-deep); text-decoration: underline; }
.person-button:focus-visible { outline-offset: 4px; }
.data-table .person strong { white-space: normal; overflow-wrap: anywhere; }
.data-table td.record-note { min-width: 60px; max-width: 170px; white-space: normal; }
.data-table .record-note span, .table-notes { color: #767d87; font-size: 10px; }
.table-notes { display: block; white-space: normal; margin-top: 4px; max-width: 180px; }
.report-toolbar .form-label { margin-bottom: 0; }
.report-toolbar .form-label > :is(input, select) { display: block; margin-top: 7px; }
.report-zones { margin-top: 18px; margin-bottom: 0; }
.axis-labels > span { flex: 1; text-align: center; }
.bar.zero-bar { min-height: 0; }
.chart-empty { min-height: 190px; display: grid; place-items: center; }
.donut { background: #f2edf0; }
.weekday { cursor: pointer; }
.weekday:has(input:checked) { color: #b21c3c; border-color: #f6b2c1; background: #fff0f3; }
.weekday:has(input:disabled) { cursor: default; }
.settings-head .hint { margin: 3px 0 0; }
.settings-fields .form-label .field { display: block; margin-top: 7px; }
.policy-dates, .policy-rules { margin-top: 16px; }
.policy-mappings[open] > summary { margin-bottom: 15px; }
.settings-employee-search { flex-wrap: wrap; align-items: end; }
.settings-employee-search .field-wrap { min-width: 175px; }
.employee-inactive { flex-basis: 100%; }
.directory-records { padding: 0; margin: 0; list-style: none; }
.directory-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; border-top: 1px solid #f1eaf0; padding: 12px 0; }
.directory-row .person { padding: 0; border: 0; }
.directory-row .person small { white-space: normal; overflow-wrap: anywhere; }
.directory-actions { display: flex; gap: 8px; align-items: center; }
.sync-controls { margin-bottom: 17px; }
.sync-controls p { margin-bottom: 4px; }
.sync-stats { margin: 16px 0 0; }
.integration-stat { display: flex; flex-direction: column; }
.integration-stat dd { order: 1; margin: 5px 0; font-size: 25px; font-weight: 760; letter-spacing: -.045em; }
.integration-stat small { order: 2; }
.sync-history dt { font-size: 10px; color: #767e88; }
.sync-history dd { margin: 4px 0 0; font-weight: 650; font-size: 12px; overflow-wrap: anywhere; }
.sync-secondary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.correction-interval { display: grid; gap: .5rem; margin-bottom: .5rem; }
.correction-interval button { justify-self: start; align-self: end; }
.modal .btn { white-space: normal; }
.modal-content { border-color: var(--line); border-radius: 14px; }

@media (min-width: 768px) {
    .correction-interval { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
    .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .mobile-bottom { grid-template-columns: 1fr; }
    .mobile-bottom.is-admin:has(a[data-admin]:not([hidden])) { grid-template-columns: repeat(4, 1fr); }
    .mobile-brand img { max-width: none; min-height: 0; }
    .report-toolbar > * { min-width: 0; }
}
@media (max-width: 740px) {
    .card h2.clock-title { font-size: 22px; }
    .calendar-card .section-top { flex-wrap: wrap; }
    .calendar-controls .ic { width: 15px; height: 15px; }
    .grid-5, [data-view="today"] .grid-5:has(> :nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .clock-actions .select { width: min(128px, 34vw); }
    .responsive-records { display: block; padding-inline: 16px; white-space: normal; }
    .responsive-records tbody { display: block; }
    .responsive-records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .responsive-records tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 7px; border-top: 1px solid #f1edf0; padding: 15px 0; }
    .responsive-records td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; font-size: 12px; }
    .responsive-records td[data-label]::before { content: attr(data-label); display: block; color: #767e88; font-size: 10px; font-weight: 600; margin-bottom: 3px; }
    .responsive-records td:first-child { grid-column: 1 / 3; align-self: center; }
    .responsive-records td:first-child::before, .activity-table td:nth-child(2)::before, .report-rows td:nth-child(7)::before { content: none; }
    .activity-table td:nth-child(2), .report-rows td:nth-child(7) { grid-area: 1 / 3; justify-self: end; align-self: center; }
    .responsive-records td.record-note { grid-column: 1 / -1; max-width: none; }
    .report-rows td:nth-child(2) { grid-column: 1 / -1; }
    .report-rows .table-notes { text-align: right; }
    .directory-schedule { display: none; }
    .directory-actions { flex-wrap: wrap; justify-content: end; }
    .settings-actions { flex-wrap: wrap; }
    .sync-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .integration-stat { padding: 9px; }
    .close-day { top: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.report-search { display: flex; gap: 4px; align-items: center; min-width: 0; }
.report-search .field-wrap { min-width: 0; max-width: 230px; }
.report-search .btn { flex: none; padding-inline: 6px; }
.reports-card .empty-state { margin-bottom: 0; }
@media (max-width: 740px) {
    .report-search { width: 49%; }
    .report-search .field { padding-left: 28px; font-size: 11px; }
    .report-search .field-wrap .ic { left: 8px; width: 14px; }
}

.clock-action { display: flex; align-items: center; gap: 8px; }
.clock-action .select { width: 104px; }
.clock-action .btn { padding-inline: 11px; }
.clock-short-label { display: none; }
.btn.soft:disabled { border-color: transparent; }
.weekday { position: relative; }
.weekday-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
@media (max-width: 740px) {
    .clock-action.changeWorkMode .ic, .clock-full-label { display: none; }
    .clock-short-label { display: inline; }
    .clock-action .select { width: 95px; }
    .clock-action .btn { padding-inline: 10px; }
    .settings-tabs .tab { flex: 1; justify-content: center; gap: 5px; padding-inline: 6px; font-size: 10.5px; }
    .settings-tabs .tab .ic { width: 13px; height: 13px; }
}
