:root {
  --navy: #111111;
  --navy-light: #282828;
  --cyan: #ffdf18;
  --yellow: #ffdf18;
  --cyan-dark: #9d7f00;
  --bg: #f2f2ef;
  --panel: #fff;
  --text: #1c1c1c;
  --muted: #777777;
  --line: #deded8;
  --line-soft: #ecece7;
  --green: #16845a;
  --orange: #a56717;
  --orange-soft: #fff5e4;
  --red: #a63f49;
  --shadow: 0 10px 28px rgba(18, 44, 70, .08);
}

* { box-sizing: border-box; }
[hidden], .day-toolbar[hidden], #new-record[hidden], #notice[hidden], .finance-only[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: Arial, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  padding: 22px 14px 18px;
  color: #dce9f4;
  background: linear-gradient(180deg, #050505, #161616 82%);
}

.brand { display: grid; place-items: center; min-height: 116px; overflow: hidden; border-radius: 12px; background: #000; }
.brand-logo { display: block; width: 210px; height: 72px; object-fit: contain; object-position: center; }

.test-badge {
  margin: 22px 0 24px;
  padding: 11px;
  border: 1px solid #8d7610;
  border-radius: 10px;
  color: #ffe84c;
  background: rgba(255, 223, 24, .09);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
}

.app-nav { display: grid; gap: 5px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  border: 0;
  border-radius: 10px;
  color: #cde0ef;
  background: transparent;
  text-align: left;
  font-size: 14px;
}
.nav-item span { width: 18px; color: #ffe13b; font-size: 17px; text-align: center; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-item.active { color: #fff; background: #2b2b29; box-shadow: inset 4px 0 0 var(--cyan); }
.nav-item.has-alert { color: #fff; background: rgba(255, 223, 24, .13); box-shadow: inset 4px 0 0 var(--yellow); }
.signal-nav-badges {
  display: flex;
  gap: 4px;
  align-items: center;
  width: auto !important;
  margin-left: auto;
}
.signal-nav-count, .signal-nav-mine-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 25px;
  padding: 0 6px;
  border-radius: 999px;
  color: #111;
  background: var(--yellow);
  font-size: 10px;
  font-weight: 950;
}
.signal-nav-mine-count { color: #fff; background: #d94a3b; white-space: nowrap; }
.sidebar-note { margin-top: auto; padding: 15px 7px 0; color: #a1a19a; font-size: 11px; line-height: 1.65; }

.workspace { min-width: 0; padding: 0 26px 28px; }
.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 104px;
  margin: 0 -26px 18px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
}
.workspace-header h1 { margin: 0 0 7px; color: var(--navy); font-size: 27px; }
.workspace-header p { margin: 0; color: var(--muted); font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.access-chip { color: #6f8093; font-size: 12px; white-space: nowrap; }
.fullscreen-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #c9d6e0;
  border-radius: 9px;
  color: #31516d;
  background: #fff;
  font-weight: 800;
}
.fullscreen-button:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.primary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #092a41;
  background: var(--cyan);
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(255, 223, 24, .22);
}
.primary-button:hover { filter: brightness(.97); transform: translateY(-1px); }

.day-toolbar {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 13px 15px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.day-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.day-toolbar input, .day-toolbar select, .secondary-button { height: 38px; border: 1px solid #cbd7e1; border-radius: 8px; background: #fff; }
.day-toolbar input, .day-toolbar select { padding: 0 9px; color: var(--text); }
.android-date-step { touch-action: manipulation; }
.secondary-button { padding: 0 13px; color: #31516d; font-weight: 800; }
.day-toolbar .secondary-button { flex: 0 0 auto; white-space: nowrap; }
.secondary-button:hover { border-color: var(--cyan); }
.secondary-button:disabled { cursor: wait; opacity: .55; }
.day-metric { min-width: 80px; padding: 0 10px 1px; border-left: 1px solid var(--line); }
.day-metric span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.day-metric strong { color: var(--navy); font-size: 17px; }
.sync-status { margin-left: auto; padding-bottom: 5px; color: var(--muted); font-size: 11px; text-align: right; }

.notice { padding: 11px 14px; margin-bottom: 13px; border: 1px solid #e5d36b; border-radius: 11px; color: #65551a; background: #fffbe0; font-size: 12px; }
.notice.warning { border-color: #edcf9e; color: var(--orange); background: var(--orange-soft); }
.notice.error { border-color: #efb7bc; color: var(--red); background: #fff0f1; }
.write-recovery { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-width: 2px; }
.write-recovery[hidden] { display: none; }
.write-recovery p { margin: 4px 0; color: #2b2512; font-weight: 700; }
.write-recovery small { display: block; line-height: 1.45; }
.write-recovery-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.mobile-point-picker[hidden] { display: none; }
.mobile-point-picker { margin-bottom: 12px; padding: 13px; border: 2px solid #e1c400; border-radius: 12px; background: #fffce7; box-shadow: var(--shadow); }
.mobile-point-picker label { display: block; margin-bottom: 8px; color: #1c1c1c; font-size: 13px; font-weight: 950; }
.schedule-point-native-fallback { display: none !important; }
.schedule-point-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.schedule-point-button { min-height: 48px; padding: 8px 10px; border: 2px solid #111; border-radius: 9px; color: #fff; background: #111; font-size: 13px; font-weight: 950; text-align: center; cursor: pointer; touch-action: manipulation; }
.schedule-point-button.is-active { border-color: #111; color: #111; background: var(--yellow); box-shadow: 0 4px 12px rgba(180, 153, 0, .22); }
.schedule-point-button:active { transform: translateY(1px); }
.mobile-point-picker p { margin: 8px 0 0; color: #706414; font-size: 10px; }

.center-grid { display: grid; grid-template-columns: repeat(3, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.center-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.center-card.loading { opacity: .82; }
.center-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.center-header h2 { margin: 0; color: var(--navy); font-size: 17px; }
.center-header span { padding: 6px 9px; border-radius: 999px; color: #6e8293; background: #edf4f6; font-size: 10px; white-space: nowrap; }
.center-schedule { padding: 2px 12px 12px; }
.center-hour { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.center-hour:last-child { border-bottom: 0; }
.hour-time { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; padding-top: 8px; color: #38536d; font-size: 12px; font-weight: 900; }
.hour-capacity-value { display: inline-flex; padding: 2px 5px; border-radius: 999px; color: #6a6a63; background: #f0f0eb; font-size: 8px; font-weight: 900; white-space: nowrap; }
.hour-capacity-action { min-height: 24px; padding: 3px 6px; border: 1px solid #cdb400; border-radius: 7px; color: #272100; background: #fff6a4; font-size: 8px; font-weight: 950; line-height: 1.15; cursor: pointer; }
.hour-capacity-action.is-remove { border-color: #c9c9c0; color: #55554f; background: #f5f5f0; }
.hour-capacity-action:disabled { cursor: wait; opacity: .55; }
.hour-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }

.free-slot, .booking-mini, .loading-slot { min-height: 48px; border-radius: 8px; text-align: left; }
.free-slot {
  display: grid;
  place-items: center;
  border: 1px dashed #cbd8e2;
  color: #91a2b2;
  background: #fbfcfd;
  font-size: 10px;
}
.free-slot:hover { border-color: var(--cyan); color: var(--cyan-dark); background: #f3fcfd; }
.free-slot-wrap { position: relative; min-width: 0; }
.free-slot-wrap .free-slot { width: 100%; padding-right: 72px; }
.free-slot-block {
  position: absolute;
  right: 5px;
  bottom: 5px;
  min-height: 24px;
  padding: 3px 6px;
  border: 1px solid #d9a4a4;
  border-radius: 6px;
  color: #8a2525;
  background: #fff1f1;
  font-size: 8px;
  font-weight: 950;
  cursor: pointer;
}
.free-slot-block:hover { border-color: #b84a4a; background: #ffe5e5; }
.free-slot-block:disabled { cursor: wait; opacity: .55; }
.loading-slot { display: grid; place-items: center; border: 1px solid #e6edf2; color: #91a1af; background: linear-gradient(100deg, #f7f9fa, #eef3f6, #f7f9fa); font-size: 10px; }

.booking-mini-wrap { position: relative; min-width: 0; }
.booking-mini {
  width: 100%;
  padding: 7px 36px 7px 8px;
  border: 1px solid #e5d76f;
  border-left: 4px solid var(--cyan);
  color: var(--text);
  background: #fffce9;
  box-shadow: 0 3px 9px rgba(25, 71, 88, .05);
}
.booking-mini:hover { border-color: #d7b700; transform: translateY(-1px); }
.booking-mini.overbooked { border-left-color: #e5a13e; background: #fff9ef; }
.booking-mini-wrap.status-arrived .booking-mini { border-color: #71be99; border-left-color: var(--green); background: #effaf4; }
.booking-mini-wrap.status-no_show .booking-mini { border-color: #df9ca3; border-left-color: var(--red); background: #fff2f3; }
.schedule-attendance-badge { display: block; margin-top: 5px; color: #666; font-size: 8px; font-weight: 950; }
.status-arrived .schedule-attendance-badge { color: var(--green); }
.status-no_show .schedule-attendance-badge { color: var(--red); }
.schedule-warehouse-chip {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 2px 5px;
  border: 1px solid #cfd4d8;
  border-radius: 5px;
  color: #4e5d65;
  background: #fff;
  font-size: 8px;
  font-weight: 950;
  line-height: 1.25;
  white-space: normal;
}
.schedule-warehouse-found { border-color: #87d7aa; color: #087b4c; background: #eaf8f0; }
.schedule-warehouse-missing { border-color: #e46d77; color: #a5202d; background: #fff0f1; }
.schedule-text-note {
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin-top: 4px;
  padding: 3px 5px;
  border-left: 3px solid #9ba8b0;
  border-radius: 4px;
  color: #43515a;
  background: #f3f6f7;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.schedule-record-comment { border-left-color: #c3a400; color: #675700; background: #fff9cf; }
.schedule-center-comment { border-left-color: #2784b8; color: #145879; background: #edf8ff; }
.schedule-warehouse-comment { border-left-color: var(--red); color: #94212c; background: #fff1f2; }
.schedule-logistics-badge {
  display: block;
  margin-top: 5px;
  padding: 4px 6px;
  overflow: visible;
  border: 1px solid #dfbd00;
  border-radius: 6px;
  color: #171300;
  background: #ffdf18;
  font-size: 8px;
  font-weight: 950;
  line-height: 1.25;
  white-space: normal;
}
.schedule-logistics-badge.logistics-urgent { border-color: #df8200; color: #7b3100; background: #ffe0ae; }
.schedule-logistics-badge.logistics-problem { border-color: #bd4854; color: #8d1723; background: #ffdfe2; }
.schedule-logistics-badge.logistics-ready { border-color: #2b9a6e; color: #075a3a; background: #dff6e9; }
.schedule-logistics-badge.logistics-route-supply:not(.logistics-problem):not(.logistics-ready) {
  border-color: #c2410c;
  color: #5d2108;
  background: #ff9a3d;
}
.schedule-logistics-badge.logistics-route-transit:not(.logistics-problem):not(.logistics-ready) {
  border-color: #1d4ed8;
  color: #fff;
  background: #2563eb;
}
.schedule-logistics-badge.logistics-route-make:not(.logistics-problem):not(.logistics-ready) {
  border-color: #6d28d9;
  color: #fff;
  background: #7c3aed;
}
.schedule-logistics-badge.logistics-urgent:not(.logistics-problem):not(.logistics-ready) {
  box-shadow: 0 0 0 2px #c73543;
}
.booking-edit-button { position: absolute; top: 6px; right: 6px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #d1b600; border-radius: 8px; color: #111; background: #ffdf18; font-size: 16px; font-weight: 950; box-shadow: 0 3px 8px rgba(45, 37, 0, .13); }
.booking-edit-button:hover { background: #111; color: #ffdf18; }
.mini-title { display: -webkit-box; overflow: hidden; margin-bottom: 5px; color: var(--navy); font-size: 10px; font-weight: 900; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-meta { display: block; overflow: hidden; margin-top: 2px; color: #6f8292; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.mini-meta strong { color: #8d7200; }
.mini-phone { color: var(--green); font-weight: 800; }
.crm-phone-link { color: #087a4c !important; font-weight: 950; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; cursor: pointer; }
.crm-phone-link:hover { color: #005c38 !important; }
.page-loading { grid-column: 1 / -1; padding: 70px 20px; color: var(--muted); text-align: center; }
.page-loading .startup-retry { min-height: 44px; margin-top: 16px; padding: 0 20px; border: 2px solid #111; background: var(--yellow); color: #111; }
.schedule-center-pending .page-loading { padding: 38px 16px 44px; }

.safety-note { padding: 17px 0 0; color: #81909e; font-size: 10px; text-align: center; }

.modal[hidden], .toast[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(8, 24, 41, .55); }
.details-card { position: relative; z-index: 1; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 20px; border-radius: 15px; background: #fff; box-shadow: 0 24px 70px rgba(6, 24, 41, .28); }
.create-card { position: relative; z-index: 1; width: min(820px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border: 1px solid #d8bd23; border-radius: 15px; background: #fff; box-shadow: 0 24px 70px rgba(6, 24, 41, .32); }
.details-title { display: flex; justify-content: space-between; gap: 15px; }
.details-title span { color: var(--cyan-dark); font-size: 9px; font-weight: 900; letter-spacing: .8px; }
.details-title h2 { margin: 5px 0 16px; color: var(--navy); font-size: 19px; }
.icon-button { width: 34px; height: 34px; flex: 0 0 34px; border: 0; border-radius: 50%; color: #6f8190; background: #edf2f5; font-size: 21px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.detail-item { padding: 11px; border-radius: 9px; background: #f5f8fa; }
.detail-item span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.detail-item strong { color: var(--text); font-size: 11px; word-break: break-word; }
.details-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.cancel-booking-button { min-height: 42px; padding: 0 16px; border: 1px solid #d94d58; border-radius: 9px; color: #a9222d; background: #fff; font-weight: 900; }
.cancel-booking-button:hover { color: #fff; background: #bd2f3c; }
.details-protected { margin-top: 14px; padding: 11px 13px; border: 1px solid #e4cf55; border-radius: 9px; color: #65551a; background: #fffbe0; font-size: 11px; }

.test-safety { display: grid; gap: 5px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #e4cf55; border-radius: 10px; color: #5d4d00; background: #fffbe0; font-size: 11px; line-height: 1.45; }
.test-safety strong { color: #1b1b1b; font-size: 12px; }
.create-form { display: grid; gap: 14px; }
.create-form label small { display: block; margin-top: 6px; color: #6f7f8c; font-size: 12px; font-weight: 600; line-height: 1.35; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid label { display: grid; gap: 6px; color: #6f6f69; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cfcfc8; border-radius: 8px; color: var(--text); background: #fff; text-transform: none; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 3px solid rgba(255, 223, 24, .25); border-color: #bea200; }
.form-grid input[readonly] { color: #4e4300; background: #fffce6; font-weight: 900; }
.form-grid textarea { resize: vertical; }
.form-wide { grid-column: 1 / -1; }
.create-review { padding: 13px 14px; border: 2px solid #d1b600; border-radius: 10px; color: #242424; background: #fffce7; font-size: 12px; line-height: 1.55; }
.create-review strong { color: #000; }
.form-error { padding: 11px 13px; border: 1px solid #efb7bc; border-radius: 9px; color: var(--red); background: #fff0f1; font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.danger-safe-button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; color: #111; background: #ffdf18; font-weight: 900; box-shadow: 0 7px 18px rgba(255, 223, 24, .22); }
.danger-safe-button:disabled, .primary-button:disabled { cursor: wait; opacity: .55; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 70; max-width: 360px; padding: 13px 16px; border-radius: 10px; color: #fff; background: var(--navy); box-shadow: 0 14px 35px rgba(6, 24, 41, .25); font-size: 12px; }

.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.section-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.section-card h2 { margin: 0 0 14px; color: #171717; font-size: 17px; }
.section-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.section-wide { grid-column: 1 / -1; }
.section-toolbar { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.showcase-date-toolbar {
  position: sticky;
  top: 0;
  z-index: 22;
  margin: -4px -4px 16px;
  padding: 8px 4px 14px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(6px);
}
.section-toolbar label { display: grid; flex: 1; gap: 6px; color: #777; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.section-toolbar select, .section-toolbar input { min-height: 42px; padding: 8px 11px; border: 1px solid #cfcfc8; border-radius: 9px; color: var(--text); background: #fff; text-transform: none; }
.search-field { max-width: 720px; }
.section-kpi { min-width: 90px; padding: 9px 14px; border-left: 3px solid var(--cyan); border-radius: 8px; background: #fffce5; }
.section-kpi span { display: block; color: #867300; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.section-kpi strong { display: block; margin-top: 3px; color: #111; font-size: 20px; }
.showcase-list { display: grid; gap: 11px; }
.showcase-filtered-list { display: grid; gap: 11px; }
.warehouse-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 3px; padding: 10px; border: 1px solid #deded7; border-radius: 12px; background: #f8f8f4; }
.warehouse-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 43px; padding: 8px 10px; border: 2px solid transparent; border-radius: 9px; color: #333; background: #fff; font-size: 10px; font-weight: 900; cursor: pointer; }
.warehouse-filter b { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 6px; border-radius: 999px; color: #111; background: #ecece5; font-size: 11px; }
.warehouse-filter:hover { border-color: #d5c200; }
.warehouse-filter.is-active { border-color: #d8c200; color: #111; background: #fff9c8; box-shadow: 0 4px 13px rgba(202, 181, 0, .15); }
.warehouse-filter-pending b { color: #6e6500; background: #fff1a1; }
.warehouse-filter-found b { color: #075a35; background: #cef2df; }
.warehouse-filter-missing b { color: #8b1d2b; background: #ffd9dd; }
.showcase-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.showcase-tabs button { display: grid; gap: 6px; min-height: 76px; padding: 14px 16px; border: 2px solid #deded7; border-radius: 12px; color: #222; background: #fff; box-shadow: 0 5px 16px rgba(17, 17, 17, .06); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.showcase-tabs button:hover { border-color: #cbb900; background: #fffef4; transform: translateY(-1px); }
.showcase-tabs button.is-active { border-color: #e4cc00; color: #111; background: linear-gradient(135deg, #fffbd8, #fff4a4); box-shadow: 0 7px 20px rgba(224, 198, 0, .18); }
.showcase-role-tabs button { border-width: 3px; }
.showcase-role-tabs button.is-active { border-color: #111; box-shadow: 0 8px 20px rgba(17, 17, 17, .14); }
.showcase-mode-tabs { margin-top: -6px; }
.showcase-tab-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 950; }
.showcase-tab-title b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #111; background: var(--yellow); font-size: 15px; }
.showcase-tabs button small { color: #6f6f68; font-size: 10px; font-weight: 750; line-height: 1.4; }
.showcase-tabs button.is-active small { color: #665a00; }
.showcase-record { display: grid; gap: 7px; padding: 10px 11px; border: 1px solid var(--line); border-left: 5px solid #b8b8b0; border-radius: 10px; background: #fafaf7; }
.showcase-record.status-arrived { border-left-color: var(--green); background: #f3fbf7; }
.showcase-record.status-no_show { border-left-color: var(--red); background: #fff6f7; }
.showcase-record.warehouse-pending { border-right: 5px solid var(--yellow); }
.showcase-record.warehouse-found { border-right: 5px solid var(--green); }
.showcase-record.warehouse-missing { border-right: 5px solid var(--red); }
.booking-warehouse-check { margin-top: 2px; }
.showcase-record-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.showcase-reservation { display: grid; gap: 8px; padding: 14px; border: 1px solid #d7c300; border-left: 5px solid var(--yellow); border-radius: 10px; background: #fffdf0; }
.showcase-reservation h3, .showcase-reservation p { margin: 0; }
.showcase-reservation h3 { font-size: 14px; line-height: 1.35; }
.reservation-phone { color: #08704f; font-size: 13px; font-weight: 950; }
.reservation-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reservation-heading strong { font-size: 15px; }
.reservation-heading span { padding: 4px 8px; border-radius: 999px; color: #111; background: var(--yellow); font-size: 9px; font-weight: 950; }
.reservation-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #333; font-size: 12px; font-weight: 900; }
.reservation-cell-editor { display: grid; grid-template-columns: auto minmax(100px, 1fr) auto; align-items: center; gap: 8px; }
.reservation-cell-editor label { color: #555; font-size: 10px; font-weight: 950; text-transform: uppercase; }
.reservation-cell-editor input { min-height: 38px; padding: 8px 10px; border: 1px solid #cfcfc8; border-radius: 8px; color: #111; background: #fff; font: inherit; font-size: 14px; font-weight: 850; }
.reservation-cell-editor button { min-height: 38px; padding: 8px 11px; border: 1px solid #c2aa00; border-radius: 8px; color: #111; background: var(--yellow); font: inherit; font-weight: 950; cursor: pointer; }
.reservation-comment { padding-top: 7px; border-top: 1px solid #ece3a2; color: #6e6100; font-weight: 800; }
.showcase-reservation.warehouse-found { border-color: #57b68a; border-left-color: var(--green); background: #f4fcf8; }
.showcase-reservation.warehouse-missing { border-color: #e7a1a8; border-left-color: var(--red); background: #fff6f7; }
.reservation-lifecycle-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; }
.reservation-lifecycle-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #d6d6cf;
  border-radius: 9px;
  color: #545454;
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.reservation-lifecycle-tabs button:hover { border-color: #d5c200; }
.reservation-lifecycle-tabs button.is-active { border-color: #d8c200; color: #111; background: #fff9c8; }
.reservation-lifecycle-tabs button b { min-width: 26px; padding: 4px 7px; border-radius: 999px; color: #111; background: #ecece5; text-align: center; }
.reservation-search { display: grid; gap: 6px; max-width: none; margin: 0 0 12px; color: #666; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.reservation-search input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cfcfc8; border-radius: 9px; color: var(--text); background: #fff; font-size: 12px; text-transform: none; }
.reservation-lifecycle-status { width: fit-content; padding: 6px 10px; border-radius: 999px; font-size: 10px; font-weight: 950; }
.reservation-lifecycle-sold { color: #075a35; background: #cef2df; }
.reservation-lifecycle-expired { color: #695f55; background: #ece9e3; }
.showcase-reservation.reservation-sold, .sale-row.reservation-sold { border-color: #91c8aa; background: #f2faf6; }
.showcase-reservation.reservation-expired, .sale-row.reservation-expired { border-color: #c9c5bd; background: #f6f5f2; }
[data-reservation-mark-sold] { border-color: #5da57c !important; color: #075a35 !important; background: #e4f7ec !important; }
[data-reservation-mark-sold]:hover { border-color: #287a4c !important; background: #cef2df !important; }
.warehouse-check { display: grid; gap: 9px; margin-top: 4px; padding-top: 11px; border-top: 1px solid #e4e1c6; }
.compact-warehouse-line { padding-top: 7px; border-top: 1px solid #e4e1c6; }
.compact-condition { padding-top: 7px; padding-bottom: 7px; }
.showcase-comments { border: 1px solid #deded7; border-radius: 8px; background: #fff; }
.showcase-comments summary { padding: 8px 10px; color: #6a5b00; font-size: 10px; font-weight: 900; cursor: pointer; list-style-position: inside; }
.showcase-comments[open] summary { border-bottom: 1px solid #ecece6; background: #fffce7; }
.showcase-comments-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
.showcase-comments > .warehouse-comment { padding: 8px; }
.warehouse-status-line, .warehouse-comment, .warehouse-condition { display: flex; align-items: center; gap: 8px; }
.warehouse-status { margin-right: auto; padding: 6px 10px; border-radius: 999px; color: #6e6500; background: #fff4a8; font-size: 10px; font-weight: 950; }
.warehouse-status-found { color: #075a35; background: #cef2df; }
.warehouse-status-missing { color: #8b1d2b; background: #ffd9dd; }
.warehouse-status-line button, .warehouse-comment button { min-height: 34px; padding: 0 12px; border: 1px solid #cfcfc8; border-radius: 8px; color: #222; background: #fff; font-size: 10px; font-weight: 900; cursor: pointer; }
.warehouse-status-line button:hover, .warehouse-comment button:hover { border-color: #c0a500; background: #fffbe0; }
.warehouse-comment input { min-width: 0; flex: 1; min-height: 36px; padding: 8px 10px; border: 1px solid #cfcfc8; border-radius: 8px; font-size: 11px; }
.warehouse-condition { padding: 9px; border: 1px solid #b9dec9; border-radius: 9px; background: #effaf4; }
.warehouse-condition label { color: #075a35; font-size: 10px; font-weight: 950; }
.warehouse-condition select { min-width: 170px; min-height: 36px; padding: 7px 10px; border: 1px solid #9ccdb3; border-radius: 8px; color: #173c2b; background: #fff; font-size: 11px; font-weight: 800; }
.warehouse-condition button { min-height: 36px; padding: 0 12px; border: 1px solid #77b795; border-radius: 8px; color: #075a35; background: #fff; font-size: 10px; font-weight: 900; cursor: pointer; }
.warehouse-audit { color: #76766f; font-size: 9px; font-weight: 800; }
.record-open { display: grid; gap: 4px; padding: 0; border: 0; color: var(--text); background: transparent; text-align: left; }
.record-open strong { color: #111; font-size: 12px; }
.record-open span { color: #697783; font-size: 10px; }
.showcase-phone { color: var(--green); }
.showcase-safe-date {
  display: grid;
  grid-template-columns: 44px minmax(112px, 1fr) 44px;
  gap: 6px;
  align-items: center;
}
.showcase-safe-date input { width: 100%; text-align: center; }
.showcase-safe-date button {
  min-width: 44px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #d1d1c9;
  border-radius: 8px;
  color: #222;
  background: #fff;
  font-size: 17px;
  font-weight: 950;
  touch-action: manipulation;
}
.showcase-safe-date button:hover { border-color: #c2a900; background: #fffbe1; }
.attendance-line, .attendance-comment { display: flex; align-items: center; gap: 8px; }
.attendance-line button, .attendance-comment button { min-height: 32px; padding: 0 11px; border: 1px solid #d2d2ca; border-radius: 8px; color: #343434; background: #fff; font-size: 10px; font-weight: 900; }
.attendance-line button:hover, .attendance-comment button:hover { border-color: #c0a500; background: #fffbe0; }
.attendance-comment input { min-width: 0; flex: 1; min-height: 34px; padding: 7px 9px; border: 1px solid #d2d2ca; border-radius: 8px; font-size: 10px; }
.status-chip { margin-right: auto; padding: 5px 8px; border-radius: 999px; color: #666; background: #ecece7; font-size: 9px; font-weight: 900; }
.status-chip.status-arrived { color: #0b6b47; background: #dff5ea; }
.status-chip.status-no_show { color: #92333d; background: #ffe0e3; }
.pro-showcase-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}
.pro-showcase-kpis article {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #deded7;
  border-left: 4px solid #b5b5ad;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(17, 17, 17, .04);
}
.pro-showcase-kpis article.is-pending { border-left-color: #d4b500; background: #fffce8; }
.pro-showcase-kpis article.is-ready { border-left-color: var(--green); background: #f2fbf6; }
.pro-showcase-kpis article.is-signal { border-left-color: var(--red); background: #fff5f6; }
.pro-showcase-kpis span {
  display: block;
  overflow: hidden;
  color: #777;
  font-size: 8px;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.pro-showcase-kpis strong { display: block; margin-top: 5px; color: #111; font-size: 21px; }
.pro-showcase-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(320px, 380px);
  gap: 12px;
  align-items: start;
}
.pro-schedule {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #deded8;
  border-radius: 12px;
  background: #fff;
}
.pro-hour-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border-top: 1px solid #ecece7;
}
.pro-hour-row:first-child { border-top: 0; }
.pro-hour-row > time {
  padding-top: 7px;
  color: #28384a;
  font-size: 12px;
  font-weight: 950;
}
.pro-hour-slots {
  display: grid;
  grid-template-columns: repeat(var(--pro-capacity), minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}
.pro-slot-stack { display: grid; gap: 6px; min-width: 0; }
.pro-free-slot {
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 8px;
  border: 1px dashed #c9d5df;
  border-radius: 9px;
  color: #8795a3;
  background: #fbfcfd;
  text-align: center;
  font-size: 9px;
}
.pro-booking-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 78px;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid #dac500;
  border-left: 4px solid var(--yellow);
  border-radius: 9px;
  color: #111;
  background: #fffbe2;
  text-align: left;
  box-shadow: 0 3px 9px rgba(17, 17, 17, .04);
}
.pro-booking-card:hover { border-color: #9f8800; box-shadow: 0 5px 14px rgba(17, 17, 17, .1); }
.pro-booking-card.is-selected { outline: 3px solid rgba(255, 223, 24, .45); outline-offset: 1px; }
.pro-booking-card.pro-arrived {
  border: 2px solid #0b8758;
  border-left: 7px solid #047348;
  background: linear-gradient(135deg, #d8f8e8, #bcefd5);
  box-shadow: 0 5px 14px rgba(4, 115, 72, .2);
}
.pro-booking-card.pro-no_show {
  border-color: #d48189;
  border-left-color: var(--red);
  background: #fff3f4;
}
.pro-booking-card strong,
.pro-booking-card span,
.pro-booking-card b,
.pro-booking-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pro-booking-card strong { font-size: 11px; line-height: 1.3; }
.pro-booking-card span { color: #6c6c65; font-size: 8px; font-weight: 800; }
.pro-booking-card b { color: #0a7551; font-size: 10px; }
.pro-booking-card small { color: #726100; font-size: 8px; font-weight: 900; }
.pro-booking-card.pro-arrived small { color: #075b3c; }
.pro-booking-card.pro-no_show small { color: #8c2e39; }
.pro-booking-card .warehouse-audit {
  overflow: visible;
  color: #5f5d55;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}
.pro-card-cell { color: #383832; font-size: 10px; font-style: normal; font-weight: 900; }
.pro-warehouse-chip,
.pro-drawer-warehouse-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid #c9c9c0;
  border-radius: 7px;
  color: #57574f;
  background: #f4f4ef;
  font-size: 8px;
  font-weight: 950;
}
.pro-warehouse-found { border-color: #30a774; color: #075b3c; background: #d8f6e7; }
.pro-warehouse-missing { border: 2px solid #c64250; color: #8e1725; background: #ffe7e9; }
.pro-drawer-warehouse-status { margin-bottom: 2px; font-size: 10px; }
.pro-booking-card .schedule-logistics-badge {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.pro-detail-panel {
  position: sticky;
  top: var(--showcase-sticky-top, 82px);
  display: grid;
  gap: 10px;
  min-width: 0;
  max-height: calc(100dvh - var(--showcase-sticky-top, 82px) - 12px);
  padding: 15px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid #2e2e2b;
  border-top: 5px solid var(--yellow);
  border-radius: 12px;
  color: #f4f4ef;
  background: linear-gradient(180deg, #10100f, #1d1d1b);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}
.pro-detail-panel.is-empty { min-height: 210px; align-content: center; text-align: center; }
.pro-detail-panel.is-empty strong { color: var(--yellow); font-size: 18px; }
.pro-detail-panel.is-empty p { margin: 0; color: #bdbdb6; font-size: 11px; line-height: 1.5; }
.pro-detail-panel header {
  position: sticky;
  top: -15px;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin: -15px -15px 0;
  padding: 15px 15px 11px;
  border-bottom: 1px solid #393936;
  background: #10100f;
}
.pro-detail-panel header span { display: block; color: #a9a9a2; font-size: 9px; font-weight: 800; }
.pro-detail-panel h2 { margin: 5px 0 0; color: #fff; font-size: 17px; line-height: 1.3; }
.pro-detail-status {
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  color: #111;
  background: var(--yellow);
  font-size: 9px;
  font-weight: 950;
}
.pro-detail-status.pro-arrived { color: #062d20; background: #7ce0b3; }
.pro-detail-status.pro-no_show { color: #fff; background: #c8535f; }
.pro-detail-panel > section { display: grid; gap: 4px; padding: 10px; border: 1px solid #383835; border-radius: 9px; background: #242422; }
.pro-detail-panel > section span,
.pro-detail-field > label { color: #aaa9a1; font-size: 8px; font-weight: 950; text-transform: uppercase; }
.pro-detail-panel > section strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
}
.pro-detail-panel > section small { color: #c8c8c0; font-size: 9px; line-height: 1.4; }
.pro-detail-panel > .warehouse-audit { color: #c8c8c0; font-size: 9px; line-height: 1.4; }
.pro-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.pro-detail-actions button,
.pro-detail-field button {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #66665f;
  border-radius: 8px;
  color: #111;
  background: var(--yellow);
  font-size: 9px;
  font-weight: 950;
}
.pro-detail-actions button:nth-child(2) { color: #f1f1ed; background: #343431; }
.pro-detail-actions button.is-danger { color: #fff; border-color: #a33b46; background: #a33b46; }
.pro-detail-open {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #f0d800;
  border-radius: 8px;
  color: #111;
  background: var(--yellow);
  font-size: 10px;
  font-weight: 950;
}
.pro-detail-panel .crm-phone-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  color: #8de8b9 !important;
  cursor: pointer;
}
.pro-detail-panel .crm-phone-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.pro-detail-field { display: grid; gap: 6px; }
.pro-detail-field > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.pro-detail-field input,
.pro-detail-field select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid #5a5a54;
  border-radius: 8px;
  color: #fff;
  background: #292927;
  font-size: 10px;
}
.pro-detail-field input::placeholder { color: #85857f; }
.data-table { overflow: hidden; padding: 0; }
.data-head, .data-row { display: grid; grid-template-columns: 120px minmax(230px, 1.5fr) 110px 150px 130px 120px; gap: 10px; align-items: center; }
.data-table.no-finance .data-head, .data-table.no-finance .data-row { grid-template-columns: 120px minmax(230px, 1.5fr) 110px 150px 120px; }
.data-head { padding: 10px 13px; color: #7b7b73; background: #f0f0ec; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.data-row { width: 100%; padding: 10px 13px; border: 0; border-top: 1px solid var(--line-soft); color: #333; background: #fff; text-align: left; font-size: 10px; }
.data-row:hover { background: #fffce8; }
.data-row strong { color: #111; font-size: 10px; }
.data-row small, .sale-row small { display: block; margin-top: 3px; color: #8a8a82; font-size: 8px; }
.finance-cell { font-weight: 900; }
.search-results .data-row { grid-template-columns: 120px minmax(230px, 1.5fr) 110px 150px 130px 120px; }
.search-results.no-finance .data-row { grid-template-columns: 120px minmax(230px, 1.5fr) 110px 150px 120px; }
.sales-list { display: grid; gap: 7px; }
.sale-row { display: grid; grid-template-columns: 90px minmax(160px, 1fr) 90px 110px 100px minmax(126px, auto); gap: 8px; align-items: center; padding: 9px; border-radius: 8px; background: #f6f6f2; color: #5e5e57; font-size: 9px; }
.sale-row.no-finance { grid-template-columns: 90px minmax(160px, 1fr) 90px 100px minmax(126px, auto); }
.sale-row strong { color: #111; }
.sale-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.sale-row-actions button { min-height: 34px; padding: 6px 8px; border: 1px solid #c7c7bf; border-radius: 7px; color: #222; background: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.sale-row-actions button.is-danger { border-color: #d98d95; color: #8b2430; background: #fff1f2; }
.signal-toolbar { align-items: end; }
.signal-status-tabs { display: grid; grid-template-columns: repeat(5, minmax(92px, 1fr)); gap: 6px; }
.signal-status-tabs button { min-height: 42px; padding: 0 12px; border: 1px solid #d0d0c8; border-radius: 9px; color: #333; background: #fff; font-size: 10px; font-weight: 900; }
.signal-status-tabs button.is-active { border-color: #cbb400; background: #fff8bd; }
.signal-groups { display: grid; gap: 14px; }
.signal-point-group { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fafaf7; }
.signal-point-group > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f1f1ec; }
.signal-point-group > header h2 { margin: 0; font-size: 14px; }
.signal-point-group > header b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; color: #111; background: var(--yellow); font-size: 11px; }
.signal-point-group > div { display: grid; gap: 8px; padding: 9px; }
.signal-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid #e4c94a; border-left: 5px solid var(--yellow); border-radius: 9px; background: #fffdf0; }
.signal-card.signal-in_progress { border-color: #88b9dc; border-left-color: #2684c7; background: #f2f9ff; }
.signal-card.signal-handled { border-color: #d9d9d2; border-left-color: #aaa; background: #f7f7f4; opacity: .78; }
.signal-card.is-mine { box-shadow: 0 0 0 2px rgba(255, 215, 0, .3); }
.signal-card-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.signal-card-heading span { color: #7a6500; font-size: 8px; font-weight: 950; letter-spacing: .4px; }
.signal-card-heading strong { color: #555; font-size: 9px; }
.signal-card h3 { margin: 5px 0; color: #111; font-size: 12px; }
.signal-card p { margin: 0 0 5px; color: #643b1d; font-size: 11px; font-weight: 800; line-height: 1.45; }
.signal-card small { color: #777; font-size: 9px; }
.signal-workflow-status { display: inline-flex; width: fit-content; margin-top: 6px; padding: 4px 7px; border-radius: 999px; color: #645600; background: #fff1a0; font-size: 8px; font-weight: 950; }
.signal-in_progress .signal-workflow-status { color: #17547c; background: #dcebfa; }
.signal-handled .signal-workflow-status { color: #5c5c56; background: #e7e7e2; }
.signal-actions { display: grid; gap: 6px; min-width: 130px; }
.signal-actions button { min-height: 34px; padding: 0 10px; border: 1px solid #cfcfc8; border-radius: 8px; color: #222; background: #fff; font-size: 9px; font-weight: 900; }
.signal-actions button:last-child { border-color: #c6ab00; background: #fff7a8; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card, .setting-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.stat-card span, .setting-card span { display: block; color: #85857d; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.stat-card strong, .setting-card strong { display: block; margin-top: 7px; color: #111; font-size: 16px; }
.stat-card b { display: block; margin-top: 6px; color: #8b7500; font-size: 12px; }
.stat-main { border-top: 5px solid var(--cyan); }
.stat-main strong { font-size: 24px; }
.manager-stats-grid { display: block; }
.manager-stats-shell { display: grid; gap: 14px; }
.manager-stats-toolbar {
  display: grid;
  grid-template-columns: 180px auto auto minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
}
.manager-stats-toolbar label { display: grid; gap: 5px; color: #777; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.manager-stats-toolbar input { min-height: 40px; padding: 0 10px; border: 1px solid #d1d1c9; border-radius: 8px; background: #fff; font-weight: 900; }
.manager-stats-date { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: end; }
.manager-stats-date > div { display: flex; gap: 4px; }
.manager-stats-date > div button { width: 35px; min-height: 40px; padding: 0; border: 1px solid #d1d1c9; border-radius: 8px; color: #222; background: #fff; font-weight: 950; }
.manager-stats-date > div button:hover { border-color: #c2a900; background: #fffbe1; }
.manager-stats-periods { display: flex; gap: 6px; }
.manager-stats-periods button { min-height: 40px; padding: 0 14px; border: 1px solid #d1d1c9; border-radius: 8px; color: #333; background: #fff; font-size: 10px; font-weight: 950; }
.manager-stats-periods button.is-active { border-color: #c2a900; color: #111; background: var(--yellow); box-shadow: 0 5px 14px rgba(196, 166, 0, .18); }
.manager-stats-progress { min-width: 0; text-align: right; }
.manager-stats-progress span, .manager-stats-progress strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-stats-progress span { color: #777; font-size: 9px; }
.manager-stats-progress strong { margin-top: 5px; color: #222; font-size: 10px; }
.manager-stats-kpis { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 10px; }
.manager-stats-kpis article { padding: 14px; border: 1px solid #deded7; border-top: 4px solid var(--yellow); border-radius: 11px; background: #fff; box-shadow: 0 5px 16px rgba(17, 17, 17, .05); }
.manager-stats-kpis article.is-finance { color: #fff; border-color: #111; background: #111; }
.manager-stats-kpis span { display: block; color: #777; font-size: 8px; font-weight: 950; text-transform: uppercase; }
.manager-stats-kpis strong { display: block; margin-top: 7px; color: #111; font-size: 24px; }
.manager-stats-kpis small { display: block; margin-top: 5px; color: #9d9d95; font-size: 8px; }
.manager-stats-kpis .is-finance span, .manager-stats-kpis .is-finance small { color: #d5d5cd; }
.manager-stats-kpis .is-finance strong { color: var(--yellow); }
.manager-stats-content { display: grid; grid-template-columns: minmax(430px, 1.25fr) minmax(330px, .75fr); gap: 14px; align-items: start; }
.manager-stats-list, .manager-stat-detail { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.manager-stats-list > header { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--line); background: #f7f7f3; }
.manager-stats-list > header span { color: #817000; font-size: 8px; font-weight: 950; text-transform: uppercase; }
.manager-stats-list > header h2 { margin: 4px 0 0; font-size: 18px; }
.manager-stats-list > header b { display: grid; place-items: center; min-width: 31px; height: 31px; padding: 0 8px; border-radius: 999px; background: var(--yellow); font-size: 12px; }
.manager-stats-list > div { display: grid; gap: 8px; padding: 10px; }
.manager-stat-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 11px; border: 2px solid transparent; border-radius: 10px; color: #222; background: #f8f8f4; text-align: left; }
.manager-stat-card:hover { border-color: #e0ca30; background: #fffdf0; }
.manager-stat-card.is-selected { border-color: #d8be00; background: #fff9bd; box-shadow: 0 5px 14px rgba(181, 154, 0, .14); }
.manager-stat-rank { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--yellow); background: #111; font-size: 11px; font-weight: 950; }
.manager-stat-card-main { min-width: 0; }
.manager-stat-card-main > strong { display: block; overflow: hidden; color: #111; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.manager-stat-card-main > small { display: block; margin-top: 4px; color: #74746c; font-size: 9px; }
.manager-maker-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.manager-maker-pills span { padding: 4px 6px; border-radius: 999px; color: #5f5400; background: #fff2a0; font-size: 8px; font-weight: 900; }
.manager-maker-pills span b { color: #111; }
.manager-maker-pills i { color: #999; font-size: 8px; font-style: normal; }
.manager-stat-total { min-width: 82px; text-align: right; }
.manager-stat-total > b { display: block; color: #111; font-size: 21px; }
.manager-stat-total > small, .manager-stat-total > em { display: block; margin-top: 2px; font-size: 8px; font-style: normal; }
.manager-stat-total > small { color: #777; }
.manager-stat-total > em { color: #786600; font-weight: 950; }
.manager-stat-detail > header { padding: 17px; color: #fff; background: #111; }
.manager-stat-detail > header span { color: var(--yellow); font-size: 8px; font-weight: 950; text-transform: uppercase; }
.manager-stat-detail > header h2 { margin: 5px 0 4px; color: #fff; font-size: 21px; }
.manager-stat-detail > header p { margin: 0; color: #c6c6be; font-size: 9px; }
.manager-detail-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 10px; border-bottom: 1px solid var(--line); }
.manager-detail-kpis > span { padding: 10px; border-radius: 8px; background: #f6f6f1; }
.manager-detail-kpis small, .manager-detail-kpis strong { display: block; }
.manager-detail-kpis small { color: #777; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.manager-detail-kpis strong { margin-top: 5px; color: #111; font-size: 15px; }
.manager-stat-detail > section { padding: 13px 15px; border-bottom: 1px solid var(--line-soft); }
.manager-stat-detail > section:last-child { border-bottom: 0; }
.manager-stat-detail h3 { margin: 0 0 10px; font-size: 12px; }
.manager-maker-breakdown, .manager-recent-list { display: grid; gap: 7px; }
.manager-maker-row { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(100px, 1fr); gap: 10px; align-items: center; }
.manager-maker-row span strong, .manager-maker-row span small { display: block; }
.manager-maker-row span strong { color: #222; font-size: 9px; }
.manager-maker-row span small { margin-top: 2px; color: #888; font-size: 7px; }
.manager-maker-row > i { display: block; overflow: hidden; height: 7px; border-radius: 999px; background: #ecece6; }
.manager-maker-row > i b { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }
.manager-recent-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; padding: 8px; border-radius: 8px; background: #f7f7f3; }
.manager-recent-row span { min-width: 0; }
.manager-recent-row strong, .manager-recent-row small, .manager-recent-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-recent-row strong { color: #111; font-size: 9px; }
.manager-recent-row small { margin-top: 3px; color: #85857d; font-size: 7px; }
.manager-recent-row b { color: #655800; font-size: 8px; text-align: right; }
.manager-stats-scope { margin: 0; padding: 10px 12px; border: 1px solid #e5d36b; border-radius: 9px; color: #65551a; background: #fffbe0; font-size: 9px; line-height: 1.45; }
.activity-grid { display: block; }
.activity-shell { overflow: hidden; border: 1px solid #d9d9d0; border-radius: 13px; background: #fff; box-shadow: 0 12px 30px rgba(26, 31, 41, .06); }
.activity-toolbar { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(140px, 170px) minmax(140px, 180px) minmax(190px, 1fr) auto auto 76px; gap: 10px; align-items: end; padding: 13px; border-bottom: 1px solid var(--line); background: #f6f6f1; }
.activity-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.activity-tabs button { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 8px 10px; border: 1px solid #d7d7ce; border-radius: 8px; color: #3b3b37; background: #fff; font-size: 9px; font-weight: 900; cursor: pointer; }
.activity-tabs button b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; color: #555; background: #eeeeea; font-size: 8px; }
.activity-tabs button.is-active { border-color: #d5b800; color: #111; background: #fff8bd; box-shadow: inset 0 -2px 0 var(--yellow); }
.activity-tabs button.is-active b { color: #111; background: var(--yellow); }
.activity-toolbar > label { display: grid; gap: 5px; color: #66665f; font-size: 7px; font-weight: 950; text-transform: uppercase; }
.activity-toolbar select, .activity-toolbar input { min-height: 38px; padding: 7px 10px; border: 1px solid #d4d4cb; border-radius: 8px; color: #222; background: #fff; font-size: 10px; font-weight: 850; }
.activity-toolbar .secondary-button { min-height: 38px; padding: 0 12px; white-space: nowrap; }
.activity-total { display: grid; place-items: center; min-height: 38px; border: 1px solid #e0cb30; border-radius: 8px; background: #fffbe0; }
.activity-total span { color: #82730d; font-size: 6px; font-weight: 950; text-transform: uppercase; }
.activity-total strong { color: #111; font-size: 17px; line-height: 1; }
.activity-list { display: grid; }
.activity-card { --activity-color: #d6b900; display: grid; grid-template-columns: 66px 32px minmax(0, 1fr) auto; gap: 11px; align-items: center; min-height: 82px; padding: 12px 14px; border-bottom: 1px solid #ecece6; border-left: 4px solid var(--activity-color); background: #fff; }
.activity-card:last-child { border-bottom: 0; }
.activity-card:hover { background: #fffdf0; }
.activity-card.is-created { --activity-color: #0d9f65; }
.activity-card.is-updated { --activity-color: #e0b900; }
.activity-card.is-deleted { --activity-color: #d84747; }
.activity-card.is-arrived { --activity-color: #168d66; }
.activity-card.is-center { --activity-color: #2684c7; }
.activity-card.is-handled { --activity-color: #6d6d65; }
.activity-time { text-align: center; }
.activity-time strong, .activity-time small { display: block; }
.activity-time strong { color: #111; font-size: 15px; }
.activity-time small { margin-top: 3px; color: #87877f; font-size: 8px; }
.activity-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #111; background: #fff2a0; font-size: 15px; font-weight: 950; }
.activity-card.is-created .activity-icon, .activity-card.is-arrived .activity-icon { background: #d8f5e7; }
.activity-card.is-deleted .activity-icon { background: #ffe0e0; }
.activity-card.is-center .activity-icon { background: #dff2ff; }
.activity-card.is-handled .activity-icon { background: #ecece7; }
.activity-main { min-width: 0; }
.activity-main > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.activity-main > div span { color: var(--activity-color); font-size: 8px; font-weight: 950; text-transform: uppercase; }
.activity-main > div b { padding: 3px 6px; border-radius: 999px; color: #55554f; background: #f0f0eb; font-size: 7px; }
.activity-main h3 { overflow: hidden; margin: 5px 0 2px; color: #111; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.activity-main p { overflow: hidden; margin: 0; color: #5f5f59; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.activity-main > small { display: block; overflow: hidden; margin-top: 5px; color: #8a8a83; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.activity-open { min-height: 36px; padding: 0 12px; border: 1px solid #d4d4cb; border-radius: 8px; color: #222; background: #fff; font-size: 9px; font-weight: 900; cursor: pointer; }
.activity-open:hover { border-color: #cfb500; background: #fff8bd; }
.settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.capacity-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.capacity-row { display: grid; gap: 6px; padding: 11px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fafaf7; }
.capacity-row span { color: #111; font-size: 12px; font-weight: 900; }
.capacity-row select { min-height: 38px; padding: 7px 9px; border: 1px solid #d4d4ca; border-radius: 8px; background: #fff; font-weight: 900; }
.capacity-row small { color: #667085; font-size: 10px; line-height: 1.35; }
.capacity-date-editor { border-top: 5px solid var(--yellow); }
.capacity-date-field { display: grid; grid-template-columns: 120px minmax(190px, 320px); gap: 10px; align-items: center; margin: 15px 0 4px; color: #333; font-size: 11px; font-weight: 900; }
.capacity-date-field input { min-height: 42px; padding: 8px 10px; border: 1px solid #cecec5; border-radius: 9px; background: #fff; font-weight: 900; }
.capacity-save-status { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid #d9d9d0; border-radius: 10px; color: #555; background: #fafaf6; font-size: 11px; font-weight: 900; }
.capacity-save-status.is-saving { border-color: #d9bd00; color: #5c4e00; background: #fff9c9; }
.capacity-save-status.is-success { border-color: #74c99a; color: #0b6d40; background: #e6f8ee; }
.capacity-save-status.is-error { border-color: #e5a0a7; color: #a42331; background: #fff0f1; }
.capacity-save-status.is-dirty { border-color: #d8c35a; color: #6b5b00; background: #fffce7; }
.capacity-resource-status { color: #667085; font-size: 11px; font-weight: 800; line-height: 1.35; }
.capacity-resource-status.is-warning { color: #9a5b00; }
.access-audit { display: grid; gap: 8px; margin-top: 14px; }
.access-audit-row { display: grid; grid-template-columns: 130px minmax(180px, 1fr) 110px; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fafaf7; }
.access-audit-row strong { color: #111; font-size: 11px; }
.access-audit-row span { color: #667085; font-size: 10px; }
.access-audit-row b { color: #665a00; font-size: 10px; text-align: right; }
.contact-repair-card { border-top: 5px solid var(--yellow); }
.contact-repair-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.contact-repair-status { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid #dadad2; border-radius: 9px; background: #fafaf7; }
.contact-repair-status strong { color: #222; font-size: 11px; line-height: 1.45; }
.contact-repair-status span { color: #667085; font-size: 10px; }
.contact-repair-status.is-dry-run { border-color: #d4b900; background: #fffbe1; }
.contact-repair-status.is-running { border-color: #89bfd1; background: #eefaff; }
.contact-repair-status.is-complete { border-color: #90c5a6; background: #effaf4; }
.contact-repair-results { display: grid; gap: 7px; margin-top: 10px; }
.contact-repair-row { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fafaf7; }
.contact-repair-row strong { color: #111; font-size: 10px; }
.contact-repair-row span, .contact-repair-row small { color: #667085; font-size: 9px; line-height: 1.4; }
.contact-repair-row.is-ready { border-color: #a9d5bb; background: #f2fbf6; }
.contact-repair-row.is-warning { border-color: #e3cb63; background: #fffbed; }
.contact-repair-journal { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.contact-repair-journal summary { color: #544900; font-size: 10px; font-weight: 900; cursor: pointer; }
.contact-repair-log { display: grid; gap: 7px; margin-top: 9px; }
.contact-repair-log-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fafaf7; }
.contact-repair-log-row span { min-width: 0; }
.contact-repair-log-row strong { display: block; overflow: hidden; color: #111; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.contact-repair-log-row small { display: block; margin-top: 3px; color: #667085; font-size: 9px; }
.contact-repair-empty { color: #7b7b73; font-size: 10px; }
.logistics-bootstrap-card { border-top: 5px solid #1f2937; }
.bootstrap-card-heading { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.bootstrap-card-heading h2 { margin-bottom: 5px; }
.bootstrap-card-heading p { margin: 0; }
.bootstrap-flag { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: #8a3232; background: #ffe8e8; font-size: 9px; font-weight: 950; text-transform: uppercase; }
.bootstrap-flag.is-enabled { color: #365400; background: #edf8c9; }
.bootstrap-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.bootstrap-status, .bootstrap-empty { margin: 10px 0; padding: 11px 12px; border: 1px solid #dadad2; border-radius: 9px; color: #4f4f49; background: #fafaf7; font-size: 10px; font-weight: 800; line-height: 1.45; }
.bootstrap-status.is-running { border-color: #8cc6d9; background: #effaff; }
.bootstrap-status.is-success { border-color: #8ec7a5; background: #effaf4; }
.bootstrap-status.is-error { border-color: #df9999; color: #8b2424; background: #fff1f1; }
.bootstrap-plan-summary { display: grid; gap: 7px; margin: 10px 0; padding: 12px; border: 1px solid #d7d7cf; border-radius: 10px; background: #fafaf7; }
.bootstrap-plan-summary.is-valid { border-color: #8fc5a5; background: #f1faf5; }
.bootstrap-plan-summary.is-invalid { border-color: #e09b9b; background: #fff2f2; }
.bootstrap-plan-summary > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: start; }
.bootstrap-plan-summary strong { color: #111; font-size: 10px; }
.bootstrap-plan-summary span, .bootstrap-plan-summary code { overflow-wrap: anywhere; color: #5f5f59; font-size: 9px; line-height: 1.45; }
.bootstrap-identity-audit { display: grid; gap: 8px; margin: 12px 0; padding: 12px; border: 1px solid #deded5; border-radius: 10px; background: #fff; }
.bootstrap-identity-audit h3 { margin: 0; color: #111; font-size: 11px; }
.bootstrap-root-list, .bootstrap-people-list { display: grid; gap: 6px; }
.bootstrap-root-list > div { display: grid; grid-template-columns: 100px minmax(0, 1fr) 80px; gap: 8px; padding: 7px 8px; border-radius: 7px; background: #f7f7f3; }
.bootstrap-root-list strong, .bootstrap-root-list span, .bootstrap-root-list code { overflow-wrap: anywhere; font-size: 9px; }
.bootstrap-people-group { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; padding: 7px 8px; border-radius: 7px; background: #f7f7f3; }
.bootstrap-people-group strong { color: #111; font-size: 9px; }
.bootstrap-people-group span { color: #61615a; font-size: 9px; line-height: 1.4; }
.bootstrap-entity-list { display: grid; gap: 9px; margin-top: 12px; }
.bootstrap-entity-row { display: grid; gap: 9px; padding: 11px; border: 1px solid #d8d8cf; border-left: 5px solid #d4b900; border-radius: 10px; background: #fff; }
.bootstrap-entity-row.is-match { border-left-color: #168d66; background: #f2faf6; }
.bootstrap-entity-row.is-blocked { border-color: #e3a0a0; border-left-color: #c52e2e; background: #fff3f3; }
.bootstrap-entity-row header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.bootstrap-entity-row header span { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bootstrap-entity-row header strong { color: #111; font-size: 11px; }
.bootstrap-entity-row header code, .bootstrap-entity-row header b { color: #5d5d56; font-size: 9px; }
.bootstrap-name-check, .bootstrap-properties { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px minmax(0, 1fr); gap: 7px; align-items: start; }
.bootstrap-name-check span, .bootstrap-properties span, .bootstrap-rights-grid span { color: #77776f; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.bootstrap-name-check code, .bootstrap-properties code { overflow-wrap: anywhere; color: #333; font-size: 8px; line-height: 1.4; }
.bootstrap-rights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bootstrap-rights-grid > div { display: grid; gap: 5px; min-width: 0; padding: 8px; border-radius: 8px; background: #f7f7f3; }
.bootstrap-rights-grid code { overflow-wrap: anywhere; color: #252525; font-size: 8px; line-height: 1.5; }
.bootstrap-rights-empty { color: #8b8b84; font-size: 9px; }
.bootstrap-stop { padding: 8px 9px; border-radius: 7px; color: #9d2424; background: #ffe3e3; font-size: 9px; font-weight: 900; line-height: 1.45; }
.bootstrap-apply-panel { display: grid; gap: 10px; margin-top: 14px; padding: 12px; border: 2px solid #f0cf00; border-radius: 10px; background: #fffce8; }
.bootstrap-confirmation { display: grid; gap: 7px; color: #242424; font-size: 10px; font-weight: 850; }
.bootstrap-confirmation code { padding: 2px 5px; border-radius: 4px; background: #fff2a0; }
.bootstrap-confirmation input { min-height: 40px; padding: 8px 10px; border: 1px solid #c9b000; border-radius: 8px; background: #fff; font-weight: 900; }
.bootstrap-confirmation.is-disabled { opacity: .6; }
.bootstrap-apply-panel .danger-safe-button:disabled { cursor: not-allowed; }
.bootstrap-partial-report { display: grid; gap: 5px; margin: 10px 0; padding: 10px 11px; border: 1px solid #dfa557; border-radius: 9px; background: #fff6e5; }
.bootstrap-partial-report strong { color: #7e4b00; font-size: 10px; }
.bootstrap-partial-report span { color: #6f5d43; font-size: 9px; }
.empty-state { padding: 36px 18px; color: #8a8a82; text-align: center; font-size: 11px; }
.logistics-nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  color: #111;
  background: var(--yellow);
  font-size: 9px;
  font-weight: 950;
}
.logistics-grid { min-width: 0; }
.logistics-shell { display: grid; gap: 12px; min-width: 0; }
.logistics-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d9d9d1;
  border-radius: 13px;
  background: #fff;
}
.logistics-kpis { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 8px; }
.logistics-kpis article {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e1e1da;
  border-radius: 10px;
  background: #f8f8f5;
}
.logistics-kpis .logistics-kpi-supply { border-color: #f97316; background: #fff0e5; }
.logistics-kpis .logistics-kpi-transit { border-color: #2563eb; background: #e3f1ff; }
.logistics-kpis .logistics-kpi-make { border-color: #7c3aed; background: #f3e8ff; }
.logistics-kpis .logistics-kpi-attention { border-color: #d04a55; background: #fff0f1; }
.logistics-kpis span, .logistics-point-filter { color: #6c6c65; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.logistics-kpis strong { color: #111; font-size: 22px; line-height: 1; }
.logistics-toolbar-controls { display: grid; gap: 8px; min-width: 0; }
.logistics-view-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: #ecece8;
}
.logistics-view-switch button {
  min-height: 38px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  color: #55554f;
  background: transparent;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
  cursor: pointer;
}
.logistics-view-switch button.is-active { color: var(--yellow); background: #111; }
.logistics-point-filter { display: grid; gap: 5px; }
.logistics-point-filter select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #d2d2ca;
  border-radius: 9px;
  color: #111;
  background: #fff;
  font-weight: 900;
}
.logistics-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 5px;
  scrollbar-width: thin;
}
.logistics-filters button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d5d5cd;
  border-radius: 9px;
  color: #42423d;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.logistics-filters button b { margin-left: 5px; }
.logistics-filters button.is-active { border-color: #cbb200; color: #111; background: var(--yellow); }
.logistics-filters button[data-logistics-filter="supply"].is-active {
  border-color: #c2410c;
  color: #5d2108;
  background: #ff9a3d;
}
.logistics-filters button[data-logistics-filter="transit"].is-active {
  border-color: #1d4ed8;
  color: #fff;
  background: #2563eb;
}
.logistics-filters button[data-logistics-filter="make"].is-active {
  border-color: #6d28d9;
  color: #fff;
  background: #7c3aed;
}
.logistics-error {
  padding: 10px 12px;
  border: 1px solid #e7b0b0;
  border-radius: 10px;
  color: #9c3030;
  background: #fff1f1;
  font-size: 10px;
  font-weight: 800;
}
.logistics-layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 12px; align-items: start; min-width: 0; }
.logistics-layout-overview { grid-template-columns: minmax(0, 1fr); }
.logistics-layout-overview.has-detail { grid-template-columns: minmax(0, 1fr) 410px; }
.logistics-layout-route { grid-template-columns: minmax(0, 1fr); }
.logistics-overview-wrap {
  min-width: 0;
  overflow: auto;
  border: 1px solid #d9d9d1;
  border-radius: 13px;
  background: #fff;
}
.logistics-overview-grid {
  display: grid;
  grid-template-columns: 58px repeat(var(--logistics-overview-points), minmax(132px, 1fr));
  min-width: max(100%, var(--logistics-overview-min));
}
.logistics-overview-cell {
  min-width: 0;
  min-height: 38px;
  padding: 5px;
  border-right: 1px solid #deded8;
  border-bottom: 1px solid #deded8;
  background: #fff;
}
.logistics-overview-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 48px;
  padding: 8px 5px;
  color: #fff;
  background: #171717;
  text-align: center;
}
.logistics-overview-head strong, .logistics-overview-head span { display: block; }
.logistics-overview-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.logistics-overview-head span { margin-top: 4px; color: var(--yellow); font-size: 8px; font-weight: 900; }
.logistics-overview-corner { left: 0; z-index: 4; }
.logistics-overview-hour {
  position: sticky;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: start center;
  padding-top: 9px;
  color: #163d5e;
  background: #f0f0ed;
  font-size: 10px;
  font-weight: 950;
}
.logistics-overview-bookings { align-content: start; }
.logistics-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  align-items: start;
  width: 100%;
  min-height: 27px;
  margin: 0 0 3px;
  padding: 4px 5px 4px 7px;
  border: 1px solid #e0e0d8;
  border-left: 4px solid #c9c9c2;
  border-radius: 6px;
  color: #111;
  background: #f8f8f5;
  text-align: left;
  cursor: pointer;
}
.logistics-overview-card:last-child { margin-bottom: 0; }
.logistics-overview-card:hover, .logistics-overview-card.is-selected { outline: 2px solid #111; outline-offset: -1px; }
.logistics-overview-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }

.logistics-overview-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2px;
}
.logistics-overview-card .logistics-overview-warehouse-state {
  padding: 3px 4px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}
.logistics-overview-card small { padding: 3px 4px; border-radius: 4px; color: #fff; font-size: 9px; font-weight: 950; line-height: 1.15; white-space: normal; }
.logistics-overview-card.logistics-overview-route-supply { border-left-color: #f97316; background: #fff0e5; }
.logistics-overview-card.logistics-overview-route-supply small { color: #3f1604; background: #f97316; }
.logistics-overview-card.logistics-overview-route-transit { border-left-color: #2563eb; background: #e3f1ff; }
.logistics-overview-card.logistics-overview-route-transit small { background: #2563eb; }
.logistics-overview-card.logistics-overview-route-make { border-left-color: #7c3aed; background: #f3e8ff; }
.logistics-overview-card.logistics-overview-route-make small { background: #7c3aed; }
.logistics-overview-card.logistics-overview-route-ready { border-left-color: #159568; background: #e2f7ef; }
.logistics-overview-card.logistics-overview-route-ready small { background: #159568; }
.logistics-overview-card.logistics-warehouse-found:not(.is-problem):not(.is-overdue) {
  box-shadow: inset 0 0 0 1px #087a4c;
}
.logistics-overview-card.logistics-overview-route-plain.logistics-warehouse-found:not(.is-problem):not(.is-overdue) {
  border-left-color: #087a4c;
  background: #e2f7ef;
}
.logistics-overview-warehouse-state-found { color: #fff; background: #087a4c; }
.logistics-overview-card.logistics-warehouse-missing:not(.is-problem):not(.is-overdue):not(.logistics-overview-route-ready) {
  border-color: #b42333;
  box-shadow: inset 0 0 0 1px #b42333;
}
.logistics-overview-card.logistics-overview-route-plain.logistics-warehouse-missing:not(.is-problem):not(.is-overdue):not(.logistics-overview-route-ready) {
  background: #fff0f2;
}
.logistics-overview-warehouse-state-missing { color: #fff; background: #b42333; }
.logistics-overview-card.is-problem, .logistics-overview-card.is-overdue { border-color: #c83e4d; box-shadow: inset 0 0 0 1px #c83e4d; }
.logistics-overview-card.is-problem small, .logistics-overview-card.is-overdue small { background: #c83e4d; color: #fff; }
.logistics-overview-card.is-urgent { box-shadow: inset 0 0 0 1px #d5b700; }
.logistics-route-plan {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9d9d1;
  border-radius: 13px;
  background: #fff;
}
.logistics-route-plan > header {
  display: grid;
  grid-template-columns: minmax(130px, auto) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  color: #fff;
  background: #171717;
}
.logistics-route-plan > header > div { display: flex; gap: 10px; align-items: baseline; }
.logistics-route-plan > header span {
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.logistics-route-plan > header strong { color: var(--yellow); font-size: 25px; line-height: 1; }
.logistics-route-plan > header p { margin: 0; color: #f4f4ef; font-size: 11px; line-height: 1.4; }
.logistics-route-plan > header p b { color: var(--yellow); }
.logistics-route-plan ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  list-style: none;
}
.logistics-route-plan-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #d9d9d1;
  border-left: 6px solid #2563eb;
  border-radius: 11px;
  background: #f7fbff;
}
.logistics-route-plan-item.is-urgent { border-color: #d5b700; border-left-color: #d5b700; background: #fffbe0; }
.logistics-route-plan-item.is-problem { border-color: #c83e4d; border-left-color: #c83e4d; background: #fff0f1; }
.logistics-route-plan-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #171717;
  font-size: 17px;
  font-weight: 950;
}
.logistics-route-plan-main { min-width: 0; }
.logistics-route-plan-main strong,
.logistics-route-plan-main small,
.logistics-route-plan-main p { display: block; }
.logistics-route-plan-main strong { color: #111; font-size: 15px; }
.logistics-route-plan-main small { margin-top: 3px; color: #4c4c47; font-size: 10px; font-weight: 850; }
.logistics-route-plan-main p {
  overflow: hidden;
  margin: 5px 0 0;
  color: #73736c;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logistics-route-plan-item > em {
  padding: 6px 8px;
  border-radius: 999px;
  color: #fff;
  background: #2563eb;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}
.logistics-route-plan-item.is-urgent > em { color: #111; background: var(--yellow); }
.logistics-route-plan-item.is-problem > em { background: #c83e4d; }
.logistics-route-plan-empty {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 170px;
  padding: 24px;
  color: #66665f;
  text-align: center;
}
.logistics-route-plan-empty strong { color: #111; font-size: 15px; }
.logistics-route-plan > footer {
  padding: 10px 14px;
  border-top: 1px solid #e3e3dc;
  color: #72726c;
  background: #f7f7f3;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.4;
}
.logistics-list {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #d9d9d1;
  border-radius: 13px;
  background: #fff;
}
.logistics-point-chips > div { display: flex; flex-wrap: wrap; gap: 7px; }
.logistics-point-chips button {
  min-height: 42px;
  padding: 8px 11px;
  border: 2px solid #d6d6ce;
  border-radius: 9px;
  color: #222;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  touch-action: manipulation;
}
.logistics-point-chips button.is-active {
  border-color: #111;
  color: #111;
  background: var(--yellow);
}
.logistics-list-head, .logistics-row-open {
  display: grid;
  min-width: 930px;
  grid-template-columns: 92px 125px minmax(180px, 1.35fr) minmax(180px, 1.35fr) minmax(140px, .9fr) minmax(120px, .8fr);
  gap: 10px;
  align-items: center;
}
.logistics-list-head {
  padding: 9px 11px;
  border-bottom: 1px solid #dfdfd7;
  color: #7d7d75;
  background: #f5f5f1;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
}
.logistics-row { border-bottom: 1px solid #e4e4dc; border-left: 4px solid #bdbdb7; }
.logistics-row:last-child { border-bottom: 0; }
.logistics-row.logistics-problem, .logistics-row.logistics-overdue { border-left-color: #d84040; background: #fff7f7; }
.logistics-row.logistics-urgent, .logistics-row.logistics-warning, .logistics-row.logistics-unplanned { border-left-color: #e2c000; background: #fffdf0; }
.logistics-row.logistics-ready { border-left-color: #1b9b67; background: #f3fbf7; }
.logistics-row.logistics-route-supply:not(.logistics-problem):not(.logistics-overdue):not(.logistics-ready) {
  border-left-color: #f97316;
  background: #fff0e5;
}
.logistics-row.logistics-route-transit:not(.logistics-problem):not(.logistics-overdue):not(.logistics-ready) {
  border-left-color: #1d4ed8;
  background: #eaf2ff;
}
.logistics-row.logistics-route-make:not(.logistics-problem):not(.logistics-overdue):not(.logistics-ready) {
  border-left-color: #6d28d9;
  background: #f3e8ff;
}
.logistics-row.logistics-warehouse-found:not(.logistics-problem):not(.logistics-overdue):not(.logistics-ready) {
  box-shadow: inset 0 0 0 1px #087a4c;
}
.logistics-row.logistics-warehouse-found:not(.logistics-route-supply):not(.logistics-route-transit):not(.logistics-route-make):not(.logistics-problem):not(.logistics-overdue):not(.logistics-ready) {
  border-left-color: #087a4c;
  background: #e2f7ef;
}
.logistics-row.logistics-warehouse-missing:not(.logistics-problem):not(.logistics-overdue):not(.logistics-ready) {
  border-left-color: #b42333;
  box-shadow: inset 0 0 0 1px #b42333;
}
.logistics-row.logistics-warehouse-missing:not(.logistics-route-supply):not(.logistics-route-transit):not(.logistics-route-make):not(.logistics-problem):not(.logistics-overdue):not(.logistics-ready) {
  background: #fff0f2;
}
.logistics-row.is-selected { box-shadow: inset 0 0 0 2px #d5ba00; }
.logistics-row-open {
  width: 100%;
  min-height: 64px;
  padding: 9px 11px;
  border: 0;
  color: #151515;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.logistics-row-open:hover { background: rgba(255, 221, 0, .1); }
.logistics-row-open > span { min-width: 0; }
.logistics-row-open strong, .logistics-row-open small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logistics-row-open strong { color: #111; font-size: 10px; line-height: 1.35; }
.logistics-row-open small { margin-top: 3px; color: #77776f; font-size: 8px; line-height: 1.35; }
.logistics-route > strong {
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 6px;
}
.logistics-route.logistics-route-supply > strong { color: #3f1604; background: #f97316; }
.logistics-route.logistics-route-transit > strong { color: #fff; background: #1d4ed8; }
.logistics-route.logistics-route-make > strong { color: #fff; background: #6d28d9; }
.logistics-warehouse-state {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}
.logistics-warehouse-state-found { color: #fff; background: #087a4c; }
.logistics-warehouse-state-missing { color: #fff; background: #b42333; }
.logistics-urgency {
  display: inline-flex;
  width: fit-content;
  padding: 5px 7px;
  border-radius: 999px;
  color: #4f4f49;
  background: #ecece7;
  font-size: 7px;
  font-weight: 950;
  white-space: nowrap;
}
.logistics-problem .logistics-urgency, .logistics-overdue .logistics-urgency { color: #a52222; background: #ffdede; }
.logistics-urgent .logistics-urgency, .logistics-warning .logistics-urgency, .logistics-unplanned .logistics-urgency { color: #5c4f00; background: #fff0a1; }
.logistics-ready .logistics-urgency { color: #0c7249; background: #d8f4e6; }
.logistics-detail-panel {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid #d4d4cc;
  border-top: 5px solid var(--yellow);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 25, 20, .1);
}
.logistics-detail-panel.is-empty { min-height: 210px; place-content: center; color: #77776f; text-align: center; }
.logistics-detail-header { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 10px; align-items: start; }
.logistics-detail-header span { color: #77776f; font-size: 9px; font-weight: 800; }
.logistics-detail-header h2 { margin: 4px 0 0; color: #111; font-size: 17px; line-height: 1.25; }
.logistics-quick-route {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 2px solid #111;
  border-radius: 12px;
  background: #f8f8f4;
}
.logistics-quick-route > div:first-child { display: grid; gap: 3px; }
.logistics-quick-route > div:first-child strong { color: #111; font-size: 11px; font-weight: 950; }
.logistics-quick-route > div:first-child span { color: #6c6c65; font-size: 9px; font-weight: 750; line-height: 1.35; }
.logistics-quick-route-buttons { display: grid; grid-template-columns: 1fr; gap: 8px; }
.logistics-quick-route-buttons button {
  min-height: 48px;
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  cursor: pointer;
}
.logistics-quick-route-buttons button:disabled { cursor: wait; opacity: .62; }
.logistics-quick-route-buttons button.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px #111, 0 0 0 4px #fff;
}
.logistics-quick-route-supply { color: #3f1604; background: #ff9a3d; }
.logistics-quick-route-transit { color: #fff; background: #2563eb; }
.logistics-quick-route-make { color: #fff; background: #7c3aed; }
.logistics-clear-planning {
  width: 100%;
  min-height: 38px;
  border: 1px solid #c8c3b7;
  border-radius: 10px;
  color: #514a3d;
  background: #fff;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.logistics-clear-planning:hover { border-color: #8b806d; background: #f7f4ed; }
.logistics-clear-planning:disabled { cursor: wait; opacity: .62; }
.logistics-advanced-plan {
  padding: 10px;
  border: 1px solid #d8d8d0;
  border-radius: 10px;
  background: #fff;
}
.logistics-advanced-plan summary {
  color: #34342f;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.logistics-advanced-plan[open] summary { margin-bottom: 10px; }
.logistics-advanced-plan .logistics-primary-action { width: 100%; margin-top: 10px; }
.logistics-close {
  width: 38px;
  height: 38px;
  border: 1px solid #d0d0c9;
  border-radius: 9px;
  color: #333;
  background: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.logistics-timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.logistics-timeline span {
  min-width: 0;
  padding: 6px 3px;
  border-radius: 6px;
  color: #999990;
  background: #f0f0ec;
  font-size: 7px;
  font-weight: 900;
  text-align: center;
}
.logistics-timeline span.is-done { color: #5a5000; background: #fff3a9; }
.logistics-timeline span.is-current { color: #111; outline: 2px solid #d8bd00; }
.logistics-client-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.logistics-client-summary > div { min-width: 0; padding: 9px; border: 1px solid #e0e0d8; border-radius: 8px; background: #f8f8f5; }
.logistics-client-summary span, .logistics-client-summary strong { display: block; }
.logistics-client-summary span { color: #77776f; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.logistics-client-summary strong { overflow-wrap: anywhere; margin-top: 4px; color: #111; font-size: 9px; }
.logistics-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.logistics-form-grid label, .logistics-problem-box label {
  display: grid;
  gap: 5px;
  color: #55554f;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
}
.logistics-form-grid input, .logistics-form-grid select, .logistics-form-grid textarea, .logistics-problem-box textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 9px;
  border: 1px solid #d0d0c8;
  border-radius: 8px;
  color: #111;
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  text-transform: none;
}
.logistics-form-grid textarea, .logistics-problem-box textarea { resize: vertical; }
.logistics-form-wide { grid-column: 1 / -1; }
.logistics-primary-action {
  min-height: 44px;
  border: 1px solid #cbb000;
  border-radius: 9px;
  color: #111;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}
.logistics-execution-actions, .logistics-problem-box, .logistics-next-action {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #deded6;
  border-radius: 10px;
  background: #f8f8f5;
}
.logistics-execution-actions > strong { color: #333; font-size: 9px; }
.logistics-execution-actions > div, .logistics-problem-box > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.logistics-execution-actions button, .logistics-problem-box button, .logistics-next-action button {
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #cfcfc7;
  border-radius: 8px;
  color: #222;
  background: #fff;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}
.logistics-problem-box.is-open { border-color: #df9b9b; background: #fff1f1; }
.logistics-next-action { border-color: #d8bd00; background: #fff9c8; }
.logistics-next-action span { color: #6f6200; font-size: 8px; font-weight: 950; }
.logistics-next-action strong { color: #111; font-size: 13px; line-height: 1.35; }
.logistics-next-action button { min-height: 48px; border-color: #c7ad00; background: var(--yellow); font-size: 11px; }
.logistics-center-only {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #5d5000;
  background: #fff0a1;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
}
.logistics-audit, .logistics-boundary-note, .logistics-safety { color: #77776f; font-size: 8px; line-height: 1.45; }
.logistics-safety { margin: 0; text-align: center; }

body.large-mode .app-shell { grid-template-columns: 1fr; }
body.large-mode .sidebar { display: none; }
body.large-mode .workspace { padding-left: 34px; padding-right: 34px; }
body.large-mode .center-grid { grid-template-columns: repeat(3, minmax(360px, 1fr)); }
body.standalone .workspace { padding-left: 30px; padding-right: 30px; }
body.standalone .center-grid { grid-template-columns: repeat(3, minmax(380px, 1fr)); }

@media (min-width: 681px) {
  .center-card { overflow: visible; }
  .center-header {
    position: sticky;
    top: var(--schedule-sticky-top, 76px);
    z-index: 23;
    border-radius: 14px 14px 0 0;
    background: #fff;
    box-shadow: 0 5px 12px rgba(19, 42, 62, .12);
  }
}

@media (min-width: 981px) and (max-width: 1230px) {
  body.large-mode .center-grid,
  body.standalone .center-grid {
    grid-template-columns: repeat(2, minmax(330px, 1fr));
  }
}

@media (max-width: 1360px) { .center-grid { grid-template-columns: repeat(2, minmax(330px, 1fr)); } }
@media (max-width: 1180px) {
  .pro-showcase-layout { grid-template-columns: 1fr; }
  .pro-detail-panel {
    position: static;
    order: -1;
    max-height: 460px;
  }
  .logistics-layout { grid-template-columns: 1fr; }
  .logistics-detail-panel { position: static; order: -1; max-height: 560px; }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .brand strong { font-size: 15px; }
  .center-grid, body.large-mode .center-grid, body.standalone .center-grid { grid-template-columns: minmax(0, 1fr); }
  .day-toolbar { flex-wrap: wrap; }
  .sync-status { width: 100%; margin: 0; text-align: left; }
  .section-grid, .stats-grid, .settings-grid { grid-template-columns: 1fr; }
  .manager-stats-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manager-stats-progress { text-align: left; }
  .manager-stats-kpis { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .manager-stats-content { grid-template-columns: 1fr; }
  .activity-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-tabs { grid-column: 1 / -1; }
  .capacity-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-wide { grid-column: auto; }
  .data-table { overflow-x: auto; }
  .data-head, .data-row { min-width: 850px; }
  .logistics-toolbar { grid-template-columns: 1fr; }
  .logistics-kpis { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .logistics-list { overflow-x: auto; }
  .warehouse-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-showcase-layout { grid-template-columns: 1fr; }
  .pro-detail-panel {
    position: static;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pro-detail-panel > header, .pro-detail-actions, .pro-detail-field { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .write-recovery { align-items: stretch; flex-direction: column; }
  .write-recovery-actions { display: grid; grid-template-columns: 1fr; }
  .app-shell { display: block; }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-width: auto;
    padding: 10px;
  }
  .brand { min-height: 66px; }
  .brand-logo { width: 150px; height: 48px; }
  .test-badge { margin: 8px 0; padding: 8px 10px; font-size: 9px; }
  .app-nav { display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 4px; scrollbar-width: thin; scroll-snap-type: x proximity; }
  .nav-item { flex: 0 0 auto; width: auto; min-height: 44px; padding: 10px 12px; white-space: nowrap; scroll-snap-align: start; }
  .sidebar-note { display: none; }
  .workspace, body.large-mode .workspace, body.standalone .workspace { padding-left: 12px; padding-right: 12px; }
  .workspace-header { align-items: flex-start; flex-direction: column; gap: 12px; min-height: auto; margin-left: -12px; margin-right: -12px; padding: 15px 14px; }
  .workspace-header h1 { margin-bottom: 4px; font-size: 22px; }
  .workspace-header p { font-size: 11px; }
  .header-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .access-chip { grid-column: 1 / -1; white-space: normal; }
  .fullscreen-button, .primary-button { width: 100%; min-height: 44px; padding: 0 10px; font-size: 12px; }
  .day-toolbar { position: static; top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px; padding: 10px; }
  .day-toolbar label { grid-column: 1 / -1; }
  .day-toolbar input, .day-toolbar select, .day-toolbar .secondary-button { width: 100%; min-height: 44px; }
  .day-metric { min-width: 0; padding: 8px 6px; border: 0; border-radius: 8px; background: #f7f7f3; text-align: center; }
  .sync-status { grid-column: 1 / -1; width: 100%; margin: 0; padding: 2px 0 0; text-align: left; }
  .notice { font-size: 11px; line-height: 1.45; }
  .manager-stats-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .manager-stats-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .manager-stats-periods button, .manager-stats-toolbar .secondary-button { width: 100%; min-height: 44px; }
  .manager-stats-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manager-stats-kpis article.is-finance { grid-column: 1 / -1; }
  .manager-stat-card { grid-template-columns: 38px minmax(0, 1fr) 64px; padding: 9px; }
  .manager-stat-rank { width: 38px; height: 38px; }
  .manager-maker-pills span:nth-child(n+4) { display: none; }
  .manager-detail-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manager-detail-kpis > span:last-child:nth-child(3) { grid-column: 1 / -1; }
  .activity-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .activity-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-toolbar > label, .activity-toolbar .secondary-button, .activity-total { width: 100%; min-height: 44px; }
  .activity-card { grid-template-columns: 50px 28px minmax(0, 1fr); gap: 8px; padding: 10px 9px; }
  .activity-time strong { font-size: 13px; }
  .activity-open { grid-column: 2 / -1; width: 100%; min-height: 42px; }
  .activity-main h3, .activity-main p, .activity-main > small { white-space: normal; }
  .center-card { border-radius: 11px; }
  .center-header { padding: 12px; }
  .center-header h2 { font-size: 16px; }
  .center-schedule { padding: 2px 8px 9px; }
  .center-hour { grid-template-columns: 44px minmax(0, 1fr); gap: 5px; }
  .hour-time { font-size: 11px; }
  .hour-slots { grid-template-columns: 1fr; }
  .free-slot, .booking-mini, .loading-slot { min-height: 46px; }
  .booking-edit-button { width: 34px; height: 34px; font-size: 18px; }
  .schedule-text-note { font-size: 10px; -webkit-line-clamp: 3; }
  .section-card { padding: 12px; border-radius: 11px; }
  .section-toolbar { align-items: stretch; flex-direction: column; gap: 9px; }
  .section-toolbar select, .section-toolbar input { width: 100%; min-height: 46px; }
  .showcase-safe-date button { min-height: 46px; }
  .section-kpi { min-width: 0; }
  .capacity-settings { grid-template-columns: 1fr; }
  .capacity-date-field { grid-template-columns: 1fr; }
  .capacity-date-field input { width: 100%; }
  .showcase-tabs { grid-template-columns: 1fr; }
  .showcase-tabs button { min-height: 68px; padding: 12px; }
  .warehouse-filters { gap: 7px; padding: 8px; }
  .warehouse-filter { min-height: 46px; padding: 8px; }
  .warehouse-filter span { line-height: 1.2; }
  .showcase-record, .showcase-reservation { padding: 11px; }
  .showcase-record-top { grid-template-columns: 1fr; gap: 7px; }
  .showcase-comments-grid { grid-template-columns: 1fr; }
  .reservation-cell-editor { grid-template-columns: 1fr; }
  .reservation-cell-editor input, .reservation-cell-editor button { width: 100%; min-height: 46px; }
  .sale-row, .sale-row.no-finance { grid-template-columns: 1fr; gap: 7px; font-size: 11px; }
  .sale-row-actions { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .sale-row-actions button { min-height: 44px; }
  .pro-showcase-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .pro-showcase-kpis article { padding: 9px 10px; }
  .pro-showcase-kpis strong { font-size: 18px; }
  .pro-showcase-layout { display: flex; flex-direction: column; }
  .pro-detail-panel {
    order: -1;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 55dvh;
    padding: 12px;
    border-radius: 11px;
  }
  .pro-detail-panel header {
    top: -12px;
    margin: -12px -12px 0;
    padding: 12px 12px 11px;
  }
  .pro-detail-panel > header, .pro-detail-actions, .pro-detail-field { grid-column: auto; }
  .pro-detail-panel h2 { font-size: 15px; }
  .pro-detail-actions button, .pro-detail-open, .pro-detail-field button, .pro-detail-field input, .pro-detail-field select { min-height: 46px; }
  .pro-detail-field input, .pro-detail-field select { font-size: 16px; }
  .pro-detail-panel .crm-phone-link { min-height: 46px; }
  .pro-detail-actions { gap: 8px; }
  .pro-detail-field > div { grid-template-columns: 1fr; }
  .pro-schedule { width: 100%; }
  .pro-hour-row { grid-template-columns: 45px minmax(0, 1fr); gap: 5px; padding: 7px; }
  .pro-hour-row > time { font-size: 11px; }
  .pro-hour-slots { grid-template-columns: 1fr; }
  .pro-free-slot, .pro-booking-card { min-height: 48px; }
  .pro-booking-card { padding: 8px 9px; }
  .pro-booking-card strong, .pro-booking-card span, .pro-booking-card b, .pro-booking-card small { white-space: normal; }
  .signal-toolbar { align-items: stretch; }
  .signal-status-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .signal-status-tabs button { min-height: 46px; }
  .signal-card { grid-template-columns: 1fr; }
  .signal-actions { grid-template-columns: 1fr 1fr; min-width: 0; }
  .signal-actions button { min-height: 44px; }
  .access-audit-row { grid-template-columns: 1fr; }
  .access-audit-row b { text-align: left; }
  .contact-repair-actions, .contact-repair-log-row { align-items: stretch; flex-direction: column; }
  .contact-repair-actions button, .contact-repair-log-row button { width: 100%; min-height: 44px; }
  .bootstrap-card-heading, .bootstrap-entity-row header { align-items: stretch; flex-direction: column; }
  .bootstrap-actions { display: grid; grid-template-columns: 1fr; }
  .bootstrap-actions button, .bootstrap-apply-panel button { width: 100%; min-height: 46px; }
  .bootstrap-plan-summary > div, .bootstrap-root-list > div, .bootstrap-people-group, .bootstrap-name-check, .bootstrap-properties, .bootstrap-rights-grid { grid-template-columns: 1fr; }
  .bootstrap-confirmation input { min-height: 46px; font-size: 16px; }
  .modal { align-items: stretch; padding: 0; }
  .details-card, .create-card { width: 100%; max-height: 100dvh; min-height: 100dvh; padding: 16px 13px 24px; border: 0; border-radius: 0; }
  .details-grid { grid-template-columns: 1fr; }
  .details-actions { display: grid; grid-template-columns: 1fr; }
  .details-actions button { width: 100%; min-height: 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .form-grid input, .form-grid select, .form-grid textarea { min-height: 46px; }
  .form-actions { display: grid; grid-template-columns: 1fr; }
  .form-actions button { width: 100%; min-height: 46px; }
  .warehouse-status-line, .warehouse-comment, .warehouse-condition, .attendance-line, .attendance-comment { align-items: stretch; flex-direction: column; }
  .warehouse-status { margin-right: 0; }
  .warehouse-status-line button, .warehouse-comment button, .warehouse-condition button, .attendance-line button, .attendance-comment button { width: 100%; min-height: 44px; }
  .warehouse-condition select, .warehouse-comment input, .attendance-comment input { width: 100%; min-width: 0; min-height: 44px; }
  .showcase-record-top .attendance-line, .compact-warehouse-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .showcase-record-top .status-chip, .compact-warehouse-line .warehouse-status { grid-column: 1 / -1; }
  .logistics-toolbar { grid-template-columns: 1fr; padding: 9px; }
  .logistics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logistics-kpis article { padding: 9px; }
  .logistics-view-switch button { min-height: 46px; }
  .logistics-route-plan > header { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .logistics-route-plan-item { grid-template-columns: 36px minmax(0, 1fr); gap: 9px; padding: 10px; }
  .logistics-route-plan-item > em { grid-column: 2; justify-self: start; }
  .logistics-route-plan-main p { white-space: normal; }
  .logistics-filters { overflow-x: auto; scroll-snap-type: x proximity; }
  .logistics-filters button { min-height: 46px; scroll-snap-align: start; }
  .logistics-list { overflow: visible; border: 0; background: transparent; }
  .logistics-list-head { display: none; }
  .logistics-row { margin-bottom: 8px; border: 1px solid #d8d8d0; border-left-width: 5px; border-radius: 10px; background: #fff; }
  .logistics-row-open {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    min-height: 86px;
    gap: 8px;
    padding: 10px;
  }
  .logistics-overview-card { min-height: 38px; }
  .logistics-urgency { grid-column: 1 / -1; }
  .logistics-route { grid-column: 1 / -1; }
  .logistics-stage { grid-column: 1 / -1; }
  .logistics-responsible { display: none; }
  .logistics-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4990;
    border: 0;
    background: rgba(0, 0, 0, .48);
  }
  body.logistics-sheet-open { overflow: hidden; }
  .logistics-detail-panel {
    position: fixed;
    inset: auto 0 0;
    z-index: 5000;
    order: initial;
    width: 100%;
    max-height: 88dvh;
    padding: 14px 13px max(18px, env(safe-area-inset-bottom));
    border: 0;
    border-top: 5px solid var(--yellow);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .34);
  }
  .logistics-detail-panel.is-empty { display: none; }
  .logistics-close, .logistics-primary-action, .logistics-execution-actions button, .logistics-problem-box button, .logistics-next-action button, [data-logistics-action], [data-logistics-save] { min-width: 46px; min-height: 46px; }
  .logistics-form-grid { grid-template-columns: 1fr; }
  .logistics-form-wide { grid-column: auto; }
  .logistics-form-grid input, .logistics-form-grid select, .logistics-form-grid textarea, .logistics-problem-box textarea { min-height: 46px; font-size: 16px; }
  .logistics-client-summary { grid-template-columns: 1fr; }
  .logistics-timeline { overflow-x: auto; grid-auto-columns: minmax(72px, 1fr); }
  .logistics-timeline span { min-height: 34px; }
  .logistics-point-filter select { min-height: 46px; font-size: 16px; }
  .toast { right: 10px; bottom: 10px; left: 10px; max-width: none; }
}
