:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; color: #18332a; background: #f3f1e8; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: max(18px, env(safe-area-inset-top)) clamp(18px,5vw,56px) 18px; background: #173b2c; color: #fff; border-bottom: 5px solid #d2a928; }
.topbar h1 { margin: 1px 0 0; font-size: clamp(24px,4vw,34px); }
.eyebrow { font-size: 11px; letter-spacing: .22em; color: #ead57b; font-weight: 800; }
.shell { width: min(1100px, calc(100% - 28px)); margin: 30px auto 60px; }
.card { background: #fff; border: 1px solid #dfe3dc; border-radius: 18px; padding: clamp(18px,4vw,30px); box-shadow: 0 8px 26px #173b2c10; }
.home { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,500px); gap: clamp(26px,7vw,90px); align-items: center; min-height: calc(100vh - 175px); }
.home-intro h2 { margin: 8px 0 12px; max-width: 600px; font-size: clamp(46px,7vw,78px); line-height: .98; letter-spacing: -.055em; }
.home-intro > p { max-width: 570px; color: #5e6f66; font-size: clamp(17px,2vw,21px); line-height: 1.55; }
.home-time { display: grid; gap: 2px; margin-top: 34px; }
.home-time strong { font-size: clamp(27px,4vw,42px); letter-spacing: -.03em; }
.home-time span { color: #68776f; }
.login { width: 100%; text-align: left; }
.login h3 { font-size: 28px; margin: 0 0 5px; }
.muted { color: #69766f; }
.field { display: grid; gap: 7px; text-align: left; margin: 22px 0; }
label { font-weight: 750; font-size: 14px; }
select, input, textarea { width: 100%; border: 1px solid #cbd3cc; border-radius: 10px; padding: 12px 13px; background: #fff; color: #18332a; }
.button { border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 800; cursor: pointer; background: #d2a928; color: #18332a; }
a.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.button.primary { background: #1d6447; color: #fff; }
.button.danger { background: #a64231; color: #fff; }
.button.secondary { background: #e8eee9; }
.button.ghost { background: transparent; border: 1px solid #ffffff80; color: #fff; }
.install-button { margin-left: auto; border: 1px solid #ead57b; border-radius: 10px; padding: 10px 14px; background: #d2a928; color: #18332a; font-weight: 850; white-space: nowrap; cursor: pointer; }
.install-button:active { transform: translateY(1px); }
.settings { position: relative; }
.settings-button { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid #ffffff70; border-radius: 11px; background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
.settings-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 210px; padding: 7px; border-radius: 11px; background: #fff; box-shadow: 0 12px 35px #071a1260; z-index: 8; }
.settings-menu button { width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: #f1f4f1; color: #18332a; font-weight: 750; text-align: left; cursor: pointer; }
.settings-menu button + button { margin-top: 5px; }
.settings-menu .danger-setting { background: #fff0ed; color: #9a3527; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.full { width: 100%; }
.hidden { display: none !important; }
.dashboard-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.dashboard-head h2 { font-size: 31px; margin: 0; }
.dashboard-head p { margin: 4px 0 0; }
.team-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 16px; }
.clock-card { grid-column: span 7; }
.balance-card { grid-column: span 5; background: #173b2c; color: #fff; }
.history-card { grid-column: 1/-1; }
.clock { font-size: clamp(42px,8vw,72px); font-weight: 850; letter-spacing: -.05em; margin: 8px 0; }
.status { display: inline-flex; border-radius: 999px; background: #e9f3ed; color: #1d6447; padding: 7px 11px; font-weight: 750; font-size: 13px; }
.status.on { background: #dff0e5; }
.status.break { background: #fff2c6; color: #7c5d00; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.break-panel { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e5eae6; }
.break-controls { display: grid; grid-template-columns: minmax(170px, 1fr) auto; gap: 9px; }
.break-panel .muted { font-size: 12px; }
.break-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.balance { font-size: 58px; font-weight: 850; letter-spacing: -.05em; margin: 12px 0 0; }
.balance span { font-size: 20px; color: #b8ccbf; letter-spacing: 0; }
.balance-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #ffffff30; }
.balance-details span, .balance-details strong { display: block; }
.balance-details span { color: #b8ccbf; font-size: 12px; margin-bottom: 4px; }
.balance-card .negative { color: #ffd0c7; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head h3 { margin: 0; font-size: 21px; }
.period-totals { display: flex; gap: 16px; text-align: right; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history-card table { min-width: 720px; }
th { color: #66746c; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid #dfe5df; padding: 10px 8px; }
td { padding: 12px 8px; border-bottom: 1px solid #edf0ed; white-space: nowrap; }
tfoot td { border-top: 2px solid #becbc2; border-bottom: 0; font-weight: 800; background: #f6f8f5; }
.today-row td { background: #fff9e8; }
.assumed-row td { background: #fff5f2; }
.assumed-label { color: #a64231; font-weight: 700; white-space: nowrap; }
.leave-row td { background: #f1f7f3; }
.leave-label { color: #255c45; font-weight: 700; white-space: nowrap; }
.leave-label b { display: inline-block; margin-right: 5px; padding: 3px 6px; border-radius: 5px; background: #dcece3; color: #174d37; font-size: 11px; }
td.notes { white-space: normal; min-width: 160px; }
.notes-button { width: 100%; padding: 6px 8px; border: 1px dashed #b9c7bd; border-radius: 7px; background: #f7faf7; color: #244d3b; text-align: left; cursor: pointer; }
.time-edit-button { padding: 4px 7px; border: 1px dashed #aabdb0; border-radius: 7px; background: #f5faf6; color: #174d37; font-weight: 750; cursor: pointer; }
.time-edit-button:hover { background: #e5f1e8; border-color: #56816b; }
.positive { color: #197147; font-weight: 750; }.negative { color: #a64231; font-weight: 750; }
.modal { position: fixed; inset: 0; background: #0d251cb8; display: grid; place-items: center; padding: 18px; overflow-y: auto; overscroll-behavior: contain; z-index: 5; }
.modal .card { width: min(540px,100%); max-height: calc(100dvh - 36px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.employee-settings-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pin-card { max-width: 460px; }
.install-card { max-width: 520px; }
.install-card h3 { margin: 5px 0 0; }
.install-steps { display: grid; gap: 14px; margin: 24px 0 4px; padding-left: 26px; line-height: 1.45; }
.install-steps li { padding-left: 5px; }
.pin-card input { padding: 15px; font-size: 28px; font-weight: 850; letter-spacing: .35em; text-align: center; }
.form-error { margin: -7px 0 14px; color: #a23d2e; font-size: 14px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid .wide { grid-column: 1/-1; }
.manual-dates { display: grid; gap: 8px; }
.manual-date-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.add-date-button { justify-self: start; border: 0; padding: 4px 0; background: transparent; color: #1d6447; font-weight: 800; cursor: pointer; }
.remove-date-button { border: 1px solid #dfc5be; border-radius: 8px; padding: 10px 12px; background: #fff1ee; color: #963a2c; font-weight: 750; cursor: pointer; }
.leave-actions { display: grid; gap: 7px; margin: 22px 0; }
.leave-actions > span { font-weight: 750; font-size: 14px; }
.leave-actions > div { display: flex; gap: 8px; }
.leave-button { flex: 1; padding: 11px 10px; background: #e4f0e8; color: #174d37; border: 1px solid #c2d8ca; }
.toast { position: fixed; right: 20px; bottom: 20px; background: #173b2c; color: #fff; padding: 13px 18px; border-radius: 10px; box-shadow: 0 8px 25px #0003; z-index: 9; }
.manager-link { margin-top: 22px; border-top: 1px solid #e6e9e5; padding-top: 18px; }
.manager-link button { width: 100%; padding: 11px; background: none; border: 1px solid #cbd5ce; border-radius: 9px; color: #3d5a4d; cursor: pointer; font-weight: 750; }
.remember-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px; border-radius: 10px; background: #f3f7f3; font-size: 13px; }
.remember-note > span { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: #d8eadf; color: #17633f; font-weight: 900; }
.remember-note p { margin: 0; }
@media (display-mode: standalone) { body { overscroll-behavior-y: none; } }
.employee-list { display: grid; gap: 10px; }
.employee-row { display: grid; grid-template-columns: 1.3fr .8fr .8fr .8fr; gap: 12px; align-items: center; padding: 14px; border: 1px solid #e1e6e1; border-radius: 12px; }
.employee-row strong { display: block; }
.manager-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.manager-summary > div { padding: 16px 18px; border-radius: 13px; background: #173b2c; color: #fff; }
.manager-summary span,.manager-summary strong { display: block; }
.manager-summary span { color: #bdd0c3; font-size: 12px; margin-bottom: 4px; }
.manager-summary strong { font-size: 25px; }
.employee-tiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.employee-tile { padding: 18px; border: 1px solid #dce4de; border-radius: 14px; background: #fff; color: inherit; text-align: left; cursor: pointer; transition: transform .15s ease,box-shadow .15s ease; }
.employee-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px #173b2c18; }
.tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tile-head strong,.tile-head span { display: block; }.tile-head strong { font-size: 19px; }.tile-head div span { color: #6b7871; font-size: 12px; margin-top: 2px; }
.tile-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 18px 0; padding-top: 14px; border-top: 1px solid #e7ece8; }
.tile-metrics span,.tile-metrics strong { display: block; }.tile-metrics span { color: #6e7a74; font-size: 11px; }.tile-metrics strong { margin-top: 3px; }
.open-employee { color: #1d6447; font-weight: 800; font-size: 13px; }
.back-button { margin: 0 0 9px; padding: 0; border: 0; background: none; color: #376552; cursor: pointer; font-weight: 800; }
.payout-editor { display: grid; grid-template-columns: minmax(160px,1fr) 120px auto minmax(180px,auto); gap: 10px; align-items: center; margin: 13px 0 18px; padding: 13px; border-radius: 11px; background: #f2f6f2; }
.payout-editor span,.payout-editor small { display: block; }.payout-editor span { font-weight: 800; }.payout-editor small { color: #6c7972; margin-top: 2px; }
.payout-editor input { padding: 9px 10px; }
.period-list { display: grid; gap: 11px; }
.period-detail { border: 1px solid #dce4de; border-radius: 14px; background: #fff; overflow: hidden; }
.period-detail summary { display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: 16px; align-items: center; padding: 17px 19px; cursor: pointer; list-style-position: inside; }
.period-detail summary > div:first-child { display: inline-block; }.period-detail summary strong,.period-detail summary span { display: block; }.period-detail summary div:first-child span { color:#6e7a74;font-size:12px;margin-top:3px; }.period-detail summary div:last-child { display:flex;gap:18px;text-align:right;font-size:13px; }
.period-body { padding: 0 18px 18px; border-top: 1px solid #edf0ed; }
.loading { text-align: center; padding: 80px; color: #6c7872; }
@media (max-width: 820px) { .home { grid-template-columns: 1fr; min-height: 0; } .home-intro h2 { font-size: clamp(42px,12vw,64px); } .home-time { margin-top: 22px; } }
@media (max-width: 720px) { .clock-card,.balance-card { grid-column: 1/-1; } .dashboard-head { align-items: start; flex-direction: column; } .employee-row { grid-template-columns: 1fr 1fr; } .employee-tiles { grid-template-columns:1fr; }.manager-summary { grid-template-columns:repeat(3,1fr); }.manager-summary > div { padding:12px; }.manager-summary strong { font-size:19px; }.tile-metrics { grid-template-columns:1fr 1fr 1fr; }.payout-editor { grid-template-columns:1fr auto; }.payout-editor strong { grid-column:1/-1; }.period-detail summary { grid-template-columns:1fr; }.period-detail summary div:last-child { text-align:left;flex-wrap:wrap; }.form-grid,.break-custom { grid-template-columns: 1fr; } .form-grid .wide { grid-column: auto; } .section-head { align-items: start; flex-direction: column; } .period-totals { text-align:left; flex-wrap:wrap; } .modal { place-items: start center; padding: 10px; } .modal .card { max-height: calc(100dvh - 20px); } }
@media (max-width: 430px) { .topbar { padding-left: 14px; padding-right: 14px; } .topbar h1 { font-size: 22px; } .install-button { padding: 9px 10px; font-size: 12px; } }
