@charset "UTF-8";
:root {
  --brand-primary: #007396;
  --brand-gold: #d2af64;
  --brand-light: #dcf5fa;
  --green: var(--brand-primary);
  --green2: #00617f;
  --sage: var(--brand-light);
  --cream: #f4fafc;
  --ink: #173d4b;
  --muted: #607680;
  --line: #d7e8ed;
  --gold: var(--brand-gold);
  --white: #fff;
  --red: #b7483b;
  --amber: #a56822;
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #88a5b0;
  outline-offset: 1px;
}
input,
select,
textarea {
  border: 1px solid #d3dde1;
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  width: 100%;
  min-height: 44px;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--green);
}
input[type="file"] {
  font-size: 12px;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
  font-size: 12px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--green);
  font-size: 24px;
}
.icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 11px 16px;
  min-height: 43px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.btn.primary:hover {
  background: var(--green2);
}
.btn:hover {
  border-color: #a2b4ba;
}
.btn.danger {
  color: var(--red);
  background: #fff5f2;
  border-color: #f0d3ca;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.icon-only {
  padding: 10px;
  min-width: 42px;
}
.btn.big {
  font-size: 17px;
  min-height: 56px;
}
.text-link {
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12px;
  color: var(--green);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  background: #ecf0f2;
  color: #5f737a;
  white-space: nowrap;
}
.tag.new {
  background: #edf0f5;
  color: #5e6d88;
}
.tag.assigned {
  background: #fff1d9;
  color: var(--amber);
}
.tag.accepted,
.tag.departed,
.tag.on_site,
.tag.on_board {
  background: #e6eff3;
  color: var(--green2);
}
.tag.completed {
  background: #e3edf1;
  color: #436a78;
}
.tag.cancelled,
.tag.no_show,
.tag.overdue {
  background: #fae8e2;
  color: var(--red);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.layout {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 234px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 29px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  margin-bottom: 38px;
}
.brand img {
  width: 39px;
  height: 39px;
  object-fit: contain;
  border-radius: 10px;
}
.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.brand span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 135px;
}
.nav-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #91a2a9;
  padding: 0 14px;
  margin: 0 0 10px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  color: #6b8189;
  font-size: 13px;
  text-align: left;
  border-radius: 9px;
  font-weight: 500;
}
.nav-item:hover {
  background: #f1f6f8;
}
.nav-item.active {
  background: var(--sage);
  color: var(--green);
  font-weight: 650;
}
.nav-item .count {
  margin-left: auto;
  border-radius: 5px;
  background: #d2dfe3;
  padding: 1px 6px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.sanatorium-mark {
  margin: 0 8px 18px;
  padding: 17px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #9aaaaf;
  text-align: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #efe8d8;
  color: #8c713d;
  font-weight: 600;
  font-size: 12px;
  flex: none;
}
.user-card strong {
  font-size: 11px;
  display: block;
}
.user-card small {
  font-size: 10px;
}
.sidebar .logout {
  margin-left: auto;
  color: var(--muted);
  padding: 5px;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 11px;
}
.breadcrumb b {
  font-weight: 500;
  color: var(--ink);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.online-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #69818a;
}
.online-indicator.offline {
  color: var(--amber);
}
.language {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.bell {
  position: relative;
}
.bell .indicator {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid white;
}
.main {
  padding: 30px 36px 45px;
  max-width: 1800px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading .eyebrow {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.2px;
}
.heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.page-heading h1 {
  margin-bottom: 4px;
}
.demo-banner {
  background: #fbf4df;
  color: #8d7135;
  text-align: center;
  font-size: 10px;
  padding: 6px;
}
.grid {
  display: grid;
  gap: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 21px;
  position: relative;
  min-height: 122px;
}
.stat .stat-icon {
  position: absolute;
  right: 18px;
  top: 17px;
  background: #edf4f6;
  border-radius: 9px;
  padding: 8px;
  color: #748c95;
}
.stat .label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 13px;
  max-width: 80%;
}
.stat .value {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
  white-space: nowrap;
}
.stat .foot {
  font-size: 10px;
  margin-top: 6px;
  color: #8599a0;
}
.stat.featured {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.stat.featured .label,
.stat.featured .foot {
  color: #bdced4;
}
.stat.featured .stat-icon {
  background: #315967;
  color: #c7d7dd;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.panel-body {
  padding: 21px 23px;
}
.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr);
  gap: 21px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff4e5;
  border: 1px solid #eed8ae;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  color: #916325;
}
.alert.red {
  background: #fcf0eb;
  border-color: #eacac0;
  color: var(--red);
}
.alert > div {
  flex: 1;
}
.alert strong {
  font-size: 12px;
}
.alert p {
  font-size: 11px;
  margin-top: 4px;
}
.alert button {
  font-size: 11px;
  text-decoration: underline;
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-tabs {
  display: flex;
  background: #e4ecee;
  padding: 4px;
  border-radius: 11px;
  gap: 2px;
}
.filter-tab {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 11px;
  color: #70868e;
  white-space: nowrap;
}
.filter-tab.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 3px #152d1810;
  font-weight: 600;
}
.search {
  position: relative;
  flex: 1;
  min-width: 200px;
  margin-left: auto;
}
.search input {
  padding-left: 37px;
  font-size: 12px;
}
.search .icon {
  position: absolute;
  left: 12px;
  top: 13px;
  width: 16px;
  height: 16px;
  color: #8b9da4;
}
.filters select {
  width: auto;
  max-width: 200px;
  font-size: 11px;
  min-height: 39px;
  padding: 9px 12px;
}
.filter-dates {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-dates input {
  width: 147px;
  font-size: 12px;
}
.filter-dates label {
  font-size: 11px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
thead {
  color: #83969d;
  background: #f7fafc;
  font-size: 10px;
  font-weight: 500;
}
th {
  font-weight: 500;
  padding: 13px 20px;
  white-space: nowrap;
}
td {
  padding: 17px 20px;
  border-top: 1px solid #eaf0f2;
  vertical-align: middle;
}
.ride-row {
  cursor: pointer;
}
.ride-row:hover {
  background: #f5f9fb;
}
.ride-row.overdue {
  background: #fff8ef;
}
.ride-row.overdue td:first-child {
  box-shadow: inset 3px 0 #d6a05b;
}
.ride-time {
  font-size: 15px;
  font-weight: 650;
  display: block;
  color: var(--ink);
}
.ride-date {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}
.ride-route {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}
.ride-route span:last-child {
  color: var(--muted);
}
.ride-route span {
  font-size: 11px;
}
.ride-guest {
  font-weight: 550;
  display: block;
  white-space: nowrap;
}
.ride-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.driver-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.driver-cell .avatar {
  width: 28px;
  height: 28px;
  font-size: 9px;
  background: #e2eef2;
  color: #64818c;
}
.driver-cell small {
  font-size: 9px;
  display: block;
  margin-top: 3px;
}
.price {
  white-space: nowrap;
  font-weight: 600;
  font-size: 12px;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: #a0b2b9;
}
.empty h3 {
  color: #748991;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
}
.rank-row + .rank-row {
  border-top: 1px solid #ecf1f3;
}
.rank-number {
  font-size: 11px;
  color: #9cabb1;
  width: 16px;
}
.rank-info {
  flex: 1;
  min-width: 0;
}
.rank-info strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.rank-info small {
  display: block;
  font-size: 10px;
  margin-top: 6px;
}
.rank-amount {
  font-size: 12px;
  font-weight: 600;
}
.bar {
  height: 5px;
  background: #eaf1f3;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 9px;
}
.bar span {
  display: block;
  height: 100%;
  background: #a1bec8;
  border-radius: 3px;
}
.payment-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 11px;
}
.payment-row:last-child {
  margin-bottom: 0;
}
.payment-row b {
  font-weight: 550;
}
.payment-row .dot {
  margin-right: 7px;
  background: #86a3ae;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0;
  line-height: 1.6;
}
.period-select {
  display: flex;
  align-items: center;
  gap: 7px;
}
.period-select select {
  font-size: 11px;
  width: 135px;
  min-height: 39px;
}
.schedule {
  min-width: 1050px;
}
.schedule-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 85px;
  border-top: 1px solid var(--line);
}
.schedule-driver {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px;
  font-size: 12px;
}
.schedule-lane {
  position: relative;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(4.166% - 1px),
    #e7eff1 calc(4.166% - 1px),
    #e7eff1 4.166%
  );
  margin: 0 10px;
}
.schedule-head {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 15px 10px 15px 0;
  color: var(--muted);
  font-size: 10px;
}
.hours {
  display: flex;
  justify-content: space-between;
}
.trip-block {
  position: absolute;
  top: 13px;
  min-width: 33px;
  height: 58px;
  border-radius: 7px;
  background: #dae7ec;
  border: 1px solid #b3cbd4;
  color: #385b68;
  padding: 7px;
  font-size: 9px;
  overflow: hidden;
  text-align: left;
}
.trip-block.assigned {
  background: #fff0d6;
  border-color: #e5c28c;
  color: #986b2a;
}
.trip-block.overdue {
  background: #fae4d6;
  border-color: #d6a078;
  color: #a05e30;
}
.trip-block:hover {
  z-index: 3;
  min-width: 150px;
  box-shadow: 0 2px 10px #0002;
}
.trip-block strong {
  display: block;
  margin-bottom: 6px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.catalog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.catalog-card.inactive {
  opacity: 0.6;
}
.catalog-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.catalog-card-head .avatar {
  width: 44px;
  height: 44px;
  font-size: 15px;
}
.catalog-card-head h3 {
  margin-bottom: 5px;
}
.catalog-card .actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: auto;
}
.catalog-card .actions .btn {
  padding: 8px 10px;
  font-size: 10px;
  min-height: 34px;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  line-height: 1.5;
}
.kv span:first-child {
  color: var(--muted);
}
.kv strong {
  font-weight: 550;
  text-align: right;
}
.route-card {
  grid-column: auto;
}
.route-card h3 {
  line-height: 1.6;
}
.tariff-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.tariff-row small {
  font-size: 10px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-grid .panel {
  padding: 24px;
}
.settings-grid h2 {
  margin-bottom: 22px;
}
.settings-grid label {
  margin-bottom: 15px;
}
.settings-grid .full {
  grid-column: 1/-1;
}
.notification-row {
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}
.notification-row.unread {
  background: #eaf3f7;
}
.notification-row strong {
  font-size: 12px;
}
.notification-row p {
  margin-top: 7px;
  font-size: 10px;
  color: var(--muted);
}
.notification-row .icon {
  color: var(--gold);
}
.audit-detail {
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 400px;
  font-size: 10px;
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  max-width: 780px;
  width: calc(100% - 36px);
  max-height: 92dvh;
  box-shadow: 0 24px 90px #122d3040;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #142d3370;
  backdrop-filter: blur(2px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.modal-header h2 {
  font-size: 19px;
}
.modal-body {
  padding: 24px 26px;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 18px 26px;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.field.full {
  grid-column: 1/-1;
}
.field.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  align-self: center;
  font-size: 12px;
}
.field small {
  font-size: 10px;
  line-height: 1.5;
}
.form-error {
  color: var(--red);
  background: #fff3ed;
  border-radius: 9px;
  padding: 13px;
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.form-error:empty {
  display: none;
}
.details-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.details-heading h3 {
  font-size: 24px;
  font-weight: 600;
}
.detail-route {
  padding: 21px;
  background: #edf4f6;
  border-radius: 13px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.5;
}
.detail-route .route-point {
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-route .route-point:first-child {
  padding-bottom: 15px;
  border-bottom: 1px dashed #d1dee2;
  margin-bottom: 15px;
}
.route-point .dot {
  color: #769ead;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
  margin-bottom: 23px;
}
.detail-grid .detail-item small {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
}
.detail-grid .detail-item strong {
  font-size: 13px;
  font-weight: 500;
}
.detail-grid .full {
  grid-column: 1/-1;
}
.detail-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.driver-progress {
  display: flex;
  gap: 4px;
  margin: 20px 0;
}
.driver-progress span {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: #e2ebef;
}
.driver-progress span.done {
  background: #739cab;
}
.driver-primary {
  width: 100%;
  margin-top: 15px;
}
.qr-image {
  display: block;
  max-width: 280px;
  width: 100%;
  margin: 0 auto 20px;
}
.toast-visible {
  transform: translate(-50%, 0) !important;
  opacity: 1 !important;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: 0.2s;
  max-width: calc(100% - 35px);
  padding: 14px 23px;
  border-radius: 11px;
  background: #1e3943;
  color: white;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 4px 20px #0002;
  pointer-events: none;
}
#nameboard {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 60px;
  text-align: center;
}
#nameboard[hidden] {
  display: none;
}
#board-name {
  font-size: clamp(40px, 10vw, 150px);
  font-weight: 700;
  overflow-wrap: anywhere;
  line-height: 1.1;
}
#close-board {
  position: absolute;
  right: 15px;
  top: 8px;
  font-size: 45px;
  color: #555;
}
.login-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}
.login-art {
  background: var(--green);
  color: #f7f2e4;
  padding: 70px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-art::after {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  border: 1px solid #c9cfaa33;
  bottom: -180px;
  right: -170px;
  box-shadow:
    0 0 0 50px #d3c9a108,
    0 0 0 100px #d3c9a108,
    0 0 0 150px #d3c9a108;
}
.login-art .brand {
  margin: 0;
  padding: 0;
}
.login-art .brand strong {
  color: #faf7ed;
}
.login-art .brand span {
  color: #abbcc2;
}
.login-art h1 {
  font-size: 50px;
  line-height: 1.15;
  max-width: 400px;
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 23px;
}
.login-art p {
  font-size: 14px;
  color: #b7c8ce;
  line-height: 1.8;
  max-width: 350px;
}
.login-art small {
  color: #9bb0b8;
  font-size: 11px;
  z-index: 1;
}
.login-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7fafc;
}
.login-content > div {
  max-width: 370px;
  width: 100%;
}
.login-content h2 {
  font-size: 25px;
  margin-bottom: 14px;
}
.login-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 25px;
}
.login-content label {
  margin-top: 17px;
}
.login-content .btn.primary {
  width: 100%;
  margin-top: 20px;
}
.demo-accounts {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.demo-accounts .btn {
  font-size: 10px;
  padding: 8px 10px;
  min-height: 33px;
}
.login-lang {
  position: absolute;
  right: 25px;
  top: 20px;
}
.login-separator {
  border-top: 1px solid var(--line);
  margin: 28px 0 22px;
}
.phone-layout .sidebar {
  display: none;
}
.phone-layout.layout {
  display: block;
}
.phone-layout .workspace {
  margin: 0;
}
.phone-layout .main {
  max-width: 820px;
  padding-bottom: 100px;
}
.phone-layout .topbar {
  height: 68px;
  padding: 0 22px;
}
.phone-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}
.phone-brand img {
  width: 30px;
  height: 30px;
}
.mobile-bottom {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: white;
  border-top: 1px solid var(--line);
  z-index: 20;
  justify-content: space-around;
}
.mobile-bottom button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  padding: 5px 18px;
  border-radius: 8px;
}
.mobile-bottom button.active {
  background: #e5eff3;
  color: var(--green);
}
.trip-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.trip-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.trip-card.overdue {
  border-color: #d8ad71;
}
.trip-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.trip-card-top .time {
  font-size: 24px;
  font-weight: 600;
}
.trip-card-body {
  padding: 18px 20px;
}
.trip-card-body h3 {
  margin: 16px 0 9px;
  font-size: 14px;
}
.trip-card-route {
  font-size: 13px;
  line-height: 1.8;
}
.trip-card-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.trip-card-foot .btn {
  min-width: 140px;
}
.trip-card-money {
  font-size: 13px;
  font-weight: 550;
}
.mobile-toggle {
  display: none;
}
.sync-banner {
  padding: 12px;
  background: #fff1d9;
  color: var(--amber);
  font-size: 12px;
  text-align: center;
}
.legal-note {
  color: #85989f;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 25px;
}
.hide {
  display: none !important;
}
@media (min-width: 1600px) {
  .main {
    padding: 36px 46px;
  }
  .stats {
    gap: 22px;
  }
  .stat {
    padding: 24px;
    min-height: 140px;
  }
  .stat .value {
    font-size: 34px;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    gap: 8px;
    padding: 0 6px;
  }
  .brand span {
    max-width: 120px;
    font-size: 9px;
  }
  .main {
    padding: 25px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 17px 16px;
  }
  .stat .value {
    font-size: 25px;
  }
  .stat .stat-icon {
    display: none;
  }
  .two-cols {
    grid-template-columns: 1fr;
  }
  .two-cols > .stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters {
    gap: 7px;
  }
  .filter-tab {
    padding: 8px 10px;
  }
  .search {
    min-width: 180px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 50px 40px;
  }
  .login-art h1 {
    font-size: 43px;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
    width: 240px;
    box-shadow: 10px 0 50px #0003;
  }
  .sidebar.open {
    display: flex;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 62px;
    padding: 0 16px;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .breadcrumb {
    gap: 7px;
    font-size: 10px;
  }
  .breadcrumb span {
    display: none;
  }
  .topbar-actions {
    gap: 7px;
  }
  .online-indicator {
    font-size: 0;
  }
  .online-indicator .dot {
    width: 7px;
    height: 7px;
  }
  .main {
    padding: 23px 17px 40px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 21px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
    line-height: 1.5;
  }
  .heading-actions .btn {
    font-size: 11px;
    padding: 9px 11px;
  }
  .heading-actions .btn .icon {
    width: 15px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat {
    padding: 17px;
    min-height: 112px;
  }
  .stat .label {
    font-size: 10px;
    max-width: 100%;
    margin-bottom: 14px;
  }
  .stat .value {
    font-size: 27px;
  }
  .stat .foot {
    font-size: 9px;
  }
  .two-cols > .stack {
    display: flex;
  }
  .panel-header {
    padding: 17px;
  }
  .panel-header h2 {
    font-size: 15px;
  }
  .panel-body {
    padding: 17px;
  }
  .filters {
    gap: 10px;
  }
  .filter-tabs {
    width: 100%;
    overflow: auto;
  }
  .filter-tab {
    flex: 1;
    padding: 9px 11px;
  }
  .search {
    width: 100%;
    margin: 0;
    flex: auto;
  }
  .filters select {
    flex: 1;
    max-width: none;
  }
  .alert {
    padding: 12px;
    gap: 9px;
  }
  .alert p {
    font-size: 10px;
    line-height: 1.5;
  }
  .table-wrap {
    font-size: 11px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-card {
    padding: 19px;
  }
  .form-grid {
    gap: 14px;
  }
  .field {
    font-size: 10px;
  }
  .modal-header {
    padding: 18px;
  }
  .modal-body {
    padding: 20px 18px;
  }
  .modal-footer {
    padding: 15px 18px;
  }
  .details-heading h3 {
    font-size: 21px;
  }
  .detail-grid {
    gap: 18px 13px;
  }
  .detail-grid .detail-item strong {
    font-size: 12px;
  }
  .detail-actions .btn {
    flex: 1;
    font-size: 11px;
  }
  .detail-actions .btn.big {
    font-size: 15px;
  }
  .filter-dates input {
    width: 130px;
  }
  .filter-dates {
    gap: 7px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 35px 27px;
    min-height: 310px;
    gap: 35px;
  }
  .login-art h1 {
    font-size: 35px;
    max-width: 280px;
    margin-bottom: 13px;
  }
  .login-art p {
    font-size: 12px;
    max-width: 270px;
  }
  .login-art small {
    display: none;
  }
  .login-art .brand {
    margin-bottom: 0;
  }
  .login-content {
    padding: 35px 28px 50px;
  }
  .login-content h2 {
    font-size: 23px;
  }
  .login-lang {
    color: white;
    z-index: 5;
  }
  .phone-layout .main {
    padding-top: 24px;
  }
  .phone-layout .page-heading h1 {
    font-size: 25px;
  }
  .phone-layout .filters {
    margin-bottom: 19px;
  }
  .phone-layout .filter-tab {
    padding: 10px 9px;
    font-size: 12px;
  }
  .phone-layout .topbar-actions .online-indicator {
    display: block;
  }
  .trip-card-foot .btn {
    min-height: 49px;
    font-size: 14px;
  }
  .phone-layout .stats {
    margin-bottom: 18px;
  }
  dialog {
    width: calc(100% - 20px);
    max-height: 94dvh;
    border-radius: 17px;
  }
  .settings-grid .panel {
    padding: 20px;
  }
  #toast {
    bottom: 90px;
    white-space: normal;
    width: max-content;
    text-align: center;
  }
  .period-select select {
    width: 112px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .settings-grid .full {
    grid-column: auto;
  }
  .page-heading .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.filter-dates select {
  width: 150px;
  font-size: 12px;
  min-height: 43px;
}
.filter-dates {
  align-items: center;
}
.status-note {
  max-width: 160px;
}

.demo-role-switch {display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.demo-role-switch .btn {min-height:36px;font-size:13px;padding:7px 12px}
.demo-welcome {max-width:1180px;margin:0 auto;padding:64px 28px}
.demo-welcome .brand {color:var(--green,#1f4350);margin-bottom:44px}
.demo-welcome h1 {font-size:clamp(30px,4vw,52px);margin:18px 0}
.demo-welcome>p {max-width:760px;line-height:1.7}
.demo-role-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin:36px 0}
.demo-role-card {text-align:left;display:flex;flex-direction:column;gap:18px;min-height:215px;cursor:pointer;color:inherit}
.demo-role-card strong {font-size:22px}.demo-role-card span {line-height:1.6;color:#62757c}
.source-scope {margin:20px 0}.cash-panel,.source-table {margin:24px 0}
.cash-panel .stats {margin-top:0}
@media(max-width:650px){.demo-welcome{padding:30px 18px}.demo-role-grid{grid-template-columns:1fr}.demo-role-card{min-height:150px}.demo-role-switch{justify-content:flex-start;padding:0 12px}.demo-role-switch .btn{font-size:12px}}

.demo-person {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 32px;background:#f0f4f6;border-bottom:1px solid var(--line);flex-wrap:wrap}
.demo-employee-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:20px}
.demo-employee-card {display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;min-height:150px}
.ride-author {flex-basis:100%;display:flex;flex-direction:column;gap:5px;border:1px solid var(--line);border-radius:12px;background:#f0f4f6;padding:14px 16px;margin-bottom:7px}
.ride-author strong {font-size:16px}.ride-author small {font-size:12px;line-height:1.5}
.ride-author-meta {margin-top:8px;font-size:11px;line-height:1.5;max-width:260px}
.source-filters {align-items:flex-end;margin:18px 0}.source-filters .field {min-width:190px;flex:1}.employee-source {display:block;margin-top:6px;white-space:normal;font-weight:400}
@media(max-width:650px){.demo-person{padding:12px 18px}.source-filters .field{min-width:100%}}

.guide-link{display:block;color:inherit;opacity:.8;font-size:12px;text-decoration:none;margin:0 0 20px;line-height:1.6}.guide-link:hover{opacity:1;text-decoration:underline}

/* Event colors always include a written label. */
.audit-events {display:grid;gap:16px}.audit-event {border-left:4px solid #6389b7;padding:14px 18px;background:#f3f7fc;border-radius:8px}.audit-event.amber {border-color:#bc881e;background:#fff9e9}.audit-event.green {border-color:#32845e;background:#edf7f0}.audit-event.red {border-color:#c73939;background:#fff0ef}.audit-event .event-label {font-weight:700;margin-right:12px}.audit-who {color:#5e7178;font-size:13px}.audit-change {display:flex;flex-wrap:wrap;gap:6px 10px;margin:9px 0}.audit-change del {color:#6a7176}.audit-event pre {white-space:pre-wrap;overflow-wrap:anywhere}.tag.cancelled,.tag.no_show {background:#ffe4e1;color:#aa2929}.catalog-card .actions {flex-wrap:wrap}.catalog-card small {display:block}

/* Event colour is always paired with a text label. */
.audit-events{display:grid;gap:16px}.audit-event{border-left:4px solid #6389b7;padding:14px 18px;background:#f6f8fa;border-radius:8px}.audit-event.amber{border-color:#bc881e;background:#fff9e9}.audit-event.green{border-color:#32845e;background:#edf7f0}.audit-event.red{border-color:#c73939;background:#fff0ef}.event-label{font-weight:700;margin-right:12px}.audit-who{font-size:13px;color:#626d72;margin:8px 0 12px}.audit-change{display:flex;flex-wrap:wrap;gap:6px 10px;margin:9px 0}.audit-change del{color:#6a7176}.audit-event pre{white-space:pre-wrap;overflow-wrap:anywhere}.tag.cancelled,.tag.no_show{background:#ffe4e1;color:#aa2929}.catalog-card .actions{flex-wrap:wrap}

/* Visibility affects presentation only; inputs retain their stored values. */
[hidden] { display:none !important; }
.visibility-group { margin:24px 0; }
.visibility-row { display:grid; grid-template-columns:32px minmax(190px,1fr) minmax(210px,1.1fr); gap:12px; padding:14px 0; border-top:1px solid var(--line,#ddd); align-items:start; }
.visibility-row input { width:20px; height:20px; margin-top:3px; }
.visibility-row label { cursor:pointer; }
.visibility-row code { font-size:11px; overflow-wrap:anywhere; }
.visibility-row small { display:block; margin-top:4px; }
@media(max-width:700px) { .visibility-row {grid-template-columns:28px 1fr;} .visibility-row > .hint {grid-column:2;} }

/* Palette from the supplied hotel brandbook, RGB, page 6. */
.sidebar,.login-art {background:var(--brand-primary)}
.sidebar .brand,.login-art .brand {color:#fff}
.sidebar .nav-item.active {background:#fff;color:#005c78;box-shadow:inset 4px 0 var(--brand-gold)}
.demo-banner {background:var(--brand-light);border-bottom:1px solid #badfe8;color:#174858}
.demo-role-switch {display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.demo-role-switch .btn {background:#fff;border:1px solid #82b8c9;color:#005c78;white-space:normal}
.demo-role-switch .btn.primary {background:var(--brand-primary);color:#fff;border-color:var(--brand-primary)}
.demo-role-switch .btn[data-id="system_admin"] {box-shadow:inset 0 -3px var(--brand-gold)}
.work-login-entry {background:var(--brand-light);border:1px solid #badfe8;border-top:4px solid var(--brand-gold);border-radius:16px;padding:24px;margin-top:28px}
.work-login-entry h2 {font-size:21px;margin:0 0 10px}
.work-login-entry p {max-width:780px}
.status-legend {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;align-items:center}
.status-tags {display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.state-new {--state-color:#b45a10;--state-bg:#fff1e5}
.state-assigned {--state-color:#d29a00;--state-bg:#fff0a3}
.state-accepted {--state-color:#007396;--state-bg:#dcf5fa}
.state-completed {--state-color:#07843b;--state-bg:#ccf4d8}
.state-cancelled {--state-color:#d51e32;--state-bg:#ffd1d7}
.ride-row[class*="state-"] {background:var(--state-bg)}
.ride-row[class*="state-"]:hover {filter:brightness(.97)}
.ride-row[class*="state-"] td:first-child {box-shadow:inset 4px 0 var(--state-color)}
.trip-card[class*="state-"] {border-left:5px solid var(--state-color)}
.trip-card[class*="state-"] .trip-card-top {background:var(--state-bg)}
.trip-block[class*="state-"] {background:var(--state-bg);border-color:var(--state-color);color:#173d4b}
.tag.new {background:#fff1e5;color:#8c4309}
.tag.assigned {background:#ffdc32;color:#483500}
.tag.accepted,.tag.departed,.tag.on_site,.tag.on_board {background:#dcf5fa;color:#005c78}
.tag.completed {background:#07843b;color:#fff}
.tag.cancelled,.tag.no_show {background:#d51e32;color:#fff}
.tag.overdue {background:#fff1e5;color:#8c4309;white-space:normal}
.audit-event.blue {border-color:var(--brand-primary);background:#eef9fc}
.audit-event.orange {border-color:#b45a10;background:#fff1e5}
.audit-event.amber {border-color:#d29a00;background:#fff0a3}
.audit-event.green {border-color:#07843b;background:#ccf4d8}
.audit-event.red {border-color:#d51e32;background:#ffd1d7}
@media(max-width:600px){.status-tags{max-width:230px}.demo-role-switch .btn{font-size:12px;min-height:42px}.work-login-entry{padding:20px}}
/* Readable navigation on the exact primary brand color. */
.sidebar .nav-item{color:#fff}
.sidebar .nav-item.active{color:#005c78}
.sidebar .nav-item:not(.active):hover{background:#00617f}
.sidebar .guide-link,.sidebar .user-card strong,.sidebar .logout{color:#fff}
.sidebar .sanatorium-mark{color:#f4dda7}
.sidebar .user-card small{color:#dcf5fa}

/* Owner-approved request event colors, 25 November 2026. Status transitions are unchanged. */
.state-created,.state-new{--state-color:#78949f;--state-bg:#fff}
.state-processing,.state-assigned,.state-accepted{--state-color:#07843b;--state-bg:#ccf4d8}
.state-changed{--state-color:#d29a00;--state-bg:#fff0a3}
.state-completed{--state-color:#007396;--state-bg:#dcf5fa}
.tag.created,.tag.new{background:#fff;color:#173d4b;box-shadow:inset 0 0 0 1px #9bb4be}
.tag.processing,.tag.assigned,.tag.accepted,.tag.departed,.tag.on_site,.tag.on_board{background:#07843b;color:#fff}
.tag.changed{background:#ffdc32;color:#483500}
.tag.completed{background:#007396;color:#fff}
.status-phase{flex-basis:100%;font-size:11px;line-height:1.4}
.audit-event.created{border-color:#78949f;background:#fff}
.audit-event.processing{border-color:#07843b;background:#ccf4d8}
.audit-event.changed{border-color:#d29a00;background:#fff0a3}
.audit-event.completed{border-color:#007396;background:#dcf5fa}
.audit-event.cancelled{border-color:#d51e32;background:#ffd1d7}

.trip-card-car{font-weight:600;line-height:1.5;margin-bottom:8px;overflow-wrap:anywhere}

.status-phase,.ride-row[class*=state-] small,.ride-row[class*=state-] .ride-meta,.ride-row[class*=state-] .ride-date,.trip-card[class*=state-] .trip-card-top .muted{color:#355461}

/* Existing settings collected in the administrator cabinet. */
.admin-settings { margin: 20px 0; }
.admin-rules { padding: 20px; margin: 20px 0; }
.completion-time { display: block; max-width: 28rem; }
.completion-time[hidden] { display: none; }
.trip-card-foot { flex-wrap: wrap; }
.btn:disabled { cursor: not-allowed; opacity: .6; }
.admin-rules p { margin: 10px 0; line-height: 1.5; }
.admin-rules h3 { margin: 18px 0 10px; }
.file-control { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.file-control input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-button { padding: 7px 9px; border-radius: 8px; background: var(--brand-light); color: var(--brand-primary); font-weight: 600; }
.file-name { overflow-wrap: anywhere; }
.file-control:focus-within { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
/* Separate vehicle inventories retain the existing responsive card grid. */
.fleet-section { margin-top: 28px; }
.fleet-section h2 { margin: 0 0 16px; font-size: 22px; }

.account-access { margin-bottom: 12px; }
.account-access .btn { width: 100%; }
.account-setup-notice { display:flex; align-items:center; gap:16px; justify-content:space-between; flex-wrap:wrap; margin-bottom:20px; }
.account-setup-notice p { margin:0; flex:1 1 250px; }

.ride-date-cell, .ride-time-cell { white-space: nowrap; }

/* Выбор точек маршрута в форме заявки. */
.route-point-field {position:relative;min-width:0;}
.route-point-input {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;}
.route-point-input input {min-width:0;width:100%;}
.route-point-toggle {padding:10px 12px;font-size:12px;min-height:44px;}
.route-point-menu {position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:30;background:#fff;border:1px solid var(--line);border-radius:10px;max-height:190px;overflow-y:auto;box-shadow:0 8px 22px #173d4b22;padding:5px;}
.route-point-menu[hidden] {display:none;}
.route-point-menu .route-point-option {display:block;width:100%;padding:10px;text-align:left;white-space:normal;min-height:40px;border:0;box-shadow:none;}
.route-point-option:hover,.route-point-option:focus {background:var(--brand-light);outline:2px solid var(--brand-primary);outline-offset:-2px;}
.route-point-empty {padding:8px;margin:0;}
.ride-empty-row td {white-space:normal;}

/* Готовая пара заметна сразу при открытии заявки. */
.route-template-picker {padding:14px;border:2px solid var(--brand-primary);border-radius:12px;background:var(--brand-light);gap:8px;}
.route-template-picker > .field {margin:0;}
.route-template-picker select {width:100%;min-height:48px;font-weight:600;background:#fff;}
.route-template-picker small {font-weight:400;line-height:1.45;}
@media (max-width:600px) {.route-point-field {grid-column:1 / -1;}}

/* Личные настройки доступны через аватарку на любом экране. */
.account-avatar {cursor:pointer;min-width:34px;min-height:34px;}
.account-topbar {display:none;}
.phone-layout .account-topbar {display:grid;}
.personal-account strong {font-size:18px;}
@media(max-width:760px){.account-topbar {display:grid;}}

/* Индивидуальная форма: все обязательные блоки остаются на месте. */
dialog:has(form[data-form="ride"]) {width:min(960px,calc(100vw - 32px));}
.ride-form-toolbar {display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.ride-form-toolbar small {color:var(--muted);}
.ride-form-blocks {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.ride-form-block {min-width:0;border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff;}
.ride-form-block.block-wide {grid-column:1 / -1;}
.ride-form-block>header {display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;}
.ride-form-block h3 {font-size:16px;margin:0;color:var(--brand-primary);}
.ride-block-handle {touch-action:none;user-select:none;}
.ride-block-handle.ride-block-dragging {cursor:grabbing;opacity:.6;}
.ride-form-block.ride-drop-target {outline:2px solid var(--brand-primary);outline-offset:2px;}
.ride-form-block details>summary {cursor:pointer;font-weight:600;padding:8px 0;}
.ride-form-block details>.form-grid {margin-top:12px;}
.ride-block-handle {display:none;cursor:grab;font-size:24px;min-width:44px;min-height:44px;}
.ride-form-configuring .ride-block-handle {display:block;}
.ride-form-customizer {border:2px solid var(--brand-primary);background:var(--brand-light);padding:16px;border-radius:12px;margin-bottom:16px;}
.ride-form-customizer[hidden] {display:none;}
.ride-layout-list {list-style:none;padding:0;display:grid;gap:12px;}
.ride-layout-list li {display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:white;padding:12px;border-radius:8px;}
.ride-layout-list li>strong {min-width:140px;}
.ride-layout-list label {display:grid;gap:4px;font-size:12px;flex:1;}
.ride-layout-buttons,.ride-layout-actions {display:flex;flex-wrap:wrap;gap:8px;}
.ride-layout-buttons button {min-height:44px;}
form[data-form="ride"] .modal-footer {position:sticky;bottom:0;background:#fff;z-index:35;}
@media(max-width:600px){.ride-form-blocks,.ride-form-block .form-grid {grid-template-columns:minmax(0,1fr);}.ride-form-block,.ride-form-block.block-wide {grid-column:1;}.ride-form-customizer {padding:12px;}.ride-layout-list li>strong {width:100%;}.ride-form-block {padding:12px;}}

.avatar {position:relative;overflow:hidden;}
.avatar img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;}
dialog:has(.employee-form) {width:min(680px,calc(100vw - 24px));border-radius:22px;}
.employee-form .modal-header {position:relative;display:block;}
.employee-form .modal-header>.icon-only {position:absolute;right:20px;top:24px;}
.employee-form-kicker {display:block;color:var(--brand-primary);font-weight:650;margin-bottom:8px;}
.employee-form .form-grid {grid-template-columns:minmax(0,1fr);gap:18px;}
.employee-photo-picker {display:flex;flex-direction:row;align-items:center;gap:20px;margin:6px 0 12px;}
.employee-photo-preview {position:relative;overflow:hidden;display:grid;place-items:center;width:76px;height:76px;flex:none;border-radius:50%;background:var(--brand-light);color:var(--brand-primary);font-weight:650;font-size:24px;}
.employee-photo-preview img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.employee-photo-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0;}
.employee-photo-choose {position:relative;overflow:hidden;border:1px solid var(--line);color:var(--brand-primary);background:#fff;}
.employee-photo-choose input {position:absolute;inset:0;opacity:0;cursor:pointer;max-width:100%;}
.employee-form details {border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;}
.employee-form details summary {font-weight:650;cursor:pointer;}
.employee-form details summary small {display:block;font-weight:400;color:var(--muted);margin-top:4px;}
.employee-invitation-hint {margin:10px 0 0;}
@media(max-width:600px){.employee-photo-picker {flex-direction:column;gap:12px;}.employee-form .modal-header h2 {font-size:23px;padding-right:22px;}.employee-form .modal-footer {flex-wrap:wrap;}}
.shared-selection {display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--brand-light);margin:16px 0;}
.shared-selection small {width:100%;color:var(--muted);}
td[data-shared-picker] input {width:22px;height:22px;min-width:22px;accent-color:var(--brand-primary);}
.shared-order {border:1px solid var(--line);border-radius:10px;padding:16px;margin:12px 0;}
.shared-order p {margin:8px 0;overflow-wrap:anywhere;}
.shared-order .actions {display:flex;gap:8px;flex-wrap:wrap;}
.shared-run-badge .btn {min-height:30px;padding:4px 8px;}
.reason-dialog {width:min(560px,calc(100vw - 24px));}
.reason-dialog .modal-body {display:grid;gap:16px;}
.reason-dialog textarea {min-height:110px;}
