:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #26313f;
  background: #f5f6f8;
  font-size: 14px;
  --red: #c92124;
  --muted: #798697;
  --line: #e0e5eb;
  --green: #367551;
  --blue: #3c638b;
  --resource: 254px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.25;
}
button:hover,
.file-button:hover {
  background: #f2f4f7;
  border-color: #bbc4ce;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #8eafd4;
  outline-offset: 2px;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
input,
select,
textarea {
  border: 1px solid #dce1e7;
  background: white;
  border-radius: 6px;
  padding: 10px;
  min-width: 0;
  max-width: 100%;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  flex: none;
}
textarea {
  resize: vertical;
  width: 100%;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.65px;
  margin: 8px 0 0;
}
h2 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 16px;
}
p {
  line-height: 1.6;
}
small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.primary:hover {
  background: #aa1619;
  border-color: #aa1619;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px;
  font-size: 12px;
}
.link {
  color: #355c83;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  font-weight: 600;
  justify-content: flex-start;
}
.link:hover {
  text-decoration: underline;
  background: none;
}
.icon-button {
  padding: 8px;
}
.app {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 16px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 6;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  background: var(--red);
  color: white;
  border-radius: 4px;
  font-size: 27px;
}
.side-title {
  font-weight: 700;
  font-size: 16px;
  margin: 38px 12px 22px;
}
.side-title small {
  display: block;
  margin-top: 7px;
}
.nav {
  width: 100%;
  justify-content: flex-start;
  padding: 16px 12px;
  margin: 2px 0;
  color: #738094;
  font-weight: 500;
  border: 0;
  background: transparent;
}
.nav.selected {
  background: #fbeded;
  color: var(--red);
  font-weight: 700;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 22px 8px 0;
  min-width: 0;
}
.profile > div {
  min-width: 0;
}
.profile strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.profile small {
  display: block;
  margin-top: 7px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-weight: bold;
}
main {
  min-width: 0;
}
header {
  height: 65px;
  padding: 0 30px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #8791a0;
  font-size: 12px;
}
header b {
  font-weight: 500;
  color: #546174;
  margin-left: 16px;
}
header > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.connection {
  background: #f2f4f7;
  color: #778495;
  padding: 8px;
  border-radius: 4px;
  font-size: 11px;
}
.connection.warn {
  color: #98662f;
  background: #fff4df;
}
.content {
  padding: 28px 30px 16px;
  max-width: 2400px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 24px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #939da9;
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.page-heading .actions > button {
  min-height: 42px;
}
.mode-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #8390a0;
  margin: -6px 0 18px;
}
.demo-banner {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid #ead5a9;
  background: #fffbf2;
  color: #916f38;
  border-radius: 7px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 12px;
}
.demo-banner > div {
  flex: 1;
}
.demo-banner button {
  font-size: 11px;
  padding: 7px 10px;
  border-color: #ead5a9;
  color: #916f38;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}
.metrics article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 20px;
  min-height: 130px;
}
.metrics article:first-child {
  border-top: 3px solid var(--red);
  padding-top: 17px;
}
.metrics article > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #748195;
  font-size: 12px;
}
.metrics svg {
  width: 17px;
  color: #a5b0bd;
}
.metrics strong {
  display: block;
  font-size: 28px;
  margin: 12px 0;
  letter-spacing: -0.7px;
}
.metrics small {
  font-size: 11px;
}
.toolbar,
.filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.segmented {
  display: flex;
  background: #e9edf1;
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
}
.segmented button {
  border: 0;
  background: none;
  font-size: 12px;
  padding: 9px 14px;
  font-weight: 500;
  color: #7a8798;
}
.segmented button.active {
  background: white;
  color: #26313f;
  font-weight: 700;
  box-shadow: 0 1px 3px #23334912;
}
.segmented svg {
  width: 17px;
  height: 17px;
}
.date-control {
  display: flex;
  align-items: center;
  gap: 9px;
}
.date-control strong {
  font-size: 13px;
  min-width: 110px;
  text-align: center;
  text-transform: capitalize;
}
.date-control button {
  padding: 7px 10px;
  min-height: 35px;
}
.date-control input {
  font-size: 12px;
  padding: 7px;
  width: 125px;
  min-height: 35px;
}
.push-right {
  margin-left: auto;
}
.filters > select {
  padding: 7px 9px;
  font-size: 12px;
  max-width: 210px;
}
.search {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  width: 300px;
  color: #9aa5b2;
}
.search input {
  border: 0;
  padding: 10px 4px;
  background: transparent;
  flex: 1;
  font-weight: 400;
}
.search svg {
  width: 17px;
}
.board {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
}
.board-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 4;
  background: white;
}
.board-title small {
  margin-left: 7px;
}
.legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #8591a2;
}
.legend > span {
  white-space: nowrap;
}
.legend > span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 5px;
}
.legend .green:before {
  background: #87b99c;
}
.legend .blue:before {
  background: #83a8d6;
}
.legend .gray:before {
  background: #e6eaee;
}
.board-scroll {
  overflow: auto;
  max-height: 68vh;
  position: relative;
  overscroll-behavior: contain;
}
.board-grid {
  display: grid;
  grid-template-columns: var(--resource) minmax(850px, 1fr);
  min-width: 1104px;
  position: relative;
  isolation: isolate;
}
.board-grid.weekly {
  grid-template-columns: var(--resource) minmax(1120px, 1fr);
  min-width: 1374px;
}
.corner {
  grid-column: 1;
  position: sticky;
  left: 0;
  top: 0;
  background: #f7f8fa;
  z-index: 5;
  padding: 13px 16px;
  font-size: 11px;
  color: #8590a0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  height: 42px;
}
.time-head,
.week-head {
  position: sticky;
  top: 0;
  height: 42px;
  border-bottom: 1px solid var(--line);
  background: #f7f8fa;
  z-index: 4;
  overflow: hidden;
}
.tick {
  position: absolute;
  top: 15px;
  transform: translateX(-50%);
  font-size: 11px;
  color: #8390a3;
  white-space: nowrap;
}
.tick:first-child {
  transform: none;
  padding-left: 4px;
}
.tick.last {
  transform: translateX(-100%);
  padding-right: 3px;
}
.resource-label {
  position: sticky;
  left: 0;
  z-index: 3;
  background: white;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  min-height: 122px;
  min-width: 0;
}
.resource-title {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 0;
  margin: 0 0 8px;
  border: none;
  background: none;
  font-size: 13px;
  text-align: left;
  max-width: 100%;
}
.resource-title svg {
  width: 17px;
  color: #8493a6;
}
.resource-title b {
  overflow-wrap: anywhere;
}
.resource-label > small {
  display: block;
  font-size: 11px;
  line-height: 1.4;
}
.plate {
  border: 1px solid #dce2e9;
  border-radius: 4px;
  color: #637287;
  font-size: 10px;
  font-weight: 400;
  padding: 3px 5px;
  white-space: nowrap;
}
.resource-load {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.resource-load i {
  width: 48px;
  height: 4px;
  background: #eef0f4;
  display: block;
  flex: none;
  border-radius: 3px;
  overflow: hidden;
}
.resource-load i span {
  display: block;
  background: #9ab2c8;
  height: 100%;
}
.resource-load small {
  font-size: 10px;
}
.day-lane {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(var(--grid) - 1px),
    #edf0f4 calc(var(--grid) - 1px),
    #edf0f4 var(--grid)
  );
  touch-action: pan-x pan-y;
}
.order-card {
  position: absolute;
  top: 12px;
  height: 96px;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  border-width: 1px 1px 1px 3px;
  border-style: solid;
  border-color: #d7e4f7 #d7e4f7 #d7e4f7 #719cd0;
  background: #edf4ff;
  color: #395e83;
  padding: 10px 11px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3px;
  flex-direction: column;
  text-align: left;
  z-index: 2;
  font-size: 12px;
  font-weight: 400;
  touch-action: none;
  user-select: none;
}
.order-card:hover {
  background: #e2edff;
  border-color: #719cd0;
}
.order-card small {
  font-size: 10px;
  color: inherit;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.4;
}
.order-card b {
  font-size: 12px;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.4;
}
.order-card > span:not(.resize-handle) {
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
  line-height: 1.3;
}
.order-card.compact {
  padding-left: 5px;
  padding-right: 5px;
}
.order-card.compact > span:not(.resize-handle) {
  display: none;
}
.order-card[data-draggable="1"] {
  cursor: grab;
}
.order-card.dragging {
  opacity: 0.8;
  z-index: 8;
  cursor: grabbing;
  box-shadow: 0 4px 12px #32485b33;
}
.order-card .resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  width: 10px;
  height: 100%;
  cursor: ew-resize;
  border-right: 3px solid #719cd044;
}
.order-card .resize-handle:hover {
  background: #719cd040;
}
.order-card.done,
.order-card.working,
.order-card.arrived {
  background: #edf7f0;
  color: #397653;
  border-color: #d7e9dd #d7e9dd #d7e9dd #80b48e;
}
.order-card.draft {
  background: #fff6e8;
  color: #967139;
  border-color: #eadabf #eadabf #eadabf #d5ac66;
}
.road {
  position: absolute;
  top: 20px;
  height: 78px;
  border: 1px dashed #c6d1df;
  border-radius: 4px;
  background: repeating-linear-gradient(-45deg, #fafbfc 0, #fafbfc 4px, white 4px, white 8px);
  z-index: 1;
  pointer-events: none;
}
.gap {
  position: absolute;
  top: 13px;
  height: 94px;
  border: 0;
  border-radius: 6px;
  background: repeating-linear-gradient(-45deg, #f9fbfa 0, #f9fbfa 5px, #fff 5px, #fff 10px);
  padding: 2px;
  color: #95a7a2;
  z-index: 0;
  overflow: hidden;
  font-size: 10px;
  font-weight: 400;
  min-width: 0;
}
.gap span {
  white-space: nowrap;
}
.gap:hover {
  background: #f0f6f2;
  color: #487f63;
}
.gap:disabled {
  opacity: 1;
}
.unavailable {
  background: repeating-linear-gradient(-45deg, #f1f3f6 0, #f1f3f6 5px, #f8f9fb 5px, #f8f9fb 10px);
}
.unavailable-label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: #8d97a5;
  font-size: 12px;
}
.week-head,
.week-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.week-head button {
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  border-right: 1px solid var(--line);
  color: #7b889a;
  white-space: nowrap;
  padding: 7px;
  text-transform: capitalize;
}
.week-head .is-today {
  color: var(--red);
  background: #fff0f0;
}
.week-row {
  border-bottom: 1px solid var(--line);
}
.week-cell {
  min-width: 0;
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  min-height: 122px;
  overflow: hidden;
}
.week-load {
  font-size: 10px;
  color: #8d99a8;
  margin-bottom: 8px;
}
.week-order {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  border: 1px solid #d6e3f4;
  border-left: 3px solid #719cd0;
  background: #edf4ff;
  color: #426689;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.week-order b {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.week-order small {
  color: inherit;
  font-size: 10px;
}
.week-order.done,
.week-order.working,
.week-order.arrived {
  background: #edf7f0;
  color: #397653;
  border-color: #d7e9dd;
  border-left-color: #80b48e;
}
.week-order.draft {
  background: #fff6e8;
  color: #967139;
  border-color: #eadabf;
}
.week-add {
  width: 100%;
  padding: 6px;
  border: 1px dashed #dce2e8;
  background: transparent;
  color: #8a97a7;
  font-size: 10px;
  font-weight: 400;
}
.board-help {
  font-size: 11px;
  color: #8793a2;
  margin: 12px 0 24px;
  line-height: 1.5;
}
.unassigned h2 {
  font-size: 16px;
}
.unassigned h2 span {
  font-size: 12px;
  color: #a18a5b;
  margin-left: 8px;
}
.unassigned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.unassigned-card {
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
  padding: 15px;
  border: 1px dashed #dbc9a9;
  color: #826744;
  background: #fffdf8;
}
.unassigned-card b {
  font-size: 13px;
}
.unassigned-card span {
  font-size: 11px;
  font-weight: 400;
}
.unassigned-card small {
  font-size: 10px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  padding: 14px 16px;
  background: #f8f9fb;
  color: #7a8797;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
td {
  padding: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
  min-width: 100px;
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
td .link {
  font-size: 12px;
}
.badge {
  display: inline-block;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 10px;
  background: #edf3fc;
  color: #567291;
  white-space: nowrap;
}
.badge.done,
.badge.working {
  background: #edf7f0;
  color: #397653;
}
.badge.draft {
  background: #fff5e5;
  color: #967139;
}
.badge.cancelled {
  background: #f0f1f3;
  color: #87909c;
}
.attention {
  color: #a47232;
  font-size: 11px;
}
.stat-bar {
  background: #edf0f4;
  height: 4px;
  width: 90px;
  border-radius: 3px;
  margin-bottom: 6px;
  overflow: hidden;
}
.stat-bar span {
  display: block;
  height: 100%;
  background: #8ba8be;
}
.free-value {
  color: #408465;
}
.notice {
  background: #fffaf0;
  border: 1px solid #eadab7;
  color: #886b3d;
  border-radius: 7px;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.notice button {
  padding: 5px 8px;
  font-size: 11px;
  margin-left: 8px;
}
.empty {
  padding: 40px;
  text-align: center;
  color: #8b97a6;
}
.grid-wide {
  grid-column: 1/-1;
}
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.panel p {
  font-size: 13px;
}
.panel > button {
  margin: 5px 8px 5px 0;
}
.file-button {
  font-size: 13px;
  font-weight: 600;
}
.file-button input {
  display: none;
}
.disabled {
  opacity: 0.4;
  pointer-events: none;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 0;
  color: #a2aab5;
  font-size: 10px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #8793a2;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
}
.login-card {
  width: 100%;
  max-width: 440px;
  padding: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 40px #26313f09;
}
.login-card .brand {
  margin-bottom: 40px;
}
.login-card h1 {
  font-size: 24px;
  margin-top: 12px;
}
.login-card form {
  margin: 26px 0;
}
.login-card label {
  margin-bottom: 18px;
}
.login-card input {
  height: 44px;
}
.login-card button {
  width: 100%;
  height: 44px;
}
.footnote {
  font-size: 11px;
  color: #8a94a2;
  line-height: 1.6;
}
.version {
  font-size: 10px;
  color: #a2aab5;
}
.form-error {
  font-size: 12px;
  color: #b71f22;
  line-height: 1.5;
  white-space: pre-line;
}
.form-error:empty {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 80px #1e293b30;
  padding: 24px;
  width: min(520px, calc(100vw - 24px));
  max-height: 92vh;
  overflow: auto;
  color: #26313f;
  background: #fff;
}
dialog.wide {
  width: min(880px, calc(100vw - 24px));
}
dialog::backdrop {
  background: #1d2a414b;
  backdrop-filter: blur(2px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  margin: 0;
  font-size: 20px;
}
.dialog-head button {
  border: none;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.form-grid.pair {
  margin: 0;
  gap: 12px;
}
.form-grid.four {
  grid-template-columns: repeat(4, 1fr);
}
.form-fields {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin: 10px 0;
}
.check small {
  margin-left: auto;
  font-size: 10px;
}
.crew,
.weekdays {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  margin: 16px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.crew {
  max-height: 180px;
  overflow: auto;
}
.crew legend,
.weekdays legend {
  font-size: 12px;
  color: #798697;
  padding: 0 7px;
}
.crew .check {
  font-size: 12px;
}
.weekdays {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.weekdays .check {
  font-size: 12px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  color: #5f7186;
  margin-bottom: 16px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  flex-wrap: wrap;
}
dialog form > label {
  margin-bottom: 18px;
}
.dispatch-text {
  font-size: 12px;
  line-height: 1.65;
  background: #f9fafb;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #26394c;
  color: #fff;
  font-size: 13px;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 25px #20304025;
  z-index: 100;
  max-width: min(640px, 90vw);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #9f3436;
}
@media (min-width: 1800px) {
  .content {
    padding: 32px 36px;
  }
  :root {
    --resource: 270px;
  }
  .metrics article {
    min-height: 140px;
  }
}
@media (max-width: 1150px) {
  .app {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  aside {
    padding: 24px 10px;
  }
  .brand {
    font-size: 21px;
  }
  .content {
    padding: 24px 20px;
  }
  .nav {
    font-size: 12px;
  }
  .metrics {
    gap: 10px;
  }
  .metrics article {
    padding: 15px 12px;
  }
  .metrics strong {
    font-size: 25px;
  }
  .metrics small {
    font-size: 10px;
  }
  .legend {
    display: none;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .mode-line {
    align-items: flex-start;
  }
  .demo-banner {
    flex-wrap: wrap;
  }
  .demo-banner > div {
    flex-basis: 100%;
  }
  .date-control {
    flex-wrap: wrap;
  }
  .search {
    width: 250px;
  }
  .connection {
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  header {
    padding: 0 20px;
  }
  .profile {
    padding-left: 2px;
    padding-right: 2px;
  }
  .data-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .app {
    display: block;
  }
  aside {
    position: relative;
    height: auto;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  aside .brand {
    font-size: 21px;
  }
  aside .brand > span {
    width: 25px;
    height: 28px;
    font-size: 23px;
  }
  .side-title,
  .profile {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin: 14px -5px -5px;
  }
  .nav {
    width: auto;
    flex: none;
    padding: 10px;
    font-size: 11px;
    gap: 5px;
  }
  .nav svg {
    width: 15px;
    height: 15px;
  }
  header {
    height: auto;
    min-height: 54px;
    padding: 10px 16px;
    align-items: flex-start;
    gap: 8px;
  }
  header > span {
    display: none;
  }
  header > div {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .connection {
    margin-right: auto;
    max-width: none;
  }
  .content {
    padding: 24px 16px;
  }
  .page-heading {
    gap: 16px;
    margin-top: 0;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-heading .actions {
    width: 100%;
  }
  .page-heading .actions button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .mode-line {
    font-size: 10px;
    gap: 5px;
  }
  .mode-line > span {
    max-width: 60%;
  }
  .mode-line button {
    font-size: 10px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metrics article {
    min-height: 122px;
    padding: 14px;
  }
  .metrics article:first-child {
    padding-top: 12px;
  }
  .metrics strong {
    font-size: 25px;
    margin: 10px 0;
  }
  .metrics article > div {
    font-size: 11px;
  }
  .metrics small {
    font-size: 10px;
  }
  .toolbar {
    gap: 10px;
  }
  .date-control {
    flex: 1;
    gap: 6px;
  }
  .date-control strong {
    min-width: auto;
    font-size: 11px;
  }
  .date-control input {
    width: 115px;
  }
  .date-control button {
    font-size: 12px;
    padding: 7px;
  }
  .toolbar > .push-right {
    display: none;
  }
  .segmented button {
    font-size: 11px;
    padding: 9px 10px;
  }
  .filters {
    gap: 10px;
  }
  .filters > select {
    max-width: 160px;
    width: calc(100% - 220px);
    min-width: 115px;
    font-size: 11px;
  }
  .search {
    width: 100%;
    margin: 0;
  }
  .board-scroll {
    max-height: 65vh;
  }
  .board-grid {
    --resource: 180px;
    min-width: 1030px;
  }
  .board-grid.weekly {
    min-width: 1300px;
  }
  .resource-label {
    padding: 12px 10px;
  }
  .resource-load {
    gap: 5px;
  }
  .resource-load i {
    width: 25px;
  }
  .resource-load small {
    font-size: 9px;
  }
  .resource-title {
    font-size: 11px;
  }
  .resource-label > small {
    font-size: 10px;
  }
  .plate {
    font-size: 9px;
  }
  .board-title {
    font-size: 12px;
    padding: 14px;
  }
  .board-help {
    font-size: 10px;
  }
  .demo-banner {
    gap: 8px;
    font-size: 11px;
    line-height: 1.6;
  }
  .demo-banner button {
    font-size: 10px;
  }
  .data-grid {
    gap: 14px;
  }
  .panel {
    padding: 18px;
  }
  .panel .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .form-grid {
    gap: 12px;
  }
  .form-grid.four {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid.pair {
    gap: 6px;
  }
  .crew {
    grid-template-columns: 1fr;
    max-height: 170px;
  }
  .form-grid label {
    font-size: 11px;
  }
  .form-grid input,
  .form-grid select {
    padding: 9px 7px;
    font-size: 12px;
  }
  .dialog-head h2 {
    font-size: 18px;
  }
  dialog {
    padding: 18px;
  }
  .dialog-actions button {
    font-size: 12px;
  }
  .weekdays {
    gap: 10px;
  }
  .login-card {
    padding: 28px;
  }
  .login-card h1 {
    font-size: 23px;
  }
  footer {
    font-size: 9px;
  }
  footer span {
    max-width: 50%;
    text-align: right;
  }
}
@media print {
  aside,
  header,
  .toolbar,
  .filters,
  .actions,
  .mode-line,
  .demo-banner,
  footer {
    display: none;
  }
  .app {
    display: block;
  }
  .content {
    padding: 0;
  }
  .board-scroll {
    max-height: none;
    overflow: visible;
  }
  .board-grid {
    min-width: 100%;
    --resource: 180px;
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .board-help {
    display: none;
  }
  .metrics {
    break-inside: avoid;
  }
  .order-card {
    print-color-adjust: exact;
  }
  .resource-label,
  .time-head,
  .corner {
    position: static;
  }
}
