/* [project]/apps/web/src/app/globals.css [app-client] (css) */
:root {
  --color-bg: #f4f6f9;
  --color-surface: #fff;
  --color-border: #d8dee8;
  --color-border-strong: #b6c0cf;
  --color-text: #1a2333;
  --color-text-muted: #5b6575;
  --color-sidebar-bg: #0d1b2e;
  --color-sidebar-text: #c8d3e0;
  --color-sidebar-active: #12263f;
  --color-accent: #0e7490;
  --color-accent-strong: #155e75;
  --color-accent-soft: #e0f2f7;
  --color-danger: #b42318;
  --color-danger-soft: #fdecea;
  --color-focus: #0e7490;
  --shadow-card: 0 1px 3px #10182814;
  --radius: 8px;
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-stack);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: var(--color-accent);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.auth-layout {
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px 16px;
  display: flex;
}

.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
}

.auth-brand {
  color: var(--color-sidebar-bg);
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.auth-title {
  color: var(--color-text-muted);
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
}

.auth-switch {
  color: var(--color-text-muted);
  margin-top: 20px;
  font-size: 14px;
}

.field {
  margin-bottom: 16px;
  display: block;
}

.field-label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.field-input {
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  width: 100%;
  color: var(--color-text);
  border-radius: 6px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 15px;
}

.field-input:focus-visible {
  border-color: var(--color-accent);
}

.field-hint {
  color: var(--color-text-muted);
  margin-top: 4px;
  font-size: 12px;
}

.field-checkbox {
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
}

.form-error {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border: 1px solid #b4231840;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 10px 12px;
  font-size: 14px;
}

.form-success {
  color: #1a6b34;
  background: #e8f5ec;
  border: 1px solid #1a6b3440;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 10px 12px;
  font-size: 14px;
}

.btn {
  cursor: pointer;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid #0000;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent-strong);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-strong);
}

.btn-secondary {
  border-color: var(--color-border-strong);
}

.btn-block {
  width: 100%;
}

.org-layout {
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 48px 16px;
  display: flex;
}

.org-container {
  width: 100%;
  max-width: 560px;
}

.org-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 24px;
}

.org-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.org-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.org-list li {
  border-bottom: 1px solid var(--color-border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  display: flex;
}

.org-list li:last-child {
  border-bottom: none;
}

.org-name {
  font-weight: 600;
}

.org-slug {
  color: var(--color-text-muted);
  font-size: 13px;
}

.org-active-badge {
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  background: var(--color-sidebar-bg);
  width: 240px;
  color: var(--color-sidebar-text);
  flex-direction: column;
  flex-shrink: 0;
  padding: 20px 14px;
  display: flex;
}

.sidebar-brand {
  color: #fff;
  margin: 0 8px 24px;
  font-size: 18px;
  font-weight: 700;
}

.sidebar-nav {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.nav-link {
  color: var(--color-sidebar-text);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: block;
}

.nav-link:hover {
  background: var(--color-sidebar-active);
  color: #fff;
}

.nav-link[aria-current="page"] {
  background: var(--color-sidebar-active);
  color: #fff;
  border-left: 3px solid var(--color-accent);
  padding-left: 9px;
}

.app-main {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.app-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  display: flex;
}

.header-org {
  align-items: center;
  gap: 10px;
  font-size: 14px;
  display: flex;
}

.header-user {
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  display: flex;
}

.user-identity {
  text-align: right;
  font-size: 13px;
  line-height: 1.3;
}

.user-identity .user-name {
  font-weight: 600;
}

.user-identity .user-email {
  color: var(--color-text-muted);
}

.org-select {
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 6px;
  max-width: 220px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 14px;
}

.app-content {
  flex: 1;
  padding: 24px;
}

.nav-toggle {
  display: none;
}

.page-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.page-subtitle {
  color: var(--color-text-muted);
  margin: 0 0 24px;
  font-size: 14px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  display: grid;
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}

.info-card h3 {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.info-card p {
  margin: 0;
  font-size: 15px;
}

.info-card .muted {
  color: var(--color-text-muted);
  margin-top: 4px;
  font-size: 13px;
}

.status-ok {
  color: var(--color-accent-strong);
  font-weight: 600;
}

.center-page {
  text-align: center;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  display: flex;
}

.center-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  max-width: 440px;
  box-shadow: var(--shadow-card);
  padding: 28px;
}

@media (max-width: 860px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    flex-direction: column;
    width: 100%;
    padding: 12px 14px;
  }

  .sidebar-brand {
    margin-bottom: 0;
  }

  .sidebar-top {
    justify-content: space-between;
    align-items: center;
    display: flex;
  }

  .nav-toggle {
    color: var(--color-sidebar-text);
    cursor: pointer;
    background: none;
    border: 1px solid #c8d3e066;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: inherit;
    font-size: 14px;
    display: inline-flex;
  }

  .sidebar-nav {
    margin-top: 12px;
  }

  .sidebar-nav[data-collapsed="true"] {
    display: none;
  }

  .app-header {
    padding: 12px 16px;
  }

  .app-content {
    padding: 16px;
  }

  .user-identity {
    text-align: left;
  }
}

.page-header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  display: flex;
}

.page-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.toolbar {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.toolbar .field {
  flex: 220px;
  min-width: 180px;
  margin-bottom: 0;
}

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

.result-count {
  color: var(--color-text-muted);
  margin: 0 0 10px;
  font-size: 13px;
}

.data-table-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 12px;
}

.data-table td {
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  overflow-wrap: anywhere;
  padding: 12px 14px;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--color-bg);
}

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

.status-badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-badge-active {
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
}

.status-badge-inactive {
  color: #6b7280;
  background: #eef1f5;
}

.empty-state {
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--color-text-muted);
  padding: 32px 24px;
}

.empty-state-title {
  color: var(--color-text);
  margin: 0 0 6px;
  font-weight: 600;
}

.empty-state-description {
  margin: 0 0 12px;
}

.detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 20px 24px;
}

.detail-card h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 24px;
  margin: 0;
  display: grid;
}

.detail-grid dt {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
  font-size: 12px;
}

.detail-grid dd {
  overflow-wrap: anywhere;
  margin: 0 0 8px;
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  max-width: 560px;
  padding: 24px;
}

.form-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  display: flex;
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
  border-color: #8f1c13;
}

.btn-danger:hover:not(:disabled) {
  background: #8f1c13;
}

.confirmation-panel {
  background: var(--color-danger-soft);
  border-radius: var(--radius);
  border: 1px solid #b4231859;
  margin-top: 12px;
  padding: 14px 16px;
}

.confirmation-panel p {
  margin: 0 0 10px;
  font-weight: 600;
}

.required-mark {
  color: var(--color-danger);
}

@media (max-width: 720px) {
  .data-table thead {
    display: none;
  }

  .data-table, .data-table tbody, .data-table tr, .data-table td {
    width: 100%;
    display: block;
  }

  .data-table tr {
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
  }

  .data-table td {
    border-bottom: none;
    padding: 4px 14px;
  }

  .data-table td[data-label]:before {
    content: attr(data-label);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-muted);
    font-size: 11px;
    display: block;
  }
}

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

.week-nav {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  display: flex;
}

.week-label {
  color: var(--color-text-muted);
  margin: 0 0 0 auto;
  font-size: 14px;
}

.week-range {
  color: var(--color-text);
  font-weight: 600;
}

.week-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-items: start;
  gap: 12px;
  display: grid;
}

.day-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  min-width: 0;
  padding: 12px 14px;
}

.day-heading {
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
  font-size: 15px;
  display: flex;
}

.day-date {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 400;
}

.day-empty {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 13px;
}

.shift-list {
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.shift-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
}

.shift-card p {
  overflow-wrap: anywhere;
  margin: 0;
}

.shift-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.shift-site {
  font-size: 13px;
}

.shift-title, .shift-employees {
  color: var(--color-text-muted);
  font-size: 13px;
}

.shift-card-footer {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  display: flex;
}

@media (max-width: 720px) {
  .week-grid {
    grid-template-columns: 1fr;
  }

  .week-label {
    width: 100%;
    margin-left: 0;
  }
}

.field-row {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

@media (max-width: 720px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.checkbox-group {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin: 0;
  padding: 10px 14px 14px;
}

.checkbox-group legend {
  padding: 0 4px;
}

.checkbox-list {
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.checkbox-option {
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  display: flex;
}

.checkbox-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
}

.checkbox-option input[type="checkbox"]:disabled + span {
  color: var(--color-text-muted);
}

.assignment-list {
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
}

.assignment-item {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.signal-badge-online {
  color: #166534;
  background: #dcfce7;
}

.signal-badge-delayed {
  color: #854d0e;
  background: #fef9c3;
}

.signal-badge-offline {
  color: #991b1b;
  background: #fee2e2;
}

.overdue-badge {
  color: #9a3412;
  background: #ffedd5;
}

.map-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.map-container {
  width: 100%;
  height: 420px;
}

.map-placeholder {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  height: 420px;
  color: var(--color-text-muted);
  background: #fff;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  display: flex;
}

.map-empty-hint {
  z-index: 500;
  color: var(--color-text-muted);
  pointer-events: none;
  background: #ffffffeb;
  border-radius: 999px;
  margin: 0;
  padding: 4px 12px;
  font-size: 13px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.map-marker {
  border: 3px solid #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: block;
  box-shadow: 0 1px 4px #0006;
}

.map-marker-online {
  background: #16a34a;
}

.map-marker-delayed {
  background: #ca8a04;
}

.map-marker-offline {
  background: #dc2626;
}

.time-entry-card {
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
  padding-top: 16px;
}

.time-entry-card h3 {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 16px;
  display: flex;
}

.time-entry-card h4 {
  margin: 16px 0 8px;
  font-size: 14px;
}

.correction-form {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  max-width: 480px;
  margin-top: 12px;
  padding: 12px;
}

.correction-form h4 {
  margin: 0 0 8px;
}

.event-history {
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  list-style: none;
  display: flex;
}

.event-history-time {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.hub-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.hub-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}

.hub-list li:last-child {
  border-bottom: none;
}

.hub-form {
  gap: 6px;
  max-width: 560px;
  margin-top: 12px;
  display: grid;
}

.hub-form label {
  font-size: 13px;
  font-weight: 600;
}

.hub-form input, .hub-form select, .hub-form textarea {
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  width: 100%;
  color: var(--color-text);
  border-radius: 6px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 15px;
}

.hub-form input[type="checkbox"] {
  width: auto;
}

.hub-form input:focus-visible, .hub-form select:focus-visible, .hub-form textarea:focus-visible {
  border-color: var(--color-accent);
}

.hub-token {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 12px 16px;
}

.hub-token code {
  overflow-wrap: anywhere;
}

.section-tabs {
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  display: flex;
}

.section-tab {
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.section-tab:hover {
  color: var(--color-text);
}

.section-tab-active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.section-tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.field-password {
  align-items: stretch;
  gap: .5rem;
  display: flex;
}

.field-password .field-input {
  flex: 1;
}

.section-tabs {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  flex-wrap: wrap;
  gap: .25rem;
  padding: .5rem 1.5rem 0;
  display: flex;
}

.section-tab {
  color: var(--color-text-muted);
  border-bottom: 2px solid #0000;
  border-radius: 6px 6px 0 0;
  padding: .5rem .9rem;
  font-weight: 500;
  text-decoration: none;
}

.section-tab:hover {
  color: var(--color-text);
  background: var(--color-accent-soft);
}

.section-tab[aria-current="page"] {
  color: var(--color-accent-strong);
  border-bottom-color: var(--color-accent);
}

.stat-row {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem;
  margin: 0 0 1.25rem;
  display: grid;
}

.stat-tile {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: inherit;
  border-radius: 8px;
  padding: .75rem .9rem;
  text-decoration: none;
  display: block;
}

.stat-tile:hover {
  border-color: var(--color-accent);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  display: block;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: .85rem;
  display: block;
}

.stat-tile[data-alert="true"] .stat-value {
  color: var(--color-danger);
}

.today-section-empty {
  border: 1px dashed var(--color-border);
  color: var(--color-text-muted);
  border-radius: 8px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .5rem;
  padding: .5rem .9rem;
  display: flex;
}

.today-item {
  border-bottom: 1px solid var(--color-border);
  padding: .6rem 0;
}

.today-item:last-child {
  border-bottom: none;
}

.today-item-reason {
  margin: .15rem 0 .35rem;
  display: block;
}

.today-item-actions {
  flex-wrap: wrap;
  gap: .4rem;
  display: flex;
}

.today-item-actions a {
  font-size: .9rem;
}

.day-toggle {
  gap: .25rem;
  margin-bottom: 1rem;
  display: inline-flex;
}

.day-toggle a {
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  border-radius: 999px;
  padding: .35rem .8rem;
  text-decoration: none;
}

.day-toggle a[aria-current="page"] {
  background: var(--color-accent);
  border-color: var(--color-accent-strong);
  color: #fff;
}

.org-header {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  display: flex;
}

.org-header-actions {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  display: grid;
}

.employee-header {
  z-index: 5;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 6px #0d1b2e14;
}

.employee-welcome {
  border: 1px solid var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 8px;
  margin-bottom: .75rem;
  padding: .75rem 1rem;
}

.app-access {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
  padding: .5rem .75rem;
  display: flex;
}

.app-access[data-locked="true"] {
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
}

.time-field {
  font-variant-numeric: tabular-nums;
  text-align: center;
  width: 6.5rem;
}

.time-field[aria-invalid="true"] {
  border-color: var(--color-danger, #b3261e);
  outline: 2px solid var(--color-danger, #b3261e);
}

.weekday-times td, .weekday-times th {
  vertical-align: middle;
}

.per-weekday-toggle {
  margin-top: .5rem;
}

.assignment-row {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  display: flex;
}

.assignment-times {
  align-items: center;
  gap: .35rem;
  display: inline-flex;
}

.notice {
  background: var(--color-surface-muted, #f2f4f7);
  border-radius: 8px;
  margin: .5rem 0 1rem;
  padding: .75rem 1rem;
}

.notice-info {
  border-left: 4px solid var(--color-primary, #1f4e79);
}

.planning-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  display: flex;
}

.planning-period {
  margin: 0 0 0 .75rem;
  font-size: 1.1rem;
}

.view-switch {
  border: 1px solid var(--color-border, #d0d5dd);
  border-radius: 999px;
  display: inline-flex;
  overflow: hidden;
}

.view-switch-item {
  color: inherit;
  padding: .35rem .9rem;
  font-size: .9rem;
  text-decoration: none;
}

.view-switch-item.is-active {
  background: var(--color-primary, #1f4e79);
  color: #fff;
}

.planning-filters {
  align-items: end;
}

.planning-filters .checkbox-option {
  padding-bottom: .5rem;
}

.day-list {
  gap: .75rem;
  display: grid;
}

.day-header {
  align-items: baseline;
  gap: .5rem;
  display: flex;
}

.day-header .day-add {
  border: 1px solid var(--color-border, #d0d5dd);
  border-radius: 4px;
  margin-left: auto;
  padding: 0 .4rem;
  font-weight: 600;
  text-decoration: none;
}

.day-section.is-today {
  outline: 2px solid var(--color-primary, #1f4e79);
}

.day-empty {
  color: var(--color-text-muted, #667085);
  margin: .25rem 0;
}

.shift-card.is-cancelled {
  opacity: .6;
}

.shift-card.is-running {
  border-left: 4px solid var(--color-success, #2e7d32);
}

.badge-running {
  background: var(--color-success, #2e7d32);
  color: #fff;
}

.month-grid {
  border: 1px solid var(--color-border, #d0d5dd);
  border-radius: 8px;
  gap: 2px;
  display: grid;
  overflow: hidden;
}

.month-row {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  display: grid;
}

.month-cell-head {
  text-align: center;
  background: var(--color-surface-muted, #f2f4f7);
  padding: .35rem;
  font-size: .8rem;
  font-weight: 600;
}

.month-cell {
  background: var(--color-surface, #fff);
  flex-direction: column;
  gap: 2px;
  min-height: 6rem;
  padding: .25rem;
  display: flex;
}

.month-cell.is-outside {
  opacity: .45;
}

.month-cell.is-today .month-day {
  background: var(--color-primary, #1f4e79);
  color: #fff;
}

.month-day {
  text-align: center;
  min-width: 1.6rem;
  color: inherit;
  border-radius: 999px;
  align-self: flex-start;
  padding: .1rem .3rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}

.month-chip, .matrix-chip {
  background: var(--color-primary-soft, #e6eef6);
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 4px;
  padding: .15rem .3rem;
  font-size: .75rem;
  line-height: 1.2;
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.month-chip.is-open, .matrix-chip.is-open {
  background: var(--color-warning-soft, #fff4e5);
}

.month-chip.is-cancelled, .matrix-chip.is-cancelled {
  opacity: .6;
  text-decoration: line-through;
}

.month-chip.is-running, .matrix-chip.is-running {
  box-shadow: inset 3px 0 0 var(--color-success, #2e7d32);
}

.month-more {
  font-size: .75rem;
}

.employee-matrix th.is-today, .employee-matrix td.is-today {
  background: var(--color-primary-soft, #e6eef6);
}

.employee-matrix td {
  vertical-align: top;
  min-width: 7rem;
}

.matrix-date {
  color: var(--color-text-muted, #667085);
  font-size: .75rem;
  font-weight: 400;
  display: block;
}

.matrix-chip {
  white-space: normal;
  margin-bottom: 2px;
}

.matrix-chip-time {
  font-weight: 600;
  display: block;
}

.matrix-add {
  color: var(--color-text-muted, #667085);
  text-decoration: none;
}

.matrix-hours {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cancel-choice {
  gap: .5rem;
  margin: .5rem 0;
  display: grid;
}

@media (max-width: 720px) {
  .month-cell {
    min-height: 4rem;
  }

  .month-chip {
    font-size: .65rem;
  }
}

.site-address {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.site-address-line {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.key-history {
  margin: .35rem 0 .5rem 1rem;
  padding: 0;
  font-size: .9rem;
  list-style: outside;
}

.btn-link {
  color: var(--color-primary, #1f4e79);
  cursor: pointer;
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
}

.notification-bell {
  position: relative;
}

.bell-button {
  border: 1px solid var(--color-border, #d0d5dd);
  cursor: pointer;
  background: none;
  border-radius: 999px;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.1rem;
  position: relative;
}

.bell-badge {
  background: var(--color-danger, #b3261e);
  color: #fff;
  border-radius: 999px;
  padding: .05rem .4rem;
  font-size: .7rem;
  font-weight: 700;
  position: absolute;
  top: -.35rem;
  right: -.35rem;
}

.bell-panel {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #d0d5dd);
  z-index: 30;
  border-radius: 8px;
  width: min(24rem, 90vw);
  max-height: 24rem;
  padding: .5rem .75rem;
  position: absolute;
  top: 2.8rem;
  right: 0;
  overflow: auto;
  box-shadow: 0 8px 24px #0000001f;
}

.bell-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bell-list li {
  border-bottom: 1px solid var(--color-border, #e4e7ec);
  padding: .5rem 0;
}

.bell-list li.is-unread strong {
  color: var(--color-primary, #1f4e79);
}

.bell-list a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.bell-body {
  font-size: .85rem;
  display: block;
}

.bell-time {
  color: var(--color-text-muted, #667085);
  font-size: .75rem;
}

.message-dialog {
  margin: .5rem 0;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-trail {
  margin-top: .5rem;
}

.location-trail-map {
  border: 1px solid var(--color-border, #d0d5dd);
  border-radius: 8px;
  width: 100%;
  max-width: 32rem;
  height: auto;
}

.trail-bg {
  fill: var(--color-surface-muted, #f2f4f7);
}

.trail-path {
  fill: none;
  stroke: var(--color-primary, #1f4e79);
  stroke-width: 3px;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.trail-start {
  fill: var(--color-success, #2e7d32);
}

.trail-end {
  fill: var(--color-danger, #b3261e);
}

.trail-list {
  max-height: 14rem;
  font-size: .85rem;
  overflow: auto;
}

.anomaly-filter {
  flex-wrap: wrap;
}

.table-scroll {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  overflow-x: auto;
}

.nav-toggle {
  min-height: 40px;
  padding: .4rem .9rem;
}

.day-header .day-add, .matrix-add, .month-day {
  justify-content: center;
  align-items: center;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
}

.matrix-add {
  font-size: 1.1rem;
}

@media (pointer: coarse) {
  .btn, .btn-link, .view-switch-item, .bell-button {
    min-height: 40px;
  }

  .hub-list a, .detail-card a {
    padding: .2rem 0;
    display: inline-block;
  }
}

/*# sourceMappingURL=apps_web_src_app_globals_1wvyn-h.css.map*/