/* 
 * Стили личного кабинета (Dashboard) 
 * Вынесено из dashboard.html в рамках Split Protocol
 */



/* Table styles mapped from the main page */
.table-section { border-radius: 8px !important; overflow: hidden !important; border: 1px solid #27272a !important; }
.parts-table, .table-section table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.parts-table th, table thead th, .table thead th, #cart-table thead th { padding: 15px; color: #aaa !important; font-size: 11px; text-transform: uppercase; border-bottom: 2px solid #27272a; text-shadow: none !important; }
.parts-table td { padding: 15px; border-bottom: 1px solid #27272a; }
.parts-table tr:hover { background: #18181b; }
.dashboard-preview-img { max-width: 100px; max-height: 100px; }

.status-badge { padding: 5px 10px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; }
.status-draft { background: #444; color: #e4e4e7; }
.status-awaiting { background: #ff9800; color: #e4e4e7; }
.status-paid { background: #2ed573; color: #e4e4e7; }
.status-production { background: #1e90ff; color: #e4e4e7; }
.status-ready { background: #3742fa; color: #e4e4e7; }
.status-shipped { background: #2f3542; color: #e4e4e7; }
.status-delivery-done { background: #4caf50; color: #e4e4e7; }
.status-default { background: #333; color: #e4e4e7; }

.btn-delivery {
    background-color: #333;
    color: white;
    border: 1px solid #ff6600;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
}
.btn-delivery:hover {
    background-color: #ff6600;
    color: #000;
}

/* Навигация (минималистичное меню) */
.minimal-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 10px 0;
    margin-bottom: 25px;
}
.minimal-tabs {
    display: flex;
    align-items: center;
    gap: 15px;
}
.minimal-tab {
    color: #888;
    cursor: pointer;
    font-size: 14px;
    background: none;
    border: none;
    padding: 0;
    outline: none;
}
.minimal-tab:hover {
    color: #ccc;
}
.minimal-tab.active {
    color: #ff6600;
    font-weight: bold;
}
.minimal-divider {
    color: #444;
    font-size: 14px;
}
.tab-section {
    display: none;
}

/* Styling for bottom delivery info layout */
.bottom-info-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
}

#delivery-method-widget {
    margin-bottom: 20px;
}

#thickness-select-bottom,
#material-select-bottom {
    font-size: 13px !important;
    padding: 8px !important;
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid #444 !important;
    outline: none;
    border-radius: 4px;
}

#thickness-select-bottom:focus,
#material-select-bottom:focus {
    border-color: #ffb000 !important;
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.5);
}

#delivery-calc-table td {
    padding: 8px 5px;
    border-bottom: 1px solid #27272a;
}

#preview-panel {
    margin-top: 20px;
}


/* Wizard Workflow Styles - Логика оформления 3-шагового мастера + Подвал */
/* Контейнер для трех шагов */
.wizard-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Контейнер для центрирования кнопки (Шаг 4) */
.wizard-row-bottom {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Оформление отдельной карточки шага как UI-виджета */
.wizard-step {
    border: 1px solid #27272a !important;
    border-top: 3px solid #27272a !important;
    opacity: 0.6 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    background: #18181b !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 180px !important;
}

/* Активное состояние (.active-step) */
.wizard-step.active-step {
    border-top: 3px solid #ff6600 !important;
    border-color: #ff6600 !important;
    opacity: 1 !important;
    box-shadow: 0 -2px 10px rgba(255,102,0,0.2) !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.wizard-step.active-step select,
.wizard-step.active-step input {
    pointer-events: auto !important;
}

/* Завершенное состояние (.completed-step) */
.wizard-step.completed-step {
    border-top: 3px solid #555 !important;
    border-color: #444 !important;
    opacity: 0.8 !important;
}

/* Визуальное отключение будущих шагов (блокировка) */
.wizard-step.inactive-step {
    opacity: 0.6 !important;
    filter: grayscale(1) !important;
    pointer-events: none !important;
    border-top: 3px solid #333 !important;
}

@media (max-width: 1200px) {
    .wizard-row-top {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .wizard-row-top {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .wizard-steps-container {
        grid-template-columns: 1fr !important;
    }
}



/* Typography and state classes for step titles */
.wizard-step .step-title {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #777 !important;
    text-transform: uppercase !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
}

.wizard-step.active-step .step-title {
    color: #ff6600 !important;
}

.wizard-step.completed-step .step-title {
    color: #ccc !important;
}

/* Disabled states for buttons */
button:disabled,
button.disabled,
.btn-place-order.disabled {
    background-color: #555 !important;
    color: #888 !important;
    pointer-events: none !important;
    opacity: 0.5 !important;
    border-color: #444 !important;
    cursor: not-allowed !important;
}

.btn-place-order:not(.disabled):not(:disabled) {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* Styles for the quantity input in Step 2 */
.dark-input {
    width: 100%;
    padding: 8px;
    background: #222 !importa.dark-input:disabled {
    background: #333 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border-color: #444 !important;
}

/* Внешний контейнер карточки */
.order-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 15px !important;
    margin: 20px auto;
    width: 95%; /* As requested: width 95% */
    overflow: hidden; /* Ключевое свойство для скругления углов таблицы */
}

/* Убираем лишние отступы у таблицы */
.order-card table {
    margin-bottom: 0 !important;
    border-radius: 0;
}

/* Слой кнопок */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    gap: 15px; /* As requested: gap 15px */
    border-top: 1px solid #27272a;
    background: rgba(255,255,255,0.02);
}

.card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px;
    background: rgba(255, 255, 255, 0.03); 
    border-bottom: 1px solid #27272a;
}

.btn-lg { 
    padding: 10px 25px; 
    font-weight: 600; 
}

.badge { 
    margin-left: auto; 
}
.wizard-step.step-completed {
    border-top: 3px solid #22c55e !important;
    border-color: #22c55e !important;
    opacity: 0.9 !important;
}
.wizard-step.step-completed .step-title {
    color: #22c55e !important;
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.5);
}

#delivery-calc-table td {
    padding: 8px 5px;
    border-bottom: 1px solid #27272a;
}

#preview-panel {
    margin-top: 20px;
}


/* Wizard Workflow Styles - Логика оформления 3-шагового мастера + Подвал */
/* Контейнер для трех шагов */
.wizard-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Контейнер для центрирования кнопки (Шаг 4) */
.wizard-row-bottom {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Оформление отдельной карточки шага как UI-виджета */
.wizard-step {
    border: 1px solid #27272a !important;
    border-top: 3px solid #27272a !important;
    opacity: 0.6 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    background: #18181b !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 180px !important;
}

/* Активное состояние (.active-step) */
.wizard-step.active-step {
    border-top: 3px solid #ff6600 !important;
    border-color: #ff6600 !important;
    opacity: 1 !important;
    box-shadow: 0 -2px 10px rgba(255,102,0,0.2) !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.wizard-step.active-step select,
.wizard-step.active-step input {
    pointer-events: auto !important;
}

/* Завершенное состояние (.completed-step) */
.wizard-step.completed-step {
    border-top: 3px solid #555 !important;
    border-color: #444 !important;
    opacity: 0.8 !important;
}

/* Визуальное отключение будущих шагов (блокировка) */
.wizard-step.inactive-step {
    opacity: 0.6 !important;
    filter: grayscale(1) !important;
    pointer-events: none !important;
    border-top: 3px solid #333 !important;
}

@media (max-width: 1200px) {
    .wizard-row-top {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .wizard-row-top {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .wizard-steps-container {
        grid-template-columns: 1fr !important;
    }
}



/* Typography and state classes for step titles */
.wizard-step .step-title {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #777 !important;
    text-transform: uppercase !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
}

.wizard-step.active-step .step-title {
    color: #ff6600 !important;
}

.wizard-step.completed-step .step-title {
    color: #ccc !important;
}

/* Disabled states for buttons */
button:disabled,
button.disabled,
.btn-place-order.disabled {
    background-color: #555 !important;
    color: #888 !important;
    pointer-events: none !important;
    opacity: 0.5 !important;
    border-color: #444 !important;
    cursor: not-allowed !important;
}

.btn-place-order:not(.disabled):not(:disabled) {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* Styles for the quantity input in Step 2 */
.dark-input {
    width: 100%;
    padding: 8px;
    background: #222 !importa.dark-input:disabled {
    background: #333 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border-color: #444 !important;
}

/* Внешний контейнер карточки */
.order-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 15px !important;
    margin: 20px auto;
    width: 95%; /* As requested: width 95% */
    overflow: hidden; /* Ключевое свойство для скругления углов таблицы */
}

/* Убираем лишние отступы у таблицы */
.order-card table {
    margin-bottom: 0 !important;
    border-radius: 0;
}

/* Слой кнопок */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    gap: 15px; /* As requested: gap 15px */
    border-top: 1px solid #27272a;
    background: rgba(255,255,255,0.02);
}

.card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px;
    background: rgba(255, 255, 255, 0.03); 
    border-bottom: 1px solid #27272a;
}

.btn-lg { 
    padding: 10px 25px; 
    font-weight: 600; 
}

.badge { 
    margin-left: auto; 
}
.wizard-step.step-completed {
    border-top: 3px solid #22c55e !important;
    border-color: #22c55e !important;
    opacity: 0.9 !important;
}
.wizard-step.step-completed .step-title {
    color: #22c55e !important;
}
.wizard-step.step-completed .step-title::after {
    content: " \2713";
    font-weight: bold;
}
#btn-with-coating:not(:disabled):not(.disabled), #btn-no-coating:not(:disabled):not(.disabled) { cursor: pointer !important; pointer-events: auto !important; }

/* [UX-Lockdown] Радикальная изоляция DOM */
.step-frozen {
    pointer-events: none !important;
    opacity: 0.6;
    cursor: not-allowed !important;
}