/**
 * CRM Sistemi - Kurumsal Stil Dosyası
 * Bootstrap Benzeri - Mavi ve Gri Tonları
 */

/* ===== RESET & GENEL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Ana Renkler - Mavi Tonları */
    --primary: #0d6efd;
    --primary-hover: #0b5ed7;
    --primary-light: #cfe2ff;
    --primary-dark: #084298;
    
    /* Gri Tonları */
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Durum Renkleri */
    --success: #198754;
    --success-light: #d1e7dd;
    --danger: #dc3545;
    --danger-light: #f8d7da;
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --info: #0dcaf0;
    --info-light: #cff4fc;
    
    /* Temel Renkler */
    --white: #ffffff;
    --body-bg: #f8f9fa;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --link-color: #0d6efd;
    
    /* Gölgeler */
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
    
    /* Border Radius */
    --radius-sm: .25rem;
    --radius: .375rem;
    --radius-lg: .5rem;
    --radius-xl: 1rem;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--body-bg);
    min-height: 100vh;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== LAYOUT WITH SIDEBAR ===== */
body {
    display: flex;
    min-height: 100vh;
}

/* Sol Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1040;
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9375rem;
    gap: 0.75rem;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    text-decoration: none;
    padding-left: 1.5rem;
}

.sidebar-nav a.active {
    background: rgba(59, 130, 246, 0.2);
    color: var(--white);
    border-left: 4px solid #3b82f6;
    font-weight: 600;
}

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

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 1rem 0;
}

.sidebar-section-title {
    padding: 1rem 1.25rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

/* Main Content Area */
.main-wrapper {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== HEADER ===== */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.875rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
}

header h1 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

header h1::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
}

.user-info strong {
    color: var(--gray-800);
}

.role-badge {
    background: var(--primary);
    color: var(--white);
    padding: .25rem .625rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 500;
}

/* ===== NAVİGASYON ===== */
/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 2rem;
    flex: 1;
    background: var(--gray-50);
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

/* ===== STATS ROW ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.stat-box h3 {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .5rem;
}

.stat-box .number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-box:nth-child(1) { border-left: 4px solid var(--primary); }
.stat-box:nth-child(2) { border-left: 4px solid var(--success); }
.stat-box:nth-child(3) { border-left: 4px solid var(--info); }
.stat-box:nth-child(4) { border-left: 4px solid var(--warning); }

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    align-items: center;
}

.filter-bar select,
.filter-bar input[type="text"],
.filter-bar input[type="date"],
.filter-bar input[type="search"] {
    padding: .375rem .75rem;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.filter-bar select:focus,
.filter-bar input:focus {
    outline: 0;
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.filter-bar select {
    min-width: 140px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.alert-success {
    color: #0f5132;
    background-color: var(--success-light);
    border-color: #badbcc;
}

.alert-error,
.alert-danger {
    color: #842029;
    background-color: var(--danger-light);
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: var(--warning-light);
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: var(--info-light);
    border-color: #b6effb;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    padding: .375rem .75rem;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--white);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

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

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

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

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

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
    color: var(--white);
}

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

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
    color: var(--white);
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: var(--gray-900);
}

.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
    color: var(--gray-900);
}

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

.btn-secondary:hover {
    background-color: var(--gray-700);
    border-color: var(--gray-700);
    color: var(--white);
}

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

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

.btn-logout {
    background-color: var(--danger);
    border-color: var(--danger);
    color: var(--white);
    padding: .375rem .75rem;
    font-size: .8125rem;
    border-radius: var(--radius);
    text-decoration: none;
}

.btn-logout:hover {
    background-color: #bb2d3b;
    color: var(--white);
    text-decoration: none;
}

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

.btn-small {
    padding: .25rem .5rem;
    font-size: .75rem;
    border-radius: var(--radius-sm);
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: .25rem;
    align-items: center;
}

.action-buttons a,
.action-buttons button {
    padding: .25rem .5rem;
    font-size: .75rem;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: .875rem;
}

.form-group label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    appearance: none;
    border-radius: var(--radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    color: var(--gray-900);
    background-color: var(--white);
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    background: var(--gray-100);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.login-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.login-box h1 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: .25rem;
}

.login-box h2 {
    color: var(--text-muted);
    font-size: .9375rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-form {
    margin-top: 1rem;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: .8125rem;
    color: var(--text-muted);
}

/* ===== DASHBOARD ===== */
.dashboard h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

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

.stat-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.stat-card:nth-child(1) { border-left: 4px solid var(--primary); }
.stat-card:nth-child(2) { border-left: 4px solid var(--success); }
.stat-card:nth-child(3) { border-left: 4px solid var(--info); }
.stat-card:nth-child(4) { border-left: 4px solid var(--warning); }
.stat-card:nth-child(5) { border-left: 4px solid var(--danger); }
.stat-card:nth-child(6) { border-left: 4px solid var(--gray-600); }

.stat-card h3 {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .5rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-number.warning {
    color: var(--warning);
}

.recent-activities {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.recent-activities h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

/* ===== TABLES ===== */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

table {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-color);
    vertical-align: top;
    border-color: var(--border-color);
    border-collapse: collapse;
}

table thead {
    background-color: var(--gray-100);
    border-bottom: 2px solid var(--border-color);
}

table thead th {
    padding: .75rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--gray-700);
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

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

table tbody tr:hover {
    background-color: var(--gray-50);
}

table tbody td {
    padding: .75rem;
    font-size: .875rem;
    color: var(--text-color);
    vertical-align: middle;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 1rem 0 .5rem;
}

.empty-state p {
    margin: 0;
    font-size: .875rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 1rem;
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .75em;
    font-weight: 600;
    line-height: 1;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--radius);
}

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

.badge-success,
.badge-active {
    background-color: var(--success);
}

.badge-danger,
.badge-inactive {
    background-color: var(--danger);
}

.badge-warning {
    background-color: var(--warning);
    color: var(--gray-900);
}

.badge-info {
    background-color: var(--info);
    color: var(--gray-900);
}

.badge-secondary {
    background-color: var(--gray-600);
}

/* ===== STOCK BADGES ===== */
.stock-badge {
    display: inline-block;
    padding: .25rem .5rem;
    font-size: .6875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.stock-ok {
    background-color: var(--success-light);
    color: #0f5132;
}

.stock-low {
    background-color: var(--warning-light);
    color: #664d03;
}

.stock-critical {
    background-color: var(--danger-light);
    color: #842029;
}

/* ===== FOOTER ===== */
footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: .8125rem;
    color: var(--text-muted);
}

/* ===== UTILITIES ===== */
.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.glass-effect {
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.text-gradient {
    color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: .75rem;
        padding: .75rem 1rem;
        text-align: center;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav {
        padding: 0 .5rem;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li a {
        border-bottom: none;
        border-left: 3px solid transparent;
        padding: .625rem 1rem;
    }
    
    .main-nav li a:hover,
    .main-nav li a.active {
        border-left-color: var(--primary);
        border-bottom-color: transparent;
    }
    
    .stats-grid,
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-bar select,
    .filter-bar input {
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* ===== SALE PAGE SPECIFIC ===== */
.sale-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
}

.product-selection {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.product-selection h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.cart-sidebar {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.cart-sidebar h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.product-card {
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: .5rem;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color .15s ease-in-out;
}

.product-card:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.product-info h4 {
    margin: 0 0 .25rem 0;
    color: var(--gray-900);
    font-size: .875rem;
    font-weight: 600;
}

.product-info p {
    margin: 0;
    font-size: .75rem;
    color: var(--text-muted);
}

.product-add {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.product-add input {
    width: 60px;
    padding: .25rem .5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: .875rem;
}

.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding: .75rem 0;
}

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

.cart-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.cart-item-header strong {
    color: var(--gray-900);
    font-size: .875rem;
}

.cart-item-controls {
    display: grid;
    grid-template-columns: 60px 80px 1fr auto;
    gap: .5rem;
    align-items: center;
    font-size: .8125rem;
}

.cart-total {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    margin: 1rem -1.25rem -1.25rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: .5rem;
    font-size: .875rem;
}

.cart-total-row.final {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 1px solid rgba(255,255,255,.3);
    padding-top: .75rem;
    margin-top: .75rem;
}

.empty-cart {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

/* ===== SALE DETAIL PAGE ===== */
.sale-detail {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.sale-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 .25rem 0;
    color: var(--gray-900);
}

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

.info-box {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.info-box h4 {
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 .75rem 0;
}

.info-box p {
    margin: .25rem 0;
    font-size: .8125rem;
    color: var(--gray-700);
}

.items-table {
    margin: 1.5rem 0;
}

.items-table h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.total-box {
    background: var(--primary);
    color: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: .5rem;
    font-size: .9375rem;
}

.total-row.final {
    font-size: 1.5rem;
    font-weight: 700;
    border-top: 1px solid rgba(255,255,255,.3);
    padding-top: 1rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .sale-container {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        position: static;
        max-height: none;
    }
    
    .sale-info-grid {
        grid-template-columns: 1fr;
    }
    
    .sale-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== INFO TEXT ===== */
.info-text {
    color: var(--text-muted);
    font-style: italic;
    font-size: .875rem;
}

/* ===== REQUIRED LABEL ===== */
label.required::after {
    content: ' *';
    color: var(--danger);
}
