/* ===== ADMIN CSS ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #fafafa;
    --panel: #ffffff;
    --ink: #0a0a0a;
    --ink-2: #333;
    --muted: #8a8a8a;
    --muted-2: #b0b0b0;
    --line: #e8e8e8;
    --line-2: #f0f0f0;
    --green: #16a34a;
    --green-bg: #dcfce7;
    --red: #dc2626;
    --red-bg: #fee2e2;
    --amber: #d97706;
    --amber-bg: #fef3c7;
}

html, body { height: 100%; }

body {
    font-family: 'Manrope', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ===== LOGIN ===== */

.admin-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f5f5f5;
    padding: 20px;
}

.admin-login-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.admin-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-name { font-weight: 700; font-size: 18px; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.admin-login-hint {
    margin-top: 20px;
    padding: 12px 14px;
    background: var(--amber-bg);
    border-radius: 8px;
    font-size: 12px;
    color: var(--amber);
    text-align: center;
}

/* ===== APP LAYOUT ===== */

.admin-app {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--panel);
    border-right: 1px solid var(--line);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-brand .brand-logo {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
}

.admin-brand .brand-name { font-size: 14px; }
.admin-brand .brand-sub { font-size: 11px; }

.admin-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
}

.admin-nav-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink-2);
    font-weight: 500;
    transition: background 0.15s;
    margin-bottom: 2px;
    font-size: 14px;
}

.admin-nav-item:hover { background: var(--line-2); color: var(--ink); }
.admin-nav-item.active { background: var(--ink); color: #fff; }

.admin-user {
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--ink);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.user-info { flex: 1; min-width: 0; }
.user-name {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-role { font-size: 11px; color: var(--muted); }

.logout-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--muted);
    font-size: 18px;
}
.logout-btn:hover { background: var(--red-bg); color: var(--red); }

.admin-main { padding: 24px 32px 40px; min-width: 0; }

/* ===== TOPBAR ===== */

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-topbar h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.admin-topbar p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.back-link {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    display: inline-block;
    margin-bottom: 8px;
}
.back-link:hover { color: var(--ink); }

/* ===== BUTTONS ===== */

.btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    text-align: center;
    justify-content: center;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }

.btn-ghost {
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--line-2); }

/* ===== FLASH ===== */

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}
.flash-success { background: var(--green-bg); color: #065f46; }
.flash-error { background: var(--red-bg); color: #991b1b; }

/* ===== FIELDS ===== */

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.full { grid-column: 1 / -1; }

.field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
}

.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.field select,
.field textarea {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafafa;
    font-size: 14px;
    color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--ink);
    background: #fff;
}

.field textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.field .hint {
    font-size: 11px;
    color: var(--muted);
}

/* Radio chips */
.radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.radio-chip {
    cursor: pointer;
}

.radio-chip input[type="radio"] {
    display: none;
}

.radio-chip span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    background: #fafafa;
    color: var(--ink-2);
    transition: all 0.15s;
}

.radio-chip:hover span { border-color: var(--ink); }

.radio-chip input[type="radio"]:checked + span {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* Checkbox */
.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ink);
}

/* ===== FORM ===== */

.admin-form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0;
    max-width: 900px;
}

.form-section {
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.form-section:last-of-type { border-bottom: none; }

.form-section h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.form-footer {
    padding: 20px 24px;
    background: #fafafa;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 0 0 12px 12px;
}

/* ===== FLEET TABLE ===== */

.fleet-table {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.ft-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 140px;
    gap: 14px;
    padding: 14px 20px;
    align-items: center;
    border-bottom: 1px solid var(--line-2);
}

.ft-row.ft-head {
    background: #fafafa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--muted);
}

.ft-row:not(.ft-head):hover {
    background: #fafafa;
}

.ft-row:last-child { border-bottom: none; }

.ft-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.ft-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

.ft-level {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.ft-price { font-weight: 700; font-size: 14px; }
.ft-price-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.ft-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.ft-chip.visible { background: var(--green-bg); color: #065f46; }
.ft-chip.hidden { background: var(--line-2); color: var(--muted); }

.ft-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: nowrap;
}

.icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--muted);
    font-size: 14px;
    transition: all 0.15s;
}

.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.danger:hover { background: var(--red-bg); color: var(--red); }

.ft-empty {
    padding: 60px 40px;
    text-align: center;
    color: var(--muted);
}

.ft-empty p { margin-bottom: 16px; }

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .admin-app { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: static;
        height: auto;
        padding: 12px 0;
    }
    .admin-nav { padding: 8px 12px; }
    .admin-main { padding: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .ft-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .ft-row.ft-head { display: none; }
}
/*
Это ДОПОЛНЕНИЕ к admin.css
Добавьте этот код В КОНЕЦ существующего файла static/css/admin.css
*/

/* ===== NAV BADGE ===== */
.admin-nav-item { position: relative; }

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    float: right;
    margin-top: 2px;
}

.admin-nav-item.active .nav-badge {
    background: #fff;
    color: var(--red);
}

/* ===== BOOKING FILTERS ===== */
.booking-filters {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px;
}

.filter-tab {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-tab:hover { background: var(--line-2); color: var(--ink); }

.filter-tab.active {
    background: var(--ink);
    color: #fff;
}

.filter-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(0,0,0,0.08);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
}

.filter-tab.active span {
    background: rgba(255,255,255,0.2);
}

/* ===== BOOKINGS TABLE ===== */
.bookings-table {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.bk-row {
    display: grid;
    grid-template-columns: 120px 1.3fr 1.3fr 1.2fr 1fr 130px;
    gap: 14px;
    padding: 14px 20px;
    align-items: center;
    border-bottom: 1px solid var(--line-2);
    transition: background 0.15s;
    color: inherit;
}

.bk-row.bk-head {
    background: #fafafa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--muted);
}

.bk-row:not(.bk-head):hover { background: #fafafa; }

.bk-row:last-child { border-bottom: none; }

.bk-id {
    font-weight: 700;
    font-family: 'Manrope', monospace;
    font-size: 14px;
}

.bk-date {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.bk-client {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.bk-bike {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.bk-dates {
    font-size: 13px;
    font-weight: 600;
}

.bk-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.bk-price {
    font-weight: 700;
    font-size: 14px;
}

/* ===== STATUS CHIPS ===== */
.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    gap: 5px;
}

.status-chip.big {
    padding: 8px 16px;
    font-size: 13px;
}

.status-chip.status-new { background: #ede9fe; color: #5b21b6; }
.status-chip.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-chip.status-paid { background: var(--green-bg); color: #065f46; }
.status-chip.status-active { background: var(--amber-bg); color: #92400e; }
.status-chip.status-completed { background: var(--line-2); color: var(--muted); }
.status-chip.status-cancelled { background: var(--red-bg); color: #991b1b; }

/* ===== EMPTY STATE ===== */
.empty-state {
    padding: 80px 40px;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
}

/* ===== BOOKING DETAIL ===== */
.booking-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

.detail-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.detail-card h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--muted);
}

.detail-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--line);
}

.detail-row:last-child { border-bottom: none; }

.detail-row.column {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.detail-row.total {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid var(--ink);
    border-bottom: none;
    font-size: 16px;
}

.detail-row.total strong { font-weight: 800; }

.detail-label { color: var(--muted); }

.detail-comment {
    font-size: 14px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 100%;
    font-style: italic;
    color: var(--ink-2);
}

.status-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-hint {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
}

.status-done {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 12px;
}

.btn-block { width: 100%; }

.btn-danger-ghost {
    background: var(--panel);
    color: var(--red);
    border: 1px solid var(--line);
}

.btn-danger-ghost:hover {
    background: var(--red-bg);
    border-color: var(--red);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .booking-detail-grid { grid-template-columns: 1fr; }
    .bk-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .bk-row.bk-head { display: none; }
}
/*
ДОБАВИТЬ В КОНЕЦ static/css/admin.css
Стили для фото в админке
*/

/* Колонка с превью в таблице мотоциклов */
.ft-row.ft-head > div:first-child {
    /* пустая колонка в шапке под превью */
}

.fleet-table .ft-row {
    grid-template-columns: 60px 1.7fr 1fr 1fr 0.9fr 220px;
}

.ft-photo {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.ft-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ft-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0.3;
}

/* Превью фото в форме редактирования */
.photo-current {
    background: #fafafa;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.photo-preview {
    width: 140px;
    height: 105px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.photo-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--red);
    cursor: pointer;
    font-weight: 500;
}

.checkbox-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--red);
}

/* Инпут для загрузки файлов */
.file-input {
    padding: 10px 12px !important;
    font-size: 13px !important;
    cursor: pointer;
}

.file-input::-webkit-file-upload-button {
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
}

.file-input::-webkit-file-upload-button:hover {
    background: var(--ink-2);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .fleet-table .ft-row {
        grid-template-columns: 1fr;
    }
    .ft-row.ft-head { display: none; }
}

/* ===== КАЛЕНДАРЬ ЗАГРУЗКИ ===== */

.cal-nav-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cal-month-label {
    font-weight: 700;
    font-size: 14px;
    padding: 0 12px;
    min-width: 140px;
    text-align: center;
}

.cal-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
    align-items: center;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: -2px;
}
.legend-dot.legend-new { background: #ede9fe; border: 1px solid #c4b5fd; }
.legend-dot.legend-confirmed { background: #dbeafe; border: 1px solid #93c5fd; }
.legend-dot.legend-paid { background: var(--green-bg); border: 1px solid #86efac; }
.legend-dot.legend-active { background: var(--amber-bg); border: 1px solid #fcd34d; }
.legend-dot.legend-completed { background: var(--line-2); border: 1px solid var(--muted-2); }

.cal-container {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.cal-scroll {
    overflow-x: auto;
    min-width: 100%;
}

/* Шапка с датами */
.cal-header-row {
    display: grid;
    grid-template-columns: 200px repeat(14, minmax(55px, 1fr));
    background: #fafafa;
    border-bottom: 1px solid var(--line);
    min-width: 1000px;
}

.cal-header-name {
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
}

.cal-header-day {
    padding: 10px 4px;
    text-align: center;
    border-right: 1px solid var(--line-2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.cal-header-day.weekend {
    background: #f5f5f5;
}

.cal-header-day.today {
    background: var(--ink);
    color: #fff;
}

.day-num {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.day-weekday {
    font-size: 10px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Строка мотоцикла */
.cal-bike-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--line-2);
    min-width: 1000px;
    min-height: 62px;
}

.cal-bike-row:last-child { border-bottom: none; }

.cal-bike-label {
    padding: 12px 16px;
    border-right: 1px solid var(--line);
    background: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bike-label-name {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
}

.bike-label-cat {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.cal-bike-days {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    position: relative;
    min-height: 62px;
}

.cal-day-cell {
    border-right: 1px solid var(--line-2);
    min-height: 62px;
}

.cal-day-cell.weekend {
    background: #fafafa;
}

.cal-day-cell.today-col {
    background: rgba(10,10,10,0.04);
}

/* Полоски броней */
.booking-bar {
    position: absolute;
    top: 10px;
    height: 42px;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border: 1px solid transparent;
    transition: transform 0.15s, box-shadow 0.15s;
    z-index: 2;
}

.booking-bar:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 3;
}

.booking-bar.status-new {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #c4b5fd;
}

.booking-bar.status-confirmed {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.booking-bar.status-paid {
    background: var(--green-bg);
    color: #065f46;
    border-color: #86efac;
}

.booking-bar.status-active {
    background: var(--amber-bg);
    color: #92400e;
    border-color: #fcd34d;
}

.booking-bar.status-completed {
    background: var(--line-2);
    color: var(--muted);
    border-color: var(--muted-2);
}

.bar-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cal-hint {
    margin-top: 14px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--muted);
}

/* ===== ГЛАВНЫЙ ДАШБОРД ===== */

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-sub {
    font-size: 12px;
    color: var(--muted);
}

.stat-sub a { color: var(--ink); font-weight: 600; }

.stat-bar {
    background: var(--line-2);
    border-radius: 100px;
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
}

.stat-bar-fill {
    background: var(--ink);
    height: 100%;
    border-radius: 100px;
    transition: width 0.3s;
}

/* Основная сетка 2 колонки */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: start;
}

.dash-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Карточки внимания */
.attention-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
}

.attention-card.high { border-color: #86efac; background: linear-gradient(to bottom, #f0fdf4, #fff 30%); }
.attention-card.mid { border-color: #fcd34d; background: linear-gradient(to bottom, #fffbeb, #fff 30%); }
.attention-card.alert { border-color: #c4b5fd; background: linear-gradient(to bottom, #f5f3ff, #fff 30%); }

.attention-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.attention-head h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.attention-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
}

.attention-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.attention-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg);
    transition: background 0.15s;
    color: inherit;
}

.attention-item:hover { background: #f0f0f0; }

.att-title {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.att-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.att-phone,
.att-time {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.show-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.show-more:hover { text-decoration: underline; }

.show-more-inline {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.show-more-inline:hover { color: var(--ink); }

.empty-good {
    background: linear-gradient(to bottom, #f0fdf4, #fff 50%);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 30px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #86efac;
    color: #065f46;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.empty-good h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.empty-good p { font-size: 13px; color: var(--muted); }

/* Быстрые ссылки */
.quick-links {
    display: grid;
    gap: 10px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: all 0.15s;
    color: inherit;
}

.quick-link:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.ql-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.quick-link:hover .ql-icon {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.ql-title { font-size: 14px; font-weight: 700; }
.ql-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.quick-link:hover .ql-sub { color: rgba(255,255,255,0.7); }

/* ===== ТАЙМЛАЙН БРОНИ ===== */

.booking-timeline {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px 32px;
    margin-bottom: 20px;
}

.timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 80px;
}

.ts-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--line-2);
    color: var(--muted);
    transition: all 0.2s;
}

.timeline-step.done .ts-icon {
    background: var(--green-bg);
    color: #065f46;
    border: 2px solid #86efac;
}

.timeline-step.current .ts-icon {
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--ink);
    box-shadow: 0 0 0 4px rgba(10,10,10,0.1);
}

.timeline-step.future .ts-icon {
    background: var(--line-2);
    color: var(--muted-2);
    opacity: 0.7;
}

.ts-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.timeline-step.done .ts-label { color: #065f46; }
.timeline-step.current .ts-label { color: var(--ink); font-weight: 700; }

.timeline-line {
    flex: 1;
    height: 2px;
    background: var(--line-2);
    margin: 0 -10px;
    margin-bottom: 20px;
    min-width: 20px;
}

.timeline-line.done { background: #86efac; }

.timeline-cancelled {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--red-bg);
    border: 1px solid #fca5a5;
    border-radius: 10px;
    color: #991b1b;
}

.cancelled-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.timeline-cancelled strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.timeline-cancelled div { font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .timeline { flex-wrap: wrap; gap: 10px; }
    .timeline-step { min-width: 0; }
    .timeline-line { display: none; }
}

/* ===== ЭТАП 4: КЛИЕНТЫ, НАСТРОЙКИ, ОТЧЁТЫ ===== */

/* Разделитель в навигации */
.nav-sep {
    height: 1px;
    background: var(--line);
    margin: 10px 12px;
}

/* Блок действий в топбаре */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Ссылка в заголовке карточки */
.card-link {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 8px;
}

.card-link:hover { color: var(--ink); }

/* Подсказка секции формы */
.form-section-hint {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.form-section-hint code {
    background: var(--line-2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

/* Стат-карточка с телефоном */
.stat-phone {
    font-size: 18px !important;
    font-weight: 600 !important;
}
.stat-phone a { color: inherit; }

/* ===== ПАНЕЛЬ ФИЛЬТРОВ ===== */
.filter-panel {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.search-input {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafafa;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    flex: 1;
    min-width: 180px;
}

.search-input:focus {
    outline: none;
    border-color: var(--ink);
    background: #fff;
}

/* ===== ТАБЛИЦА КЛИЕНТОВ ===== */
.clients-table {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.cl-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 14px;
    padding: 14px 20px;
    align-items: center;
    border-bottom: 1px solid var(--line-2);
    transition: background 0.15s;
    color: inherit;
}

.cl-row.cl-head {
    background: #fafafa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--muted);
}

.cl-row:not(.cl-head):hover { background: #fafafa; }
.cl-row:last-child { border-bottom: none; }

.cl-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cl-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.cl-phone {
    font-weight: 600;
    font-size: 14px;
}

.cl-count {
    font-weight: 700;
    font-size: 14px;
}

.cl-revenue {
    font-weight: 700;
    font-size: 14px;
}

.cl-date {
    font-weight: 600;
    font-size: 14px;
}

.cl-blacklist {
    display: inline-block;
    background: var(--red-bg);
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cl-blacklist-big {
    display: inline-block;
    background: var(--red-bg);
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    margin-left: 10px;
    vertical-align: middle;
}

/* ===== ОТЧЁТЫ ===== */
.period-tabs {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.period-tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--line);
    background: var(--bg);
    transition: all 0.15s;
    text-decoration: none;
}

.period-tab:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.period-tab.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.period-sep {
    color: var(--muted);
    font-size: 13px;
    margin: 0 4px;
}

/* Столбчатая диаграмма */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 180px;
    padding: 10px 0 30px;
    overflow-x: auto;
}

.bar-col {
    flex: 1;
    min-width: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    gap: 8px;
    height: 100%;
}

.bar-value {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-end;
    min-height: 4px;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(to top, #0a0a0a, #333);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: transform 0.15s;
}

.bar-col:hover .bar-fill {
    background: linear-gradient(to top, #000, #555);
}

.bar-label {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}

/* ===== СЕТКА ФОТО В ФОРМЕ МОТОЦИКЛА ===== */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.photo-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f0f0f0;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-main-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.photo-remove {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 100px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    transition: background 0.15s;
}

.photo-remove:hover { background: var(--red); }

.photo-remove input[type="checkbox"] {
    display: none;
}

.photo-remove input[type="checkbox"]:checked ~ span {
    text-decoration: line-through;
    opacity: 0.7;
}

.photo-remove input[type="checkbox"]:checked {
    /* Когда отмечено — показываем что удалим */
}

.photo-item:has(input[type="checkbox"]:checked) {
    opacity: 0.4;
    outline: 2px solid var(--red);
}

.photo-item:has(input[type="checkbox"]:checked) img {
    filter: grayscale(50%);
}

/* ===== OVERVIEW DASHBOARD + FLEET ANALYTICS ===== */

.ov-kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.ov-kpi { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:20px; position:relative; overflow:hidden; }
.ov-kpi-label { font-size:12px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:0.04em; }
.ov-kpi-value { font-size:32px; font-weight:800; letter-spacing:-0.02em; margin-top:6px; line-height:1.1; }
.ov-kpi-value.ov-kpi-name { font-size:20px; line-height:1.25; }
.ov-kpi-sub { font-size:18px; color:var(--muted); font-weight:600; }
.ov-kpi-foot { font-size:12px; color:var(--muted); margin-top:8px; }
.ov-kpi-foot b { color:var(--ink); font-weight:700; }
.ov-kpi-alert::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--red); }
.ov-kpi-alert .ov-kpi-value { color:var(--red); }
.ov-kpi-ok::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--green); }

.ov-row-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.ov-row-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }

.ov-card { background:var(--panel); border:1px solid var(--line); border-radius:14px; }
.ov-card-head { padding:18px 22px; border-bottom:1px solid var(--line-2); display:flex; justify-content:space-between; align-items:center; }
.ov-card-head h3 { font-size:15px; font-weight:700; letter-spacing:-0.01em; margin:0; }
.ov-meta { font-size:12px; color:var(--muted); }
.ov-meta-red { color:var(--red); font-weight:700; }
.ov-card-body { padding:8px 0; }

.ov-row { display:grid; grid-template-columns:80px 1fr auto; gap:14px; align-items:center; padding:12px 22px; border-bottom:1px solid var(--line-2); }
.ov-row:last-child { border-bottom:none; }
.ov-row:hover { background:#fafafa; }
.ov-time { font-weight:800; font-size:15px; color:var(--ink); letter-spacing:-0.01em; }
.ov-time-sub { display:block; font-weight:500; font-size:11px; color:var(--muted); margin-top:2px; }
.ov-name { font-weight:700; font-size:14px; }
.ov-bike { font-size:12px; color:var(--muted); margin-top:2px; }
.ov-chips { display:flex; gap:6px; margin-top:6px; flex-wrap:wrap; }
.ov-chip { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:20px; font-size:11px; font-weight:600; }
.ov-chip.green { background:var(--green-bg); color:var(--green); }
.ov-chip.red { background:var(--red-bg); color:var(--red); }
.ov-chip.amber { background:var(--amber-bg); color:var(--amber); }
.ov-chip.blue { background:#dbeafe; color:#2563eb; }
.ov-chip.gray { background:#f0f0f0; color:#666; }

.ov-actions { display:flex; gap:6px; }
.ov-btn { padding:7px 12px; border-radius:8px; font-size:12px; font-weight:600; border:1px solid var(--line); background:#fff; color:var(--ink); display:inline-block; }
.ov-btn:hover { background:#f5f5f5; }

.ov-empty { padding:32px 22px; text-align:center; color:var(--muted); font-size:13px; }

.ov-alert { display:flex; gap:14px; padding:14px 22px; border-bottom:1px solid var(--line-2); align-items:center; }
.ov-alert:last-child { border-bottom:none; }
.ov-alert-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:16px; }
.ov-alert-icon.red { background:var(--red-bg); color:var(--red); }
.ov-alert-icon.amber { background:var(--amber-bg); color:var(--amber); }
.ov-alert-icon.blue { background:#dbeafe; color:#2563eb; }
.ov-alert-text { flex:1; }
.ov-alert-t { font-weight:600; font-size:13px; }
.ov-alert-d { font-size:12px; color:var(--muted); margin-top:2px; }

.ov-money-big { padding:18px 22px 4px; }
.ov-money-label { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:0.04em; font-weight:600; }
.ov-money-value { font-size:30px; font-weight:800; letter-spacing:-0.02em; margin-top:4px; line-height:1.15; }
.ov-money-delta { font-size:12px; color:var(--muted); font-weight:600; margin-top:4px; }
.ov-money-delta.up { color:var(--green); }
.ov-money-delta.down { color:var(--red); }
.ov-money-stack { padding:8px 22px 18px; }
.ov-money-row { display:flex; justify-content:space-between; align-items:baseline; padding:10px 0; border-bottom:1px solid var(--line-2); font-size:13px; }
.ov-money-row:last-child { border-bottom:none; }
.ov-money-row span { color:var(--muted); }
.ov-money-row b { font-weight:800; font-size:15px; letter-spacing:-0.01em; color:var(--ink); }

.ov-occu { padding:18px 22px; }
.ov-occu-day { display:grid; grid-template-columns:48px 1fr 36px; gap:10px; align-items:center; margin-bottom:8px; }
.ov-occu-lbl { font-size:11px; color:var(--muted); font-weight:600; text-transform:uppercase; }
.ov-occu-bar { height:18px; background:var(--line-2); border-radius:6px; overflow:hidden; display:flex; }
.ov-occu-bar > span { display:block; height:100%; }
.ov-occu-bar > span.busy { background:var(--ink); }
.ov-occu-bar > span.free { background:var(--line-2); }
.ov-occu-pct { font-size:11px; color:var(--muted); font-weight:600; text-align:right; }
.ov-occu-legend { display:flex; gap:14px; font-size:11px; color:var(--muted); margin-top:14px; }
.ov-occu-legend .dot { display:inline-block; width:10px; height:10px; border-radius:2px; vertical-align:middle; margin-right:4px; }
.ov-occu-legend .dot.busy { background:var(--ink); }
.ov-occu-legend .dot.free { background:var(--line-2); }

/* === FLEET ANALYTICS === */
.ov-period { display:flex; gap:4px; background:var(--panel); border:1px solid var(--line); padding:4px; border-radius:10px; }
.ov-period a { padding:6px 14px; border-radius:7px; font-size:12px; font-weight:600; color:var(--muted); text-decoration:none; }
.ov-period a:hover { color:var(--ink); }
.ov-period a.active { background:var(--ink); color:#fff; }

.ov-fleet-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-bottom:16px; }
.ov-bike-card { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:20px; }
.ov-bike-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:16px; }
.ov-bike-name { font-size:18px; font-weight:800; letter-spacing:-0.01em; }
.ov-bike-meta { font-size:12px; color:var(--muted); margin-top:2px; }
.ov-bike-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
.ov-stat-l { font-size:11px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:0.04em; }
.ov-stat-v { font-size:20px; font-weight:800; margin-top:2px; letter-spacing:-0.01em; }
.ov-stat-v .pct { font-size:14px; color:var(--muted); margin-left:2px; font-weight:500; }

.ov-load-bar { height:10px; background:var(--line-2); border-radius:5px; overflow:hidden; margin-bottom:6px; }
.ov-load-bar > span { display:block; height:100%; }
.ov-load-bar > span.top { background:var(--green); }
.ov-load-bar > span.mid { background:var(--amber); }
.ov-load-bar > span.low { background:var(--red); }
.ov-load-foot { display:flex; justify-content:space-between; font-size:12px; color:var(--muted); }

.ov-bike-tip { margin-top:12px; padding:12px; background:#fef9f0; border:1px solid #f3d6a0; border-radius:10px; font-size:12px; color:#7c5409; }
.ov-bike-tip b { color:var(--amber); }

@media (max-width:1100px) {
    .ov-kpi-grid { grid-template-columns:repeat(2,1fr); }
    .ov-row-2, .ov-row-3 { grid-template-columns:1fr; }
    .ov-fleet-grid { grid-template-columns:1fr; }
}

/* ===== КАЛЕНДАРЬ 7 ДНЕЙ (почасовой, с окнами) ===== */
.legend-dot.legend-free { background: repeating-linear-gradient(45deg,#dcfce7,#dcfce7 3px,#caf7d6 3px,#caf7d6 6px); border: 1px solid #86efac; }
.calw { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.calw-scroll { overflow-x: auto; }
.calw-head { display: grid; grid-template-columns: 190px 1fr; background: #fafafa; border-bottom: 1px solid var(--line); min-width: 1100px; }
.calw-head-name { padding: 14px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-right: 1px solid var(--line); display: flex; align-items: center; }
.calw-head-days { display: grid; grid-template-columns: repeat(7,1fr); }
.calw-dh { padding: 9px 4px; text-align: center; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; }
.calw-dh.we { background: #f5f5f5; }
.calw-dh.today { background: var(--ink); color: #fff; }
.calw-dn { font-size: 14px; font-weight: 800; line-height: 1; }
.calw-dw { font-size: 10px; opacity: .7; text-transform: uppercase; letter-spacing: .05em; }
.calw-row { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid var(--line-2); min-width: 1100px; min-height: 56px; }
.calw-row:last-child { border-bottom: none; }
.calw-row.off { opacity: .5; }
.calw-name { padding: 10px 16px; border-right: 1px solid var(--line); background: #fafafa; display: flex; flex-direction: column; justify-content: center; }
.calw-n1 { font-weight: 700; font-size: 13px; line-height: 1.2; }
.calw-n2 { font-size: 11px; color: var(--muted); margin-top: 2px; }
.calw-track { position: relative; min-height: 56px; background: repeating-linear-gradient(90deg, transparent, transparent calc(100%/7 - 1px), var(--line-2) calc(100%/7 - 1px), var(--line-2) calc(100%/7)); }
.calw-dsep { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); z-index: 1; }
.calw-now { position: absolute; top: 0; bottom: 0; width: 2px; background: #dc2626; z-index: 5; }
.calw-now-tag { position: absolute; top: 1px; transform: translateX(-50%); font-size: 9px; font-weight: 800; color: #dc2626; white-space: nowrap; z-index: 7; background: #fff; padding: 0 2px; }
.calw-bar { position: absolute; top: 8px; height: 40px; border-radius: 8px; padding: 6px 8px; display: flex; align-items: center; font-size: 11px; font-weight: 600; overflow: hidden; white-space: nowrap; border: 1px solid transparent; text-decoration: none; color: inherit; z-index: 3; transition: box-shadow .15s; }
.calw-bar:hover { box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 6; }
.calw-bar-t { overflow: hidden; text-overflow: ellipsis; }
.calw-bar.status-new, .calw-bar.status-pending_payment { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.calw-bar.status-confirmed { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.calw-bar.status-active { background: var(--amber-bg); color: #92400e; border-color: #fcd34d; }
.calw-bar.status-completed { background: var(--line-2); color: var(--muted); border-color: var(--muted-2); }
.calw-gap { position: absolute; top: 8px; height: 40px; border-radius: 8px; background: repeating-linear-gradient(45deg, var(--green-bg), var(--green-bg) 6px, #caf7d6 6px, #caf7d6 12px); border: 1.5px dashed var(--green); display: flex; align-items: center; justify-content: center; z-index: 2; text-decoration: none; transition: box-shadow .15s; }
.calw-gap:hover { box-shadow: 0 4px 12px rgba(22,163,74,.25); z-index: 6; }
.calw-gap-t { font-size: 10px; font-weight: 800; color: #065f46; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3px; }
