@import "./logo.css";
.team-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
  padding: 14px 16px;
}
.team-filter-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.team-filter-copy strong { color: var(--ink); font-size: 11px; }
.team-filter-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shift-status-filter { display:flex;gap:7px;margin:-5px 0 15px;padding:4px;width:max-content;border:1px solid var(--line);border-radius:11px;background:#fff; }
.shift-status-filter button { border:0;border-radius:8px;background:transparent;color:var(--muted);padding:8px 13px;font-size:9px;font-weight:800;cursor:pointer; }
.shift-status-filter button.active { background:var(--teal);color:#fff;box-shadow:0 2px 7px rgba(11,85,89,.18); }
.team-select { display: flex; align-items: center; gap: 10px; }
.team-select span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.team-select select {
  width: min(360px, 38vw);
  min-width: 240px;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}
.team-multi {
  position: relative;
  width: min(360px, 42vw);
}
.team-multi summary {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.team-multi summary::-webkit-details-marker { display: none; }
.team-multi summary i { color: var(--teal); font-size: 14px; font-style: normal; }
.team-multi[open] summary i { transform: rotate(180deg); }
.team-multi-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  width: min(430px, 82vw);
  max-height: 440px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 18px 45px rgba(16, 41, 47, 0.18);
}
.team-multi-panel > button {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}
.team-multi-panel > button.active { border-color: #8fc1b8; background: var(--mint); }
.team-group-toggle {
  width: 100%;
  padding: 11px 5px 7px;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  text-align: left;
}
.team-group-toggle strong {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.team-group-toggle > small { color: var(--muted); font-size: 8px; }
.team-group-toggle.area {
  padding: 6px 5px;
  color: var(--ink);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.team-group-toggle:hover { background: #f3f7f6; border-radius: 7px; }
.group-check {
  width: 16px;
  height: 16px;
  border: 1px solid #aebfbc;
  border-radius: 4px;
  background: white;
  display: grid;
  place-items: center;
  color: white;
  font-size: 10px;
}
.team-group-toggle.all .group-check,
.team-group-toggle.partial .group-check { border-color: var(--teal); background: var(--teal); }
.team-multi-area { padding: 5px 4px 8px; border-top: 1px solid #edf2f1; }
.team-multi-area label {
  padding: 7px 5px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 10px;
  cursor: pointer;
}
.team-multi-area label:hover { background: #f3f7f6; }
.team-multi-area input { accent-color: var(--teal); }
.team-rate-row {
  width: 100%;
  border: 0;
  border-top: 1px solid #eaf0ef;
  color: var(--ink);
  background: #fff;
  text-align: left;
}
.team-rate-row:hover {
  background: #f7fbfa;
}
.team-rate-row i {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
}
.invoice-metrics {
  grid-template-columns: repeat(3, 1fr);
}
.invoice-table .payroll-table-head,
.invoice-table .payroll-row {
  grid-template-columns: minmax(190px, 1.4fr) repeat(4, 0.72fr) 1fr 26px !important;
}
.invoice-breakdown {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 0 14px;
}
.invoice-breakdown span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-size: 8px;
}
.invoice-breakdown strong {
  color: var(--ink);
  font-size: 10px;
}
.invoice-breakdown .total {
  color: #d8e9e7;
  background: var(--teal);
  border-color: var(--teal);
}
.invoice-breakdown .total strong {
  color: #fff;
}
.rate-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0 2px;
  border-bottom: 1px solid var(--line);
}
.rate-heading strong {
  font-size: 13px;
}
.rate-heading small {
  color: var(--muted);
  font-size: 9px;
}
@media (width<=700px) {
  .invoice-metrics {
    grid-template-columns: 1fr;
  }
  .invoice-breakdown {
    grid-template-columns: 1fr 1fr;
  }
}
.invoice-worker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding-right: 12px;
}
.invoice-worker b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invoice-worker small {
  width: 42px;
  padding: 4px 0;
  border-radius: 999px;
  background: #eaf3f1;
  color: var(--teal);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}
.invoice-shift-details > button {
  grid-template-columns: minmax(150px, 1fr) 70px 1.4fr auto;
}
.invoice-worker-name {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-badge {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf3f1;
  color: var(--teal);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.payroll-table-head,
.payroll-row {
  grid-template-columns: minmax(180px, 1.35fr) 0.4fr 0.75fr 0.75fr 0.75fr 0.85fr 0.85fr 26px !important;
  gap: 10px !important;
}
.payroll-period {
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 20px;
  margin-bottom: 15px;
}
.payroll-period > div {
  margin-right: auto;
}
.payroll-period h3 {
  margin: 5px 0 0;
  font-size: 16px;
}
.payroll-period label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.payroll-period input {
  display: block;
  min-width: 175px;
  margin-top: 7px;
  padding: 11px 13px;
  background: #fff;
}
.payroll-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}
.payroll-metrics article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.payroll-metrics article.featured {
  color: #fff;
  background: #174b50;
  border-color: #174b50;
}
.payroll-metrics small,
.payroll-metrics strong {
  display: block;
}
.payroll-metrics small {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-size: 8px;
}
.payroll-metrics .featured small {
  color: #bcd2cf;
}
.payroll-metrics strong {
  margin-top: 9px;
  font-size: 19px;
}
.payroll-table {
  overflow: hidden;
}
.payroll-table-head,
.payroll-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) 0.45fr 0.75fr 0.75fr 0.85fr 0.9fr 26px;
  gap: 12px;
  align-items: center;
}
.payroll-table-head {
  padding: 12px 18px;
  background: #f6f9f8;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
}
.payroll-table-head span:not(:first-child) {
  text-align: right;
}
.payroll-row {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: right;
}
.payroll-row:hover {
  background: #f8fbfa;
}
.payroll-name {
  text-align: left;
}
.payroll-name b,
.payroll-name small {
  display: block;
}
.payroll-name b {
  font-size: 11px;
}
.payroll-name small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}
.payroll-row > strong {
  font-size: 10px;
}
.payroll-row > i {
  font-style: normal;
  color: var(--teal);
  font-size: 15px;
}
.payroll-details {
  padding: 4px 18px 14px;
  background: #f8fbfa;
}
.payroll-breakdown {
  display: flex;
  gap: 8px;
  padding: 10px 0;
}
.payroll-breakdown span {
  padding: 7px 9px;
  border-radius: 7px;
  background: #eaf3f1;
  color: var(--muted);
  font-size: 8px;
}
.payroll-breakdown strong {
  margin-left: 4px;
  color: var(--ink);
}
.payroll-details > button {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid #e1eae8;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.payroll-details > button small {
  color: var(--muted);
}
.payroll-disclaimer {
  display: block;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: #f8fbfa;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}
@media (width<=900px) {
  .payroll-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .payroll-table {
    overflow: auto;
  }
  .payroll-table-head,
  .payroll-row {
    min-width: 850px;
  }
  .payroll-period {
    flex-wrap: wrap;
  }
  .payroll-period > div {
    width: 100%;
  }
}
:root {
  --ink: #10292f;
  --muted: #6d8084;
  --line: #dce8e7;
  --wash: #f3f7f6;
  --navy: #123c43;
  --teal: #0f7b6f;
  --mint: #e3f3ef;
  --blue: #3f7896;
  --amber: #b66d25;
  --red: #b34f4f;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--wash);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: linear-gradient(180deg, #153f46, #0e3238);
  color: white;
  padding: 26px 17px 18px;
  display: flex;
  flex-direction: column;
  z-index: 4;
}
.product,
.tenant,
.user {
  display: flex;
  align-items: center;
  gap: 11px;
}
.product {
  padding: 0 8px 22px;
}
.product-mark {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #dff4ee;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}
.product strong,
.product small,
.tenant strong,
.tenant small,
.user strong,
.user small {
  display: block;
}
.product strong {
  font-size: 17px;
}
.product small {
  color: #9eb6b8;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}
.tenant {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 22px;
}
.tenant > span {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #2b9c90;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.tenant small {
  font-size: 8px;
  color: #a7bfc1;
}
.tenant strong {
  font-size: 12px;
  margin-top: 3px;
}
.tenant > div {
  min-width: 0;
  flex: 1;
}
.tenant select {
  width: 100%;
  margin-top: 2px;
  padding: 2px 20px 2px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 10.5px;
  font-weight: 800;
  outline: 0;
  cursor: pointer;
}
.agency-picker {
  display: block;
  margin-top: 3px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.1);
}
.agency-picker select { margin: 0; padding: 2px 0; }
.tenant select option {
  color: var(--ink);
}
.side nav {
  display: grid;
  gap: 5px;
}
.side .bottom-nav {
  margin-top: 7px;
}
.side nav button {
  border: 0;
  background: transparent;
  color: #c5d4d5;
  padding: 12px;
  border-radius: 9px;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.side nav button:hover,
.side nav button.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.side nav button.active {
  font-weight: 800;
}
.side nav i {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.side nav button.active i {
  background: #6ed0bf;
  border-color: #6ed0bf;
}
.side nav b {
  margin-left: auto;
  background: #e2a963;
  color: var(--navy);
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9px;
}
.side-note {
  margin-top: auto;
  padding: 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
}
.side-note strong,
.side-note small {
  display: block;
}
.side-note strong {
  font-size: 11px;
}
.side-note small {
  font-size: 9px;
  color: #9db5b7;
  margin-top: 4px;
}
.user {
  margin-top: 13px;
  padding: 13px 6px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: white;
  text-align: left;
}
.user > span {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #dceeea;
  color: #24665e;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.user strong {
  font-size: 11px;
}
.user small {
  font-size: 9px;
  color: #9bb2b4;
  margin-top: 3px;
}
.content {
  grid-column: 2;
  padding: 0 36px 45px;
  max-width: 1500px;
  width: 100%;
  min-width: 0;
}
.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.notification-center { position: relative; }
.notification-bell { position: relative; width: 42px; height: 42px; padding: 0; border: 1px solid #bfd4cf; border-radius: 50%; background: #fff; color: #12383b; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 10px rgba(18,56,59,.07); }
.notification-bell:hover { background: #eef7f5; border-color: #78aaa4; }
.notification-bell > span { display: block; font-size: 19px; line-height: 1; filter: saturate(.72); }
.notification-bell b { position: absolute; top: -7px; right: -8px; min-width: 22px; height: 22px; box-sizing: border-box; padding: 0 6px; border: 2px solid #fff; border-radius: 999px; background: #d43d32; color: #fff; display: flex; align-items: center; justify-content: center; font: 800 11px/1 system-ui; }
.notification-popover { position: absolute; z-index: 80; right: 0; top: 50px; width: min(390px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 110px)); overflow: hidden; background: #fff; border: 1px solid #dbe6e3; border-radius: 16px; box-shadow: 0 20px 55px rgba(14,49,51,.18); }
.notification-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #e7eeec; }
.notification-heading button { border: 0; background: transparent; color: #0b6569; font-weight: 700; cursor: pointer; }
.notification-heading-actions { display:flex;align-items:center;gap:10px; }
.notification-list { max-height: 470px; overflow-y: auto; }
.notification-item { width: 100%; border: 0; border-bottom: 1px solid #edf2f1; background: #fff; padding: 14px 16px; display: grid; grid-template-columns: 9px 1fr; gap: 11px; text-align: left; cursor: pointer; }
.notification-item:hover { background: #f7faf9; }
.notification-item > i { width: 8px; height: 8px; border-radius: 999px; margin-top: 6px; background: transparent; }
.notification-item.unread { background: #f0f8f6; }
.notification-item.unread > i { background: #0b7777; }
.notification-item span { display: grid; gap: 4px; }
.notification-item strong { color: #12383b; font-size: 14px; }
.notification-item small { color: #536b6d; line-height: 1.4; }
.notification-item time { color: #879697; font-size: 11px; }
.notification-empty { margin: 0; padding: 28px 20px; color: #718486; text-align: center; }
.decommission-warning { padding: 16px; border: 1px solid #e8c9c1; border-radius: 12px; background: #fff6f3; color: #6f3024; }
.decommission-warning p { margin: 6px 0 0; line-height: 1.45; color: #805248; }
.mobile-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9d9d6;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 800;
}
.structure-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.structure-toolbar > strong {
  font-size: 11px;
}
.structure-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.structure-toolbar button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--teal);
  color: white;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 800;
}
.municipality-group {
  margin: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.structure-heading,
.area-heading {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.structure-heading {
  width: 100%;
  padding: 15px 18px;
  border: 0;
  color: white;
  background: #153f46;
  font-size: 13px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
}
.structure-heading small {
  color: #b8cdcf;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.structure-heading i {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-style: normal;
}
.area-heading {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  color: var(--ink);
  background: #eef5f3;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 800;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.area-heading span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.area-heading small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.area-heading .area-count {
  padding: 4px 8px;
  border: 1px solid #cfe0dc;
  border-radius: 999px;
  background: white;
  white-space: nowrap;
}
.area-heading i { color: var(--teal); font-size: 13px; font-style: normal; }
.pilot-columns.customer-structure-layout {
  grid-template-columns: 1fr;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 16px;
  background: #f7faf9;
}
.area-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.structure-team {
  padding: 12px 14px;
}
.unassigned-group {
  margin: 18px;
}
.team-check-group {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.team-check-group > small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.customer-access-tree {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.customer-access-tree > .check-row {
  background: #eaf4f1;
  border-color: #c8ded9;
}
.customer-access-tree .team-check-group {
  margin: 0 0 0 16px;
  padding-left: 12px;
  border-left: 2px solid #dce8e5;
}
.access-team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding-left: 16px;
}
@media (max-width: 650px) {
  .team-filter { align-items: stretch; flex-direction: column; gap: 10px; }
  .team-select { align-items: stretch; flex-direction: column; gap: 6px; }
  .team-select select { width: 100%; min-width: 0; }
  .team-multi { width: 100%; }
  .team-multi-panel { left: 0; right: auto; width: 100%; }
  .structure-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .access-team-list {
    grid-template-columns: 1fr;
  }
}
.content > header {
  height: 60px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.content > header > div:first-child { min-width: 0; }
.content > header .kicker { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kicker,
.section-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #839497;
  font-weight: 800;
}
.kicker {
  margin: 0 0 5px;
}
.content h1 {
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.03em;
}
.role-switch {
  display: flex;
  padding: 4px;
  background: #e7efed;
  border-radius: 10px;
}
.role-switch button {
  border: 0;
  background: transparent;
  color: #65777b;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}
.role-switch button.selected {
  background: white;
  color: var(--teal);
  box-shadow: 0 2px 8px rgba(19, 61, 67, 0.1);
}
.toast {
  margin-top: 16px;
  padding: 11px 14px;
  border: 1px solid #a9d5cb;
  background: #e9f7f3;
  color: #155c54;
  border-radius: 10px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
}
.toast button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: inherit;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 30px 0 22px;
}
.hero h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  margin: 6px 0 7px;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.stats {
  display: flex;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.stats span {
  padding: 12px 17px;
  min-width: 110px;
}
.stats span + span {
  border-left: 1px solid var(--line);
}
.stats strong,
.stats small {
  display: block;
}
.stats strong {
  font-size: 15px;
}
.stats small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.primary,
.secondary {
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 10px;
  font-weight: 800;
}
.primary {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
}
.primary.large {
  font-size: 12px;
  padding: 12px 17px;
}
.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.toolbar button,
.search {
  height: 40px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  color: var(--muted);
}
.toolbar button {
  padding: 0 13px;
  font-size: 10px;
}
.search {
  max-width: 390px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 11px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
}
.card-head h3,
.availability h3,
.admin-status h3 {
  font-size: 17px;
  margin: 5px 0 0;
}
.card-head > small {
  font-size: 9px;
  color: var(--muted);
}
.shift-list {
  padding-bottom: 4px;
}
.shift {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 15px 22px;
  border-top: 1px solid #eaf0ef;
}
.date {
  width: 50px;
  height: 52px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--teal);
  display: grid;
  place-content: center;
  text-align: center;
}
.date strong {
  font-size: 20px;
  line-height: 1;
}
.date small {
  font-size: 7px;
  font-weight: 800;
  margin-top: 4px;
}
.shift-main > div {
  display: flex;
  gap: 9px;
  align-items: center;
}
.shift h4 {
  font-size: 13px;
  margin: 0;
}
.shift-main p {
  margin: 5px 0 8px;
  font-size: 10px;
  color: var(--muted);
}
.time {
  font-size: 10px;
  color: #466368;
}
.pill {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 7px;
  border-radius: 20px;
  background: #e3f3ef;
  color: #197266;
  font-weight: 800;
}
.pill.amber {
  background: #fff0dc;
  color: #9d6021;
}
.pill.success {
  background: #e5f4ef;
  color: #197266;
}
.availability {
  margin-top: 15px;
  border: 1px dashed #9fc8c2;
  border-radius: 12px;
  background: #f8fcfb;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.availability p {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--muted);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.metric {
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  padding: 17px;
  position: relative;
}
.metric:before {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  top: 0;
  height: 3px;
  background: #9dcac3;
  border-radius: 0 0 4px 4px;
}
.metric.attention:before {
  background: #d69b59;
}
.metric.success:before {
  background: #58a68e;
}
.metric span,
.metric small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.metric strong {
  display: block;
  font-size: 23px;
  margin: 10px 0 4px;
}
.calendar-card {
  padding-bottom: 5px;
}
.team-filters {
  display: flex;
  gap: 6px;
}
.team-filters button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 9px;
  color: var(--muted);
}
.team-filters .team-a {
  color: #287d71;
}
.team-filters .team-b {
  color: #497b99;
}
.calendar-row {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.calendar-day {
  border: 0;
  border-right: 1px solid #edf2f1;
  background: white;
  height: 76px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
}
.calendar-day small {
  font-size: 7px;
  color: #96a3a5;
}
.calendar-day strong {
  font-size: 13px;
}
.calendar-day.selected {
  background: #edf7f4;
  color: var(--teal);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #398d7e;
}
.dot.team-b {
  background: #5f8ba5;
}
.agenda {
  display: grid;
  grid-template-columns: 55px 1fr auto 230px 30px;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
}
.agenda-date {
  width: 48px;
  height: 49px;
  border-radius: 8px;
  background: #edf6f4;
  display: grid;
  place-content: center;
  text-align: center;
}
.agenda-date strong {
  font-size: 18px;
}
.agenda-date small {
  font-size: 6px;
}
.agenda h4 {
  margin: 0;
  font-size: 12px;
}
.agenda p {
  margin: 5px 0 0;
  font-size: 9px;
  color: var(--muted);
}
.person {
  display: flex;
  align-items: center;
  gap: 8px;
}
.person > span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dceeea;
  color: #25675f;
  font-size: 9px;
  font-weight: 800;
}
.person strong,
.person small {
  display: block;
}
.person strong {
  font-size: 10px;
}
.person small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.more {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}
.quick-actions button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  padding: 15px;
  text-align: left;
  display: flex;
  gap: 12px;
  color: var(--teal);
  font-size: 19px;
}
.quick-actions strong,
.quick-actions small {
  display: block;
}
.quick-actions strong {
  font-size: 11px;
  color: var(--ink);
}
.quick-actions small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.team-select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: 10px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 15px;
  margin-bottom: 15px;
}
.action-column,
.admin-status {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.count {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f1dfcc;
  color: #9b5d22;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.task {
  width: 100%;
  display: grid;
  grid-template-columns: 35px 1fr 25px 20px;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 13px 20px;
  border: 0;
  border-top: 1px solid #eaf0ef;
  background: white;
  color: var(--ink);
}
.task:hover {
  background: #fbfdfd;
}
.task-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.task-icon.blue {
  background: #e8f0f5;
  color: #3f7592;
}
.task-icon.amber {
  background: #fff0dc;
  color: #a06322;
}
.task-icon.red {
  background: #fae9e8;
  color: #a84b4b;
}
.task strong,
.task small {
  display: block;
}
.task strong {
  font-size: 11px;
}
.task small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.task > b {
  border-radius: 20px;
  background: #edf2f1;
  padding: 4px;
  text-align: center;
  font-size: 9px;
}
.task > i {
  font-style: normal;
  color: #819092;
}
.admin-status {
  padding: 20px;
}
.admin-status h3 {
  margin-bottom: 15px;
}
.big-number {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 15px;
}
.big-number small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.status-line {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid #edf2f1;
  font-size: 10px;
}
.status-line span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.status-line i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67af98;
}
.status-line i.blue {
  background: #5f8ba5;
}
.status-line i.amber {
  background: #d69b59;
}
.week {
  display: grid;
  grid-template-columns: 35px repeat(7, 1fr);
  height: 190px;
  border-top: 1px solid var(--line);
  position: relative;
}
.hours {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  color: #94a1a3;
  font-size: 7px;
  padding-left: 10px;
}
.week-day {
  border-left: 1px solid #e8efee;
  position: relative;
  padding-top: 10px;
  text-align: center;
}
.week-day > strong {
  font-size: 8px;
  color: #718387;
}
.block {
  position: absolute;
  left: 6px;
  right: 6px;
  border-radius: 6px;
  background: #e3f3ef;
  color: #176d64;
  padding: 7px;
  text-align: left;
}
.block.b1 {
  background: #e8f0f5;
  color: #3f708a;
}
.block.b2 {
  background: #fff0dc;
  color: #946026;
}
.block b,
.block small {
  display: block;
}
.block b {
  font-size: 8px;
}
.block small {
  font-size: 7px;
  margin-top: 4px;
}
@media (max-width: 980px) {
  .shell {
    grid-template-columns: 80px 1fr;
  }
  .side {
    width: 80px;
    padding: 22px 10px;
  }
  .product div,
  .tenant div,
  .side nav button:not(.active),
  .side-note,
  .user div {
    display: none;
  }
  .product {
    padding-left: 8px;
  }
  .tenant {
    justify-content: center;
    padding: 8px;
  }
  .side nav button.active {
    justify-content: center;
  }
  .user {
    justify-content: center;
  }
  .content {
    padding: 0 20px 35px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .agenda {
    grid-template-columns: 50px 1fr auto;
  }
  .person {
    grid-column: 2;
  }
  .more {
    grid-column: 3;
    grid-row: 1/3;
  }
  .calendar-row {
    overflow: auto;
  }
  .calendar-day {
    min-width: 55px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .side {
    position: static;
    width: 100%;
    height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
  }
  .product {
    padding: 0;
    margin-right: auto;
  }
  .product div {
    display: block;
  }
  .tenant,
  .side nav,
  .side-note,
  .user {
    display: none;
  }
  .content {
    padding: 0 13px 28px;
  }
  .content > header {
    height: 56px;
    align-items: center;
    gap: 8px;
  }
  .header-actions { gap: 7px; }
  .notification-bell { width: 38px; height: 38px; }
  .mobile-logout { white-space: nowrap; padding: 9px 10px; }
  .content h1 {
    font-size: 19px;
  }
  .mobile-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .live-pill {
    display: none;
  }
  .role-switch button {
    padding: 7px;
    font-size: 8px;
  }
  .hero {
    align-items: start;
    padding: 24px 0 18px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero p {
    font-size: 11px;
  }
  .stats {
    display: none;
  }
  .toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .search {
    grid-column: 1/-1;
    max-width: none;
  }
  .shift {
    grid-template-columns: 48px 1fr;
    gap: 11px;
    padding: 14px;
  }
  .shift > .primary {
    grid-column: 1/-1;
  }
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 14px;
  }
  .team-filters .team-a,
  .team-filters .team-b {
    display: none;
  }
  .calendar-row {
    grid-template-columns: repeat(14, 52px);
    overflow: auto;
  }
  .agenda {
    grid-template-columns: 45px 1fr auto;
    padding: 13px;
  }
  .person {
    grid-column: 2;
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .task {
    padding: 12px;
    grid-template-columns: 33px 1fr 20px;
  }
  .task > b {
    display: none;
  }
  .admin-calendar .team-filters button:not(:last-child) {
    display: none;
  }
  .week {
    grid-template-columns: 28px repeat(7, 100px);
    overflow: auto;
  }
  .availability {
    align-items: start;
    gap: 12px;
  }
  .availability .secondary {
    white-space: nowrap;
  }
}
.months-scroll {
  padding: 0 22px 22px;
  display: grid;
  gap: 26px;
  max-height: 690px;
  overflow-y: auto;
  scrollbar-color: #b7cac7 transparent;
}
.month {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.month-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.month-title h3 {
  margin: 0;
  font-size: 16px;
}
.month-title span {
  font-size: 9px;
  color: var(--muted);
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.month-cell {
  min-height: 88px;
  border: 0;
  border-right: 1px solid #e8efee;
  border-bottom: 1px solid #e8efee;
  background: white;
  padding: 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.month-cell:nth-child(7n) {
  border-right: 0;
}
.month-cell:hover {
  background: #f7fbfa;
}
.month-cell > small {
  font-size: 7px;
  color: #92a1a3;
  min-height: 9px;
}
.month-cell > strong {
  font-size: 12px;
}
.month-cell.has-shift {
  background: #f4faf8;
}
.month-event {
  display: block;
  border-left: 3px solid var(--teal);
  background: #e4f3ef;
  color: #176c63;
  border-radius: 3px;
  padding: 5px;
  font-size: 8px;
  font-weight: 700;
}
@media (max-width: 650px) {
  .months-scroll {
    padding: 0 12px 15px;
    max-height: 620px;
  }
  .month-grid {
    min-width: 620px;
  }
  .month {
    overflow-x: auto;
  }
  .month-cell {
    min-height: 75px;
  }
  .month-title {
    position: sticky;
    left: 0;
  }
}
.busy-day {
  min-height: 310px;
}
.busy-day .month-event {
  width: 100%;
  padding: 4px 5px;
  white-space: normal;
  line-height: 1.25;
}
.month-event.team-two {
  border-left-color: #5f8ba5;
  background: #e8f0f5;
  color: #3f708a;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 31, 35, 0.48);
  backdrop-filter: blur(7px);
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-panel {
  width: min(680px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: white;
  border-radius: 18px;
  box-shadow: 0 25px 80px rgba(10, 40, 45, 0.3);
  padding: 26px;
}
.modal-panel.compact {
  width: min(600px, 100%);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.modal-head h2 {
  margin: 5px 0 7px;
  font-size: 25px;
  letter-spacing: -0.035em;
}
.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.modal-close {
  border: 0;
  background: #edf3f2;
  color: #607579;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  font-size: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid label {
  display: grid;
  gap: 7px;
  font-size: 9px;
  font-weight: 800;
  color: #617579;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid var(--line);
  background: #fbfdfd;
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  outline: 0;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: #62aa9f;
  box-shadow: 0 0 0 3px #e5f3ef;
}
.time-input-wrap { position:relative;display:block;width:100%; }
.time-input-wrap>input { width:100%;padding-right:46px!important; }
.time-picker-button { position:absolute;right:5px;top:50%;width:34px;height:34px;padding:0!important;transform:translateY(-50%);border:0!important;border-radius:8px!important;background:#e3f0ed!important;color:#0b5559!important;font-size:21px!important;font-weight:900!important;line-height:1!important;cursor:pointer; }
.time-picker-button:hover { background:#cfe5df!important; }
.form-grid textarea {
  height: 72px;
  resize: none;
}
.form-grid em {
  font-style: normal;
  font-weight: 400;
  color: #99a7a8;
}
.requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.toggle {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  text-align: left;
}
.toggle > i {
  width: 30px;
  height: 18px;
  background: #d9e2e1;
  border-radius: 20px;
  position: relative;
  flex: none;
}
.toggle > i:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #738;
}
.toggle.on {
  border-color: #8bc6bc;
  background: #f5fbf9;
}
.toggle.on > i {
  background: var(--teal);
}
.toggle.on > i:after {
  left: 14px;
}
.toggle strong,
.toggle small {
  display: block;
}
.toggle strong {
  font-size: 10px;
}
.toggle small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}
.modal-summary {
  margin-top: 16px;
  padding: 13px 15px;
  background: #f0f7f5;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.modal-summary span {
  color: var(--muted);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.publish-options {
  display: grid;
  gap: 10px;
}
.publish-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  padding: 15px;
  display: grid;
  grid-template-columns: 34px 1fr 22px;
  gap: 11px;
  text-align: left;
  align-items: center;
  color: var(--ink);
}
.publish-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #edf3f2;
  color: var(--teal);
}
.publish-card strong,
.publish-card small {
  display: block;
}
.publish-card strong {
  font-size: 12px;
}
.publish-card small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
}
.publish-card > i {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
}
.publish-card.selected {
  border-color: #65aa9f;
  background: #f5fbf9;
  box-shadow: 0 0 0 2px #dff1ec;
}
.publish-card.selected > i {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.remember {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 14px 2px;
  color: var(--muted);
  font-size: 9px;
}
.reach {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  font-size: 9px;
}
.reach span,
.reach small {
  color: var(--muted);
}
.reach small {
  grid-column: 2;
}
.mini-toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #133f45;
  color: white;
  border-radius: 10px;
  padding: 13px 17px;
  font-size: 11px;
  box-shadow: 0 12px 35px rgba(10, 35, 40, 0.25);
  z-index: 30;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s;
}
.mini-toast.show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 650px) {
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }
  .modal-panel {
    border-radius: 17px 17px 10px 10px;
    padding: 20px;
  }
  .form-grid,
  .requirements {
    grid-template-columns: 1fr;
  }
  .form-grid label {
    grid-column: 1/-1;
  }
  .modal-summary {
    display: grid;
    gap: 5px;
  }
  .mini-toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    text-align: center;
  }
}
.month-event.new-event {
  border-left-color: #7c5ec4;
  background: #f0ebfb;
  color: #5b4296;
  animation: newShift 0.35s ease-out;
}
@keyframes newShift {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.new-worker-shift {
  background: #faf8ff;
}
.month-event.booked-event {
  border-left-color: #2e8b65;
  background: #e2f3ea;
  color: #226d50;
}
.status {
  display: inline-flex;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.status-ledig {
  background: #e4eef8;
  color: #316f9a;
}
.status-forespørgsel {
  background: #fff1bf;
  color: #866316;
}
.status-afventer {
  background: #fee7ce;
  color: #9a5a18;
}
.status-booket,
.status-udført {
  background: #dff2e8;
  color: #246c50;
}
.status-aflyst,
.status-sygdom {
  background: #f9e1e1;
  color: #a14444;
}
.detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 19px;
  margin-bottom: 18px;
}
.detail-hero h2 {
  margin: 9px 0 5px;
  font-size: 24px;
}
.detail-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.person-card {
  display: grid;
  grid-template-columns: 43px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #f5f9f8;
  border-radius: 11px;
  padding: 14px;
  margin-bottom: 15px;
}
.person-card > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dbeee9;
  color: #226a60;
  font-weight: 800;
  font-size: 11px;
}
.person-card small,
.person-card strong,
.person-card p {
  display: block;
  margin: 0;
}
.person-card small {
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.person-card strong {
  font-size: 12px;
  margin: 4px 0;
}
.person-card p {
  font-size: 9px;
  color: var(--muted);
}
.person-card button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 9px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.detail-action {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 13px;
  text-align: left;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 9px;
}
.detail-action > span {
  grid-row: 1/3;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e8f3f0;
  color: var(--teal);
  display: grid;
  place-items: center;
}
.detail-action strong,
.detail-action small {
  display: block;
}
.detail-action strong {
  font-size: 10px;
}
.detail-action small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.detail-action:hover {
  border-color: #88bbb4;
  background: #fbfefd;
}
.detail-action.sickness > span {
  background: #f9e3e3;
  color: #a84b4b;
}
.danger-link {
  display: block;
  margin: 18px auto 0;
  border: 0;
  background: transparent;
  color: #a64c4c;
  font-size: 9px;
  font-weight: 800;
}
.detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-info > div {
  background: #f5f9f8;
  border-radius: 9px;
  padding: 13px;
}
.detail-info small,
.detail-info strong {
  display: block;
}
.detail-info small {
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.detail-info strong {
  font-size: 11px;
  margin-top: 5px;
}
.extension-box {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 11px;
  align-items: center;
  margin-top: 15px;
  border: 1px solid #e8d28e;
  background: #fff9e9;
  border-radius: 10px;
  padding: 14px;
}
.extension-box > span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fae7ae;
  color: #8a6819;
  display: grid;
  place-items: center;
}
.extension-box strong {
  font-size: 11px;
}
.extension-box p {
  font-size: 9px;
  margin: 4px 0;
  color: #685d3e;
}
.extension-box small {
  font-size: 8px;
  color: #8b7b50;
}
.extension-box > div:last-child {
  display: flex;
  gap: 6px;
}
.detail-note {
  font-size: 8px;
  color: var(--muted);
  text-align: center;
  margin: 15px 0 0;
}
.history {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.history > strong {
  font-size: 10px;
}
.history p {
  font-size: 9px;
  color: #51686d;
  margin: 10px 0;
}
.history p span {
  display: inline-block;
  width: 95px;
  color: #95a3a5;
}
@media (max-width: 650px) {
  .detail-grid,
  .detail-info {
    grid-template-columns: 1fr;
  }
  .extension-box {
    grid-template-columns: 35px 1fr;
  }
  .extension-box > div:last-child {
    grid-column: 1/-1;
  }
  .person-card {
    grid-template-columns: 40px 1fr;
  }
  .person-card > button {
    grid-column: 2;
  }
}
.settings-hero {
  padding-bottom: 18px;
}
.settings-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.settings-tabs button {
  border: 0;
  background: transparent;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  border-bottom: 2px solid transparent;
}
.settings-tabs button.selected {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.settings-tabs span {
  margin-left: 7px;
  background: #e6eeec;
  padding: 2px 6px;
  border-radius: 20px;
  font-size: 8px;
}
.settings-list {
  overflow: hidden;
}
.settings-toolbar {
  display: flex;
  gap: 9px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.settings-toolbar .search {
  max-width: none;
}
.settings-row {
  display: grid;
  grid-template-columns: 38px 1.4fr 0.8fr 1fr 0.55fr 25px;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #eaf0ef;
}
.settings-row.clickable {
  cursor: pointer;
}
.settings-row.clickable:hover {
  background: #f8fbfa;
}
.settings-row strong,
.settings-row small {
  display: block;
}
.settings-row strong {
  font-size: 10px;
}
.settings-row small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.settings-row > button {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.table-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dceee9;
  color: #22675e;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}
.table-avatar.blue {
  background: #e4edf4;
  color: #46758f;
}
.policy {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 8px;
  font-weight: 800;
}
.policy.auto {
  background: #e2f3ea;
  color: #276d52;
}
.policy.manual {
  background: #fee8ce;
  color: #96601f;
}
.capabilities {
  font-size: 8px;
  color: #536d72;
}
.active-state {
  font-size: 8px;
  color: #267558;
}
.team-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
}
.team-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px;
  display: grid;
  grid-template-columns: 39px 1fr;
  gap: 11px;
}
.team-symbol {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #dceee9;
  color: #22675e;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.team-symbol.blue {
  background: #e4edf4;
  color: #46758f;
}
.team-card strong,
.team-card small {
  display: block;
}
.team-card strong {
  font-size: 12px;
}
.team-card small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.team-card dl {
  grid-column: 1/-1;
  margin: 7px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.team-card dl div {
  background: #f5f9f8;
  padding: 10px;
  border-radius: 7px;
}
.team-card dt {
  font-size: 7px;
  color: var(--muted);
  text-transform: uppercase;
}
.team-card dd {
  font-size: 9px;
  font-weight: 800;
  margin: 5px 0 0;
}
.team-card > button {
  grid-column: 1/-1;
  border: 0;
  background: transparent;
  text-align: right;
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
}
.profile-section {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.profile-section > strong {
  display: block;
  font-size: 10px;
  margin-bottom: 10px;
}
.check-row,
.radio-row {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  margin-top: 7px;
}
.check-row span,
.radio-row span,
.check-row small,
.radio-row small {
  display: block;
}
.check-row span,
.radio-row span {
  font-size: 10px;
  font-weight: 700;
}
.check-row small,
.radio-row small {
  font-size: 8px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.radio-row.selected {
  border-color: #83beb4;
  background: #f4faf8;
}
.chip-select {
  display: flex;
  gap: 7px;
}
.chip-select button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 20px;
  padding: 7px 10px;
  font-size: 9px;
}
.chip-select button.selected {
  background: #e2f3ea;
  color: #226c52;
  border-color: #86c2b7;
}
.profile-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.profile-data > div {
  background: #f5f9f8;
  border-radius: 8px;
  padding: 12px;
}
.profile-data small,
.profile-data strong {
  display: block;
}
.profile-data small {
  font-size: 7px;
  color: var(--muted);
}
.profile-data strong {
  font-size: 10px;
  margin-top: 6px;
}
.green-text {
  color: #277457;
}
@media (max-width: 750px) {
  .settings-row {
    grid-template-columns: 35px 1fr auto;
  }
  .settings-row > div:nth-child(3),
  .settings-row > .policy,
  .settings-row > .capabilities {
    display: none;
  }
  .team-cards {
    grid-template-columns: 1fr;
  }
  .profile-data {
    grid-template-columns: 1fr;
  }
  .settings-tabs {
    overflow: auto;
  }
  .settings-tabs button {
    white-space: nowrap;
  }
}
.action-body {
  display: grid;
  gap: 12px;
}
.action-field {
  display: grid;
  gap: 7px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.action-field input,
.action-field select,
.action-field textarea {
  border: 1px solid var(--line);
  background: #fbfdfd;
  border-radius: 9px;
  padding: 11px;
  color: var(--ink);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}
.action-field textarea {
  height: 70px;
  resize: none;
}
.action-field em {
  font-style: normal;
  font-weight: 400;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.impact,
.duration-ok,
.warning-box {
  border-radius: 9px;
  padding: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.impact {
  display: grid;
  background: #eef6f4;
}
.impact span {
  font-size: 7px;
  color: var(--muted);
  text-transform: uppercase;
}
.impact strong {
  font-size: 10px;
}
.impact small {
  font-size: 8px;
  color: var(--muted);
}
.duration-ok {
  background: #e8f5ee;
  color: #246c50;
}
.duration-ok > span {
  font-size: 17px;
}
.duration-ok strong,
.duration-ok small {
  display: block;
}
.duration-ok strong {
  font-size: 10px;
}
.duration-ok small {
  font-size: 8px;
  margin-top: 3px;
}
.timer-card {
  text-align: center;
  border: 1px solid #ead7a1;
  background: #fff9e8;
  border-radius: 10px;
  padding: 15px;
}
.timer-card strong,
.timer-card span {
  display: block;
}
.timer-card strong {
  font-size: 26px;
  color: #8e681d;
}
.timer-card span {
  font-size: 8px;
  color: #8b7951;
  margin-top: 4px;
}
.candidate {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.candidate > span {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #dceee9;
  color: #22665e;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}
.candidate strong,
.candidate small {
  display: block;
}
.candidate strong {
  font-size: 10px;
}
.candidate small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.candidate > i {
  width: 19px;
  height: 19px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9px;
}
.candidate.selected {
  border-color: #83beb4;
  background: #f4faf8;
}
.candidate.selected > i {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.warning-box {
  background: #fae7e7;
  color: #9c4141;
}
.warning-box > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3cccc;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.warning-box strong,
.warning-box small {
  display: block;
}
.warning-box strong {
  font-size: 10px;
}
.warning-box small {
  font-size: 8px;
  margin-top: 4px;
}
.danger-button {
  background: #a94747;
  border-color: #a94747;
}
@media (max-width: 650px) {
  .two-fields {
    grid-template-columns: 1fr;
  }
}
.modal-actions .modal-close {
  width: auto;
  height: auto;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 10px;
  font-weight: 800;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  line-height: normal;
  flex: none;
}
.modal-actions .primary {
  flex: none;
  min-width: 108px;
}
.modal-actions {
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}
.extension-alert {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 13px;
  border: 1px solid #ead49b;
  background: #fff9e9;
  border-radius: 11px;
  padding: 14px 16px;
  margin-bottom: 15px;
}
.timer-ring {
  width: 45px;
  height: 45px;
  border: 4px solid #e9c766;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8a661c;
  font-size: 12px;
  font-weight: 900;
}
.extension-alert h3 {
  margin: 4px 0;
  font-size: 13px;
}
.extension-alert p {
  margin: 0;
  font-size: 9px;
  color: #7e704b;
}
.extension-alert > div:last-child {
  display: flex;
  gap: 7px;
}
.booked-list,
.history-list {
  margin-bottom: 15px;
}
.booked-row {
  display: grid;
  grid-template-columns: 55px 1fr auto 90px 25px;
  gap: 13px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid #eaf0ef;
}
.booked-row > div:nth-child(2) strong,
.booked-row > div:nth-child(2) small,
.pay,
.pay small {
  display: block;
}
.booked-row > div:nth-child(2) strong {
  font-size: 11px;
}
.booked-row > div:nth-child(2) small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.pay {
  text-align: right;
  font-size: 10px;
  font-weight: 800;
}
.pay small {
  font-size: 7px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}
.booked-row > button {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.booked-row.muted {
  opacity: 0.75;
}
.phone-note {
  margin: 0;
  text-align: center;
  font-size: 8px;
  color: var(--muted);
}
.availability-card {
  overflow: hidden;
}
.availability-count {
  font-size: 9px;
  color: #9d4e4e;
  background: #fae7e7;
  padding: 6px 9px;
  border-radius: 20px;
}
.availability-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
}
.availability-day {
  min-height: 90px;
  border: 0;
  border-right: 1px solid #e8efee;
  border-bottom: 1px solid #e8efee;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 9px;
}
.availability-day:nth-child(7n) {
  border-right: 0;
}
.availability-day small {
  font-size: 7px;
  color: #93a1a3;
  min-height: 8px;
}
.availability-day strong {
  font-size: 12px;
}
.availability-day.unavailable {
  background: #f9e6e6;
  color: #9d4444;
  box-shadow: inset 0 0 0 1px #efcaca;
}
.availability-day > span {
  font-size: 7px;
  background: #f2cfcf;
  padding: 4px 5px;
  border-radius: 4px;
}
.availability-legend {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  font-size: 8px;
  color: var(--muted);
}
.availability-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #e7f0ee;
  margin-right: 5px;
}
.availability-legend i.red {
  background: #e5a7a7;
}
.availability-legend small {
  margin-left: auto;
}
.time-range {
  display: grid;
  grid-template-columns: 1fr 150px 110px 110px auto;
  gap: 10px;
  align-items: end;
  margin-top: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px;
}
.time-range > div strong,
.time-range > div small {
  display: block;
}
.time-range > div strong {
  font-size: 11px;
}
.time-range > div small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.time-range label {
  display: grid;
  gap: 5px;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}
.time-range input {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  font-size: 9px;
}
@media (max-width: 750px) {
  .extension-alert {
    grid-template-columns: 45px 1fr;
  }
  .extension-alert > div:last-child {
    grid-column: 1/-1;
  }
  .booked-row {
    grid-template-columns: 48px 1fr auto;
  }
  .booked-row .pay {
    display: none;
  }
  .availability-grid {
    min-width: 630px;
  }
  .availability-card {
    overflow: auto;
  }
  .time-range {
    grid-template-columns: 1fr 1fr;
  }
  .time-range > div,
  .time-range .save-range {
    grid-column: 1/-1;
  }
}
.availability-day.booked-day {
  background: #e3f3ea;
  color: #256d51;
  box-shadow: inset 0 0 0 1px #b7dbc9;
}
.booked-label {
  font-size: 7px;
  background: #cbe9d9 !important;
  color: #246b50;
  padding: 4px 5px;
  border-radius: 4px;
}
.availability-legend i.green {
  background: #7fc29e;
}
.mark-mode {
  border: 1px solid #e2b4b4;
  background: white;
  color: #a24a4a;
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 10px;
  font-weight: 800;
}
.mark-mode.active {
  background: #a64b4b;
  color: white;
  border-color: #a64b4b;
  box-shadow: 0 0 0 3px #f4dede;
}
.copy-panel {
  width: min(760px, 100%);
}
.copy-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.copy-toolbar strong {
  font-size: 13px;
}
.copy-toolbar button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  width: 31px;
  height: 31px;
  color: var(--muted);
}
.copy-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.copy-day {
  height: 68px;
  border: 0;
  border-right: 1px solid #e8efee;
  border-bottom: 1px solid #e8efee;
  background: white;
  display: grid;
  place-content: center;
  gap: 5px;
  color: var(--ink);
}
.copy-day:nth-child(7n) {
  border-right: 0;
}
.copy-day small {
  font-size: 7px;
  color: #91a0a2;
}
.copy-day strong {
  font-size: 11px;
}
.copy-day:hover:not(:disabled) {
  background: #f3f9f7;
}
.copy-day.selected {
  background: #dff1ec;
  color: #176d63;
  box-shadow: inset 0 0 0 2px #5da99d;
}
.copy-day.selected:after {
  content: "✓";
  font-size: 8px;
  font-weight: 900;
}
.copy-day:disabled {
  background: #fafbfb;
  cursor: default;
}
.copy-summary {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr;
  gap: 9px;
  margin-top: 13px;
}
.copy-summary > div {
  background: #f4f8f7;
  border-radius: 8px;
  padding: 11px;
  min-width: 0;
}
.copy-summary span,
.copy-summary strong {
  display: block;
}
.copy-summary span {
  font-size: 7px;
  color: var(--muted);
  text-transform: uppercase;
}
.copy-summary strong {
  font-size: 9px;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.create-copies:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 650px) {
  .copy-calendar {
    min-width: 0;
  }
  .copy-day {
    height: 52px;
  }
  .copy-summary {
    grid-template-columns: 1fr;
  }
  .copy-summary > div:first-child {
    display: none;
  }
}
.new-booking {
  background: #f3fbf7;
  animation: newShift 0.35s ease-out;
}
.pilot-loading {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--wash);
}
.pilot-loading strong {
  font-size: 13px;
}
.live-pill {
  font-size: 9px;
  font-weight: 800;
  color: #267558;
  background: #e5f4ef;
  border-radius: 20px;
  padding: 7px 10px;
}
.pilot-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 15px;
}
.pilot-list {
  overflow: hidden;
}
.pilot-list > .settings-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eaf0ef;
  background: white;
  text-align: left;
  color: var(--ink);
}
.pilot-person i {
  font-style: normal;
  color: var(--muted);
}
.simple-row {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid #eaf0ef;
}
.simple-row strong,
.simple-row small {
  display: block;
}
.simple-row strong {
  font-size: 11px;
}
.simple-row small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.pilot-shift-row {
  width: 100%;
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) auto minmax(100px, 0.28fr);
  gap: 14px;
  align-items: center;
  padding: 13px 20px;
  border: 0;
  border-top: 1px solid #eaf0ef;
  background: white;
  color: var(--ink);
  text-align: left;
}
.pilot-shift-row:hover { background: #f7fbfa; }
.pilot-shift-row > div:nth-child(2) strong,
.pilot-shift-row > div:nth-child(2) small {
  display: block;
}
.pilot-shift-row > div:nth-child(2) strong {
  font-size: 11px;
}
.pilot-shift-row > div:nth-child(2) small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 5px;
}
.pilot-shift-row > span:last-child {
  font-size: 9px;
  color: var(--muted);
}
.status-chip {
  font-size: 8px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 20px;
  background: #e9efee;
  color: #587074;
}
.status-chip.published {
  background: #e5eff6;
  color: #3f7896;
}
.status-chip.inquiry,
.status-chip.draft {
  background: #fff0dc;
  color: #9d6021;
}
.status-chip.booked,
.status-chip.completed {
  background: #e3f3ef;
  color: #197266;
}
.status-chip.cancelled,
.status-chip.sick {
  background: #fae7e7;
  color: #a84b4b;
}
.pilot-empty {
  min-height: 135px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
}
.pilot-empty span {
  font-size: 24px;
}
.pilot-empty strong {
  font-size: 10px;
}
.calendar-agenda {
  display: grid;
  gap: 12px;
}
.agenda-day {
  overflow: hidden;
}
.agenda-day > h3 {
  font-size: 13px;
  text-transform: capitalize;
  margin: 0;
  padding: 17px 20px;
  background: #f9fbfa;
}
.pilot-shifts {
  overflow: hidden;
}
.pilot-shifts .pilot-empty {
  border: 0;
}
.modal form.form-grid {
  max-height: 68vh;
  overflow: auto;
  padding-right: 3px;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfdfd;
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  font-size: 10px;
}
.form-grid textarea {
  min-height: 80px;
  resize: vertical;
}
.form-grid .check-row {
  display: flex;
}
.form-grid .check-row input {
  width: auto;
}
.team-checks {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.team-checks > strong {
  display: block;
  font-size: 10px;
  margin-bottom: 8px;
}
.modal-actions.wide {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
@media (max-width: 850px) {
  .pilot-columns {
    grid-template-columns: 1fr;
  }
  .pilot-shift-row {
    grid-template-columns: 48px 1fr auto;
  }
  .pilot-shift-row > span:last-child {
    grid-column: 2;
  }
  .live-pill {
    display: none;
  }
}
@media (max-width: 600px) {
  .pilot-shift-row {
    grid-template-columns: 45px 1fr;
  }
  .pilot-shift-row > .status-chip {
    grid-column: 2;
    justify-self: start;
  }
  .pilot-shift-row > span:last-child {
    display: none;
  }
}
.auth-shell {
  min-height: 100vh;
  background: linear-gradient(145deg, #092f35 0%, #174b50 48%, #e8f1ef 48%);
  display: grid;
  grid-template-columns: 1fr minmax(340px, 480px);
  align-items: center;
  gap: 8vw;
  padding: 7vw;
}
.auth-brand {
  color: white;
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-brand .product-mark {
  width: 52px;
  height: 52px;
  font-size: 18px;
}
.auth-brand strong,
.auth-brand small {
  display: block;
}
.auth-brand strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}
.auth-brand small {
  margin-top: 5px;
  color: #a9c5c2;
}
.auth-card {
  background: white;
  border-radius: 22px;
  padding: 38px;
  box-shadow: 0 30px 90px rgba(5, 31, 35, 0.25);
}
.auth-card h1 {
  font-size: 30px;
  letter-spacing: -0.045em;
  margin: 8px 0;
}
.auth-card > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.auth-card form {
  display: grid;
  gap: 14px;
}
.auth-card label {
  display: grid;
  gap: 7px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #607579;
}
.auth-card label small {
  font-size: 8px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.auth-card input {
  border: 1px solid var(--line);
  background: #fbfdfd;
  border-radius: 10px;
  padding: 13px;
  font-size: 12px;
  color: var(--ink);
  outline: 0;
}
.auth-card input:focus {
  border-color: #62aa9f;
  box-shadow: 0 0 0 3px #e5f3ef;
}
.auth-submit {
  width: 100%;
  padding: 13px;
  margin-top: 5px;
}
.auth-submit:disabled {
  opacity: 0.55;
}
.auth-error {
  background: #fae7e7;
  color: #984545;
  border-radius: 9px;
  padding: 11px;
  font-size: 9px;
  line-height: 1.45;
}
.auth-switch {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  margin-top: 18px;
}
@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: 1fr;
    background: #e8f1ef;
    padding: 22px;
  }
  .auth-brand {
    color: var(--ink);
  }
  .auth-brand small {
    color: var(--muted);
  }
  .auth-card {
    padding: 25px;
  }
}
/* Month calendars must grow with dense days instead of letting events escape into later weeks. */
.month-stack {
  display: grid;
  gap: 20px;
  padding-bottom: 24px;
}
.month-calendar {
  min-width: 0;
  overflow: hidden;
  padding: 18px;
}
.month-calendar .month-title { margin-bottom: 14px; }
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #eef5f3;
}
.weekdays strong {
  padding: 9px 8px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.weekdays strong:last-child { border-right: 0; }
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: stretch;
  border-radius: 0 0 10px 10px;
}
.month-grid > .calendar-day,
.month-grid > .calendar-blank {
  display: block;
  height: auto;
  min-height: 138px;
  padding: 10px;
  border: 0;
  border-right: 1px solid #e8efee;
  border-bottom: 1px solid #e8efee;
  background: white;
  overflow: hidden;
  place-content: initial;
  justify-items: initial;
  text-align: left;
}
.month-grid > :nth-child(7n) { border-right: 0; }
.month-grid > .calendar-day > b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 11px;
}
.month-grid > .calendar-day.clickable-day:hover { background: #f6faf9; }
.month-grid > .calendar-blank { background: #f7faf9; }
.day-shifts {
  display: grid;
  gap: 5px;
}
.month-grid > .calendar-day > .day-shifts {
  position: static;
  max-height: none;
  overflow: visible;
}
.calendar-shift {
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-left: 3px solid var(--teal);
  border-radius: 5px;
  background: #e4f3ef;
  color: #176c63;
  display: grid;
  gap: 3px;
  text-align: left;
}
.calendar-shift strong { font-size: 10px; line-height:1.25; }
.calendar-shift span { overflow: hidden; font-size: 9px; line-height:1.3; text-overflow: ellipsis; white-space: nowrap; }
.calendar-shift.published { background:#cfe5ff;color:#123f73;border-left-color:#2878c8; }
.calendar-shift.inquiry { background:#ffedaa;color:#694d00;border-left-color:#d49a00; }
.calendar-shift.draft { background:#ffd3a8;color:#743500;border-left-color:#e26d00; }
.calendar-shift.booked,.calendar-shift.completed { background:#c9ead9;color:#164f38;border-left-color:#25845d; }
.calendar-shift.sick,.calendar-shift.cancelled { background:#ffd0cc;color:#7b251d;border-left-color:#ce4438; }
@media (max-width: 760px) {
  .month-calendar { overflow-x: auto; padding: 14px; }
  .month-calendar .month-title { min-width: 700px; }
  .weekdays, .month-grid { min-width: 700px; }
}
.status-chip.pending-extension,
.calendar-shift.pending-extension {
  background: #fef3c7;
  color: #7a5b08;
  border-color: #d79b12;
}
.calendar-shift.pending-extension {
  border-left-color: #d79b12;
}
.status-chip.flexible,.calendar-shift.flexible,.pill.purple { background:#ead8ff;color:#5f2194;border-color:#7b35b8; }
.calendar-shift.flexible { border-left-color:#7b35b8; }
.status-chip.pending-extension,.calendar-shift.pending-extension { background:#ffe0b0;color:#8a3d00;border-color:#e07818; }
.calendar-shift.pending-extension { border-left-color:#e07818; }
.flexible-bid-box,.flexible-bids { margin-top:16px;padding:18px;border:2px solid #7b35b8;border-radius:14px;background:#f5edff;display:grid;gap:10px; }
.flexible-bid-box>div { display:flex;gap:12px; }.flexible-bid-box label { display:grid;gap:5px;font-size:10px;font-weight:800; }.flexible-bid-box input { padding:10px;border:1px solid #9564c3;border-radius:8px;background:#fff; }
.flexible-primary { background:#6d29a8!important; }.flexible-bid-box small { color:#603388; }
.flexible-bids>div { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:10px;background:#fff; }.flexible-bids span,.flexible-bids small { display:block; }.flexible-bids small { margin-top:4px;color:#654e78; }.bid-actions { display:flex!important;gap:8px; }
.extension-explainer { padding:12px;border:1px solid #e07818;border-radius:10px;background:#fff0d8; }.extension-explainer strong,.extension-explainer small { display:block; }.extension-explainer small { margin-top:4px;color:#7b4a23; }
.pending-note strong {
  font-size: 11px;
}
.copy-mode-bar {
  position: sticky;
  top: 8px;
  z-index: 3;
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #83beb4;
  border-radius: 11px;
  background: #eff9f6;
  box-shadow: 0 8px 24px rgba(15, 67, 69, 0.13);
}
.copy-mode-bar div {
  margin-right: auto;
}
.copy-mode-bar strong,
.copy-mode-bar small {
  display: block;
}
.copy-mode-bar strong {
  font-size: 12px;
}
.copy-mode-bar small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.copy-mode-bar > span {
  font-size: 10px;
  font-weight: 800;
  color: var(--teal);
}
.month-grid > .calendar-day.copy-selected {
  background: #dff3ed;
  box-shadow: inset 0 0 0 3px #168878;
}
.copy-date-mark {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 7px;
  border-radius: 20px;
  background: #168878;
  color: white;
  font-size: 8px;
  font-weight: 800;
}

.help-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
}
.help-contact-card,
.help-guide-card {
  padding: 25px;
}
.help-contact-card h3,
.help-guide-card h3 {
  margin: 7px 0 8px;
  font-size: 20px;
}
.help-contact-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.help-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  text-decoration: none;
  transition: 0.15s ease;
}
.help-contact-link:hover {
  border-color: #79b8ae;
  background: #f2f9f7;
}
.help-contact-link > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #e4f2ef;
  color: var(--teal);
  font-size: 14px;
}
.help-contact-link small,
.help-contact-link strong {
  display: block;
}
.help-contact-link small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.help-contact-link strong {
  margin-top: 3px;
  font-size: 12px;
}
.help-guide-list {
  display: grid;
  gap: 4px;
  margin-top: 17px;
}
.help-guide-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.help-guide-list article > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 9px;
  font-weight: 800;
}
.help-guide-list strong {
  font-size: 11px;
}
.help-guide-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}
@media (max-width: 820px) {
  .help-grid { grid-template-columns: 1fr; }
}

.registration-shell{min-height:100vh;display:grid;grid-template-columns:310px minmax(0,760px);justify-content:center;gap:42px;padding:46px 24px;background:#edf3f2}.registration-brand{position:sticky;top:46px;height:max-content;padding:28px;color:white;border-radius:20px;background:linear-gradient(155deg,#153f46,#0b3035)}.registration-brand .toern-logo-crop{filter:brightness(0) invert(1);margin-bottom:22px}.registration-brand h1{margin:0 0 10px;font-size:28px}.registration-brand>p{color:#b8cdcf;font-size:12px;line-height:1.65}.registration-brand ol{display:grid;gap:18px;margin:28px 0 0;padding:0;list-style:none;counter-reset:steps}.registration-brand li{display:grid;grid-template-columns:26px 1fr;gap:10px;counter-increment:steps}.registration-brand li:before{content:counter(steps);display:grid;width:25px;height:25px;place-items:center;border-radius:50%;background:#2b9c90;font-size:10px;font-weight:800}.registration-brand li b,.registration-brand li span{display:block}.registration-brand li b{font-size:11px}.registration-brand li span{margin-top:3px;color:#9fbabd;font-size:9px;line-height:1.45}.registration-card{padding:34px;border-radius:20px;background:white;box-shadow:0 20px 60px rgba(16,57,61,.1)}.registration-card h2{margin:6px 0 8px;font-size:26px}.registration-card>p{margin:0 0 28px;color:var(--muted);font-size:11px}.registration-card fieldset{margin:0;padding:22px 0;border:0;border-top:1px solid var(--line)}.registration-card legend{padding:0 0 15px;font-size:14px;font-weight:800}.registration-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.registration-card label{display:grid;gap:7px;color:#607579;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.registration-card label.wide{grid-column:1/-1}.registration-card input{width:100%;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fbfdfd;color:var(--ink);font-size:12px;outline:0}.registration-card input:focus{border-color:#62aa9f;box-shadow:0 0 0 3px #e5f3ef}.registration-company{display:flex;gap:12px;margin-top:14px;padding:13px;border:1px solid #b9ddd6;border-radius:10px;background:#f2f9f7}.registration-company>span{color:#168878}.registration-company small,.registration-company strong{display:block}.registration-company small{font-size:7px;color:var(--muted)}.registration-company strong{margin-top:3px;font-size:11px}.registration-company p{margin:3px 0 0;color:var(--muted);font-size:9px}.registration-file{margin-top:14px}.registration-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.registration-options label{display:flex;align-items:center;padding:13px;border:1px solid var(--line);border-radius:10px;font-size:10px;cursor:pointer}.registration-options input,.registration-consent input{width:auto;accent-color:#168878}.registration-consent{display:flex!important;align-items:flex-start;gap:10px;line-height:1.5;text-transform:none!important;letter-spacing:0!important}.registration-error{padding:10px;border-radius:8px;background:#fae7e7;color:#984545;font-size:10px}.registration-submit{width:100%;margin-top:20px;padding:14px}.registration-success{text-align:center;padding:55px 20px}.registration-success>span{display:grid;width:54px;height:54px;margin:0 auto 18px;place-items:center;border-radius:50%;background:#dff3ed;color:#168878;font-size:22px}.registration-success p{color:var(--muted);font-size:11px}@media(max-width:800px){.registration-shell{grid-template-columns:1fr;padding:20px}.registration-brand{position:static}.registration-brand ol{display:none}}@media(max-width:520px){.registration-grid,.registration-options{grid-template-columns:1fr}.registration-card{padding:24px}.registration-card label.wide{grid-column:auto}}
.bulk-head {
  min-height: 58px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfa;
}
.bulk-head label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
}
.bulk-head strong {
  font-size: 10px;
  color: var(--muted);
}
.bulk-head .danger-button {
  margin-left: auto;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 10px;
}
.bulk-shift-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  min-width: 0;
  border-bottom: 1px solid #eaf0ef;
  background: white;
}
.bulk-shift-row.selected {
  background: #eef8f5;
}
.bulk-check {
  display: grid;
  place-items: center;
  border-right: 1px solid #edf2f1;
}
.bulk-check input,
.bulk-head input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}
.bulk-row-main {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) auto minmax(100px, 150px);
  min-width: 0;
  gap: 15px;
  align-items: center;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.bulk-row-main:hover {
  background: #f7fbfa;
}
.bulk-row-main strong,
.bulk-row-main small {
  display: block;
}
.bulk-row-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}
.bulk-row-main > span:last-child {
  font-size: 10px;
  color: var(--muted);
}
.bulk-row-main > div:nth-child(2) {
  min-width: 0;
}
.bulk-row-main > div:nth-child(2) strong,
.bulk-row-main > div:nth-child(2) small,
.bulk-row-main > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .bulk-head {
    flex-wrap: wrap;
  }
  .bulk-row-main {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }
  .bulk-row-main > span:last-child {
    display: none;
  }
}
.invite-note {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  background: #e9f4f1;
  color: #174b50;
}
.invite-note small {
  color: #607579;
}
.worker-profile-card {
  padding: 28px;
}
.worker-profile-head {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 18px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.worker-profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #dceee9;
  color: #22675e;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}
.worker-profile-head h3 {
  margin: 0 0 7px;
  font-size: 19px;
}
.worker-profile-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.worker-profile-state {
  font-size: 10px;
  color: #8b9698;
  font-weight: 800;
}
.worker-profile-state.active {
  color: #267558;
}
.worker-profile-card .profile-data {
  gap: 14px;
}
.worker-profile-card .profile-data > div {
  padding: 16px;
}
.worker-profile-card .profile-data small {
  font-size: 9px;
}
.worker-profile-card .profile-data strong {
  margin-top: 8px;
  font-size: 12px;
}
.worker-profile-help {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.worker-password-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin-top: 32px;
  padding: 20px;
  border-radius: 12px;
  background: #f5f9f8;
}
.worker-password-form > div strong,
.worker-password-form > div small {
  display: block;
}
.worker-password-form > div strong {
  font-size: 12px;
}
.worker-password-form > div small {
  margin-top: 5px;
  font-size: 9px;
  color: var(--muted);
}
.worker-password-form label {
  font-size: 9px;
  font-weight: 800;
}
.worker-password-form input {
  margin-top: 7px;
}
.worker-password-message {
  grid-column: 1/-1;
  margin: 2px 0 0;
  font-size: 10px;
  color: var(--teal);
}
.worker-profile-help {
  margin-top: 34px;
}
@media (max-width: 850px) {
  .worker-password-form {
    grid-template-columns: 1fr;
  }
  .worker-profile-head {
    grid-template-columns: 58px 1fr;
  }
  .worker-profile-state {
    grid-column: 2;
  }
}
.worker-hours {
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
}
.worker-hours-head {
  display: flex;
  gap: 14px;
  align-items: end;
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.worker-hours-head > div {
  margin-right: auto;
}
.worker-hours-head h3 {
  margin: 4px 0 0;
  font-size: 14px;
}
.worker-hours-head label {
  font-size: 8px;
  font-weight: 800;
  color: var(--muted);
}
.worker-hours-head input {
  display: block;
  margin-top: 6px;
  min-width: 138px;
  padding: 8px 10px;
  background: white;
}
.worker-hours-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.worker-hours-grid article {
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: white;
}
.worker-hours-grid article:last-child {
  border-right: 0;
}
.worker-hours-grid small,
.worker-hours-grid strong {
  display: block;
}
.worker-hours-grid small {
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.worker-hours-grid strong {
  margin-top: 7px;
  font-size: 17px;
  color: #174b50;
}
.worker-hours-grid strong span {
  font-size: 8px;
  color: var(--muted);
  font-weight: 700;
}
.worker-hours-note {
  display: block;
  margin: 0;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: #f8fbfa;
  color: var(--muted);
  font-size: 8px;
}
@media (max-width: 850px) {
  .worker-hours-head {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .worker-hours-head > div {
    width: 100%;
  }
  .worker-hours-grid {
    grid-template-columns: 1fr 1fr;
  }
  .worker-hours-grid article:nth-child(2) {
    border-right: 0;
  }
  .worker-hours-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
.worker-hours-head {
  gap: 20px;
  padding: 20px;
}
.worker-hours-head label {
  font-size: 10px;
}
.worker-hours-head input {
  margin-top: 8px;
  min-width: 178px;
  padding: 11px 13px;
  font-size: 12px;
}
