html {
    background-color: #FCFBFB !important;
}

:root {
    /* Primary */
    --primary-color: #ca6565;
    --primary-hover: #b04d4d;
    --primary-light: #F4D9D9;
    
    /* Neutrals */
    --neutral-900: #2A2A2A;
    --neutral-700: #4D4D4D;
    --neutral-600: #6B7280;
    --neutral-500: #BFC4C9;
    --neutral-400: #9CA3AF;
    --neutral-300: #E6E8EA;
    --neutral-100: #F7F8F9;
    
    /* Backgrounds */
    --background: #FCFBFB;
    --card-bg: #FFFFFF;
    --section-bg: #FFFFFF;
    --material-card-bg: #F7F8F9;
    --cart-bg: #F7F8F9;
    
    /* Borders */
    --border-color: #E6E8EA;
    
    /* Text */
    --text-primary: #2A2A2A;
    --text-secondary: #4D4D4D;
    --text-muted: #9CA3AF;
    
    /* Inputs */
    --input-bg: #FFFFFF;
    --input-border: #D4D4D4;
    --input-placeholder: #9CA3AF;
    --input-text: #2A2A2A;
    
    /* Interactive */
    --hover-bg: rgba(0, 0, 0, 0.03);
    --active-bg: rgba(202, 101, 101, 0.12);
    
    /* Badges */
    --badge-bg: #EFEFEF;
    --badge-text: #555555;
    
    /* Shadows */
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    
    /* Category Colors */
    --promotion-color: #5b445b;
    --promotion-hover: #4a374a;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    background-color: #FCFBFB !important;
    color-scheme: light;
    min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6,
.modal-title,
.navbar-brand,
.admin-card-header h5,
.cart-total-number {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
}

h1, h2 { font-weight: 700; }
h3 { font-weight: 600; }

/* ===== CARDS ===== */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--neutral-300);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.material-card.card {
    overflow: visible !important;
}

.customer-info-card,
.card:has(.materials-header) {
    background-color: var(--section-bg) !important;
}

.card-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--neutral-300);
    background: linear-gradient(to right, var(--primary-color) 0, var(--primary-color) 4px, var(--white) 4px) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-left: 6px;
}

.section-meta {
    font-size: 11px;
    color: var(--neutral-700);
}

.card-body {
    padding: 14px 16px 16px !important;
}

/* ===== FORMS ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 12px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 0;
}

.required {
    color: var(--primary-color);
    margin-left: 2px;
}

.form-control,
.form-select {
    border-radius: 4px !important;
    border: 1px solid var(--input-border) !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    height: 30px !important;
    background-color: var(--input-bg) !important;
    color: var(--input-text) !important;
    outline: none !important;
    transition: border-color 0.14s ease, box-shadow 0.14s ease !important;
}

.form-control::placeholder {
    color: var(--input-placeholder);
    opacity: 1;
    font-size: 11px;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 1px var(--primary-light) !important;
    color: var(--input-text) !important;
}

/* Read-only input styling */
.form-control[readonly] {
    background-color: var(--neutral-100) !important;
    color: var(--neutral-700) !important;
    cursor: default;
    border-color: var(--neutral-300) !important;
}

.form-control[readonly]:focus {
    border-color: var(--neutral-300) !important;
    box-shadow: none !important;
}

/* Textarea */
textarea.form-control {
    height: auto !important;
    min-height: 50px !important;
    padding: 6px 8px !important;
    line-height: 1.4;
}

.form-textarea {
    min-height: 50px;
    resize: vertical;
}

/* Inline Radio Buttons */
.inline-radio {
    display: flex;
    gap: 12px;
    padding-top: 6px;
}

.inline-radio label {
    font-size: 12px;
    color: var(--neutral-700);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: 400;
}

.inline-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.inline-radio label:hover {
    color: var(--neutral-900);
}

.inline-radio input[type="radio"]:checked + span {
    color: var(--neutral-900);
    font-weight: 500;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--card-bg) !important;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--neutral-300);
    height: 65px;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-color) !important;
    line-height: 1.2;
}

.navbar-logo {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.navbar-title-section {
    border-left: none;
    margin-left: 0;
}

.navbar-form-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.navbar-form-subtitle {
    font-size: 11px;
    color: var(--neutral-700);
    margin: 0;
    line-height: 1.3;
}

/* Container spacing */
.container.my-4 {
    margin-top: 0.75rem !important;
    margin-bottom: 1rem !important;
}

.card.mb-3 {
    margin-bottom: 0.75rem !important;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 4px;
    background-color: var(--neutral-100);
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 16px;
    color: var(--neutral-700);
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.lang-btn.active:hover {
    background-color: var(--primary-hover);
    color: white;
}

/* ===== LOGOUT BUTTON - PILL STYLE ===== */
.logout-toggle {
    display: flex;
    background-color: var(--neutral-100);
    padding: 4px;
    border-radius: 20px;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 16px;
    color: var(--neutral-700);
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.logout-btn i {
    font-size: 11px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    transition: all 0.15s ease;
    border-radius: 0.1875rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(202, 101, 101, 0.2);
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    box-shadow: 0 0 0 0.25rem rgba(202, 101, 101, 0.25) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--border-color);
    background-color: transparent;
    transition: all 0.2s ease;
    border-radius: 0.1875rem;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    color: var(--white);
    font-weight: 500;
    border-radius: 0.1875rem;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

/* Danger/Delete buttons - softer red matching theme */
.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    border-radius: 0.1875rem;
    transition: all 0.15s ease;
}

.btn-danger:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-danger:focus,
.btn-danger:active,
.btn-danger:focus-visible {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    box-shadow: 0 0 0 0.25rem rgba(202, 101, 101, 0.25) !important;
}

/* Outline danger button variant */
.btn-outline-danger {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
    border-radius: 0.1875rem;
    transition: all 0.15s ease;
}

.btn-outline-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary,
.btn-outline-secondary {
    border-radius: 0.1875rem;
}

/* ===== PRIORITY TOGGLE ===== */
.priority-toggle {
    display: flex;
    gap: 3px;
    background-color: var(--neutral-100);
    padding: 3px;
    border-radius: 16px;
    width: fit-content;
    height: 30px;
    align-items: center;
}

.priority-toggle .btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}

.priority-toggle .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none !important;
    background-color: transparent;
    height: 24px;
}

/* Normal Button - Unselected */
.priority-toggle .btn-outline-secondary {
    background-color: transparent;
    color: var(--neutral-700);
}

.priority-toggle .btn-outline-secondary:hover {
    color: var(--neutral-900);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Normal Button - Selected */
.priority-toggle .btn-check:checked + .btn-outline-secondary {
    background-color: var(--neutral-700);
    color: white;
}

.priority-toggle .btn-check:checked + .btn-outline-secondary:hover {
    background-color: var(--neutral-900);
}

/* Urgent Button - Unselected */
.priority-toggle .btn-outline-danger {
    background-color: transparent;
    color: var(--primary-color);
}

.priority-toggle .btn-outline-danger:hover {
    color: var(--primary-hover);
    background-color: rgba(202, 101, 101, 0.08);
}

/* Urgent Button - Selected */
.priority-toggle .btn-check:checked + .btn-outline-danger {
    background-color: var(--primary-color);
    color: white;
}

.priority-toggle .btn-check:checked + .btn-outline-danger:hover {
    background-color: var(--primary-hover);
}

/* Icon styling in priority buttons */
.priority-toggle .btn i {
    font-size: 9px;
}

/* ===== FILTER BUTTONS ===== */
.category-filter-toggle {
    display: flex;
    gap: 3px;
    background-color: var(--neutral-100);
    padding: 3px;
    border-radius: 16px;
    width: fit-content;
    height: 30px;
    align-items: center;
}

.category-filter-toggle .btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}

.category-filter-toggle .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none !important;
    background-color: transparent;
    height: 24px;
    white-space: nowrap;
}

/* All Button */
.category-filter-toggle .btn-filter-all {
    color: var(--neutral-600);
}

.category-filter-toggle .btn-filter-all:hover {
    color: var(--neutral-700);
    background-color: rgba(0, 0, 0, 0.04);
}

.category-filter-toggle .btn-check:checked + .btn-filter-all {
    background-color: var(--neutral-600);
    color: white;
}

.category-filter-toggle .btn-check:checked + .btn-filter-all:hover {
    background-color: var(--neutral-600);
}

/* Marketing Button */
.category-filter-toggle .btn-filter-marketing {
    color: var(--primary-color);
}

.category-filter-toggle .btn-filter-marketing:hover {
    color: var(--primary-hover);
    background-color: rgba(202, 101, 101, 0.08);
}

.category-filter-toggle .btn-check:checked + .btn-filter-marketing {
    background-color: var(--primary-color);
    color: white;
}

.category-filter-toggle .btn-check:checked + .btn-filter-marketing:hover {
    background-color: var(--primary-hover);
}

/* Promotion Button */
.category-filter-toggle .btn-filter-promotion {
    color: var(--promotion-color);
}

.category-filter-toggle .btn-filter-promotion:hover {
    color: var(--promotion-hover);
    background-color: rgba(91, 68, 91, 0.08);
}

.category-filter-toggle .btn-check:checked + .btn-filter-promotion {
    background-color: var(--promotion-color);
    color: white;
}

.category-filter-toggle .btn-check:checked + .btn-filter-promotion:hover {
    background-color: var(--promotion-hover);
}

/* ===== SEARCH BAR ===== */
.search-container {
    display: flex;
    align-items: center;
    background-color: var(--neutral-100);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0;
    height: 30px;
    transition: border-color 0.2s ease;
}

.search-container:focus-within {
    border-color: var(--primary-color);
}

.search-container .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: var(--neutral-500);
    font-size: 12px;
}

.search-container input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    height: 100% !important;
    padding: 0 8px 0 0 !important;
    font-size: 11px !important;
    color: var(--input-text) !important;
    outline: none !important;
    box-shadow: none !important;
}

.search-container input::placeholder {
    color: var(--neutral-500);
    font-size: 11px;
}

.search-container .clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 3px;
    border: none;
    background-color: transparent;
    color: var(--neutral-500);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 10px;
}

.search-container .clear-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== MATERIAL CARDS ===== */
.material-card {
    background-color: var(--material-card-bg) !important;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: none !important;
    overflow: visible !important;
}

.material-card:hover {
    border-color: var(--primary-color);
    box-shadow: none !important;
    overflow: visible !important;
    background-color: rgba(202, 101, 101, 0.04) !important;
}

.material-card:hover .card-body {
    background-color: transparent !important;
}

.material-card:hover .material-image {
    background-color: rgba(202, 101, 101, 0.04) !important;
}

.material-card:hover .material-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
}

.material-image {
    height: 155px;
    width: 100%;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid var(--primary-color);
    padding: 0.575rem;
    box-shadow: none !important;
}

.material-card .card-body {
    padding: 0.35rem !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 70px;
}

.material-card .card-title {
    font-size: 11px !important;
    font-weight: 500 !important;
    margin-bottom: 0.2rem !important;
    line-height: 1.25;
    color: var(--neutral-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.25em * 2);
    max-height: calc(1.25em * 2);
}

.material-card code,
.material-code {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #ca6565 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: none;
    padding: 0;
    border: none;
}

.material-card .d-flex.justify-content-between.align-items-center.mb-2 {
    margin-bottom: 0.2rem !important;
}

/* Material Category Badges */
.material-category-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 0;
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0.03em;
    line-height: 1;
    display: inline-block;
    border: none;
    background: none;
    color: var(--neutral-700);
}

.marketing-badge,
.promotion-badge {
    background-color: transparent;
    border: none;
}

/* Quantity input and add button */
.material-card .quantity-input {
    height: 24px !important;
    padding: 2px 6px !important;
    font-size: 11px !important;
    min-width: 0;
}

.material-card .add-to-cart {
    height: 24px !important;
    width: 24px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.material-card .add-to-cart i {
    font-size: 12px;
}

.material-card .d-flex.gap-1.align-items-center {
    gap: 4px !important;
}

/* ===== MATERIAL TOOLTIP ===== */
.material-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(45, 50, 59, 0.98);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    padding: 8px 12px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 150px;
    max-width: 280px;
    white-space: normal;
    width: max-content;
    pointer-events: none;
}

.material-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--primary-color);
}

.material-tooltip-name {
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.3;
    word-break: break-word;
}

.material-tooltip-code {
    color: #CDE855;
    font-size: 10px;
    font-family: "Inter", monospace;
    white-space: nowrap;
}

.material-card:hover .material-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Ensure elements don't clip tooltips */
.material-item,
#materialsGrid,
.materials-content-wrapper,
.row.row-cols-2,
.row.row-cols-sm-3,
.row.row-cols-md-4,
.row.row-cols-lg-5 {
    overflow: visible !important;
}

/* ===== SHOPPING CART ===== */
.cart-sidebar {
    position: relative;
    top: 0;
}

.cart-sidebar .card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color);
    max-height: none;
}

.cart-sidebar .card-body {
    max-height: none;
    overflow-y: visible;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--neutral-500);
}

.cart-empty i {
    color: var(--neutral-300);
}

.cart-empty p {
    font-size: 13px;
    color: var(--neutral-500);
    margin: 0;
}

.cart-item {
    background-color: var(--material-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.cart-item:hover {
    background-color: rgba(202, 101, 101, 0.04);
    border-color: var(--primary-color);
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 2px;
    line-height: 1.3;
}

.cart-item-code {
    font-size: 10px;
    font-family: "Inter", monospace;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.05em;
}

.cart-item-qty {
    font-size: 11px;
    color: var(--neutral-700);
}

.cart-item-qty strong {
    color: var(--neutral-900);
    font-weight: 600;
}

/* Cart action buttons */
.cart-item .btn-danger {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--neutral-600);
    padding: 4px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cart-item .btn-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.cart-item .btn-group-sm .btn {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    border-color: var(--border-color);
    color: var(--neutral-700);
    background-color: white;
    transition: all 0.2s ease;
}

.cart-item .btn-group-sm .btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.cart-total {
    background-color: var(--primary-light);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
}

.cart-total-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neutral-700);
}

.cart-total-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Order Summary Badge */
#totalItemsBadge,
.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Submit Button */
#submitBtn:hover:not(:disabled) {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: white !important;
}

#submitBtn:disabled {
    background-color: var(--neutral-300) !important;
    border-color: var(--neutral-300) !important;
    color: var(--neutral-500) !important;
    cursor: not-allowed;
}

/* ===== STICKY MATERIALS SECTION ===== */
.materials-section-wrapper {
    position: relative;
}

.materials-section-wrapper > .card {
    border-radius: 10px;
    overflow: visible;
}

.materials-sticky-header {
    position: sticky;
    top: 65px;
    z-index: 100;
    background-color: var(--card-bg);
    border-radius: 10px 10px 0 0;
    margin: -1px;
    padding-top: 1px;
}

.materials-sticky-header .card-header {
    padding: 8px 16px;
    margin: 0;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.materials-controls-sticky {
    padding: 8px 16px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    background-color: var(--card-bg);
}

.materials-controls-sticky .controls-row {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
    align-items: center;
}

.materials-controls-sticky .search-container {
    width: 100%;
    max-width: none;
}

.materials-controls-sticky .category-filter-toggle {
    width: 100%;
    justify-content: center;
}

.materials-controls-sticky .category-filter-toggle .btn {
    flex: 1;
    justify-content: center;
}

.materials-content-wrapper {
    padding: 12px 16px;
    margin: 0;
}

.cart-sidebar-wrapper {
    position: sticky;
    top: 160px;
    align-self: start;
}

/* ===== CUSTOMER INFO GRID ===== */
.customer-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 6px 12px;
}

.customer-info-grid .field-owner {
    grid-column: 1 / 3;
    grid-row: 1;
}

.customer-info-grid .field-email {
    grid-column: 3 / 5;
    grid-row: 1;
}

.customer-info-grid .address-field {
    grid-column: 5 / 7;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.customer-info-grid .address-field textarea {
    flex: 1;
    min-height: 85px !important;
    resize: none;
}

.customer-info-grid .field-order-date {
    grid-column: 1 / 3;
    grid-row: 2;
}

.customer-info-grid .field-delivery-date {
    grid-column: 1 / 3;
    grid-row: 3;
}

.customer-info-grid .field-tax-id {
    grid-column: 3 / 5;
    grid-row: 2;
}

.customer-info-grid .field-delivery-person {
    grid-column: 3 / 5;
    grid-row: 3;
}

.customer-info-grid .field-priority {
    grid-column: 5;
    grid-row: 3;
    display: flex;
    flex-direction: column;
}

.card:has(.customer-info-grid) .card-body {
    padding: 8px 12px 10px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .customer-info-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto auto;
    }
    
    .customer-info-grid .field-owner,
    .customer-info-grid .field-email,
    .customer-info-grid .field-order-date,
    .customer-info-grid .field-delivery-date,
    .customer-info-grid .field-tax-id,
    .customer-info-grid .field-delivery-person,
    .customer-info-grid .field-priority {
        grid-column: auto;
        grid-row: auto;
    }
    
    .customer-info-grid .address-field {
        grid-column: 1 / 3;
        grid-row: auto;
    }
    
    .customer-info-grid .address-field textarea {
        min-height: 60px !important;
    }
}

@media (max-width: 576px) {
    .customer-info-grid {
        grid-template-columns: 1fr;
    }
    
    .customer-info-grid .address-field {
        grid-column: auto;
    }
    
    .customer-info-grid .address-field textarea {
        min-height: 50px !important;
    }
}

/* ===== ADMIN TABLE BUTTONS ===== */
/* Edit button - gray theme */
.table .btn-primary {
    background-color: var(--neutral-600);
    border-color: var(--neutral-600);
    color: white;
}

.table .btn-primary:hover {
    background-color: var(--neutral-700);
    border-color: var(--neutral-700);
    transform: none;
    box-shadow: none;
}

.table .btn-primary:focus,
.table .btn-primary:active {
    background-color: var(--neutral-700) !important;
    border-color: var(--neutral-700) !important;
    box-shadow: 0 0 0 0.25rem rgba(107, 114, 128, 0.25) !important;
}

/* Delete button in table - outline style */
.table .btn-danger {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--neutral-600);
}

.table .btn-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.table .btn-danger:focus,
.table .btn-danger:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

/* Delete All button - outline style */
#deleteAllBtn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#deleteAllBtn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
/* Material code in table - matching material card style */
.table td code {
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    color: var(--primary-color) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

/* ===== ADD MATERIAL BUTTON - PILL STYLE ===== */
.btn-add-material {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    background-color: var(--primary-color);
    border: none;
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-add-material:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(202, 101, 101, 0.25);
}

.btn-add-material:active,
.btn-add-material:focus {
    background-color: var(--promotion-color) !important;
    border-color: var(--promotion-color) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(91, 68, 91, 0.25) !important;
    transform: translateY(0);
}

.btn-add-material:disabled {
    background-color: var(--neutral-300);
    color: var(--neutral-500);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-add-material i {
    font-size: 11px;
}

/* ===== KVKK CONSENT CHECKBOX ===== */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
    border: 1px solid var(--input-border);
    border-radius: 3px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.form-check-input:hover {
    border-color: var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(202, 101, 101, 0.25);
}

.form-check-label {
    font-size: 11px;
    color: var(--text-primary);
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.invalid-feedback {
    font-size: 10px;
    color: var(--primary-color);
    margin-top: 4px;
    display: none;
}

.form-check:has(.form-check-input:invalid) ~ .invalid-feedback {
    display: block;
}

