:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #223c38;
  background: #f4f7f5;
  font-synthesis: none;
  --green: #116957;
  --muted: #657873;
  --border: #dce5df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button, input, select, textarea {
  font: inherit;
}
button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: .55;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #55a895;
  outline-offset: 3px;
}
button {
  border: 0;
}
a {
  color: inherit;
}
h1, h2, h3, p {
  margin: 0;
}
p {
  line-height: 1.65;
}
h1 {
  font-size: 34px;
  letter-spacing: -.9px;
  line-height: 1.2;
}
h2 {
  font-size: 20px;
  letter-spacing: -.35px;
}
h3 {
  font-size: 16px;
}
small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}
[hidden] {
  display: none !important;
}
.primary, .secondary, .danger {
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  min-height: 45px;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #0b5546;
}
.secondary {
  background: white;
  border: 1px solid var(--border);
  color: #285c4f;
}
.secondary:hover {
  background: #edf5f0;
}
.danger {
  background: #a63f35;
  color: white;
}
.text-button {
  background: none;
  color: var(--green);
  font-size: 13px;
  padding: 8px 2px;
}
.text-button:hover {
  text-decoration: underline;
}
.danger-text {
  color: #9f5249;
}
.muted, .optional {
  color: var(--muted);
}
.optional {
  font-weight: 400;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 700;
  text-decoration: none;
}
.brand-mark {
  background: var(--green);
  color: white;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 27px;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 2.3px;
  font-weight: 600;
  margin-top: 3px;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #6c837b;
}
.pill {
  display: inline-block;
  border-radius: 6px;
  padding: 6px 9px;
  background: #f4ecd6;
  color: #7e6324;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
}
.loading {
  padding: 80px 24px;
  text-align: center;
}
.loading h1 {
  margin-bottom: 20px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-intro {
  background: #123f36;
  color: #f5fff8;
  padding: 60px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-intro .brand {
  margin-bottom: 90px;
}
.login-intro .brand-mark {
  background: #daeea2;
  color: #173e33;
}
.login-intro .eyebrow {
  color: #a4c9bc;
  margin-bottom: 22px;
}
.login-intro h1 {
  font-size: clamp(36px, 3.5vw, 55px);
  line-height: 1.25;
  margin-bottom: 24px;
}
.login-intro p {
  color: #c7dcd5;
  max-width: 360px;
}
.intro-note {
  border-top: 1px solid #406359;
  margin-top: 70px;
  padding-top: 24px;
}
.intro-note strong, .intro-note span {
  display: block;
}
.intro-note span {
  color: #c1d6ce;
  font-size: 14px;
  margin-top: 7px;
}
.login-choices {
  align-self: center;
  padding: 70px 10%;
  max-width: 700px;
}
.login-choices h2 {
  font-size: 27px;
  margin: 20px 0 10px;
}
.login-choices p {
  color: var(--muted);
  font-size: 14px;
}
.account-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.account {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px;
  background: white;
  color: #263e36;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
}
.account:hover {
  border-color: #5b9d89;
  background: #f1f7ed;
}
.account > span:last-child {
  margin-left: auto;
}
.account strong {
  font-size: 14px;
}
.account small {
  font-size: 12px;
  margin-top: 4px;
}
.account-avatar, .avatar {
  background: #e8f0e8;
  color: var(--green);
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  font-weight: 700;
}
.login-footnote {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.app-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 30px 20px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  height: 100vh;
  top: 0;
}
.sidebar .brand {
  font-size: 23px;
}
.workspace-tag {
  font-size: 11px;
  color: var(--muted);
  margin: 34px 4px 25px;
}
.workspace-dot, .save-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5a9875;
  margin-right: 5px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7c76;
  background: transparent;
  text-align: left;
}
.nav-item > span {
  font-size: 21px;
  width: 24px;
  text-align: center;
}
.nav-item.active {
  background: #eaf2e9;
  color: #1d6451;
  font-weight: 650;
}
.nav-dot {
  width: 7px;
  height: 7px;
  background: #b76529;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 35px;
}
.sidebar-footer strong {
  display: block;
  font-size: 12px;
  margin: 12px 0 2px;
}
.sidebar-footer button {
  display: block;
}
.workspace {
  min-width: 0;
  padding: 0 40px;
  max-width: 1550px;
  width: 100%;
  margin: 0 auto;
}
.trial-banner {
  background: #f1ecd9;
  margin: 0 -40px 0;
  padding: 10px 40px;
  font-size: 11px;
  color: #746238;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trial-banner > span {
  font-size: 8px;
}
.trial-banner button {
  margin-left: auto;
  background: none;
  color: #67532b;
  text-decoration: underline;
  white-space: nowrap;
}
.page-header {
  padding: 35px 0 28px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.page-header .eyebrow {
  margin-bottom: 10px;
}
.page-header p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 9px;
}
.page-header > button {
  flex-shrink: 0;
}
.filters {
  display: flex;
  gap: 14px;
  margin-bottom: 25px;
  align-items: end;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #496458;
}
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8e2da;
  border-radius: 8px;
  background: white;
  color: #304d40;
  min-height: 43px;
}
label > input, label > select, label > textarea {
  display: block;
  margin-top: 7px;
}
input::placeholder, textarea::placeholder {
  color: #7f8e87;
}
.filters label {
  min-width: 150px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}
.stats > div {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 19px 20px;
}
.stats span {
  display: block;
  color: #687b71;
  font-size: 12px;
}
.stats strong {
  display: block;
  font-size: 34px;
  line-height: 1.5;
  letter-spacing: -1px;
  font-weight: 650;
}
.stats em {
  font-size: 19px;
  font-weight: 400;
  font-style: normal;
  color: #668073;
}
.stats small {
  font-size: 11px;
}
.stats .stat-green {
  background: #e8f1e6;
  border-color: #d4e5ce;
}
.stat-green strong {
  color: #1f664d;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}
.list-heading h2 {
  font-size: 17px;
}
.list-heading h2 span {
  background: #e4eae2;
  color: #64765f;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  margin-left: 6px;
  vertical-align: middle;
}
.search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 12px;
  width: 290px;
}
.search span {
  color: #71867a;
  font-size: 23px;
}
.search input {
  border: 0;
  padding: 9px;
  margin: 0;
  font-size: 12px;
  background: transparent;
}
.roster-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.worker-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 20px 10px;
}
.worker-card.outgoing {
  background: #fbfbf7;
  border-color: #dedfcf;
}
.worker-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.worker-avatar {
  display: grid;
  place-items: center;
  height: 42px;
  width: 42px;
  border-radius: 50%;
  background: #eef2e9;
  color: #627459;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.worker-name {
  min-width: 0;
}
.worker-name h3 {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.worker-name > span {
  color: #839083;
  font-size: 11px;
  display: block;
  margin-top: 4px;
  letter-spacing: .3px;
}
.status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: #d8dfd6;
  border-radius: 50%;
  margin-left: auto;
}
.status-dot.present {
  background: #348161;
}
.status-dot.absent {
  background: #b65b4b;
}
.status-dot.leave {
  background: #bb942f;
}
.attendance-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.attendance {
  padding: 10px 5px;
  border: 1px solid #dfe5de;
  border-radius: 8px;
  background: white;
  color: #6a796b;
  font-size: 12px;
  min-height: 43px;
  white-space: nowrap;
}
.attendance:hover {
  background: #f2f5ef;
}
.attendance.selected.present {
  background: #e3f1e6;
  color: #246b42;
  border-color: #a1c3a6;
  font-weight: 650;
}
.attendance.selected.absent {
  background: #f9eae4;
  color: #a34e40;
  border-color: #dfb8aa;
  font-weight: 650;
}
.attendance.selected.leave {
  background: #f7f0da;
  color: #8e6c20;
  border-color: #d8c58c;
  font-weight: 650;
}
.card-meta {
  font-size: 10px;
  color: #8a9487;
  min-height: 31px;
  padding: 10px 0;
  line-height: 1.5;
}
.presence-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: -10px 0 24px;
  font-size: 12px;
  color: var(--muted);
}
.presence-totals strong {
  color: #294d3b;
  margin-left: 4px;
}
.presence-panel {
  background: #edf5ef;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  font-size: 12px;
}
.presence-panel.outside {
  background: #fff4db;
}
.presence-panel.left {
  background: #f9eae5;
}
.presence-panel > strong {
  display: block;
  margin-bottom: 4px;
}
.presence-actions, .presence-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.presence-actions button {
  flex: 1;
  font-size: 12px;
  padding: 10px;
}
.presence-hint .text-button {
  min-height: 40px;
  font-size: 11px;
}
.presence-log {
  margin-top: 12px;
  font-size: 12px;
}
.presence-log summary {
  cursor: pointer;
  padding: 8px 0;
}
.presence-log ol {
  padding-left: 18px;
}
.presence-log li {
  margin: 10px 0;
}
.presence-log p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.leave-note {
  margin-top: 12px;
  padding: 12px;
  background: #fcf8ec;
  border-radius: 8px;
  color: #79612c;
  font-size: 12px;
}
.leave-note strong {
  display: block;
  font-size: 11px;
  margin-bottom: 4px;
}
.leave-note p, .timeline p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.leave-note .text-button {
  min-height: 40px;
}
#leave-note {
  resize: vertical;
}
#leave-note-help {
  margin-top: 8px;
}
.card-actions {
  border-top: 1px solid #edf0e9;
  display: flex;
  flex-wrap: wrap;
  column-gap: 13px;
}
.card-actions .text-button {
  font-size: 11px;
  padding: 10px 0;
  min-height: 38px;
}
.card-actions .danger-text {
  margin-left: auto;
}
.transfer-badge {
  padding: 9px 12px;
  border-radius: 7px;
  margin: -5px 0 15px;
  font-size: 11px;
  font-weight: 600;
}
.transfer-badge small {
  font-weight: 400;
  font-size: 10px;
  margin-top: 3px;
}
.outgoing-badge {
  background: #f2eddb;
  color: #887139;
}
.incoming-badge {
  background: #e7f0ee;
  color: #366d61;
}
.page-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8b968c;
  font-size: 10px;
  padding: 22px 0 35px;
}
.page-footer .text-button {
  margin-left: auto;
  font-size: 11px;
}
.mobile-nav {
  display: none;
}
.notice {
  background: #eff4eb;
  color: #5a6d4d;
  border-radius: 8px;
  padding: 13px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.panel {
  border: 1px solid var(--border);
  background: white;
  border-radius: 12px;
  padding: 24px;
}
.panel > p {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 20px;
}
.panel .pill {
  margin-bottom: 15px;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  color: #7c8e81;
  grid-column: 1 / -1;
  font-size: 13px;
}
.empty > span {
  font-size: 28px;
  color: #91a88e;
}
.empty h3 {
  margin: 12px 0 7px;
}
.timeline {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}
.timeline li {
  display: flex;
  gap: 18px;
  border-left: 1px solid #dce4d6;
  margin-left: 5px;
  padding: 0 0 30px 20px;
  position: relative;
}
.timeline-dot {
  position: absolute;
  top: 5px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7d9c73;
}
.timeline strong {
  font-size: 14px;
}
.timeline p {
  font-size: 13px;
  margin-top: 5px;
}
.timeline small {
  font-size: 11px;
  margin-top: 7px;
}
.route {
  display: inline-block;
  color: #507c58;
  background: #eef4e9;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 12px;
  margin-top: 8px;
}
.section-label {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}
.hr-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.resolved {
  margin-top: 25px;
}
.shift-list {
  margin: 20px 0;
}
.shift-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0e8;
}
.shift-row strong {
  font-size: 14px;
}
.shift-row small {
  font-size: 12px;
  margin-top: 5px;
}
dialog {
  border: 1px solid #d5dfd1;
  padding: 26px;
  border-radius: 18px;
  width: 520px;
  max-width: calc(100vw - 30px);
  max-height: calc(100dvh - 40px);
  color: #294233;
  box-shadow: 0 24px 80px #162c332e;
}
dialog::backdrop {
  background: #132f3380;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.dialog-heading h2 {
  font-size: 22px;
}
.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 26px;
  color: #61735c;
  background: #f0f4ec;
}
dialog p {
  margin: 12px 0 18px;
  color: #6f7d69;
  font-size: 13px;
}
dialog form > label {
  margin: 18px 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.form-actions button {
  font-size: 13px;
}
.radio-options {
  border: 0;
  padding: 0;
  margin: 25px 0 20px;
}
.radio-options legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.radio-options label {
  display: flex;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 9px;
  margin-bottom: 9px;
}
.radio-options input, .check-label input {
  width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  margin: 2px 0;
  accent-color: var(--green);
}
.radio-options strong {
  display: block;
  font-size: 13px;
}
.radio-options small {
  font-weight: 400;
  font-size: 12px;
  margin-top: 5px;
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: center;
  line-height: 1.6;
}
.segmented {
  display: flex;
  background: #edf2e8;
  border-radius: 9px;
  padding: 4px;
  margin-bottom: 18px;
}
.segmented button {
  flex: 1;
  background: transparent;
  padding: 10px;
  border-radius: 6px;
  color: #687b60;
  font-size: 13px;
}
.segmented .active {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 4px #203d1720;
  font-weight: 600;
}
.search-results {
  max-height: 360px;
  overflow: auto;
  margin-top: 15px;
}
.search-result {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #edf0e9;
}
.search-result strong {
  font-size: 13px;
}
.search-result small {
  font-size: 11px;
  margin-top: 5px;
}
.search-result .secondary {
  font-size: 12px;
  padding: 8px 13px;
}
#dialog-error {
  background: #f8e7e0;
  border-radius: 8px;
  padding: 12px;
  color: #934f3f;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(560px, calc(100vw - 32px));
  background: #194e40;
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 30px #183c2330;
  z-index: 20;
  font-size: 13px;
  line-height: 1.6;
}
#toast.error-toast {
  background: #8f4839;
}
