/* KUBIS common styles: auctions, fleet, menu */   

   /* ==== Стили интерфейса аукциона ==== */
	body {
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        background: #f5f5f5;
        margin: 0;
        padding: 0;
    }
    .wrap {
        max-width: 1100px;
        margin: 40px auto;
        background: #fff;
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    }
    h1 {
        margin: 0;
        font-size: 22px;
    }
    .login-box {
        max-width: 360px;
        margin: 80px auto;
        background: #fff;
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }
    .login-box h2 {
        margin-top: 0;
        font-size: 20px;
        margin-bottom: 16px;
    }
    .login-box input[type="password"] {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
        border: 1px solid #ccc;
        box-sizing: border-box;
        margin-bottom: 12px;
    }
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 14px;
        border-radius: 8px;
        text-decoration: none;
        border: none;
        cursor: pointer;
        font-size: 13px;
        white-space: nowrap;
        box-sizing: border-box;
    }
    .btn-primary {
        background: #007bff;
        color: #fff;
    }
    .btn-primary:hover {
        background: #0056b3;
    }
    .btn-secondary {
        background: #e9ecef;
        color: #333;
    }
    .btn-secondary:hover {
        background: #d8dde2;
    }
    .btn-link {
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        font-size: 13px;
        color: #007bff;
        cursor: pointer;
    }
    .btn-link:hover {
        text-decoration: underline;
    }
    .error {
        color: #c00;
        margin-bottom: 10px;
        font-size: 13px;
    }
    .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        gap: 12px;
        flex-wrap: wrap;
    }
    .top-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .logo {
        height: 40px;
    }
    .muted {
        color: #777;
        font-size: 13px;
    }

    .filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin: 8px 0 4px;
    }
    .filter-group {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
    }
    .filter-label {
        color: #555;
    }
    .filter-dropdown {
        position: relative;
    }
    .filter-panel {
        position: absolute;
        top: 110%;
        left: 0;
        z-index: 1000;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        min-width: 220px;
        max-height: 260px;
        display: none;
        flex-direction: column;
    }
    .filter-dropdown.is-open .filter-panel {
        display: flex;
    }
    .filter-search {
        width: 100%;
        padding: 6px 8px;
        font-size: 13px;
        border-radius: 6px;
        border: 1px solid #ccc;
        box-sizing: border-box;
    }
    .filter-options {
        margin-top: 6px;
        max-height: 180px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .filter-options label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
    }
    .filter-actions {
        margin-top: 6px;
        text-align: right;
    }

    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        margin-top: 8px;
    }
    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
        min-width: 900px;
    }
    th, td {
        padding: 8px 6px;
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    th {
        background: #fafafa;
        font-weight: 600;
    }
    tr:hover {
        background: #f9fbff;
    }
    .text-right {
        text-align: right;
    }
    .no-data {
        padding: 20px 0;
        text-align: center;
        color: #888;
        font-size: 14px;
    }
    .actions-cell {
        text-align: right;
        white-space: nowrap;
    }
    .actions-cell .btn {
        margin-left: 4px;
    }

    .cards-wrapper {
        display: none;
        margin-top: 8px;
    }
    .card {
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 12px 12px 10px;
        margin-bottom: 10px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.03);
        overflow: hidden;
    }
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
        gap: 8px;
    }
    .card-title {
        font-size: 14px;
        font-weight: 600;
    }
    .card-sub {
        font-size: 12px;
        color: #777;
    }
    .card-row {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        margin: 2px 0;
    }
    .card-row span.label {
        color: #777;
    }
    .card-row span.value {
        font-weight: 500;
        text-align: right;
    }
    .card-actions {
        margin-top: 8px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .card-actions .btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .modal-window {
        background: #fff;
        border-radius: 12px;
        max-width: 480px;
        width: 90%;
        padding: 16px 16px 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }
    .modal-title {
        font-size: 16px;
        font-weight: 600;
    }
    .modal-close {
        background: transparent;
        border: none;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
    }
    .modal-body {
        font-size: 13px;
    }
    .modal-row {
        margin: 4px 0;
    }
    .modal-row span.label {
        color: #777;
    }
    .modal-row span.value {
        font-weight: 500;
        white-space: pre-line;
    }
    .modal-section-title {
        margin-top: 10px;
        font-size: 14px;
        font-weight: 600;
    }

    /* ==== Таблица истории ставок ==== */
    .bids-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
        margin-top: 4px;
        table-layout: fixed;
    }
    .bids-table th,
    .bids-table td {
        padding: 4px 6px;
        border-bottom: 1px solid #eee;
        text-align: left;
        vertical-align: top;
        word-wrap: break-word;
        white-space: normal;
        word-break: break-word;
    }
    .bids-table th:nth-child(1),
    .bids-table td:nth-child(1) {
        width: 80px;
    }
    .bids-table th:nth-child(2),
    .bids-table td:nth-child(2) {
        width: 130px;
    }
    .bids-table th:nth-child(3),
    .bids-table td:nth-child(3) {
        width: 140px;
    }
    .bids-table th:nth-child(4),
    .bids-table td:nth-child(4) {
        width: auto;
    }

    /* ==== Спец-настройки именно для модалки истории ставок ==== */
    #bidsModal .modal-window {
        max-width: 720px;   /* шире, чем обычная модалка */
        width: 90%;
    }
    #bidsModal .modal-body {
        overflow-x: auto;   /* если что — горизонтальный скролл, а не вылезание */
    }

    @media (max-width: 768px) {
        .wrap {
            margin: 16px;
            padding: 16px;
        }
        .top-left {
            flex-direction: column;
            align-items: flex-start;
        }
        .logo {
            height: 32px;
        }
        .table-wrapper {
            display: none;
        }
        .cards-wrapper {
            display: block;
        }
    }
    @media (max-width: 480px) {
        .wrap {
            margin: 8px;
            padding: 12px;
        }
    }
	
	/* ==== Стили интерфейса собственного транспорта ==== */

        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: #f5f5f5;
            margin: 0;
            padding: 0;
        }
        .wrap {
            max-width: 1100px;
            margin: 40px auto;
            background: #fff;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        }
        h1 {
            margin: 0;
            font-size: 22px;
        }
        .login-box {
            max-width: 360px;
            margin: 80px auto;
            background: #fff;
            padding: 24px;
            border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        }
        .login-box h2 {
            margin-top: 0;
            font-size: 20px;
            margin-bottom: 16px;
        }
        .login-box input[type="password"] {
            width: 100%;
            padding: 10px 12px;
            font-size: 14px;
            border-radius: 8px;
            border: 1px solid #ccc;
            box-sizing: border-box;
            margin-bottom: 12px;
        }
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 14px;
            border-radius: 8px;
            text-decoration: none;
            border: none;
            cursor: pointer;
            font-size: 13px;
            white-space: nowrap;
            box-sizing: border-box;
        }
        .btn-primary {
            background: #007bff;
            color: #fff;
        }
        .btn-primary:hover {
            background: #0056b3;
        }
        .btn-secondary {
            background: #e9ecef;
            color: #333;
        }
        .btn-secondary:hover {
            background: #d8dde2;
        }
        .error {
            color: #c00;
            margin-bottom: 10px;
            font-size: 13px;
        }
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            gap: 12px;
            flex-wrap: wrap;
        }
        .top-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .logo {
            height: 40px;
        }
        .muted {
            color: #777;
            font-size: 13px;
        }
        
        /* НОВЫЕ СТИЛИ ДЛЯ ФИЛЬТРОВ */
		.filter-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin: 8px 0 4px;
        }

        .filter-group {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
        }

        .filter-label {
            color: #555;
        }

        .filter-dropdown {
            position: relative;
        }

        .filter-panel {
            position: absolute;
            top: 110%;
            left: 0;
            z-index: 1000;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            min-width: 220px;
            max-height: 260px;
            display: none;
            flex-direction: column;
        }

        .filter-dropdown.is-open .filter-panel {
            display: flex;
        }

        .filter-search {
            width: 100%;
            padding: 6px 8px;
            font-size: 13px;
            border-radius: 6px;
            border: 1px solid #ccc;
            box-sizing: border-box;
        }

        .filter-options {
            margin-top: 6px;
            max-height: 180px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .filter-options label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
        }

        .filter-actions {
            margin-top: 6px;
            text-align: right;
        }
        /* КОНЕЦ СТИЛЕЙ ДЛЯ ФИЛЬТРОВ */


        /* ======= ТАБЛИЦА (ДЕСКТОП) ======= */
        .table-wrapper {
            width: 100%;
            overflow-x: auto;
            margin-top: 8px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            min-width: 900px;
        }
        th, td {
            padding: 8px 6px;
            border-bottom: 1px solid #eee;
            text-align: left;
        }
        th {
            background: #fafafa;
            font-weight: 600;
        }
        tr:hover {
            background: #f9fbff;
        }
        .text-right {
            text-align: right;
        }
        .no-data {
            padding: 20px 0;
            text-align: center;
            color: #888;
            font-size: 14px;
        }
        .actions-cell {
            text-align: right;
            white-space: nowrap;
        }
        .actions-cell .btn {
            margin-left: 4px;
        }

        /* ======= КАРТОЧКИ (МОБИЛЬНАЯ ВЕРСИЯ) ======= */
        .cards-wrapper {
            display: none;
            margin-top: 8px;
        }
        .card {
            border: 1px solid #eee;
            border-radius: 10px;
            padding: 12px 12px 10px;
            margin-bottom: 10px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.03);
            overflow: hidden;
        }
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 6px;
            gap: 8px;
        }
        .card-title {
            font-size: 14px;
            font-weight: 600;
        }
        .card-sub {
            font-size: 12px;
            color: #777;
        }
        .card-row {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            margin: 2px 0;
        }
        .card-row span.label {
            color: #777;
        }
        .card-row span.value {
            font-weight: 500;
            text-align: right;
        }
        .card-actions {
            margin-top: 8px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .card-actions .btn {
            width: 100%;
            max-width: 100%;
            text-align: center;
        }

        /* ======= МОДАЛЬНОЕ ОКНО "ПОДРОБНЕЕ" ======= */
        .modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.4);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }
        .modal-window {
            background: #fff;
            border-radius: 12px;
            max-width: 480px;
            width: 90%;
            padding: 16px 16px 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .modal-title {
            font-size: 16px;
            font-weight: 600;
        }
        .modal-close {
            background: transparent;
            border: none;
            font-size: 20px;
            line-height: 1;
            cursor: pointer;
        }
        .modal-body {
            font-size: 13px;
        }
        .modal-row {
            margin: 4px 0;
        }
        .modal-row span.label {
            color: #777;
        }
        .modal-row span.value {
            font-weight: 500;
            white-space: pre-line;
        }
        .modal-section-title {
            margin-top: 10px;
            font-size: 14px;
            font-weight: 600;
        }

        /* ======= АДАПТИВ ======= */
        @media (max-width: 768px) {
            .wrap {
                margin: 16px;
                padding: 16px;
            }
            .top-left {
                flex-direction: column;
                align-items: flex-start;
            }
            .logo {
                height: 32px;
            }
            .table-wrapper {
                display: none;
            }
            .cards-wrapper {
                display: block;
            }
        }

        @media (max-width: 480px) {
            .wrap {
                margin: 8px;
                padding: 12px;
            }
        }
		
		/* ==== Стили стартового меню (index.php) ==== */

body.kubis-menu {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
}

body.kubis-menu .wrap {
    max-width: 600px;
    margin: 60px auto;
    background: #fff;
    border-radius: 16px;
    padding: 24px 24px 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

body.kubis-menu .logo {
    height: 42px;
    display: block;
    margin-bottom: 16px;
}

body.kubis-menu h1 {
    margin: 0 0 8px;
    font-size: 22px;
}

body.kubis-menu .muted {
    color: #777;
    font-size: 13px;
    margin-bottom: 20px;
}

body.kubis-menu .cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.kubis-menu .card {
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 14px 16px 12px;
    background: #fafafa;
}

body.kubis-menu .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

body.kubis-menu .card-text {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

body.kubis-menu .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

body.kubis-menu .btn-primary {
    background: #007bff;
    color: #fff;
}

body.kubis-menu .btn-primary:hover {
    background: #0056b3;
}

body.kubis-menu .btn-secondary {
    background: #e9ecef;
    color: #333;
}

body.kubis-menu .btn-secondary:hover {
    background: #d8dde2;
}

@media (max-width: 480px) {
    body.kubis-menu .wrap {
        margin: 24px 12px;
        padding: 18px 14px 22px;
    }
}
