/* =============================================
   Стили для страницы оформления билетов MSPP
   ============================================= */

/* ---------- Общие элементы ---------- */
.salc_s1, .funs {
    display: flex;
    flex-direction: row;
    margin: 1.5rem;
}

.reserve_btn, .payorder_btn, .delete_order {
    background-color: #304689;
    color: #ffffff;
    font-weight: 800;
    border-radius: 0.3rem;
    border: 1px solid #304689;
    margin-left: 1.5rem;
    opacity: 1;
}

.reserve_btn:hover, .payorder_btn:hover, .delete_order:hover, .buy-btn:hover {
    opacity: 0.7;
}

.buy-r {
    margin: 1rem;
}

.class-r {
    /* display: none !important; */
}

/* ---------- Поле выбора типа билета ---------- */
/* Основной контейнер – имитация form-control */
.sel_class {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);  /* стандартная высота Bootstrap 4 */
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    position: relative;
    cursor: pointer;
}

/* Отображаемый текст выбранного варианта */
.selected-display {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    line-height: inherit;
    /* padding не нужен – уже задан родителем */
}

/* Выпадающий контейнер со списком вариантов */
.sel_class .dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.sel_class.open .dropdown-list {
    display: block;
}

/* Варианты внутри выпадающего списка */
.sel_class .dropdown-list .class_o {
    display: block;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Убираем старые абсолютные позиции у class_o */
.sel_class .class_o {
    /* position и top/left больше не нужны */
}

/* ---------- Стили для вариантов (class_o) ---------- */
.class_o:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.class_o:active {
    background-color: #e0e0e0;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    transform: translateY(0);
}

.class_o.selected {
    border: 2px solid #3498db;
    background-color: #e6f2fa;
}

/* ---------- Стрелка выпадающего списка ---------- */
.sel_class::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    border: solid #495057;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    pointer-events: none;
}

/* ---------- Информация о заказе ---------- */
.pass_info {
    /* padding: 1rem; */
}

/* ---------- Поля ввода ---------- */
.form-control:disabled, .form-control[readonly] {
    background-color: #cecece;
    opacity: 1;
}

input[type=text]::placeholder {
    color: #6e707e;
}
input[type=text]::-webkit-input-placeholder {
    color: #6e707e;
}
input[type=text]::-moz-placeholder {
    color: #6e707e;
}
input[type=text]:-moz-placeholder {
    color: #6e707e;
}
input[type=text]:-ms-input-placeholder {
    color: #6e707e;
}

.form-control {
    margin: 3px 0;
}

/* ---------- Кнопки +/- и счетчики ---------- */
.minus, .plus {
    width: 2rem;
    height: 2rem;
    text-align: center;
}

.calc_info {
    width: 4rem;
    text-align: right;
    padding: 0 0.2rem;
}

div.count {
    display: inline-block;
    width: 30px;
    text-align: center;
}

p.k-desc {
    color: #8d8d8d;
    font-size: 13px;
    line-height: 1em !important;
    margin: 0 !important;
    padding: 0 0 10px !important;
}

.salc_s1 {
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
}

.buy-btn, .plus, .minus {
    opacity: 1;
    background-color: #304689;
    color: #ffffff;
    font-weight: 800;
    border-radius: 0.3rem;
    border: 1px solid #304689;
}

/* ---------- Цены и итоги ---------- */
.price {
    font-size: 1.5rem;
}

.inf {
    margin-top: 1rem;
}

.pd {
    margin-top: 0.2rem;
}

.left {
    width: 60%;
    display: flex;
    flex-direction: row;
}

.right {
    width: 40%;
    display: flex;
    flex-direction: row;
}

/* ---------- Отладка и оповещения ---------- */
.debug_info {
    margin-bottom: 1.5rem;
}

.good_alert {
    background-color: #9FE2BF;
    font-weight: 600;
}

.bad_alert {
    background-color: #CD5C5C;
    color: #ffffff;
    font-weight: 600;
}

.pass_label {
    margin-top: 1rem;
}

/* ---------- Таблицы возвратов/истории ---------- */
.sales_list_h_row {
    display: flex;
    flex-direction: row;
}

.sales_list_cell_h1, .sales_list_cell_h2, .sales_list_cell_h3,
.sales_list_cell_h4, .sales_list_cell_h5, .sales_list_cell_h6, .sales_list_cell_h0 {
    background-color: #4e73df;
    color: #ffffff;
}

.sales_list_cell_h1, .sales_list_cell_1, .sales_list_cell_h0, .sales_list_cell_0 {
    width: 15%;
    padding: 0.5rem;
    margin-right: 0.2rem;
}

.sales_list_cell_h2, .sales_list_cell_2 {
    width: 8%;
    padding: 0.5rem;
    margin-right: 0.2rem;
}

.sales_list_cell_h5, .sales_list_cell_5, .sales_list_cell_h6, .sales_list_cell_6,
.sales_list_cell_h3, .sales_list_cell_3, .sales_list_cell_h4, .sales_list_cell_4 {
    width: 18%;
    padding: 0.5rem;
    margin-right: 0.2rem;
}

/* ---------- Растягивание таблицы на всю ширину ---------- */
#lk-content .dark_layer2 {
    padding: 0 !important;
    margin: 0 !important;
}

#lk-content .dark_layer2 .bootstrap-table,
#lk-content .dark_layer2 .fixed-table-container {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#lk-content .dark_layer2 .bootstrap-table .fixed-table-container table {
    width: 100% !important;
    margin: 0 !important;
}

#lk-content .container {
    max-width: none !important;
}

@media (min-width: 1600px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: none !important;
    }
}

/* ---------- Строка фильтров ---------- */
.menu-string {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 10px;
}

.menu-string .search_nr,
.menu-string .search_by_param {
    background: #4e73df !important;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.menu-string input[type="date"],
.menu-string input[type="text"],
.menu-string .s,
.menu-string .po,
.menu-string .time,
.menu-string .spm {
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    width: auto;
    min-width: 120px;
}

.menu-string input[type="date"] {
    width: 150px;
}