:root {
  --ink: #1d2e2b;
  --muted: #76827d;
  --line: #e6e9e4;
  --surface: #ffffff;
  --canvas: #f7f8f5;
  --mint: #cdeedc;
  --mint-strong: #2e8d60;
  --mint-dark: #174d39;
  --coral: #f4d4cc;
  --coral-strong: #c65b4c;
  --yellow: #f3e4a7;
  --shadow: 0 16px 40px rgba(38, 54, 48, 0.06);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 232px; flex: 0 0 232px; background: #eef1ec; border-right: 1px solid #e5e9e4; padding: 26px 15px 20px; display: flex; flex-direction: column; }
.brand, .mobile-brand { display: flex; align-items: center; gap: 11px; }
.brand { padding: 0 12px 42px; }
.brand strong, .mobile-brand strong { display: block; font: 800 16px/1.1 "Manrope", sans-serif; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.brand-mark { width: 34px; height: 34px; border-radius: 12px; background: var(--ink); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 8px; }
.brand-mark span { display: block; width: 4px; border-radius: 3px; background: var(--mint); }
.brand-mark span:nth-child(1) { height: 9px; opacity: .65; }.brand-mark span:nth-child(2) { height: 15px; }.brand-mark span:nth-child(3) { height: 12px; opacity: .8; }
.side-nav { display: grid; gap: 5px; }
.nav-item { appearance: none; border: 0; background: transparent; color: #81908a; text-align: left; padding: 12px 14px; border-radius: 11px; display: flex; align-items: center; gap: 12px; font-size: 13px; transition: .2s ease; }
.nav-item:hover { background: #e5eae3; color: var(--ink); }.nav-item.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 4px 12px rgba(52, 68, 59, .05); font-weight: 600; }
.nav-icon { width: 18px; text-align: center; font-size: 17px; color: #94a19b; }.nav-item.is-active .nav-icon { color: var(--mint-strong); }
.sidebar-foot { margin-top: auto; display: grid; gap: 15px; padding: 0 10px; }.sync-status { color: #81908a; font-size: 11px; display: flex; align-items: center; gap: 7px; }.status-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--mint-strong); box-shadow: 0 0 0 4px rgba(46, 141, 96, .1); }.settings-button { color: var(--muted); background: none; border: 0; text-align: left; font-size: 11px; padding: 0; }.settings-button span { font-size: 15px; margin-right: 5px; }
.main-content { min-width: 0; flex: 1; }.topbar { height: 72px; max-width: 1240px; margin: 0 auto; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; }.mobile-brand { display: none; }.topbar-date { font-size: 12px; color: var(--muted); }.topbar-actions { display: flex; align-items: center; gap: 12px; }.icon-button, .avatar { width: 34px; height: 34px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }.avatar { border: 0; background: var(--yellow); color: #75672e; font-weight: 700; }
.view-container { max-width: 1240px; margin: 0 auto; padding: 35px 42px 80px; }.view { display: none; animation: fadeIn .25s ease; }.view.is-visible { display: block; }@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 29px; }.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: #94a19b; font-size: 10px; font-weight: 700; margin: 0 0 8px; }.page-heading h1 { font: 800 31px/1.12 "Manrope", sans-serif; letter-spacing: -.045em; margin: 0; }.page-description { color: var(--muted); font-size: 13px; margin: 9px 0 0; }.primary-button, .secondary-button, .submit-button { border: 0; border-radius: 12px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; }.primary-button { padding: 13px 17px; color: white; background: var(--ink); box-shadow: 0 8px 16px rgba(29,46,43,.14); }.primary-button:hover, .submit-button:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(29,46,43,.17); }.primary-button span { font-size: 18px; vertical-align: -1px; margin-right: 3px; }.secondary-button { padding: 12px 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }.secondary-button:hover { background: #f0f3ef; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(160px, .8fr)); gap: 14px; }.balance-card { min-height: 204px; padding: 25px 26px 22px; color: white; border-radius: var(--radius); background: var(--ink); box-shadow: var(--shadow); position: relative; overflow: hidden; }.balance-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -65px; top: -75px; border-radius: 50%; background: rgba(205,238,220,.08); }.balance-card-top { color: #a5b5ad; font-size: 12px; display: flex; justify-content: space-between; position: relative; z-index: 1; }.balance-period { color: #82938b; font-size: 10px; }.balance-value-row { display: flex; align-items: center; gap: 12px; margin: 25px 0 7px; position: relative; z-index: 1; }.balance-value-row strong { font: 800 45px/1 "Manrope", sans-serif; letter-spacing: -.07em; }.balance-chip { font-size: 10px; font-weight: 700; color: #1d4c38; background: var(--mint); padding: 5px 8px; border-radius: 99px; }.balance-card p { position: relative; z-index: 1; color: #9caaa3; margin: 0; font-size: 12px; max-width: 310px; }.balance-bar { height: 4px; background: rgba(255,255,255,.12); border-radius: 10px; position: absolute; bottom: 22px; left: 26px; right: 26px; overflow: hidden; }.balance-bar span { display: block; height: 100%; width: 3%; border-radius: inherit; background: var(--mint); transition: width .4s ease; }.metric-card { border-radius: var(--radius); background: var(--surface); border: 1px solid #edf0ec; min-height: 204px; padding: 24px 19px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }.metric-icon { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; }.overtime-card .metric-icon { background: #e5f5eb; color: var(--mint-strong); }.absence-card .metric-icon { background: #fae9e5; color: var(--coral-strong); }.metric-card span { font-size: 11px; color: var(--muted); display: block; }.metric-card strong { display: block; font: 800 24px/1.2 "Manrope", sans-serif; letter-spacing: -.05em; margin: 7px 0 4px; }.overtime-card strong { color: var(--mint-strong); }.absence-card strong { color: var(--coral-strong); }.metric-card small { color: #a4aea9; font-size: 10px; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 35px; }.quick-action { min-height: 78px; border: 0; border-radius: 16px; padding: 15px 18px; display: flex; text-align: left; align-items: center; gap: 14px; transition: transform .2s, box-shadow .2s; }.quick-action:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(40,53,46,.08); }.quick-overtime { color: #245c42; background: var(--mint); }.quick-absence { color: #854d45; background: var(--coral); }.action-symbol { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.42); font-size: 23px; font-weight: 400; }.quick-action strong { display: block; font-size: 13px; }.quick-action small { display: block; opacity: .68; font-size: 10px; margin-top: 3px; }.action-arrow { margin-left: auto; font-size: 19px; opacity: .58; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr); gap: 16px; }.panel { background: var(--surface); border: 1px solid #edf0ec; border-radius: var(--radius); box-shadow: var(--shadow); }.calendar-panel, .recent-panel { padding: 23px 24px 20px; }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }.panel-heading h2 { font: 700 17px/1.2 "Manrope", sans-serif; letter-spacing: -.03em; margin: 0; }.month-controls { display: flex; gap: 5px; }.round-button { border: 0; background: #f3f5f1; color: var(--muted); border-radius: 9px; width: 27px; height: 27px; }.round-button:hover { background: #e7ece7; color: var(--ink); }.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }.calendar-weekdays { color: #a2ada7; font-size: 10px; text-align: center; margin-bottom: 7px; }.calendar-grid { gap: 5px; }.calendar-day { min-height: 47px; border: 1px solid transparent; border-radius: 10px; background: #fafbf9; padding: 6px; text-align: left; color: var(--ink); position: relative; }.calendar-day:hover { border-color: #cbd7ce; }.calendar-day.is-other { color: #b9c2bd; background: transparent; }.calendar-day.is-today { border-color: var(--mint-strong); }.day-number { font-size: 11px; }.day-event { display: block; margin-top: 6px; border-radius: 4px; padding: 2px 3px; font-size: 9px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.day-event.positive { color: var(--mint-strong); background: #e5f5eb; }.day-event.negative { color: var(--coral-strong); background: #fae9e5; }.calendar-grid-large .calendar-day { min-height: 92px; padding: 9px; }.calendar-grid-large .day-number { font-size: 13px; }.calendar-grid-large .day-event { margin-top: 13px; font-size: 11px; padding: 5px 6px; }.calendar-legend { display: flex; gap: 18px; margin-top: 19px; color: #91a098; font-size: 10px; }.calendar-legend span { display: flex; align-items: center; gap: 6px; }.legend-dot { width: 7px; height: 7px; border-radius: 50%; }.positive-dot { background: var(--mint-strong); }.negative-dot { background: var(--coral-strong); }
.text-button { border: 0; background: transparent; color: var(--mint-strong); padding: 2px 0; font-size: 11px; }.text-button span { font-size: 15px; vertical-align: -1px; margin-left: 4px; }.entry-list { display: grid; }.entry-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #f0f2ef; }.entry-row:last-child { border-bottom: 0; }.entry-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; flex: 0 0 auto; }.entry-mark.positive { color: var(--mint-strong); background: #e5f5eb; }.entry-mark.negative { color: var(--coral-strong); background: #fae9e5; }.entry-main { min-width: 0; flex: 1; }.entry-main strong { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.entry-main small { display: block; color: #9aa7a1; font-size: 10px; margin-top: 3px; }.entry-hours { font: 700 13px "Manrope", sans-serif; }.entry-hours.positive { color: var(--mint-strong); }.entry-hours.negative { color: var(--coral-strong); }.empty-state { color: #9ba7a1; font-size: 12px; text-align: center; padding: 38px 10px; }.empty-state strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 5px; }
.calendar-page-panel { padding: 26px; }.report-toolbar { margin-bottom: 17px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }.field-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }.period-buttons { display: flex; gap: 6px; }.period-button { border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; font-size: 11px; color: var(--muted); background: #fbfcfb; }.period-button.is-active { border-color: var(--ink); background: var(--ink); color: white; }.report-summary { display: flex; align-items: center; gap: 19px; }.report-summary div { text-align: right; }.report-summary span { display: block; color: var(--muted); font-size: 10px; }.report-summary strong { display: block; font: 700 18px "Manrope", sans-serif; margin-top: 4px; }.report-summary .summary-positive { color: var(--mint-strong); }.report-summary .summary-negative { color: var(--coral-strong); }.report-panel { padding: 23px 24px; }.entry-count { color: var(--muted); font-size: 11px; }.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; font-size: 12px; }th { color: #98a49e; text-align: left; font-size: 10px; font-weight: 500; padding: 0 11px 10px; border-bottom: 1px solid var(--line); }td { padding: 13px 11px; border-bottom: 1px solid #f0f2ef; white-space: nowrap; }td:first-child, th:first-child { padding-left: 0; }td:last-child, th:last-child { padding-right: 0; }.align-right { text-align: right; }.table-type { display: inline-flex; align-items: center; gap: 5px; }.table-type i { width: 6px; height: 6px; border-radius: 50%; }.table-type.positive i { background: var(--mint-strong); }.table-type.negative i { background: var(--coral-strong); }.table-hours.positive { color: var(--mint-strong); }.table-hours.negative { color: var(--coral-strong); }.delete-entry { border: 0; background: transparent; color: #b5bfba; font-size: 17px; padding: 0 0 0 8px; }.delete-entry:hover { color: var(--coral-strong); }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(25, 39, 35, .33); backdrop-filter: blur(5px); }.modal-backdrop[hidden] { display: none; }.modal { width: min(100%, 430px); max-height: calc(100vh - 40px); overflow-y: auto; position: relative; background: var(--surface); border-radius: 22px; padding: 28px; box-shadow: 0 25px 80px rgba(25,39,35,.2); }.modal-close { position: absolute; top: 15px; right: 16px; border: 0; background: transparent; color: #9eaaa4; font-size: 26px; line-height: 1; }.modal-header { display: flex; gap: 12px; align-items: center; margin-bottom: 25px; }.modal-header h2 { font: 800 22px "Manrope", sans-serif; letter-spacing: -.04em; margin: 0; }.modal-type-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; background: #e5f5eb; color: var(--mint-strong); font-size: 22px; }.modal.is-negative .modal-type-icon { background: #fae9e5; color: var(--coral-strong); }.field { display: block; margin-top: 16px; }.field > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; margin-bottom: 7px; }.field em { color: #b3bdb8; font-style: normal; font-size: 10px; }.field input, .field select, .field textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; color: var(--ink); outline: none; padding: 11px 12px; font-size: 13px; transition: .2s; }.field textarea { resize: vertical; min-height: 64px; }.field input:focus, .field select:focus, .field textarea:focus { border-color: #9fbea9; box-shadow: 0 0 0 3px rgba(46,141,96,.08); }.duration-row { display: flex; align-items: center; gap: 7px; }.duration-row input { width: 76px; text-align: center; }.duration-row > span { color: var(--muted); font-size: 12px; }.duration-presets { display: flex; gap: 5px; margin-top: 8px; }.duration-presets button { border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 8px; padding: 6px 9px; font-size: 10px; }.duration-presets button:hover { border-color: #a4c6b0; color: var(--mint-strong); }.form-error { min-height: 18px; color: var(--coral-strong); font-size: 11px; margin-top: 10px; }.submit-button { width: 100%; background: var(--ink); color: white; padding: 13px; margin-top: 8px; }.modal.is-negative .submit-button { background: #9b5046; }.toast { position: fixed; left: 50%; bottom: 26px; z-index: 30; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: white; padding: 11px 15px; border-radius: 10px; font-size: 12px; box-shadow: 0 10px 25px rgba(29,46,43,.18); transition: .25s ease; }.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 980px) { .sidebar { width: 196px; flex-basis: 196px; }.topbar, .view-container { padding-left: 27px; padding-right: 27px; }.overview-grid { grid-template-columns: 1fr 1fr; }.balance-card { grid-column: 1 / -1; min-height: 185px; }.content-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .app-shell { display: block; }.sidebar { display: none; }.topbar { height: 62px; padding: 0 17px; border-bottom: 1px solid var(--line); background: rgba(247,248,245,.9); }.mobile-brand { display: flex; }.mobile-brand .brand-mark { width: 29px; height: 29px; border-radius: 10px; padding: 7px; }.mobile-brand strong { font-size: 13px; }.topbar-date { display: none; }.topbar-actions { margin-left: auto; }.avatar { width: 31px; height: 31px; }.view-container { padding: 26px 17px 80px; }.page-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 22px; }.page-heading h1 { font-size: 26px; }.page-heading .primary-button, .page-heading .secondary-button { align-self: stretch; }.overview-grid { gap: 10px; }.balance-card { min-height: 190px; padding: 21px; }.balance-value-row { margin-top: 23px; }.balance-value-row strong { font-size: 38px; }.metric-card { min-height: 142px; padding: 17px; }.metric-card strong { font-size: 21px; }.quick-actions { gap: 9px; margin: 12px 0 26px; }.quick-action { padding: 12px; gap: 9px; min-height: 83px; flex-wrap: wrap; }.action-symbol { width: 30px; height: 30px; flex-basis: 30px; }.quick-action strong { font-size: 11px; }.quick-action small { font-size: 9px; }.action-arrow { display: none; }.calendar-panel, .recent-panel, .calendar-page-panel, .report-panel { padding: 18px 15px; }.panel-heading { margin-bottom: 17px; }.panel-heading h2 { font-size: 15px; }.calendar-day { min-height: 43px; padding: 5px 4px; }.day-event { margin-top: 5px; font-size: 8px; }.calendar-grid-large .calendar-day { min-height: 68px; padding: 6px; }.calendar-grid-large .day-event { margin-top: 8px; font-size: 9px; }.calendar-legend { margin-top: 14px; }.report-toolbar { display: block; padding: 15px; }.report-summary { justify-content: space-between; margin-top: 18px; }.report-summary div { text-align: left; }.table-wrap { margin: 0 -2px; }th, td { padding-left: 6px; padding-right: 6px; }.modal { padding: 24px 20px; }.modal-header { margin-bottom: 19px; } }
@media (max-width: 390px) { .metric-card { padding: 13px; }.metric-card small { font-size: 9px; }.balance-value-row strong { font-size: 34px; }.duration-presets { flex-wrap: wrap; } }
