/*
 * LETVAGT 2026
 * Et samlet, roligt designsystem oven på den eksisterende applikation.
 */
:root {
  --paper: #f4f7f5;
  --white: #ffffff;
  --ink: #102d25;
  --muted: #687872;
  --line: #dfe7e3;
  --coral: #ff806d;
  --mint: #aee7d6;
  --yellow: #ffdc5d;
  --surface-soft: #edf3f0;
  --surface-mint: #e7f7f1;
  --surface-coral: #fff0ed;
  --surface-yellow: #fff8d9;
  --focus: #5bc6a6;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 45, 37, .04), 0 8px 24px rgba(16, 45, 37, .05);
  --shadow-md: 0 18px 50px rgba(16, 45, 37, .10);
  --shadow-float: 0 24px 70px rgba(8, 28, 22, .18);
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0, rgba(174, 231, 214, .22), transparent 28rem),
    linear-gradient(180deg, #f8faf9 0, var(--paper) 32rem);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(91, 198, 166, .38);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 999;
  padding: 11px 15px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-150%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

h1,
.modal h2,
.auth-form h2,
.schedule-header h2,
.time-section-heading h2,
.company-owner-card h2,
.pricing-tier,
.pricing-price strong,
.feature-locked-card h2,
.legal-section h2,
.status-card h1 {
  font-family: inherit;
  letter-spacing: -.035em;
}

h1 {
  max-width: 850px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 720;
  line-height: 1.04;
}

.eyebrow,
.section-label {
  margin-bottom: 9px;
  color: #d45d4c;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
}

.subline {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Navigation */
.topbar {
  height: 72px;
  padding: 0 max(24px, 3.5vw);
  grid-template-columns: minmax(190px, 1fr) auto minmax(250px, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(16, 45, 37, .96);
  box-shadow: 0 12px 30px rgba(10, 35, 28, .12);
  backdrop-filter: blur(18px);
}

.brand {
  gap: 10px;
  font-size: 16px;
  letter-spacing: .07em;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: transparent;
  object-fit: contain;
  box-shadow: 0 5px 16px rgba(4, 24, 18, .16);
}

.main-nav {
  height: auto;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
}

.nav-item {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 720;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .07);
}

.nav-item.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .13);
}

.nav-item.active::after {
  display: none;
}

.company-chip {
  max-width: 190px;
  overflow: hidden;
  padding: 7px 11px;
  border-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .72);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-trigger {
  min-height: 46px;
  padding: 5px 8px;
  border-radius: 13px;
}

.profile-menu-avatar {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--mint);
}

.profile-copy {
  gap: 1px;
  font-size: 11px;
}

.profile-dropdown {
  top: calc(100% + 10px);
  width: 270px;
  padding: 10px;
  border-color: var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(18px);
  text-align: left;
}

.profile-dropdown .profile-nav-item,
.profile-logout {
  min-height: 44px;
  border-radius: 10px;
  font-size: 11px;
  justify-content: flex-start;
  text-align: left;
}

.profile-dropdown-head {
  text-align: left;
}

.profile-superadmin-form {
  margin: 8px 4px 2px !important;
  padding: 8px 0 0 !important;
  border-top: 1px solid var(--line);
}

.profile-superadmin-form + form {
  margin-top: 0;
}

.profile-superadmin-link {
  color: #315f52 !important;
}

.profile-superadmin-link > span:first-child {
  color: #6c8b30 !important;
}

.profile-notification-badge {
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e65f4d;
  color: #fff;
  box-shadow: 0 0 0 3px #e65f4d1f;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

/* App layout og sidehoveder */
.content {
  width: min(1320px, calc(100vw - 48px));
  padding: 42px 0 90px;
}

.hero-row,
.view-heading {
  align-items: center;
  margin-bottom: 28px;
}

.hero-row {
  min-height: 112px;
}

.view-heading {
  min-height: 92px;
}

.primary-button,
.secondary-button,
.danger-button,
.pdf-export-button,
.calendar-nav-button,
.calendar-today-button {
  min-height: 44px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 780;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 7px 18px rgba(16, 45, 37, .16);
}

.shift-edit-actions #deleteShiftButton {
  margin-right: auto;
}

.shift-edit-actions #deleteShiftButton:disabled {
  cursor: not-allowed;
}

.primary-button:hover {
  background: #1a4237;
  box-shadow: 0 10px 24px rgba(16, 45, 37, .22);
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(0);
}

.primary-button span {
  margin-left: 0;
}

.secondary-button {
  padding: 0 16px;
  border-color: var(--line);
  background: #fff;
}

.secondary-button:hover {
  border-color: #b9c9c2;
  background: var(--surface-soft);
}

/* Hurtigt overblik */
.attention-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.attention-card.absence-attention{background:#eee8fb}.attention-card.absence-attention::after{background:#d8c9f5}

/* Fravær */
.profile-absence-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:18px;margin-top:18px;padding:24px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm)}.profile-absence-card h2{margin:3px 0 7px;font-family:Georgia,serif;font-size:24px;font-weight:500}.profile-absence-card p:not(.section-label){margin:0;color:var(--muted);font-size:12px}.profile-absence-list{grid-column:1/-1;display:grid;gap:8px;padding-top:16px;border-top:1px solid var(--line)}
.profile-calendar-card{display:grid;gap:20px;margin-top:18px;padding:26px;border:1px solid #cfe1da;border-radius:18px;background:linear-gradient(145deg,#fff 0%,#f3f8f6 100%);box-shadow:var(--shadow-sm)}.profile-calendar-heading{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;align-items:start}.profile-calendar-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--ink);color:#fff;font-size:22px}.profile-calendar-card h2{margin:3px 0 7px;font-family:Georgia,serif;font-size:24px;font-weight:500}.profile-calendar-card p:not(.section-label){margin:0;color:var(--muted);font-size:12px;line-height:1.6}.calendar-subscription-actions{display:flex;flex-wrap:wrap;gap:10px}.calendar-provider-button{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:11px;font-weight:800;text-decoration:none;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.calendar-provider-button:hover{transform:translateY(-1px);border-color:#9db9af;box-shadow:var(--shadow-sm)}.calendar-provider-button::before{display:grid;place-items:center;width:23px;height:23px;margin-right:9px;border-radius:6px;color:#fff;font-size:11px}.calendar-provider-button.google::before{content:"G";background:#4285f4}.calendar-provider-button.outlook::before{content:"O";background:#1674d1}.calendar-provider-button.apple::before{content:"●";background:#252b29}.calendar-feed-field{display:grid;gap:8px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.calendar-feed-field>span{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.calendar-feed-field input{min-width:0;padding:12px 13px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#53615c;font:500 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}.calendar-subscription-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-top:2px}.calendar-subscription-footer small{max-width:680px;color:var(--muted);font-size:10px;line-height:1.55}.text-danger-button{padding:0;border:0;background:transparent;color:#b75042;font:800 10px/1.4 inherit;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;cursor:pointer}.text-danger-button:disabled{opacity:.5;cursor:wait}
.hero-actions{display:flex;align-items:center;gap:10px}.assignment-conflict-preview{display:grid;gap:7px;margin-top:10px}.assignment-conflict-item{display:grid;grid-template-columns:26px minmax(0,1fr);gap:9px;align-items:start;padding:10px 12px;border:1px solid;border-radius:9px}.assignment-conflict-item>span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:12px;font-weight:900}.assignment-conflict-item strong{display:block;margin-bottom:2px;font-size:11px}.assignment-conflict-item p{margin:0;font-size:10px;line-height:1.45}.assignment-conflict-item.hard{border-color:#efc0b7;background:#fff1ee;color:#8c382b}.assignment-conflict-item.hard>span{background:#f07a67;color:#fff}.assignment-conflict-item.warning{border-color:#ecd58c;background:#fff8dc;color:#755b12}.assignment-conflict-item.warning>span{background:#f1c94c;color:#5d4709}.assignment-conflict-clear,.assignment-conflict-loading,.assignment-conflict-error{padding:9px 12px;border-radius:8px;font-size:10px;font-weight:700}.assignment-conflict-clear{background:#e9f5f0;color:#38705f}.assignment-conflict-clear span{margin-right:5px}.assignment-conflict-loading{background:#f2f1ec;color:var(--muted)}.assignment-conflict-error{background:#fff1ee;color:#8c382b}.assignment-override-conflicts{display:grid;gap:8px;margin:16px 0}.input-with-suffix{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.input-with-suffix input{border:0!important;border-radius:0!important}.input-with-suffix b{padding:0 14px;color:var(--muted);font-size:10px}.schedule-rules-disclaimer{margin:0;padding:12px 14px;border-radius:8px;background:#f4f1e8;color:var(--muted);font-size:10px;line-height:1.5}
.absence-toolbar{display:flex;justify-content:flex-end;gap:10px;margin:0 0 15px}.absence-toolbar label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;font-weight:800}.absence-toolbar select{min-width:175px;height:40px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:#fff}
.absence-list{display:grid;gap:9px}.absence-card{position:relative;display:grid;grid-template-columns:minmax(190px,.8fr) minmax(220px,1.4fr) 110px auto;align-items:center;gap:17px;padding:16px 18px;border:1px solid var(--line);border-left:5px solid var(--absence-color);border-radius:13px;background:#fff;box-shadow:var(--shadow-sm)}.absence-card.compact{grid-template-columns:minmax(180px,.8fr) minmax(180px,1.3fr) 105px auto;padding:12px 14px;box-shadow:none}.absence-card-date,.absence-card-main,.absence-card-meta{min-width:0;display:flex;flex-direction:column;gap:4px}.absence-card-date i{width:9px;height:9px;border-radius:50%;background:var(--absence-color)}.absence-card-date strong{font-size:13px}.absence-card-date span,.absence-card-meta span{color:var(--muted);font-size:10px}.absence-card-main{align-items:flex-start}.absence-card-main p{max-width:100%;margin:4px 0 0;overflow:hidden;color:#50615b;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.absence-card-main small{color:#916545;font-size:9px}.absence-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f0f1ee;color:#67736e;font-size:9px;font-weight:900}.absence-status.pending{background:#fff0bd;color:#856000}.absence-status.approved,.absence-status.reported{background:#dbf0e8;color:#2c735e}.absence-status.rejected{background:#ffe2dc;color:#994838}.absence-status.cancelled{background:#ececea;color:#777}.absence-card-meta{text-align:right}.absence-card-meta strong{font-family:Georgia,serif;font-size:22px;font-weight:500}.absence-cancel-button{padding:8px 10px;border:1px solid #e2c6c1;border-radius:7px;background:#fff;color:#984b40;font-size:9px;font-weight:850}.absence-cancel-button:hover{background:#fff0ed}
.absence-time-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.absence-form-notice{padding:13px 15px;border:1px solid #d7e5df;border-radius:8px;background:#edf6f2;color:#42665b;font-size:11px;line-height:1.5}.optional-label{color:var(--muted);font-size:9px;font-weight:500}.absence-review-card textarea{width:100%;margin-top:6px;padding:10px;border:1px solid var(--line);border-radius:7px;background:#fff;font:inherit;font-size:11px;resize:vertical}.absence-shift-warning{padding:9px 11px;border-radius:7px;background:#fff0bd;color:#795d13!important;font-size:10px!important;font-weight:800}
@media(max-width:900px){.absence-card,.absence-card.compact{grid-template-columns:1fr auto}.absence-card-main{grid-column:1}.absence-card-meta{grid-column:2;grid-row:1/3}.absence-cancel-button{grid-column:1/-1;width:max-content}.profile-absence-card{grid-template-columns:1fr}.profile-absence-card>button{width:max-content}.profile-absence-list{grid-column:1}.absence-toolbar{align-items:stretch;flex-direction:column}.absence-toolbar label{justify-content:space-between}.absence-toolbar select{flex:1}}@media(max-width:560px){.absence-card,.absence-card.compact{grid-template-columns:1fr}.absence-card-meta{grid-column:1;grid-row:auto;text-align:left}.absence-time-fields{grid-template-columns:1fr}.profile-calendar-card{padding:20px}.profile-calendar-heading{grid-template-columns:1fr}.calendar-subscription-actions{display:grid}.calendar-feed-field>span{grid-template-columns:1fr}.calendar-subscription-footer{align-items:flex-start;flex-direction:column}}

.attention-card {
  min-width: 0;
  min-height: 126px;
  gap: 14px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.attention-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -42px;
  z-index: -1;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  opacity: .6;
}

.attention-card.coral {
  background: var(--surface-coral);
}

.attention-card.coral::after {
  background: #ffc7bd;
}

.attention-card.mint {
  background: var(--surface-mint);
}

.attention-card.mint::after {
  background: #b9ebdc;
}

.attention-card.yellow {
  background: var(--surface-yellow);
}

.attention-card.yellow::after {
  background: #ffe789;
}

.attention-card.ink {
  border-color: transparent;
  background: linear-gradient(145deg, #173d33, #0d2922);
  box-shadow: 0 14px 34px rgba(16, 45, 37, .2);
}

.attention-card.ink::after {
  background: rgba(174, 231, 214, .24);
}

.big-number {
  min-width: 56px;
  font-family: inherit;
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 760;
  letter-spacing: -.05em;
  line-height: 1;
}

.attention-card strong {
  font-size: 13px;
}

.attention-card p {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.45;
}

.attention-button:hover {
  border-color: #c5d4ce;
  box-shadow: 0 14px 32px rgba(16, 45, 37, .1);
  transform: translateY(-2px);
}

.attention-button:focus-visible {
  outline: 3px solid rgba(22, 84, 67, .24);
  outline-offset: 3px;
}

.attention-card.coral.is-active {
  border-color: #e36957;
  box-shadow: 0 0 0 3px rgba(227, 105, 87, .16), 0 14px 32px rgba(16, 45, 37, .1);
}

.progress {
  bottom: 18px;
  left: 22px;
  right: 22px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
}

.progress span {
  border-radius: inherit;
}

/* Kalender og vagtliste */
.calendar-section,
.overview-section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
}

.calendar-section {
  margin-bottom: 20px;
}

.schedule-section {
  border-top: 0;
}

.schedule-header h2 {
  margin: 3px 0 0;
  font-size: 27px;
  font-weight: 720;
}

.view-switch {
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
}

.view-switch button {
  min-width: 72px;
  padding: 9px 14px;
  border-radius: 9px;
}

.view-switch button.selected {
  background: #fff;
  box-shadow: 0 3px 10px rgba(16, 45, 37, .09);
}

.toolbar {
  align-items: center;
  gap: 18px;
  margin: 20px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.segmented {
  max-width: none;
  gap: 3px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.segmented button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 10px;
}

.segmented button.selected {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(16, 45, 37, .08);
}

.schedule-filters {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pdf-export-button,
.mine-filter,
.location-select {
  min-height: 40px;
  border-color: var(--line);
  border-radius: 10px;
  background: #fff;
}

.pdf-export-button {
  padding: 0 13px;
  border-color: var(--ink);
  background: var(--ink);
}

.mine-filter {
  padding: 0 12px;
}

.mine-filter input {
  width: 16px;
  height: 16px;
}

.location-select select {
  min-height: 38px;
  outline: none;
}

.calendar-navigation {
  margin: 2px 0 12px;
}

.calendar-nav-button,
.calendar-today-button {
  min-height: 38px;
  border-color: var(--line);
  background: #fff;
}

.calendar-nav-button:hover,
.calendar-today-button:hover {
  border-color: #bdcbc5;
  background: var(--surface-soft);
}

.calendar-copy-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.calendar-copy-hint kbd {
  padding: 3px 6px;
  border: 1px solid #cfd8d4;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 10px;
}

.calendar-copy-hint i {
  width: 3px;
  height: 3px;
  margin: 0 3px;
  border-radius: 50%;
  background: #a4b0ab;
}

.calendar-scroll {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(16, 45, 37, .02);
}

.calendar-weekday,
.calendar-time-corner,
.calendar-grid.week .calendar-weekday {
  border-color: var(--line);
  background: #f4f7f5;
}

.calendar-day {
  border-color: var(--line);
}

.calendar-day.outside {
  background: #f7f8f7;
}

.calendar-day.today,
.calendar-grid.week .calendar-day.today {
  background-color: #f0faf6;
}

.calendar-shift,
.calendar-shift-timed {
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 3px 10px rgba(16, 45, 37, .06);
}

.calendar-shift:hover,
.calendar-shift-timed:hover {
  box-shadow: 0 8px 20px rgba(16, 45, 37, .13);
}

.location-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--location-color, #4f8f7b);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--location-color, #4f8f7b) 68%, #1a3029);
  vertical-align: 0;
}

.calendar-shift small .location-dot,
.calendar-shift-timed small .location-dot {
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-width: 1px;
}

.location-select {
  border-left: 4px solid var(--location-color, #9aa8a2);
  transition: border-color .18s ease;
}

.location-card {
  border-top: 3px solid var(--location-color, #4f8f7b);
}

.location-card .location-icon {
  background: color-mix(in srgb, var(--location-color, #4f8f7b) 20%, #fff);
  color: var(--location-color, #4f8f7b);
}

.location-card h3 {
  display: flex;
  align-items: center;
}

[data-copy-shift="true"] {
  cursor: grab;
}

[data-copy-shift="true"]:active {
  cursor: grabbing;
}

.calendar-grid.week .calendar-day.can-select-time {
  cursor: crosshair;
  user-select: none;
}

.calendar-time-selection {
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 7;
  min-height: 12px;
  overflow: hidden;
  padding: 5px 7px;
  border: 1px solid #6f9530;
  border-left: 5px solid #7ca52f;
  border-radius: 8px;
  background: rgba(224, 245, 164, .94);
  color: #28411d;
  box-shadow: 0 8px 22px rgba(54, 86, 30, .2);
  pointer-events: none;
}

.calendar-time-selection strong,
.calendar-time-selection span {
  display: block;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-time-selection span {
  margin-top: 2px;
  color: #5d743e;
  font-size: 9px;
  font-weight: 750;
}

.calendar-selecting-time,
.calendar-selecting-time * {
  cursor: ns-resize !important;
}

.calendar-copy-source {
  opacity: .5;
  filter: saturate(.65);
}

.calendar-day.calendar-copy-target,
.calendar-grid.week .calendar-day.calendar-copy-target {
  background-color: #effbd4;
  box-shadow: inset 0 0 0 2px #9dbd35;
}

.copy-shift-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  align-items: end;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #dce6d2;
  border-radius: 13px;
  background: #f5faed;
}

.copy-shift-box .section-label {
  margin-bottom: 4px;
  color: #607a2d;
}

.copy-shift-box small {
  color: var(--muted);
  font-size: 10px;
}

.copy-shift-box label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #52615c;
  font-size: 10px;
  font-weight: 800;
}

.copy-shift-box input {
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.copy-shift-box .secondary-button {
  min-height: 40px;
}

.overview-section {
  padding-top: 22px;
}

@media (max-width: 700px) {
  .calendar-copy-hint {
    display: none;
  }

  .copy-shift-box {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.overview-toggle {
  border-radius: 13px;
}

.overview-toggle strong {
  font-family: inherit;
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -.03em;
}

.overview-toggle-icon {
  border: 0;
  background: var(--surface-soft);
}

#overviewContent {
  padding-top: 18px;
}

.unfilled-empty-state span {
  color: #27705b;
}

.shift-list {
  gap: 10px;
}

.shift-card {
  min-height: 106px;
  overflow: hidden;
  border-color: var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 45, 37, .04);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.shift-card:hover {
  border-color: #c4d2cc;
  box-shadow: 0 10px 26px rgba(16, 45, 37, .08);
  transform: translateY(-1px);
}

.shift-info h3 {
  font-size: 15px;
}

.more-button {
  border-color: var(--line);
  color: var(--muted);
  font-size: 18px;
}

.more-button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.empty-state,
.loading-state,
.calendar-loading,
.calendar-error {
  border-color: var(--line);
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(255,255,255,.6), rgba(237,243,240,.9), rgba(255,255,255,.6));
  background-size: 220% 100%;
  animation: letvagt-loading 1.8s ease infinite;
}

@keyframes letvagt-loading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Datakort, profiler og abonnement */
.data-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.data-card {
  min-width: 0;
  min-height: 102px;
  padding: 20px;
  border-color: var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.data-card:hover {
  border-color: #c5d4ce;
  box-shadow: 0 14px 34px rgba(16, 45, 37, .08);
  transform: translateY(-2px);
}

.employee-view-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.employee-view-switch button {
  display: flex;
  align-items: center;
  gap: 6px;
}

.employee-view-switch button span {
  font-size: 15px;
  line-height: 1;
}

.employee-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.employee-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  table-layout: fixed;
}

.employee-table th,
.employee-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #e9eeeb;
  text-align: left;
  vertical-align: middle;
}

.employee-table th {
  background: #f5f8f6;
  color: #74837d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.employee-table th:first-child { width: 25%; }
.employee-table th:nth-child(2) { width: 22%; }
.employee-table th:nth-child(3) { width: 15%; }
.employee-table th:nth-child(4) { width: 15%; }
.employee-table th:nth-child(5) { width: 10%; }
.employee-table th:last-child { width: 90px; }

.employee-table tbody tr:last-child td {
  border-bottom: 0;
}

.employee-table tbody tr {
  transition: background .15s ease;
}

.employee-table tbody tr:hover {
  background: #f9fbfa;
}

.employee-table td {
  overflow: hidden;
  color: #54645e;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.employee-table-person .avatar {
  width: 40px;
  height: 40px;
}

.employee-table-person > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.employee-table-person strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
}

.employee-table-person small {
  margin-top: 3px;
  color: #7b8a84;
  font-size: 10px;
}

.employee-active-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #527943;
  font-size: 11px;
  font-weight: 750;
}

.employee-active-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #76a65f;
  box-shadow: 0 0 0 4px rgba(118, 166, 95, .11);
}

.employee-table-action {
  text-align: right !important;
}

.employee-table-action .edit-employee {
  float: right;
}

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

.location-icon,
.shift-type-color {
  border-radius: 12px;
}

.edit-employee,
.reset-login-button {
  border-radius: 10px;
}

.profile-card,
.company-profile-card,
.pricing-card,
.billing-panel,
.integration-card,
.feature-locked-card {
  border-color: var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.profile-card {
  padding: 30px;
}

.profile-sso-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.profile-sso-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.profile-sso-card strong {
  font-size: 13px;
}

.profile-sso-card > div span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-sso-card > div span.connected {
  color: #4d7b3d;
}

.microsoft-mark {
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  flex: 0 0 auto;
}

.microsoft-mark i:nth-child(1) { background: #f25022; }
.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }

.profile-photo-preview {
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(16, 45, 37, .1);
}

.profile-upload-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 10px;
}

.company-profile-card {
  padding: 28px;
}

.company-owner-card {
  top: 92px;
  border-radius: 20px;
  background: linear-gradient(145deg, #173d33, #0d2922);
  box-shadow: var(--shadow-md);
}

.company-owner-avatar {
  border-radius: 16px;
}

.plan-pill,
.billing-status,
.integration-status,
.status-pill {
  border-radius: 999px;
}

.pricing-summary {
  min-height: 58px;
  padding: 14px 18px;
  border-color: var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pricing-card {
  min-height: 430px;
  padding: 26px;
}

.pricing-card.featured {
  border-color: #8fcab8;
  box-shadow: 0 18px 44px rgba(16, 45, 37, .12);
  transform: translateY(-4px);
}

.pricing-card.selected {
  box-shadow: inset 0 0 0 2px var(--focus), var(--shadow-sm);
}

.pricing-tier {
  font-size: 21px;
  font-weight: 740;
}

.pricing-price strong {
  font-weight: 760;
}

.billing-panel {
  padding: 26px;
}

.billing-status[data-status="trialing"] {
  background: #dff3e8;
  color: #17643b;
}

.billing-status[data-status="past_due"],
.billing-status[data-status="incomplete"] {
  background: #fff3cf;
  color: #815d00;
}

.billing-status[data-status="canceled"],
.billing-status[data-status="unpaid"],
.billing-status[data-status="paused"],
.billing-status[data-status="incomplete_expired"] {
  background: #fde5e2;
  color: #8b3129;
}

.billing-history-row a {
  width: fit-content;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.feature-locked-card {
  background: linear-gradient(145deg, #fff9dd, #fff);
}

.integration-card {
  padding: 26px;
}

.integration-heading h2 {
  font-family: inherit;
  font-size: 23px;
  font-weight: 740;
  letter-spacing: -.03em;
}

.integration-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 20px;
}

.integration-message,
.integration-scope {
  border-radius: 12px;
}

.location-mapping-row,
.assigned-employee,
.swap-review-card,
.pdf-period-option {
  border-color: var(--line);
  border-radius: 12px;
}

/* Timer */
.time-review-section,
.time-approved-section,
.time-own-section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
}

.time-section-heading h2 {
  font-size: 24px;
  font-weight: 720;
}

.time-entry-card {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(16, 45, 37, .04);
}

.time-entry-card.approved-entry {
  border-left: 4px solid var(--mint);
}

.time-entry-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.time-entry-time {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f7f5;
}

.time-entry-time.actual {
  border-color: #a9d7cb;
  background: var(--surface-mint);
}

.time-entry-time small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .06em;
}

.time-entry-time strong {
  font-size: 12px;
}

.time-entry-time span,
.time-entry-locked {
  color: var(--muted);
  font-size: 10px;
}

.return-time-button {
  border-color: #e2b5aa;
  color: #994f40;
}

.time-entry-planned {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #eef1ef;
}

.time-entry-planned small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
}

.time-entry-planned strong {
  font-size: 18px;
}

.time-entry-planned span {
  color: var(--muted);
  font-size: 11px;
}

.time-entry-actual-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid #a9d7cb;
  border-radius: 14px;
  background: #f1faf7;
}

.time-entry-actual-fields legend {
  padding: 0 8px;
  color: #286c5a;
  font-size: 11px;
  font-weight: 850;
}

.time-entry-actual-fields .full {
  grid-column: 1 / -1;
}

@media (max-width: 650px) {
  .time-entry-comparison,
  .time-entry-actual-fields {
    grid-template-columns: 1fr;
  }
}

/* Formularer og dialoger */
.shift-form input,
.shift-form select,
.shift-form textarea,
.auth-form input,
.profile-fields input,
.company-profile-card input,
.company-profile-card select,
.integration-form input,
.integration-form select,
.assignment-box select,
.swap-review-card select,
.pdf-month-field input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.shift-form textarea {
  min-height: 90px;
  resize: vertical;
}

.shift-form input:hover,
.shift-form select:hover,
.shift-form textarea:hover,
.auth-form input:hover,
.profile-fields input:hover,
.company-profile-card input:hover,
.company-profile-card select:hover,
.integration-form input:hover,
.integration-form select:hover {
  border-color: #becdc7;
}

.shift-form input:focus,
.shift-form select:focus,
.shift-form textarea:focus,
.auth-form input:focus,
.profile-fields input:focus,
.company-profile-card input:focus,
.company-profile-card select:focus,
.integration-form input:focus,
.integration-form select:focus {
  border-color: var(--focus);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(91, 198, 166, .16);
}

.repeat-toggle,
.repeat-panel,
.time-calculation {
  border-radius: 12px;
}

.repeat-toggle {
  border-color: #b6dfd3;
  background: var(--surface-mint);
}

.modal {
  width: min(620px, calc(100% - 32px));
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 24px;
  background: #f8faf9;
  box-shadow: var(--shadow-float);
}

.modal::backdrop {
  background: rgba(7, 24, 19, .62);
  backdrop-filter: blur(8px);
}

.modal h2 {
  padding-right: 40px;
  font-size: 29px;
  font-weight: 740;
}

.shift-action-modal {
  width: min(620px, calc(100% - 32px));
}

.shift-action-modal.manager-layout {
  width: min(880px, calc(100% - 32px));
}

.shift-action-tabs {
  margin-top: 24px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #edf1ef;
}

.shift-action-tabs button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.shift-action-tabs button span {
  color: #8b9893;
  font-size: 8px;
  letter-spacing: .08em;
}

.shift-action-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(16, 49, 39, .09);
}

.shift-action-tabs button[aria-selected="true"] span {
  color: #4c806f;
}

.shift-action-tabs button:focus-visible {
  outline: 3px solid rgba(122, 185, 164, .45);
  outline-offset: 1px;
}

.shift-action-panel {
  min-height: 390px;
  padding-top: 22px;
}

.shift-action-panel[hidden] {
  display: none;
}

.shift-action-panel .shift-form,
.shift-action-panel .copy-shift-box,
.shift-action-panel .assignment-box {
  margin-top: 0;
}

.shift-action-panel .assignment-box {
  padding-top: 0;
  border-top: 0;
}

.shift-panel-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.shift-panel-heading h3,
.copy-shift-box h3 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -.025em;
}

#staffingCapacityHint {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-mint);
  color: #397360;
  font-size: 10px;
  font-weight: 850;
}

.shift-action-panel .assigned-employees {
  max-height: 230px;
  overflow-y: auto;
}

.shift-action-panel .copy-shift-box {
  min-height: 190px;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  align-items: center;
  padding: 24px;
}

.shift-action-panel .copy-shift-box small {
  max-width: 410px;
  display: block;
  margin-top: 7px;
  line-height: 1.55;
}

.shift-action-panel .copy-shift-box .primary-button {
  min-height: 42px;
}

.close-button {
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 21px;
}

.close-button:hover {
  background: #e3ebe7;
  color: var(--ink);
}

.toast {
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 15px 18px;
  border-radius: 13px;
  box-shadow: var(--shadow-float);
  font-size: 12px;
}

.shift-context-menu {
  position: fixed;
  z-index: 1400;
  width: min(270px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #fff;
  box-shadow: var(--shadow-float);
}

.shift-context-menu[hidden] {
  display: none;
}

.shift-context-heading {
  overflow: hidden;
  padding: 7px 10px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shift-context-menu button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  text-align: left;
}

.shift-context-menu button:hover:not(:disabled),
.shift-context-menu button:focus-visible {
  outline: 0;
  background: var(--surface-soft);
}

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

.shift-context-menu small {
  display: block;
  padding: 5px 10px 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

/* Login, oprettelse og statussider */
.auth-page {
  background: #0e2b23;
}

.auth-shell {
  min-height: 100svh;
  grid-template-columns: minmax(420px, 1.05fr) minmax(480px, .95fr);
}

.auth-brand {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vh, 72px) clamp(42px, 7vw, 110px);
  background:
    radial-gradient(circle at 85% 75%, rgba(174, 231, 214, .22), transparent 24rem),
    linear-gradient(145deg, #173d33, #0a251e);
}

.auth-brand::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 100px rgba(255,255,255,.018);
}

.auth-brand > * {
  position: relative;
  z-index: 1;
}

.auth-brand h1 {
  max-width: 640px;
  font-family: inherit;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 740;
  letter-spacing: -.055em;
  line-height: .98;
}

.auth-brand p:not(.eyebrow) {
  font-size: 15px;
}

.auth-form-wrap {
  padding: 48px;
  background:
    radial-gradient(circle at 100% 0, rgba(174, 231, 214, .26), transparent 25rem),
    var(--paper);
}

.auth-form {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.auth-form h2 {
  font-size: 32px;
  font-weight: 740;
}

.auth-form label {
  margin: 15px 0;
  font-size: 10px;
}

.auth-form input {
  padding: 0 13px;
}

.auth-form .primary-button {
  min-height: 48px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #8a9691;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.microsoft-login-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #cfd7d3;
  border-radius: 12px;
  background: #fff;
  color: #263b35;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.microsoft-login-button:hover {
  border-color: #9eada7;
  background: #f8faf9;
  transform: translateY(-1px);
}

.google-login-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #cfd7d3;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.google-login-button:hover {
  border-color: #9eada7;
  background: #f8faf9;
  transform: translateY(-1px);
}

.google-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  border: 1px solid #dce2df;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font: 850 16px/1 Arial, sans-serif;
}

.form-error {
  border: 1px solid #f0c2bb;
  border-left: 4px solid var(--coral);
  border-radius: 11px;
  background: var(--surface-coral);
}

.status-shell {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 100%, rgba(174, 231, 214, .2), transparent 30rem),
    linear-gradient(145deg, #173d33, #0a251e);
}

.status-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-float);
}

.status-symbol {
  border-radius: 18px;
}

/* Superadmin */
.sa-body {
  background: #f3f6f4;
}

.sa-sidebar {
  border-right-color: rgba(255,255,255,.07);
  background: linear-gradient(180deg, #102f27, #0b241e);
}

.sa-nav a,
.sa-profile,
.sa-search,
.sa-filters,
.sa-panel,
.sa-metrics article,
.sa-table {
  border-radius: 16px;
}

.sa-panel,
.sa-metrics article {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.sa-company-row {
  border-color: var(--line);
}

.sa-primary-action,
.sa-quiet-action {
  min-height: 38px;
  border-radius: 10px;
}

/* Juridiske sider */
.legal-page {
  background:
    radial-gradient(circle at 8% 0, rgba(174, 231, 214, .2), transparent 28rem),
    var(--paper);
}

.legal-topbar {
  background: rgba(16, 45, 37, .97);
}

.legal-meta,
.legal-price-table,
.legal-contact {
  border-radius: 16px;
  overflow: hidden;
}

/* Responsiv */
@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .company-chip {
    display: none;
  }

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

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

@media (max-width: 850px) {
  body:has(.topbar) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .topbar {
    height: 64px;
    padding: 0 18px;
    grid-template-columns: 1fr auto;
  }

  .employee-view-controls {
    width: 100%;
    align-items: stretch;
  }

  .employee-view-switch {
    flex: 1;
  }

  .employee-view-switch button {
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 40;
    height: 64px;
    padding: 6px;
    justify-content: space-around;
    border: 1px solid rgba(16, 45, 37, .1);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 45px rgba(8, 28, 22, .22);
    backdrop-filter: blur(18px);
  }

  .main-nav .nav-item {
    min-width: 0;
    min-height: 50px;
    flex: 1;
    flex-direction: column;
    gap: 1px;
    padding: 4px 5px;
    border-radius: 14px;
    color: #64736e;
    font-size: 15px;
    line-height: 1;
  }

  .main-nav .nav-item span {
    font-size: 9px;
  }

  .main-nav .nav-item.active {
    background: var(--surface-mint);
    color: var(--ink);
    box-shadow: none;
  }

  .profile-menu-avatar {
    display: grid;
  }

  .content {
    width: min(100% - 28px, 720px);
    padding: 30px 0 38px;
  }

  .hero-row,
  .view-heading {
    min-height: 0;
  }

  .calendar-section,
  .overview-section,
  .time-review-section,
  .time-approved-section,
  .time-own-section {
    padding: 18px;
    border-radius: 20px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segmented button {
    flex: 1;
    white-space: nowrap;
  }

  .schedule-filters {
    align-items: stretch;
    flex-direction: row;
    justify-content: flex-start;
  }

  .location-select {
    flex: 1;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: 330px;
    padding: 38px;
  }

  .auth-brand h1 {
    font-size: clamp(42px, 10vw, 62px);
  }

  .auth-form-wrap {
    padding: 38px 20px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 35px;
  }

  .hero-row,
  .view-heading {
    gap: 20px;
  }

  .hero-row .primary-button,
  .view-heading .primary-button {
    width: 100%;
  }

  .attention-grid {
    gap: 10px;
  }

  .attention-card {
    min-height: 138px;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 17px;
  }

  .attention-card.ink {
    padding-bottom: 31px;
  }

  .big-number {
    min-width: 0;
    font-size: 34px;
  }

  .calendar-section {
    margin-inline: -4px;
  }

  .schedule-header {
    gap: 14px;
  }

  .schedule-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pdf-export-button,
  .mine-filter,
  .location-select {
    width: 100%;
  }

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

  .calendar-navigation {
    justify-content: space-between;
  }

  .calendar-today-button {
    flex: 1;
  }

  .shift-card {
    border-radius: 14px;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    max-height: calc(100svh - 18px);
    padding: 26px 20px;
    border-radius: 22px;
  }

  .shift-action-modal {
    width: calc(100% - 18px);
  }

  .shift-action-tabs {
    position: sticky;
    top: -26px;
    z-index: 2;
  }

  .shift-action-tabs button {
    min-height: 44px;
    font-size: 10px;
  }

  .shift-action-tabs button span {
    display: none;
  }

  .shift-action-panel {
    min-height: 0;
  }

  .shift-action-panel .copy-shift-box {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .shift-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions button {
    width: 100%;
  }

  .profile-card,
  .company-profile-card,
  .billing-panel,
  .integration-card {
    padding: 20px;
    border-radius: 18px;
  }

  .integration-disclosure > .integration-heading {
    grid-template-columns: auto 1fr auto;
  }

  .integration-disclosure .integration-status {
    grid-column: 2;
  }

  .auth-brand {
    min-height: 290px;
    padding: 28px 24px;
  }

  .auth-brand p:not(.eyebrow) {
    font-size: 13px;
  }

  .auth-form {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .toast {
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Større og mere læsevenlig typografisk skala */
.nav-item { font-size: 13px; }
.company-chip,
.profile-copy { font-size: 12px; }
.profile-copy span { font-size: 11px; }
.profile-dropdown .profile-nav-item,
.profile-logout { font-size: 12px; }
.profile-dropdown-head strong { font-size: 13px; }
.profile-dropdown-head span { font-size: 11px; }
.eyebrow,
.section-label { font-size: 11px; }
.subline { font-size: 16px; }
.primary-button,
.secondary-button,
.danger-button,
.pdf-export-button,
.calendar-nav-button,
.calendar-today-button { font-size: 13px; }
.attention-card strong { font-size: 15px; }
.attention-card p { font-size: 12px; }
.view-switch button,
.segmented button,
.mine-filter,
.location-select { font-size: 12px; }
.schedule-header h2 { font-size: 29px; }
.calendar-weekday,
.calendar-time-corner,
.calendar-grid.week .calendar-weekday { font-size: 11px; }
.calendar-shift-time,
.calendar-shift-timed span { font-size: 10px; }
.calendar-shift strong,
.calendar-shift-timed strong { font-size: 11px; }
.calendar-shift small,
.calendar-shift-timed small,
.calendar-staff,
.calendar-shift-timed b { font-size: 9px; }
.overview-toggle strong { font-size: 28px; }
.time { font-size: 12px; }
.shift-info h3 { font-size: 17px; }
.shift-info p,
.staff-status { font-size: 13px; }
.series-tag,
.experience-tag { font-size: 10px; }
.data-card h3 { font-size: 16px; }
.data-card p { font-size: 13px; }
.edit-employee,
.reset-login-button { font-size: 11px; }
.shift-form label,
#simpleFields,
.profile-fields label,
.company-profile-card label,
.integration-form label,
.swap-review-card label,
.pdf-month-field { font-size: 12px; }
.shift-form label small,
.profile-fields label small,
.company-profile-card label small,
.integration-form label small,
.field-hint,
.profile-photo-column small { font-size: 11px; }
.modal-intro { font-size: 14px; }

/* Genanvendelig bekræftelsesdialog */
.confirm-dialog {
  width: min(510px, calc(100% - 30px));
  overflow: visible;
  padding: 36px;
  border: 1px solid rgba(23, 55, 47, .1);
}

.confirm-dialog-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 17px;
  background: #e3f0eb;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(23, 55, 47, .08);
}

.confirm-dialog-icon span {
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1;
}

.confirm-dialog[data-tone="danger"] .confirm-dialog-icon {
  background: #ffe6e1;
  color: #a54134;
  box-shadow: inset 0 0 0 1px rgba(165, 65, 52, .12);
}

.confirm-dialog[data-tone="danger"] .confirm-dialog-icon span::before {
  content: "!";
}

.confirm-dialog[data-tone="danger"] .confirm-dialog-icon span {
  font-size: 0;
}

.confirm-dialog[data-tone="danger"] .confirm-dialog-icon span::before {
  font-size: 26px;
}

.confirm-dialog-copy h2 {
  max-width: 390px;
  font-size: clamp(28px, 4vw, 35px);
  line-height: 1.08;
}

.confirm-dialog-copy .modal-intro {
  max-width: 410px;
  margin: 13px 0 0;
  color: #62716c;
  line-height: 1.65;
}

.confirm-dialog-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.confirm-dialog-actions button {
  min-width: 120px;
}

@media (max-width: 600px) {
  .confirm-dialog {
    padding: 30px 22px 22px;
  }

  .confirm-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .confirm-dialog-actions button {
    min-width: 0;
  }
}
.repeat-toggle small,
.repeat-panel div span,
.repeat-panel p,
.assignment-empty { font-size: 12px; }
.assigned-employee strong { font-size: 12px; }
.guest-assignment-actions{display:flex;align-items:center;gap:4px}.assigned-employee .guest-resend-button{width:30px;height:30px;display:grid;place-items:center;padding:0;border:1px solid #d7e4df;border-radius:7px;background:#f2f8f5;color:#347461}.assigned-employee .guest-resend-button:hover{background:#dff1ea;text-decoration:none}.assigned-employee .guest-resend-button:focus-visible{outline:2px solid var(--mint);outline-offset:2px}.assigned-employee .guest-resend-button:disabled{cursor:wait;opacity:.55}.guest-resend-button svg{width:15px;height:15px;fill:currentColor}.guest-resend-button.is-sending svg{animation:guest-mail-pulse .75s ease-in-out infinite alternate}@keyframes guest-mail-pulse{to{transform:scale(.82);opacity:.45}}
.integration-heading p { font-size: 13px; }
.integration-status { font-size: 10px; }
.integration-message,
.integration-scope,
.location-mapping-heading p,
.danlon-mapping-row strong { font-size: 12px; }
.location-mapping-row code,
.location-mapping-row small,
.danlon-mapping-row small { font-size: 10px; }
.pricing-summary { font-size: 12px; }
.pricing-summary strong { font-size: 15px; }
.pricing-tier { font-size: 23px; }
.pricing-price span,
.pricing-card > p,
.pricing-card li,
.pricing-footnote,
.pricing-terms { font-size: 12px; }
.pricing-audience {
  display: block;
  min-height: 38px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.pricing-popular,
.feature-locked-card > span { font-size: 9px; }
.feature-locked-card p,
.billing-panel > p,
.billing-history-row { font-size: 13px; }
.time-section-heading > span,
.time-entry-main p { font-size: 12px; }
.time-entry-date strong,
.time-entry-main h3 { font-size: 14px; }
.time-entry-date span,
.time-person,
.time-entry-main blockquote,
.time-review-note,
.danlon-exported,
.danlon-mapping-missing { font-size: 11px; }
.time-status { font-size: 10px; }
.auth-form > p:not(.section-label) { font-size: 14px; line-height: 1.6; }
.auth-form label { font-size: 12px; }
.auth-form label small,
.auth-switch,
.terms-check { font-size: 12px; }
.auth-legal { font-size: 11px; }
.form-error { font-size: 13px; }
.legal-topbar > a:last-child,
.legal-toc a,
.legal-price-table th,
.legal-price-table td { font-size: 12px; }
.legal-meta span { font-size: 11px; }
.legal-meta strong { font-size: 13px; }
.legal-section p,
.legal-section li { font-size: 14px; }
.sa-nav a,
.sa-header > div > span,
.sa-panel-head p,
.sa-mail-test-form label,
.sa-company-row,
.sa-footer { font-size: 12px; }
.sa-mail-test-form small,
.sa-company-row small,
.sa-company-row time { font-size: 10px; }

.understory-attendance {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e5f1ed;
  color: #2f6f5c;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.understory-attendance.compact {
  display: inline;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 800;
}

.publish-schedule-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid #c5d7d0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.publish-schedule-button span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf2f0;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.publish-schedule-button.has-drafts {
  border-color: #e7ca63;
  box-shadow: 0 7px 18px rgba(128, 94, 14, .1);
}

.publish-schedule-button.has-drafts span {
  background: #fff0b5;
  color: #755813;
}

.publish-schedule-button:hover {
  transform: translateY(-1px);
  border-color: #96b4a9;
}

.schedule-publication-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: -6px 0 17px;
  color: var(--muted);
  font-size: 11px;
}

.schedule-publication-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.schedule-publication-summary strong {
  color: var(--ink);
}

.publication-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ab59f;
}

.publication-dot.draft {
  background: #e3b83f;
}

.shift-card.is-draft,
.calendar-shift.is-draft,
.calendar-shift-timed.is-draft {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.24) 0 7px, rgba(230,185,65,.08) 7px 14px);
  border-style: dashed;
}

.shift-card.is-draft {
  border-color: #dcc875;
}

.draft-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff0b5;
  color: #765a13;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.calendar-shift-time .draft-tag,
.calendar-shift-timed > span .draft-tag {
  float: right;
  margin: 0 0 0 5px;
  padding: 2px 4px;
  font-size: 7px;
}

.publish-schedule-modal {
  width: min(720px, calc(100vw - 28px));
}

.publish-period-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f1f5f3;
}

.publish-period-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.publish-period-switch button.selected {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(16, 45, 37, .08);
}

.publication-preview {
  min-height: 104px;
  padding: 17px;
  border: 1px solid #d8e5e0;
  border-radius: 14px;
  background: #f8fbfa;
}

.publication-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.publication-preview-grid article {
  display: grid;
  gap: 3px;
  padding: 13px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 45, 37, .05);
}

.publication-preview-grid article.warning {
  background: #fff5d5;
}

.publication-preview-grid strong {
  color: var(--ink);
  font: 500 24px/1 Georgia, serif;
}

.publication-preview-grid span,
.publication-empty span,
.publication-warning span {
  color: var(--muted);
  font-size: 10px;
}

.publication-empty,
.publication-warning {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.publication-warning {
  margin-top: 10px;
  border-left: 4px solid #e3b83f;
  border-radius: 8px;
  background: #fff7da;
}

.publish-unfilled-confirm {
  display: flex !important;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid #ead27c;
  border-radius: 12px;
  background: #fff8dc;
}

.publish-unfilled-confirm[hidden] {
  display: none !important;
}

.publish-unfilled-confirm input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.publish-unfilled-confirm span {
  display: grid;
  gap: 3px;
}

@media (max-width: 650px) {
  .publication-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publish-schedule-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 850px) {
  .main-nav .nav-item { font-size: 17px; }
  .main-nav .nav-item span { font-size: 10px; }
}

.unfilled-worklist-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #efb8ad;
  border-radius: 14px;
  background: #fff0ec;
}

.unfilled-worklist-notice[hidden] {
  display: none;
}

.unfilled-worklist-notice > div,
.unfilled-worklist-notice > div > span:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.unfilled-worklist-notice > div > span:last-child {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.unfilled-worklist-notice small {
  color: var(--muted);
  font-size: 10px;
}

.unfilled-worklist-icon {
  width: 32px;
  height: 32px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
}

.shift-list.is-unfilled-worklist .shift-card {
  grid-template-columns: 92px 5px 1fr 285px 112px;
}

.unfilled-worklist-action {
  width: auto;
  padding: 0 16px;
  border-left: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
}

.attention-button[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--ink), 0 8px 22px rgba(16, 45, 37, .14);
}

@media (max-width: 850px) {
  .shift-list.is-unfilled-worklist .shift-card {
    grid-template-columns: 72px 5px 1fr 96px;
  }

  .shift-list.is-unfilled-worklist .staffing {
    grid-column: 3;
  }

  .shift-list.is-unfilled-worklist .unfilled-worklist-action {
    grid-column: 4;
    grid-row: 1 / 3;
  }
}

@media (max-width: 600px) {
  .unfilled-worklist-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .unfilled-worklist-notice > button {
    width: 100%;
  }

  .shift-list.is-unfilled-worklist .shift-card {
    grid-template-columns: 65px 4px 1fr 82px;
  }

  .unfilled-worklist-action {
    padding: 0 9px;
    font-size: 10px;
  }
}
