:root {
  font-family: "DM Sans", sans-serif;
  color: #24233a;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #89899b;
  --line: #ececf2;
  --purple: #6a5be8;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; min-height: 100vh; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid #eeeff4; bottom: 0; display: flex; flex-direction: column; left: 0; padding: 27px 17px 18px; position: fixed; top: 0; width: 246px; z-index: 4; }
.brand { align-items: center; color: #25243b; display: flex; font: 800 21px Manrope, sans-serif; gap: 10px; letter-spacing: -1.2px; margin: 0 0 43px 9px; text-decoration: none; }
.brand-light { color: #8884a4; font-weight: 500; }
.brand-mark { align-items: flex-end; display: flex; gap: 2px; height: 23px; transform: skewY(-20deg); width: 22px; }
.brand-mark span { background: #6c5ce7; border-radius: 3px; display: block; height: 15px; width: 6px; }
.brand-mark span:nth-child(2) { background: #9c91fb; height: 21px; }
.brand-mark span:nth-child(3) { background: #d3ceff; height: 12px; }
.workspace-label { color: #a4a4b2; font-size: 9px; font-weight: 700; letter-spacing: 1.45px; margin: 0 0 12px 11px; }
.main-nav { display: grid; gap: 4px; }
.nav-link { align-items: center; background: transparent; border: 0; border-radius: 8px; color: #777789; cursor: pointer; display: flex; font-size: 12px; font-weight: 500; gap: 12px; min-height: 42px; padding: 0 11px; text-align: left; width: 100%; }
.nav-link:hover { background: #f8f7ff; color: #5345c8; }
.nav-link.active { background: #f1efff; color: #5f51db; font-weight: 700; }
.nav-icon { color: #9a99aa; font-size: 17px; line-height: 1; text-align: center; width: 17px; }
.active .nav-icon { color: #6858e5; }
.nav-count { background: #f3f2f8; border-radius: 7px; color: #89889a; font-size: 10px; margin-left: auto; padding: 3px 7px; }
.nav-dot { background: #f5a46f; border-radius: 50%; height: 6px; margin-left: auto; width: 6px; }
.sidebar-bottom { margin-top: auto; }
.help-card { background: #f8f7ff; border: 1px solid #f0effb; border-radius: 10px; margin: 0 2px 21px; padding: 14px 13px 12px; position: relative; }
.help-orb { align-items: center; background: #e8e4ff; border-radius: 8px; color: #6b5ae6; display: flex; font-size: 13px; height: 26px; justify-content: center; margin-bottom: 11px; width: 27px; }
.help-card strong, .help-card span { display: block; }
.help-card strong { font-size: 11px; margin-bottom: 4px; }
.help-card > span { color: #9291a2; font-size: 10px; line-height: 1.55; }
.help-card button { background: none; border: 0; color: #6656dd; cursor: pointer; font-size: 10px; font-weight: 700; margin-top: 11px; padding: 0; }
.help-card button span { display: inline; margin-left: 4px; }
.settings-link { margin-bottom: 15px; }
.sidebar-user { align-items: center; border-top: 1px solid #efeff4; display: flex; gap: 9px; padding: 17px 2px 0; }
.avatar { align-items: center; border-radius: 50%; display: inline-flex; flex: 0 0 auto; font-size: 10px; font-weight: 700; height: 32px; justify-content: center; width: 32px; }
.avatar-purple { background: #eeeaff; color: #6c5bdc; }
.avatar-peach { background: #ffede3; color: #c97e57; }
.avatar-blue { background: #e6f0ff; color: #5681bc; }
.avatar-green { background: #e4f6ed; color: #4a9b71; }
.avatar-yellow { background: #fff5d8; color: #a88328; }
.user-meta { display: grid; flex: 1; gap: 3px; min-width: 0; }
.user-meta strong { font-size: 10px; }
.user-meta span { color: #9a99a9; font-size: 9px; }
.more-button, .row-more { background: none; border: 0; color: #9796a6; cursor: pointer; font-size: 18px; letter-spacing: 1px; }
.main-area { margin-left: 246px; min-height: 100vh; }
.topbar { align-items: center; background: rgba(255,255,255,.92); border-bottom: 1px solid #eeeff4; display: flex; height: 66px; justify-content: space-between; padding: 0 39px; position: sticky; top: 0; z-index: 3; }
.breadcrumb { color: #9a99aa; font-size: 11px; }
.breadcrumb span { color: #c3c2cd; margin: 0 8px; }
.breadcrumb strong { color: #37364a; font-weight: 600; }
.top-actions { align-items: center; display: flex; gap: 19px; }
.search-wrap { align-items: center; background: #f8f8fb; border: 1px solid #efeff4; border-radius: 7px; color: #9a99a8; display: flex; gap: 9px; height: 34px; padding: 0 9px; width: 219px; }
.search-wrap > span { font-size: 18px; transform: rotate(-20deg); }
.search-wrap input { background: none; border: 0; color: #3b394b; font-size: 10px; min-width: 0; outline: 0; width: 100%; }
.search-wrap input::placeholder { color: #aaa9b6; }
kbd { border: 1px solid #e8e7ed; border-radius: 4px; color: #aaa9b6; font: 9px "DM Sans",sans-serif; padding: 2px 4px; white-space: nowrap; }
.icon-button { background: transparent; border: 0; color: #89889a; cursor: pointer; font-size: 18px; position: relative; }
.notification-button i { background: #fa947b; border: 2px solid #fff; border-radius: 50%; height: 7px; position: absolute; right: 0; top: 1px; width: 7px; }
.top-avatar { height: 29px; width: 29px; }
.mobile-menu { display: none; }
.content { margin: 0 auto; max-width: 1460px; padding: 33px 39px 18px; }
.welcome-row { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 24px; }
.eyebrow { align-items: center; color: #a0a0ad; display: flex; font-size: 9px; font-weight: 700; gap: 7px; letter-spacing: 1.05px; margin-bottom: 10px; }
.eyebrow-dot { background: #83cda5; border-radius: 50%; height: 6px; width: 6px; }
h1, h2, p { margin: 0; }
h1 { color: #27263d; font: 700 24px Manrope, sans-serif; letter-spacing: -.8px; }
h1 span { color: #f2b66e; font-size: 16px; vertical-align: 3px; }
.subtitle { color: #9695a5; font-size: 11px; margin-top: 7px; }
.welcome-actions { display: flex; gap: 9px; }
.button { align-items: center; border: 1px solid transparent; border-radius: 7px; cursor: pointer; display: inline-flex; font-size: 10px; font-weight: 600; gap: 7px; height: 35px; justify-content: center; padding: 0 12px; }
.button-outline { background: #fff; border-color: #eaeaf0; color: #5d5c6e; }
.button-outline:hover { background: #fafaff; }
.button-primary { background: #6a5be8; box-shadow: 0 3px 8px #6a5be82b; color: #fff; }
.button-primary:hover { background: #5d4ed9; }
.button-primary span { font-size: 15px; font-weight: 400; }
.stats-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.stat-card, .panel { background: #fff; border: 1px solid #eeeef3; border-radius: 10px; }
.stat-card { min-height: 142px; overflow: hidden; padding: 15px 16px 13px; position: relative; }
.stat-top { align-items: center; color: #898899; display: flex; font-size: 10px; justify-content: space-between; }
.stat-icon { align-items: center; border-radius: 7px; display: flex; font-size: 14px; height: 27px; justify-content: center; width: 27px; }
.icon-lilac { background: #f0edff; color: #7564e6; }
.icon-mint { background: #e7f7ef; color: #56ae7a; }
.icon-peach { background: #fff1e9; color: #e3986d; }
.icon-blue { background: #eaf3ff; color: #6795d0; }
.stat-value { color: #29283e; font: 700 25px Manrope, sans-serif; letter-spacing: -1px; margin-top: 8px; }
.stat-fraction { color: #aaa9b6; font: 500 11px "DM Sans",sans-serif; letter-spacing: 0; }
.stat-note { align-items: center; color: #a09fad; display: flex; font-size: 9px; gap: 5px; margin-top: 5px; }
.trend { color: #55a879; font-weight: 700; }
.neutral { color: #d58e61; font-weight: 700; }
.mini-bars { align-items: flex-end; bottom: 13px; display: flex; gap: 4px; height: 25px; opacity: .63; position: absolute; right: 14px; }
.mini-bars i { background: #b6aefc; border-radius: 2px 2px 0 0; height: 35%; width: 5px; }
.mini-bars i:nth-child(3n) { height: 73%; }
.mini-bars i:nth-child(3n + 1) { height: 52%; }
.mini-bars i:nth-child(4n) { height: 96%; }
.progress-track { background: #f1f0f8; border-radius: 4px; height: 4px; margin-top: 12px; overflow: hidden; width: 82%; }
.progress-track span { background: #76c699; border-radius: 4px; display: block; height: 100%; }
.leave-avatars { align-items: center; display: flex; margin-top: 11px; }
.leave-avatars .avatar { border: 2px solid white; height: 22px; margin-left: -5px; width: 22px; font-size: 7px; }
.leave-avatars .avatar:first-child { margin-left: 0; }
.leave-avatars small { color: #aaa9b6; font-size: 9px; margin-left: 6px; }
.position-tags { display: flex; gap: 5px; margin-top: 11px; }
.position-tags span { background: #f7f7fb; border-radius: 4px; color: #9897a7; font-size: 8px; padding: 4px 5px; white-space: nowrap; }
.position-tags b { color: #68677b; font-size: 8px; margin-left: 3px; }
.middle-grid { display: grid; gap: 15px; grid-template-columns: minmax(0, 1.48fr) minmax(310px, 1fr); margin-bottom: 16px; }
.panel { padding: 17px 18px; }
.panel-heading { align-items: flex-start; display: flex; justify-content: space-between; }
h2 { color: #333247; font: 700 12px Manrope, sans-serif; letter-spacing: -.15px; }
.panel-heading p { color: #a09fad; font-size: 9px; margin-top: 5px; }
.select-button { align-items: center; background: #fff; border: 1px solid #ececf1; border-radius: 6px; color: #717082; cursor: pointer; display: inline-flex; font-size: 9px; gap: 11px; height: 28px; justify-content: space-between; padding: 0 8px; white-space: nowrap; }
.select-button span { color: #aaa9b6; font-size: 13px; }
.chart-legend { color: #9796a5; display: flex; font-size: 9px; gap: 14px; margin: 20px 0 4px 31px; }
.chart-legend span { align-items: center; display: inline-flex; gap: 5px; }
.chart-legend i { border-radius: 2px; height: 7px; width: 7px; }
.legend-present { background: #7566e8; }
.legend-absent { background: #f4b39b; }
.legend-leave { background: #a9e3c2; }
.chart-area { display: flex; height: 143px; }
.chart-y-labels { color: #aaa9b5; display: flex; flex: 0 0 26px; flex-direction: column; font-size: 8px; justify-content: space-between; padding: 10px 0 20px; }
.chart-main { flex: 1; min-width: 0; position: relative; }
.chart-gridlines { bottom: 22px; display: flex; flex-direction: column; justify-content: space-between; left: 0; position: absolute; right: 0; top: 9px; }
.chart-gridlines i { border-top: 1px dashed #eeeef3; }
.bar-chart { align-items: flex-end; bottom: 0; display: flex; justify-content: space-around; left: 0; position: absolute; right: 0; top: 9px; }
.chart-day { align-items: center; display: flex; flex: 1; flex-direction: column; height: 100%; justify-content: flex-end; }
.chart-day > span { color: #9b9aa9; font-size: 8px; height: 19px; padding-top: 7px; }
.chart-day.current-day > span { color: #6657de; font-weight: 700; }
.stack { align-items: center; display: flex; flex-direction: column-reverse; gap: 2px; height: calc(100% - 19px); justify-content: flex-start; width: 19px; }
.stack i { border-radius: 3px; display: block; max-height: 100%; min-height: 0; width: 100%; }
.stack .present { background: #7869e9; }
.stack .leave { background: #a9e3c2; }
.stack .absent { background: #f4b39b; }
.sparkle { align-items: center; background: #f5f3ff; border-radius: 7px; color: #8d7bf2; display: flex; font-size: 14px; height: 28px; justify-content: center; width: 28px; }
.quick-actions { margin-top: 9px; }
.quick-action { align-items: center; background: transparent; border: 0; border-bottom: 1px solid #f1f0f5; cursor: pointer; display: flex; gap: 10px; min-height: 47px; padding: 6px 0; text-align: left; width: 100%; }
.quick-action:last-child { border-bottom: 0; }
.quick-action:hover strong { color: #6454d8; }
.quick-icon { align-items: center; border-radius: 7px; display: flex; flex: 0 0 auto; font-size: 13px; height: 30px; justify-content: center; width: 30px; }
.quick-purple { background: #f0edff; color: #7564e6; }
.quick-orange { background: #fff2e9; color: #e39b6d; }
.quick-green { background: #eaf7ef; color: #57aa79; }
.quick-blue { background: #ecf4ff; color: #6997d3; }
.quick-action > span:nth-child(2) { display: grid; flex: 1; gap: 3px; }
.quick-action strong { color: #4c4b5e; font-size: 9px; font-weight: 600; }
.quick-action small { color: #a09fad; font-size: 8px; }
.quick-action > b { color: #aaa9b6; font-size: 11px; font-weight: 500; }
.quick-action .action-badge { background: #fff2e9; border-radius: 9px; color: #d8875f; font-size: 8px; padding: 3px 6px; }
.employees-panel { padding: 17px 18px 0; }
.employee-heading { align-items: center; margin-bottom: 15px; }
.table-actions { align-items: center; display: flex; gap: 14px; }
.text-button { background: none; border: 0; color: #6658d9; cursor: pointer; font-size: 9px; font-weight: 600; padding: 5px 0; white-space: nowrap; }
.text-button span { margin-left: 3px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; min-width: 680px; text-align: left; width: 100%; }
thead { background: #fafafd; }
th { color: #a3a2af; font-size: 8px; font-weight: 600; letter-spacing: .55px; padding: 10px 9px; }
th:first-child { border-radius: 5px 0 0 5px; padding-left: 11px; }
th:last-child { border-radius: 0 5px 5px 0; }
td { border-bottom: 1px solid #f2f1f6; color: #858495; font-size: 9px; padding: 9px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.employee-cell { align-items: center; display: flex; gap: 9px; }
.employee-cell .avatar { height: 28px; width: 28px; }
.employee-cell > span:last-child { display: grid; gap: 3px; }
.employee-cell strong { color: #49485a; font-size: 9px; font-weight: 600; }
.employee-cell small { color: #a4a3b0; font-size: 8px; }
.status { align-items: center; border-radius: 10px; display: inline-flex; font-size: 8px; gap: 5px; padding: 4px 7px; }
.status i { border-radius: 50%; height: 5px; width: 5px; }
.status-present { background: #eaf7ef; color: #5a9d73; }
.status-present i { background: #6cbd88; }
.status-leave { background: #fff4ea; color: #c48959; }
.status-leave i { background: #e6a370; }
.row-more { font-size: 15px; }
.table-footer { align-items: center; border-top: 1px solid #f0eff4; color: #a0a0ad; display: flex; font-size: 8px; justify-content: space-between; padding: 11px 0; }
.table-footer strong { color: #737285; font-weight: 600; }
.pagination-button { background: #fff; border: 1px solid #ececf2; border-radius: 5px; color: #9a99a8; cursor: pointer; font-size: 14px; height: 24px; margin-left: 5px; width: 25px; }
.pagination-button:disabled { color: #d0cfda; cursor: default; }
.next-page:hover { border-color: #c5bef7; color: #6758dc; }
.empty-state { color: #9a99a8; font-size: 10px; padding: 25px 10px; text-align: center; }
.page-footer { align-items: center; color: #aaa9b6; display: flex; font-size: 8px; justify-content: space-between; padding: 16px 2px 0; }
.page-footer b { color: #ee9b87; font-size: 10px; }
.connection-status { align-items: center; display: inline-flex; gap: 5px; }
.connection-status i { background: #d5ad60; border-radius: 50%; height: 5px; width: 5px; }
.connection-status.connected i { background: #68bc87; }
.toast { background: #29283e; border-radius: 7px; bottom: 22px; box-shadow: 0 5px 20px #25243b30; color: white; font-size: 11px; left: 50%; opacity: 0; padding: 11px 16px; pointer-events: none; position: fixed; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; z-index: 10; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1500px) { .content { padding-left: 48px; padding-right: 48px; } }
@media (max-width: 1080px) {
  .sidebar { width: 210px; }
  .main-area { margin-left: 210px; }
  .content { padding-left: 24px; padding-right: 24px; }
  .topbar { padding: 0 24px; }
  .stats-grid { gap: 9px; }
  .stat-card { padding-left: 12px; padding-right: 12px; }
  .position-tags { gap: 3px; }
  .position-tags span { font-size: 7px; padding-left: 4px; padding-right: 4px; }
  .middle-grid { grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); }
}
@media (max-width: 790px) {
  .sidebar { box-shadow: 8px 0 20px #25243b0c; transform: translateX(-105%); transition: transform .2s; width: 246px; }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .mobile-menu { background: none; border: 0; color: #6b6a7c; cursor: pointer; display: inline-flex; font-size: 18px; padding: 5px; }
  .topbar { gap: 10px; height: 58px; padding: 0 17px; }
  .breadcrumb { flex: 1; }
  .content { padding: 25px 17px 15px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .middle-grid { grid-template-columns: 1fr; }
  .quick-panel { min-height: 260px; }
  .top-actions { gap: 11px; }
  .search-wrap { width: min(185px, 32vw); }
}
@media (max-width: 520px) {
  .topbar { padding: 0 12px; }
  .top-actions { gap: 7px; }
  .search-wrap { border: 0; background: transparent; padding: 0 3px; width: 35px; }
  .search-wrap input, .search-wrap kbd { display: none; }
  .search-wrap:focus-within { background: #f8f8fb; border: 1px solid #efeff4; padding: 0 8px; width: 150px; }
  .search-wrap:focus-within input { display: block; }
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  h1 { font-size: 21px; }
  .welcome-actions { width: 100%; }
  .welcome-actions .button { flex: 1; }
  .content { padding: 22px 12px 14px; }
  .panel { padding-left: 13px; padding-right: 13px; }
  .employees-panel { padding-left: 12px; padding-right: 12px; }
  .employee-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .table-actions { justify-content: space-between; width: 100%; }
  .chart-legend { gap: 9px; margin-left: 26px; }
  .chart-legend span { gap: 4px; }
  .page-footer { gap: 8px; }
  .page-footer > span:nth-child(2) { display: none; }
}
