/* KOLIBRI Production 0.22.0 — desktop and iPhone interface. */
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 250;
  transform: translateY(-180%);
  padding: 10px 16px;
  border-radius: 9px;
  background: #245d49;
  color: white;
  font-weight: 650;
}
.skip-link:focus {
  transform: translateY(0);
}
.initial-loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #5c6e60;
}
.initial-loading .spinner {
  width: 30px;
  height: 30px;
}
/* Install and connection controls keep forms in memory when the network changes. */
.connection-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 22px;
  border: 1px solid #d5e3d8;
  border-radius: 12px;
  color: #245d49;
  background: #eaf1eb;
  font-size: 13px;
}
.connection-notice > span { flex: 1; min-width: 0; }
.connection-notice strong { margin-right: 5px; }
.connection-notice > .button { flex-shrink: 0; min-height: 44px; }
.connection-notice.offline { background: #fff5e6; color: #805b20; border-color: #efddbc; }
.install-nav { flex-shrink: 0; margin-top: 16px; color: #245d49; }
.install-card { display: flex; align-items: center; gap: 18px; padding: 24px; margin-bottom: 24px; }
.install-card img, .install-intro img { flex-shrink: 0; border-radius: 14px; }
.install-card > div { flex: 1; min-width: 0; }
.install-card h2 { margin: 0 0 5px; }
.install-card p { margin: 0; }
.install-card > .button { flex-shrink: 0; min-height: 46px; }
.install-intro { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.install-intro strong { font-size: 17px; }
.install-intro p { margin: 5px 0 0; }
.install-steps { counter-reset: install; list-style: none; padding: 0; margin: 0 0 24px; }
.install-steps li { counter-increment: install; display: flex; align-items: flex-start; gap: 12px; margin: 14px 0; }
.install-steps li::before { content: counter(install); display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: #e8f0e9; color: #245d49; font-size: 12px; font-weight: 650; }
.install-address { display: flex; flex-direction: column; gap: 4px; padding: 12px 15px; border-radius: 9px; background: #f5f7f4; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .connection-notice { align-items: flex-start; flex-wrap: wrap; padding: 12px; font-size: 12px; }
  .connection-notice > span { flex-basis: calc(100% - 34px); }
  .connection-notice > .button { margin-left: 30px; }
  .install-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .install-card img { width: 48px; height: 48px; }
  .install-card h2 { font-size: 16px; }
  .install-card p { font-size: 12px; }
  .install-card > .button { grid-column: 1 / -1; width: 100%; }
  .install-intro { gap: 14px; }
  .install-intro img { width: 58px; height: 58px; }
  .install-intro strong { font-size: 15px; }
  .install-intro p { font-size: 12px; }
}
@media print { .connection-notice, .install-card, .install-nav { display: none !important; } }
:root {
  color-scheme: light;
  --green:#245d49;
  --green-dark:#194533;
  --green-soft:#e8f0e9;
  --ink:#26392e;
  --muted:#708074;
  --line:#e2e8e0;
  --canvas:#f5f7f4;
  --white:#fff;
  --amber:#956a25;
  --red:#a45046;
  --radius:13px;
  --shadow:0 12px 45px #183b2a12;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--canvas);
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: .46;
  cursor: not-allowed;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9cc6a7;
  outline-offset: 3px;
}
svg {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -.8px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  letter-spacing: -.3px;
  line-height: 1.35;
}
h3 {
  font-size: 15px;
  line-height: 1.4;
}
p {
  line-height: 1.65;
}
strong,
b {
  font-weight: 600;
}
small {
  font-size: 12px;
}
table {
  border-collapse: collapse;
}
input,
select,
textarea {
  border: 1px solid #d7e1d5;
  border-radius: 9px;
  background: #fff;
  color: #2e4534;
  padding: 10px 12px;
  min-height: 42px;
  max-width: 100%;
  width: 100%;
  transition: border-color .16s, box-shadow .16s;
}
input::placeholder,
textarea::placeholder {
  color: #94a08e;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #7da58b;
  box-shadow: 0 0 0 3px #245d490b;
  outline: none;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type=checkbox],
input[type=radio] {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  accent-color: var(--green);
  flex-shrink: 0;
}
input[type=file] {
  font-size: 12px;
  padding: 10px;
  background: #f8faf6;
}
input[type=number] {
  font-variant-numeric: tabular-nums;
}
input[type=search]::-webkit-search-cancel-button {
  cursor: pointer;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
code {
  font-family: Consolas, monospace;
  font-size: 12px;
  background: #eef3e9;
  padding: 3px 6px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.55;
}
.full {
  grid-column: 1/-1;
}
.nowrap {
  white-space: nowrap;
}
.text-right {
  text-align: right;
}
.danger-text {
  color: var(--red);
}
.success-text {
  color: var(--green);
}
.app {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 29px;
  color: var(--green);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand-icon {
  width: 40px;
  height: 43px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-icon svg {
  width: 25px;
  height: 25px;
}
.brand-copy {
  min-width: 0;
}
.brand-name {
  display: block;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: 1.5px;
  line-height: 1.2;
}
.brand-tag {
  display: block;
  font-size: 10px;
  letter-spacing: .7px;
  color: #8a9987;
  margin-top: 4px;
  text-transform: uppercase;
}
.nav-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: #9ba695;
  margin: 15px 12px 13px;
}
.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 11px;
  min-height: 45px;
  padding: 11px 13px;
  border-radius: 9px;
  text-align: left;
  font-size: 13px;
  color: #70816b;
  margin-bottom: 5px;
  transition: background .16s, color .16s;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}
.nav-item:hover {
  background: #f3f6ef;
  color: #3e6542;
}
.nav-item.active {
  background: #e8f0e8;
  color: var(--green);
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 24px;
  min-height: 22px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #dbe7d9;
  font-size: 10px;
  color: #4c6d49;
}
.sidebar-footer {
  margin-top: auto;
  padding: 22px 8px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #84957c;
}
.sidebar-footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-footer strong {
  display: block;
  color: #45643c;
  font-size: 12px;
}
.sidebar-footer span:not(.user-avatar) {
  display: block;
}
.sidebar-footer button {
  margin-top: 11px;
  font-size: 11px;
  color: #788b6c;
  padding: 5px 0;
}
.user-avatar,
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #e9eee4;
  color: #6d815b;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
}
.workspace {
  margin-left: 238px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 73px;
  background: #fdfefb;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px;
  gap: 20px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #8b9a80;
}
.breadcrumb strong {
  font-weight: 500;
  color: #516e45;
}
.breadcrumb svg {
  width: 13px;
  height: 13px;
  color: #abb7a1;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #839574;
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  color: #7d9270;
  transition: background .15s, color .15s;
}
.icon-btn:hover {
  background: #edf3e7;
  color: #426c30;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}
.content {
  padding: 31px 35px 40px;
  max-width: 1900px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-head p {
  color: #809374;
  margin-top: 7px;
  font-size: 13px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8da27f;
  margin-bottom: 9px;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 10px 14px;
  border: 1px solid #d9e3d3;
  border-radius: 8px;
  background: #fff;
  color: #586f47;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
  white-space: nowrap;
  transition:
    background .15s,
    border-color .15s,
    transform .15s;
  text-decoration: none;
}
.button:hover {
  background: #f3f7ee;
  border-color: #a9c099;
  text-decoration: none;
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 2px 4px #1e4e3910;
}
.button.primary:hover {
  background: #32735a;
  border-color: #32735a;
}
.button.secondary {
  background: #fff;
}
.button.danger {
  border-color: #ead2cd;
  background: #fff7f4;
  color: #a86758;
}
.button.danger:hover {
  background: #fff0e9;
  border-color: #d6b7a7;
}
.button.small {
  font-size: 11px;
  padding: 7px 10px;
  min-height: 31px;
}
.button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}
.button.small svg {
  width: 14px;
  height: 14px;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
}
.button.ghost:hover {
  background: #ecf3e3;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.stat-card {
  display: block;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  text-align: left;
}
.stat-label {
  font-size: 12px;
  color: #849477;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.stat-label svg {
  width: 18px;
  height: 18px;
  color: #8fa87a;
}
.stat-value {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-top: 12px;
  color: #355d30;
  font-variant-numeric: tabular-nums;
}
.stat-note {
  font-size: 11px;
  color: #96a389;
  line-height: 1.5;
  margin-top: 9px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 23px 17px;
}
.card-head h2 {
  font-size: 16px;
}
.card-head p {
  font-size: 12px;
  color: #819371;
  margin-top: 5px;
}
.card-body {
  padding: 0 23px 23px;
}
.card-body > .empty {
  padding-top: 32px;
  padding-bottom: 32px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: #557741;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 23px 19px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
  max-width: 360px;
  flex: 1;
}
.search > svg {
  position: absolute;
  left: 12px;
  pointer-events: none;
  width: 15px;
  height: 15px;
  color: #91a17e;
}
.search input {
  padding-left: 36px;
  min-height: 37px;
  background: #fafcf7;
  font-size: 12px;
  border-color: #e2e9da;
}
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filters select,
.filters input {
  width: auto;
  max-width: 190px;
  font-size: 12px;
  min-height: 37px;
  padding: 8px 11px;
  background: #fcfdf9;
}
.pills {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.pill {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  color: #849674;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}
.pill:hover {
  background: #f2f6eb;
}
.pill.active {
  background: #eaf2e2;
  color: #587c3d;
  border-color: #dce8ce;
  font-weight: 600;
}
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: start;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.entity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.entity-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
  animation: card-enter .22s ease-out both;
}
.entity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.entity-header > div {
  min-width: 0;
}
.entity-header h3 {
  font-size: 15px;
}
.entity-header p {
  font-size: 12px;
  color: #859776;
  margin-top: 4px;
}
.entity-card > p {
  font-size: 12px;
  color: #7c9369;
  line-height: 1.7;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.entity-card a {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.entity-card .avatar {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  font-size: 14px;
}
.entity-footer {
  border-top: 1px solid #e7eddc;
  margin-top: 18px;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #91a380;
  font-size: 11px;
}
.entity-footer strong {
  color: #6d8a52;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
  color: #81926e;
  background: #f0f4e9;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge.unscheduled {
  background: #f0f2ed;
  color: #89917d;
}
.badge.planned {
  background: #edf2e3;
  color: #7e965d;
}
.badge.in_progress {
  background: #e4f0e2;
  color: #587e3b;
}
.badge.paused {
  background: #fff3db;
  color: #ad8a42;
}
.badge.blocked {
  background: #f9eade;
  color: #b08a64;
}
.badge.done {
  background: #dfedda;
  color: #5c8642;
}
.badge.cancelled {
  background: #f0eeea;
  color: #969284;
}
.badge.high {
  background: #fff0e5;
  color: #ad795a;
}
.badge.normal {
  background: #eff3e7;
  color: #83956a;
}
.badge.low {
  background: #f1f4ee;
  color: #94a087;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.table {
  width: 100%;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
.table th {
  background: #fafcf6;
  border-block: 1px solid #edf1e5;
  padding: 12px 15px;
  font-size: 10px;
  font-weight: 550;
  color: #91a37d;
  letter-spacing: .15px;
}
.table td {
  padding: 17px 15px;
  border-bottom: 1px solid #ebf0e2;
  color: #708953;
  vertical-align: middle;
}
.table th:first-child,
.table td:first-child {
  padding-left: 23px;
}
.table th:last-child,
.table td:last-child {
  padding-right: 23px;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr {
  transition: background .15s;
}
.table tbody tr:hover {
  background: #fbfdf7;
}
.table td strong {
  font-size: 12px;
  color: #4c7133;
  font-weight: 550;
}
.table td .small {
  margin-top: 5px;
  display: block;
  font-size: 10px;
  color: #a1b08a;
}
.table button:not(.button):not(.icon-btn) {
  text-align: left;
  color: inherit;
  padding: 0;
}
.mobile-cards {
  display: none;
}
.order-title {
  font-size: 13px;
  font-weight: 600;
  color: #4d7334;
  display: block;
}
.order-meta {
  font-size: 10px;
  color: #94a780;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
}
.order-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.op-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.op-card {
  border: 1px solid #e1e9d9;
  border-radius: 11px;
  background: #fff;
  padding: 17px;
  min-width: 0;
  animation: card-enter .22s ease-out both;
}
.op-card.overdue {
  border-color: #e4cbb5;
  background: #fffdf8;
}
.op-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.op-header h3 {
  font-size: 14px;
  color: #54783b;
}
.op-header > div {
  min-width: 0;
}
.op-header .head-actions {
  gap: 4px;
}
.op-route {
  font-size: 11px;
  color: #8da578;
  margin: 5px 0 13px;
  line-height: 1.5;
}
.op-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 15px;
  font-size: 11px;
  color: #8aa172;
  line-height: 1.5;
}
.op-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.op-meta svg {
  width: 13px;
  height: 13px;
  color: #96ab7e;
}
.op-meta strong {
  color: #668d43;
  font-weight: 500;
}
.op-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #ebf0e1;
}
.op-actions select {
  min-height: 32px;
  font-size: 11px;
  padding: 6px 9px;
  width: auto;
  max-width: 200px;
}
.progress {
  height: 5px;
  background: #edf2e5;
  border-radius: 5px;
  overflow: hidden;
  width: 100%;
  min-width: 35px;
}
.progress-fill {
  display: block;
  height: 100%;
  background: #92b371;
  border-radius: inherit;
  transition: width .3s;
}
.empty {
  padding: 54px 25px 57px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 590px;
  margin: 0 auto;
}
.empty-icon {
  width: 66px;
  height: 66px;
  background: #f0f6e7;
  border: 1px solid #e0ebd4;
  color: #a5ba90;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
}
.empty-icon svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.35;
}
.empty h2,
.empty h3 {
  font-size: 19px;
  letter-spacing: -.45px;
  font-weight: 550;
  color: #68874c;
  line-height: 1.4;
}
.empty p {
  font-size: 12px;
  line-height: 1.7;
  color: #91a87d;
  max-width: 390px;
  margin-top: 9px;
}
.empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 21px;
  flex-wrap: wrap;
}
.timeline {
  border-top: 1px solid #edf2e5;
  overflow: hidden;
}
.timeline-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-bottom: 1px solid #edf2e5;
  min-height: 63px;
  align-items: center;
}
.timeline-row:last-child {
  border-bottom: 0;
}
.timeline-label {
  padding: 12px 16px 12px 23px;
  font-size: 11px;
  min-width: 0;
  color: #719752;
  border-right: 1px solid #edf2e5;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-label strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #5e873c;
  font-size: 12px;
}
.timeline-label small {
  display: block;
  font-size: 10px;
  color: #a0b58b;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-track {
  height: 41px;
  position: relative;
  min-width: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 1px),
      #edf3e5 calc(10% - 1px),
      #edf3e5 10%);
}
.timeline-block {
  position: absolute;
  top: 8px;
  bottom: 7px;
  min-width: 3px;
  border-radius: 5px;
  background: #dcebcf;
  color: #6d9550;
  border: 1px solid #d0e3bf;
  padding: 4px 6px;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.timeline-block.in_progress {
  background: #7fa666;
  color: #fff;
  border-color: #7fa666;
}
.timeline-block.done {
  background: #c8ddb8;
  color: #638b46;
}
.timeline-block.paused,
.timeline-block.blocked {
  background: #f5e6c8;
  border-color: #ecd6ab;
  color: #ad8b4c;
}
.time-scale {
  display: flex;
  justify-content: space-between;
  padding: 11px 18px;
  font-size: 9px;
  color: #9db48a;
  background: #fafcf6;
  border-bottom: 1px solid #edf2e5;
  font-variant-numeric: tabular-nums;
}
.time-scale:before {
  content: "";
  width: 160px;
  flex-shrink: 0;
}
.load-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 47px;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #edf2e5;
}
.load-row:last-child {
  border-bottom: 0;
}
.load-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #759c53;
}
.load-bar {
  height: 7px;
  border-radius: 5px;
  background: #edf3e4;
  overflow: hidden;
}
.load-bar > span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #a1bd88;
  max-width: 100%;
}
.load-row > strong {
  font-size: 10px;
  color: #88a370;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #dfe9d3;
  border-radius: 9px;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #7d9961;
  background: #f3f8eb;
  margin-bottom: 18px;
}
.notice svg {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.notice.warning {
  background: #fff8e9;
  border-color: #f0e3c4;
  color: #aa8b4e;
}
.notice.danger {
  background: #fff2ec;
  border-color: #efd8cc;
  color: #ad8168;
}
.notice.success {
  background: #edf6e6;
  border-color: #d5e7c7;
  color: #789f56;
}
.calendar-day {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 0;
  border-bottom: 1px solid #e9f0dd;
  color: #87a56b;
  font-size: 12px;
}
.calendar-day:last-child {
  border-bottom: 0;
}
.calendar-day > div {
  min-width: 0;
  flex: 1;
}
.calendar-day strong {
  display: block;
  color: #6b924b;
}
.calendar-day small {
  display: block;
  margin-top: 4px;
  color: #a2b58f;
  font-size: 11px;
}
.metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.metric-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #eaf1df;
  gap: 12px;
  font-size: 12px;
  color: #93aa7b;
}
.metric-list strong {
  font-size: 16px;
  color: #6c944c;
  font-weight: 550;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #6b8851;
  min-width: 0;
}
.field > span,
.field > label {
  font-weight: 550;
  line-height: 1.4;
}
.field small {
  color: #a2b68d;
  font-size: 10px;
  line-height: 1.6;
}
.field input,
.field select,
.field textarea {
  font-size: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.checkbox-row {
  display: flex;
  gap: 9px;
  align-items: center;
  line-height: 1.5;
  color: #7e9a65;
  font-size: 12px;
  min-height: 28px;
}
.checkbox-row input {
  margin: 0;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border: 1px solid #dfe9d1;
  border-radius: 9px;
  background: #fafdf6;
  max-height: 245px;
  overflow: auto;
}
.check-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8aa573;
  font-size: 12px;
  line-height: 1.5;
}
.days {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #dce8ce;
  border-radius: 7px;
  padding: 7px 8px;
  font-size: 11px;
  color: #8ba474;
  background: #fafcf7;
}
.weekday:has(input:checked) {
  background: #eaf3df;
  border-color: #c9ddb5;
  color: #729553;
}
.weekday input {
  width: 14px;
  height: 14px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #152e216b;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 110;
  animation: fade-in .16s ease-out;
}
.modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 100px #0a211d3a;
  width: 100%;
  max-width: 610px;
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-enter .2s ease-out;
}
.modal.wide {
  max-width: 1000px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal-head h2 {
  font-size: 20px;
  color: #66894c;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.modal-head p {
  font-size: 11px;
  color: #9bb388;
  margin-top: 5px;
}
.modal-content {
  padding: 24px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 17px 26px;
  border-top: 1px solid var(--line);
  background: #fafcf7;
  flex-shrink: 0;
}
.modal > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.modal form > .modal-content {
  flex: 1;
}
.modal-actions > .muted:first-child {
  margin-right: auto;
  font-size: 11px;
}
.detail-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.tab {
  font-size: 12px;
  color: #97ad82;
  border-bottom: 2px solid transparent;
  padding: 15px 0;
  min-height: 48px;
  white-space: nowrap;
  font-weight: 500;
}
.tab.active {
  color: #638b43;
  border-color: #86aa66;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #9db489;
  margin-bottom: 20px;
}
.detail-section {
  padding: 18px 0;
  border-bottom: 1px solid #e8f0dd;
}
.detail-section:last-child {
  border-bottom: 0;
}
.detail-section h3 {
  font-size: 14px;
  color: #729851;
  margin-bottom: 13px;
}
.detail-section p {
  font-size: 12px;
  color: #9cb687;
  white-space: pre-wrap;
}
.detail-section .grid-2 {
  gap: 13px 24px;
}
.file-item,
.backup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #e9f1dc;
}
.file-item:last-child,
.backup-item:last-child {
  border-bottom: 0;
}
.file-icon {
  width: 35px;
  height: 38px;
  background: #f0f6e6;
  color: #9cb783;
  display: grid;
  place-items: center;
  border-radius: 7px;
  flex-shrink: 0;
}
.file-icon svg {
  width: 18px;
  height: 18px;
}
.file-info {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.file-info strong {
  display: block;
  font-size: 12px;
  color: #86a368;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-info span,
.file-info small {
  display: block;
  font-size: 10px;
  color: #acbd97;
  margin-top: 4px;
}
.audit-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #e9f1dd;
  font-size: 12px;
  color: #9ab284;
}
.audit-item:before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b4c99e;
  flex-shrink: 0;
  margin-top: 6px;
}
.audit-item strong {
  display: block;
  color: #86a76a;
  font-weight: 500;
}
.audit-item small {
  display: block;
  color: #b0c19d;
  font-size: 10px;
  margin-top: 5px;
}
.backup-item strong {
  display: block;
  font-size: 12px;
  color: #86a86b;
  overflow-wrap: anywhere;
}
.backup-item small {
  display: block;
  font-size: 10px;
  color: #aec29a;
  margin-top: 4px;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.more-grid > button,
.more-grid > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
  min-height: 135px;
  text-align: left;
  color: #83a66a;
}
.more-grid strong {
  font-size: 15px;
  color: #688e49;
}
.more-grid small {
  font-size: 11px;
  color: #a2b98d;
}
.more-grid svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.5;
}
.bottom-nav {
  display: none;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 119px);
  transform: translateX(-50%);
  background: #32664d;
  color: #fff;
  padding: 14px 18px;
  border-radius: 11px;
  box-shadow: 0 9px 35px #1a3e2c30;
  max-width: min(580px, calc(100vw - 32px));
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  line-height: 1.6;
  animation: toast-enter .2s ease-out;
}
.toast.error {
  background: #a37558;
}
.toast svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.toast .icon-btn {
  color: #fff;
  margin-left: 8px;
}
.skeleton {
  height: 100px;
  border-radius: 12px;
  background:
    linear-gradient(
      90deg,
      #edf3e5,
      #f9fbf6,
      #edf3e5);
  background-size: 200% 100%;
  animation: skeleton 1.3s linear infinite;
}
.spinner {
  width: 19px;
  height: 19px;
  display: inline-block;
  border: 2px solid #d2e3c5;
  border-top-color: #719850;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.page-enter {
  animation: page-enter .25s ease-out;
}
.login-screen {
  min-height: 100dvh;
  background:
    radial-gradient(
      ellipse at top right,
      #e6eee1 0,
      transparent 50%),
    #f4f7f1;
  display: grid;
  place-items: center;
  padding: 35px 20px;
}
.login-card {
  background: #fff;
  border: 1px solid #dfe9d6;
  border-radius: 21px;
  padding: 36px;
  width: 100%;
  max-width: 430px;
  box-shadow: 0 16px 80px #2f532a10;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  color: #4c7936;
}
.login-brand .brand-icon {
  width: 44px;
  height: 47px;
  border-radius: 13px;
}
.login-brand strong {
  font-size: 22px;
  letter-spacing: 1px;
}
.login-card h1 {
  font-size: 26px;
  color: #5a8241;
  margin-bottom: 9px;
}
.login-card > p {
  font-size: 12px;
  color: #96ad81;
  margin-bottom: 25px;
  line-height: 1.7;
}
.login-card .field {
  margin-bottom: 17px;
}
.login-card .button {
  width: 100%;
  min-height: 43px;
  margin-top: 7px;
}
.login-note {
  margin-top: 23px;
  padding-top: 21px;
  border-top: 1px solid #e6efdc;
  color: #b2c19f;
  font-size: 10px;
  line-height: 1.7;
}
.login-error {
  background: #fff3ea;
  border: 1px solid #edddca;
  color: #b39269;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 12px;
  margin: 15px 0;
  line-height: 1.6;
}
.login-error:empty {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes skeleton {
  to {
    background-position: -200% 0;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(9px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes page-enter {
  from {
    opacity: .6;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes card-enter {
  from {
    opacity: .6;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toast-enter {
  from {
    opacity: 0;
    margin-bottom: -8px;
  }
  to {
    opacity: 1;
    margin-bottom: 0;
  }
}
.page-head p,
.muted {
  color: #71816d;
}
.eyebrow {
  color: #7f9572;
}
.stat-label {
  color: #74876a;
}
.stat-value {
  color: #2b5134;
}
.stat-note {
  color: #819276;
}
.table th {
  color: #869877;
}
.table td {
  color: #677c58;
}
.table td strong,
.order-title {
  color: #3f6835;
}
.table td .small,
.order-meta {
  color: #8ca27a;
}
.entity-card > p {
  color: #758c65;
}
.entity-card h3 {
  color: #436b35;
}
.op-header h3 {
  color: #456e37;
}
.op-route {
  color: #7e976c;
}
.op-meta {
  color: #7b9568;
}
.field {
  color: #567843;
}
.field small {
  color: #8ca778;
}
.modal-head h2 {
  color: #4b7638;
}
.detail-section p {
  color: #7a9765;
}
.file-info strong,
.backup-item strong {
  color: #6a8e51;
}
.file-info span,
.file-info small {
  color: #91aa7d;
}
.audit-item {
  color: #8ca575;
}
.audit-item strong {
  color: #71964f;
}
.more-grid strong {
  color: #537d39;
}
.login-card h1 {
  color: #416b2e;
}
.login-card > p {
  color: #829c6c;
}
.login-note {
  color: #99ad86;
}
.empty h2,
.empty h3 {
  color: #567c3d;
}
.empty p {
  color: #839e6f;
}
@media (min-width: 1600px) {
  .content {
    padding: 40px 45px;
  }
  .topbar {
    padding: 0 45px;
  }
  .stats {
    gap: 20px;
  }
  .stat-card {
    padding: 24px;
  }
  .stat-value {
    font-size: 35px;
  }
  .table td {
    padding-top: 21px;
    padding-bottom: 21px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 211px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 211px;
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .brand {
    padding-left: 9px;
  }
  .brand-name {
    font-size: 17px;
  }
  .stats {
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-value {
    font-size: 28px;
  }
  .entity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar {
    padding-left: 20px;
    padding-right: 20px;
  }
  .card-head {
    padding-left: 20px;
    padding-right: 20px;
  }
  .card-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  .toast {
    left: calc(50% + 105px);
  }
  .split {
    grid-template-columns: 1.25fr 1fr;
    gap: 17px;
  }
  .timeline-row {
    grid-template-columns: 155px minmax(0, 1fr);
  }
  .timeline-label {
    padding-left: 20px;
  }
  .time-scale:before {
    width: 135px;
  }
}
@media (max-width: 1050px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-head .head-actions {
    justify-content: flex-end;
    max-width: 45%;
  }
  .page-head .button {
    padding-left: 11px;
    padding-right: 11px;
    font-size: 11px;
  }
  .filters {
    width: 100%;
    order: 2;
  }
  .toolbar .search {
    max-width: none;
  }
  .toolbar {
    gap: 12px;
  }
  .card-head h2 {
    font-size: 15px;
  }
  .topbar-actions > span:not(.user-avatar) {
    display: none;
  }
  .grid-3 {
    gap: 15px;
  }
  .load-row {
    grid-template-columns: 125px minmax(0, 1fr) 45px;
  }
  .timeline-row {
    grid-template-columns: 145px minmax(0, 1fr);
  }
  .time-scale:before {
    width: 125px;
  }
}
@media (max-width: 760px) {
  :root {
    font-size: 15px;
  }
  body {
    overscroll-behavior-y: none;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    margin: 0;
    width: 100%;
    padding-bottom: calc(77px + env(safe-area-inset-bottom, 0px));
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    min-height: calc(62px + env(safe-area-inset-top, 0px));
    padding: calc(11px + env(safe-area-inset-top, 0px)) 16px 11px;
    background: #fcfef9f3;
    backdrop-filter: blur(16px);
    gap: 8px;
  }
  .breadcrumb {
    font-size: 12px;
    gap: 8px;
  }
  .breadcrumb > span:first-child {
    display: none;
  }
  .breadcrumb > svg:first-of-type {
    display: none;
  }
  .breadcrumb strong {
    font-size: 16px;
    font-weight: 600;
    color: #4f773d;
  }
  .topbar-actions {
    gap: 7px;
  }
  .topbar .user-avatar {
    width: 33px;
    height: 33px;
    font-size: 12px;
  }
  .topbar .icon-btn {
    width: 41px;
    height: 41px;
  }
  .content {
    padding: 25px 16px 30px;
  }
  .page-head {
    flex-wrap: wrap;
    gap: 17px;
    margin-bottom: 23px;
  }
  .page-head h1 {
    font-size: 29px;
  }
  .page-head p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 8px;
    color: #7b9468;
  }
  .eyebrow {
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
  }
  .page-head .head-actions {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    gap: 8px;
  }
  .head-actions {
    gap: 8px;
  }
  .button,
  .page-head .button,
  .button.small {
    min-height: 44px;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 12px;
    line-height: 1.35;
  }
  .button svg,
  .button.small svg {
    width: 17px;
    height: 17px;
  }
  .page-head .button.primary {
    flex: 1;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .icon-btn svg {
    width: 19px;
    height: 19px;
  }
  .stats {
    gap: 11px;
    margin-bottom: 22px;
  }
  .stat-card {
    padding: 17px 14px 15px;
    border-radius: 14px;
  }
  .stat-label {
    font-size: 12px;
    line-height: 1.4;
    min-height: 32px;
    gap: 5px;
    align-items: flex-start;
  }
  .stat-label svg {
    width: 16px;
    height: 16px;
  }
  .stat-value {
    font-size: 30px;
    margin-top: 7px;
    overflow-wrap: anywhere;
  }
  .stat-note {
    font-size: 12px;
    line-height: 1.45;
    min-height: 34px;
    margin-top: 8px;
    color: #8da17b;
  }
  .card {
    border-radius: 15px;
    margin-bottom: 20px;
  }
  .card-head {
    padding: 20px 16px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .card-head h2 {
    font-size: 17px;
  }
  .card-head p {
    font-size: 12px;
  }
  .card-head .head-actions {
    margin-left: auto;
  }
  .card-body {
    padding: 0 16px 18px;
  }
  .toolbar {
    padding: 0 16px 17px;
    gap: 11px;
    align-items: stretch;
  }
  .search {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex-basis: 100%;
  }
  .search input {
    min-height: 46px;
    font-size: 16px;
    padding-left: 37px;
    border-radius: 10px;
  }
  .search > svg {
    width: 17px;
    height: 17px;
  }
  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
  }
  .filters input,
  .filters select {
    min-width: 0;
    width: 100%;
    max-width: none;
    min-height: 44px;
    font-size: 14px;
    padding: 9px 10px;
    border-radius: 10px;
  }
  .filters label {
    min-width: 0;
    font-size: 12px;
  }
  .filters .full {
    grid-column: 1/-1;
  }
  .pills {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding-bottom: 3px;
    gap: 4px;
  }
  .pills::-webkit-scrollbar {
    display: none;
  }
  .pill {
    min-height: 42px;
    flex-shrink: 0;
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 9px;
  }
  .grid-2,
  .grid-3,
  .entity-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  .entity-card {
    border-radius: 15px;
    padding: 20px;
  }
  .entity-card h3,
  .entity-header h3 {
    font-size: 17px;
  }
  .entity-card p,
  .entity-card > p,
  .entity-card a {
    font-size: 14px;
    line-height: 1.65;
    color: #80996c;
  }
  .entity-header p {
    font-size: 13px;
  }
  .entity-footer {
    font-size: 12px;
    line-height: 1.5;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 15px;
  }
  .entity-card .avatar {
    width: 47px;
    height: 47px;
    font-size: 16px;
  }
  .badge {
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 6px;
  }
  .desktop-table {
    display: none;
  }
  .mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 18px;
  }
  .order-card {
    display: block;
    background: #fff;
    border: 1px solid #dfe9d5;
    border-radius: 13px;
    padding: 17px;
    text-align: left;
    min-width: 0;
    width: 100%;
    box-shadow: 0 2px 9px #23501c04;
  }
  .order-title {
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .order-meta {
    font-size: 12px;
    line-height: 1.5;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    color: #8ba277;
  }
  .order-values {
    gap: 9px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.5;
  }
  .order-values strong {
    font-size: 16px;
    color: #5c863e;
  }
  .order-card .progress {
    margin-top: 14px;
    height: 5px;
  }
  .op-list {
    gap: 12px;
  }
  .op-card {
    border-radius: 13px;
    padding: 17px;
  }
  .op-header {
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }
  .op-header h3 {
    font-size: 16px;
    line-height: 1.45;
  }
  .op-header .badge {
    margin-left: auto;
  }
  .op-header .head-actions {
    gap: 0;
  }
  .op-route {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 6px;
    margin-bottom: 13px;
    overflow-wrap: anywhere;
    color: #8ba477;
  }
  .op-meta {
    font-size: 12px;
    line-height: 1.55;
    gap: 8px 12px;
    align-items: flex-start;
  }
  .op-meta svg {
    width: 14px;
    height: 14px;
  }
  .op-actions {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 13px;
  }
  .op-actions select {
    font-size: 16px;
    min-height: 44px;
    max-width: none;
    flex: 1;
    min-width: 0;
    padding: 9px 11px;
    border-radius: 9px;
  }
  .op-actions .button {
    flex: 1;
    min-width: 110px;
  }
  .empty {
    padding: 44px 18px 47px;
  }
  .empty-icon {
    width: 67px;
    height: 67px;
    border-radius: 21px;
  }
  .empty-icon svg {
    width: 31px;
    height: 31px;
  }
  .empty h2,
  .empty h3 {
    font-size: 20px;
    line-height: 1.4;
  }
  .empty p {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 10px;
  }
  .empty-actions {
    width: 100%;
    gap: 8px;
    margin-top: 21px;
  }
  .empty-actions .button {
    min-width: 150px;
  }
  .timeline {
    overflow: visible;
  }
  .timeline-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 15px 16px;
    gap: 9px;
    min-height: 0;
  }
  .timeline-label {
    padding: 0;
    border-right: 0;
    font-size: 13px;
    white-space: normal;
  }
  .timeline-label strong {
    font-size: 14px;
    white-space: normal;
  }
  .timeline-label small {
    font-size: 12px;
    white-space: normal;
    color: #a0b68b;
  }
  .timeline-track {
    height: 40px;
    border: 1px solid #e6efd9;
    border-radius: 8px;
    overflow: hidden;
  }
  .timeline-block {
    font-size: 10px;
    top: 7px;
    bottom: 7px;
  }
  .time-scale {
    padding: 10px 16px;
    font-size: 10px;
    overflow: hidden;
  }
  .time-scale:before {
    display: none;
  }
  .load-row {
    grid-template-columns: 110px minmax(0, 1fr) 40px;
    gap: 10px;
    font-size: 12px;
    min-height: 51px;
  }
  .load-row > strong {
    font-size: 11px;
  }
  .load-label {
    color: #83a265;
  }
  .load-bar {
    height: 8px;
  }
  .notice {
    border-radius: 11px;
    padding: 13px 14px;
    font-size: 13px;
    line-height: 1.6;
    gap: 9px;
    overflow-wrap: anywhere;
  }
  .notice svg {
    width: 18px;
    height: 18px;
  }
  .calendar-day {
    font-size: 13px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 17px 0;
  }
  .calendar-day small {
    font-size: 12px;
  }
  .calendar-day .badge {
    margin-left: auto;
  }
  .metric-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .metric-list > div {
    font-size: 13px;
    min-height: 49px;
  }
  .metric-list strong {
    font-size: 18px;
  }
  .modal-backdrop {
    padding: max(14px, env(safe-area-inset-top, 0px)) 0 0;
    align-items: flex-end;
    backdrop-filter: blur(3px);
  }
  .modal,
  .modal.wide {
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - max(14px, env(safe-area-inset-top, 0px)));
    box-shadow: 0 -9px 45px #173b2430;
  }
  .modal-head {
    position: relative;
    padding: 25px 18px 16px;
    gap: 10px;
    align-items: flex-start;
  }
  .modal-head:before {
    content: "";
    position: absolute;
    top: 9px;
    left: calc(50% - 17px);
    width: 34px;
    height: 4px;
    border-radius: 8px;
    background: #d1ddc6;
  }
  .modal-head h2 {
    font-size: 21px;
    line-height: 1.35;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .modal-head p {
    font-size: 12px;
    line-height: 1.6;
  }
  .modal-content {
    padding: 21px 18px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .modal-actions {
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .modal-actions .button {
    min-height: 46px;
    padding: 11px 15px;
    font-size: 13px;
  }
  .modal-actions > .muted:first-child {
    font-size: 11px;
    max-width: 100px;
    line-height: 1.5;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
  }
  .full {
    grid-column: auto;
  }
  .field {
    font-size: 13px;
    gap: 8px;
    color: #729453;
  }
  .field small {
    font-size: 11px;
    line-height: 1.6;
  }
  .field input,
  .field select,
  .field textarea,
  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
    border-radius: 10px;
  }
  .field textarea {
    min-height: 110px;
  }
  .checkbox-row {
    font-size: 14px;
    min-height: 39px;
    gap: 10px;
  }
  .checkbox-row input,
  input[type=checkbox],
  input[type=radio] {
    width: 19px;
    height: 19px;
    min-height: 0;
    border-radius: 4px;
  }
  .check-list {
    max-height: 270px;
    padding: 13px;
    gap: 7px;
    border-radius: 11px;
  }
  .check-list label {
    font-size: 14px;
    min-height: 36px;
    gap: 10px;
  }
  .days {
    gap: 7px;
  }
  .weekday {
    font-size: 12px;
    min-height: 43px;
    padding: 8px 9px;
    gap: 5px;
  }
  .weekday input {
    width: 16px;
    height: 16px;
  }
  .detail-tabs {
    padding: 0 18px;
    gap: 21px;
    flex-wrap: nowrap;
  }
  .detail-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    font-size: 13px;
    min-height: 49px;
    padding: 14px 0;
  }
  .detail-meta {
    font-size: 12px;
    line-height: 1.6;
    gap: 8px 12px;
    margin-bottom: 15px;
  }
  .detail-section {
    padding: 18px 0;
  }
  .detail-section h3 {
    font-size: 16px;
    margin-bottom: 13px;
  }
  .detail-section p {
    font-size: 14px;
    line-height: 1.7;
  }
  .file-item,
  .backup-item {
    padding: 16px 0;
    gap: 10px;
    flex-wrap: wrap;
  }
  .file-icon {
    width: 35px;
    height: 40px;
    border-radius: 8px;
  }
  .file-info {
    flex: 1;
    min-width: 100px;
  }
  .file-info strong,
  .backup-item strong {
    font-size: 13px;
    line-height: 1.5;
  }
  .file-info span,
  .file-info small,
  .backup-item small {
    font-size: 11px;
    line-height: 1.5;
  }
  .file-item .icon-btn {
    width: 40px;
    height: 40px;
  }
  .audit-item {
    font-size: 13px;
    line-height: 1.6;
    padding: 16px 0;
  }
  .audit-item small {
    font-size: 11px;
    line-height: 1.5;
  }
  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .more-grid > button,
  .more-grid > a {
    border-radius: 15px;
    padding: 19px 16px;
    min-height: 137px;
    gap: 10px;
  }
  .more-grid strong {
    font-size: 15px;
  }
  .more-grid small {
    font-size: 12px;
    line-height: 1.5;
  }
  .more-grid svg {
    width: 26px;
    height: 26px;
  }
  .bottom-nav {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    align-items: start;
    min-height: calc(76px + env(safe-area-inset-bottom, 0px));
    padding: 8px 7px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e1eadd;
    background: #ffffffef;
    backdrop-filter: blur(18px);
    z-index: 60;
    box-shadow: 0 -5px 18px #244c1c04;
  }
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 54px;
    min-width: 0;
    border-radius: 11px;
    font-size: 10px;
    color: #95ad81;
    line-height: 1.3;
    padding: 5px 2px;
    transition: color .15s, background .15s;
  }
  .bottom-nav-item svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.7;
  }
  .bottom-nav-item.active {
    color: #628940;
    background: #edf4e6;
    font-weight: 600;
  }
  .bottom-nav-item.active svg {
    stroke-width: 2;
  }
  .toast {
    left: 50%;
    bottom: calc(87px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 30px);
    width: max-content;
    font-size: 13px;
    padding: 13px 15px;
    gap: 9px;
    line-height: 1.5;
    border-radius: 12px;
  }
  .toast .icon-btn {
    width: 33px;
    height: 33px;
    min-width: 33px;
  }
  .login-screen {
    padding: 24px 17px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .login-card {
    padding: 29px 25px;
    border-radius: 19px;
  }
  .login-card h1 {
    font-size: 27px;
  }
  .login-card > p {
    font-size: 14px;
    line-height: 1.65;
  }
  .login-brand {
    margin-bottom: 27px;
  }
  .login-brand strong {
    font-size: 21px;
  }
  .login-card .field {
    margin-bottom: 19px;
    font-size: 13px;
  }
  .login-card .button {
    min-height: 48px;
    font-size: 14px;
    border-radius: 11px;
  }
  .login-note {
    font-size: 12px;
    line-height: 1.7;
    margin-top: 22px;
    padding-top: 20px;
  }
  .login-error {
    font-size: 13px;
    padding: 12px 13px;
  }
  .small {
    font-size: 12px;
  }
}
@media (max-width: 390px) {
  .content {
    padding-left: 13px;
    padding-right: 13px;
  }
  .topbar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-head .button {
    font-size: 11px;
    padding: 10px 11px;
  }
  .stats {
    gap: 9px;
  }
  .stat-card {
    padding: 15px 12px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-value {
    font-size: 28px;
  }
  .stat-note {
    font-size: 11px;
  }
  .badge {
    font-size: 10px;
  }
  .modal-head {
    padding-left: 16px;
    padding-right: 16px;
  }
  .modal-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .modal-actions {
    padding-left: 16px;
    padding-right: 16px;
  }
  .more-grid {
    gap: 10px;
  }
  .more-grid > button,
  .more-grid > a {
    padding: 17px 13px;
  }
  .more-grid strong {
    font-size: 14px;
  }
  .bottom-nav-item {
    font-size: 9px;
  }
  .load-row {
    grid-template-columns: 95px minmax(0, 1fr) 38px;
    gap: 8px;
  }
  .modal-actions .button {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
  }
}
:root {
  --muted:#68766c;
}
.page-head p,
.muted,
.stat-label,
.stat-note,
.table th,
.table td .small,
.order-meta,
.entity-header p,
.entity-card > p,
.entity-footer,
.op-route,
.op-meta,
.timeline-label small,
.load-label,
.field small,
.detail-meta,
.file-info span,
.file-info small,
.backup-item small,
.audit-item,
.login-card > p,
.login-note,
.empty p {
  color: #68766c;
}
.table td,
.table td strong,
.order-title,
.entity-card h3,
.op-header h3,
.modal-head h2,
.detail-section p,
.file-info strong,
.backup-item strong,
.audit-item strong,
.more-grid strong,
.login-card h1,
.empty h2,
.empty h3 {
  color: #2e4235;
}
.field {
  color: #455c4c;
}
.stat-value {
  color: #245d49;
}
.eyebrow {
  color: #65806c;
}
.op-header > div,
.op-meta > span,
.entity-header > div,
.load-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
body.modal-open {
  overflow: hidden;
}
.mobile-brand {
  display: none;
}
.workspace {
  display: flex;
  flex-direction: column;
}
.workspace > .content {
  width: 100%;
  flex: 1;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 35px 23px;
  color: #718073;
  font-size: 10px;
}
.page-head h1 > span {
  color: var(--green);
}
.sidebar nav {
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #dae4d9 transparent;
}
.sidebar-footer {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  margin-top: auto;
  padding: 18px 6px 0;
}
.sidebar-footer > .user-avatar {
  display: grid;
  place-items: center;
  padding: 0;
}
.sidebar-footer > div:not(.user-avatar) {
  display: block;
  min-width: 0;
}
.sidebar-footer strong {
  overflow-wrap: anywhere;
}
.sidebar-footer small {
  font-size: 10px;
}
.sidebar-footer > .icon-btn {
  width: 30px;
  height: 34px;
  padding: 0;
  margin: 0;
}
.local-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.local-label i {
  width: 5px;
  height: 5px;
  background: #679c7b;
  border-radius: 50%;
}
.stat-value,
.stat-note {
  display: block;
}
.card > .metric-list {
  padding: 0 23px 21px;
}
.calendar-day {
  width: 100%;
  padding: 17px 23px;
  text-align: left;
  transition: background .15s;
}
.calendar-day:hover {
  background: #f7faf5;
}
.calendar-day > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.calendar-day > span:nth-child(2) > strong {
  overflow-wrap: anywhere;
  color: #344c3b;
}
.calendar-day > svg {
  width: 16px;
  height: 16px;
  color: #849581;
  flex-shrink: 0;
}
.mini-date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  min-height: 49px;
  border: 1px solid #e0e8dd;
  border-radius: 9px;
  background: #f4f7f0;
  color: #4a6c50;
  font-size: 21px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.mini-date small {
  font-size: 9px;
  text-transform: uppercase;
  color: #6c7d6b;
  margin: 3px 0 0;
}
.load-row {
  grid-template-columns: minmax(135px, 1fr) minmax(90px, 1.2fr);
}
.load-label strong {
  display: block;
  font-weight: 550;
  color: #3e5644;
  font-size: 12px;
}
.load-label > span {
  display: block;
  font-size: 10px;
  color: #6f7e6e;
  margin-top: 4px;
}
.load-bar > i {
  display: block;
  height: 100%;
  max-width: 100%;
  background: #7eab87;
  border-radius: inherit;
  transition: width .25s;
}
.card > .entity-grid {
  padding: 0 23px 23px;
}
.card > .filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 23px 20px;
}
.card > .filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: #6a7a69;
  min-width: 0;
}
.card > .filters select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.field.compact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.field.compact input {
  width: auto;
  min-height: 35px;
  padding: 6px 10px;
  font-size: 11px;
}
.card > .op-list {
  padding: 21px 23px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #e6ece1;
  padding: 13px 23px;
  font-size: 10px;
  color: #73816d;
  background: #fafcf8;
}
.order-card {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: left;
  border: 1px solid #dfe7da;
  background: white;
  border-radius: 11px;
  padding: 19px;
  transition:
    border-color .15s,
    box-shadow .15s,
    background .15s;
}
.order-card:hover {
  border-color: #b1c5ac;
  box-shadow: 0 5px 16px #1b432a08;
  background: #fefefc;
}
.order-card:active {
  background: #f7faf3;
}
.order-card > .order-meta:first-child {
  margin-top: 0;
  margin-bottom: 13px;
  justify-content: space-between;
}
.order-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  margin-bottom: 5px;
}
.order-title > svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  flex-shrink: 0;
  color: #8a9e7d;
}
.order-card > .muted {
  font-size: 11px;
  display: block;
  overflow-wrap: anywhere;
}
.order-values {
  font-size: 10px;
  margin: 20px 0 13px;
}
.order-values > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6c8062;
  min-width: 0;
}
.order-values > strong {
  font-size: 15px;
  color: #3f6946;
  flex-shrink: 0;
}
.order-card > .order-meta:last-child {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 9px;
}
.text-link {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 0;
  color: var(--green);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.text-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link svg {
  color: #829b7c;
  flex-shrink: 0;
}
.order-link {
  margin-top: 2px;
  margin-bottom: 1px;
  font-size: 12px;
}
.op-card > h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.op-header {
  margin-bottom: 6px;
}
.op-header .op-route {
  margin: 0;
  min-width: 0;
}
.op-header > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.op-card > .op-meta {
  margin-top: 14px;
}
.op-card > .small {
  margin-top: 10px;
}
.op-comment {
  margin-top: 13px;
  padding: 11px 13px;
  border-radius: 7px;
  background: #f6f8f3;
  border-left: 2px solid #d4e2cc;
  font-size: 11px;
  line-height: 1.65;
  color: #6d7d67;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.op-card.delayed {
  border-color: #e4c6ab;
  background: #fffdf8;
}
.op-card.delayed > .op-header .badge.high {
  background: #f9ebdc;
  color: #98613c;
}
.pre-wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entity-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  font-size: 12px;
  color: #68796a;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.entity-card > .head-actions {
  margin-top: 14px;
}
.entity-card > .text-link {
  width: 100%;
  border-top: 1px solid #edf1e6;
  margin-top: 10px;
  padding-top: 10px;
}
.entity-card + .card,
.entity-grid + .card {
  margin-top: 23px;
}
.card > .file-item,
.card > .backup-item,
.card > .audit-item {
  margin-left: 23px;
  margin-right: 23px;
}
.audit-item:before {
  display: none;
}
.audit-item > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.detail-section {
  min-width: 0;
}
.detail-section h2,
.detail-section h3,
.detail-section p {
  overflow-wrap: anywhere;
}
.detail-section .metric-list {
  grid-template-columns: minmax(0, 1fr);
}
.detail-section .metric-list > div {
  font-size: 12px;
}
.detail-section .metric-list strong {
  font-size: 14px;
  text-align: right;
}
.card-body > .card-head {
  padding-left: 0;
  padding-right: 0;
}
.card-body > p {
  margin-bottom: 11px;
  line-height: 1.7;
  font-size: 12px;
}
.card-body > p + .button {
  margin-top: 8px;
}
.file-item > strong {
  font-size: 12px;
  flex-shrink: 0;
}
.badge.active,
.badge.production {
  background: #e8f1e5;
  color: #42704b;
}
.badge.completed {
  background: #e4efdf;
  color: #4a7546;
}
.badge.archived {
  background: #f0f1ed;
  color: #75806f;
}
.badge.admin,
.badge.manager,
.badge.operator {
  background: #eef2e9;
  color: #627356;
}
.form-grid > .notice {
  grid-column: 1/-1;
  margin-bottom: 0;
}
.form-error {
  margin: 18px 0 0;
}
.route-list {
  max-height: 390px;
  counter-reset: route;
  gap: 0;
  padding: 7px 16px;
}
.route-list > .checkbox-row {
  counter-increment: route;
  min-height: 43px;
  border-bottom: 1px solid #e8eee1;
  padding: 8px 0;
}
.route-list > .checkbox-row:last-child {
  border-bottom: 0;
}
.route-list > .checkbox-row:before {
  content: counter(route, decimal-leading-zero);
  color: #a2af98;
  font-size: 10px;
  width: 19px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.route-list > .checkbox-row:has(input:checked) {
  color: #245d49;
}
.plan-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  border: 1px solid #e1e9dc;
  border-radius: 9px;
  background: #f7faf4;
  padding: 16px 18px;
  margin: 0 0 20px;
  font-size: 12px;
  color: #6d7f64;
}
.plan-summary strong {
  color: #376441;
  font-size: 14px;
}
.modal-content > .op-list {
  margin-bottom: 24px;
}
.modal-content > .op-list .op-card > p {
  font-size: 12px;
  margin-top: 8px;
  color: #6b7e63;
  overflow-wrap: anywhere;
}
.modal-content > h3 {
  margin-bottom: 13px;
}
.modal-content > .muted {
  font-size: 12px;
}
.modal-head > div {
  min-width: 0;
}
.modal-content,
.modal-content > * {
  max-width: 100%;
}
.modal-actions > .head-actions {
  max-width: 100%;
}
.timeline-row {
  width: 100%;
  text-align: left;
  padding: 0;
  background: white;
}
.timeline-row:hover {
  background: #fafcf6;
}
.timeline-track {
  display: block;
  overflow: hidden;
}
.timeline-break {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background:
    repeating-linear-gradient(
      135deg,
      #dce4d480 0,
      #dce4d480 3px,
      #f2f5ee80 3px,
      #f2f5ee80 7px);
  pointer-events: none;
}
.timeline-block {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}
.time-scale-track {
  position: relative;
  height: 14px;
  flex: 1;
  min-width: 0;
}
.time-scale:has(.time-scale-track) {
  padding: 11px 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}
.time-scale:has(.time-scale-track):before {
  width: auto;
}
.time-scale-track > span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.time-scale-track > span:first-child {
  transform: none;
}
.time-scale-track > span:last-child {
  transform: translateX(-100%);
}
.login-brand > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.login-brand > div > span {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #7b8c72;
}
.login-brand strong {
  line-height: 1.2;
}
@media (max-width: 1250px) {
  .workspace-footer {
    padding-left: 25px;
    padding-right: 25px;
  }
  .time-scale:has(.time-scale-track) {
    grid-template-columns: 155px minmax(0, 1fr);
  }
}
@media (max-width: 1050px) {
  .card > .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .time-scale:has(.time-scale-track) {
    grid-template-columns: 145px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .workspace {
    max-width: 100vw;
  }
  .workspace-footer {
    padding: 2px 16px 19px;
    font-size: 9px;
    flex-wrap: wrap;
    gap: 5px;
  }
  .workspace-footer > span:last-child {
    display: none;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    font-size: 14px;
    letter-spacing: 1px;
  }
  .mobile-brand img {
    width: 31px;
    height: 31px;
  }
  .topbar .icon-btn {
    width: 44px;
    height: 44px;
  }
  .topbar-actions {
    gap: 2px;
  }
  .today-label,
  .local-label {
    display: none !important;
  }
  .content {
    max-width: 100vw;
    min-width: 0;
  }
  .page-head > div:first-child {
    min-width: 0;
  }
  .page-head h1 {
    overflow-wrap: anywhere;
  }
  .card > .metric-list {
    padding: 0 16px 18px;
  }
  .calendar-day {
    padding: 17px 16px;
    flex-wrap: nowrap;
    gap: 11px;
    font-size: 13px;
  }
  .calendar-day small {
    font-size: 11px;
  }
  .calendar-day .mini-date {
    width: 43px;
    min-height: 47px;
    font-size: 21px;
  }
  .calendar-day .mini-date small {
    font-size: 9px;
  }
  .calendar-day > span:nth-child(2) > strong {
    line-height: 1.4;
  }
  .load-row {
    grid-template-columns: minmax(100px, 1fr) minmax(75px, 1.1fr);
    gap: 13px;
    padding: 13px 0;
  }
  .load-label strong {
    font-size: 13px;
  }
  .load-label > span {
    font-size: 11px;
    line-height: 1.5;
  }
  .card > .entity-grid {
    padding: 0 16px 18px;
  }
  .card > .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    padding: 0 16px 19px;
  }
  .card > .filters label {
    font-size: 11px;
    gap: 7px;
  }
  .filters select,
  .filters input {
    font-size: 16px;
    min-height: 46px;
  }
  .field.compact {
    font-size: 12px;
    gap: 10px;
    max-width: 100%;
    min-height: 44px;
  }
  .field.compact input {
    min-height: 44px;
    font-size: 16px;
    min-width: 0;
    flex: 1;
  }
  .field.compact span {
    flex-shrink: 0;
  }
  .pill {
    min-height: 44px;
  }
  .card > .op-list {
    padding: 17px 16px;
  }
  .table-footer {
    padding: 13px 16px;
    font-size: 10px;
    line-height: 1.5;
    flex-wrap: wrap;
    gap: 4px;
  }
  .table-footer > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .order-card {
    padding: 18px;
    border-radius: 13px;
  }
  .order-title {
    font-size: 16px;
    margin-bottom: 7px;
  }
  .order-card > .muted {
    font-size: 13px;
  }
  .order-card > .order-meta:first-child {
    margin-bottom: 13px;
  }
  .order-values {
    font-size: 12px;
    margin-top: 19px;
    gap: 8px;
  }
  .order-values > strong {
    font-size: 16px;
  }
  .order-values > span {
    flex-wrap: wrap;
    gap: 5px;
  }
  .order-card > .order-meta:last-child {
    font-size: 10px;
    gap: 8px;
  }
  .text-link {
    min-height: 44px;
    font-size: 13px;
    padding: 9px 0;
  }
  .order-link {
    margin-bottom: 0;
    margin-top: 0;
  }
  .op-card > h3 {
    font-size: 16px;
    line-height: 1.5;
  }
  .op-header {
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .op-header > div {
    flex-shrink: 0;
    max-width: 66%;
  }
  .op-header .op-route {
    font-size: 10px;
    line-height: 1.6;
  }
  .op-card > .op-meta {
    margin-top: 14px;
    gap: 10px;
  }
  .op-meta > span {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    overflow-wrap: anywhere;
  }
  .op-meta > span > svg {
    margin-top: 2px;
  }
  .op-comment {
    font-size: 12px;
    line-height: 1.7;
    margin-top: 13px;
    padding: 11px 12px;
  }
  .op-card > .small {
    margin-top: 11px;
    overflow-wrap: anywhere;
  }
  .op-actions .icon-btn {
    flex-shrink: 0;
  }
  .entity-details {
    font-size: 13px;
    gap: 5px;
    margin-top: 13px;
  }
  .entity-details > a {
    font-size: 14px;
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  .entity-card > .text-link {
    min-height: 44px;
    font-size: 13px;
    margin-top: 8px;
  }
  .card > .file-item,
  .card > .backup-item,
  .card > .audit-item {
    margin-left: 16px;
    margin-right: 16px;
  }
  .file-item .icon-btn {
    width: 44px;
    height: 44px;
  }
  .file-item .badge {
    max-width: 100%;
    white-space: normal;
  }
  .file-item > strong {
    font-size: 13px;
  }
  .file-info {
    min-width: 0;
    flex-basis: calc(100% - 90px);
  }
  .file-info strong {
    overflow-wrap: anywhere;
  }
  .detail-section .metric-list strong {
    font-size: 14px;
    white-space: normal;
  }
  .detail-section .metric-list > div {
    align-items: flex-start;
  }
  .detail-section .metric-list > div > span {
    min-width: 0;
  }
  .card-body > p {
    font-size: 13px;
    line-height: 1.7;
  }
  .modal-content {
    overflow-x: hidden;
  }
  .modal-actions > .muted:first-child {
    max-width: none;
    flex-basis: 100%;
    font-size: 10px;
  }
  .modal-actions > .head-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .modal-actions > .head-actions > .button {
    flex: 1;
    min-width: 0;
    white-space: normal;
  }
  .form-grid > .notice {
    font-size: 12px;
  }
  .checkbox-row,
  .check-list label {
    min-height: 44px;
  }
  .weekday {
    min-height: 44px;
    flex: 1 0 38px;
  }
  .days {
    flex-wrap: wrap;
  }
  .check-list {
    max-height: 330px;
  }
  .route-list {
    padding: 5px 12px;
    max-height: 55dvh;
  }
  .route-list > .checkbox-row {
    min-height: 48px;
  }
  .route-list > .checkbox-row:before {
    font-size: 11px;
  }
  .plan-summary {
    padding: 14px;
    gap: 7px 17px;
    font-size: 12px;
    line-height: 1.5;
  }
  .plan-summary > strong {
    font-size: 14px;
    flex-basis: 100%;
  }
  .modal-content > .op-list .op-card > p {
    font-size: 13px;
    line-height: 1.65;
  }
  .modal-content > h3 {
    font-size: 16px;
    line-height: 1.5;
  }
  .modal-content > .muted {
    font-size: 13px;
  }
  .timeline-row {
    padding: 15px 16px;
    min-height: 80px;
  }
  .timeline-label {
    white-space: normal;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .timeline-label small {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .timeline-track {
    width: 100%;
    min-width: 0;
  }
  .time-scale:has(.time-scale-track) {
    display: block;
    padding: 12px 16px 10px;
  }
  .time-scale:has(.time-scale-track):before {
    display: none;
  }
  .time-scale-track {
    width: 100%;
    height: 14px;
  }
  .time-scale-track > span {
    font-size: 10px;
  }
  .badge.active,
  .badge.production,
  .badge.completed,
  .badge.archived {
    font-size: 10px;
  }
  .login-brand > div > span {
    font-size: 9px;
    letter-spacing: 1px;
  }
}
@media print {
  .workspace-footer,
  .mobile-brand,
  .table-footer {
    display: none !important;
  }
  .card > .op-list,
  .card > .entity-grid {
    padding: 10px;
  }
  .calendar-day {
    padding: 8px;
  }
  .timeline-row {
    padding: 0;
  }
  .card > .filters {
    display: none;
  }
  .time-scale:has(.time-scale-track) {
    grid-template-columns: 130px minmax(0, 1fr);
  }
}
.progress {
  display: block;
}
.content > .toolbar {
  padding: 0 0 20px;
}
.more-grid > button {
  position: relative;
}
.more-grid > button > svg:last-child {
  position: absolute;
  right: 18px;
  top: 23px;
  width: 15px;
  height: 15px;
  color: #94a78c;
}
.route-step {
  display: flex;
  align-items: center;
  gap: 9px;
  counter-increment: route;
  border-bottom: 1px solid #e8eee1;
  min-width: 0;
  padding: 5px 0;
}
.route-step:last-child {
  border-bottom: 0;
}
.route-step:before {
  content: counter(route, decimal-leading-zero);
  font-size: 10px;
  line-height: 1;
  color: #92a38a;
  font-variant-numeric: tabular-nums;
  width: 20px;
  flex-shrink: 0;
}
.route-step > .checkbox-row {
  flex: 1;
  min-width: 0;
  padding: 5px 0;
  overflow-wrap: anywhere;
}
.route-step:has(input:checked) > .checkbox-row {
  color: var(--green);
}
.route-step-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1px;
}
.route-step-actions .icon-btn {
  width: 30px;
  height: 34px;
}
.load-details {
  grid-column: 1/-1;
  font-size: 10px;
  line-height: 1.6;
  color: #6f7f69;
  margin-top: -4px;
  overflow-wrap: anywhere;
}
.field input[type=date],
.field input[type=datetime-local] {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 760px) {
  .route-step {
    gap: 7px;
    padding: 3px 0;
  }
  .route-step:before {
    font-size: 10px;
    width: 15px;
  }
  .route-step > .checkbox-row {
    font-size: 13px;
    line-height: 1.5;
    min-height: 44px;
    gap: 8px;
  }
  .route-step-actions {
    gap: 0;
  }
  .route-step-actions .icon-btn {
    width: 44px;
    height: 44px;
  }
  .load-details {
    font-size: 11px;
    line-height: 1.6;
    margin-top: -3px;
  }
  .nowrap {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
@page {
  size: A4 portrait;
  margin: 12mm;
}
@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 10pt;
    min-width: 0;
  }
  .sidebar,
  .topbar,
  .bottom-nav,
  .head-actions,
  .toolbar,
  .op-actions,
  .icon-btn,
  .button,
  .toast,
  .pills,
  .modal-backdrop,
  .nav-label {
    display: none !important;
  }
  .workspace {
    margin: 0;
    padding: 0;
  }
  .content {
    padding: 0;
    max-width: none;
  }
  .page-head {
    margin-bottom: 15px;
  }
  .page-head h1 {
    font-size: 20pt;
    color: #000;
  }
  .page-head p {
    font-size: 9pt;
    color: #555;
  }
  .stats {
    gap: 8px;
  }
  .stat-card,
  .card,
  .entity-card,
  .op-card {
    box-shadow: none;
    border: 1px solid #bbb;
    border-radius: 3px;
    break-inside: avoid;
  }
  .stat-card {
    padding: 10px;
  }
  .stat-value {
    font-size: 19pt;
    color: #000;
  }
  .stat-label,
  .stat-note {
    font-size: 8pt;
    color: #555;
  }
  .card-head {
    padding: 12px 10px;
  }
  .card-body {
    padding: 0 10px 12px;
  }
  .table-wrap {
    overflow: visible;
  }
  .table {
    white-space: normal;
    font-size: 8pt;
  }
  .table th,
  .table td {
    padding: 7px;
    border-color: #ccc;
    color: #222;
  }
  .table th {
    background: #eee;
    color: #222;
  }
  .table td strong {
    font-size: 8pt;
    color: #000;
  }
  .table th:first-child,
  .table td:first-child {
    padding-left: 8px;
  }
  .table th:last-child,
  .table td:last-child {
    padding-right: 8px;
  }
  .badge {
    font-size: 7pt;
    color: #333 !important;
    background: #eee !important;
    border: 1px solid #ddd;
    padding: 3px 5px;
  }
  .badge:before {
    display: none;
  }
  .op-meta,
  .op-route {
    color: #555;
    font-size: 8pt;
  }
  .op-header h3 {
    font-size: 10pt;
    color: #000;
  }
  .progress {
    border: 1px solid #aaa;
  }
  .progress-fill {
    background: #999;
  }
  .split,
  .grid-2,
  .grid-3,
  .entity-grid {
    display: block;
  }
  .timeline-row {
    grid-template-columns: 130px minmax(0, 1fr);
  }
  .timeline-label {
    font-size: 8pt;
    padding: 8px;
  }
  .timeline-label strong {
    font-size: 8pt;
    color: #000;
  }
  .timeline-block {
    border-color: #999;
    color: #222;
    background: #ddd;
  }
  .empty {
    padding: 25px;
  }
  .empty p,
  .empty h2,
  .empty h3 {
    color: #555;
  }
  .page-enter {
    animation: none;
  }
}
