/* CNPC-ATK portal — modern corporate visual layer, 2026-09-26 */
:root {
    --navy-950:#071a2d;
    --navy-900:#0b2239;
    --navy-800:#123a5b;
    --navy-700:#1d527b;
    --navy-100:#e8f1f7;
    --orange-600:#e66f16;
    --orange-500:#f28a2e;
    --orange-100:#fff0e2;
    --surface:#ffffff;
    --surface-soft:#f7f9fc;
    --surface-muted:#edf2f7;
    --text:#16283a;
    --text-muted:#66788a;
    --border:#dfe7ef;
    --success:#17884d;
    --warning:#b96a08;
    --danger:#c33c35;
    --shadow-sm:0 4px 16px rgba(8,34,58,.06);
    --shadow-md:0 14px 38px rgba(8,34,58,.10);
    --shadow-lg:0 28px 70px rgba(8,34,58,.16);
    --radius-sm:10px;
    --radius-md:16px;
    --radius-lg:24px;
}

html { background:#eef3f8; }

body {
    color:var(--text);
    background:#f1f5f9;
    letter-spacing:.005em;
}

button, input, select, textarea { font:inherit; }
button { -webkit-tap-highlight-color:transparent; }

/* Authentication */
#loginPage, #registerPage {
    position:relative;
    isolation:isolate;
    max-width:460px;
    margin:auto;
    padding:38px 38px 34px;
    border:1px solid rgba(255,255,255,.88);
    border-radius:28px;
    background:rgba(255,255,255,.94);
    box-shadow:var(--shadow-lg);
    overflow:hidden;
}

#loginPage::before, #registerPage::before {
    content:"";
    position:absolute;
    z-index:-1;
    inset:0 0 auto;
    height:7px;
    background:linear-gradient(90deg, var(--orange-600), #ffb33c 46%, var(--navy-800));
}

#loginPage::after, #registerPage::after {
    content:"";
    position:absolute;
    z-index:-1;
    width:180px;
    height:180px;
    right:-105px;
    top:-100px;
    border-radius:50%;
    background:rgba(242,138,46,.09);
}

#loginPage .auth-logo, #registerPage .auth-logo {
    height:86px;
    margin-bottom:14px;
}

#loginPage .auth-sub, #registerPage .auth-sub {
    position:relative;
    margin-bottom:28px;
    color:var(--navy-900);
    font-size:19px;
    font-weight:750;
}

#loginPage .auth-sub::after, #registerPage .auth-sub::after {
    content:"Защищённая рабочая среда";
    display:block;
    margin-top:6px;
    color:var(--text-muted);
    font-size:12px;
    font-weight:500;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.form-group label {
    margin-bottom:7px;
    color:#34495e;
    font-size:13px;
    font-weight:700;
}

.form-group input, .form-group select, .modal .form-group textarea,
.compact-toolbar input, .compact-toolbar select,
.drivers-toolbar input, .drivers-toolbar select,
.check-filters input, .check-filters select {
    border:1px solid var(--border);
    border-radius:var(--radius-sm);
    background:#fff;
    color:var(--text);
    box-shadow:0 1px 2px rgba(8,34,58,.03);
}

.form-group input, .form-group select { min-height:46px; }

.form-group input:focus, .form-group select:focus,
.modal .form-group textarea:focus,
.compact-toolbar input:focus, .compact-toolbar select:focus,
.drivers-toolbar input:focus, .drivers-toolbar select:focus,
.check-filters input:focus, .check-filters select:focus {
    border-color:var(--navy-700);
    box-shadow:0 0 0 4px rgba(29,82,123,.11);
}

.remember-row { color:var(--text-muted); }
.remember-row input { accent-color:var(--orange-600); }
.switch-link { color:var(--text-muted); font-size:14px; }
.switch-link a { color:var(--navy-700); }
.switch-link a:hover { color:var(--orange-600); }

.btn-primary {
    min-height:48px;
    border-radius:12px;
    background:linear-gradient(135deg, var(--navy-800), var(--navy-900));
    box-shadow:0 10px 24px rgba(18,58,91,.22);
}
.btn-primary:hover {
    background:linear-gradient(135deg, var(--navy-700), var(--navy-900));
    box-shadow:0 13px 28px rgba(18,58,91,.28);
    transform:none;
}

/* App shell */
#appPage {
    width:100%;
    max-width:1440px;
    margin:0 auto;
    padding:18px 22px 96px;
    background:transparent;
}

.app-header {
    position:sticky;
    top:12px;
    z-index:100;
    min-height:82px;
    margin-bottom:20px;
    padding:12px 18px;
    border:1px solid rgba(255,255,255,.82);
    border-radius:20px;
    background:#fff;
    box-shadow:0 3px 12px rgba(8,34,58,.07);
}

.logo-img { height:58px; }
.company-name {
    max-width:720px;
    color:var(--navy-900);
    font-size:19px;
    letter-spacing:-.02em;
}

.user-info { gap:11px; }
.avatar {
    width:42px;
    height:42px;
    background:linear-gradient(145deg, var(--navy-700), var(--navy-950));
    box-shadow:0 6px 15px rgba(18,58,91,.20);
}
.user-meta .name { color:var(--navy-900); }
.user-meta .role { background:var(--navy-100); color:var(--navy-700); }
.lang-switcher {
    border:1px solid var(--border);
    background:#fff;
    color:var(--navy-700);
}
.brand-home {
    margin:0;
    padding:4px 6px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:inherit;
    text-align:left;
    cursor:pointer;
}
.brand-home:hover { background:var(--surface-muted); }
.brand-home:focus-visible { outline:2px solid var(--navy-700); outline-offset:2px; }
.theme-switcher {
    display:grid;
    width:38px;
    height:38px;
    flex:0 0 38px;
    place-items:center;
    padding:0;
    border:1px solid var(--border);
    border-radius:9px;
    background:#fff;
    color:var(--navy-700);
    cursor:pointer;
}
.theme-switcher:hover { background:var(--surface-muted); }
.auth-theme-switcher {
    position:absolute;
    top:16px;
    right:16px;
    z-index:2;
}
.theme-icon {
    width:19px;
    height:19px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.theme-icon-sun { display:none; }
html[data-theme="dark"] .theme-icon-moon { display:none; }
html[data-theme="dark"] .theme-icon-sun { display:block; }
.bottom-nav .nav-item .icon svg {
    display:block;
    width:19px;
    height:19px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.logout-btn {
    padding:8px 10px;
    border-radius:9px;
    color:var(--danger);
}
.logout-btn:hover { background:#fff0ef; }

.page { animation:none; }

.card, #page-home .card, .subsection-content {
    border:1px solid rgba(223,231,239,.88);
    border-radius:var(--radius-lg);
    background:rgba(255,255,255,.96);
    box-shadow:var(--shadow-sm);
}
.card { padding:22px; }

#page-home {
    display:none;
    grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
    gap:18px;
    align-items:start;
}
#page-home.active { display:grid; }
#page-home .card { margin:0; padding:22px; }

.card-title {
    color:var(--navy-900);
    font-size:18px;
    font-weight:800;
    letter-spacing:-.015em;
}
.card-title > span:first-child { display:flex; align-items:center; gap:8px; }

.subsection-header {
    margin-bottom:18px;
    padding-bottom:14px;
    border-bottom:1px solid var(--border);
}
.subsection-header .title { color:var(--navy-900); font-weight:800; }
.subsection-header .back-btn {
    width:36px;
    height:36px;
    border-radius:10px;
    background:var(--surface-muted);
    line-height:30px;
}
.subsection-header .back-btn:hover { background:var(--navy-100); }

/* Desktop navigation: one clear horizontal row under the header */
@media (min-width:900px) {
    #appPage:not(.hidden) {
        display:grid;
        grid-template-columns:minmax(0, 1fr);
        grid-template-rows:auto auto minmax(0, 1fr);
        align-content:start;
        padding:16px 24px 30px;
    }
    .app-header {
        position:relative;
        top:auto;
        grid-row:1;
        margin-bottom:10px;
    }
    #appPage > .page {
        grid-row:3;
        grid-column:1;
        min-width:0;
    }
    .bottom-nav {
        position:relative;
        left:auto;
        right:auto;
        top:auto;
        bottom:auto;
        grid-row:2;
        grid-column:1;
        width:100%;
        height:auto;
        margin:0 0 16px;
        padding:6px;
        flex-direction:row;
        justify-content:flex-start;
        align-items:center;
        gap:4px;
        border:1px solid var(--border);
        border-radius:14px;
        background:#fff;
        box-shadow:0 2px 8px rgba(8,34,58,.05);
    }
    .bottom-nav::before { display:none; }
    .bottom-nav .nav-item {
        flex:0 0 auto;
        min-width:118px;
        min-height:42px;
        padding:7px 14px;
        flex-direction:row;
        justify-content:center;
        gap:8px;
        border-radius:9px;
        font-size:13px;
        text-align:center;
    }
    .bottom-nav .nav-item .icon {
        display:inline-block;
        width:auto;
        height:auto;
        background:transparent;
        font-size:16px;
    }
    .bottom-nav .nav-item .label { font-weight:650; }
    .bottom-nav .nav-item.active {
        background:var(--navy-800);
        color:#fff;
        box-shadow:none;
    }
    .bottom-nav .nav-item.active .icon { background:transparent; }
}

/* Section tiles */
.dept-grid, .folder-grid, .subsection-grid { gap:14px; }
.dept-card, .folder-card, .subsection-card {
    position:relative;
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    background:#fff;
    box-shadow:0 2px 8px rgba(8,34,58,.04);
    min-height:156px;
    padding:30px 18px 25px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}
.dept-card:hover, .folder-card:hover, .subsection-card:hover {
    border-color:#a9bdcf;
    background:#f8fbfd;
    box-shadow:0 3px 10px rgba(8,34,58,.07);
    transform:none;
}
.dept-card .icon, .folder-card .folder-icon, .subsection-card .icon {
    filter:none;
}
.folder-card .folder-name, .dept-card .name, .subsection-card .name { color:var(--navy-900); }

/* Lightweight folder icon drawn only with CSS; no external icon font. */
.folder-card .folder-visual {
    position:relative;
    display:block;
    width:52px;
    height:38px;
    margin:0 auto 11px;
    border-radius:5px 7px 7px 7px;
    background:#e99a32;
    box-shadow:none;
}
.folder-card .folder-visual::before {
    content:"";
    position:absolute;
    left:0;
    top:-7px;
    width:24px;
    height:10px;
    border-radius:5px 5px 0 0;
    background:#e99a32;
}
.folder-card .folder-visual::after {
    content:"";
    position:absolute;
    inset:7px 4px 4px;
    border-radius:4px;
    background:#f6b653;
}
.folder-card .folder-symbol {
    position:absolute;
    z-index:1;
    right:-6px;
    bottom:-6px;
    display:grid;
    width:24px;
    height:24px;
    place-items:center;
    border:2px solid #fff;
    border-radius:50%;
    background:var(--navy-800);
    color:#fff;
    font-size:12px;
    line-height:1;
}

/* Lists, fleet cards and metrics */
.item-list { gap:10px; }
.item-card, .tech-card, .check-card, .admin-user {
    border:1px solid var(--border);
    border-left:4px solid var(--navy-700);
    border-radius:14px;
    background:#fff;
    box-shadow:0 3px 10px rgba(8,34,58,.04);
}
.item-card:hover, .tech-card:hover { background:#fbfdff; box-shadow:0 8px 20px rgba(8,34,58,.08); }
.item-card .title { color:var(--navy-900); }

.tech-summary { gap:8px; }
.tech-summary .stat {
    padding:8px 13px;
    border:1px solid var(--border);
    border-radius:10px;
    background:#fff;
    color:#43576b;
    box-shadow:0 2px 8px rgba(8,34,58,.035);
}

.tech-status, .check-status-badge {
    padding:4px 9px;
    border-radius:999px;
    font-size:11px;
}
.tech-status-line { background:#e7f7ee; color:var(--success); }
.tech-status-repair { background:#fdeceb; color:var(--danger); }
.tech-status-wait { background:#fff4dd; color:var(--warning); }
.tech-status-conserv { background:#f3eafb; color:#7a3ba1; }
.check-status-open { background:#fdeceb; color:#9f2d28; }
.check-status-progress { background:#fff4dd; color:#8e5707; }
.check-status-done { background:#e7f7ee; color:#126b3c; }
.check-status-cancel { background:#edf1f5; color:#66788a; }

/* Controls and actions */
.btn-add, .btn-edit, .btn-delete, .image-controls button {
    border-radius:9px;
    box-shadow:none;
    transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn-add { background:var(--navy-800); }
.btn-add:hover { background:var(--navy-700); box-shadow:0 6px 15px rgba(18,58,91,.18); }
.btn-edit { background:#2d77aa; }
.btn-delete { background:#c94a43; }
.btn-add:hover, .btn-edit:hover, .btn-delete:hover { transform:none; }
.actions { gap:6px; }

.compact-toolbar, .drivers-toolbar, .check-filters {
    padding:10px;
    border:1px solid var(--border);
    border-radius:14px;
    background:var(--surface-soft);
}
.compact-toolbar input, .compact-toolbar select,
.drivers-toolbar input, .drivers-toolbar select,
.check-filters input, .check-filters select {
    min-height:40px;
    border-radius:9px;
}

/* Data tables */
.check-table {
    border-collapse:separate;
    border-spacing:0;
    table-layout:auto !important;
    border:1px solid var(--border);
    border-radius:14px;
    overflow:hidden;
    background:#fff;
}
.check-table th, .check-table td {
    width:auto !important;
    padding:10px 11px !important;
    border:0;
    border-bottom:1px solid #e8eef4;
    vertical-align:middle;
}
.check-table th {
    background:#edf3f8;
    color:#43576b;
    font-size:11px;
    font-weight:800;
    letter-spacing:.055em;
    text-transform:uppercase;
}
.check-table tbody tr:last-child td { border-bottom:0; }
.check-table tbody tr:nth-child(even) td { background:#fbfcfe; }
.check-table tbody tr:hover td { background:#f3f8fc; }
.table-sticky-wrapper { border-color:var(--border); border-radius:14px; }
.table-sticky-wrapper .check-table th { background:#edf3f8; }

/* Modals, profile and feedback */
.modal-overlay {
    background:rgba(4,18,31,.58);
}
.modal {
    border:1px solid rgba(255,255,255,.8);
    border-radius:22px;
    box-shadow:var(--shadow-lg);
}
.modal-header {
    margin:-4px -2px 18px;
    padding-bottom:13px;
    border-bottom:1px solid var(--border);
}
.modal-header h2 { color:var(--navy-900); font-weight:800; }
.modal-close {
    width:36px;
    height:36px;
    border-radius:10px;
    line-height:30px;
}
.modal-close:hover { background:#edf2f7; color:var(--navy-900); }

.profile-card {
    border:1px solid var(--border);
    box-shadow:var(--shadow-md);
}
.profile-avatar { background:linear-gradient(145deg, var(--navy-700), var(--navy-950)); }
.profile-role { background:var(--navy-100); color:var(--navy-700); }

.toast-container { bottom:24px; }
.toast {
    border-radius:12px;
    background:var(--navy-900);
    box-shadow:var(--shadow-md);
    font-size:13px;
}
.toast.success { background:var(--success); }
.toast.error { background:var(--danger); }

.empty-state {
    border:1px dashed #ccd8e3;
    border-radius:14px;
    background:#fafcfe;
    color:var(--text-muted);
}

/* Mobile remains bottom-navigation-first */
@media (max-width:899px) {
    #page-home.active { display:flex; align-items:stretch; }
    #page-home .card { margin-bottom:12px; }
}

@media (max-width:767px) {
    body { background:#f3f6fa; }
    #appPage { padding:8px 8px 82px; }
    .app-header {
        top:6px;
        border-radius:15px;
        box-shadow:0 3px 12px rgba(8,34,58,.08);
    }
    .bottom-nav {
        left:8px;
        right:8px;
        bottom:8px;
        width:auto;
        border:1px solid rgba(223,231,239,.92);
        border-radius:18px;
        box-shadow:0 4px 14px rgba(8,34,58,.13);
    }
    .bottom-nav .nav-item.active { color:var(--navy-800); background:var(--navy-100); }
    .card, #page-home .card, .subsection-content { border-radius:16px; }
    .card { padding:16px; }
    .folder-card, .dept-card, .subsection-card { min-height:138px; padding:26px 10px 21px; border-radius:14px; }
    .tech-summary .stat { min-height:42px; display:grid; place-items:center; }
    .modal { border-radius:20px 20px 0 0; }
    .toast-container { bottom:88px; }
}

/* Economy mode is the default: keep repaint-heavy effects disabled. */
*, *::before, *::after {
    transition:none !important;
}

@media (max-width:520px) {
    #loginPage, #registerPage {
        width:calc(100% - 20px);
        padding:30px 22px 26px;
        border-radius:22px;
    }
    #loginPage .auth-logo, #registerPage .auth-logo { height:72px; }
    #loginPage .auth-sub, #registerPage .auth-sub { font-size:17px; }
    .company-name { font-size:11px; }
}

@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; }
}
 
/* Financial report dashboard */
.income-report-toolbar {
    display:flex;
    flex-wrap:wrap;
    align-items:end;
    gap:10px;
    margin-bottom:14px;
    padding:12px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#f4f7fa;
}
.income-filter {
    display:grid;
    gap:5px;
    min-width:170px;
    color:var(--text-muted);
    font-size:11px;
    font-weight:700;
}
.income-filter select, .income-filter input {
    min-height:38px;
    padding:7px 10px;
    border:1px solid var(--border);
    border-radius:9px;
    background:#fff;
    color:var(--text);
}
.income-record-count { align-self:center; color:var(--text-muted); font-size:12px; }
.income-report-actions { display:flex; gap:8px; margin-left:auto; }
.income-export-btn { background:#168a55; }
.income-metrics {
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:12px;
    margin-bottom:14px;
}
.income-metric {
    min-width:0;
    padding:16px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
}
.income-metric-heading { display:flex; align-items:center; gap:9px; margin-bottom:13px; font-size:14px; font-weight:800; }
.income-metric-icon {
    display:grid;
    width:40px;
    height:40px;
    flex:0 0 40px;
    place-items:center;
    border-radius:9px;
    background:currentColor;
}
.income-metric-icon svg {
    width:22px;
    height:22px;
    fill:none;
    stroke:#fff;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.income-metric-balance .income-metric-heading { color:#009caf; }
.income-metric-cost .income-metric-heading { color:#ed4a1c; }
.income-metric-income .income-metric-heading { color:#278a34; }
.income-metric-distance .income-metric-heading { color:#668493; }
.income-metric-label { display:block; color:#8797a8; font-size:11px; }
.income-metric > strong { display:block; margin:3px 0 9px; color:inherit; font-size:22px; line-height:1.2; }
.income-metric-balance > strong { color:#009caf; }
.income-metric-cost > strong { color:#ed4a1c; }
.income-metric-income > strong { color:#278a34; }
.income-metric-distance > strong { color:#668493; }
.income-metric-footer {
    display:flex;
    justify-content:space-between;
    gap:10px;
    padding-top:9px;
    border-top:1px solid #e8edf2;
    color:#8a99a8;
    font-size:10px;
}
.income-metric-footer span:last-child { text-align:right; }
.income-metric-footer b { display:block; margin-top:3px; color:var(--text); font-size:12px; }
.income-breakdown {
    margin-bottom:16px;
    padding:16px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
}
.income-breakdown-title { display:flex; align-items:center; gap:10px; color:#009caf; font-size:15px; font-weight:800; }
.income-breakdown-icon {
    display:grid;
    width:40px;
    height:40px;
    place-items:center;
    border-radius:9px;
    background:#009caf;
    color:#fff;
    font-size:25px;
}
.income-breakdown-body { display:grid; grid-template-columns:160px minmax(0,1fr); gap:28px; align-items:center; margin-top:12px; }
.income-donut {
    display:grid;
    width:150px;
    height:150px;
    place-items:center;
    border-radius:50%;
    background:conic-gradient(#f59e0b 0 var(--fuel-angle), #8b6f61 var(--fuel-angle) var(--service-angle), #ee4b24 var(--service-angle) 360deg);
}
.income-donut.is-empty { background:#edf1f4; }
.income-donut > div {
    display:grid;
    width:98px;
    height:98px;
    place-items:center;
    align-content:center;
    border-radius:50%;
    background:#fff;
    text-align:center;
}
.income-donut span { color:#8a99a8; font-size:11px; }
.income-donut strong { margin-top:4px; font-size:14px; }
.income-cost-list > div {
    display:grid;
    grid-template-columns:minmax(160px,1fr) minmax(110px,auto) 64px;
    gap:14px;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid #e8edf2;
    font-size:13px;
}
.income-cost-list > div:last-child { border-bottom:0; }
.income-cost-list span { display:flex; align-items:center; gap:10px; }
.income-cost-list strong { text-align:right; }
.income-cost-list em { color:#78899a; font-style:normal; text-align:right; }
.cost-dot { width:9px; height:9px; flex:0 0 9px; border-radius:3px; }
.cost-dot-fuel { background:#f59e0b; }
.cost-dot-service { background:#8b6f61; }
.cost-dot-other { background:#ee4b24; }
.income-report-note { margin:10px 0 0; color:var(--text-muted); font-size:11px; }
.income-details-heading { display:flex; justify-content:space-between; align-items:center; margin:18px 0 9px; font-size:16px; font-weight:800; }
.income-details-heading small { color:var(--text-muted); font-size:11px; font-weight:600; }
.income-group-row th { background:#dce8f4 !important; color:#2c506c !important; }
.income-total-row td { background:#eef2f6 !important; font-weight:700; }
.income-grand-total td { background:#dfe9f2 !important; }

.income-table-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-gutter: stable;
}

.check-table.income-table {
    width: max-content !important;
    min-width: 1960px !important;
    table-layout: auto !important;
}

.check-table.income-table th,
.check-table.income-table td {
    width: auto !important;
    min-width: 92px;
    padding: 10px 12px !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.check-table.income-table th { line-height: 1.25; }
.check-table.income-table th:nth-child(1), .check-table.income-table td:nth-child(1) { min-width:112px; }
.check-table.income-table th:nth-child(2), .check-table.income-table td:nth-child(2) { min-width:190px; }
.check-table.income-table th:nth-child(3), .check-table.income-table td:nth-child(3) { min-width:120px; }
.check-table.income-table th:nth-child(4), .check-table.income-table td:nth-child(4) { min-width:110px; }
.check-table.income-table th:nth-child(5), .check-table.income-table td:nth-child(5) { min-width:120px; }
.check-table.income-table th:nth-child(6), .check-table.income-table td:nth-child(6) { min-width:115px; }
.check-table.income-table th:nth-child(7), .check-table.income-table td:nth-child(7) { min-width:125px; }
.check-table.income-table th:nth-child(8), .check-table.income-table td:nth-child(8) { min-width:115px; }
.check-table.income-table th:nth-child(9), .check-table.income-table td:nth-child(9) { min-width:145px; }
.check-table.income-table th:nth-child(10), .check-table.income-table td:nth-child(10) { min-width:145px; }
.check-table.income-table th:nth-child(11), .check-table.income-table td:nth-child(11) { min-width:155px; }
.check-table.income-table th:nth-child(12), .check-table.income-table td:nth-child(12) { min-width:135px; }
.check-table.income-table th:nth-child(13), .check-table.income-table td:nth-child(13) { min-width:105px; }
.check-table.income-table th:nth-child(14), .check-table.income-table td:nth-child(14) { min-width:135px; }
.check-table.income-table th:nth-child(15), .check-table.income-table td:nth-child(15) { min-width:170px; }
.check-table.income-table th:nth-child(16), .check-table.income-table td:nth-child(16) { min-width:160px; }
.check-table.income-table td:nth-child(2) .meta { min-width:180px; white-space:normal; }

.order-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:12px 0 18px; }
.order-summary-section { border:1px solid #dbe4ee; border-radius:14px; padding:12px; background:#f8fafc; }
.order-summary-section.is-own-rented { border-left:4px solid #8468c9; }
.order-summary-section.is-rented { border-left:4px solid #d48b39; }
.order-summary-title { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:9px; font-size:13px; font-weight:800; }
.order-summary-title b { color:#587087; font-size:12px; white-space:nowrap; }
.order-summary-card { border:1px solid #dce4ec; border-radius:10px; background:#fff; margin-top:7px; overflow:hidden; }
.order-summary-card summary { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 12px; cursor:pointer; font-size:13px; }
.order-summary-card summary b { color:#174d75; white-space:nowrap; }
.order-summary-card.is-rented summary b { color:#9b5a17; }
.order-summary-card.is-own-rented summary b { color:#7352b7; }
.order-machine-list { border-top:1px solid #e5ebf1; padding:5px 12px 9px; }
.order-machine-list > div { display:flex; justify-content:space-between; gap:15px; padding:7px 0; border-bottom:1px solid #edf1f5; font-style:normal; }
.order-machine-list > div:last-child { border-bottom:0; }
.order-machine-list span { display:flex; flex-direction:column; }
.order-machine-list small, .order-machine-list em, .order-summary-empty { color:#6a7a8a; font-size:11px; font-style:normal; }
.order-summary-empty { padding:10px 2px; }

.income-fuel-heading { display:flex; justify-content:space-between; gap:12px; align-items:end; margin:14px 0 8px; }
.income-fuel-heading span { color:#6a7a8a; font-size:11px; text-align:right; }
.income-fuel-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; align-items:end; padding:10px; margin-bottom:8px; border:1px solid #dce4ec; border-radius:12px; background:#f8fafc; }
.income-fuel-row .form-group { margin:0; }
.income-fuel-norm { display:flex; align-items:center; gap:6px; min-height:38px; font-size:12px; white-space:nowrap; }
.income-fuel-norm input { width:auto; }
.income-fuel-remove { width:34px; height:38px; border:0; border-radius:8px; background:#fee2e2; color:#b42318; cursor:pointer; }
.income-add-fuel { margin:0 0 14px; }
.income-fuel-stack { display:flex; flex-direction:column; gap:5px; }
.income-fuel-stack span { display:flex; flex-direction:column; }
.income-fuel-stack small { color:#6a7a8a; font-size:10px; }

@media (max-width:1050px) {
    .income-metrics { grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:650px) {
    .order-summary-grid { grid-template-columns:1fr; }
    .income-fuel-norm { min-height:auto; }
    .income-report-toolbar { display:grid; grid-template-columns:1fr; }
    .income-filter { width:100%; }
    .income-report-actions { width:100%; margin-left:0; }
    .income-report-actions button { flex:1; }
    .income-metrics { grid-template-columns:1fr; }
    .income-breakdown-body { grid-template-columns:1fr; justify-items:center; }
    .income-cost-list { width:100%; }
    .income-cost-list > div { grid-template-columns:minmax(0,1fr) auto 54px; gap:8px; }
}
@media (max-width:480px) {
    .income-fuel-row { grid-template-columns:1fr; }
}
