@media (max-width: 992px) {
    .features-section__inner {
        padding: 3rem 2.5rem;
    }

    .features-section .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .features-section__inner {
        padding: 2rem 1.5rem !important;
    }

    .features-section__header {
        margin-bottom: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-card__badge {
        top: 1.25rem;
        right: 1.25rem;
    }
}
/* ===== Общие стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-hover: #0052a3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --light-text: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-full {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.container-full-fullwidth {
    width: 100%;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container-full-fullwidth {
        padding: 0 1rem;
    }
}

/* ===== Навигация ===== */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-container {
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-brand-link:hover {
    transform: translateY(-1px);
}

.nav-brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.nav-brand-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: var(--dark-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
}

.nav-link:hover {
    background: rgba(0, 102, 204, 0.08);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(0, 102, 204, 0.05);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active .nav-link-icon {
    opacity: 1;
}

.nav-link-admin {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.nav-link-admin:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

.nav-link-admin.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border-color: transparent;
}

.nav-link-icon {
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}

.nav-link-text {
    white-space: nowrap;
}

.user-menu {
    position: relative;
    margin-left: 0.5rem;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.user-menu-toggle:hover {
    background: rgba(0, 102, 204, 0.08);
}

.user-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    border-radius: 50%;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

.user-menu-arrow {
    font-size: 0.75rem;
    color: var(--light-text);
    transition: transform 0.2s ease;
}

.user-menu-toggle.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    padding-bottom: 1rem;
}

.user-avatar-large {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.username {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.9375rem;
}

.user-role {
    color: var(--light-text);
    font-size: 0.75rem;
    font-weight: 500;
}

.user-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-menu-item:hover {
    background: rgba(0, 102, 204, 0.08);
    color: var(--primary-color);
}

.user-menu-item.active {
    background: rgba(0, 102, 204, 0.12);
    color: var(--primary-color);
    font-weight: 600;
}

.user-menu-item-danger {
    color: var(--danger-color);
}

.user-menu-item-danger:hover {
    background: rgba(220, 53, 69, 0.08);
    color: var(--danger-color);
}

.user-menu-icon {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-color);
    color: white;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== Главная страница ===== */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.hero-section {
    margin: 4rem 0 3.5rem;
}

.hero-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.hero-section__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 102, 204, 0.12);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #465268;
    margin-bottom: 0.5rem;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.hero-highlight {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    font-size: 0.95rem;
    color: #455066;
}

.hero-highlight span {
    font-size: 1.45rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.hero-actions__primary {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.25);
}

.hero-actions__secondary {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
}

.hero-section__visual {
    position: relative;
    overflow: hidden;
}

.hero-visual-card {
    background: rgba(15, 23, 42, 0.9);
    color: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.35);
    position: relative;
    overflow: hidden;
}

.hero-visual-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 102, 204, 0.35), transparent 60%);
    z-index: 0;
}

.hero-visual-card > * {
    position: relative;
    z-index: 1;
}

.hero-visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-traffic-light {
    display: flex;
    gap: 0.4rem;
}

.hero-traffic-light span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.hero-traffic-light span:nth-child(1) {
    background: #ff6b6b;
}

.hero-traffic-light span:nth-child(2) {
    background: #f7b955;
}

.hero-traffic-light span:nth-child(3) {
    background: #4ade80;
}

.hero-visual-title {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-visual-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-visual-body li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.warehouse-name {
    font-weight: 600;
    font-size: 1rem;
}

.warehouse-status {
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}

.warehouse-status.available {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.warehouse-status.waiting {
    background: rgba(247, 185, 85, 0.18);
    color: #fbbf24;
}

.warehouse-status.searching {
    background: rgba(96, 165, 250, 0.18);
    color: #60a5fa;
}

.warehouse-status.unavailable {
    background: rgba(255, 99, 132, 0.18);
    color: #ff6b6b;
}

.hero-visual-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.hero-visual-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-visual-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.hero-visual-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(37, 99, 235, 0.45);
    color: white;
}

.hero-visual-button__icon {
    font-size: 1.2rem;
    line-height: 1;
}

.hero-visual-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at 30% 20%, rgba(0, 102, 204, 0.4), transparent 70%);
    z-index: -1;
    filter: blur(20px);
}

@media (max-width: 992px) {
    .hero-section__grid {
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        margin: 0rem 0 2rem;
    }

    .hero-section__grid {
        grid-template-columns: 1fr;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-visual-card {
        padding: 1.75rem;
    }

    .hero-visual-footer {
        justify-content: center;
    }

    .hero-visual-button {
        width: 100%;
        text-align: center;
    }
}

.features-section {
    margin: 5rem 0;
    position: relative;
}

.features-section__inner {
    position: relative;
    padding: 3.5rem 3rem;
    border-radius: 28px;
    border: 1px solid rgba(0, 102, 204, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9) 0%, rgba(229, 239, 255, 0.75) 100%);
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.features-section__inner::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle at center, rgba(0, 102, 204, 0.18), transparent 65%);
    z-index: 0;
}

.features-section__inner > * {
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 102, 204, 0.12);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
    margin: 0 auto;
}

.features-section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.features-section .section-title {
    font-size: 2.4rem;
    margin: 0;
}

.features-section__subtitle {
    font-size: 1.08rem;
    color: #445060;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.feature-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 102, 204, 0.12), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.14);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card__badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(0, 102, 204, 0.4);
    letter-spacing: 0.06em;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(0, 102, 204, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.feature-card p {
    color: #4e5a6f;
    font-size: 0.98rem;
    line-height: 1.6;
}

/* ===== Авторизация ===== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.auth-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--dark-text);
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-hint {
    font-size: 0.875rem;
    color: var(--light-text);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.error-message {
    background: #fee;
    color: var(--danger-color);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--danger-color);
    display: none;
}

.form-input.error,
input.error {
    border-color: var(--danger-color) !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.success-message {
    background: #efe;
    color: var(--success-color);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--success-color);
    display: none;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ===== Личный кабинет ===== */
.cabinet-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.cabinet-header {
    margin-bottom: 2.5rem;
}

.cabinet-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.cabinet-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-weight: 700;
}

.cabinet-header .subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #856404;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Уведомления */
.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.alert-content h3 {
    margin: 0 0 0.5rem 0;
    color: #856404;
    font-size: 1.125rem;
}

.alert-content p {
    margin: 0;
    color: #856404;
    font-size: 1rem;
    line-height: 1.5;
}

.alert-inline {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.alert-inline.alert-danger {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* Сетка карточек */
.cabinet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Карточки */
.cabinet-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cabinet-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cabinet-card.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f5f5f5;
}

.card-icon {
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.subscription-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.drivers-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.settings-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-title-group h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--dark-text);
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--light-text);
}

.drivers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.drivers-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.drivers-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drivers-title-wrapper h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-text);
    font-weight: 600;
}

.drivers-count-badge {
    font-size: 0.875rem;
    color: var(--light-text);
    font-weight: 400;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.status-active {
    background: #28a745;
    color: white;
    max-width: max-content;
}

.status-badge.status-inactive {
    background: #dc3545;
    color: white;
    width: max-content;
}

.card-content {
    margin-top: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--light-text);
    font-size: 0.875rem;
}

.info-value {
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.875rem;
}

.days-left {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    display: inline-block;
}

.days-left.days-good {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.days-left.days-warning {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.days-left.days-critical {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.no-subscription {
    color: var(--light-text);
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0;
}

/* ===== Настройки ===== */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-card {
    max-width: 100%;
}

.settings-form {
    margin-top: 1.5rem;
}

/* Табы настроек */
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.settings-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--light-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.settings-tab:hover {
    color: var(--primary-color);
    background: #f8f9fa;
}

.settings-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: #f8f9fa;
    font-weight: 600;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0 0 0.5rem 0;
}

.section-description {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Улучшенные поля ввода */
.input-with-action {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.input-with-action input {
    flex: 1;
}

.btn-icon-only {
    padding: 0.75rem;
    min-width: 44px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-icon-only:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.input-with-button input {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    min-width: 150px;
}

.btn-icon {
    margin-right: 0.5rem;
}

/* Адаптивность для личного кабинета */
@media (max-width: 768px) {
    .cabinet-container {
        padding: 1rem 0.75rem;
    }
    
    .cabinet-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cabinet-header h1 {
        font-size: 2rem;
    }
    
    .cabinet-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cabinet-card {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .card-title-group h3 {
        font-size: 1.25rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .driver-card-body {
        grid-template-columns: 1fr;
    }
    
    .driver-card-actions {
        flex-direction: column;
    }
    
    .driver-card-actions .btn {
        width: 100%;
    }
    
    .settings-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .settings-tab {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        border-left: 3px solid transparent;
        margin-bottom: 0;
    }
    
    .settings-tab.active {
        border-left-color: var(--primary-color);
        border-bottom-color: #f0f0f0;
    }
    
    .input-with-action,
    .input-with-button {
        flex-direction: column;
    }
    
    .input-with-button button {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cabinet-header h1 {
        font-size: 1.75rem;
    }
    
    .cabinet-card {
        padding: 1rem;
    }
    
    .card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .card-title-group h3 {
        font-size: 1.125rem;
    }
    
    .driver-card-modern {
        padding: 1rem;
    }
    
    .driver-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* ===== Поставки ===== */
.shipments-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-weight: 700;
}

.page-subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
    margin: 0;
}

/* Стили для улучшенных секций на странице редактирования */
.modern-section-header {
    background: transparent;
    border-radius: 0;
    padding: 1.5rem 0rem;
    margin-bottom: 1.5rem;
    box-shadow: none;
    border: none;
}

.section-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-right: auto;
}

.section-title-group h2 {
    display: flex;
    align-items: center;
    margin: 0;
    line-height: 1.2;
}

.products-header-actions {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto !important;
    flex-shrink: 0;
}

.products-header-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.2);
}

.modern-section-header h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.modern-search-input {
    padding: 0.625rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: white;
}

.modern-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.shipment-column {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.shipment-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Карточки для блоков информации */
.modern-card {
    padding: 2rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    margin-top: 1.5rem;
}

.modern-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.modern-card-success {
    border: 2px solid var(--success-color);
    background: linear-gradient(135deg, #f0f9f0 0%, #ffffff 100%);
}

.modern-card h3 {
    margin: 0 0 1.25rem 0;
    font-size: 1.125rem;
    color: var(--dark-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Улучшенные отступы для страницы редактирования */
.page-header {
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

.page-header-content {
    gap: 2rem;
}

#warehouses-list-wrapper {
    margin-top: 1rem;
}

#warehouses-loading,
#warehouses-error {
    margin-top: 1rem;
    margin-bottom: 1rem;
}


/* Отступы для секции товаров */
#products-column .modern-section-header {
    margin-bottom: 0;
}

#products-summary {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

#products-loading,
#products-error {
    margin-top: 1.5rem;
}

#products-table-wrapper {
    margin-top: 1.5rem;
}

/* Стили для блока серверного автобронирования */
.modern-card-info {
    border: 2px solid var(--info-color);
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    padding: 1rem !important;
}

.server-autobooking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.server-autobooking-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-text);
}

.server-autobooking-header .section-icon {
    width: 28px;
    height: 28px;
    font-size: 1rem;
}

.server-autobooking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.server-info-card {
    background: white;
    border-radius: 8px;
    padding: 0.625rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.info-card-icon {
    font-size: 0.875rem;
}

.info-card-header h4 {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dark-text);
}

.info-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.info-item:hover {
    background: #e9ecef;
}

.info-item.highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4ff 100%);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.info-label {
    color: var(--light-text);
    font-size: 0.75rem;
    font-weight: 500;
}

.info-value {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.75rem;
}

.info-value.highlight-value {
    color: var(--info-color);
    font-size: 0.875rem;
}

.info-code {
    background: white;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--dark-text);
}

.warehouses-list-content {
    font-size: 0.75rem;
    color: var(--dark-text);
    max-height: 120px;
    overflow-y: auto;
    padding: 0.375rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.empty-text {
    color: var(--light-text);
    font-style: italic;
    font-size: 0.75rem;
}

.server-products-card {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.products-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.products-card-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.products-card-icon {
    font-size: 0.875rem;
}

.products-card-title h4 {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dark-text);
}

.products-card-summary {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.summary-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.summary-label {
    color: var(--light-text);
}

.products-list-content {
    max-height: 120px;
    overflow-y: auto;
    font-size: 0.75rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.server-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.server-actions .btn {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Стили для блока статистики складов */
#warehouses-timeslots-section {
    padding: 0 2rem !important;
}

#warehouses-storage-section {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#timeslots-results-section {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.warehouses-stats-header {
    padding: 1.25rem 1.5rem;
    margin: 0;
    border: 2px solid var(--info-color);
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4ff 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.warehouses-stats-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
}

.warehouses-stats-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.warehouses-stats-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--info-color) 0%, #0052a3 100%);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.2);
}

.warehouses-stats-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-text);
}

.warehouses-stats-draft-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.draft-id-label {
    color: var(--light-text);
    font-weight: 500;
}

.draft-id-code {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--dark-text);
}

.warehouses-stats-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.warehouses-stats-counters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.stat-counter {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.stat-counter-icon {
    font-size: 0.75rem;
    font-weight: 700;
}

.stat-counter-value {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

.stat-counter-label {
    font-size: 0.7rem;
    color: var(--light-text);
    font-weight: 500;
}

.stat-counter-success {
    border-color: var(--success-color);
}

.stat-counter-success .stat-counter-icon {
    color: var(--success-color);
}

.stat-counter-success .stat-counter-value {
    color: var(--success-color);
}

.stat-counter-danger {
    border-color: var(--danger-color);
}

.stat-counter-danger .stat-counter-icon {
    color: var(--danger-color);
}

.stat-counter-danger .stat-counter-value {
    color: var(--danger-color);
}

.stat-counter-total {
    border-color: var(--info-color);
}

.stat-counter-total .stat-counter-value {
    color: var(--info-color);
}

.warehouses-stats-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cluster-filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cluster-filter-label {
    font-size: 0.875rem;
    color: var(--dark-text);
    font-weight: 600;
    white-space: nowrap;
}

.warehouse-search-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.cluster-select-wrapper {
    position: relative;
}

.cluster-select-btn {
    min-width: 200px;
    max-width: 300px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cluster-select-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.15);
}

.cluster-select-arrow {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: var(--light-text);
    transition: transform 0.2s ease;
}

.cluster-select-wrapper.active .cluster-select-arrow {
    transform: rotate(180deg);
}

.cluster-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.cluster-select-wrapper.active .cluster-select-dropdown {
    display: block;
}

.cluster-select-content {
    padding: 0.75rem;
}

.cluster-select-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.cluster-select-option:hover {
    background: rgba(0, 102, 204, 0.05);
}

.cluster-select-option input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.cluster-select-all {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cluster-select-divider {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cluster-select-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cluster-clear-btn {
    white-space: nowrap;
}

.warehouses-table-wrapper {
    border: 2px solid var(--info-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: white;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
    margin: 0;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Стили для блока выбора диапазона дат */
.timeslot-search-block {
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    background: white;
    margin: 0;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeslot-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
}

.timeslot-search-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timeslot-search-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.2);
}

.timeslot-search-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-text);
}

.timeslot-search-draft-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.timeslot-search-info {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.info-item-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.info-label {
    color: var(--light-text);
    font-weight: 500;
}

.info-value {
    color: var(--dark-text);
    font-weight: 600;
}

.timeslot-search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 0.75rem;
}

.form-group {
    flex: 1;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dark-text);
}

.form-input {
    width: 100%;
    padding: 0.625rem;
    font-size: 0.875rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-input-datetime,
.form-input-date {
    font-family: inherit;
}

.form-input-select {
    cursor: pointer;
}

.btn-block {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Стили для блока автобронирования */
.autobooking-block {
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--info-color);
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.autobooking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
}

.autobooking-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.autobooking-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--info-color) 0%, #0052a3 100%);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.2);
}

.autobooking-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-text);
}

.autobooking-draft-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.autobooking-info {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.autobooking-form-section {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
}

.autobooking-settings-card {
    padding: 1rem;
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 10px;
    background: white;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.settings-card-icon {
    font-size: 1rem;
}

.settings-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-text);
}

.settings-group {
    margin-bottom: 1rem;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.settings-group-icon {
    font-size: 0.875rem;
}

.settings-group-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dark-text);
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.625rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.radio-option:hover {
    background: rgba(0, 102, 204, 0.05);
}

.radio-option input[type="radio"] {
    cursor: pointer;
}

.radio-option span {
    font-size: 0.875rem;
    color: var(--dark-text);
}

.settings-option-input {
    margin-left: 1.5rem;
}

.autobooking-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.autobooking-actions .btn {
    flex: 1;
    padding: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.autobooking-hint {
    font-size: 0.75rem;
    color: var(--light-text);
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.6;
}

/* Стили для блока доступных тайм-слотов */
.timeslots-results-header {
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--success-color);
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #f0f9f0 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeslots-results-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeslots-results-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timeslots-results-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.timeslots-results-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-text);
}

.timeslots-results-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
}

.count-label {
    color: var(--light-text);
}

.count-value {
    color: var(--success-color);
    font-size: 1.125rem;
    font-weight: 700;
}

.count-unit {
    color: var(--light-text);
}

.timeslots-results-content {
    border: 2px solid var(--success-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: white;
    overflow: hidden;
    min-height: 345px;
    max-height: 600px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeslots-list {
    padding: 1rem;
}

.loading-state {
    padding: 2rem;
    text-align: center;
    color: var(--light-text);
}

/* Стили для блока кнопки создания поставки */
.create-supply-wrapper {
    border: none;
    background: transparent;
    padding: 1.25rem 1.5rem 0;
    box-shadow: none;
}

.create-supply-wrapper-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-top: 2px solid var(--success-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
}

.create-supply-fixed-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.create-supply-wrapper-fixed .create-supply-info {
    font-size: 0.875rem;
    color: var(--dark-text);
    text-align: center;
}

.create-supply-wrapper-fixed .btn-create-supply {
    width: 100%;
    max-width: 400px;
    margin: 0;
}

.btn-create-supply {
    width: auto;
    min-width: 280px;
    max-width: 400px;
    margin: 0 auto;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-create-supply:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-create-supply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.create-supply-info {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--light-text);
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.create-supply-info strong {
    color: var(--success-color);
    font-weight: 600;
}

/* Стили для блока успешного создания поставки */
.supply-success-section {
    margin-top: 2rem;
}

.supply-success-container {
    padding: 2rem;
    border: 2px solid var(--success-color);
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.supply-success-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
}

.supply-success-icon-large {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.supply-success-title {
    margin: 0;
    color: var(--success-color);
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.supply-success-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.supply-success-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.success-info-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.success-info-item-last {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.success-info-label {
    font-size: 0.8125rem;
    color: var(--light-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.success-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    word-break: break-all;
}

.success-info-code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--dark-text);
}

.success-info-highlight {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.success-info-success {
    color: var(--success-color);
    font-size: 1.125rem;
}

.success-info-primary {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.supply-success-status {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.status-icon {
    font-size: 1.5rem;
    color: var(--success-color);
}

.status-label {
    font-weight: 600;
    color: var(--success-color);
    font-size: 0.9375rem;
}

.status-text {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.9375rem;
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-detail-item {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-detail-label {
    color: var(--light-text);
}

.status-detail-value {
    color: var(--dark-text);
    font-weight: 600;
}

.status-detail-primary {
    color: var(--primary-color);
}

.supply-success-message {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.message-icon {
    font-size: 1.5rem;
}

.message-text {
    font-weight: 600;
    color: var(--success-color);
    font-size: 1rem;
}

.supply-success-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-create-cargoes {
    width: auto;
    min-width: 280px;
    max-width: 400px;
    margin: 0 auto;
    padding: 0.875rem 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cargoes-status {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--light-text);
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.shipments-alert {
    margin-bottom: 2rem;
}

.shipments-alert a {
    color: #0056b3;
    font-weight: 600;
    text-decoration: underline;
}

.shipments-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.shipments-section.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.shipments-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.drivers-section {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

/* Улучшенные карточки водителей */
.driver-card-modern {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.driver-card-modern:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.driver-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.driver-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.driver-main-info {
    flex: 1;
}

.driver-main-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    color: var(--dark-text);
    font-weight: 600;
}

.driver-phone {
    color: var(--light-text);
    font-size: 0.875rem;
}

.driver-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.driver-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.detail-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.875rem;
    color: var(--dark-text);
    font-weight: 600;
}

.driver-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.driver-card-actions .btn {
    flex: 1;
    min-width: 120px;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.empty-state-modern {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--light-text);
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px dashed #e9ecef;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.4;
    display: inline-block;
}

.empty-state-modern p {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: var(--dark-text);
    font-weight: 600;
}

.empty-state-modern small {
    font-size: 0.875rem;
    color: var(--light-text);
    display: block;
    margin-top: 0.5rem;
}

/* Форма водителя */
.driver-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.form-header {
    margin-bottom: 1.25rem;
}

.form-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark-text);
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-top: 0.25rem;
}

.required-badge {
    color: #dc3545;
    margin-left: 0.25rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.1rem;
    margin: 0;
}

.driver-form {
    background: var(--light-bg);
    padding: 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.driver-form h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.driver-form .form-group {
    margin-bottom: 0.75rem;
}

.driver-form .form-group label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.driver-form .form-group input {
    padding: 0.5rem;
    font-size: 0.875rem;
}

.drivers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.driver-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.driver-info h3 {
    margin-bottom: 0.15rem;
    font-size: 1rem;
    color: var(--dark-text);
}

.driver-details {
    margin-top: 0.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.driver-details p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.8rem;
}

.driver-details strong {
    color: var(--dark-text);
}

.empty-state {
    text-align: center;
    padding: 1.5rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.shipments-section {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    margin-top: 1.5rem;
}

.shipments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Улучшенные карточки поставок */
.shipment-card-modern {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.shipment-card-modern:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shipment-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.shipment-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

.shipment-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(79, 172, 254, 0.2);
}

/* Иконки для разных статусов */
.shipment-card-modern[data-status="success"] .shipment-card-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.shipment-card-modern[data-status="pending"] .shipment-card-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.2);
}

.shipment-card-modern[data-status="failed"] .shipment-card-icon {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

.shipment-card-modern[data-has-autobooking="true"]:not([data-status]) .shipment-card-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 2px 6px rgba(79, 172, 254, 0.2);
}

.shipment-card-title-group {
    flex: 1;
}

.shipment-card-title-group h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    color: var(--dark-text);
    font-weight: 600;
}

.shipment-date {
    color: var(--light-text);
    font-size: 0.875rem;
    margin: 0;
}

.shipment-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--light-text);
    font-size: 0.8125rem;
}

.meta-icon {
    font-size: 0.875rem;
    opacity: 0.7;
}

.supply-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.supply-status-badge.status-success {
    background: #28a745;
    color: white;
}

.supply-status-badge.status-pending {
    background: #ffc107;
    color: #856404;
}

.supply-status-badge.status-failed {
    background: #dc3545;
    color: white;
}

.supply-status-badge.status-autobooking {
    background: #4facfe;
    color: white;
}

.shipment-order-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.order-label {
    font-size: 0.875rem;
    color: var(--light-text);
    font-weight: 500;
}

.order-value {
    font-size: 0.875rem;
    color: #28a745;
    font-weight: 600;
    font-family: monospace;
}

.shipment-card-body {
    margin-bottom: 1rem;
}

.shipment-info-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* Блок автобронирования */
.autobooking-info-modern {
    background: #f0f9ff;
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 1rem;
}

.autobooking-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #1e40af;
    font-size: 0.875rem;
}

.autobooking-icon {
    font-size: 1.25rem;
}

.autobooking-warehouses {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.autobooking-warehouses .info-label {
    color: #475569;
    font-weight: 500;
    margin-right: 0.5rem;
}

.autobooking-warehouses .info-value {
    color: #1e293b;
}

.autobooking-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    align-items: baseline;
}

.stat-label {
    color: #475569;
    font-weight: 500;
    font-size: 0.8125rem;
}

.autobooking-stats .stat-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Блок товаров */
.products-info-modern {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem;
}

.products-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.products-icon {
    font-size: 1.25rem;
}

.products-header strong {
    color: var(--dark-text);
    font-weight: 600;
    flex: 1;
}

.products-count {
    color: var(--light-text);
    font-size: 0.8125rem;
    font-weight: 500;
}

.products-list {
    max-height: 200px;
    overflow-y: auto;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.product-item:last-child {
    border-bottom: none;
}

.product-name {
    flex: 1;
    color: var(--dark-text);
    font-size: 0.8125rem;
    margin-right: 0.5rem;
}

.product-quantity {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    font-size: 0.8125rem;
}

.shipment-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.shipment-card-actions .btn {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

.shipments-empty {
    margin: 2rem 0;
}

/* Статистические карточки */
.shipments-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stat-icon-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.stat-icon-pending {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.stat-icon-autobooking {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--light-text);
    font-weight: 500;
}

/* Фильтры и поиск */
.shipments-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem;
    color: var(--light-text);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.625rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Скрытие карточек при фильтрации */
.shipment-card-modern.hidden {
    display: none;
}

/* Старые стили для совместимости */
.shipment-info h3 {
    margin-bottom: 0.15rem;
    font-size: 1rem;
    color: var(--dark-text);
}

.shipment-date {
    margin: 0;
    color: var(--light-text);
    font-size: 0.8rem;
}

.shipment-actions {
    display: flex;
    gap: 0.5rem;
}

.shipment-form-section {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

.step-section {
    margin-bottom: 2rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.search-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-wrapper input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.loading-state {
    text-align: center;
    padding: 1rem;
    color: var(--light-text);
}

.warehouses-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.warehouse-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.warehouse-card:hover {
    border-color: var(--primary-color);
}

.warehouse-card.selected {
    border-color: var(--primary-color);
    background: #e7f3ff;
}

/* Двухколоночная верстка для поставок */
.shipment-two-columns {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    margin-top: 1rem;
    align-items: stretch;
}

.shipment-column {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: auto;
    max-height: none;
}

.shipment-column-left {
    max-width: 100%;
}

.shipment-column-right {
    max-width: 100%;
}

.shipment-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.shipment-column-header.modern-section-header {
    flex-direction: column;
    align-items: stretch;
}

.shipment-column-header h2 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--dark-text);
}

.search-wrapper-compact {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.search-wrapper-compact input {
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    flex: 1;
    min-width: 200px;
}

/* Компактные списки складов */
.warehouses-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.5rem;
}

.warehouse-card-compact {
    padding: 0.75rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.warehouse-card-compact:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.warehouse-card-compact.selected {
    border-color: var(--primary-color);
    background: #e7f3ff;
}

.warehouse-info-compact h3 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.warehouse-info-compact .warehouse-address {
    margin: 0.25rem 0;
    color: var(--light-text);
    font-size: 0.8rem;
}

.warehouse-info-compact .warehouse-city {
    margin: 0;
    color: var(--light-text);
    font-size: 0.75rem;
}

.warehouse-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: var(--dark-text);
}

.warehouse-address {
    margin: 0.15rem 0;
    color: var(--light-text);
    font-size: 0.85rem;
}

.warehouse-city {
    margin: 0;
    color: var(--light-text);
    font-size: 0.8rem;
}

.logs-section {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    margin-top: 1.5rem;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.logs-header h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--dark-text);
}

.logs-content {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.4;
}

.log-entry {
    margin-bottom: 0.25rem;
    padding: 0.25rem 0;
    word-wrap: break-word;
}

.log-entry:last-child {
    margin-bottom: 0;
}

.log-info {
    color: #d4d4d4;
}

.log-success {
    color: #4ec9b0;
}

.log-error {
    color: #f48771;
}

.log-warning {
    color: #dcdcaa;
}

.logs-empty {
    color: #858585;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.products-table-wrapper {
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    flex: 1 1 0;
    min-height: 0;
}

.products-table thead {
    background: var(--light-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.products-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-text);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.products-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--dark-text);
}

.products-table td.clickable-cell:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

.products-table tbody tr:hover {
    background: var(--light-bg);
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

.products-table input[type="number"] {
    width: 100%;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
}

.products-table input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 1.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-visible {
    background: #d4edda;
    color: #155724;
}

.status-hidden {
    background: #f8d7da;
    color: #721c24;
}

.api-key-extra {
    margin-top: 0.75rem;
}

.api-key-image-wrapper {
    margin-top: 0.5rem;
    max-width: 360px;
}

.api-key-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-details strong {
    color: var(--dark-text);
}

/* ===== Уведомления ===== */
.flash-messages {
    margin: 1rem 0;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-info {
    background: #d1ecf1;
    color: var(--info-color);
    border: 1px solid var(--info-color);
}

.alert-success {
    background: #d4edda;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert-danger {
    background: #f8d7da;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

/* ===== SEO блок на главной ===== */
.seo-section,
.seo-benefits,
.seo-faq {
    margin: 4rem 0;
}

.seo-section__card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.9));
    border: 1px solid rgba(0, 102, 204, 0.08);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.08);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.seo-section__card::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle at center, rgba(0, 102, 204, 0.12), transparent 65%);
    top: -60px;
    right: -40px;
    z-index: 0;
}

.seo-section__card > * {
    position: relative;
    z-index: 1;
}

.seo-section__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: fit-content;
}

.seo-section__card h2,
.seo-benefits__header h2,
.seo-faq__header h2 {
    font-size: 2rem;
    margin: 1.25rem 0;
}

.seo-section__card p {
    font-size: 1.05rem;
    color: #445060;
    margin-bottom: 1rem;
    max-width: 780px;
}

.seo-section__highlights {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 2.5rem;
}

.seo-highlight {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.seo-highlight:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 28px rgba(31, 41, 55, 0.12);
}

.seo-highlight__icon {
    font-size: 1.9rem;
}

.seo-highlight__text h3 {
    font-size: 1.125rem;
    margin-bottom: 0.35rem;
}

.seo-highlight__text p {
    margin: 0;
    color: #566272;
    font-size: 0.97rem;
}

.seo-benefits {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(229, 240, 255, 0.7) 100%);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    border: 1px solid rgba(0, 102, 204, 0.08);
}

.seo-benefits__inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.seo-benefits__header p {
    max-width: 760px;
    color: #4d596b;
    font-size: 1.05rem;
}

.seo-benefits__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.seo-benefit-card {
    background: white;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.seo-benefit-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 102, 204, 0.12), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.seo-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
}

.seo-benefit-card:hover::after {
    opacity: 1;
}

.seo-benefit-card__icon {
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 102, 204, 0.12);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.seo-benefit-card h3 {
    font-size: 1.18rem;
    margin-bottom: 0.6rem;
}

.seo-benefit-card p {
    color: #566272;
    font-size: 0.98rem;
}

.seo-faq {
    padding-bottom: 4rem;
}

.seo-faq__inner {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.08);
}

.seo-faq__header p {
    color: #4d596b;
    max-width: 680px;
    font-size: 1.02rem;
}

.seo-faq__grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.faq-item {
    background: rgba(0, 102, 204, 0.04);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: background 0.25s ease, transform 0.25s ease;
}

.faq-item h3 {
    font-size: 1.08rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: #435061;
    font-size: 0.98rem;
}

.faq-item:hover {
    background: rgba(0, 102, 204, 0.08);
    transform: translateY(-4px);
}

@media (max-width: 992px) {
    .seo-section__card,
    .seo-benefits,
    .seo-faq__inner {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .seo-section,
    .seo-benefits,
    .seo-faq {
        margin: 3rem 0;
    }

    .seo-section__card h2,
    .seo-benefits__header h2,
    .seo-faq__header h2 {
        font-size: 1.65rem;
    }

    .seo-benefit-card,
    .faq-item,
    .seo-highlight {
        padding: 1.5rem;
    }
}

/* ===== Футер ===== */
.footer {
    background: white;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--light-text);
}

/* ===== Модальные окна ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark-text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--light-bg);
    color: var(--dark-text);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Стили для радио-кнопок в модальном окне */
.modal-body label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color) !important;
    background: rgba(0, 102, 204, 0.05) !important;
}

.modal-body label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.02);
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .container-full {
        padding: 0 10px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 4rem 1.5rem 1.5rem;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav-link {
        width: 100%;
        padding: 0.875rem 1rem;
        justify-content: flex-start;
        border-radius: 8px;
    }

    .user-menu {
        margin-left: 0;
        width: 100%;
    }

    .user-menu-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .user-menu-dropdown {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Адаптивность для карточек поставок */
    .shipment-card-header {
        flex-wrap: wrap;
    }

    .shipment-header-right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e9ecef;
    }

    .shipment-card-actions {
        flex: 1;
        justify-content: flex-end;
    }

    .user-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .user-menu .btn {
        width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .drivers-section,
    .shipments-section,
    .autobooking-tasks-section {
        padding: 0.75rem;
        margin-top: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .section-header .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1rem;
    }

    .driver-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }

    .driver-card .btn {
        width: 100%;
    }

    .driver-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .driver-details p {
        font-size: 0.875rem;
    }

    /* Адаптивность для страницы поставок */
    .shipments-container {
        padding: 1rem 0.75rem;
    }
    
    .page-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .btn {
        width: 100%;
    }
    
    .shipments-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .shipments-filters {
        padding: 1rem;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .shipments-section {
        padding: 1.5rem;
    }
    
    .shipment-card-modern {
        padding: 1rem;
    }
    
    .shipment-card-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .shipment-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .shipment-card-title-group h3 {
        font-size: 1.125rem;
    }
    
    .supply-status-badge {
        font-size: 0.8125rem;
        padding: 0.25rem 0.5rem;
    }
    
    .shipment-info-blocks {
        grid-template-columns: 1fr;
    }
    
    .shipment-card-actions {
        flex-direction: column;
    }
    
    .shipment-card-actions .btn {
        width: 100%;
    }
    
    /* Старые стили для совместимости */
    .shipment-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .shipment-info {
        width: 100%;
    }

    .shipment-info h3 {
        font-size: 1rem;
        word-break: break-word;
    }

    .shipment-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .shipment-actions .btn {
        width: 100%;
    }

    /* Адаптация блоков автобронирования и товаров */
    .autobooking-info,
    .shipment-card > div[style*="display: flex"] > div {
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .driver-form {
        padding: 1rem;
    }

    .driver-form h3 {
        font-size: 1rem;
    }

    .driver-form .form-group {
        margin-bottom: 1rem;
    }

    .empty-state {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    /* Страница создания/редактирования поставки */
    .shipment-two-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .shipment-column {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 0.75rem !important;
    }
    
    .shipment-column-left,
    .shipment-column-right {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Перемещение блока "Создать черновик" под блок товаров на мобильных */
    /* Используем display: contents чтобы дочерние элементы стали прямыми детьми flex-контейнера */
    #warehouses-column {
        display: contents !important;
    }
    
    /* Порядок отображения на мобильных: 
       1 - Склады, 
       2 - Товары, 
       3 - Создать черновик, 
       4 - Черновик поставки создан,
       5 - Статистика складов */
    #warehouses-column > .flex-shrink-0:first-child {
        order: 1 !important;
    }
    
    #warehouses-column > #warehouses-list-wrapper {
        order: 1 !important;
    }
    
    #products-column {
        order: 2 !important;
    }
    
    #draft-summary-section {
        order: 3 !important;
        margin-top: 1rem !important;
    }
    
    #draft-info-section {
        order: 4 !important;
        margin-top: 1rem !important;
    }
    
    #warehouses-timeslots-section {
        order: 5 !important;
    }
    
    .shipment-column-left,
    .shipment-column-right {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .shipment-column-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    .shipment-column-header h2 {
        font-size: 1rem !important;
    }
    
    /* Блок "Склады" - перенос поиска под заголовок на мобильных */
    .section-header-content {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    .section-title-group {
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    .section-title-group h2 {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    /* Блок "Товары" - выравнивание кнопок на мобильных */
    .products-header-actions {
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    .products-header-actions .btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    /* Блок подсказки в "Товары" - ограничение высоты на мобильных */
    .products-hint {
        max-height: 150px !important;
        overflow-y: auto !important;
    }
    
    .search-wrapper-compact {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .search-wrapper-compact input {
        width: 100% !important;
        min-width: auto !important;
    }
    
    .search-wrapper-compact .btn {
        width: 100% !important;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .container-full {
        padding: 0 8px;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .drivers-section,
    .shipments-section,
    .autobooking-tasks-section {
        padding: 0.5rem;
    }

    .driver-card,
    .shipment-card {
        padding: 0.75rem;
    }

    .driver-info h3,
    .shipment-info h3 {
        font-size: 0.9375rem;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    /* Страница создания/редактирования поставки для очень маленьких экранов */
    .shipment-column {
        padding: 0.5rem !important;
    }
    
    .shipment-column-header h2 {
        font-size: 0.9375rem !important;
    }
}

/* Модальное окно для просмотра изображения товара */
.product-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.product-image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.product-image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.product-image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s ease;
    z-index: 10002;
}

.product-image-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .product-image-modal-content {
        max-width: 95%;
    }
    
    .product-image-modal-close {
        top: -35px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}



