/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or
    ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *,
    :before,
    :after,
    ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
.order-template-management{margin-bottom:18px}.rollout-week{display:grid;gap:5px;min-width:190px}.rollout-week span{font-size:12px;font-weight:800;color:#64748b}.rollout-week input{border:1px solid #cbd5e1;border-radius:9px;padding:9px 11px;background:#fff;color:#0f172a}.order-template-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;padding:0 18px 18px}.order-template-card{display:grid;gap:14px;padding:16px;border:1px solid #dbe4ee;border-radius:13px;background:linear-gradient(180deg,#fff,#f8fafc)}.order-template-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.order-template-card-head strong{display:block;color:#10243e;font-size:15px}.order-template-card-head small{display:block;margin-top:4px;color:#64748b}.template-delete{border:0;background:transparent;color:#b42318;font-weight:800;cursor:pointer}.template-weekdays{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.template-weekdays>span{width:100%;font-size:12px;font-weight:800;color:#64748b}.template-weekdays label{display:inline-flex;align-items:center;justify-content:center;min-width:38px;padding:7px 8px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#475569;font-size:12px;font-weight:800;cursor:pointer}.template-weekdays label.active{border-color:#2478da;background:#eaf3ff;color:#1559a6}.template-weekdays input{position:absolute;opacity:0;pointer-events:none}.rollout-button{justify-self:start}.template-empty{margin:0 18px 18px;padding:18px;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b;background:#f8fafc}.order-actions{min-width:310px;white-space:nowrap}.order-actions .btn{display:inline-flex;padding:7px 9px;font-size:11px;white-space:nowrap}.order-actions .btn+.btn{margin-left:7px}.btn.danger{background:#fff1f2;border:1px solid #fecdd3;color:#b42318}.btn.danger:hover{background:#ffe4e6}.content:has(>.order-template-management){display:flex;flex-direction:column}.content:has(>.order-template-management)>.toolbar{order:1}.content:has(>.order-template-management)>.order-notice{order:2}.content:has(>.order-template-management)>.kpis{order:3}.content:has(>.order-template-management)>.order-list-management{order:4;margin-bottom:18px}.content:has(>.order-template-management)>.order-template-management{order:5}.content:has(>.order-template-management)>.overlay{order:6}@media(max-width:900px){.order-template-list{grid-template-columns:1fr}.order-actions{min-width:250px;white-space:normal}.order-actions .btn{margin:3px 0}.order-actions .btn+.btn{margin-left:4px}}
@layer theme {
  :root,
  :host {
    --font-sans:
      ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono:
      ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --default-transition-duration: 0.15s;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *,
  :after,
  :before,
  ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }
  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }
  html,
  :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(
      --default-font-family,
      ui-sans-serif,
      system-ui,
      sans-serif,
      "Apple Color Emoji",
      "Segoe UI Emoji",
      "Segoe UI Symbol",
      "Noto Color Emoji"
    );
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b,
  strong {
    font-weight: bolder;
  }
  code,
  kbd,
  samp,
  pre {
    font-family: var(
      --default-mono-font-family,
      ui-monospace,
      SFMono-Regular,
      Menlo,
      Monaco,
      Consolas,
      "Liberation Mono",
      "Courier New",
      monospace
    );
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(
      --default-mono-font-variation-settings,
      normal
    );
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub,
  sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol,
  ul,
  menu {
    list-style: none;
  }
  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    vertical-align: middle;
    display: block;
  }
  img,
  video {
    max-width: 100%;
    height: auto;
  }
  button,
  input,
  select,
  optgroup,
  textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }
  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not ((-webkit-appearance: -apple-pay-button))) or
    (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }
    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button,
  input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }
  ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button {
    height: auto;
  }
  ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer components;
@layer utilities {
  .visible {
    visibility: visible;
  }
  .relative {
    position: relative;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .table {
    display: table;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,)
      var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .resize {
    resize: both;
  }
  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,)
      var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,)
      var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property:
      color,
      background-color,
      border-color,
      outline-color,
      text-decoration-color,
      fill,
      stroke,
      --tw-gradient-from,
      --tw-gradient-via,
      --tw-gradient-to,
      opacity,
      box-shadow,
      transform,
      translate,
      scale,
      rotate,
      filter,
      -webkit-backdrop-filter,
      backdrop-filter,
      display,
      content-visibility,
      overlay,
      pointer-events;
    transition-timing-function: var(
      --tw-ease,
      var(--default-transition-timing-function)
    );
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}
:root {
  --navy: #0d1b2a;
  --navy2: #13263b;
  --blue: #2463eb;
  --blue2: #eaf1ff;
  --text: #172033;
  --muted: #687387;
  --line: #e3e8ef;
  --bg: #f5f7fa;
  --white: #fff;
  --green: #15805f;
  --amber: #c57912;
  --red: #d33d4f;
  --shadow: 0 1px 2px #15223b0d, 0 8px 24px #15223b0a;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  font-size: 14px;
}
.app-shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  background: var(--navy);
  color: #d6deea;
  z-index: 30;
  flex-direction: column;
  width: 244px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  border-bottom: 1px solid #ffffff12;
  align-items: center;
  gap: 12px;
  height: 76px;
  padding: 0 23px;
  display: flex;
}
.brand > span {
  background: #2869ef;
  border-radius: 11px;
  place-items: center;
  width: 38px;
  height: 38px;
  display: grid;
  box-shadow: 0 8px 22px #2463eb50;
}
.brand svg {
  color: #fff;
  width: 22px;
}
.brand div {
  flex-direction: column;
  display: flex;
}
.brand b {
  color: #fff;
  letter-spacing: -0.4px;
  font-size: 20px;
  line-height: 20px;
}
.brand small {
  text-transform: uppercase;
  letter-spacing: 1.9px;
  color: #8293a9;
  margin-top: 3px;
  font-size: 11px;
}
.sidebar nav {
  flex: 1;
  padding: 16px 12px;
  overflow: auto;
}
.navgroup {
  margin-bottom: 18px;
}
.navgroup p {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #687b92;
  margin: 8px 0;
  padding: 0 12px;
  font-size: 10px;
}
.navgroup button,
.sidefooter > button {
  color: #9fb0c4;
  cursor: pointer;
  width: 100%;
  font: inherit;
  text-align: left;
  background: 0 0;
  border: 0;
  border-radius: 8px;
  align-items: center;
  gap: 11px;
  margin: 2px 0;
  padding: 10px 11px;
  display: flex;
}
.navgroup button:hover,
.navgroup button.active {
  color: #fff;
  background: #ffffff0d;
}
.navgroup button.active {
  background: #2563eb;
  border-left: 3px solid #76a3ff;
  padding-left: 8px;
  box-shadow: 0 5px 15px #0002;
}
.navgroup button span {
  flex: 1;
}
.navgroup button em {
  color: #fff;
  text-align: center;
  background: #dc3545;
  border-radius: 20px;
  min-width: 19px;
  padding: 2px 5px;
  font-size: 10px;
  font-style: normal;
}
.sidefooter {
  border-top: 1px solid #ffffff12;
  padding: 10px 12px 16px;
}
.sidefooter > div {
  align-items: center;
  gap: 10px;
  padding: 12px;
  display: flex;
}
.live-dot {
  background: #38d99c;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 5px #38d99c17;
}
.sidefooter p {
  flex-direction: column;
  margin: 0;
  display: flex;
}
.sidefooter b {
  color: #d6deea;
  font-size: 11px;
}
.sidefooter small {
  color: #70849a;
  margin-top: 2px;
  font-size: 10px;
}
.main {
  flex: 1;
  min-width: 0;
  margin-left: 244px;
}
.topbar {
  border-bottom: 1px solid var(--line);
  z-index: 20;
  background: #fff;
  justify-content: space-between;
  align-items: center;
  height: 76px;
  padding: 0 26px;
  display: flex;
  position: sticky;
  top: 0;
}
.titlewrap {
  align-items: center;
  gap: 12px;
  display: flex;
}
.titlewrap span {
  color: #8a94a5;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-size: 10px;
}
.titlewrap h1 {
  letter-spacing: -0.35px;
  margin: 2px 0 0;
  font-size: 20px;
}
.topactions {
  align-items: center;
  gap: 10px;
  display: flex;
}
.global-search,
.mini-search {
  border: 1px solid var(--line);
  color: #8a94a5;
  background: #f5f7fa;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  display: flex;
}
.global-search {
  width: 310px;
  height: 38px;
}
.global-search input,
.mini-search input,
.docs-nav input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: 0 0;
  border: 0;
  outline: 0;
}
.iconbtn {
  border: 1px solid var(--line);
  color: #566277;
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  place-items: center;
  width: 38px;
  height: 38px;
  display: grid;
}
.has-dot {
  position: relative;
}
.has-dot:after {
  content: "";
  background: #e24353;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  position: absolute;
  top: 7px;
  right: 7px;
}
.userchip {
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 9px;
  display: flex;
}
.userchip > span {
  color: #245bd3;
  background: #e9f0ff;
  border-radius: 9px;
  place-items: center;
  width: 36px;
  height: 36px;
  font-weight: 700;
  display: grid;
}
.userchip div {
  flex-direction: column;
  display: flex;
}
.userchip b {
  font-size: 12px;
}
.userchip small {
  color: #8b95a4;
  margin-top: 2px;
  font-size: 10px;
}
.content {
  max-width: 1800px;
  margin: auto;
  padding: 22px 26px 40px;
}
.toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  display: flex;
}
.datecontrol {
  align-items: center;
  gap: 10px;
  display: flex;
}
.datecontrol > div {
  flex-direction: column;
  min-width: 220px;
  display: flex;
}
.datecontrol b {
  font-size: 15px;
}
.datecontrol small,
.viewsub {
  color: var(--muted);
  margin-top: 2px;
  font-size: 11px;
}
.actions {
  gap: 8px;
  display: flex;
}
.btn {
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
}
.btn.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 12px #2463eb30;
}
.btn.secondary {
  color: #485469;
  background: #fff;
}
.kpis {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
  display: grid;
}
.kpis article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  border-radius: 11px;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 15px;
  display: flex;
}
.kpis article.attention {
  border-color: #f2cdd1;
}
.kpiicon {
  border-radius: 10px;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
}
.kpiicon svg {
  width: 20px;
}
.kpiicon.blue {
  color: #2863df;
  background: #e9f1ff;
}
.kpiicon.green {
  color: #168463;
  background: #e5f6f0;
}
.kpiicon.amber {
  color: #c37d12;
  background: #fff3dc;
}
.kpiicon.red {
  color: #d83b50;
  background: #fdebed;
}
.kpis article > div {
  flex-direction: column;
  display: flex;
}
.kpis small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 10px;
}
.kpis strong {
  letter-spacing: -0.5px;
  font-size: 23px;
  line-height: 27px;
}
.kpis em {
  color: #7d8798;
  font-size: 10px;
  font-style: normal;
}
.operations-grid {
  grid-template-columns: minmax(680px, 1fr) 350px;
  gap: 16px;
  display: grid;
}
.panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  border-radius: 11px;
  overflow: hidden;
}
.panelhead {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  padding: 15px 17px;
  display: flex;
}
.panelhead h2 {
  margin: 0;
  font-size: 14px;
}
.panelhead p {
  color: var(--muted);
  margin: 3px 0 0;
  font-size: 11px;
}
.filtertabs {
  background: #f2f4f7;
  border-radius: 7px;
  padding: 3px;
  display: flex;
}
.filtertabs button {
  color: #667286;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 10px;
}
.filtertabs button.active {
  color: #1e4fb2;
  background: #fff;
  box-shadow: 0 1px 3px #1a28401f;
}
.tablewrap {
  overflow: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 860px;
}
.data-table th {
  text-align: left;
  color: #798395;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: #f9fafb;
  padding: 10px 12px;
  font-size: 9px;
}
.data-table td {
  vertical-align: middle;
  white-space: nowrap;
  border-bottom: 1px solid #edf0f4;
  padding: 11px 12px;
}
.data-table tbody tr {
  cursor: pointer;
}
.data-table tbody tr:hover {
  background: #f8faff;
}
.data-table td b {
  font-size: 11px;
  display: block;
}
.data-table td small {
  color: #8993a3;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  font-size: 9px;
  display: flex;
}
.badge {
  white-space: nowrap;
  color: #637085;
  background: #edf0f4;
  border-radius: 20px;
  align-items: center;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 750;
  display: inline-flex;
}
.badge.blue {
  color: #245bd0;
  background: #e7efff;
}
.badge.green {
  color: #117556;
  background: #e1f4ed;
}
.badge.amber {
  color: #a96910;
  background: #fff0d4;
}
.badge.red {
  color: #c72f42;
  background: #fde7e9;
}
.badge.purple {
  color: #7242c3;
  background: #f0e9ff;
}
.badge.slate {
  color: #637085;
  background: #edf0f4;
}
.side-stack {
  flex-direction: column;
  gap: 16px;
  display: flex;
}
.alertitem {
  border-bottom: 1px solid #edf0f4;
  grid-template-columns: 31px 1fr auto;
  align-items: start;
  gap: 9px;
  padding: 13px 15px;
  display: grid;
}
.alertitem > svg {
  color: #bd7613;
  width: 17px;
}
.alertitem.critical {
  background: #fff9f9;
}
.alertitem.critical > svg {
  color: #d43749;
}
.alertitem b {
  font-size: 11px;
}
.alertitem p {
  color: var(--muted);
  margin: 3px 0;
  font-size: 9px;
}
.alertitem small {
  color: #c33646;
  font-size: 9px;
}
.alertitem button {
  color: #245fd7;
  cursor: pointer;
  background: 0 0;
  border: 0;
  font-size: 9px;
  font-weight: 700;
}
.timeitem {
  grid-template-columns: 10px 38px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  display: grid;
}
.timeitem > span {
  background: #b9c3d0;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  position: relative;
}
.timeitem > span:after {
  content: "";
  background: #e2e7ed;
  width: 1px;
  height: 29px;
  position: absolute;
  top: 7px;
  left: 3px;
}
.timeitem:last-child > span:after {
  display: none;
}
.timeitem > span.now {
  background: #2463eb;
  box-shadow: 0 0 0 4px #2463eb18;
}
.timeitem > b {
  font-size: 10px;
}
.timeitem div {
  flex-direction: column;
  display: flex;
}
.timeitem strong {
  font-size: 10px;
}
.timeitem small {
  color: var(--muted);
  font-size: 9px;
}
.planner-legend {
  color: #657084;
  align-items: center;
  gap: 19px;
  margin: 0 0 11px 3px;
  font-size: 10px;
  display: flex;
}
.planner-legend span {
  align-items: center;
  gap: 5px;
  display: flex;
}
.planner-legend i {
  border-radius: 3px;
  width: 10px;
  height: 10px;
}
.planner-legend .hint {
  margin-left: auto;
}
.planner {
  border-radius: 9px;
}
.staff-grid {
  grid-template-columns: 210px repeat(14, minmax(92px, 1fr));
  min-width: 1500px;
  display: grid;
}
.corner,
.dayhead {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f9fafc;
  flex-direction: column;
  justify-content: center;
  height: 63px;
  padding: 9px;
  display: flex;
}
.corner {
  z-index: 5;
  position: sticky;
  left: 0;
}
.corner small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 9px;
}
.dayhead {
  text-align: center;
  align-items: center;
}
.dayhead small {
  color: #8d97a5;
  height: 13px;
  font-size: 8px;
}
.dayhead b {
  font-size: 10px;
}
.dayhead span {
  color: #6d7788;
  font-size: 9px;
}
.dayhead.today {
  background: #eaf1ff;
  border-top: 3px solid #2463eb;
}
.dayhead.weekend,
.shiftcell.weekend {
  background: #faf7f1;
}
.contents {
  display: contents;
}
.personcell {
  z-index: 4;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  background: #fff;
  align-items: center;
  gap: 9px;
  height: 73px;
  padding: 9px;
  display: flex;
  position: sticky;
  left: 0;
}
.personcell:hover {
  background: #f7f9fc;
}
.personcell > span {
  color: #446187;
  background: #edf2fb;
  border-radius: 8px;
  place-items: center;
  width: 31px;
  height: 31px;
  font-size: 9px;
  font-weight: 700;
  display: grid;
}
.personcell div {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}
.personcell b {
  font-size: 10px;
}
.personcell small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 8px;
}
.shiftcell {
  border-right: 1px solid #edf0f3;
  border-bottom: 1px solid var(--line);
  height: 73px;
  padding: 5px;
  position: relative;
}
.shift {
  cursor: grab;
  text-align: center;
  color: #294154;
  border: 0;
  border-radius: 6px;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  width: 100%;
  height: 100%;
  padding: 5px;
  font-size: 8px;
  font-weight: 650;
  line-height: 12px;
  display: flex;
  position: relative;
  box-shadow: 0 1px 2px #1c273414;
}
.shift strong {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 8px;
  line-height: 10px;
  display: block;
  overflow: hidden;
}
.shift > span:not(.resize) {
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0.78;
  font-size: 7px;
  font-weight: 600;
  line-height: 9px;
  display: block;
  overflow: hidden;
}
.shift small {
  opacity: 0.7;
  font-size: 7px;
  font-weight: 400;
  display: block;
}
.shift.rest-conflict {
  border: 2px solid #d9384b;
  border-left-width: 4px;
  box-shadow: 0 0 0 2px #d9384b1e;
}
.shift-warning-icon {
  color: #b71f33;
  stroke-width: 2.7px;
  position: absolute;
  top: 3px;
  right: 3px;
}
.planner-warning {
  color: #a52134;
  background: #fff3f4;
  border: 1px solid #f0a6ae;
  border-left: 4px solid #d9384b;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin-bottom: 10px;
  padding: 10px 13px;
  display: flex;
}
.planner-warning > div {
  flex-direction: column;
  gap: 2px;
  display: flex;
}
.planner-warning b {
  font-size: 11px;
}
.planner-warning span {
  color: #7e3440;
  font-size: 9px;
}
.transition-warning {
  color: #945507;
  background: #fff8ed;
  border-color: #efc07b #efc07b #efc07b #c57912;
}
.transition-warning span {
  color: #765323;
}
.editor-transition-warning {
  color: #945507;
  background: #fff8ed;
  border: 1px solid #efc07b;
  border-left: 4px solid #c57912;
  border-radius: 8px;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  display: flex;
}
.editor-transition-warning > div {
  flex-direction: column;
  gap: 2px;
  display: flex;
}
.editor-transition-warning b {
  font-size: 11px;
}
.editor-transition-warning span {
  color: #765323;
  font-size: 9px;
}
.shift.green {
  background: #dceec9;
  border-left: 3px solid #6fa641;
}
.shift.blue {
  background: #cfdff6;
  border-left: 3px solid #507dbb;
}
.shift.rose {
  background: #efd1d1;
  border-left: 3px solid #bb6464;
}
.shift.rest {
  background: #fff7a9;
  border-left: 3px solid #d4c317;
}
.shift.vacation {
  background: #ffc4c4;
  border-left: 3px solid #e34c4c;
}
.shift.neutral {
  background: #e6e8eb;
  border-left: 3px solid #a2a8af;
}
.shift.purple {
  background: #e6daf6;
  border-left: 3px solid #815cb4;
}
.loco-planner {
  min-width: 1000px;
  overflow: auto;
}
.loco-axis {
  grid-template-columns: 230px 1fr;
  min-width: 1000px;
  display: grid;
}
.loco-corner {
  border-right: 1px solid var(--line);
  background: #f9fafc;
  flex-direction: column;
  grid-row: 1/3;
  justify-content: center;
  padding: 15px;
  display: flex;
}
.loco-corner small {
  color: var(--muted);
  font-size: 9px;
}
.axis-days {
  grid-template-columns: repeat(5, 1fr);
  height: 34px;
  display: grid;
}
.axis-days b {
  color: #fff;
  background: #15345d;
  border-right: 1px solid #ffffff3a;
  place-items: center;
  font-size: 9px;
  display: grid;
}
.axis-hours {
  grid-template-columns: repeat(20, 1fr);
  height: 25px;
  display: grid;
}
.axis-hours span {
  text-align: center;
  color: #fff;
  background: #2463eb;
  border-right: 1px solid #ffffff42;
  padding-top: 6px;
  font-size: 8px;
}
.loco-row {
  grid-template-columns: 230px minmax(770px, 1fr);
  min-width: 1000px;
  height: 114px;
  display: grid;
}
.loco-parking-head {
  border-top: 2px solid #d5dde9;
  border-bottom: 1px solid var(--line);
  background: #f4f7fb;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 11px 16px;
  display: flex;
  position: sticky;
  left: 0;
}
.loco-parking-head > div {
  flex-direction: column;
  gap: 2px;
  display: flex;
}
.loco-parking-head b {
  font-size: 12px;
}
.loco-parking-head small {
  color: var(--muted);
  font-size: 9px;
}
.loco-row[data-parking-row="true"] {
  height: 96px;
}
.loco-row[data-parking-row="true"] .loco-track {
  background: repeating-linear-gradient(
    -45deg,
    #fbfcfd,
    #fbfcfd 10px,
    #f6f8fb 10px 20px
  );
}
.loco-label.parking-label {
  cursor: default;
  background: #f9fafc;
}
.parking-icon {
  color: #53647b;
  background: #e7edf6;
  border-radius: 7px;
  place-items: center;
  width: 27px;
  height: 27px;
  display: grid;
}
.loco-label {
  border: 0;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  background: #fff;
  gap: 10px;
  padding: 14px;
  display: flex;
}
.loco-label div {
  flex-direction: column;
  display: flex;
}
.loco-label small {
  color: #788497;
  font-size: 8px;
}
.loco-label b {
  margin: 3px 0;
  font-size: 13px;
}
.loco-label em {
  color: #667286;
  font-size: 8px;
  font-style: normal;
}
.statusdot {
  border-radius: 50%;
  width: 8px;
  height: 8px;
  margin-top: 3px;
}
.statusdot.ok {
  background: #19a777;
}
.statusdot.bad {
  background: #dc3d4f;
}
.statusdot.warn {
  background: #de971e;
}
.loco-track {
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  grid-template-columns: repeat(20, 1fr);
  display: grid;
  position: relative;
}
.loco-bar {
  color: #fff;
  cursor: grab;
  border: 0;
  border-radius: 7px;
  flex-direction: column;
  justify-content: center;
  height: 72px;
  padding: 10px;
  display: flex;
  position: absolute;
  top: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px #1f2b3b2b;
}
.loco-bar strong {
  white-space: nowrap;
  font-size: 9px;
}
.loco-bar small {
  opacity: 0.82;
  white-space: nowrap;
  margin-top: 4px;
  font-size: 8px;
}
.loco-bar.dark {
  background: #172335;
}
.loco-bar.blue {
  background: #2256a6;
}
.loco-bar.danger {
  background: #dc3244;
}
.loco-bar.amber {
  background: #d99019;
}
.loco-bar.green {
  background: #247b5d;
}
.loco-bar.rose,
.loco-bar.red {
  background: #b94355;
}
.loco-bar.purple {
  background: #704da0;
}
.loco-bar.neutral {
  background: #58677a;
}
.loco-row[data-parking-row="true"] .loco-bar {
  opacity: 1;
  background-clip: padding-box;
  box-shadow: 0 4px 12px #17233542;
}
.resize {
  background: #ffffff30;
  width: 5px;
  position: absolute;
  top: 0;
  bottom: 0;
}
.resize.left {
  left: 0;
}
.resize.right {
  right: 0;
}
.viewtitle {
  margin: 0;
  font-size: 19px;
}
.kpis.compact {
  grid-template-columns: repeat(3, 1fr);
}
.kpis.compact article {
  min-height: 80px;
}
.list-title {
  align-items: center;
  gap: 11px;
  display: flex;
}
.mini-search {
  width: 230px;
  height: 34px;
}
.roles-layout {
  grid-template-columns: 260px 1fr;
  gap: 16px;
  display: grid;
}
.roles-list > button {
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 15px;
  display: flex;
}
.roles-list > button.active {
  background: #edf3ff;
  border-left: 3px solid #2463eb;
  padding-left: 12px;
}
.roles-list > button > span {
  color: #64738a;
  background: #eef2f7;
  border-radius: 7px;
  place-items: center;
  width: 31px;
  height: 31px;
  display: grid;
}
.roles-list > button.active > span {
  color: #245ed5;
  background: #dce8ff;
}
.roles-list > button div {
  flex-direction: column;
  flex: 1;
  display: flex;
}
.roles-list > button b {
  font-size: 11px;
}
.roles-list > button small {
  color: var(--muted);
  font-size: 8px;
}
.permission-head {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  display: flex;
}
.permission-head > div {
  gap: 13px;
  display: flex;
}
.role-icon {
  color: #2463eb;
  background: #e7efff;
  border-radius: 11px;
  place-items: center;
  width: 48px;
  height: 48px;
  display: grid;
}
.permission-head small {
  color: #8691a2;
  letter-spacing: 1px;
  font-size: 8px;
}
.permission-head h2 {
  margin: 2px 0;
  font-size: 18px;
}
.permission-head p {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
}
.scope {
  border: 1px solid var(--line);
  background: #f7f9fc;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  margin: 14px 18px;
  padding: 12px;
  display: flex;
}
.scope div {
  flex-direction: column;
  display: flex;
}
.scope b {
  font-size: 10px;
}
.scope small {
  color: var(--muted);
  font-size: 8px;
}
.scope button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  gap: 8px;
  padding: 8px 10px;
  font-size: 9px;
  display: flex;
}
.permissions {
  border-collapse: collapse;
  width: calc(100% - 36px);
  margin: 0 18px;
}
.permissions th {
  text-align: left;
  color: #768195;
  text-transform: uppercase;
  background: #f5f7fa;
  padding: 9px;
  font-size: 8px;
}
.permissions th:nth-child(2),
.permissions th:nth-child(3),
.permissions td:nth-child(2),
.permissions td:nth-child(3) {
  text-align: center;
  width: 85px;
}
.permissions td {
  border-bottom: 1px solid #edf0f4;
  padding: 9px;
}
.permissions td b {
  font-size: 10px;
  display: block;
}
.permissions td small {
  color: var(--muted);
  font-size: 8px;
}
.check {
  color: #fff;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccd4df;
  border-radius: 6px;
  place-items: center;
  width: 23px;
  height: 23px;
  display: inline-grid;
}
.check.on {
  background: #2463eb;
  border-color: #2463eb;
}
.permission-note {
  color: #687386;
  font-size: 9px;
}
.auditnote {
  color: #345378;
  background: #eef5ff;
  border-radius: 8px;
  gap: 10px;
  margin: 17px;
  padding: 13px;
  display: flex;
}
.auditnote b {
  font-size: 10px;
}
.auditnote p {
  margin: 2px 0;
  font-size: 8px;
}
.docs-layout {
  grid-template-columns: 260px minmax(0, 860px);
  justify-content: center;
  gap: 16px;
  display: grid;
}
.versionbox {
  flex-direction: column;
  align-items: flex-end;
  display: flex;
}
.versionbox span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 9px;
}
.versionbox b {
  color: #245dd4;
}
.docs-nav {
  height: max-content;
  padding: 10px;
}
.docs-nav label {
  border: 1px solid var(--line);
  color: #8490a0;
  background: #f5f7fa;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  padding: 9px;
  display: flex;
}
.docs-nav button {
  color: #526075;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 6px;
  justify-content: space-between;
  width: 100%;
  padding: 10px;
  font-size: 10px;
  display: flex;
}
.docs-nav button.active {
  color: #235ed6;
  background: #eaf1ff;
  font-weight: 700;
}
.docmeta {
  border-top: 1px solid var(--line);
  color: #5d6b7e;
  gap: 8px;
  margin-top: 10px;
  padding: 14px 8px 5px;
  display: flex;
}
.docmeta div {
  flex-direction: column;
  display: flex;
}
.docmeta b {
  font-size: 9px;
}
.docmeta small {
  color: #8993a2;
  font-size: 8px;
}
.doc-content {
  min-height: 680px;
  padding: 34px 42px;
}
.doc-content h1 {
  letter-spacing: -0.6px;
  margin: 13px 0 10px;
  font-size: 29px;
}
.doc-content .lead {
  color: #586579;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.7;
}
.doc-content h2 {
  margin-top: 28px;
  font-size: 17px;
}
.doc-callout {
  color: #31537c;
  background: #edf4ff;
  border-left: 3px solid #2463eb;
  gap: 12px;
  margin: 22px 0;
  padding: 15px;
  display: flex;
}
.doc-callout svg {
  flex: none;
}
.doc-callout b {
  font-size: 11px;
}
.doc-callout p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.5;
}
.doc-cards {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  display: grid;
}
.doc-cards > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: 25px 1fr;
  align-items: center;
  padding: 14px;
  display: grid;
}
.doc-cards svg {
  color: #2463eb;
  width: 18px;
}
.doc-cards b {
  font-size: 10px;
}
.doc-cards p {
  color: var(--muted);
  grid-column: 2;
  margin: 3px 0;
  font-size: 9px;
}
.doc-table {
  border-collapse: collapse;
  width: 100%;
}
.doc-table th,
.doc-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px;
  font-size: 10px;
}
.doc-table th {
  color: #6d7889;
  width: 160px;
}
.release {
  border-left: 2px solid #dce4ee;
  grid-template-columns: 110px 1fr;
  margin: 28px 0;
  display: grid;
}
.release > span {
  color: var(--muted);
  padding-left: 15px;
  font-size: 9px;
}
.release > div {
  position: relative;
}
.release > div:before {
  content: "";
  background: #2463eb;
  border: 3px solid #fff;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  position: absolute;
  top: 2px;
  left: -116px;
  box-shadow: 0 0 0 1px #2463eb;
}
.release h2 {
  margin: 0 10px 0 0;
  display: inline;
}
.release li,
.doc-content ol,
.doc-content > p {
  color: #596678;
  font-size: 10px;
  line-height: 1.8;
}
.semver {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  display: grid;
}
.semver div {
  border: 1px solid var(--line);
  border-radius: 7px;
  flex-direction: column;
  padding: 12px;
  display: flex;
}
.semver b {
  color: #2463eb;
  font-size: 10px;
}
.semver span {
  color: var(--muted);
  margin-top: 3px;
  font-size: 8px;
}
.security-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  display: grid;
}
.security-row > svg {
  color: #2463eb;
}
.security-row b {
  font-size: 11px;
}
.security-row p {
  color: var(--muted);
  margin: 3px 0;
  font-size: 9px;
}
.overlay {
  z-index: 100;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #101a2980;
  justify-content: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}
.drawer {
  background: #fff;
  flex-direction: column;
  width: 520px;
  height: 100%;
  display: flex;
  box-shadow: -20px 0 50px #0c162331;
}
.drawerhead {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  padding: 22px;
  display: flex;
}
.drawerhead h2 {
  margin: 10px 0 3px;
  font-size: 21px;
}
.drawerhead p {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
}
.drawerbody {
  flex: 1;
  padding: 20px 22px;
  overflow: auto;
}
.object-status {
  background: #f3fbf8;
  border: 1px solid #d7eee5;
  border-radius: 8px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  display: flex;
}
.object-status div {
  flex-direction: column;
  display: flex;
}
.object-status b {
  font-size: 11px;
}
.object-status small {
  color: var(--muted);
  font-size: 8px;
}
.drawerbody h3 {
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #778295;
  margin: 23px 0 10px;
  font-size: 10px;
}
.detailgrid {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  display: grid;
}
.detailgrid label {
  flex-direction: column;
  gap: 4px;
  display: flex;
}
.detailgrid span {
  color: #6f7b8d;
  text-transform: capitalize;
  font-size: 8px;
}
.detailgrid input {
  border: 1px solid var(--line);
  font: inherit;
  border-radius: 7px;
  padding: 9px;
  font-size: 10px;
}
.links {
  gap: 7px;
  display: grid;
}
.links button {
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  display: flex;
}
.links button > svg:first-child {
  color: #2463eb;
  width: 17px;
}
.links button > svg:last-child {
  color: #8993a1;
  width: 15px;
  margin-left: auto;
}
.links div {
  flex-direction: column;
  display: flex;
}
.links b {
  font-size: 10px;
}
.links small {
  color: var(--muted);
  font-size: 8px;
}
.conflict-ok {
  color: #28644f;
  background: #f2faf7;
  border-radius: 8px;
  gap: 10px;
  margin-top: 17px;
  padding: 13px;
  display: flex;
}
.conflict-ok b {
  font-size: 10px;
}
.conflict-ok p {
  margin: 3px 0;
  font-size: 8px;
}
.drawer footer {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  display: flex;
}
.mobile-menu,
.sidebar-scrim {
  display: none;
}
@media (width<=1200px) {
  .operations-grid {
    grid-template-columns: 1fr;
  }
  .side-stack {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
  .global-search {
    width: 230px;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (width<=800px) {
  .sidebar {
    transition: all 0.2s;
    transform: translate(-100%);
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar-scrim {
    z-index: 25;
    background: #0d172770;
    display: block;
    position: fixed;
    inset: 0;
  }
  .main {
    margin-left: 0;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    padding: 0 14px;
  }
  .topactions .global-search,
  .userchip div,
  .userchip svg {
    display: none;
  }
  .content {
    padding: 15px;
  }
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .actions {
    width: 100%;
    overflow: auto;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .operations-grid {
    display: block;
  }
  .side-stack {
    margin-top: 14px;
    display: flex;
  }
  .planner-tools .actions {
    flex-wrap: wrap;
  }
  .roles-layout,
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .roles-list {
    display: none;
  }
  .permission-head {
    gap: 14px;
  }
  .doc-content {
    padding: 24px 20px;
  }
  .drawer {
    width: 100%;
  }
  .semver,
  .doc-cards {
    grid-template-columns: 1fr;
  }
  .global-search {
    display: none;
  }
  .kpis.compact {
    grid-template-columns: 1fr;
  }
  .versionbox {
    align-items: flex-start;
  }
}
@media (width<=520px) {
  .kpis {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: 68px;
  }
  .titlewrap h1 {
    font-size: 17px;
  }
  .content {
    padding: 12px;
  }
  .panelhead {
    align-items: flex-start;
    gap: 10px;
  }
  .filtertabs {
    display: none;
  }
  .detailgrid {
    grid-template-columns: 1fr;
  }
  .permission-head {
    flex-direction: column;
  }
  .scope {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .permissions th:nth-child(4),
  .permissions td:nth-child(4) {
    display: none;
  }
}
.open-shifts-head {
  border-top: 3px solid #dce3ed;
  border-bottom: 1px solid var(--line);
  z-index: 6;
  background: #f5f7fb;
  grid-column: 1/-1;
  justify-content: space-between;
  align-items: center;
  min-height: 49px;
  padding: 9px 13px;
  display: flex;
  position: sticky;
  left: 0;
}
.open-shifts-head > div {
  flex-direction: column;
  display: flex;
}
.open-shifts-head b {
  color: #25344a;
  font-size: 11px;
}
.open-shifts-head small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 8px;
}
.parking-label {
  cursor: default;
  background: #f8fafc;
  border-left: 3px solid #d9a13b;
  height: 73px;
}
.parking-label:hover {
  background: #f8fafc;
}
.parking-label > span {
  color: #a96a0d;
  background: #fff1d7;
}
.parking-label svg {
  width: 15px;
}
.parking-cell {
  background: #fbfcfe;
  height: 73px;
}
.parking-cell.weekend {
  background: #faf7f1;
}
.parking-cell:empty:after {
  content: "";
  pointer-events: none;
  border: 1px dashed #d8dee8;
  border-radius: 5px;
  position: absolute;
  inset: 8px;
}
.parking-cell:has(.shift) {
  background: #f4f8ff;
}
.parking-row .parking-cell > .shift {
  width: auto;
  height: auto;
  margin: 0;
  position: absolute;
  inset: 5px;
}
.shift:active {
  cursor: grabbing;
}
.shift[draggable="true"] {
  touch-action: none;
}
.date-display {
  cursor: pointer;
  flex-direction: column;
  min-width: 245px;
  display: flex;
  position: relative;
}
.date-display input {
  opacity: 0;
  cursor: pointer;
  width: 100%;
  position: absolute;
  inset: 0;
}
.range-select {
  border: 1px solid var(--line);
  color: #485469;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 650;
  display: flex;
}
.range-select select {
  color: #26364d;
  font: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  outline: 0;
}
.overlay.centered {
  justify-content: center;
  align-items: center;
}
.shift-dialog {
  background: #fff;
  border-radius: 13px;
  width: min(620px, 100vw - 30px);
  overflow: hidden;
  box-shadow: 0 25px 70px #09142550;
}
.shift-dialog header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 22px;
  display: flex;
}
.shift-dialog h2 {
  margin: 8px 0 0;
  font-size: 20px;
}
.shift-dialog footer {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  display: flex;
}
.order-ref {
  opacity: 0.88;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-top: 1px solid #fff5;
  margin-top: 3px;
  padding-top: 3px;
  font-weight: 700;
  display: block;
  overflow: hidden;
  font-size: 9px !important;
}
.order-notice,
.auto-create-summary {
  color: #8b5b10;
  background: #fff8ea;
  border: 1px solid #f0cf99;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 11px 14px;
  display: flex;
}
.order-notice.success {
  color: #116b50;
  background: #eefaf5;
  border-color: #b9e3d3;
}
.order-dialog,
.customer-message-dialog {
  width: min(860px, 100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.order-dialog header p,
.customer-message-dialog header p {
  color: var(--muted);
  margin: 5px 0 0;
}
.order-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 22px 10px;
  display: grid;
}
.order-form-grid label {
  gap: 6px;
  display: grid;
}
.order-form-grid label span,
.message-recipient > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.order-form-grid input,
.order-form-grid textarea,
.message-recipient input {
  border: 1px solid var(--line);
  width: 100%;
  color: var(--text);
  font: inherit;
  background: #fff;
  border-radius: 8px;
  padding: 10px 11px;
}
.order-note-field {
  grid-column: 1/-1;
}
.order-note-field textarea {
  resize: vertical;
  min-height: 72px;
}
.auto-create-summary {
  background: var(--blue2);
  color: #244a95;
  border-color: #cbdcff;
  justify-content: space-between;
  margin: 12px 22px 18px;
}
.auto-create-summary span {
  align-items: center;
  gap: 6px;
  display: flex;
}
.inline-time-cell {
  min-width: 132px;
  padding: 4px !important;
}
.inline-time-cell input {
  color: #12644d;
  width: 100%;
  min-width: 94px;
  font: inherit;
  background: #f1fbf7;
  border: 1px solid #bdd9ce;
  border-radius: 6px;
  padding: 7px 5px;
  font-weight: 750;
}
.inline-time-cell input:focus,
.order-form-grid input:focus {
  border-color: var(--blue);
  outline: 2px solid #2463eb33;
}
.message-reopen-btn {
  width: 100%;
  color: #1d4f91;
  cursor: pointer;
  background: #eaf2ff;
  border: 1px solid #bfd3f5;
  border-radius: 6px;
  margin-top: 4px;
  padding: 4px 5px;
  font-size: 9px;
  font-weight: 800;
}
.message-reopen-btn.arrival {
  color: #116b50;
  background: #eaf9f4;
  border-color: #b9e3d3;
}
.message-reopen-btn:hover {
  filter: brightness(0.97);
}
.customer-message-dialog {
  width: min(760px, 100vw - 32px);
}
.customer-message-body {
  gap: 16px;
  padding: 20px 22px;
  display: grid;
}
.train-message-summary {
  background: #f6f9ff;
  border: 1px solid #cfdbef;
  border-radius: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
  overflow: hidden;
}
.train-message-summary span {
  border-right: 1px solid #dce5f4;
  gap: 3px;
  padding: 12px;
  display: grid;
}
.train-message-summary small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 750;
}
.customer-message-copy {
  --message-accent: #2463eb;
  --message-soft: #eef4ff;
  border: 1px solid #d9e1ec;
  box-shadow: 0 18px 45px #23395d1a;
  color: #26344c;
  background: #fff;
  border-radius: 14px;
  padding: 0;
  line-height: 1.55;
  overflow: hidden;
}
.customer-message-copy.arrival {
  --message-accent: #15936c;
  --message-soft: #eaf9f4;
}
.message-brand {
  min-height: 72px;
  background: #17243a;
  color: #fff;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  display: flex;
}
.message-brand-mark {
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--message-accent);
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  display: flex;
}
.message-brand > div {
  flex: 1;
  gap: 1px;
  display: grid;
}
.message-brand small,
.message-route-card small,
.message-meta small {
  letter-spacing: 0.9px;
  opacity: 0.7;
  font-size: 9px;
  font-weight: 800;
}
.message-status-chip {
  color: #fff;
  background: var(--message-accent);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 800;
}
.message-hero {
  text-align: center;
  background: linear-gradient(135deg, var(--message-soft), #fff);
  border-bottom: 1px solid #e4e9f1;
  gap: 2px;
  padding: 25px 18px 22px;
  display: grid;
}
.message-hero small {
  color: var(--message-accent);
  letter-spacing: 1.3px;
  font-size: 10px;
  font-weight: 850;
}
.message-hero strong {
  color: #17243a;
  font-size: 35px;
  line-height: 1.15;
}
.message-hero strong em {
  color: #61708a;
  margin-left: 5px;
  font-size: 13px;
  font-style: normal;
}
.message-hero > span {
  color: #69768b;
  font-size: 11px;
}
.message-route-card {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  align-items: center;
  gap: 14px;
  margin: 18px 22px 0;
  padding: 13px 15px;
  display: flex;
}
.message-route-card span {
  min-width: 75px;
  gap: 1px;
  display: grid;
}
.message-route-card .message-route {
  flex: 1;
}
.message-route-card i {
  width: 34px;
  height: 2px;
  background: var(--message-accent);
  position: relative;
}
.message-route-card i:after {
  content: "";
  border: 4px solid transparent;
  border-left-color: var(--message-accent);
  position: absolute;
  top: -3px;
  right: -6px;
}
.message-route-card small,
.message-meta small {
  color: #738198;
  opacity: 1;
}
.message-copy-text {
  padding: 16px 22px 4px;
}
.message-copy-text h3 {
  margin: 0 0 5px;
}
.message-copy-text p {
  margin: 0;
}
.message-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 22px;
  display: grid;
}
.message-meta span {
  background: #f6f8fb;
  border-radius: 8px;
  gap: 2px;
  padding: 10px 12px;
  display: grid;
}
.message-closing {
  border-top: 1px solid #e7ebf1;
  margin: 18px 22px 0 !important;
  padding: 16px 0 20px;
}
.wagon-upload {
  color: #315b9e;
  cursor: pointer;
  background: #f7faff;
  border: 1px dashed #9db6df;
  border-radius: 9px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  display: flex;
}
.wagon-upload div {
  flex: 1;
  gap: 2px;
  display: grid;
}
.wagon-upload input {
  display: none;
}
.wagon-upload > span {
  color: var(--blue);
  font-weight: 750;
}
@media (width<=900px) {
  .order-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auto-create-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (width<=720px) {
  .train-message-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.shift-form {
  gap: 16px;
  padding: 20px 22px;
  display: grid;
}
.shift-form > label,
.form-row label {
  flex-direction: column;
  gap: 6px;
  display: flex;
}
.shift-form label > span,
.color-box legend {
  color: #526075;
  font-size: 10px;
  font-weight: 750;
}
.shift-form input,
.shift-form select {
  border: 1px solid var(--line);
  height: 39px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 11px;
}
.form-row {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}
.color-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0;
  padding: 12px;
}
.color-box legend {
  padding: 0 5px;
}
.color-box > div {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  display: grid;
}
.color-choice {
  border: 1px solid var(--line);
  cursor: pointer;
  color: #455267;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  height: 48px;
  padding: 7px;
  font-size: 10px;
  display: flex;
}
.color-choice i {
  border-radius: 6px;
  width: 24px;
  height: 24px;
}
.color-choice svg {
  color: #2463eb;
  margin-left: auto;
}
.color-choice.selected {
  border-color: #2463eb;
  box-shadow: 0 0 0 2px #2463eb18;
}
.color-choice.green i {
  background: #8fbd68;
}
.color-choice.blue i {
  background: #6f98cd;
}
.color-choice.rose i {
  background: #cf7d7d;
}
.color-choice.purple i {
  background: #9470c4;
}
.color-choice.rest i {
  background: #dfd039;
}
.color-choice.vacation i {
  background: #ee6969;
}
.color-choice.neutral i {
  background: #aab0b7;
}
.shift-preview {
  cursor: default;
  flex-direction: column;
  justify-content: center;
  height: auto;
  min-height: 58px;
  display: flex;
}
.shift-preview > span {
  font-size: 9px;
}
.shift-preview small {
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 2px;
}
.sync-state {
  color: #245bd0;
  background: #e9f1ff;
  border-radius: 20px;
  padding: 4px 8px;
  font-weight: 700;
}
.sync-state.offline {
  color: #c72f42;
  background: #fde7e9;
}
.sync-state.conflict {
  color: #9a5b00;
  background: #fff0d6;
}
@media (width<=620px) {
  .date-display {
    min-width: 205px;
  }
  .color-box > div {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
.loco-planner {
  overscroll-behavior-x: contain;
  min-width: 0;
  overflow: auto;
}
.loco-canvas {
  min-width: max-content;
}
.loco-axis {
  min-width: 0;
}
.loco-corner {
  z-index: 12;
  position: sticky;
  left: 0;
  box-shadow: 4px 0 9px #1c2a3c12;
}
.axis-days {
  z-index: 8;
  position: sticky;
  top: 0;
}
.axis-days b {
  font-size: 10px;
}
.axis-hours {
  height: 30px;
}
.axis-hours span {
  border-right: 1px solid #ffffff28;
  padding-top: 8px;
  font-size: 8px;
}
.axis-hours span:nth-child(6n + 1) {
  background: #1f58bd;
}
.axis-hours span.day-start {
  border-left: 2px solid #fff;
}
.loco-row {
  min-width: 0;
}
.loco-label {
  z-index: 10;
  position: sticky;
  left: 0;
  box-shadow: 4px 0 9px #1c2a3c12;
}
.loco-track {
  background: #fbfcfd;
}
.loco-track > i {
  border-right: 1px solid #e7ebf1;
}
.loco-track > i:nth-child(6n + 1) {
  background: #f5f8fc;
}
.loco-track > i.day-start {
  border-left: 2px solid #98aac1;
}
.loco-bar {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  border: 1px solid #ffffff2b;
}
.loco-bar:active {
  cursor: grabbing;
}
.loco-bar strong,
.loco-bar small {
  pointer-events: none;
}
.resize {
  cursor: ew-resize;
  z-index: 2;
  background: #ffffff18;
  width: 11px;
}
.resize:after {
  content: "";
  border-left: 1px solid #ffffffa8;
  border-right: 1px solid #ffffffa8;
  width: 3px;
  height: 18px;
  position: absolute;
  top: 28px;
}
.resize.left:after {
  left: 4px;
}
.resize.right:after {
  right: 4px;
}
.loco-bar:hover .resize {
  background: #ffffff32;
}
.loco-row.drag-target .loco-track {
  background: #eaf2ff;
  box-shadow: inset 0 0 0 2px #2463eb;
}
.loco-row.drag-target .loco-label {
  background: #edf4ff;
}
.loco-is-dragging,
.loco-is-dragging * {
  cursor: grabbing !important;
}
.loco-notice {
  color: #214f9d;
  background: #eef5ff;
  border: 1px solid #a9c4ef;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 7px 8px 7px 12px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}
.loco-notice.warning {
  color: #985c06;
  background: #fff6e6;
  border-color: #efbf75;
}
.loco-notice span {
  flex: 1;
}
.loco-notice .iconbtn {
  width: 28px;
  height: 28px;
  color: inherit;
}
.daily-kpis {
  margin-bottom: 12px;
}
.daily-switch {
  background: #e9edf3;
  border-radius: 9px;
  margin-bottom: 12px;
  padding: 4px;
  display: inline-flex;
}
.daily-switch button {
  color: #687387;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 7px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 700;
}
.daily-switch button.active {
  color: #245ed5;
  background: #fff;
  box-shadow: 0 2px 7px #1a28401c;
}
.day-sheet {
  margin-bottom: 16px;
}
.day-band {
  color: #fff;
  background: linear-gradient(90deg, #174691, #2766cd);
  justify-content: space-between;
  align-items: center;
  height: 52px;
  padding: 0 16px;
  display: flex;
}
.day-band > div {
  flex-direction: column;
  display: flex;
}
.day-band b {
  text-transform: capitalize;
  font-size: 14px;
}
.day-band small {
  opacity: 0.75;
  margin-top: 3px;
  font-size: 9px;
}
.day-band > span {
  align-items: center;
  gap: 6px;
  font-size: 9px;
  display: flex;
}
.day-band > span i {
  background: #3be09b;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px #3be09b25;
}
.day-table-wrap {
  max-height: 570px;
  overflow: auto;
}
.day-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 2250px;
  font-size: 9px;
}
.day-table th,
.day-table td {
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #dce3ec;
  border-right: 1px solid #dce3ec;
  padding: 8px 7px;
}
.day-table thead {
  z-index: 6;
  position: sticky;
  top: 0;
}
.day-table th {
  color: #42516a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #edf3fa;
  font-size: 8px;
}
.day-table .group-head th {
  color: #173b69;
  background: #dbe8f6;
  border-top: 1px solid #c7d6e8;
  font-size: 9px;
}
.day-table tbody tr {
  cursor: pointer;
}
.day-table tbody tr:hover td {
  background: #f5f9ff;
}
.day-table td:first-child,
.day-table th:first-child {
  z-index: 4;
  background: #fff;
  position: sticky;
  left: 0;
  box-shadow: 3px 0 6px #1d304512;
}
.day-table thead th:first-child {
  z-index: 8;
  background: #dbe8f6;
}
.day-table td:first-child {
  text-align: left;
  min-width: 125px;
}
.day-table td small {
  color: #8490a2;
  margin-top: 2px;
  font-size: 7px;
  display: block;
}
.day-table td a {
  color: #145bd1;
  text-decoration: underline;
}
.day-table td.actual {
  color: #174b9b;
  background: #e5efff;
  font-weight: 800;
}
.day-table td.delay {
  color: #ba6307;
  background: #fff0dc;
  font-weight: 800;
}
.day-table td.guest {
  color: #245fd4;
  font-style: italic;
}
.day-table td.qualification {
  min-width: 42px;
  font-size: 11px;
  font-weight: 900;
}
.day-table td.qualification.yes {
  color: #137557;
  background: #dff5ea;
}
.day-table td.qualification.no {
  color: #9aa4b2;
  background: #f2f4f7;
}
.day-table td.note {
  text-align: left;
  color: #586579;
  min-width: 220px;
}
.day-table td.note-warn {
  text-align: left;
  color: #b25c05;
  background: #fff3cf;
  min-width: 220px;
  font-weight: 750;
}
.day-table tr.critical-row td {
  border-top: 1px solid #f0a7af;
  border-bottom-color: #f0a7af;
}
.staff-day-panel,
.instruction-panel {
  margin-bottom: 16px;
}
.staff-day-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1180px;
}
.staff-day-table th {
  color: #647188;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: #eef4fa;
  padding: 9px 11px;
  font-size: 8px;
}
.staff-day-table td {
  white-space: nowrap;
  border-bottom: 1px solid #edf0f4;
  padding: 10px 11px;
  font-size: 9px;
}
.staff-day-table tbody tr {
  cursor: pointer;
}
.staff-day-table tbody tr:hover {
  background: #f8faff;
}
.staff-day-table td.actual {
  color: #fff;
  text-align: center;
  background: #2456a6;
  font-weight: 800;
}
.staff-day-table td.guest {
  color: #245fd4;
  font-style: italic;
}
.instruction-table {
  min-width: 1320px;
}
.instruction-table .critical-row {
  background: #fff7f7;
}
.hotel-cell {
  color: #44536a;
  background: #eef3f8;
  border: 1px solid #dae3ed;
  border-radius: 5px;
  padding: 4px 7px;
  font-weight: 650;
  display: inline-flex;
}
.employee-subnav {
  border: 1px solid var(--line);
  background: #f4f7fb;
  border-radius: 10px;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 5px;
  display: flex;
}
.employee-subnav button {
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 750;
  transition: all 0.16s;
  display: flex;
}
.employee-subnav button:hover {
  color: var(--text);
  background: #fffa;
}
.employee-subnav button.active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 1px 4px #1f3f6b18;
}
.employee-toolbar .actions {
  flex-wrap: wrap;
}
.sync-pill {
  color: #16775a;
  background: #eef8f4;
  border: 1px solid #d4ebe3;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
}
.sync-pill.saving,
.sync-pill.loading {
  color: #245fd4;
  background: #eef4ff;
  border-color: #d7e4ff;
}
.sync-pill.offline,
.sync-pill.conflict {
  color: #aa6510;
  background: #fff4e8;
  border-color: #f3dec4;
}
.view-switch {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 3px;
  display: inline-flex;
}
.view-switch button {
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}
.view-switch button.active {
  background: var(--blue2);
  color: var(--blue);
}
.employee-filterbar {
  align-items: center;
  gap: 10px;
  min-height: 60px;
  margin-bottom: 16px;
  padding: 11px 14px;
  display: flex;
}
.employee-filterbar select {
  border: 1px solid var(--line);
  min-width: 165px;
  height: 38px;
  color: var(--text);
  font: inherit;
  background: #fff;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 10px;
}
.employee-search {
  width: min(360px, 100%);
  height: 38px;
}
.employee-filterbar > span {
  color: var(--muted);
  margin-left: auto;
  font-size: 10px;
}
.employee-filterbar > span b {
  color: var(--text);
}
.employee-map-layout {
  grid-template-columns: minmax(520px, 1.6fr) minmax(310px, 0.75fr);
  align-items: stretch;
  gap: 16px;
  display: grid;
}
.germany-map-card {
  min-height: 680px;
  overflow: hidden;
}
.map-heading {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  padding: 15px 18px;
  display: flex;
}
.map-heading > div {
  align-items: center;
  gap: 11px;
  display: flex;
}
.map-heading h2 {
  margin: 0;
  font-size: 14px;
}
.map-heading p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 9px;
}
.map-heading .kpiicon {
  width: 38px;
  height: 38px;
}
.map-heading .kpiicon svg {
  width: 18px;
}
.map-heading-actions {
  align-items: center !important;
  gap: 8px !important;
  display: flex !important;
}
.map-reset {
  height: 32px;
  padding: 0 10px;
  font-size: 9px;
}
.clear-selection {
  flex: none;
  width: 31px;
  height: 31px;
}
.map-all-detail {
  min-height: 67px;
}
.germany-map-wrap {
  background: radial-gradient(
    circle at 50% 42%,
    #fff 0,
    #f8fbff 52%,
    #eef3f9 100%
  );
  place-items: center;
  height: 604px;
  display: grid;
  position: relative;
  overflow: hidden;
}
.germany-map-wrap:before {
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(#d9e4f055 1px, #0000 1px),
    linear-gradient(90deg, #d9e4f055 1px, #0000 1px);
  background-size: 46px 46px;
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(#0000, #000 20% 80%, #0000);
  mask-image: linear-gradient(#0000, #000 20% 80%, #0000);
}
.germany-map-wrap svg {
  z-index: 2;
  width: min(420px, 67%);
  height: 555px;
  position: relative;
  overflow: visible;
}
.germany-states path {
  fill: #dfe9f5;
  stroke: #fff;
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
  transition: fill 0.2s;
}
.germany-states path:hover {
  fill: #d2e1f2;
}
.map-region-labels text {
  text-anchor: middle;
  letter-spacing: 1.1px;
  fill: #7690aa;
  opacity: 0.58;
  pointer-events: none;
  font-size: 13px;
  font-weight: 800;
}
.map-place-labels {
  pointer-events: none;
}
.map-place-labels circle {
  fill: #7289a1;
}
.map-place-labels text {
  fill: #536b83;
  paint-order: stroke;
  stroke: #edf3f9;
  stroke-width: 5px;
  stroke-linejoin: round;
  font-size: 14px;
  font-weight: 650;
}
.map-place-labels .major circle {
  fill: #415d79;
}
.map-place-labels .major text {
  fill: #324e6a;
  font-size: 16px;
  font-weight: 800;
}
.employee-marker {
  cursor: pointer;
  outline: none;
}
.employee-marker .marker-halo {
  fill: #2463eb22;
  transition: all 0.18s;
}
.employee-marker .marker-dot {
  fill: #2463eb;
  stroke: #fff;
  stroke-width: 4px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 4px 6px #163c8040);
}
.employee-marker.status-abwesend .marker-halo,
.employee-marker.status-inaktiv .marker-halo {
  fill: #cf7b1e25;
}
.employee-marker.status-abwesend .marker-dot,
.employee-marker.status-inaktiv .marker-dot {
  fill: #cc7a1d;
}
.employee-marker:hover .marker-halo,
.employee-marker.active .marker-halo {
  transform: scale(1.22);
}
.employee-marker text {
  text-anchor: middle;
  fill: #17365f;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 7px;
  stroke-linejoin: round;
  pointer-events: none;
  font-size: 19px;
  font-weight: 900;
}
.map-legend {
  z-index: 3;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fffffff0;
  border-radius: 8px;
  gap: 14px;
  padding: 8px 10px;
  display: flex;
  position: absolute;
  bottom: 15px;
  left: 16px;
}
.map-legend span {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  font-size: 8px;
  display: flex;
}
.map-legend .dot {
  background: #2463eb;
  border-radius: 50%;
  width: 8px;
  height: 8px;
}
.map-legend .dot.absent {
  background: #cc7a1d;
}
.map-person-list {
  flex-direction: column;
  min-height: 680px;
  display: flex;
  overflow: hidden;
}
.map-person-list .panelhead {
  min-height: 76px;
}
.map-person-list .panelhead h2 {
  margin: 0;
  font-size: 13px;
}
.map-person-list .panelhead p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 9px;
}
.map-person-scroll {
  gap: 5px;
  max-height: 516px;
  padding: 8px;
  display: grid;
  overflow: auto;
}
.map-person-scroll > button {
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 1px solid #0000;
  border-radius: 9px;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px;
  display: grid;
}
.map-person-scroll > button:hover {
  background: #f7f9fc;
}
.map-person-scroll > button.active {
  background: #edf4ff;
  border-color: #d6e4ff;
}
.employee-avatar {
  color: #fff;
  background: #163555;
  border-radius: 10px;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 10px;
  font-weight: 800;
  display: grid;
}
.map-person-scroll button > span:nth-child(2) {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}
.map-person-scroll b {
  font-size: 10px;
}
.map-person-scroll small {
  color: var(--muted);
  align-items: center;
  gap: 3px;
  font-size: 8px;
  display: flex;
}
.map-person-scroll em {
  color: #45617e;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 8px;
  font-style: normal;
  overflow: hidden;
}
.map-person-detail {
  border-top: 1px solid var(--line);
  background: #f9fbfd;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 13px;
  display: flex;
}
.map-person-detail > div {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}
.map-person-detail small {
  text-transform: uppercase;
  color: #8b96a7;
  letter-spacing: 0.7px;
  font-size: 7px;
}
.map-person-detail b {
  font-size: 11px;
}
.map-person-detail span {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  overflow: hidden;
}
.modalback {
  z-index: 110;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #101a2980;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}
.modal {
  background: #fff;
  border-radius: 14px;
  width: min(660px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-shadow: 0 28px 80px #0d1b2a45;
}
.modal > header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px 16px;
  display: flex;
}
.modal > header h2 {
  margin: 9px 0 4px;
  font-size: 20px;
}
.modal > header p {
  color: var(--muted);
  margin: 0;
  font-size: 9px;
}
.modal > footer {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  display: flex;
}
.formgrid {
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 20px 22px;
  display: grid;
}
.formgrid label {
  flex-direction: column;
  gap: 6px;
  display: flex;
}
.formgrid label.wide {
  grid-column: 1/-1;
}
.formgrid label > span {
  color: #5c687a;
  font-size: 9px;
  font-weight: 700;
}
.formgrid input,
.formgrid select {
  border: 1px solid var(--line);
  width: 100%;
  height: 40px;
  color: var(--text);
  font: inherit;
  background: #fff;
  border-radius: 8px;
  outline: none;
  padding: 0 10px;
  font-size: 10px;
}
.formgrid input:focus,
.formgrid select:focus {
  border-color: #7fa7f7;
  box-shadow: 0 0 0 3px #2463eb12;
}
.formgrid label > small {
  color: var(--muted);
  font-size: 8px;
}
.formgrid label > small.field-error {
  color: var(--red);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (width<=1100px) {
  .employee-map-layout {
    grid-template-columns: 1fr;
  }
  .map-person-list {
    min-height: 0;
  }
  .map-person-scroll {
    max-height: 320px;
  }
}
@media (width<=800px) {
  .employee-filterbar {
    flex-direction: column;
    align-items: stretch;
  }
  .employee-filterbar select {
    width: 100%;
  }
  .employee-filterbar > span {
    margin-left: 0;
  }
  .germany-map-card {
    min-height: 560px;
  }
  .germany-map-wrap {
    height: 485px;
  }
  .germany-map-wrap svg {
    width: 78%;
    height: 440px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .formgrid label.wide {
    grid-column: auto;
  }
  .daily-switch {
    width: 100%;
    overflow: auto;
  }
  .daily-switch button {
    white-space: nowrap;
    flex: 1;
  }
  .day-band {
    align-items: flex-start;
    gap: 8px;
    height: auto;
    padding: 12px;
  }
  .daily-kpis {
    grid-template-columns: 1fr 1fr;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}

/* RailOps v0.11.0: Auftragsverknuepfung und gespeicherte Planungsvorlagen */
.order-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.order-planning-field {
  grid-column: 1/-1;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px;
}
.order-planning-field h3 {
  margin: 0;
  font-size: 12px;
}
.order-planning-field > p {
  color: var(--muted);
  margin: 3px 0 11px;
  font-size: 9px;
}
.template-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}
.template-choice {
  border: 1px solid var(--line);
  cursor: pointer;
  background: #fff;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 10px;
  display: flex !important;
}
.template-choice.selected {
  border-color: #2463eb;
  background: #edf4ff;
  box-shadow: 0 0 0 2px #2463eb12;
}
.template-choice input {
  accent-color: #2463eb;
  flex: none;
  width: 16px !important;
  height: 16px !important;
}
.template-choice > span {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}
.template-choice b {
  font-size: 10px;
}
.template-choice small {
  color: var(--muted);
  font-size: 8px;
}
.template-choice svg {
  color: #2463eb;
  flex: none;
  margin-left: auto;
}
.planning-mode-switch {
  background: #e9edf3;
  border-radius: 8px;
  width: max-content;
  margin-bottom: 11px;
  padding: 3px;
  display: flex;
}
.planning-mode-switch button {
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 9px;
  font-weight: 700;
}
.planning-mode-switch button.active {
  color: #245ed5;
  background: #fff;
  box-shadow: 0 1px 4px #1d2f481f;
}
.loco-service-select {
  max-width: 520px;
}
.loco-service-select select,
.manual-service-grid input {
  border: 1px solid var(--line);
  width: 100%;
  height: 39px;
  color: var(--text);
  background: #fff;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 10px;
}
.manual-service-grid {
  grid-template-columns: 2fr 2fr 1fr 1fr;
  gap: 10px;
  display: grid;
}
.manual-service-grid label,
.loco-service-select {
  flex-direction: column;
  gap: 5px;
  display: flex;
}
.manual-service-grid label > span,
.loco-service-select > span {
  color: #526075;
  font-size: 9px;
  font-weight: 700;
}
.template-stack {
  gap: 16px;
  display: grid;
}
.template-table {
  min-width: 820px;
}
.template-actions {
  gap: 6px;
  display: flex;
}
.template-actions .btn {
  height: 31px;
  padding: 0 10px;
  font-size: 9px;
}
.danger-button {
  color: #b52f42;
  background: #fff;
  border-color: #efcbd0;
}
.template-tone {
  align-items: center;
  gap: 7px;
  text-transform: capitalize;
  display: flex;
}
.template-tone i {
  background: #7890ac;
  border-radius: 4px;
  width: 13px;
  height: 13px;
}
.template-tone i.green {
  background: #6fa641;
}
.template-tone i.blue {
  background: #507dbb;
}
.template-tone i.rose {
  background: #bb6464;
}
.template-tone i.purple {
  background: #815cb4;
}
.template-tone i.amber {
  background: #c57912;
}
.template-tone i.dark {
  background: #173550;
}
.template-tone i.neutral {
  background: #a2a8af;
}
.template-extra-fields {
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 0 22px 20px;
  display: grid;
}
.template-extra-fields label {
  flex-direction: column;
  gap: 6px;
  display: flex;
}
.template-extra-fields label > span {
  color: #5c687a;
  font-size: 9px;
  font-weight: 700;
}
.template-extra-fields input,
.template-extra-fields select {
  border: 1px solid var(--line);
  width: 100%;
  height: 40px;
  color: var(--text);
  background: #fff;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 10px;
}
@media (width <= 800px) {
  .template-choice-grid {
    grid-template-columns: 1fr;
  }
  .manual-service-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (width <= 520px) {
  .manual-service-grid,
  .template-extra-fields {
    grid-template-columns: 1fr;
  }
}

/* RailOps v0.11.7: ruhige Tagesansicht und Auftragsvorlagen */
.order-template-box {
  grid-column: 1 / -1;
  border: 1px solid #c9d8ee;
  background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 72%);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 5px 16px #1b3f7510;
}
.order-template-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.order-template-heading h3 {
  margin: 8px 0 2px;
  color: #173b69;
  font-size: 14px;
}
.order-template-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.order-template-count {
  flex: none;
  color: #275ba9;
  background: #e7f0ff;
  border: 1px solid #c8daf8;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 800;
}
.order-template-controls {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.order-template-controls label {
  display: grid;
  gap: 5px;
}
.order-template-controls select,
.order-template-controls input {
  width: 100%;
  height: 40px;
  border: 1px solid #cbd6e5;
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  padding: 0 10px;
  font: inherit;
}
.save-order-template {
  height: 40px;
  white-space: nowrap;
}
.order-template-hint {
  display: block;
  margin-top: 9px;
  color: #6c7a8e;
  font-size: 9px;
}

/* Die Tageszeilen bleiben kompakt, bekommen aber wieder klare Spalten. */
.day-table {
  min-width: 2870px;
  font-size: 10px;
}
.day-table th,
.day-table td {
  height: 44px;
  padding: 7px 9px;
  vertical-align: middle;
}
.day-table .group-head th {
  height: 34px;
  background: #d9e7f7;
}
.day-table thead tr:not(.group-head) th {
  height: 38px;
  background: #eff4fa;
}
.day-table tbody tr:nth-child(even) td {
  background-color: #fafcff;
}
.day-table td:first-child,
.day-table th:first-child { min-width: 150px; }
.day-table th:nth-child(2), .day-table td:nth-child(2) { min-width: 150px; }
.day-table th:nth-child(3), .day-table td:nth-child(3) { min-width: 95px; }
.day-table th:nth-child(4), .day-table td:nth-child(4) { min-width: 190px; }
.day-table th:nth-child(5), .day-table td:nth-child(5),
.day-table th:nth-child(6), .day-table td:nth-child(6) { min-width: 125px; }
.day-table th:nth-child(7), .day-table td:nth-child(7) { min-width: 160px; }
.day-table th:nth-child(8), .day-table td:nth-child(8) { min-width: 85px; }
.day-table th:nth-child(9), .day-table td:nth-child(9),
.day-table th:nth-child(10), .day-table td:nth-child(10),
.day-table th:nth-child(11), .day-table td:nth-child(11),
.day-table th:nth-child(12), .day-table td:nth-child(12) { min-width: 150px; }
.day-table th:nth-child(13), .day-table td:nth-child(13) { min-width: 190px; }
.day-table th:nth-child(14), .day-table td:nth-child(14),
.day-table th:nth-child(15), .day-table td:nth-child(15) { min-width: 115px; }
.day-table th:nth-child(16), .day-table td:nth-child(16) { min-width: 125px; }
.day-table th:nth-child(17), .day-table td:nth-child(17),
.day-table th:nth-child(18), .day-table td:nth-child(18) { min-width: 145px; }
.day-table .inline-time-cell {
  min-width: 150px;
  padding: 5px 7px !important;
}
.day-table .inline-time-cell input {
  display: block;
  min-width: 0;
  height: 34px;
  padding: 5px 7px;
}
.day-table .message-reopen-btn {
  min-height: 25px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.day-table tr.critical-row td {
  background-image: linear-gradient(#fff8f8, #fff8f8);
}
.day-table tr.critical-row td.actual {
  background-image: none;
}

@media (width <= 800px) {
  .order-template-controls {
    grid-template-columns: 1fr;
  }
  .save-order-template {
    width: 100%;
  }
}
