/* ========================================
   AretaERP - Modern ERP Styling
   Color Palette: #111844, #4B5694, #7288AE, #EAE0CF
   ======================================== */

:root {
    --primary-dark: #111844;
    --primary-blue: #4B5694;
    --primary-light: #7288AE;
    --primary-cream: #EAE0CF;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

/* ========================================
   AUTHENTICATION PAGES (Login & Register)
   ======================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 48px 40px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 15px;
}

.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(75, 86, 148, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 24, 68, 0.3);
}

.btn-block {
    width: 100%;
    display: block;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: var(--error);
    border: 1px solid var(--error);
}

.alert-success {
    background: #efe;
    color: var(--success);
    border: 1px solid var(--success);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-footer p {
    color: var(--text-light);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   COMPANY SELECTION PAGE
   ======================================== */

.company-selection-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    padding: 20px;
}

.company-selection-container {
    width: 100%;
    max-width: 700px;
}

.company-selection-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideUp 0.5s ease;
}

.company-selection-header {
    text-align: center;
    margin-bottom: 32px;
}

.company-selection-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.company-selection-header p {
    color: var(--text-light);
    font-size: 15px;
}

.company-list {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.company-item-form {
    margin: 0;
}

.company-item {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.company-item:hover {
    border-color: var(--primary-blue);
    background: rgba(75, 86, 148, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(75, 86, 148, 0.15);
}

.company-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    border-radius: 12px;
    color: var(--white);
    margin-right: 20px;
    flex-shrink: 0;
}

.company-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.company-details span {
    font-size: 14px;
    color: var(--text-light);
}

.company-selection-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.logout-link {
    color: var(--error);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.logout-link:hover {
    text-decoration: underline;
}

/* ========================================
   ERP LAYOUT (Dashboard & Main Application)
   ======================================== */

.erp-layout {
    background: #f9fafb;
}

.erp-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--primary-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-cream);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-left-color: var(--primary-cream);
}

.nav-item.active {
    background: rgba(234, 224, 207, 0.15);
    color: var(--primary-cream);
    border-left-color: var(--primary-cream);
}

.nav-item svg {
    margin-right: 12px;
    flex-shrink: 0;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Topbar */
.topbar {
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hamburger-btn svg {
    display: block;
}

.topbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-secondary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--error);
    color: var(--error);
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

/* ========================================
   DASHBOARD
   ======================================== */

.dashboard-container {
    max-width: 1400px;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.dashboard-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* Dashboard */
/* Stats tanımları konsolide STATS GRID bölümünde */

/* Stat icon'lar kaldırıldı - global STATS GRID bölümünde */

/* Recent Activity */
.recent-activity {
    background: var(--white);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recent-activity h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-cream);
    border-radius: 8px;
    color: var(--primary-blue);
    margin-right: 16px;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.activity-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.activity-time {
    font-size: 13px;
    color: var(--text-light);
}

.no-activity {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    font-size: 15px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    /* Stats-grid responsive tanımı global STATS GRID bölümünde */
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .sidebar.open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }

    /* Sidebar açıkken overlay */
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .hamburger-btn {
        display: flex;
    }

    .topbar {
        padding: 0 16px;
    }

    .topbar-left h3 {
        font-size: 16px;
    }

    .content-area {
        padding: 20px;
    }

    /* Stats-grid, stat-card, stat-value responsive tanımları global STATS GRID bölümünde */

    .auth-card {
        padding: 32px 24px;
    }

    .company-selection-card {
        padding: 28px 20px;
    }

    .company-item {
        padding: 16px;
    }

    .company-icon {
        width: 52px;
        height: 52px;
    }

    .topbar-right {
        gap: 8px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 24px;
    }

    /* Stat-card, stat-icon, stat-value responsive tanımları global STATS GRID bölümünde */

    .auth-header h1 {
        font-size: 26px;
    }

    .company-selection-header h1 {
        font-size: 24px;
    }
}

/* ========================================
   USER MANAGEMENT PAGE STYLES
   ======================================== */

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.content-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.content-title p {
    color: var(--text-light);
    font-size: 14px;
}

.content-actions {
    display: flex;
    gap: 12px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: #f9fafb;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

.card-body {
    padding: 24px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f9fafb;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.data-table .text-center {
    text-align: center;
}

.data-table .text-right {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
}

.text-muted {
    color: var(--text-light);
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.action-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.btn svg {
    vertical-align: middle;
    margin-right: 4px;
}

/* Form Styles */
.form-container {
    max-width: 900px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.assignment-row {
    margin-bottom: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.assignment-row .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 0;
}

.form-group-actions {
    display: flex;
    align-items: flex-end;
    padding-bottom: 4px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.text-danger {
    color: var(--error);
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* Nav Section Styles */
.nav-section {
    margin-top: 24px;
}

.nav-section-title {
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
    }

    .assignment-row .form-row {
        grid-template-columns: 1fr;
    }

    .form-group-actions {
        justify-content: flex-start;
    }

    .action-buttons {
        flex-direction: column;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
}

/* ========================================
   PERMISSION MANAGEMENT STYLES
   ======================================== */

.permission-table-container {
    overflow-x: auto;
}

.permission-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.permission-table thead {
    background: var(--primary-dark);
    color: var(--white);
}

.permission-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.permission-table th.permission-col {
    text-align: center;
    width: 120px;
}

.permission-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.permission-table tbody tr:hover {
    background: rgba(75, 86, 148, 0.03);
}

.permission-table td {
    padding: 16px 20px;
}

.permission-table td.module-name {
    font-weight: 500;
    color: var(--text-dark);
}

.permission-table td.permission-col {
    text-align: center;
}

/* Custom Checkbox Styling for Permission Table */
.checkbox-container {
    display: inline-block;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-container .checkmark {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary-blue);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Badge Styles */

/* Nav Section Styles */
.nav-section {
    margin-top: 24px;
}

.nav-section-title {
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   SUPPLIER MODULE STYLES
   ======================================== */

/* Kompakt filtre formu */
.filter-form {
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group .form-control {
    max-width: 220px;
    flex: 0 0 auto;
}

.filter-group .btn {
    flex: 0 0 auto;
}

/* Kompakt tablo stili */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table thead {
    background: #f9fafb;
}

.table th {
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f9fafb;
}

/* Tablo sütun genişlikleri */
.table th:nth-child(1),
.table td:nth-child(1) {
    width: 25%;
}

.table th:nth-child(2),
.table td:nth-child(2) {
    width: 20%;
}

.table th:nth-child(3),
.table td:nth-child(3) {
    width: 15%;
}

.table th:nth-child(4),
.table td:nth-child(4) {
    width: 10%;
    text-align: center;
}

.table th:nth-child(5),
.table td:nth-child(5) {
    width: 10%;
    text-align: center;
}

.table th:nth-child(6),
.table td:nth-child(6) {
    width: 10%;
    text-align: center;
}

/* İşlem butonları kompakt hizalama - global action-buttons tanımını kullan */

/* Detay sayfası - 2 kolonlu grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-item-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.detail-item-value a {
    color: var(--primary-blue);
    text-decoration: none;
}

.detail-item-value a:hover {
    text-decoration: underline;
}

/* Adres tam genişlikte */
.detail-item.full-width {
    grid-column: 1 / -1;
}

/* Durum badge'leri - global badge tanımlarını kullan */

/* Kompakt form stili */
.form-compact .card-body {
    padding: 20px;
}

.form-compact .form-group {
    margin-bottom: 16px;
}

/* Aktif checkbox sağ üst köşe */
.form-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-header-row .form-check {
    margin: 0;
}

/* Page header genel stil */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state svg {
    color: var(--border-color);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group .form-control {
        max-width: 100%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .form-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
}

/* ========================================
   TAB SYSTEM
   ======================================== */

.tabs-container {
    margin-top: 20px;
}

.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: var(--primary-blue);
    background: rgba(75, 86, 148, 0.05);
}

.tab-button.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-button svg {
    flex-shrink: 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   STATS GRID - Consolidated
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-value.text-success {
    color: var(--success);
}

.stat-value.text-warning {
    color: var(--warning);
}

.stat-value.text-danger {
    color: var(--error);
}

/* Stat icon styles */
.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 20px;
    flex-shrink: 0;
}

.stat-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: var(--white);
}

.stat-icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: var(--white);
}

.stat-icon-green {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: var(--white);
}

.stat-icon-orange {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: var(--white);
}

.stat-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* ========================================
   ACCORDION
   ======================================== */

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--white);
    transition: background 0.2s;
}

.accordion-header:hover {
    background: rgba(75, 86, 148, 0.03);
}

.agreement-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agreement-info {
    font-size: 15px;
}

.agreement-info strong {
    color: var(--primary-dark);
}

.agreement-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.accordion-toggle {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.2s;
}

.accordion-content {
    display: none;
    padding: 0 20px 20px 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(234, 224, 207, 0.1);
}

.agreement-details {
    padding: 16px 0;
    font-size: 14px;
    line-height: 1.8;
}

.agreement-details p {
    margin-bottom: 8px;
}

.accordion-content h4 {
    margin-top: 16px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--primary-dark);
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-company {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-role {
    background: #f3e8ff;
    color: #7c3aed;
}

.manufacturer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(234, 224, 207, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.delivery-plan-row {
    padding: 12px;
    background: rgba(234, 224, 207, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
}

/* ========================================
   TABLE ENHANCEMENTS
   ======================================== */

.bg-danger-light {
    background-color: #fee2e2 !important;
}

.bg-warning-light {
    background-color: #fef3c7 !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-light);
}

.mt-3 {
    margin-top: 16px;
}

.mb-3 {
    margin-bottom: 16px;
}

/* ========================================
   STANDARDIZED ACTION BUTTONS
   ======================================== */

/* Ortak buton temel stili - tüm butonlar için */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

/* Düzenle butonu - mavi/primary */
.btn-edit {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-edit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(75, 86, 148, 0.25);
}

/* Sil butonu - kırmızı */
.btn-delete {
    background: var(--error);
    color: var(--white);
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.25);
}

/* Ekle / Yeni butonu - yeşil */
.btn-add {
    background: var(--success);
    color: var(--white);
}

.btn-add:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
}

/* Warning butonu - turuncu */
.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
}

/* Info butonu - açık mavi */
.btn-info {
    background: #3b82f6;
    color: var(--white);
}

.btn-info:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.25);
}

/* Küçük buton boyutu */
.btn-action.btn-xs {
    padding: 4px 8px;
    font-size: 12px;
}

/* ========================================
   ENHANCED MODAL STYLES
   ======================================== */

/* Modal geniş versiyonu - asorti ekleme için */
.modal-xlarge {
    max-width: 1000px;
}

/* Asorti satırı - yan yana yerleşim için */
.assortment-row {
    margin-bottom: 16px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.assortment-row .form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr auto;
    gap: 12px;
    align-items: flex-end;
}

/* Form inputlarının minumum genişlik ayarları */
.assortment-row .form-group {
    margin-bottom: 0;
}

/* Asorti önizleme bilgisi */
.assortment-price-preview {
    font-size: 12px;
    color: var(--success);
    margin-top: 4px;
    line-height: 1.5;
    min-height: 20px;
}

/* Inline form grup - yan yana öğeler için */
.form-inline-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.form-inline-group .form-group {
    flex: 1;
}

/* ========================================
   RESPONSIVE TAB SYSTEM
   ======================================== */

@media (max-width: 768px) {
    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        white-space: nowrap;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .agreement-stats {
        flex-direction: column;
        gap: 4px;
    }

    .modal-content {
        max-width: 100%;
        margin: 0;
    }

    .assortment-row .form-row {
        grid-template-columns: 1fr;
    }
}

/* Responsive stats adjustments */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-value {
        font-size: 24px;
    }
}

/* ========================================
   SIDEBAR USER PANEL
   ======================================== */

.sidebar-user {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f7cff 0%, #7c5cff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-settings-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, transform 0.3s;
}

    .sidebar-settings-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .sidebar-settings-btn.open {
        transform: rotate(60deg);
        color: #fff;
    }

.sidebar-settings-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 16px;
    right: 16px;
    background: #1e2a45;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

    .sidebar-settings-menu.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.settings-menu-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    padding: 10px 14px 4px;
}

.settings-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
}

    .settings-menu-item:hover {
        background: rgba(255, 255, 255, 0.07);
        color: #fff;
    }

    .settings-menu-item svg {
        flex-shrink: 0;
        opacity: 0.7;
    }

    .settings-menu-item:hover svg {
        opacity: 1;
    }

/* ========================================
   MANUFACTURER LIST WITH STOCK ACCORDION
   ======================================== */

.manufacturer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manufacturer-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

    .manufacturer-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

.manufacturer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    background: var(--white);
    transition: background 0.15s;
    gap: 16px;
}

    .manufacturer-row:hover {
        background: #f9fafb;
    }

.manufacturer-main {
    flex: 1;
    min-width: 0;
}

.manufacturer-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 4px;
}

.manufacturer-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.stock-summary {
    color: var(--primary-blue);
    font-weight: 500;
}

.manufacturer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.toggle-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: transform 0.2s ease;
    margin-left: 4px;
}

/* Stock panel */
.stock-panel {
    display: none;
    padding: 16px 18px;
    background: #f9fafb;
    border-top: 1px solid var(--border-color);
}

    .stock-panel.open {
        display: block;
    }

.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.stock-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
}

.stock-card--empty {
    opacity: 0.5;
}

.stock-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.stock-card-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.stock-card-unit {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
}

.stock-card-detail {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
}

.stock-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    padding: 16px 0;
}

/* Üretici alt menü (sidebar accordion) */
.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-group-header {
    display: flex;
    align-items: center;
}

.nav-group-main {
    flex: 1;
}

.nav-group-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .nav-group-toggle:hover {
        opacity: 1;
    }

    .nav-group-toggle.open svg {
        transform: rotate(180deg);
    }

.nav-submenu {
    display: none;
    flex-direction: column;
    margin-left: 32px;
    margin-top: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 8px;
}

    .nav-submenu.open {
        display: flex;
    }

.nav-subitem {
    padding: 6px 10px;
    font-size: 13px;
    color: inherit;
    text-decoration: none;
    border-radius: 4px;
    opacity: 0.85;
    transition: background 0.15s ease, opacity 0.15s ease;
}

    .nav-subitem:hover {
        background: rgba(255, 255, 255, 0.08);
        opacity: 1;
    }

/* Ortak Onay Modalı */
.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 68, 0.55);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

    .confirm-overlay.open {
        display: flex;
    }

.confirm-box {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: confirmPop 0.15s ease;
}

@keyframes confirmPop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-header {
    padding: 18px 22px 0 22px;
}

    .confirm-header h3 {
        margin: 0;
        font-size: 18px;
        color: var(--primary-dark);
    }

.confirm-body {
    padding: 14px 22px 20px 22px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 22px 20px 22px;
}



/* ========================================
   SLIDE-OVER PANEL (Ürün Ekle/Düzenle)
   ======================================== */

.slideover-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 68, 0.5);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .slideover-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.slideover-panel {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 480px;
    max-width: 100%;
    background: var(--white);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

    .slideover-panel.open {
        transform: translateX(0);
    }

.slideover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: var(--primary-dark);
    color: var(--white);
    flex-shrink: 0;
}

    .slideover-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        color: var(--primary-cream);
    }

.slideover-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

    .slideover-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.slideover-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.slideover-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

    .slideover-section:last-of-type {
        border-bottom: none;
    }

    .slideover-section h4 {
        font-size: 15px;
        font-weight: 600;
        color: var(--primary-dark);
        margin-bottom: 14px;
    }

.slideover-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Panel içi satır (beden/hammadde listesi) */
.line-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.line-row__label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 50px;
}

.line-row__value {
    flex: 1;
    color: var(--text-light);
    font-size: 14px;
}

.line-row__remove {
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
    border-radius: 6px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

    .line-row__remove:hover {
        background: var(--error);
        color: var(--white);
    }

/* Panel içi ekleme satırı (input grubu) */
.add-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

    .add-row .form-control,
    .add-row .form-select {
        flex: 1;
    }

    .add-row .btn {
        flex-shrink: 0;
    }

.empty-hint {
    color: var(--text-light);
    font-size: 13px;
    padding: 4px 0;
    margin: 0;
}

/* Ürün kartları grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

    .product-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.product-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    background: #f9fafb;
    gap: 8px;
}

.product-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 4px 0;
}

.product-card__body {
    padding: 16px 18px;
    flex: 1;
}

.product-card__stock-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.product-card__stock-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 14px;
}

    .product-card__stock-value small {
        font-size: 14px;
        font-weight: 400;
        color: var(--text-light);
    }

.product-card__section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 14px 0 8px 0;
}

.product-card__material {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

    .product-card__material:last-child {
        border-bottom: none;
    }

.product-card__material-name {
    flex: 1;
}

.product-card__material-qty {
    color: var(--text-light);
    font-size: 13px;
    white-space: nowrap;
}

/* form-select (eğer projede yoksa) */
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background: var(--white);
    outline: none;
    transition: all 0.3s ease;
}

    .form-select:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(75, 86, 148, 0.1);
    }

.size-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
}

    .size-table th {
        padding: 6px 8px;
        border-bottom: 2px solid var(--border-color);
        color: var(--text-dark);
        font-weight: 600;
    }

    .size-table td {
        padding: 6px 8px;
        border-bottom: 1px solid var(--border-color);
    }

@media (max-width: 767px) {
    .slideover-panel {
        width: 100%;
    }
}

/* ───── ÖZET SEKMESİ: Kart & Çek görselleri ───── */
.summary-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

    .summary-slider::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

.slide-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-height: 160px;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Kart görseli — koyu */
.card-visual {
    background: #1f2937;
    color: #f9fafb;
}

/* Çek görseli — açık, çerçeveli, üst şerit */
.check-visual {
    background: #fff;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

    .check-visual::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: rgba(100,116,139,.25);
    }

/* Kaydırma noktaları */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(0,0,0,.2);
    cursor: pointer;
    transition: all .2s;
}

    .slider-dot.active {
        width: 18px;
        background: rgba(0,0,0,.55);
    }
/* Slider okları */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.slider-arrow {
    border: none;
    background: rgba(0,0,0,.06);
    color: var(--color-text-secondary, #475569);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    transition: background .2s;
    flex: 0 0 auto;
}

    .slider-arrow:hover {
        background: rgba(0,0,0,.14);
    }

    .slider-arrow:disabled {
        opacity: .3;
        cursor: default;
    }

.slider-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ───── Ürün/Üretim slide-over panelini genişlet ───── */
.slideover-panel {
    width: 700px;
}

@media (max-width: 680px) {
    .slideover-panel {
        width: 100%;
    }
}

/* ========================================
   TEMPDATA NOTIFICATIONS (Toast / Alert Bar)
   ======================================== */

.notification-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border-left: 4px solid transparent;
    animation: notifySlideDown 0.3s ease;
}

@keyframes notifySlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-bar .notification-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.notification-bar .notification-text {
    flex: 1;
}

.notification-bar .notification-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
    font-size: 18px;
}

    .notification-bar .notification-close:hover {
        opacity: 1;
    }

/* Hata - kırmızı */
.notification-error {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: var(--error);
}

    .notification-error .notification-close {
        color: #991b1b;
    }

/* Başarı - yeşil */
.notification-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: var(--success);
}

    .notification-success .notification-close {
        color: #065f46;
    }

/* Uyarı - sarı/turuncu */
.notification-warning {
    background: #fef3c7;
    color: #92400e;
    border-left-color: var(--warning);
}

    .notification-warning .notification-close {
        color: #92400e;
    }

/* Bilgi - primary blue */
.notification-info {
    background: rgba(75, 86, 148, 0.1);
    color: var(--primary-dark);
    border-left-color: var(--primary-blue);
}

    .notification-info .notification-close {
        color: var(--primary-dark);
    }

/* Otomatik kapanma animasyonu (isteğe bağlı) */
.notification-bar.auto-dismiss {
    animation: notifySlideDown 0.3s ease, notifyFadeOut 0.4s ease 4.6s forwards;
}

@keyframes notifyFadeOut {
    to {
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
    }
}

/* ========================================
   TOAST NOTIFICATIONS (JSON Response)
   ======================================== */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border-left: 4px solid transparent;
    min-width: 280px;
    max-width: 380px;
    pointer-events: all;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    animation: toastSlideIn 0.3s ease;
}

    .toast.hiding {
        animation: toastSlideOut 0.3s ease forwards;
    }

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.toast-text {
    flex: 1;
}

.toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    opacity: 0.6;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

    .toast-close:hover {
        opacity: 1;
    }

.toast-error {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: var(--error);
}

.toast-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: var(--success);
}

.toast-warning {
    background: #fef3c7;
    color: #92400e;
    border-left-color: var(--warning);
}

.toast-info {
    background: rgba(75, 86, 148, 0.1);
    color: var(--primary-dark);
    border-left-color: var(--primary-blue);
}

.toast-error .toast-close {
    color: #991b1b;
}

.toast-success .toast-close {
    color: #065f46;
}

.toast-warning .toast-close {
    color: #92400e;
}

.toast-info .toast-close {
    color: var(--primary-dark);
}