/* ==================== БАЗОВЫЕ СТИЛИ ==================== */
:root {
    --primary-blue: #0056D6;
    --light-blue: #E6F0FF;
    --white: #FFFFFF;
    --red: #E31E24;
    --green: #28A745;
    --orange: #FFC107;
    --gray: #F5F5F5;
    --dark-gray: #333333;
    --border: #DDDDDD;
    --purple: #9C27B0;
    --teal: #009688;
    --brown: #795548;
    --blue-gray: #607D8B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    min-height: 100vh;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ==================== КОНТЕЙНЕРЫ ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== ЭКРАН ВЫБОРА РОЛИ ==================== */
.logo-header {
    text-align: center;
    margin-bottom: 50px;
}

.logo-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), #003D99);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(0, 86, 214, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-header h1 {
    color: var(--primary-blue);
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: 18px;
    font-weight: 400;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.role-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,86,214,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,86,214,0.2);
    border-color: var(--primary-blue);
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #00BCD4);
}

.role-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.role-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.role-card p {
    color: #666;
    margin-bottom: 20px;
    min-height: 60px;
}

.role-steps {
    background: var(--gray);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.step {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step:last-child {
    border-bottom: none;
}

.role-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-blue), #003D99);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.role-btn:hover {
    background: linear-gradient(135deg, #004BB5, #003A8C);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,86,214,0.3);
}

/* ==================== ФОРМЫ ==================== */
.form-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0,86,214,0.15);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #00BCD4);
}

.header-with-back {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.back-btn {
    padding: 10px 20px;
    background: var(--gray);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.back-btn:hover {
    background: var(--border);
    transform: translateX(-2px);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray);
}

.step {
    text-align: center;
    font-size: 14px;
    color: #999;
    position: relative;
}

.step.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.step.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0,86,214,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-blue), #003D99);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #004BB5, #003A8C);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,86,214,0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ==================== ПАНЕЛИ ==================== */
.panel-header {
    background: linear-gradient(90deg, var(--primary-blue) 0%, #003D99 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,86,214,0.2);
}

.panel-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-info h2 {
    font-size: 24px;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.panel-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 12px 24px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-btn.active,
.nav-btn:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* ==================== ИНФО-БЛОКИ ==================== */
.info-box {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-box.warning {
    border-left-color: var(--orange);
    background: #FFF3CD;
}

.info-box ol {
    margin-left: 20px;
    margin-top: 10px;
}

.info-box li {
    margin-bottom: 8px;
    padding-left: 5px;
}

/* ==================== КАРТОЧКИ ЗАЯВОК ==================== */
.orders-list, .orders-grid {
    margin-top: 20px;
}

.order-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 6px solid var(--primary-blue);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #00BCD4);
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.order-card.priority-high {
    border-left-color: var(--red);
    animation: pulse 2s infinite;
}

.order-card.status-pass-change {
    border-left-color: var(--orange);
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(227, 30, 36, 0.5); }
    50% { box-shadow: 0 0 15px rgba(227, 30, 36, 0.8); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray);
}

.order-number {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 18px;
}

.order-info {
    margin-bottom: 15px;
}

.order-info div {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.order-info strong {
    min-width: 120px;
    color: var(--primary-blue);
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* ==================== КНОПКИ ==================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-edit { 
    background: linear-gradient(135deg, #2196F3, #1976D2); 
    color: white; 
}

.btn-cancel { 
    background: linear-gradient(135deg, #F44336, #D32F2F); 
    color: white; 
}

.btn-priority { 
    background: linear-gradient(135deg, #FF9800, #F57C00); 
    color: white; 
}

.btn-comment { 
    background: linear-gradient(135deg, #9C27B0, #7B1FA2); 
    color: white; 
}

.btn-status { 
    background: linear-gradient(135deg, #4CAF50, #388E3C); 
    color: white; 
}

.btn-report { 
    background: linear-gradient(135deg, #607D8B, #455A64); 
    color: white; 
}

.btn-export { 
    background: linear-gradient(135deg, #009688, #00796B); 
    color: white; 
}

.btn-return {
    background: linear-gradient(135deg, #795548, #5D4037);
    color: white;
}

.btn-confirm {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

/* ==================== СТАТУСЫ ==================== */
.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-новая { background: linear-gradient(135deg, #FFC107, #FF9800); }
.status-в-обработке { background: linear-gradient(135deg, #2196F3, #1976D2); }
.status-готов-к-выдаче { background: linear-gradient(135deg, #4CAF50, #388E3C); }
.status-отгружена { background: linear-gradient(135deg, #009688, #00796B); }
.status-замена-пропуска { background: linear-gradient(135deg, #FF5722, #E64A19); animation: pulse 2s infinite; }
.status-отказ-клиента { background: linear-gradient(135deg, #9C27B0, #7B1FA2); }
.status-отменена { background: linear-gradient(135deg, #F44336, #D32F2F); }
.status-проблема { background: linear-gradient(135deg, #795548, #5D4037); }
.status-возврат { background: linear-gradient(135deg, #607D8B, #455A64); }

.time-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.before-13 { background: linear-gradient(135deg, #2196F3, #1976D2); }
.after-13 { background: linear-gradient(135deg, #FF9800, #F57C00); }

.priority-badge {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
}

.pass-change-badge {
    background: linear-gradient(135deg, #FF5722, #E64A19);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    animation: pulse 2s infinite;
}

.data-change-notice {
    background: #FFF3CD;
    border: 2px dashed #FFC107;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
    color: #856404;
    animation: pulse 2s infinite;
}

/* ==================== СКЛАДСКАЯ ПАНЕЛЬ ==================== */
.warehouse-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.search-filter {
    display: flex;
    gap: 10px;
    flex: 2;
    min-width: 300px;
}

.search-filter input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.warehouse-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 14px;
}

.orders-info {
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.orders-summary {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.orders-summary span {
    font-size: 14px;
    color: var(--dark-gray);
}

.orders-summary strong {
    color: var(--primary-blue);
    font-size: 18px;
}

.orders-group-header {
    margin: 20px 0 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray);
}

.orders-group-header h3 {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 600;
}

.warehouse-order-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 6px solid var(--primary-blue);
}

.warehouse-order-card.priority-high {
    border-left-color: var(--red);
}

.warehouse-order-card.status-pass-change {
    border-left-color: var(--orange);
}

.order-status-section {
    margin: 15px 0;
    padding: 10px;
    background: var(--gray);
    border-radius: 8px;
}

.status-display {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    margin-top: 5px;
}

.status-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.status-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/* СТИЛИ ДЛЯ СКЛАДА */

.warehouse-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-apply {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-apply:hover {
    background: #1976D2;
}

.date-info {
    background: #e3f2fd;
    color: #2196F3;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 4px solid #2196F3;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.counter-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 4px solid;
}

.counter-box:nth-child(1) { border-color: #2196F3; }
.counter-box:nth-child(2) { border-color: #FF9800; }
.counter-box:nth-child(3) { border-color: #9C27B0; }
.counter-box:nth-child(4) { border-color: #F44336; }
.counter-box:nth-child(5) { border-color: #4CAF50; }

.counter-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.counter-label {
    font-size: 14px;
    color: #666;
}

/* СТИЛИ ДЛЯ ГРУППИРОВКИ ПО ДАТАМ */
.date-section {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.date-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-title h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.date-order-count {
    background: #e3f2fd;
    color: #2196F3;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.date-badges {
    display: flex;
    gap: 10px;
}

.date-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.date-badge.pass-change {
    background: #ffebee;
    color: #f44336;
    border: 1px solid #f44336;
}

.date-badge.priority {
    background: #fff3e0;
    color: #ff9800;
    border: 1px solid #ff9800;
}

.orders-group-header {
    background: #f5f5f5;
    padding: 10px 20px;
    margin-top: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.orders-group-header h4 {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* СТИЛИ ДЛЯ КАРТОЧЕК ЗАЯВОК СКЛАДА */
.warehouse-order-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #4CAF50;
}

.warehouse-order-card.priority-high {
    border-left-color: #FF9800;
    background: #fff8e1;
}

.warehouse-order-card.status-pass-change {
    border-left-color: #F44336;
    background: #ffebee;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.manager-info {
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.order-header-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.date-info {
    font-size: 14px;
    color: #666;
    background: #e3f2fd;
    padding: 3px 8px;
    border-radius: 4px;
}

.time-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.time-badge.before-13 {
    background: #e8f5e8;
    color: #4CAF50;
}

.time-badge.after-13 {
    background: #f3e5f5;
    color: #9C27B0;
}

.priority-badge {
    background: #fff3e0;
    color: #ff9800;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.pass-change-badge {
    background: #ffebee;
    color: #f44336;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.order-info {
    margin-bottom: 15px;
}

.order-info div {
    margin-bottom: 5px;
    font-size: 14px;
}

.order-info strong {
    color: #333;
    margin-right: 5px;
}

.order-status-section {
    margin-bottom: 15px;
}

.order-status-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.status-display {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.warehouse-actions {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.status-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.status-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.status-btn:hover {
    transform: translateY(-2px);
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-comment {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-confirm {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-move {
    background: #FF9800;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.order-comment {
    margin-top: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #2196F3;
    font-size: 14px;
    color: #555;
}

.order-history {
    margin-top: 15px;
    font-size: 14px;
}

.order-history summary {
    cursor: pointer;
    color: #666;
    font-weight: 600;
    padding: 5px 0;
}

.order-history summary:hover {
    color: #2196F3;
}

.history-list {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 10px;
}

.history-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.history-item:last-child {
    border-bottom: none;
}

.history-time {
    color: #666;
    min-width: 140px;
    font-size: 12px;
}

.history-action {
    flex: 1;
    margin: 0 10px;
    color: #333;
}

.history-user {
    color: #2196F3;
    min-width: 80px;
    text-align: right;
    font-weight: 600;
}

/* СОСТОЯНИЕ ПУСТО */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.empty-state .emoji {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТИВНОСТИ */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-header {
        flex-direction: column;
    }
    
    .order-header-right {
        align-self: flex-start;
    }
    
    .status-controls {
        justify-content: center;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .history-time,
    .history-user {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .counters-grid {
        grid-template-columns: 1fr;
    }
    
    .date-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .date-badges {
        align-self: flex-start;
    }
}

/* ==================== СТАТИСТИКА ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-blue), #003D99);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,86,214,0.2);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,86,214,0.3);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Стили для отчетов */
.report-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.report-type-btn {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.report-type-btn.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.report-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-form.active {
    display: block;
}

.report-form:not(.active) {
    display: none;
}

.report-results {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.status-list, .managers-list, .daily-stats {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.status-item, .manager-item, .day-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.status-item:last-child, .manager-item:last-child, .day-item:last-child {
    border-bottom: none;
}

.report-actions {
    margin-top: 20px;
    text-align: center;
}

.btn-report {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-report:hover {
    background: #45a049;
}

.btn-export {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin: 5px;
}

.btn-export:hover {
    background: #1976D2;
}
/* Стили для переключения отчетов */
.report-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.report-type-btn {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.report-type-btn.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.report-type-btn:hover {
    background: #e0e0e0;
}

.report-type-btn.active:hover {
    background: #1976D2;
}

/* Формы отчетов */
.report-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-form:not(.active) {
    display: none;
}

/* Карточка отчета */
.report-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Статистика */
.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

/* Списки */
.status-list, .managers-list {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.status-item, .manager-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.status-item:last-child, .manager-item:last-child {
    border-bottom: none;
}

.status-name, .manager-name {
    font-weight: 500;
}

.status-count, .manager-count {
    color: #2196F3;
    font-weight: 600;
}

/* Кнопки отчетов */
.btn-report {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-report:hover {
    background: #45a049;
}

.btn-export {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 15px;
}

.btn-export:hover {
    background: #1976D2;
}

.report-actions {
    margin-top: 20px;
    text-align: center;
}

/* Заглушка */
.report-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
}
/* ==================== УВЕДОМЛЕНИЯ ==================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease-out;
    max-width: 350px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification-success { 
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95)); 
}

.notification-error { 
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.95), rgba(211, 47, 47, 0.95)); 
}

.notification-warning { 
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95), rgba(245, 124, 0, 0.95)); 
}

.notification-info { 
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.95), rgba(25, 118, 210, 0.95)); 
}

/* ==================== ЗАГРУЗКА ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), #003D99);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.loader {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 5px solid white;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {
    .role-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .warehouse-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filter {
        flex-direction: column;
    }
    
    .panel-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .panel-nav {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    .orders-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .status-controls {
        flex-direction: column;
    }
    
    .status-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==================== УТИЛИТЫ ==================== */
.counter {
    background: var(--primary-blue);
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 14px;
    margin-left: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    background: var(--gray);
    border-radius: 10px;
    font-size: 16px;
}

.order-comment {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    border-left: 3px solid var(--primary-blue);
}
/* ==================== КНОПКИ ЗАМЕНЫ ПРОПУСКА ==================== */
.btn-pass-change {
    background: linear-gradient(135deg, #FF5722, #E64A19);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-pass-change:hover {
    background: linear-gradient(135deg, #E64A19, #D84315);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.pass-change-badge {
    background: linear-gradient(135deg, #FF5722, #E64A19);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    animation: pulse 2s infinite;
}

.data-change-notice {
    background: #FFF3CD;
    border: 2px dashed #FFC107;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
    color: #856404;
    animation: pulse 2s infinite;
}

/* ==================== УВЕДОМЛЕНИЕ НА СКЛАДЕ ==================== */
.orders-group-header h3 {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.orders-group-header:nth-child(1) h3 {
    background: #FFF3CD;
    color: #856404;
    border: 2px dashed #FFC107;
    animation: pulse 2s infinite;
}

/* ==================== СТАТУС ПРОПУСК ВЫДАН ==================== */
.status-пропуск-выдан {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    animation: none;
}

/* ==================== АНИМАЦИЯ ПУЛЬСА ==================== */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.status-pass-change {
    animation: pulse 2s infinite;
    border: 2px solid #FF5722;
}

/* ==================== КНОПКИ СТАТУСОВ ==================== */
.status-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 2px;
    font-size: 13px;
}

.status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
