:root {
    --sidebar-width: 280px;
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --danger-color: #7209b7;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --light-text: #6c757d;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --primary: #4361ee;
    --primary-light: #eef1fe;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #ff9e00;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --info-color: #4895ef;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fb;
    color: var(--dark);
}

.sidebar {
    width: var(--sidebar-width);
    background: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: var(--box-shadow);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo {
    padding: 0 30px 30px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--accent-color);
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
}

.submit {
    padding: 10px 10px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

form p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

form p label {
    margin-bottom: 5px;
    text-align: left;
    width: 20%;
    color: black;
}

input, textarea {
    width: 23%;
    -webkit-border-radius: 3px;
    font-size: 18px;
    outline: 0;
    border-radius: 3px;
    padding: 10px 13px;
    margin-bottom: 4px;
    border: 1px solid #000000;
    color: #000000;
}

.nav-item {
    padding: 12px 30px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.nav-item.active {
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.nav-item i {
    margin-right: 12px;
    font-size: 18px;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    cursor: pointer;

}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 16px;
    color: var(--light-text);
    font-weight: 500;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-icon.blue {
    background-color: var(--primary-color);
}

.card-icon.green {
    background-color: var(--success-color);
}

.card-icon.purple {
    background-color: var(--secondary-color);
}

.card-icon.red {
    background-color: var(--warning-color);
}

.card-icon.dark {
    background-color: var(--danger-color);
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-change {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.card-change.positive {
    color: #28a745;
}

.card-change.negative {
    color: #dc3545;
}

.card-change i {
    margin-right: 5px;
}

.charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
}

.chart-actions {
    display: flex;
    gap: 10px;
}

.chart-btn {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.chart-btn:hover {
    color: var(--primary-color);
}

.chart-placeholder {
    height: 300px;
    background-color: var(--light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
}

.problem-products {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-title {
    font-size: 18px;
    font-weight: 600;
}

.table-view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}


table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 15px;
    color: var(--light-text);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.product-info {
    display: flex;
    align-items: center;
}

.product-name {
    font-weight: 500;
}

.product-sku {
    font-size: 12px;
    color: var(--light-text);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

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

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

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}

.user-avatar {
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.login-background {
    flex: 1;
    background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marketplace-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    opacity: 0.2;
}

.marketplace-icons i {
    font-size: 3.5rem;
    color: white;
    animation: float 6s ease-in-out infinite;
}

.marketplace-icons i:nth-child(1) {
    .marketplace-icons i:nth-child(2) {
        animation-delay: 1s;
    }

    .marketplace-icons i:nth-child(3) {
        animation-delay: 2s;
    }

    .marketplace-icons i:nth-child(4) {
        animation-delay: 3s;
    }

    .marketplace-icons i:nth-child(5) {
        animation-delay: 4s;
    }

    .marketplace-icons i:nth-child(1) {
        animation-delay: 0s;
    }
}

.marketplace-icons i:nth-child(2) {
    animation-delay: 1s;
}

.marketplace-icons i:nth-child(3) {
    animation-delay: 2s;
}

.marketplace-icons i:nth-child(4) {
    animation-delay: 3s;
}

.marketplace-icons i:nth-child(5) {
    animation-delay: 4s;
}

.marketplace-icons i:nth-child(6) {
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.login-card {
    width: 450px;
    background: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--light-text);
    font-size: 16px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    outline: none;
}

.form-group i {
    position: absolute;
    left: 15px;
    bottom: 15px;
    color: var(--light-text);
    font-size: 18px;
}

.login-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.login-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-background {
        display: none;
    }

    .login-card {
        width: 100%;
        padding: 30px;
        box-shadow: none;
    }
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

input[name="csrfmiddlewaretoken"] {
    display: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cabinet-select .select-header {
    padding: 10px 15px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.cabinet-select .select-header:hover {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.cabinet-select .selected-value {
    font-size: 14px;
    color: var(--dark-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabinet-select .select-header i {
    color: var(--light-text);
    font-size: 12px;
    transition: var(--transition);
}

.cabinet-select .select-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    max-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.cabinet-select.active .select-header i {
    transform: rotate(180deg);
}


.notifications {
    color: var(--light-text);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.notifications:hover {
    color: var(--primary-color);
}

.cabinet-select {
    position: relative;
    width: 250px;
    z-index: 100;
}

.search-select-header {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.search-select-header:hover {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-select-header .search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-select-header .search-box i {
    color: var(--light-text);
    font-size: 14px;
    margin-right: 8px;
}

.search-select-header input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.search-select-header i.fa-chevron-down {
    color: var(--light-text);
    font-size: 12px;
    transition: var(--transition);
    margin-left: 10px;
}

.cabinet-select.active .search-select-header i.fa-chevron-down {
    transform: rotate(180deg);
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dropdown-select {
    position: relative;
    width: 250px;
    z-index: 100;
}

.select-header {
    padding: 10px 15px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.select-header:hover {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.selected-value {
    font-size: 14px;
    color: var(--dark-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-header i {
    color: var(--light-text);
    font-size: 12px;
    transition: var(--transition);
}

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

.dropdown-select.active .select-header i {
    transform: rotate(180deg);
}

.search-box {
    padding: 10px 15px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding-left: 30px;
    border: none;
    outline: none;
    font-size: 14px;
}

.options-list {
    flex: 1;
    overflow-y: auto;
}

.option {
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.option:hover {
    background-color: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
}

.option i {
    color: var(--primary-color);
    font-size: 12px;
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

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

.dropdown-header {
    display: flex;
    align-items: center;
    padding: 0 15px 10px;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.dropdown-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.user-email {
    font-size: 13px;
    color: var(--light-text);
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 10px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--dark-text);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 24px;
    margin-right: 10px;
    font-size: 16px;
    color: var(--light-text);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.cabinet-manage {
    margin-top: 1rem;
}

.account-info {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 1.5rem;
}

.profile-value, .contact-value {
    display: flex;
    align-items: center;
}

.profile-field, .contact-field, .cabinet-field {
    padding-bottom: 0.75rem;
}

.card-text {
    color: black;
    font-size: 18px;
    font-weight: 500;
}

.staff-management {
    margin-top: 2rem;
}

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

.staff-table {
    width: 100%;
    border-collapse: collapse;
}

.staff-table th, .staff-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.staff-table th {
    color: var(--light-text);
    font-weight: 500;
}

.user-info {
    align-items: center;
    gap: 10px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.badge-secondary {
    background-color: rgba(63, 55, 201, 0.1);
    color: var(--secondary-color);
}

.badge-success {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}

.btn-icon:hover {
    color: var(--primary-color);
}

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: var(--border-radius);
    width: 450px;
    box-shadow: var(--box-shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-text);
}

.stavi-form .form-group {
    margin-bottom: 20px;
}

.stavi-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.stavi-form input, .stavi-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
}


.cabinet-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-content h1 i {
    color: var(--primary);
}

.welcome-message {
    color: var(--gray);
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-notification {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

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

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.user-dropdown:hover {
    background: var(--light-gray);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown i {
    font-size: 12px;
    color: var(--gray);
}

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

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary);
}

.section-subtitle {
    color: var(--gray);
    font-size: 14px;
    margin-top: 5px;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn i {
    font-size: 14px;
}

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

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

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

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

.btn-secondary:hover {
    background: #352fad;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 55, 201, 0.2);
}

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

.btn-accent:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 149, 239, 0.2);
}

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 0;
    font-weight: 500;
}

.btn-text:hover {
    text-decoration: underline;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-header i {
    font-size: 20px;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid #f5f5f5;
}

.info-label {
    color: var(--gray);
    font-size: 14px;
}

.info-value {
    font-weight: 500;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value i {
    color: var(--gray);
}

.management-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-badge i {
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    font-size: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-icon.users {
    background: var(--primary);
}

.stat-icon.calendar {
    background: var(--accent);
}

.stat-icon.activity {
    background: var(--success);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

.staff-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.staff-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 55%;
    transform: translateY(-50%);
    color: var(--gray);
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
}

.staff-table th {
    padding: 15px;
    text-align: left;
    background: #f9fafc;
    color: var(--gray);
    font-weight: 500;
    white-space: nowrap;
}

.staff-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-email {
    font-size: 13px;
    color: var(--gray);
    display: block;
}

.badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-manager {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status.active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

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

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-text);
    margin: 0 5px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.btn-icon.danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 50px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.empty-state p {
    margin-bottom: 15px;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.pagination-info {
    color: var(--gray);
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    gap: 5px;
}

.btn-pagination {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.btn-pagination:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 992px) {
    .account-grid {
        grid-template-columns: 1fr 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cabinet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

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

    .staff-actions {
        flex-direction: column;
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .table-footer {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .staff-table td, .staff-table th {
        padding: 10px;
    }

    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.toast {
    position: fixed;
    top: 25px;
    right: 30px;
    border-radius: var(--border-radius);
    background: white;
    padding: 16px 24px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    max-width: 350px;
    border-left: 4px solid;
}

.toast.active {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-content .fas {
    font-size: 18px;
    margin-right: 12px;
}

.toast.success {
    border-left-color: var(--success);
    color: #155724;
    background-color: #d4edda;
}

.toast.error {
    border-left-color: var(--danger);
    color: #721c24;
    background-color: #f8d7da;
}

.toast.warning {
    border-left-color: var(--warning);
    color: #856404;
    background-color: #fff3cd;
}

.toast.success .toast-content .fas {
    color: var(--success);
}

.toast.error .toast-content .fas {
    color: var(--danger);
}

.toast.warning .toast-content .fas {
    color: var(--warning);
}

.toast .toast-message {
    font-size: 14px;
    font-weight: 500;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.toast-progress:before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
}

.toast.success .toast-progress:before {
    background-color: var(--success);
}

.toast.error .toast-progress:before {
    background-color: var(--danger);
}

.toast.warning .toast-progress:before {
    background-color: var(--warning);
}

.toast.active .toast-progress:before {
    animation: progress 3s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}

.pagination-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.btn-pagination {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.btn-pagination:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.registration-container {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fb;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.registration-card {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.registration-header {
    background: var(--primary);
    color: white;
    padding: 25px;
    text-align: center;
}

.registration-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.registration-body {
    padding: 30px;
}

.registration-form .form-group {
    margin-bottom: 20px;
}

.registration-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 14px;
}

.registration-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.registration-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    outline: none;
}

.registration-form .btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.registration-form .btn-submit:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.registration-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: var(--light-text);
}

@media (max-width: 576px) {
    .registration-card {
        border-radius: 0;
    }

    .registration-body {
        padding: 20px;
    }
}

.registration-form .readonly-field {
    background-color: #f8f9fa;
    color: var(--light-text);
    cursor: not-allowed;
}

.error-message {
    color: var(--danger);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.has-error .error-message {
    display: block;
}

.has-error input {
    border-color: var(--danger);
}

.has-error input:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.tab-button {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: #f9fafc;
    margin-bottom: 20px;
}

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

.desk-container {
    width: auto;
    height: auto;
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
}

.contact-person {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.a-contact-person, .a-contact-person:visited {
    text-decoration: none;
    color: black;
}

.button-contact-person {
    all: unset;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.role-select {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark-text);
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    appearance: none;
    transition: var(--transition);
    cursor: pointer;
}

.role-select:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.role-select option {
    padding: 10px;
    background: white;
    color: var(--dark-text);
}

.role-select option:hover {
    background-color: var(--primary-color);
    color: white;
}

.role-select:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.role-select option[value="Admin"] {
    font-weight: 600;
    color: var(--danger-color);
}

.role-select option[value="Write"] {
    font-weight: 500;
    color: var(--accent-color);
}

.role-select option[value="Read"] {
    color: var(--light-text);
}

.positive {
    color: green;
}

.negative {
    color: red;
}

.rain {
    color: grey;
}

.datetime-input {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.date {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-stock {
    padding: 8px 8px 8px 0;
    width: 150px;
    border: 1px;
    border-radius: 4px;
}

.search-stock:focus {
    outline: none;
}

.date-button {
    padding: 8px 15px;
    color: black;
    border: 1px solid #dddddd;
    border-radius: 10px;
    cursor: pointer;
    margin-left: 5px;
    width: 30%;
}

.select-options input {
    flex: 1;
    align-items: center;
}

.date-button:focus {
    border-color: #721c24;
}

.search-cont {
    margin-bottom: 15px;
    display: block;
    align-items: center;
    flex-wrap: wrap;

}

.btn-stock {
    background: #6366f1;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.btn-stock:hover {
    background: #6366f1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);

}

.stock {
    background: white;
    border-radius: var(--border-radius);
    padding: 10px 10px 10px 10px;
    margin-bottom: 5px;
    box-shadow: var(--box-shadow);
}

.search-board {
    background: white;
    border-radius: var(--border-radius);
    padding: 10px 1px 10px 1px;
    margin: 0 70% 5px 5px;
    box-shadow: 2px 2px 4px 4px rgba(0, 0, 0, 0.2);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.centered-button {
    margin-top: 10px;
    padding: 5px 5px;
    font-size: 15px;
}

.b {
    background: #6366f1;
    color: white;
    margin-left: 10px;
    padding: 5px 9px;
    border: none;
    border-radius: 100px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;

}

.b, .b:visited {
    color: white;
    text-decoration: none;
}

.b:hover {
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

#filters {
    display: none;
}

.button-show-filter {
    margin: 5px 10px;
}

.button-date-reset {
    font-color: black;
    margin-left: 10px;
    padding: 3px 7px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    background: #6366f1
}

.button-date-reset:hover {
    transform: translateY(-1px);
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-date-apply {
    font-color: black;
    margin-left: 10px;
    padding: 5px 8px;
    border: none;
    border-radius: 100px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.button-date-apply:hover {
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.loupe {
    margin-left: 10px;
    width: 250px
}

.access-button {
    display: none;
}

.btn-filter-button {
    background: #6366f1;
    color: white;
    font-weight: 500;
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.btn-filter-button:hover, .load-more:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.btn-filter-button i {

}

.input-search {
    background: #f7f7f7;
    width: 15%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.input-search:hover, .select-stock:hover {
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.input-search:focus, .select-stock:focus {
    outline: none;
}

.edit-stock {
    background: #6366f1;
    color: white;
    padding: 5px 8px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.edit-stock:hover {
    background: #6366f1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.history-loupe {
    width: 25%;
}

.select-stock {
    background: #f7f7f7;
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.load-more {
    padding: 3px 8px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 7px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.back-button {
    background: #6366f1;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-left: 4px solid transparent;
    justify-content: flex-end;
    margin-right: 5px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.header-history {
    display: flex;
}

.header-history-text {
    margin-left: 10px;
    margin-right: 73%;
}

.filter-history {
    align-items: center;
}

.select-options {
    margin: 0 0 10px 10px;
}

.colspan-stock {
    text-align: center;
    height: 200px;
    vertical-align: middle;
}

.colspan-stock-text {
    margin: 0;
    font-size: 1.5rem;
    color: #666;
}

.dash {
    margin: 0 5px;
}

.colspan-stock-history {
    padding-left: 530px;
    text-align: center;
    height: 200px;
    vertical-align: middle;
}

.submit {
    padding: 10px 10px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

form p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

form p label {
    margin-bottom: 5px;
    text-align: left;
    width: 20%;
    color: black;
}

.nav-item {
    padding: 12px 30px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

input, textarea {
    -webkit-border-radius: 3px;
    outline: 0;
    margin-bottom: 4px;
    color: #000000;
    width: 15%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.th-price {
    width: 8%
}

.search-row {
    height: 10%;
    position: relative;

}

.loupe {
    margin-left: 10px;
}

.input-price-search {
    width: 15%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #f7f7f7;
    width: 15%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.input-price {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.nav-item:hover {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.nav-item.active {
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.nav-item i {
    margin-right: 12px;
    font-size: 18px;
}

.a {
    background: #6366f1;
    color: black;
    padding: 5px 5px;
    margin-left: 10px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.a, .a:visited {
    color: white;;
    text-decoration: none;
}

.a:hover {
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.goods {
    background: white;
    border-radius: var(--border-radius);
    padding: 10px 1px 10px 1px;
    margin-bottom: 5px;
    box-shadow: var(--box-shadow);
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
}

.adaptive-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.adaptive-table th,
.adaptive-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}


@media (max-width: 768px) {
    .adaptive-table {
        display: block;
    }

    .adaptive-table thead {
        display: none;
    }

    .adaptive-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
    }

    .adaptive-table td {
        display: flex;
        justify-content: space-between;
        text-align: right;
        padding: 8px;
        border-bottom: 1px solid #eee;
    }

    .adaptive-table td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 1rem;
        text-align: left;
    }
}

.fa-solid {
    white-space: nowrap;
    padding: 6px 12px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#loading-indicator {
    display: none
}

.none-goods {
    margin: 0;
    font-size: 1.5rem;
    color: #666;
}

.none {
    text-align: center;
    height: 200px;
    vertical-align: middle;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem;
}

.card-header h5 {
    color: #495057;
    font-size: 1.1rem;
}

.form-label {
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {

    background-color: #dc3545;
    border-color: #dc3545;
}

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

.specification-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.specification-item:last-child {
    margin-bottom: 0;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.btn, .form-control, .form-select {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

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

    .specification-item {
        flex-direction: column;
    }

    .specification-item .col-md-2 {
        margin-top: 0.5rem;
    }
}

.select2-container--bootstrap-5 {
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.375rem 0.75rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #495057;
    padding: 0;
    line-height: 1.5;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.5rem 0.75rem;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: #007bff;
    color: #fff;
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected=true] {
    background-color: #e9ecef;
    color: #495057;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    display: flex;
    align-items: center;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered::before {
    content: '\f07b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: #6c757d;
}

.select2-container--bootstrap-5 .select2-results__option::before {
    content: '\f07b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: #6c757d;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected]::before {
    color: #fff;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-info:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-img {
    width: 70px;
    height: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.btn-secondary[disabled] {
    background-color: #ffffff;
    color: #6c757d;
    border-color: #ced4da;
    opacity: 0.7;
    cursor: not-allowed;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: #2563eb;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.product-sku {
    font-size: 14px;
    color: #6c757d;
}

.product-info-link:hover .product-name {
    color: #007bff;
    transform: translateX(5px);
}

.goods-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.search-panel {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.search-field {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    outline: none;
}

.price-range {
    display: flex;
    gap: 10px;
}

.price-field {
    display: flex;
    align-items: center;
    flex: 1;
}

.price-label {
    margin-right: 8px;
    color: #6c757d;
    font-size: 14px;
}

.price-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.search-btn, .reset-btn {
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-bottom: 5px;
}

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

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

.reset-btn {
    background-color: #e9ecef;
    color: var(--dark-color);
    text-decoration: none;
}

.reset-btn:hover {
    background-color: #dee2e6;
}

.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.goods-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.goods-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.goods-card-header {
    position: relative;
}

.goods-image-container {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.goods-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 16px;
}

.goods-card-body {
    padding: 15px;
    flex-grow: 1;
}

.goods-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.goods-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.goods-title a:hover {
    color: var(--primary-color);
}

.goods-meta {
    margin: 10px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.goods-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
}

.goods-meta-item i {
    font-size: 12px;
}

.goods-category {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
    margin-top: 10px;
}

.goods-card-footer {
    padding: 0 15px 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 10%;
}

.detail-btn {
    padding: 6px 12px;
    background-color: var(--light-color);
    color: var(--dark-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    text-wrap-mode: nowrap;
    border: none;
}

.detail-btn:hover {
    background-color: #e9ecef;
}

.goods-tags {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
}

.no-results-img {
    max-width: 200px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-results h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

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

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.pagination {
    display: flex;
    gap: 5px;
}

.page-link {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark-color);
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    transition: var(--transition);
}

.page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.first, .page-link.last, .page-link.prev, .page-link.next {
    padding: 8px 12px;
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
}

@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
    }

    .price-range {
        grid-column: 1 / -1;
    }

    .search-btn, .reset-btn {
        grid-column: 1 / -1;
    }

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

@media (max-width: 480px) {
    .goods-grid {
        grid-template-columns: 1fr;
    }
}

.sort-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.sort-btn, .view-toggle-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sort-btn:hover, .view-toggle-btn:hover {
    background: #e9ecef;
}

.sort-btn.active, .view-toggle-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.goods-list-view {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.goods-list-view .goods-card {
    display: table;
    border-bottom: 1px solid #eee;
}

.goods-list-view .goods-card-header,
.goods-list-view .goods-card-body,
.goods-list-view .goods-card-footer {
    display: table-cell;
    padding: 12px;
    vertical-align: middle;
}

.goods-list-view .goods-card-header {
    width: 120px;
}

.goods-list-view .goods-image-container {
    width: 100px;
    height: 100px;
}

.goods-list-view .goods-price {
    margin-top: 5px;
    font-weight: bold;
}

.goods-list-view .goods-title {
    margin: 0;
    font-size: 16px;
}

.goods-list-view .goods-meta {
    margin: 8px 0;
}

.goods-list-view .goods-card-footer {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .goods-list-view .goods-card-header,
    .goods-list-view .goods-card-body,
    .goods-list-view .goods-card-footer {
        display: block;
    }

    .goods-list-view .goods-card {
        display: block;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
    }
}

:root {
    --primary-dark: #1a5276;
    --primary: #2980b9;
    --primary-light: #3498db;
    --primary-very-light: #d4e6f1;
}

.square-photo-container {
    width: 100px;
    height: 100px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.square-photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.square-photo {
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.square-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.delete-photo-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    opacity: 0;
    transition: opacity 0.2s;
    width: 25px;
    height: 25px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.square-photo-wrapper:hover .delete-photo-btn {
    opacity: 1;
}

.card {
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
}

.form-control, .form-select {
    border-radius: 4px;
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(41, 128, 185, 0.25);
    border-color: var(--primary);
}

.btn {
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:visited {
    color: blue;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.card {
    animation: fadeIn 0.3s ease-out;
}

.specification-item {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.remove-spec {
    height: 38px;
}

@media (max-width: 768px) {
    .square-photo-container {
        width: 80px;
        height: 80px;
    }
}

.goods-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.goods-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.goods-card-header {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods-image-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods-icon {
    font-size: 3rem;
    color: #3498db;
}

.goods-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #1a5276;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.goods-card-body {
    padding: 15px;
}

.goods-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.goods-title a {
    color: #333;
    text-decoration: none;
}

.goods-meta {
    margin-bottom: 10px;
}

.goods-meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #666;
}

.goods-meta-item i {
    margin-right: 5px;
    width: 20px;
    text-align: center;
}

.goods-category {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.goods-category i {
    margin-right: 5px;
}

.goods-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

.detail-btn:hover {
    text-decoration: underline;
}

.goods-tags .badge {
    font-weight: normal;
}

.goods-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.goods-card-small {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
}

.goods-image-container-small {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.goods-image-small {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.goods-title-small {
    padding: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 500;
    color: #1a5276;
}

.alert-info {
    background-color: #d4e6f1;
    border-color: #b6d4e8;
    color: #1a5276;
}

@media (max-width: 768px) {
    .card-body {
        padding: 15px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .d-flex.justify-content-center.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }
}

#apply-to-fields {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
    background-color: #f9f9f9;
}

#apply-to-fields h5 {
    margin-top: 0;
    color: #1a5276;
}

.form-row {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

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

.promotion-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.promotion-form-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: white;
    padding: 20px 30px;
}

.promotion-form-title {
    margin: 0;
    font-weight: 600;
    font-size: 1.8rem;
    color: white;
}

.promotion-form-body {
    padding: 30px;
}

.form-section {
    background: #f8fafc;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4e6f1;
}

.form-floating label {
    color: #5a6a7e;
    font-weight: 500;
}

.form-control, .form-select {
    height: 50px;
    border-radius: 8px;
    border: 1px solid #d1d9e6;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

textarea.form-control {
    height: 120px !important;
    resize: vertical;
}

.form-check-input:checked {
    background-color: #1a5276;
    border-color: #1a5276;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 15px;
    transition: all 0.3s;
    margin-top: 5px;

}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-create {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.btn-update {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.btn-create:hover, .btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.btn-cancel {
    background: #f8f9fa;
    color: #5a6a7e;
    border: 1px solid #d1d9e6;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    margin-left: 15px;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #e9ecef;
    color: #1a5276;
}

.dynamic-fields {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.is-invalid {
    border-color: #e74c3c;
}

.invalid-feedback {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

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

.form-section {
    animation: fadeIn 0.4s ease-out;
}

@media (max-width: 768px) {
    .promotion-form-header {
        padding: 15px;
    }

    .promotion-form-title {
        font-size: 1.4rem;
    }

    .promotion-form-body {
        padding: 20px 15px;
    }

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

    .btn-cancel {
        margin-left: 0;
        margin-top: 15px;
    }
}

/* Основные стили контейнера */
.promotion-detail-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    animation: fadeIn 0.5s ease-out;
}

.promotion-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.promotion-detail-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.promotion-detail-title {
    margin: 0;
    font-weight: 600;
    font-size: 1.8rem;
    color: white;
}

.promotion-status-badge {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.promotion-status-badge .badge {
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Тело карточки */
.promotion-detail-body {
    padding: 30px;
}

/* Карточки с информацией */
.promotion-info-card {
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
    height: 100%;
}

.info-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.info-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.info-card-header i {
    color: #3498db;
    font-size: 1.2rem;
}

.info-card-body {
    padding: 20px;
}

/* Элементы информации */
.info-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.info-item.full-width {
    flex-direction: column;
}

.info-label {
    font-weight: 600;
    color: #5a6a7e;
    min-width: 160px;
}

.info-value {
    color: #2c3e50;
    flex-grow: 1;
}

.description-text {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}

/* Списки товаров/категорий/пользователей */
.items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.item-badge {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.item-id {
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-left: 8px;
}

/* Промокод */
.promo-code {
    background: #f1c40f;
    color: #34495e;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
}

/* Кнопки */
.btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 15px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.promotion-detail-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
}

.btn-edit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    background: var(--primary-color);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    color: white;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .promotion-detail-header {
        padding: 15px;
    }

    .promotion-detail-title {
        font-size: 1.4rem;
    }

    .promotion-detail-body {
        padding: 15px;
    }

    .info-item {
        flex-direction: column;
    }

    .info-label {
        margin-bottom: 5px;
    }

    .promotion-detail-footer .d-flex {
        flex-direction: column;
        gap: 10px;
    }

    .btn-edit, .btn-delete {
        width: 100%;
        text-align: center;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.delete-modal {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(0);
    animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-header {
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.header-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.modal-title {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.warning-message {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.promotion-to-delete {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    border: 1px dashed #e74c3c;
}

.promotion-to-delete i {
    color: #e74c3c;
}

.danger-alert {
    color: #e74c3c;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

.delete-form {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-delete-confirm {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.btn-delete-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.btn-delete-confirm:active {
    transform: translateY(0);
}

.btn-cancel {
    background: white;
    color: #5a6a7e;
    border: 1px solid #d1d9e6;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-cancel:hover {
    background: #f1f5f9;
    color: #1a5276;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@media (max-width: 576px) {
    .delete-modal {
        margin: 0 15px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .delete-form {
        flex-direction: column;
        gap: 10px;
    }

    .btn-delete-confirm,
    .btn-cancel {
        width: 100%;
    }
}

#gallery-slider {
    display: flex;
}

.orders {
    background: white;
    border-radius: var(--border-radius);
    padding: 10px 10px 10px 10px;
    margin-left: 10px;
    box-shadow: var(--box-shadow);
    width: 100%;
}

.info-user-orders {
    background: white;
    border-radius: var(--border-radius);
    padding: 10px 10px 10px 10px;
    box-shadow: var(--box-shadow);
}

.status-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.current-status {
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.status-controls {
    display: flex;
    gap: 5px;
}

.status-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;

}

.save-status-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-status-btn:hover {
    background-color: #45a049;
}

/* Цвета для статусов */
.status-создан {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.status-собран {
    background-color: #fff8e1;
    color: #ff8f00;
}

.status-отгружен {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-отменён {
    background-color: #ffebee;
    color: #c62828;
}

.status-доставлен {
    background-color: #e0f7fa;
    color: #00838f;
}

.account-info-orders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.order_number {
    font-size: 16px;
    font-weight: 500;
    color: #2563eb;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.info-label-detail {
    color: var(--gray);
    font-size: 14px;
}

.info-item-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.info-item-detail:not(:last-child) {
    border-bottom: 1px solid #f5f5f5;
}

.info-value-details {
    font-weight: 500;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value-details i {
    color: var(--gray);
}

.stock-table {
    background: white;
    border-radius: var(--border-radius);
    padding: 10px;
    margin-bottom: 5px;
    box-shadow: var(--box-shadow);
}

.order-table {
    background: white;
    border-radius: var(--border-radius);
    padding: 10px;
    margin-top: 5px;
    box-shadow: var(--box-shadow);
    display: grid;
}

.promo-back {
    color: white;
    gap: 8px;
    align-items: center;
    display: inline-flex;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.promo-back:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.promo-back:visited {
    color: white;
    text-decoration: none;
}

#id_promotion_type, #id_discount_type, #id_apply_to, #id_user_target {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 18%;
}

#id_name, #id_discount_value, #id_description, #id_code, #id_max_uses {
    width: 18%;
}

#apply-to-fields, #user-target-fields {
    width: 50%;
    background: white;
}

#id_goods-0-goods, #id_category-0-category {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 60%;
}

#id_users-0-user {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 65%;
}

.back-history {
    background: #6366f1;
    color: white;
    gap: 8px;
    align-items: center;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.back-history:hover {
    transform: translateY(-1px);
}

.back-history:visited {
    color: white;
    text-decoration: none;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.goods-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.goods-detail-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.goods-header-detail {
    margin-bottom: 15px;
}

.save-back-goods {
    margin: 5px 5px;
}

.back-button-price {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.goods_card {
    padding: 25px;
}

.goods-header-characteristics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.goods-card-orders {
    display: table;
}

.product-search {
    width: 20%;
}

.total_discount {
    border-radius: var(--border-radius);
}

.suggestion-item {
    padding: 7px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
}

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: var(--border-radius);
    width: 450px;
    box-shadow: var(--box-shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-text);
}

.close-modal:hover {
    color: var(--primary);
}

.modal-body {
    padding: 10px 0;
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-weight: 500;
}

.suggestions {
    z-index: 1000;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 5px;
    display: none;
}

.product-suggestions, #customerSuggestions {
    background: white;
    padding: 5px;
    max-height: 300px;
    display: none;
}

.product-suggestions {
    width: 200% ;
}

.temp-customer-form {
    display: none;
    margin-top: 15px;
}

.temp-customer-form .form-control {
    margin-bottom: 10px;
}

.products-list {
    max-height: 300px;
    height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
}

.product-actions {
    margin-bottom: 15px;
}

.product-row {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.product-fields {
    display: flex;
    gap: 10px;
}

.product-field {
    flex: 1;
    min-width: 0;
}

.product-field .form-control {
    width: 100%;
    padding: 10px 12px;
}

.product-action {
    flex: 0 0 40px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-text);
    transition: var(--transition);
}

.product-price,
.product-total {
    background-color: #f5f5f5;
    color: #666;
}

@media (max-width: 768px) {
    .product-fields {
        flex-wrap: wrap;
    }

    .product-field {
        flex: 1 0 calc(50% - 10px);
    }

    .product-action {
        flex: 1 0 100%;
        text-align: right;
        margin-top: 10px;
    }
}

#createOrderBtn {
    margin-left: 1rem;
}

.filter-section {
    display: flex;
}

.stock {
    width: 100%;
    overflow: hidden;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.filter-history, .select-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#createOrderBtn {
    margin-left: auto;
    white-space: nowrap;
}

.date-button, .input-search, .select-stock {
    height: fit-content;
}

@media (max-width: 1200px) {
    .filter-section {
        gap: 0.8rem;
    }
    .filter-history, .select-options {
        gap: 0.3rem;
    }
}

@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    #createOrderBtn {
        margin-left: 0;
        width: 100%;
    }
}

.stock {
    width: 100%;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.filter-history, .select-options {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.date-button,
.input-search,
.select-stock,
#createOrderBtn {
    height: 38px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    box-sizing: border-box;
}

.input-search, .select-stock {
    min-width: 200px;
    flex: 1;
}

.date-button {
    min-width: 180px;
}

.select-stock {
    min-width: 220px;
}

#createOrderBtn {
    min-width: 150px;
    background-color: #6366f1;
    color: white;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
}

@media (max-width: 1200px) {
    .filter-section {
        gap: 8px;
    }
    .filter-history, .select-options {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 8px;
    }

    .filter-history, .select-options {
        width: 100%;
    }

    .date-button,
    .input-search,
    .select-stock,
    #createOrderBtn {
        width: 100%;
        min-width: auto;
    }

    #createOrderBtn {
        margin-left: 0;
    }
}

.modal-order {
    max-width: 90%;
    width: auto;
    overflow-y: scroll;
    max-height: 50rem;
    margin: 5rem;
}

.payer-type-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.payer-tab {
    padding: 8px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
}

.payer-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.payer-fields {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 20px;
}

.delivery-type-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.upload-excel-btn {
    padding: 10px 15px;
    border: None;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    margin-left: 680px;
}

/* --- Фон модалки --- */
.excel-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}

/* --- Контент окна --- */
.excel-modal__content {
  background: #fff;
  border-radius: 14px;
  width: 380px;
  max-width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: modalFadeIn 0.25s ease;
  overflow: hidden;
}

/* --- Заголовок --- */
.excel-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f9fc;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.excel-modal__header h2 {
  font-size: 17px;
  margin: 0;
  color: #333;
}

.excel-modal__close {
  font-size: 22px;
  cursor: pointer;
  color: #888;
  transition: 0.2s ease;
}
.excel-modal__close:hover {
  color: #000;
}

/* --- Тело окна --- */
.excel-modal__body {
  padding: 18px 20px;
  font-size: 15px;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-link {
  color: #0b6efd;
  text-decoration: none;
  font-weight: 500;
  margin-right: 45%;
}
.template-link:hover {
  text-decoration: none;
}

/* --- Загрузка файла --- */
.file-upload-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f9fafb;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: center;
}
.file-upload-label:hover {
  background: #eef2ff;
  border-color: #94a3b8;
}

.file-input-excel {
  display: none;
}

.file-upload-text {
  font-weight: 500;
  color: #333;
}

.file-name {
  font-size: 13px;
  color: #6b7280;
}

/* --- Футер --- */
.excel-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

/* --- Кнопки --- */
.btn {
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.cancel-btn {
  background: #e5e7eb;
  color: #333;
}
.cancel-btn:hover {
  background: #d1d5db;
}

.primary-btn {
  background: #0b6efd;
  color: #fff;
}
.primary-btn:hover {
  background: #095ed6;
}

/* --- Анимация появления --- */
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Показ модалки --- */
.excel-modal.show {
    display: flex;
}

