@charset "UTF-8";

@font-face  {
  font-family: Inter;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #172c2a;
  --text: #293c3a;
  --muted: #5f6e64;
  --line: #e5ebe7;
  --canvas: #f5f7f6;
  --paper: #fff;
  --accent: #207963;
  --accent-hover: #17634f;
  --green-soft: #e9f4ee;
  --amber: #a17425;
  --amber-soft: #fcf4e5;
  --blue: #5475a2;
  --blue-soft: #edf2fa;
  --radius: 12px;
  --shadow: 0 2px 5px #152e2312;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,input,select,textarea {
  font: inherit;
  font-size: 13px;
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
  font-size: 13px;
}

button,a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}

button svg,a svg {
  pointer-events: none;
}

h1,h2,h3,p {
  margin: 0;
}

h1,h2,h3 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -.025em;
}

h2 {
  font-size: 17px;
}

h3 {
  font-size: 14px;
}

p {
  line-height: 1.65;
}

button:focus-visible,a:focus-visible,summary:focus-visible {
  outline: 3px solid #85bca9;
  outline-offset: 3px;
}

.hidden,[hidden] {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: white;
  padding: 12px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

/* Workspace */

.suite-shell {
  display: grid;
  grid-template-columns: 232px minmax(0,1fr);
  min-height: 100vh;
}

.suite-sidebar {
  background: #142624;
  color: #a6b6af;
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  display: flex;
  flex-direction: column;
  padding: 31px 18px 18px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f8faf8;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.5px;
}

.brand>svg {
  height: 34px;
  width: 34px;
  background: #2f584c;
  padding: 6px;
  border-radius: 10px;
  color: #d0e9da;
}

.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: .19em;
  font-weight: 500;
  color: #9db4a9;
  margin-top: 1px;
}

.suite-sidebar .brand {
  margin: 0 9px 42px;
}

.workspace-label {
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 650;
  color: #718b7f;
  margin: 0 14px 14px;
}

.admin-nav-list {
  display: grid;
  gap: 5px;
}

.admin-nav-item {
  border: 0;
  background: transparent;
  color: #a8bab0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 7px;
  width: 100%;
  font-weight: 500;
  font-size: 13px;
  transition: background .15s,color .15s;
}

.admin-nav-item svg {
  width: 18px;
  height: 18px;
  opacity: .85;
}

.admin-nav-item:hover {
  background: #ffffff08;
  color: #fff;
}

.admin-nav-item.is-active {
  background: #29473e;
  color: #f0fff7;
}

.admin-nav-item.is-active svg {
  color: #a2d3b6;
  opacity: 1;
}

.nav-count {
  margin-left: auto;
  min-width: 19px;
  text-align: center;
  background: #ffffff12;
  border-radius: 4px;
  font-size: 10px;
  padding: 1px 4px;
  color: #c4dbcc;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}

.sidebar-company {
  display: flex;
  gap: 9px;
  border-top: 1px solid #ffffff12;
  padding: 22px 8px 16px;
  align-items: center;
}

.company-mark {
  display: grid;
  place-items: center;
  background: #ffffff08;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  padding: 8px;
  color: #b4c9ba;
}

.sidebar-company div {
  min-width: 0;
}

.sidebar-company strong {
  display: block;
  font-size: 11px;
  color: #dde6df;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
  font-weight: 550;
}

.sidebar-company small {
  font-size: 10px;
  color: #7d9789;
}

.logout-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  padding: 12px 13px;
  border-radius: 7px;
}

.logout-link:hover {
  background: #ffffff08;
  color: #fff;
}

.logout-link svg {
  width: 17px;
  height: 17px;
}

.suite-main {
  grid-column: 2;
  min-width: 0;
}

.suite-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: #ffffffd9;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}

.breadcrumb {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb span {
  color: #5f6260;
}

.breadcrumb strong {
  font-weight: 500;
  color: #43594e;
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 24px;
}

.connection-state {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #55675c;
}

.connection-state i,.live-label i {
  width: 6px;
  height: 6px;
  background: #48a47d;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px #48a47d10;
}

.connection-state.is-offline {
  color: #7f5c1d;
}

.connection-state.is-offline i {
  background: #d3a14e;
}

.topbar-avatar {
  display: grid;
  place-items: center;
  border: 1px solid #dde7df;
  background: #eaf0e9;
  color: #4f6855;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 10px;
  font-weight: 650;
}

.suite-content {
  padding: 33px 36px 0;
  max-width: 1800px;
  margin: 0 auto;
  outline: none;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.page-heading .eyebrow {
  font-size: 10px;
  letter-spacing: .13em;
  color: #5a655e;
}

.page-heading h1 {
  font-size: 29px;
  line-height: 1.3;
  margin: 6px 0 5px;
}

.page-heading p {
  font-size: 13px;
  color: var(--muted);
}

.page-heading-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.date-label {
  font-size: 12px;
  color: #5a655d;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: #55675b;
  width: 36px;
  height: 36px;
  border-radius: 7px;
}

.icon-button:hover {
  background: #f0f5f0;
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.icon-button.is-loading svg {
  animation: rotate 1s linear infinite;
}

.admin-section-panel {
  display: none;
}

.admin-section-panel.is-active {
  display: block;
}

.workspace-footer {
  margin-top: auto;
  padding: 32px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #5c635f;
  font-size: 10px;
}

.workspace-footer span span {
  margin: 0 7px;
  color: #606361;
}

/* Forms and shared controls */

.admin-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #495e51;
  font-weight: 550;
}

input,select,textarea {
  border: 1px solid #dfe6df;
  color: #314a3c;
  border-radius: 6px;
  padding: 11px 12px;
  width: 100%;
  min-width: 0;
  background: #fff;
  line-height: 1.4;
  font-size: 13px;
  outline: none;
  transition: border-color .15s,box-shadow .15s;
}

input::placeholder,textarea::placeholder {
  color: #5d645f;
  font-weight: 400;
}

input:focus,select:focus,textarea:focus {
  border-color: #76a990;
  box-shadow: 0 0 0 3px #2079630e;
}

input[readonly] {
  background: #f6f8f5;
  color: #5a665c;
}

input:disabled {
  background: #f4f6f4;
  color: #5d635d;
}

select {
  cursor: pointer;
  padding-right: 26px;
}

textarea {
  resize: vertical;
}

.primary-button,.secondary-button,.touch-btn {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  min-height: 37px;
  white-space: nowrap;
}

.primary-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 1px 1px #172c2a10;
}

.primary-button:hover {
  background: var(--accent-hover);
}

.secondary-button,.touch-btn {
  background: white;
  border-color: #dfe7df;
  color: #516856;
}

.secondary-button:hover,.touch-btn:hover {
  background: #f3f7f1;
  border-color: #c4d3c4;
}

.primary-button svg,.secondary-button svg {
  width: 15px;
  height: 15px;
}

.text-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  font-weight: 550;
}

.text-button svg {
  width: 13px;
  height: 13px;
}

.danger-text,.touch-btn.danger {
  color: #915246;
}

.touch-btn.danger:hover {
  background: #fcf3ef;
  border-color: #e9c7bc;
}

.touch-btn.mini-touch {
  padding: 6px 9px;
  min-height: 30px;
  font-size: 10px;
}

.status {
  font-size: 12px;
  color: #5a655d;
  min-height: 0;
}

.status:empty {
  display: none;
}

.status.is-error {
  color: #974d3f;
}

.status.is-success {
  color: var(--accent);
}

.field-hint {
  font-weight: 400;
  color: #5a665b;
  font-size: 11px;
  line-height: 1.6;
}

.subtle-tag,.pill,.status-chip,.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1.5;
  padding: 4px 7px;
  border-radius: 5px;
  font-weight: 500;
  white-space: nowrap;
}

.subtle-tag {
  color: #586659;
  background: #f5f8f3;
}

.subtle-tag svg {
  width: 13px;
  height: 13px;
}

.pill.active {
  background: #ebf5ec;
  color: #426c47;
}

.pill.inactive {
  background: #f2f4f0;
  color: #5c655d;
}

.count-badge {
  background: #f0f4ee;
  color: #566851;
  margin-left: 7px;
  font-size: 10px;
  padding: 2px 7px;
}

.surface {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 2px 4px #1e392805;
}

.surface-heading {
  padding: 23px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.surface-heading h2 {
  font-size: 16px;
}

.surface-heading p {
  color: #5b655c;
  font-size: 12px;
  margin-top: 3px;
}

.surface-heading>svg {
  color: #5a6558;
  width: 20px;
  height: 20px;
}

.surface-footer {
  padding: 14px 24px;
  border-top: 1px solid #eff3ec;
  color: #5b6559;
  background: #fcfdfb;
  font-size: 11px;
}

.empty-state {
  padding: 40px 24px;
  color: #5a6559;
  font-size: 12px;
  text-align: center;
}

.empty-state .empty-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #f1f6ef;
  color: #566654;
}

.empty-state strong {
  display: block;
  color: #576754;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 5px;
}

.empty-state p {
  font-size: 11px;
}

.empty-state .text-button {
  margin-top: 13px;
}

/* Overview */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 2px 4px #1e392805;
}

.summary-card>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.summary-card>div>span:first-child {
  font-size: 12px;
  color: #596659;
  font-weight: 500;
}

.summary-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.summary-icon svg {
  width: 16px;
  height: 16px;
}

.green {
  background: #ebf5ee;
  color: #446b54;
}

.amber {
  background: var(--amber-soft);
  color: #756036;
}

.blue {
  background: var(--blue-soft);
  color: #52647d;
}

.neutral {
  background: #f2f4ef;
  color: #5a6551;
}

.summary-card>strong {
  display: block;
  font-size: 32px;
  color: #294631;
  line-height: 1.3;
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.summary-card>small {
  font-size: 11px;
  color: #5c6459;
  margin-top: 6px;
  display: block;
}

.summary-card:nth-child(3)>strong {
  font-size: 27px;
  line-height: 1.54;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 276px;
  gap: 22px;
  align-items: start;
}

.live-label {
  font-size: 12px;
  color: #426b4e;
  background: #f0f8ee;
  border: 1px solid #e9f1e3;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  letter-spacing: .07em;
}

.active-session-group {
  padding: 0 24px 17px;
}

.active-session-group+.active-session-group {
  padding-top: 19px;
  border-top: 1px solid #edf1e9;
}

.active-session-group h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #596657;
  font-weight: 500;
  margin-bottom: 12px;
}

.active-session-group h3 .pill {
  background: #eff5eb;
  font-size: 9px;
  padding: 1px 6px;
  color: #56664d;
}

.active-session-card {
  border: 1px solid #e9eee5;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(110px,1fr) auto;
  gap: 14px;
  align-items: center;
  background: #fff;
}

.active-session-main {
  display: grid;
  gap: 5px;
}

.active-session-main>strong {
  font-size: 14px;
  color: #3c543e;
  font-weight: 600;
}

.active-session-main>.muted {
  font-size: 11px;
  color: #5a665b;
}

.active-session-metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(65px,1fr));
  gap: 13px;
}

.active-session-metrics>div {
  display: grid;
  gap: 4px;
}

.active-session-metrics span {
  font-size: 10px;
  color: #5a665b;
}

.active-session-metrics b {
  font-size: 13px;
  letter-spacing: -.2px;
  font-variant-numeric: tabular-nums;
  color: #51694c;
  font-weight: 550;
  white-space: nowrap;
}

.active-session-metrics .current-break-metric {
  grid-column: 1/-1;
  display: flex;
  gap: 9px;
  align-items: center;
  padding-top: 7px;
  border-top: 1px solid #f1f3ed;
}

.current-break-metric b,.current-break-metric span {
  color: #706038;
}

.active-session-card.is-long-shift {
  background: #fffdf6;
  border-color: #eedfb7;
}

.active-session-warning {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #726138;
  max-width: 240px;
}

.active-session-group>.muted {
  font-size: 11px;
  padding: 10px 0;
  color: #5d6458;
}

.dashboard-aside {
  display: grid;
  gap: 18px;
}

.insights-card {
  padding: 23px;
}

.insights-card>.eyebrow {
  font-size: 8px;
}

.insights-card>h2 {
  font-size: 15px;
  margin-top: 6px;
}

.insight-line {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.insight-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  flex-shrink: 0;
}

.insight-icon svg {
  width: 14px;
  height: 14px;
}

.insight-line strong {
  font-size: 12px;
  color: #54684c;
  font-weight: 550;
  display: block;
  margin-bottom: 4px;
}

.insight-line p {
  font-size: 12px;
  color: #5a665b;
}

.insight-line .text-button {
  margin-top: 8px;
  font-size: 11px;
}

.policy-card {
  padding: 23px;
  background: #eaf0e7;
  border: 1px solid #dfe8da;
  border-radius: var(--radius);
}

.policy-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #dfe9d9;
  color: #516947;
  border-radius: 8px;
  margin-bottom: 15px;
}

.policy-icon svg {
  width: 16px;
  height: 16px;
}

.policy-card h3 {
  font-size: 13px;
  letter-spacing: -.2px;
  color: #4d6b43;
  margin-bottom: 8px;
}

.policy-card p {
  font-size: 12px;
  color: #596652;
  line-height: 1.8;
}

.policy-card p strong {
  color: #536949;
  font-weight: 550;
}

.policy-label {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dae4d3;
  padding-top: 12px;
  color: #57674d;
  font-size: 12px;
}

.policy-label svg {
  width: 13px;
  height: 13px;
}

.last-updated {
  color: #5d6458;
  font-size: 10px;
  text-align: center;
}

/* Staff */

.create-employee-panel {
  margin: 0 24px;
  border: 1px solid #e4ede0;
  border-radius: 8px;
  background: #fafcf8;
}

.create-employee-panel:not([open]) {
  display: none;
}

.create-employee-panel summary {
  padding: 13px 17px;
  font-size: 11px;
  color: #54684d;
  cursor: pointer;
}

.create-employee-grid {
  grid-template-columns: 1.5fr 1fr auto;
  padding: 5px 17px 14px;
  align-items: end;
  gap: 14px;
}

.create-employee-panel>.field-hint {
  padding: 0 17px 15px;
  font-size: 11px;
}

.list-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 0 24px 20px;
  margin-top: 5px;
}

.create-employee-panel[open]+.list-toolbar {
  margin-top: 20px;
}

.search-field {
  position: relative;
  max-width: 340px;
  flex: 1;
}

.search-field>svg {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 15px;
  height: 15px;
  color: #596554;
}

.search-field input {
  padding-left: 35px;
  background: #fafcf8;
  border-color: #e6ece1;
  font-size: 11px;
}

.select-field select {
  font-size: 11px;
  min-width: 177px;
}

.employee-table-heading,.employee-card {
  display: grid;
  grid-template-columns: minmax(155px,1.5fr) minmax(55px,.5fr) minmax(95px,.8fr) minmax(195px,1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
}

.employee-table-heading {
  background: #f8faf5;
  border-block: 1px solid #edf1e8;
  color: #5c6556;
  font-size: 11px;
  letter-spacing: .02em;
}

.employee-card {
  border-bottom: 1px solid #edf1e9;
  padding-block: 17px;
}

.employee-card:last-child {
  border-bottom: 0;
}

.employee-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.employee-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #edf2e8;
  color: #56684c;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.employee-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.employee-main strong {
  font-size: 13px;
  font-weight: 550;
  color: #4b6343;
}

.employee-main .muted {
  font-size: 11px;
  color: #5a665b;
}

.employee-pin {
  font-family: inherit;
  color: #576750;
  font-size: 12px;
  letter-spacing: 1px;
}

.employee-rfid {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #5c6655;
}

.employee-rfid.is-linked {
  color: #4b6a48;
}

.employee-rfid svg {
  width: 13px;
  height: 13px;
}

.employee-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
}

.employee-actions .mini-touch {
  font-size: 10px;
  padding: 5px 7px;
  border-color: #e2eadb;
  color: #596750;
  min-height: 29px;
}

.employee-actions .danger {
  color: #765e4f;
  border-color: #eee5dc;
}

.employee-actions .icon-action {
  padding: 6px;
  width: 29px;
}

.employee-actions svg {
  width: 13px;
  height: 13px;
}

.employee-list .empty-state {
  padding-block: 45px;
}

.enrollment-status:empty {
  display: none;
}

.enrollment-status {
  padding: 15px 18px;
  background: #edf5e7;
  border: 1px solid #dce9d4;
  border-radius: 8px;
  color: #536846;
  margin-top: 20px;
}

/* Records */

.filter-toolbar {
  padding: 0 24px 24px;
  grid-template-columns: minmax(150px,230px) minmax(150px,280px) auto;
  align-items: end;
  justify-content: start;
  gap: 14px;
}

.session-list {
  border-top: 1px solid #edf1e8;
  padding: 12px 24px 24px;
  font-size: 12px;
}

.shift-day-group {
  border: 1px solid #e5ecdf;
  border-radius: 8px;
  margin-top: 12px;
  overflow: hidden;
}

.shift-day-summary {
  padding: 15px 18px;
  cursor: pointer;
  font-size: 13px;
  color: #56664e;
  background: #f9fbf7;
}

.shift-day-title {
  font-weight: 550;
  margin-left: 6px;
}

.shift-day-content {
  padding: 0 18px;
}

.shift-employee-group {
  padding: 18px 0;
  border-top: 1px solid #eef2e9;
}

.shift-employee-group:first-child {
  border-top: 0;
}

.shift-employee-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.shift-employee-summary>div:first-child {
  display: grid;
  gap: 3px;
}

.shift-employee-summary strong {
  font-size: 13px;
  color: #516a46;
}

.shift-employee-summary .muted {
  font-size: 9px;
  color: #5c6556;
}

.shift-total-row {
  display: flex;
  gap: 7px;
}

.shift-pill {
  display: inline-block;
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #f0f6eb;
  color: #546849;
}

.shift-pill-break {
  background: #faf4e7;
  color: #70603e;
}

.shift-detail-row {
  border: 1px solid #e8ede2;
  border-radius: 6px;
  margin-top: 7px;
}

.shift-compact-row {
  display: grid;
  grid-template-columns: 12px minmax(85px,1fr) repeat(3,minmax(60px,1fr)) auto;
  gap: 9px;
  align-items: center;
  padding: 13px 12px;
  cursor: pointer;
  list-style: none;
}

.shift-compact-row::-webkit-details-marker {
  display: none;
}

.shift-expand-icon:before {
  content: "›";
  color: #5c6554;
  display: block;
  transition: transform .15s;
}

.shift-detail-row[open] .shift-expand-icon:before {
  transform: rotate(90deg);
}

.shift-time-range {
  display: grid;
  font-size: 12px;
  gap: 2px;
  color: #5a665b;
}

.shift-time-range b {
  font-weight: 500;
  color: #56664d;
}

.shift-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.shift-metric small {
  font-size: 10px;
  color: #5c6555;
}

.shift-metric b {
  font-size: 11px;
  font-weight: 500;
  color: #58674d;
  font-variant-numeric: tabular-nums;
}

.status-chip {
  font-size: 10px;
  color: #59664f;
  background: #f0f5eb;
  padding: 3px 5px;
}

.is-open>.shift-compact-row>.status-chip {
  color: #466b3f;
  background: #edf7e8;
  font-size: 10px;
}

.is-break>.shift-compact-row>.status-chip {
  color: #71613d;
  background: #faf5e8;
  font-size: 10px;
}

.shift-compliance-warning {
  font-size: 8px;
  font-style: normal;
  color: #72603c;
}

.shift-action-list {
  border-top: 1px solid #edf1e8;
  padding: 12px 14px;
  background: #fcfdfb;
}

.shift-action-row {
  display: grid;
  grid-template-columns: 64px minmax(115px,1fr) 1.4fr;
  gap: 9px;
  padding: 7px 0;
  font-size: 12px;
  align-items: baseline;
}

.shift-action-time {
  color: #5c6655;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.shift-action-row strong {
  font-weight: 500;
  color: #57674c;
}

.shift-action-row .muted {
  font-size: 11px;
  color: #5d6457;
}

.shift-action-list>.muted {
  font-size: 10px;
}

.shift-correction-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf1e8;
}

/* RFID and reports */

.rfid-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: start;
}

.rfid-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #edf2e6;
  padding: 17px 24px;
}

.rfid-card-row>div {
  display: grid;
  gap: 4px;
}

.rfid-card-row strong {
  font-size: 13px;
  color: #546749;
  font-weight: 500;
}

.rfid-card-row .muted {
  font-size: 11px;
  color: #5c6455;
}

.rfid-card-row .danger {
  font-size: 9px;
  padding: 5px 8px;
}

.pending-rfid-row {
  border-top: 1px solid #edf2e6;
  padding: 18px 24px;
}

.pending-rfid-meta {
  display: grid;
  gap: 4px;
}

.pending-rfid-meta strong {
  font-size: 13px;
  color: #57684d;
  font-weight: 500;
}

.pending-rfid-meta .muted {
  font-size: 11px;
  color: #5d6557;
}

.pending-rfid-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 13px;
}

.pending-rfid-actions select {
  font-size: 10px;
  padding: 8px;
  min-width: 0;
}

.pending-rfid-actions .touch-btn {
  font-size: 9px;
  padding: 6px 9px;
}

.rfid-assigned-list>.muted,.pending-rfid-list>.muted {
  padding: 32px 24px;
  color: #5d6556;
  font-size: 11px;
}

.info-note {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid #e1e9da;
  border-radius: 8px;
  background: #f0f5eb;
  color: #5a6751;
}

.info-note>svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.info-note p {
  font-size: 11px;
  color: #5b6652;
}

.info-note strong {
  font-weight: 550;
  color: #55684b;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(350px,1fr) minmax(290px,1fr);
  gap: 30px;
  align-items: start;
}

.report-form {
  padding: 4px 26px 26px;
  gap: 22px;
}

.report-setup>.status {
  padding: 0 26px 24px;
  font-size: 12px;
}

.report-download-progress {
  padding: 0 26px 12px;
}

.report-download-progress progress {
  display: block;
  width: 100%;
  height: 8px;
  accent-color: var(--accent, #197b68);
}

.report-includes {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.report-includes strong {
  font-size: 11px;
  color: #55684b;
  font-weight: 550;
  margin-bottom: 3px;
}

.report-includes span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #5a6551;
}

.report-includes svg {
  width: 13px;
  height: 13px;
  color: #546946;
}

.report-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 17px 18px 0;
}

.report-preview-wrap>.eyebrow {
  font-size: 8px;
  color: #5c6657;
}

.report-paper {
  width: 100%;
  max-width: 330px;
  min-height: 370px;
  background: #fff;
  border: 1px solid #e2e8dc;
  border-radius: 3px;
  margin-top: 20px;
  padding: 27px;
  box-shadow: 0 9px 35px #2c432615;
  transform: rotate(2deg);
}

.paper-brand {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 9px;
  color: #54694a;
  font-weight: 600;
  margin-bottom: 26px;
}

.paper-brand svg {
  width: 15px;
  height: 15px;
}

.paper-overline {
  font-size: 6px;
  letter-spacing: .16em;
  color: #5d6557;
}

.report-paper h3 {
  font-size: 20px;
  font-weight: 550;
  color: #546848;
  margin: 6px 0 3px;
}

.report-paper>p {
  font-size: 9px;
  color: #5b6455;
}

.paper-rule {
  height: 1px;
  background: #e5ebdf;
  margin: 20px 0 12px;
}

.paper-columns {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  color: #5d6557;
  padding-bottom: 10px;
  border-bottom: 1px solid #ecf0e6;
}

.paper-placeholder-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f4ed;
}

.paper-placeholder-row i {
  display: block;
  width: 87px;
  height: 5px;
  background: #edf1e6;
  border-radius: 2px;
}

.paper-placeholder-row b {
  display: block;
  width: 33px;
  height: 5px;
  background: #edf1e6;
  border-radius: 2px;
}

.paper-total {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  color: #5d6654;
}

.paper-total svg {
  width: 12px;
  height: 12px;
}

.report-preview-wrap>.muted {
  font-size: 11px;
  color: #5d6557;
  margin-top: 27px;
  text-align: center;
}

.settings-form {
  gap: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px 28px;
  padding: 5px 26px 28px;
  max-width: 900px;
}

.settings-savebar {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.settings-savebar>.status {
  margin-right: auto;
  font-size: 12px;
}

/* Dialogs and feedback */

.suite-dialog {
  border: 1px solid #dfe7d8;
  border-radius: 13px;
  padding: 0;
  width: 540px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  background: #fff;
  color: var(--text);
  box-shadow: 0 20px 90px #14262430;
  overflow: auto;
}

.suite-dialog::backdrop {
  background: #14262478;
  backdrop-filter: blur(3px);
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 25px 27px 21px;
  border-bottom: 1px solid #e8eee2;
  background: #fcfdfb;
}

.dialog-heading h2 {
  font-size: 19px;
  margin-top: 6px;
}

.dialog-heading .eyebrow {
  font-size: 8px;
  color: #5b6655;
}

.dialog-heading .muted {
  font-size: 11px;
  margin-top: 3px;
  color: #596650;
}

.dialog-heading .icon-button {
  width: 30px;
  height: 30px;
}

.dialog-body {
  padding: 24px 27px;
  gap: 18px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf1e6;
}

.form-divider {
  height: 1px;
  background: #edf1e6;
}

.rfid-current-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.rfid-current-row p {
  font-size: 10px;
}

.rfid-current-row .text-button {
  font-size: 10px;
}

.correction-preview {
  padding: 13px;
  border-radius: 7px;
  background: #f1f6ec;
  font-size: 11px;
  color: #546749;
}

.info-note.compact {
  padding: 12px;
  margin-top: 0;
}

.info-note.compact p {
  font-size: 10px;
}

.suite-toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 1000;
  padding: 15px 20px;
  border: 1px solid #d0e1c5;
  border-radius: 9px;
  max-width: 400px;
  background: #f3faee;
  box-shadow: 0 5px 20px #14262415;
  color: #4e6a42;
  font-size: 12px;
}

.suite-toast.is-error {
  background: #fff7f2;
  color: #85573f;
  border-color: #ebd2bc;
}

/* Sign in */

.login-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: #fff;
}

.login-story {
  background: #142624;
  padding: 45px 60px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-story:after {
  content: "";
  width: 420px;
  height: 420px;
  border: 1px solid #ffffff08;
  border-radius: 50%;
  position: absolute;
  bottom: -190px;
  right: -180px;
  box-shadow: 0 0 0 65px #ffffff03,0 0 0 130px #ffffff02;
  pointer-events: none;
}

.login-story .eyebrow {
  color: #7aa489;
  font-size: 9px;
}

.login-story h1 {
  color: #e7f1e8;
  font-size: clamp(40px,4.4vw,68px);
  font-weight: 550;
  line-height: 1.12;
  margin: 21px 0 24px;
  letter-spacing: -2px;
}

.login-story p {
  color: #89a492;
  font-size: 13px;
  line-height: 1.9;
}

.login-foot {
  font-size: 10px;
  color: #708d7b;
}

.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}

.login-form-wrap {
  width: 100%;
  max-width: 340px;
}

.login-lock {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #edf4e8;
  color: #55684a;
  border: 1px solid #e3ecdc;
  border-radius: 12px;
  margin-bottom: 26px;
}

.login-lock svg {
  width: 22px;
  height: 22px;
}

.login-form-wrap>.eyebrow {
  font-size: 8px;
  color: #5b6655;
}

.login-form-wrap h2 {
  font-size: 25px;
  letter-spacing: -.6px;
  font-weight: 600;
  margin: 8px 0;
}

.login-form-wrap>.muted {
  font-size: 12px;
  color: #5b6656;
  margin-bottom: 28px;
}

.login-form-wrap .admin-form {
  gap: 19px;
}

.login-form-wrap .admin-form input {
  padding: 12px 13px;
}

.login-form-wrap .primary-button {
  margin-top: 5px;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 12px;
}

.login-form-wrap .status {
  margin-top: 15px;
  font-size: 12px;
}

.login-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: #5c6456;
  font-size: 9px;
  margin-top: 27px;
}

.login-note svg {
  width: 12px;
  height: 12px;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width:1600px) {
  .suite-content {
    padding-left: 50px;
    padding-right: 50px;
  }

  .summary-grid {
    gap: 22px;
  }

  .dashboard-layout {
    grid-template-columns: minmax(0,1fr) 310px;
    gap: 26px;
  }

  .active-session-card {
    padding: 20px;
  }

  .active-session-metrics {
    gap: 24px;
  }

  .active-session-metrics b {
    font-size: 12px;
  }

  .active-session-metrics span {
    font-size: 9px;
  }

  .active-session-main>strong {
    font-size: 14px;
  }
}

@media (max-width:1200px) {
  .suite-sidebar {
    width: 206px;
    padding-inline: 13px;
  }

  .suite-shell {
    grid-template-columns: 206px minmax(0,1fr);
  }

  .suite-content {
    padding: 28px 25px 0;
  }

  .suite-topbar {
    padding-inline: 25px;
  }

  .summary-grid {
    gap: 11px;
  }

  .summary-card {
    padding: 16px;
  }

  .summary-card>div>span:first-child {
    font-size: 10px;
  }

  .summary-icon {
    width: 25px;
    height: 25px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-aside {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .last-updated {
    grid-column: 1/-1;
  }

  .insights-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }

  .insights-card>.eyebrow,.insights-card>h2 {
    grid-column: 1/-1;
  }

  .insight-line {
    margin-top: 18px;
  }

  .report-layout {
    gap: 20px;
  }

  .employee-table-heading,.employee-card {
    grid-template-columns: minmax(130px,1.3fr) 45px 90px 180px;
    gap: 8px;
    padding-inline: 20px;
  }

  .employee-actions .mini-touch {
    font-size: 8px;
  }

  .active-session-metrics {
    gap: 25px;
  }
}

@media (max-width:900px) {
  .suite-shell {
    grid-template-columns: 185px minmax(0,1fr);
  }

  .suite-sidebar {
    width: 185px;
    padding-inline: 10px;
  }

  .suite-sidebar .brand {
    margin-inline: 8px;
    font-size: 16px;
    gap: 8px;
  }

  .brand>svg {
    width: 30px;
    height: 30px;
  }

  .brand small {
    font-size: 6px;
  }

  .admin-nav-item {
    padding: 12px 11px;
    gap: 9px;
    font-size: 12px;
  }

  .suite-content {
    padding: 25px 20px 0;
  }

  .suite-topbar {
    padding-inline: 20px;
  }

  .summary-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .page-heading h1 {
    font-size: 26px;
  }

  .date-label {
    display: none;
  }

  .dashboard-aside {
    grid-template-columns: 1fr 1fr;
  }

  .insights-card {
    display: block;
    padding: 20px;
  }

  .insight-line {
    margin-top: 20px;
  }

  .policy-card {
    padding: 20px;
  }

  .employee-table-heading {
    display: none;
  }

  .employee-card {
    grid-template-columns: 1fr auto;
    gap: 10px 15px;
    padding: 18px 20px;
  }

  .employee-identity {
    grid-row: span 2;
  }

  .employee-pin {
    text-align: right;
  }

  .employee-rfid {
    justify-content: flex-end;
  }

  .employee-actions {
    grid-column: 1/-1;
    border-top: 1px solid #f0f3ec;
    padding-top: 12px;
    justify-content: flex-start;
  }

  .employee-actions .mini-touch {
    font-size: 10px;
    padding: 6px 9px;
  }

  .employee-actions .icon-action {
    margin-left: auto;
  }

  .create-employee-grid {
    grid-template-columns: 1fr 1fr;
  }

  .create-employee-grid .primary-button {
    grid-column: 1/-1;
  }

  .surface-heading {
    padding: 21px 20px;
    align-items: flex-start;
  }

  .surface-heading .primary-button {
    font-size: 10px;
    padding: 8px 10px;
  }

  .surface-heading .primary-button svg {
    display: none;
  }

  .list-toolbar {
    padding-inline: 20px;
    gap: 8px;
  }

  .search-field input {
    font-size: 10px;
  }

  .select-field select {
    font-size: 10px;
    min-width: 150px;
  }

  .rfid-layout {
    grid-template-columns: 1fr;
  }

  .report-layout {
    grid-template-columns: 1fr;
  }

  .report-preview-wrap {
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .report-paper {
    max-width: 320px;
  }

  .filter-toolbar {
    grid-template-columns: 1fr 1fr;
    padding: 0 20px 20px;
  }

  .filter-toolbar button {
    grid-column: 1/-1;
  }

  .shift-compact-row {
    grid-template-columns: 10px 1fr 1fr;
    gap: 10px;
  }

  .shift-compact-row .status-chip {
    grid-column: 3;
    grid-row: 1;
  }

  .shift-compact-row .shift-metric {
    grid-row: 2;
  }

  .shift-action-row {
    grid-template-columns: 50px 1fr;
  }

  .shift-action-row .muted {
    grid-column: 2;
  }

  .shift-total-row {
    flex-direction: column;
    gap: 4px;
  }

  .session-list {
    padding: 6px 16px 20px;
  }

  .shift-day-content {
    padding: 0 12px;
  }

  .settings-grid {
    gap: 18px;
    padding: 0 20px 23px;
  }

  .workspace-footer>span:last-child {
    display: none;
  }

  .topbar-end {
    gap: 12px;
  }

  .connection-state {
    font-size: 9px;
  }

  .breadcrumb {
    gap: 8px;
    font-size: 10px;
  }
}

@media (max-width:640px) {
  .suite-shell {
    display: block;
  }

  .suite-sidebar {
    position: sticky;
    width: 100%;
    padding: 12px 14px 0;
    inset: auto;
    display: block;
    border-bottom: 1px solid #2d4137;
  }

  .suite-sidebar .brand {
    margin: 0 0 14px;
    font-size: 16px;
  }

  .brand small {
    font-size: 6px;
  }

  .suite-sidebar .brand>svg {
    width: 28px;
    height: 28px;
  }

  .workspace-label,.sidebar-bottom {
    display: none;
  }

  .admin-nav-list {
    display: flex;
    overflow: auto;
    gap: 5px;
    padding-bottom: 10px;
  }

  .admin-nav-item {
    flex-shrink: 0;
    width: auto;
    gap: 7px;
    font-size: 11px;
    padding: 9px 10px;
  }

  .admin-nav-item svg {
    width: 15px;
    height: 15px;
  }

  .nav-count {
    display: none !important;
  }

  .suite-main {
    display: block;
  }

  .suite-topbar {
    height: 49px;
    padding-inline: 16px;
  }

  .topbar-avatar {
    width: 26px;
    height: 26px;
    font-size: 8px;
  }

  .suite-content {
    padding: 22px 15px 0;
    min-height: calc(100vh - 160px);
  }

  .page-heading {
    margin-bottom: 22px;
    gap: 12px;
  }

  .page-heading h1 {
    font-size: 26px;
  }

  .page-heading .eyebrow {
    font-size: 8px;
  }

  .page-heading p {
    font-size: 11px;
  }

  .page-heading-actions {
    gap: 0;
  }

  .icon-button {
    width: 32px;
    height: 32px;
  }

  .summary-grid {
    gap: 10px;
    margin-bottom: 18px;
  }

  .summary-card {
    padding: 14px;
  }

  .summary-card>strong {
    font-size: 28px;
    margin-top: 9px;
  }

  .summary-card:nth-child(3)>strong {
    font-size: 23px;
    line-height: 1.58;
  }

  .summary-card>small {
    font-size: 8px;
  }

  .summary-card>div>span:first-child {
    font-size: 9px;
  }

  .summary-icon {
    width: 23px;
    height: 23px;
  }

  .summary-icon svg {
    width: 13px;
    height: 13px;
  }

  .dashboard-layout {
    gap: 18px;
  }

  .dashboard-aside {
    grid-template-columns: 1fr;
  }

  .insights-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    gap: 0 18px;
  }

  .policy-card {
    padding: 20px;
  }

  .active-session-group {
    padding: 0 16px 15px;
  }

  .active-session-group+.active-session-group {
    padding-top: 15px;
  }

  .active-session-card {
    grid-template-columns: 1fr;
    padding: 13px;
    gap: 15px;
  }

  .active-session-main>strong {
    font-size: 13px;
  }

  .active-session-main>.muted {
    font-size: 9px;
  }

  .active-session-metrics {
    gap: 13px;
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .active-session-metrics span {
    font-size: 8px;
  }

  .active-session-metrics b {
    font-size: 9px;
  }

  .surface-heading {
    padding: 20px 17px;
    gap: 10px;
  }

  .surface-heading h2 {
    font-size: 14px;
  }

  .surface-heading p {
    font-size: 10px;
  }

  .surface-footer {
    padding: 12px 17px;
  }

  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 0 17px 18px;
  }

  .search-field {
    max-width: none;
    flex: auto;
  }

  .select-field select {
    width: 100%;
  }

  .employee-card {
    padding: 17px;
  }

  .create-employee-panel {
    margin-inline: 17px;
  }

  .create-employee-grid {
    grid-template-columns: 1fr;
  }

  .create-employee-grid .primary-button {
    grid-column: auto;
  }

  .surface-heading .primary-button {
    font-size: 9px;
    min-height: 34px;
    white-space: normal;
    max-width: 120px;
  }

  .filter-toolbar {
    padding: 0 17px 20px;
    gap: 10px;
  }

  .filter-toolbar label {
    font-size: 10px;
  }

  .subtle-tag {
    font-size: 8px;
    white-space: normal;
    max-width: 100px;
  }

  .subtle-tag svg {
    display: none;
  }

  .shift-employee-summary {
    align-items: flex-start;
  }

  .shift-action-row {
    font-size: 9px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
    padding: 0 18px 22px;
  }

  .settings-savebar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .settings-savebar .primary-button {
    width: 100%;
  }

  .report-form {
    padding-inline: 20px;
  }

  .report-paper {
    max-width: 285px;
  }

  .dialog-heading {
    padding: 20px;
  }

  .dialog-body {
    padding: 20px;
  }

  .dialog-heading h2 {
    font-size: 18px;
  }

  .dialog-actions {
    flex-wrap: wrap;
  }

  .dialog-actions button {
    flex: 1;
  }

  .suite-toast {
    left: 15px;
    right: 15px;
    bottom: 15px;
    max-width: none;
  }

  .workspace-footer {
    font-size: 9px;
    padding-top: 25px;
  }

  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: auto;
    padding: 25px 25px 30px;
    gap: 35px;
  }

  .login-story h1 {
    font-size: 37px;
    letter-spacing: -1px;
    margin: 12px 0;
  }

  .login-story h1 br {
    display: none;
  }

  .login-story h1 br:after {
    content: " ";
  }

  .login-story p {
    font-size: 11px;
  }

  .login-story .eyebrow {
    font-size: 7px;
  }

  .login-foot {
    display: none;
  }

  .login-main {
    padding: 35px 25px 45px;
  }

  .login-lock {
    display: none;
  }

  .login-form-wrap h2 {
    font-size: 23px;
  }

  .login-form-wrap>.muted {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.enrollment-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 19px;
  margin-bottom: 20px;
  border: 1px solid #d9e8cf;
  border-radius: 8px;
  background: #f0f7e9;
}

.enrollment-banner .status {
  color: #516942;
  font-size: 12px;
}

.enrollment-banner .text-button {
  flex-shrink: 0;
}

.admin-form[aria-busy="true"] button[type="submit"]::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rotate .8s linear infinite;
}

.mobile-logout {
  display: none;
}

@media (max-width:640px) {
  .mobile-logout {
    display: inline-grid;
    width: 28px;
    height: 28px;
  }

  .topbar-end {
    gap: 10px;
  }

  .topbar-avatar {
    display: none;
  }
}

.workspace-label { color: #91aa9a; }
.login-foot { color: #91aa9a; }

/* Readability: comfortable type and consistent controls across the workspace. */
body.admin-suite { font-size: 15px; }
.admin-suite .admin-nav-item { font-size: 14px; }
.admin-suite .surface-heading h2 { font-size: 18px; }
.admin-suite .surface-heading p, .admin-suite .page-heading p { font-size: 14px; line-height: 1.65; }
.admin-suite label { font-size: 14px; }
.admin-suite input, .admin-suite select, .admin-suite textarea { font-size: 14px; min-height: 42px; }
.admin-suite .primary-button, .admin-suite .secondary-button, .admin-suite .touch-btn { font-size: 13px; min-height: 40px; }
.admin-suite .field-hint, .admin-suite .status, .admin-suite .surface-footer { font-size: 13px; line-height: 1.65; }
.admin-suite .eyebrow { font-size: 11px; }
.admin-suite .breadcrumb, .admin-suite .connection-state, .admin-suite .date-label { font-size: 12px; }
.admin-suite .summary-card > div > span:first-child { font-size: 14px; }
.admin-suite .summary-card > small { font-size: 12px; }
.admin-suite .active-session-group h3 { font-size: 14px; }
.admin-suite .active-session-main > strong { font-size: 16px; }
.admin-suite .active-session-main > .muted { font-size: 12px; }
.admin-suite .active-session-metrics span { font-size: 12px; }
.admin-suite .active-session-metrics b { font-size: 14px; }
.admin-suite .active-session-warning { font-size: 12px; }
.admin-suite .insight-line strong, .admin-suite .policy-card h3 { font-size: 14px; }
.admin-suite .insight-line p, .admin-suite .policy-card p, .admin-suite .policy-label { font-size: 13px; }
.admin-suite .text-button { font-size: 13px; }
.admin-suite .empty-state { font-size: 14px; padding: 32px 24px; }
.admin-suite .empty-state strong { font-size: 16px; }
.admin-suite .empty-state p { font-size: 14px; margin-bottom: 14px; }
.admin-suite .employee-table-heading, .admin-suite .employee-card { grid-template-columns: minmax(160px,1.5fr) minmax(65px,.5fr) minmax(110px,.8fr) minmax(240px,1fr); }
.admin-suite .employee-table-heading { font-size: 13px; }
.admin-suite .employee-main strong { font-size: 15px; }
.admin-suite .employee-main .muted, .admin-suite .employee-rfid { font-size: 13px; }
.admin-suite .employee-pin { font-size: 14px; }
.admin-suite .employee-actions .mini-touch { font-size: 12px; min-height: 36px; }
.admin-suite .employee-actions .icon-action { width: 36px; }
.admin-suite .rfid-card-row strong, .admin-suite .pending-rfid-meta strong { font-size: 15px; }
.admin-suite .rfid-card-row .muted, .admin-suite .pending-rfid-meta .muted { font-size: 13px; }
.admin-suite .pending-rfid-actions .touch-btn, .admin-suite .pending-rfid-actions select { font-size: 13px; }
.admin-suite .rfid-card-row .danger { font-size: 13px; }
.admin-suite .report-includes strong, .admin-suite .report-includes span, .admin-suite .info-note p { font-size: 14px; }
.admin-suite .report-preview-wrap > .muted { font-size: 12px; }
.admin-suite .login-form-wrap > .muted { font-size: 14px; }
.admin-suite .dialog-heading .muted, .admin-suite .rfid-current-row p { font-size: 13px; }
.admin-suite .correction-preview { font-size: 15px; }

/* Time records: one visible row per shift, with secondary history on demand. */
.admin-suite .time-filters { display: grid; grid-template-columns: minmax(220px,1.2fr) minmax(180px,1fr) minmax(170px,1fr) auto; gap: 18px; padding: 0 24px 24px; align-items: end; }
.time-month-field { display: grid; gap: 7px; min-width: 0; }
.month-picker { display: flex; gap: 6px; align-items: center; }
.month-picker select { flex: 1; min-width: 0; }
.month-picker .icon-button { width: 34px; height: 42px; font-size: 24px; flex-shrink: 0; }
.time-period-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 24px 24px; border: 1px solid #dfe8df; border-radius: 9px; background: #f7faf6; }
.time-period-summary > div { padding: 18px 20px; display: grid; gap: 7px; border-right: 1px solid #dfe8df; }
.time-period-summary > div:last-child { border-right: 0; }
.time-period-summary span { font-size: 13px; color: #52664f; }
.time-period-summary strong { font-size: 26px; color: #244b36; font-weight: 650; font-variant-numeric: tabular-nums; }
.time-results-toolbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 0 24px 22px; }
.time-results-toolbar strong { font-size: 15px; font-weight: 600; }
.time-results-toolbar p { font-size: 13px; color: #52664f; margin-top: 5px; }
.time-results-toolbar label { min-width: 215px; max-width: 320px; }
.admin-suite .session-list { padding: 0 20px 24px; background: #fafcf9; }
.time-day { margin-top: 22px; border: 1px solid #dfe7dd; border-radius: 10px; background: #fff; overflow: hidden; }
.time-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; background: #edf3e9; border-bottom: 1px solid #dfe7dd; }
.time-day-heading h3 { font-size: 16px; line-height: 1.5; letter-spacing: -.015em; scroll-margin-top: 24px; }
.time-day-heading h3 span { margin-left: 12px; font-size: 13px; font-weight: 400; white-space: nowrap; }
.time-day-heading p { display: flex; align-items: baseline; gap: 9px; font-size: 13px; white-space: nowrap; }
.time-day-heading b { font-size: 16px; font-variant-numeric: tabular-nums; }
.time-record-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.time-record-table th, .time-record-table td { padding: 17px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid #e3ebe0; }
.time-record-table thead th { font-size: 12px; color: #50654b; font-weight: 550; background: #f9fbf7; padding-block: 12px; white-space: nowrap; }
.time-record-table th:first-child { width: 21%; padding-left: 18px; }
.time-record-table th:nth-child(2), .time-record-table th:nth-child(3) { width: 8%; }
.time-record-table th:nth-child(4), .time-record-table th:nth-child(5) { width: 10%; }
.time-record-table th:nth-child(6) { width: 10%; }
.time-record-table th:nth-child(7) { width: 12%; }
.time-record-table th:last-child { width: 21%; }
.time-record-table td { font-size: 15px; font-variant-numeric: tabular-nums; }
.time-record-table .time-person { font-weight: 400; }
.time-person strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.time-person small { display: block; font-size: 12px; color: #52664f; margin-top: 3px; }
.time-record-table .time-net { font-weight: 700; color: #206346; background: #f3f8ef; font-size: 17px; }
.time-status { display: inline-flex; align-items: center; padding: 5px 7px; border-radius: 5px; font-size: 11px; font-weight: 550; line-height: 1.4; }
.time-status.is-closed { color: #52664f; background: #f0f4ec; }
.time-status.is-working { color: #226042; background: #e8f4e7; }
.time-status.is-break { color: #785819; background: #faf1db; }
.time-actions { text-align: right !important; padding-right: 18px !important; }
.admin-suite .time-actions .secondary-button { font-size: 12px; min-height: 35px; padding: 7px 9px; }
.time-actions .secondary-button svg { width: 14px; height: 14px; }
.admin-suite .time-actions .text-button { display: block; font-size: 12px; margin: 7px 0 0 auto; padding: 2px 0; }
.time-record-notice { display: block; margin-top: 7px; color: #785819; font-size: 12px; line-height: 1.6; font-weight: 400; }
.time-record.has-notice .time-person { box-shadow: inset 3px 0 #c69c43; }
.time-end-day { display: block; font-size: 11px; color: #52664f; margin-top: 4px; }
.time-history-row > td { padding: 0; }
.time-history-content { padding: 22px; background: #f7faf5; border-block: 1px solid #dfe7dd; }
.time-history-content h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.time-history-content .field-hint { margin-bottom: 12px; }
.time-history-content ol { list-style: none; margin: 0; padding: 0; }
.time-history-content li { display: grid; grid-template-columns: minmax(150px,.9fr) minmax(140px,1fr) 1.5fr; gap: 18px; padding: 12px 0; border-top: 1px solid #e1e9db; font-size: 13px; }
.time-history-content li strong { font-weight: 550; }
.time-history-content li span { overflow-wrap: anywhere; }
#time-list[aria-busy="true"] { opacity: .5; cursor: progress; }
@media(max-width:1250px) {
  .admin-suite .time-filters { grid-template-columns: 1fr 1fr; }
  .time-record-table thead th { font-size: 11px; }
  .time-record-table th, .time-record-table td { padding-inline: 7px; }
  .time-record-table th:first-child { padding-left: 14px; }
}
@media(max-width:1150px) {
  .time-record-table, .time-record-table tbody { display: block; }
  .time-record-table thead { display: none; }
  .time-record-table .time-record { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; border-bottom: 1px solid #dfe7dd; padding: 0 16px 16px; }
  .time-record-table .time-record > th, .time-record-table .time-record > td { width: auto; border: 0; padding: 12px 8px; }
  .time-record-table .time-person { grid-column: 1 / 4; grid-row: 1; padding-left: 0 !important; }
  .time-record-table .time-person strong { font-size: 16px; }
  .time-record-table .time-record td[data-label="Status"] { grid-column: 4 / 6; grid-row: 1; text-align: right; padding-right: 0; }
  .time-record-table .time-record td[data-label]:not([data-label="Status"])::before { content: attr(data-label); display: block; margin-bottom: 6px; color: #52664f; font-size: 12px; font-weight: 400; }
  .time-record-table .time-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 12px 0 0 !important; }
  .admin-suite .time-actions .text-button { margin: 0; }
  .time-record-table .time-net { border-radius: 6px; }
  .time-record.has-notice .time-person { box-shadow: none; }
  .time-record.has-notice { border-left: 3px solid #c69c43; }
  .time-record-table .time-history-row { display: block; }
  .time-history-row > td { display: block; }
}
@media(max-width:1100px) {
  .admin-suite .employee-table-heading { display: none; }
  .admin-suite .employee-card { grid-template-columns: 1fr auto; }
  .admin-suite .employee-identity { grid-row: span 2; }
  .admin-suite .employee-pin { text-align: right; }
  .admin-suite .employee-rfid { justify-content: flex-end; }
  .admin-suite .employee-actions { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid #e5ebe2; justify-content: flex-start; }
  .admin-suite .employee-actions .icon-action { margin-left: auto; }
}
@media(max-width:760px) {
  .time-results-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .time-results-toolbar label { max-width: none; min-width: 0; }
  .time-period-summary { grid-template-columns: 1fr 1fr; }
  .time-period-summary > div:nth-child(2) { border-right: 0; }
  .time-period-summary > div:nth-child(-n+2) { border-bottom: 1px solid #dfe8df; }
  .time-day-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .time-day-heading h3 { font-size: 16px; }
  .time-day-heading h3 span { display: block; margin: 4px 0 0; }
  .time-history-content li { grid-template-columns: 1fr; gap: 5px; font-size: 14px; }
  .admin-suite .active-session-metrics { gap: 12px; }
  .admin-suite .active-session-metrics span { font-size: 12px; }
  .admin-suite .active-session-metrics b { font-size: 14px; }
}
@media(max-width:640px) {
  .admin-suite .admin-nav-item { font-size: 13px; }
  .admin-suite .time-filters { grid-template-columns: 1fr; padding-inline: 17px; }
  .admin-suite .time-filters button { grid-column: auto; }
  .time-period-summary { margin-inline: 17px; }
  .time-period-summary > div { padding: 15px; }
  .time-period-summary span { font-size: 12px; }
  .time-results-toolbar { padding-inline: 17px; }
  .admin-suite .session-list { padding-inline: 12px; }
  .time-record-table .time-record { grid-template-columns: repeat(3,minmax(0,1fr)); padding-inline: 12px; }
  .time-record-table .time-person { grid-column: 1 / 3; }
  .time-record-table .time-record td[data-label="Status"] { grid-column: 3; }
  .time-record-table .time-record td[data-label="Beginn"] { grid-column: 1; grid-row: 2; }
  .time-record-table .time-record td[data-label="Ende"] { grid-column: 2; grid-row: 2; }
  .time-record-table .time-record td[data-label="Schichtdauer"] { grid-column: 3; grid-row: 2; }
  .time-record-table .time-record td[data-label="Pause"] { grid-column: 1; grid-row: 3; }
  .time-record-table .time-net { grid-column: 2 / 4; grid-row: 3; }
  .time-record-table .time-actions { grid-row: 4; justify-content: space-between; }
  .time-day-heading h3 { scroll-margin-top: 140px; }
  .time-history-content { padding: 18px; }
  .admin-suite .surface-heading .primary-button { max-width: 145px; font-size: 12px; }
  .admin-suite .surface-heading .subtle-tag { max-width: 120px; font-size: 11px; }
  .admin-suite .summary-card > div > span:first-child { font-size: 12px; }
  .admin-suite .summary-card > small { font-size: 12px; line-height: 1.6; }
}
/* Retain seconds so the visible rows add up to the day and period totals. */
.time-record-table th:first-child { width: 20%; }
.time-record-table th:nth-child(2), .time-record-table th:nth-child(3) { width: 9.5%; }
.time-record-table th:last-child { width: 19%; }
.time-record-table td { font-size: 14px; }
.time-record-table .time-net { font-size: 15px; }
@media(max-width:1150px) {
  .time-record-table .time-record > th, .time-record-table .time-record > td { width: auto; }
}
@media(max-width:640px) {
  .time-period-summary strong { font-size: 21px; }
  .time-record-table td { font-size: 14px; }
  .time-record-table .time-net { font-size: 16px; }
}
.time-back-to-filters { position: fixed; bottom: 24px; right: 28px; z-index: 25; box-shadow: 0 4px 18px #14262420; border-color: #a9c4a0; color: #255d3e; }
.time-filters { scroll-margin-top: 24px; }
@media(max-width:640px) {
  .time-back-to-filters { bottom: 16px; right: 16px; }
  .time-filters { scroll-margin-top: 130px; }
}

/* Focused workspace: guidance lives in Hilfe, presence stays visible. */
.admin-suite .presence-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-suite .presence-summary .summary-card { padding: 20px 24px; }
.admin-suite .presence-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.admin-suite .presence-group,
.admin-suite .presence-group + .presence-group { background: #fff; border: 1px solid #e0e5de; border-radius: 12px; padding: 22px; min-width: 0; }
.admin-suite .presence-group h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 18px; }
.admin-suite .presence-group .active-session-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
.admin-suite .presence-group .active-session-main > strong { font-size: 17px; overflow-wrap: anywhere; }
.admin-suite .presence-working .active-session-card { border-left: 3px solid #39735b; }
.admin-suite .presence-departed .active-session-card { border-left: 3px solid #a1752d; }
.admin-suite .presence-departed .departure-card { grid-template-columns: minmax(0, 1fr) auto; }
.admin-suite .departure-time { font-size: 14px; color: #526052; }
.admin-suite .departure-duration { display: grid; gap: 5px; text-align: right; }
.admin-suite .departure-duration span { font-size: 12px; color: #526052; }
.admin-suite .departure-duration b { font-size: 18px; color: #72551d; font-variant-numeric: tabular-nums; }
.admin-suite .overview-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.admin-suite .overview-footer p { margin: 0; }
.admin-suite .report-layout { display: block; max-width: 800px; }
.admin-suite .help-page { max-width: 1000px; }
.admin-suite .help-search { display: grid; gap: 10px; margin: 0 24px 16px; font-weight: 500; }
.admin-suite .help-search input { width: 100%; font: inherit; padding: 13px 15px; border: 1px solid #bfcbbb; border-radius: 8px; background: #fff; }
.admin-suite #help-search-status { margin: 0 24px 12px; }
.admin-suite .help-topic { border-top: 1px solid #e0e5de; }
.admin-suite .help-topic summary { cursor: pointer; padding: 20px 24px; font-size: 16px; font-weight: 600; color: #264a3d; }
.admin-suite .help-topic summary:hover { background: #f4f7f1; }
.admin-suite .help-topic-body { padding: 0 24px 24px; max-width: 850px; line-height: 1.75; color: #435143; }
.admin-suite .help-topic-body p { margin: 0 0 14px; }
.admin-suite .help-topic[hidden], .admin-suite #help-empty[hidden] { display: none; }
@media (max-width: 1000px) {
  .admin-suite .presence-board { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 540px) {
  .admin-suite .presence-group, .admin-suite .presence-group + .presence-group { padding: 16px; }
  .admin-suite .presence-summary .summary-card { padding: 16px; }
  .admin-suite .presence-departed .departure-card { grid-template-columns: minmax(0, 1fr); }
  .admin-suite .departure-duration { text-align: left; }
  .admin-suite .overview-footer { flex-direction: column; }
  .admin-suite .help-topic summary { padding: 18px; }
  .admin-suite .help-topic-body { padding: 0 18px 18px; }
  .admin-suite .help-search { margin-left: 18px; margin-right: 18px; }
}
.admin-suite .presence-group h2 .pill { font-size: 13px; padding: 3px 9px; background: #eff4ec; border-radius: 20px; }

/* Named accounts and audit history. */
.current-user-name { font-size: 13px; color: #445c50; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-users, .settings-audit { margin-top: 24px; }
.admin-users-list, .admin-audit-list { padding: 0 24px 16px; }
.admin-user-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid #e1e7de; }
.admin-user-row > div:first-child { display: grid; gap: 5px; min-width: 0; }
.admin-user-row strong { font-size: 16px; overflow-wrap: anywhere; }
.admin-user-row span { color: #536552; overflow-wrap: anywhere; }
.admin-user-actions { display: flex; align-items: center; gap: 14px; }
.admin-user-row .pill { font-size: 12px; padding: 2px 7px; }
.audit-entry { border-top: 1px solid #e1e7de; padding: 18px 0; }
.audit-entry-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.audit-entry-heading strong { overflow-wrap: anywhere; }
.audit-entry-heading time { font-size: 13px; color: #536552; white-space: nowrap; }
.audit-entry p { font-size: 14px; margin: 8px 0; overflow-wrap: anywhere; }
.audit-actor { color: #294c3e; font-weight: 550; }
.audit-actor span { font-weight: 400; }
.audit-entry summary { cursor: pointer; font-size: 14px; color: #285d47; padding: 8px 0; }
.audit-diff { display: grid; gap: 8px; margin: 12px 0; font-size: 14px; }
.audit-diff > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; }
.audit-diff dt { color: #536552; }
.audit-diff dd { margin: 0; overflow-wrap: anywhere; }
.audit-more { padding: 0 24px 24px; }
.correction-history { margin: 18px 0; }
.correction-history-item { border-left: 3px solid #39735b; padding: 14px 18px; margin-top: 12px; background: #fff; }
.correction-history-item > span { display: block; color: #536552; margin-top: 5px; font-size: 13px; }
.correction-history-item > p { margin: 10px 0; font-size: 14px; overflow-wrap: anywhere; }
.time-correction-by { display: block; font-size: 12px; color: #285d47; margin-top: 5px; }
@media (max-width: 600px) {
 .current-user-name { display: none; }
 .admin-users-list, .admin-audit-list { padding: 0 18px 16px; }
 .admin-user-row, .audit-entry-heading { flex-direction: column; align-items: start; gap: 10px; }
 .admin-user-actions { flex-wrap: wrap; }
 .audit-diff > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}

/* One employee and one month, in a continuous chronological table. */
.admin-suite .time-period-summary[hidden], .admin-suite .time-results-toolbar[hidden] { display: none; }
.person-month-table { border: 1px solid #dfe7dd; border-radius: 10px; overflow: hidden; margin-top: 18px; background: #fff; }
.person-month-table .time-record-table th:first-child { width: 19%; }
.person-month-table [id^="time-day-"] { scroll-margin-top: 24px; }
.person-month-table .time-record:nth-of-type(4n+3) { background: #fafcf8; }
.person-month-table .time-record:focus-within { outline: 2px solid #39735b; outline-offset: -2px; }
.admin-suite .choose-person { padding: 60px 20px; }

/* Native, keyboard-accessible Settings sections. */
.admin-suite .settings-section { margin: 0 0 18px; overflow: hidden; }
.admin-suite .settings-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; cursor: pointer; list-style: none; }
.admin-suite .settings-section > summary::-webkit-details-marker { display: none; }
.admin-suite .settings-section > summary::after { content: ''; width: 9px; height: 9px; flex-shrink: 0; border-right: 2px solid #536552; border-bottom: 2px solid #536552; transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
.admin-suite .settings-section[open] > summary::after { transform: rotate(225deg); }
.admin-suite .settings-section > summary:hover { background: #f4f7f1; }
.admin-suite .settings-section > summary h2 { font-size: 18px; margin: 0; }
.admin-suite .settings-section[open] > summary { border-bottom: 1px solid #e0e5de; }
.admin-suite .settings-section .settings-form { padding-top: 22px; }
.admin-suite .settings-section .settings-savebar { padding: 0 26px 24px; }
.admin-suite .settings-section .surface-heading { justify-content: flex-end; padding-bottom: 16px; }
@media (max-width: 540px) {
 .admin-suite .settings-section > summary { padding: 20px 18px; }
 .admin-suite .settings-section .settings-savebar { padding: 0 18px 20px; }
}

/* Balanced account dialogs and a single home for RFID administration. */
#admin-user-dialog { width: 500px; }
#admin-user-dialog .dialog-heading { padding: 22px 26px; align-items: center; background: #fff; }
#admin-user-dialog .dialog-heading h2 { margin: 0; font-size: 20px; }
#admin-user-dialog .dialog-heading .icon-button { width: 34px; height: 34px; border-color: transparent; background: #f2f5f0; }
#admin-user-form.dialog-body { padding: 24px 26px 22px; gap: 20px; }
#admin-user-form > label { gap: 8px; font-size: 13px; color: #485d50; font-weight: 550; }
#admin-user-form input { min-height: 46px; font-size: 15px; border-radius: 7px; }
#admin-user-form .status:empty { display: none; }
#admin-user-form .dialog-actions { margin-top: 4px; padding-top: 20px; }
.admin-suite .employee-table-heading, .admin-suite .employee-card { grid-template-columns: minmax(180px,1fr) minmax(80px,.3fr) minmax(210px,.6fr); }
@media(max-width:1100px) { .admin-suite .employee-card { grid-template-columns: 1fr auto; } }
@media(max-width:540px) {
 #admin-user-dialog .dialog-heading { padding: 20px; }
 #admin-user-form.dialog-body { padding: 20px; }
}
@media(max-width:1100px) { .admin-suite .employee-card .employee-identity { grid-row: auto; } }

/* Monthly staff overview and dedicated employee summaries. */
.admin-suite .month-selector-hero { display: block; padding: 30px; margin: 0; border-bottom: 1px solid #e0e7de; background: #f7faf5; }
.admin-suite .month-selector-hero > [hidden], .admin-suite #month-person-view[hidden], .admin-suite #month-staff-view[hidden] { display: none; }
.month-selector-hero .time-month-field { max-width: 620px; }
.month-selector-hero .time-month-field > label { font-size: 13px; color: #526552; margin-bottom: 12px; }
.admin-suite .month-selector-hero .month-picker { grid-template-columns: 48px minmax(0,1fr) 48px; }
.admin-suite .month-selector-hero .month-picker select { height: 64px; font-size: 25px; font-weight: 600; background: #fff; padding-inline: 18px; }
.admin-suite .month-selector-hero .month-picker .icon-button { width: 48px; height: 64px; font-size: 28px; }
.month-roster-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 30px 20px; }
.month-roster-heading h2 { font-size: 18px; margin: 0; }
.month-roster-heading > span { font-size: 13px; }
.month-staff-columns, .month-staff-row { display: grid; grid-template-columns: minmax(0,1fr) 110px 180px 28px; gap: 20px; align-items: center; }
.month-staff-columns { padding: 12px 30px; color: #526552; font-size: 12px; background: #f8faf6; border-block: 1px solid #e0e7de; }
.month-staff-row { padding: 24px 30px; text-decoration: none; color: #233e31; border-bottom: 1px solid #e5ebe1; transition: background .12s; }
.month-staff-row:last-child { border-bottom: 0; }
.month-staff-row:hover { background: #f2f7ee; }
.month-staff-person { display: flex; align-items: center; gap: 16px; min-width: 0; }
.month-staff-number { background: #eff4eb; color: #52654e; border-radius: 7px; padding: 10px; min-width: 50px; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.month-staff-person strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.month-staff-person small { display: block; font-size: 12px; color: #526552; margin-top: 5px; }
.month-staff-person small.month-staff-open { color: #286347; }
.month-staff-shifts b { font-size: 17px; font-weight: 550; }
.month-staff-hours b { font-size: 20px; color: #285d42; font-weight: 650; font-variant-numeric: tabular-nums; }
.month-staff-shifts > small, .month-staff-hours > small { display: none; }
.month-staff-arrow { color: #54705a; font-size: 22px; }
.month-person-heading { padding: 24px 26px 10px; }
.month-person-heading > a { display: inline-block; margin-bottom: 18px; text-decoration: none; }
.month-person-heading h2 { font-size: 25px; margin: 0 0 8px; }
.month-person-heading p { font-size: 14px; margin: 0; }
.person-view-filters { padding: 8px 26px 20px; max-width: 330px; }
.person-view-filters > label { display: grid; gap: 8px; font-size: 13px; color: #526552; }
#month-staff-list[aria-busy="true"] { opacity: .65; }
@media(max-width:650px) {
 .admin-suite .month-selector-hero { padding: 22px 18px; }
 .admin-suite .month-selector-hero .month-picker { grid-template-columns: 38px minmax(0,1fr) 38px; }
 .admin-suite .month-selector-hero .month-picker select { height: 56px; font-size: 21px; padding-inline: 10px; }
 .admin-suite .month-selector-hero .month-picker .icon-button { width: 38px; height: 56px; }
 .month-roster-heading { padding: 24px 18px 18px; align-items: start; flex-direction: column; gap: 8px; }
 .month-staff-columns { display: none; }
 .month-staff-row { grid-template-columns: 1fr 1fr 20px; gap: 18px; padding: 22px 18px; }
 .month-staff-person { grid-column: 1 / 3; }
 .month-staff-arrow { grid-column: 3; grid-row: 1 / 3; }
 .month-staff-shifts, .month-staff-hours { display: grid; gap: 7px; }
 .month-staff-shifts > small, .month-staff-hours > small { display: block; color: #526552; font-size: 12px; }
 .month-staff-hours b { font-size: 18px; }
 .month-person-heading { padding-inline: 18px; }
 .person-view-filters { padding-inline: 18px; }
}

/* Mobile workspace and native modal navigation drawer. */
.topbar-start { display: flex; align-items: center; gap: 12px; min-width: 0; }
.breadcrumb-root { display: inline-flex; gap: 12px; align-items: center; }
.mobile-menu-toggle { display: none; }
.mobile-navigation { position: fixed; inset: 0 auto 0 0; width: min(320px, 88vw); max-width: none; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; background: #142624; color: #c3d1c9; overflow-y: auto; overscroll-behavior: contain; }
.mobile-navigation::backdrop { background: #10241db3; }
.mobile-navigation .suite-sidebar { position: static; inset: auto; display: flex; flex-direction: column; width: 100%; min-height: 100%; padding: 28px 18px 20px; border: 0; }
.mobile-navigation .brand { margin: 0 46px 30px 4px; font-size: 19px; }
.mobile-navigation .brand small { font-size: 8px; }
.mobile-navigation .brand > svg { width: 34px; height: 34px; flex-shrink: 0; }
.mobile-navigation .workspace-label { display: block; padding: 0 12px; margin-bottom: 14px; }
.mobile-navigation .admin-nav-list { display: flex; flex-direction: column; gap: 5px; overflow: visible; padding: 0; }
.admin-suite .mobile-navigation .admin-nav-item { width: 100%; min-height: 48px; padding: 14px; gap: 12px; font-size: 15px; text-align: left; white-space: normal; }
.mobile-navigation .admin-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.mobile-navigation .nav-count { display: inline-flex !important; margin-left: auto; }
.mobile-navigation .nav-count[hidden] { display: none !important; }
.mobile-navigation .sidebar-bottom { display: block; margin-top: auto; padding-top: 28px; }
.mobile-navigation .sidebar-company strong { max-width: 200px; white-space: normal; overflow-wrap: anywhere; }
.mobile-navigation .logout-link { font-size: 14px; min-height: 48px; }
.admin-suite .mobile-menu-close { position: absolute; top: 18px; right: 14px; width: 44px; height: 44px; color: #e2ece5; background: #ffffff0d; border: 1px solid #ffffff1f; z-index: 1; }
body.mobile-navigation-open { overflow: hidden; }
@media (max-width:900px), (max-width:1100px) and (pointer:coarse) {
 .admin-suite .suite-shell, .admin-suite .suite-main { display: block; min-width: 0; }
 .admin-suite .suite-topbar { position: sticky; top: 0; z-index: 15; min-height: 64px; height: auto; padding: 10px 16px; gap: 12px; background: #fff; }
 .admin-suite .mobile-menu-toggle { display: inline-grid; width: 44px; height: 44px; flex-shrink: 0; }
 .admin-suite .suite-topbar .breadcrumb { min-width: 0; font-size: 14px; }
 .breadcrumb-root { display: none; }
 .suite-topbar .topbar-end { min-width: 0; gap: 10px; }
 .admin-suite .mobile-logout { display: none; }
 .suite-topbar .current-user-name { display: none; }
 .suite-topbar .connection-state { font-size: 12px; white-space: normal; }
 .admin-suite .suite-content { padding: 24px 18px 20px; min-width: 0; }
 .admin-suite .page-heading { gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
 .admin-suite .page-heading-actions { flex-wrap: wrap; min-width: 0; gap: 10px; }
 .admin-suite .page-heading h1 { overflow-wrap: anywhere; }
 .admin-suite .surface, .admin-suite .settings-section { min-width: 0; }
 .admin-suite input, .admin-suite select, .admin-suite textarea { font-size: 16px; max-width: 100%; min-width: 0; }
 .admin-suite button, .admin-suite a { touch-action: manipulation; }
 .admin-suite .primary-button, .admin-suite .secondary-button, .admin-suite .touch-btn, .admin-suite .icon-button { min-height: 44px; }
 .admin-suite .surface-heading { flex-wrap: wrap; gap: 14px; }
 .admin-suite .surface-heading h2 { overflow-wrap: anywhere; }
 .admin-suite .status, .admin-suite .help-topic summary, .admin-suite .audit-entry-heading strong, .admin-suite .month-person-heading h2 { overflow-wrap: anywhere; }
 .admin-suite .time-period-summary strong { font-size: clamp(17px, 4.7vw, 24px); overflow-wrap: anywhere; }
 .admin-suite .time-results-toolbar { flex-wrap: wrap; }
 .admin-suite .time-results-toolbar > div { min-width: 0; }
 .admin-suite .time-results-toolbar label { min-width: 0; width: 100%; max-width: none; }
 .admin-suite .pending-rfid-meta strong, .admin-suite .rfid-card-row strong { overflow-wrap: anywhere; }
 .admin-suite .pending-rfid-actions { min-width: 0; flex-wrap: wrap; }
 .admin-suite .pending-rfid-actions select { width: 100%; min-width: 0; }
 .admin-suite .suite-dialog { max-height: calc(100dvh - 24px); }
}
@media(max-width:540px) {
 .admin-suite .suite-content { padding: 22px 12px 18px; }
 .admin-suite .suite-topbar { padding-inline: 12px; }
 .admin-suite .suite-topbar .connection-state { max-width: 110px; }
 .admin-suite .page-heading h1 { font-size: 27px; }
 .admin-suite .page-heading-actions .date-label { font-size: 12px; white-space: normal; }
 .admin-suite .active-session-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
 .admin-suite .active-session-metrics > div { min-width: 0; }
 .admin-suite .active-session-metrics b { font-size: 15px; overflow-wrap: anywhere; }
 .admin-suite .settings-grid, .admin-suite .create-employee-grid { grid-template-columns: minmax(0,1fr); }
 .admin-suite .list-toolbar { flex-wrap: wrap; gap: 12px; }
 .admin-suite .list-toolbar label { min-width: 0; width: 100%; }
 .admin-suite .search-field { width: 100%; min-width: 0; }
 .admin-suite .pending-rfid-row, .admin-suite .rfid-card-row { flex-wrap: wrap; gap: 14px; }
 .admin-suite .pending-rfid-actions { width: 100%; }
 .admin-suite .pending-rfid-actions button { flex: 1; }
 .admin-suite .dialog-heading { padding: 20px; }
 .admin-suite .dialog-body { padding: 20px; }
 .admin-suite .dialog-heading h2 { overflow-wrap: anywhere; }
 .admin-suite .dialog-actions { flex-wrap: wrap; }
 .admin-suite .time-record-table .time-record { grid-template-columns: repeat(2,minmax(0,1fr)); padding-inline: 12px; }
 .admin-suite .time-record-table .time-person { grid-column: 1 / -1; grid-row: auto; }
 .admin-suite .time-record-table .time-record td[data-label="Status"] { grid-column: 1 / -1; grid-row: auto; text-align: left; }
 .admin-suite .time-record-table .time-actions { justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
 .admin-suite .month-staff-row { gap: 14px; padding: 20px 16px; }
 .admin-suite .month-staff-person { gap: 12px; }
 .admin-suite .month-staff-number { min-width: 42px; padding: 9px 6px; }
 .admin-suite .month-staff-hours b { font-size: 17px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

@media(max-width:540px) {
 .admin-suite .employee-card { grid-template-columns: minmax(0,1fr) auto; }
 .admin-suite .employee-main strong, .admin-suite .employee-main .muted { white-space: normal; overflow-wrap: anywhere; }
 .admin-suite .employee-pin { max-width: 120px; white-space: normal; overflow-wrap: anywhere; }
}
.mobile-navigation .suite-sidebar { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.admin-suite .mobile-menu-toggle svg, .admin-suite .mobile-menu-close svg { width: 22px; height: 22px; }
@media (max-width:900px), (max-width:1100px) and (pointer:coarse) {
 .admin-suite input, .admin-suite select { min-height: 46px; }
 .admin-suite .text-button { min-height: 44px; }
 .admin-suite .time-actions .text-button { display: inline-flex; align-items: center; }
 .admin-suite .audit-entry > details > summary { min-height: 44px; }
}
@media (max-width:360px) {
 .admin-suite .month-selector-hero .month-picker { grid-template-columns: 44px minmax(0,1fr) 44px; }
 .admin-suite .month-selector-hero .month-picker select { grid-column: 1 / -1; grid-row: 1; }
 .admin-suite #time-month-previous { grid-row: 2; grid-column: 1; width: 44px; height: 44px; }
 .admin-suite #time-month-next { grid-row: 2; grid-column: 3; width: 44px; height: 44px; }
}
.mobile-navigation .mobile-menu-close { position: fixed; left: calc(min(320px, 88vw) - 58px); right: auto; }
@media (max-width:360px) { .admin-suite .month-selector-hero .month-picker { display: grid; } }
@media (max-width:900px), (max-width:1100px) and (pointer:coarse) {
 #admin-user-form input, .admin-suite .help-search input { font-size: 16px; }
}

/* Restrained mobile motion; the dialog stays modal until the exit completes. */
@keyframes mobile-drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes mobile-drawer-out { from { transform: var(--drawer-exit-from, translateX(0)); } to { transform: translateX(-100%); } }
@keyframes mobile-backdrop-in { from { background-color: #10241d00; } to { background-color: #10241db3; } }
@keyframes mobile-backdrop-out { from { background-color: var(--drawer-backdrop-from, #10241db3); } to { background-color: #10241d00; } }
@keyframes mobile-section-in { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.mobile-navigation { box-shadow: 16px 0 48px #071b1933; border-right: 1px solid #ffffff12; }
.mobile-navigation.is-opening { animation: mobile-drawer-in 280ms cubic-bezier(.2,.8,.2,1) both; }
.mobile-navigation.is-closing { animation: mobile-drawer-out 220ms cubic-bezier(.4,0,.8,.2) both; pointer-events: none; }
.mobile-navigation.is-opening::backdrop { animation: mobile-backdrop-in 280ms ease-out both; }
.mobile-navigation.is-closing::backdrop { animation: mobile-backdrop-out 220ms ease-in both; }
.mobile-navigation .admin-nav-item { transition: background-color 140ms ease, color 140ms ease, transform 140ms ease; border-radius: 10px; }
.mobile-navigation .admin-nav-item.is-active { box-shadow: inset 3px 0 #85baa4; }
.mobile-navigation .admin-nav-item:active { transform: scale(.98); }
@media (max-width:900px), (max-width:1100px) and (pointer:coarse) {
 .admin-suite .suite-topbar { border-bottom: 1px solid #dce5df; box-shadow: 0 2px 12px #183a2905; }
 .admin-suite .mobile-menu-toggle { border-color: #dce6de; background: #fff; border-radius: 11px; }
 .admin-suite .admin-section-panel.is-active { animation: mobile-section-in 160ms ease-out; }
 .admin-suite .month-staff-row { transition: background-color 140ms ease, transform 140ms ease; }
 .admin-suite .month-staff-row:active { background: #eaf2e7; transform: scale(.992); }
 .admin-suite .primary-button, .admin-suite .secondary-button, .admin-suite .icon-button { transition: background-color 140ms ease, box-shadow 140ms ease, transform 120ms ease; }
 .admin-suite .primary-button:active, .admin-suite .secondary-button:active, .admin-suite .icon-button:active { transform: translateY(1px); }
 .admin-suite .surface { border-radius: 14px; }
 .admin-suite .summary-card { border-radius: 13px; }
 .admin-suite .summary-card strong, .admin-suite .time-period-summary strong { letter-spacing: -.035em; }
 .admin-suite .suite-content { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
 .admin-suite .status { margin-top: 10px; }
 .admin-suite .status:empty { margin-top: 0; }
}
@media (prefers-reduced-motion:reduce) {
 .mobile-navigation, .mobile-navigation::backdrop, .admin-suite .admin-section-panel.is-active { animation: none !important; }
 .mobile-navigation .admin-nav-item:active, .admin-suite .month-staff-row:active, .admin-suite .primary-button:active, .admin-suite .secondary-button:active, .admin-suite .icon-button:active { transform: none; }
}
.mobile-navigation { overflow: hidden; }
.mobile-navigation .suite-sidebar { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }



#report-confirm-message { margin: 0 0 24px; line-height: 1.6; overflow-wrap: anywhere; }
