/*
 * Кабинет «Трансфер 23»: стиль сайта zen23.ru —
 * тёмная боковая панель, фирменный жёлтый, светлое рабочее поле.
 */
:root {
    --t23-yellow: #ffc100;
    --t23-yellow-2: #ffd54a;
    --t23-yellow-soft: #fff3c4;
    --t23-ink: #171717;
    --t23-sidebar: #141414;
    --t23-sidebar-2: #222222;
    --t23-bg: #f4f4f2;
    --t23-card: #ffffff;
    --t23-card-2: #f7f7f5;
    --t23-border: #e7e7e3;
    --t23-text: #171717;
    --t23-muted: #74746f;
    --t23-blue: #2a78d6;
    --t23-red: #ff5a5f;
    --t23-green: #22c55e;
    --t23-orange: #ff9f1c;
    --t23-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .04);
}

.dark {
    --t23-bg: #0f0f0f;
    --t23-card: #1a1a1a;
    --t23-card-2: #232323;
    --t23-border: #2e2e2e;
    --t23-text: #f2f2f2;
    --t23-muted: #a0a09a;
    --t23-yellow-soft: #3a3110;
    --t23-shadow: none;
}

/* ---------- Каркас Filament ---------- */
.fi-body, .fi-main-ctn { background: var(--t23-bg); }

.fi-sidebar,
.fi-sidebar-header {
    background: var(--t23-sidebar) !important;
    border-color: var(--t23-sidebar-2) !important;
}
.fi-sidebar-header { box-shadow: none !important; }
.fi-sidebar-item-btn { border-radius: 12px !important; transition: background .15s; }
.fi-sidebar-item-label, .fi-sidebar-item-icon { color: #c9c9c4 !important; }
.fi-sidebar-group-label { color: #7d7d78 !important; font-size: 11px !important; text-transform: uppercase; letter-spacing: .08em; font-weight: 800 !important; }
.fi-sidebar-group-collapse-btn .fi-icon { color: #7d7d78 !important; }
.fi-sidebar-item-btn:hover { background: var(--t23-sidebar-2) !important; }
.fi-sidebar-item.fi-active .fi-sidebar-item-btn { background: var(--t23-yellow) !important; box-shadow: 0 6px 18px rgba(255, 193, 0, .25); }
.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-icon { color: var(--t23-ink) !important; font-weight: 800; }
.fi-sidebar-item-badge-ctn .fi-badge { font-weight: 800; }
.fi-sidebar-nav { scrollbar-color: #333 transparent; }

/* Логотип в боковой панели */
.t23-brand { display: flex; align-items: center; gap: 10px; height: 2.5rem; }
.t23-brand__logo { height: 2.4rem; width: 2.4rem; border-radius: 8px; }
.t23-brand__logo--dark { display: none; }
.fi-simple-layout .t23-brand__logo--dark { display: block; }
.fi-simple-layout .t23-brand__logo--light { display: none; }
.dark .fi-simple-layout .t23-brand__logo--dark { display: none; }
.dark .fi-simple-layout .t23-brand__logo--light { display: block; }
.t23-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.t23-brand__name { font-weight: 900; font-size: 17px; letter-spacing: -.02em; color: #fff; }
.t23-brand__sub { font-size: 11px; font-weight: 700; color: var(--t23-yellow); text-transform: uppercase; letter-spacing: .12em; }
.fi-simple-layout .t23-brand__name { color: var(--t23-text); }
.fi-topbar .t23-brand__name { color: var(--t23-text); }
.fi-topbar .t23-brand__logo--dark { display: block; }
.fi-topbar .t23-brand__logo--light { display: none; }

.fi-topbar, .fi-topbar nav { background: var(--t23-card) !important; }
.fi-header-heading { letter-spacing: -.02em; font-weight: 900 !important; }
.fi-header-subheading { color: var(--t23-muted) !important; }

.fi-section, .fi-ta-ctn, .fi-wi-stats-overview-stat, .fi-wi-chart .fi-section {
    border-radius: 18px !important;
    box-shadow: var(--t23-shadow) !important;
}
.fi-ta-header-heading, .fi-section-header-heading { font-weight: 800 !important; letter-spacing: -.01em; }

/* Карточки цифр: жёлтая полоска сверху */
.fi-wi-stats-overview-stat { position: relative; overflow: hidden; }
.fi-wi-stats-overview-stat::before {
    content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--t23-yellow), var(--t23-yellow-2));
    opacity: .9;
}
.fi-wi-stats-overview-stat-value { letter-spacing: -.03em; font-weight: 900 !important; }

/* Кнопки фирменного цвета: тёмный текст на жёлтом */
.fi-btn.fi-color-primary { color: var(--t23-ink) !important; font-weight: 800; }

/* ---------- Вход ---------- */
.fi-simple-layout {
    background:
        radial-gradient(900px 520px at 50% -12%, rgba(255, 193, 0, .28), transparent 70%),
        linear-gradient(180deg, rgba(20, 20, 20, .78), rgba(20, 20, 20, .92)),
        url('scenes/lake.jpg') center / cover no-repeat,
        var(--t23-sidebar);
}
.fi-simple-main { border-radius: 24px !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .35) !important; }
.t23-login-intro { text-align: center; margin: -4px 0 6px; }
.t23-login-intro__title { font-weight: 900; font-size: 15px; }
.t23-login-intro__text { font-size: 13px; color: var(--t23-muted); margin-top: 2px; }

/* ---------- Карточки и элементы страниц ---------- */
.t23-card {
    background: var(--t23-card);
    border: 1px solid var(--t23-border);
    border-radius: 18px;
    color: var(--t23-text);
}
.t23-panel { padding: 20px; min-width: 0; }
.t23-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.t23-sub { margin: 3px 0 0; font-size: 13px; color: var(--t23-muted); }
.t23-muted { color: var(--t23-muted); }
.t23-empty { padding: 28px 12px; text-align: center; color: var(--t23-muted); font-size: 14px; }

.t23-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 800;
    background: color-mix(in srgb, var(--tone) 16%, transparent);
    color: color-mix(in srgb, var(--tone) 80%, var(--t23-text));
}
.t23-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }
.t23-tone-danger { --tone: var(--t23-red); }
.t23-tone-warning { --tone: var(--t23-orange); }
.t23-tone-info { --tone: var(--t23-blue); }
.t23-tone-success { --tone: var(--t23-green); }
.t23-tone-yellow { --tone: #c99700; }
.t23-tone-violet { --tone: #8b5cf6; }
.t23-tone-teal { --tone: #14b8a6; }
.t23-tone-indigo { --tone: #4f46e5; }
.t23-tone-gray { --tone: #8a8a85; }

/*
 * Следующий шаг оператора: бледно-зелёная кнопка (просьба заказчика).
 * Ярко-зелёный выглядел как «уже сделано», остальные действия белые.
 */
.fi-btn.t23-next {
    background: #dcf5e5 !important;
    color: #14532d !important;
    box-shadow: inset 0 0 0 1px #9fd9b4 !important;
}
.fi-btn.t23-next:hover { background: #c8efd7 !important; }
.fi-btn.t23-next .fi-icon { color: #15803d !important; }
.dark .fi-btn.t23-next { background: #163a25 !important; color: #c9f2d8 !important; box-shadow: inset 0 0 0 1px #2f7a4d !important; }
.dark .fi-btn.t23-next .fi-icon { color: #86efac !important; }

.t23-chip {
    border: 1px solid var(--t23-border);
    background: var(--t23-card-2);
    color: var(--t23-text);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.t23-chip:hover { border-color: var(--t23-yellow); background: var(--t23-yellow-soft); }

/* ---------- Таблицы отчётов ---------- */
.t23-table-wrap { overflow-x: auto; margin: -4px -2px; }
.t23-table { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--t23-text); }
.t23-table th {
    text-align: left; font-size: 11.5px; font-weight: 800; color: var(--t23-muted);
    text-transform: uppercase; letter-spacing: .05em;
    padding: 8px 10px; border-bottom: 1px solid var(--t23-border); white-space: nowrap;
}
.t23-table td { padding: 10px; border-bottom: 1px solid var(--t23-border); vertical-align: middle; }
.t23-table tr:last-child td { border-bottom: 0; }
.t23-table tbody tr:hover td { background: var(--t23-card-2); }
.t23-table .is-right { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.t23-bar { position: relative; min-width: 110px; height: 22px; display: flex; align-items: center; }
.t23-bar__fill { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 4px; background: var(--t23-yellow); opacity: .85; }
.t23-bar__text { position: relative; padding-left: 8px; font-weight: 800; font-variant-numeric: tabular-nums; }

.t23-person { display: flex; align-items: center; gap: 10px; }
.t23-person img { width: 32px; height: 32px; border-radius: 50%; }
.t23-person__name { font-weight: 800; }
.t23-person__sub { font-size: 12px; color: var(--t23-muted); }

.t23-stars { color: #f5a400; letter-spacing: 1px; white-space: nowrap; }
.t23-stars__off { color: var(--t23-border); }
.t23-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; font-size: 12.5px;
    background: var(--t23-yellow-soft); border: 1px dashed #d9a400; border-radius: 6px; padding: 2px 8px;
}

.t23-examples { margin: 0; padding-left: 18px; line-height: 1.9; font-size: 14px; }

.t23-changes td.t23-changes__old { color: var(--t23-muted); text-decoration: line-through; }
.t23-changes td.t23-changes__new { font-weight: 700; }

/* ---------- Календарь машин ---------- */
.t23-cal { background: var(--t23-card); border: 1px solid var(--t23-border); border-radius: 18px; box-shadow: var(--t23-shadow); overflow: hidden; }
.t23-cal__head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--t23-border); }
.t23-cal__range { font-weight: 900; font-size: 17px; letter-spacing: -.01em; color: var(--t23-text); }
.t23-cal__legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--t23-muted); }
.t23-cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.t23-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.t23-dot.is-assigned { background: var(--t23-yellow); }
.t23-dot.is-road { background: var(--t23-blue); }
.t23-dot.is-done { background: #c4c4bf; }
.t23-dot.is-wait { background: transparent; border: 2px dashed var(--t23-orange); }
.t23-dot.is-conflict { background: var(--t23-red); }

.t23-cal__scroll { overflow-x: auto; }
.t23-cal__grid { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; table-layout: fixed; color: var(--t23-text); }
.t23-cal__grid th {
    padding: 10px 8px; text-align: left; font-size: 12px; color: var(--t23-muted);
    border-bottom: 1px solid var(--t23-border); background: var(--t23-card-2);
}
.t23-cal__grid th.is-today { background: var(--t23-yellow-soft); color: var(--t23-text); }
.t23-cal__grid th.is-weekend .t23-cal__dow { color: var(--t23-red); }
.t23-cal__dow { text-transform: uppercase; font-weight: 800; letter-spacing: .06em; font-size: 11px; }
.t23-cal__date { font-weight: 900; font-size: 15px; color: var(--t23-text); }
.t23-cal__grid td {
    padding: 6px; vertical-align: top; height: 64px;
    border-bottom: 1px solid var(--t23-border); border-left: 1px solid var(--t23-border);
}
.t23-cal__grid td.is-today { background: color-mix(in srgb, var(--t23-yellow) 6%, transparent); }
.t23-cal__car-col { width: 210px; }
.t23-cal__grid td.t23-cal__car-col { border-left: 0; padding: 10px 12px; vertical-align: middle; background: var(--t23-card); position: sticky; left: 0; z-index: 1; }
.t23-cal__grid th.t23-cal__car-col { position: sticky; left: 0; z-index: 2; }
.t23-cal__car-name { font-weight: 800; font-size: 13.5px; }
.t23-cal__car-sub { font-size: 12px; color: var(--t23-muted); margin-top: 2px; }
.t23-plate {
    display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 6px; margin-left: 4px;
    border: 1.5px solid var(--t23-text); border-radius: 5px; letter-spacing: .03em;
}
.t23-cal__waiting td { background: color-mix(in srgb, var(--t23-orange) 6%, transparent); }

.t23-trip {
    display: block; margin-bottom: 5px; padding: 5px 7px; border-radius: 8px;
    background: var(--t23-yellow-soft); border-left: 4px solid var(--t23-yellow);
    font-size: 12px; line-height: 1.25; color: var(--t23-text); text-decoration: none;
    transition: transform .1s, box-shadow .1s;
}
.t23-trip:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.t23-trip__time { display: block; font-weight: 900; font-variant-numeric: tabular-nums; }
.t23-trip__title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t23-trip.is-road { background: color-mix(in srgb, var(--t23-blue) 12%, transparent); border-left-color: var(--t23-blue); }
.t23-trip.is-done { background: var(--t23-card-2); border-left-color: #c4c4bf; color: var(--t23-muted); }
.t23-trip.is-wait { background: transparent; border: 1.5px dashed var(--t23-orange); border-left-width: 4px; border-left-style: solid; }
.t23-trip.is-conflict { background: color-mix(in srgb, var(--t23-red) 14%, transparent); border-left-color: var(--t23-red); }
.t23-free { display: block; padding-top: 18px; text-align: center; font-size: 11.5px; color: color-mix(in srgb, var(--t23-muted) 60%, transparent); }

/* Цена в форме «Новый заказ» */
.t23-price-preview {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
    padding: 14px 16px; border-radius: 14px;
    background: var(--t23-yellow-soft); border: 1px solid color-mix(in srgb, var(--t23-yellow) 50%, transparent);
    color: var(--t23-text);
}
.t23-price-preview span { font-size: 13px; color: var(--t23-muted); }
.t23-price-preview b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.t23-price-preview small { width: 100%; font-size: 12.5px; color: var(--t23-muted); }
.t23-price-preview.is-empty { background: var(--t23-card-2); border-color: var(--t23-border); color: var(--t23-muted); font-size: 13.5px; }

/* ---------- Цены по маршрутам ---------- */
.t23-prices { background: var(--t23-card); border: 1px solid var(--t23-border); border-radius: 18px; box-shadow: var(--t23-shadow); overflow: hidden; color: var(--t23-text); }
.t23-prices__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 20px; border-bottom: 1px solid var(--t23-border); }
.t23-prices__from { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.t23-prices__select { min-width: 260px; padding: 9px 12px; border: 1px solid var(--t23-border); border-radius: 12px; background: var(--t23-card); color: var(--t23-text); font-weight: 600; }
.t23-prices__stats { font-size: 14px; color: var(--t23-muted); text-align: right; }
.t23-prices__stats b { color: var(--t23-text); }
.t23-prices__scroll { overflow-x: auto; max-height: 68vh; overflow-y: auto; }
.t23-prices__grid { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; }
.t23-prices__grid th { position: sticky; top: 0; z-index: 2; background: var(--t23-card); padding: 10px 8px; font-size: 13px; font-weight: 700; text-align: center; border-bottom: 1px solid var(--t23-border); white-space: nowrap; }
.t23-prices__grid td { padding: 4px 6px; border-bottom: 1px solid var(--t23-border); text-align: center; }
.t23-prices__grid th.t23-prices__place, .t23-prices__grid td.t23-prices__place { text-align: left; padding-left: 20px; min-width: 230px; font-weight: 600; }
.t23-prices__group td { background: var(--t23-yellow-soft); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 8px 20px; }
.t23-prices__input { width: 100%; max-width: 110px; padding: 7px 8px; border: 1px solid transparent; border-radius: 10px; background: color-mix(in srgb, var(--t23-text) 4%, transparent); color: var(--t23-text); text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.t23-prices__input:hover { border-color: var(--t23-border); }
.t23-prices__input:focus { outline: none; border-color: var(--t23-yellow); background: var(--t23-card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t23-yellow) 30%, transparent); }
.t23-prices__input::placeholder { color: var(--t23-muted); text-align: center; }
.t23-prices__input.is-error { border-color: var(--t23-red); }
.t23-prices__del { width: 44px; }
.t23-prices__x { width: 28px; height: 28px; border-radius: 8px; color: var(--t23-muted); font-size: 18px; line-height: 1; }
.t23-prices__x:hover { background: color-mix(in srgb, var(--t23-red) 12%, transparent); color: var(--t23-red); }
.t23-prices__empty { padding: 32px !important; color: var(--t23-muted); }
.t23-prices__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--t23-border); }
.t23-prices__add { display: flex; gap: 10px; align-items: center; }

/* История заказа: пояснение (цена было → стало, причина) */
.t23-log__note { display: block; margin: 2px 0 0 52px; font-size: 13px; color: var(--t23-text); }
