:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --sidebar-w: 240px;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.hidden { display: none !important; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    font-size: 14px;
}

/* SIDEBAR */
#sidebar {
    width: var(--sidebar-w);
    background: #1e293b;
    color: #cbd5e1;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.logo i { font-size: 22px; }
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 18px;
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    transition: background-color .15s;
}

.logo:hover {
    background: rgba(255,255,255,.05);
}

#sidebar ul {
    list-style: none;
    padding: 10px 0;
    flex: 1;
}

#sidebar ul li a i { width: 16px; text-align: center; font-size: 14px; }
#sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: #94a3b8;
    text-decoration: none;
    transition: all .15s;
    border-radius: 0;
}

#sidebar ul li a:hover {
    background: rgba(255,255,255,.06);
    color: #f1f5f9;
}

#sidebar ul li a.active {
    background: rgba(59,130,246,.2);
    color: #60a5fa;
    border-right: 3px solid var(--primary);
}

/* MAIN CONTENT */
#content {
    margin-left: var(--sidebar-w);
    padding: 28px 32px;
    flex: 1;
    min-width: 0;
}

.page.hidden { display: none !important; }

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

.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

/* CARDS */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.mt-20 { margin-top: 20px; }

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.stat-icon i { font-size: 18px; }
.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-icon.red { background: var(--danger-light); color: var(--danger); }

.stat-number { font-size: 26px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* BADGE */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: var(--danger);
    color: white;
}

.badge:empty { display: none; }

/* ALERTS */
.alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 4px solid;
}

.alert-item .alert-info { display: flex; flex-direction: column; gap: 2px; }
.alert-item .alert-name { font-weight: 600; }
.alert-item .alert-sub { font-size: 12px; color: var(--text-muted); }
.alert-item .alert-qty { font-weight: 700; font-size: 15px; }

.alert-warning { background: var(--warning-light); border-color: var(--warning); }
.alert-critical { background: var(--danger-light); border-color: var(--danger); }

/* TABLES */
.table-wrapper { overflow-x: auto; }

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

th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-muted);
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }
tr.row-warning td { background: #fffbeb; }
tr.row-critical td { background: #fef2f2; }
tr.row-negative td { background: #fee; border-left: 3px solid #dc2626; }

/* BUTTONS */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: filter .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger:hover { filter: brightness(0.95); }

.btn-icon {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: var(--text);
}

.btn-icon.btn-danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.btn-icon.btn-blue { color: var(--primary); }
.btn-icon.btn-green { color: var(--success); }
.btn-icon.btn-orange { color: var(--warning); }
.btn-icon.btn-red { color: var(--danger); }
.btn-icon.btn-gray { color: var(--text-muted); }
.btn-icon.btn-purple { color: #7c3aed; }
.btn-icon.btn-blue:hover { background: var(--primary-light); }
.btn-icon.btn-green:hover { background: var(--success-light); }
.btn-icon.btn-orange:hover { background: var(--warning-light); }
.btn-icon.btn-red:hover { background: var(--danger-light); }
.btn-icon.btn-gray:hover { background: #f1f5f9; color: var(--text); }
.btn-icon.btn-purple:hover { background: #ede9fe; }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s;
}

.btn-secondary:hover { background: #f1f5f9; }

.btn-sm {
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 12px;
    background: white;
    transition: all .15s;
    white-space: nowrap;
}

.btn-sm:hover { background: #f1f5f9; }
.btn-sm.btn-green { color: var(--success); border-color: #a7f3d0; }
.btn-sm.btn-green:hover { background: var(--success-light); }
.btn-sm.btn-orange { color: #d97706; border-color: #fde68a; }
.btn-sm.btn-orange:hover { background: var(--warning-light); }
.btn-sm.btn-blue { color: var(--primary); border-color: #bfdbfe; }
.btn-sm.btn-blue:hover { background: var(--primary-light); }
.btn-sm.btn-red { color: var(--danger); border-color: #fecaca; }
.btn-sm.btn-red:hover { background: var(--danger-light); }
.btn-sm.btn-purple { color: #7c3aed; border-color: #ddd6fe; }
.btn-sm.btn-purple:hover { background: #f5f3ff; }
.btn-sm.btn-gray { color: #475569; border-color: #cbd5e1; }
.btn-sm.btn-gray:hover { background: #f1f5f9; }

.btn-actions { display: flex; gap: 4px; flex-wrap: wrap; }

/* INPUTS */
.search-input, .select-input, .date-input, .form-control {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: var(--text);
    transition: border-color .15s;
}

.search-input:focus, .select-input:focus, .date-input:focus, .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}

.search-input { width: 280px; }
.select-input { min-width: 160px; }

/* TABLE TOOLBAR */
.table-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.export-dropdown {
    position: relative;
    display: inline-flex;
}

.export-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 6px;
    display: none;
    z-index: 40;
}

.export-menu .btn-secondary {
    width: 100%;
    justify-content: flex-start;
    border: none;
    background: transparent;
    padding: 8px 10px;
}

.export-menu .btn-secondary:hover {
    background: #f1f5f9;
}

.export-dropdown:hover .export-menu {
    display: block;
}

.export-dropdown.open .export-menu {
    display: block;
}

/* TAB BAR */
.tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.recete-panel.hidden { display: none !important; }

/* RECETE SELECTOR */
.recete-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.recete-selector label { font-weight: 600; }

/* FILTERS */
.filtreler {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* MODAL */
#modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

#modal-overlay.hidden { display: none !important; }

#modal-content {
    background: white;
    border-radius: 12px;
    padding: 28px;
    width: 100%;
    max-width: 520px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

#modal-content.modal-wide {
    max-width: 900px;
}

#modal-content.modal-wide #modal-body {
    overflow-x: hidden;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover { background: var(--border); color: var(--text); }

#modal-body h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

/* FORMS */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 5px; font-size: 13px; }
.form-group .form-control { width: 100%; }
.form-group select.form-control { width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }
.form-actions .btn-primary { min-width: 100px; justify-content: center; }

/* FEEDBACK */
.feedback-form-card { margin-bottom: 24px; }
.feedback-list-card { margin-top: 8px; }

.feedback-form {
    max-width: 760px;
}

.feedback-form-header {
    margin-bottom: 14px;
}

.feedback-form-header h2 {
    margin-bottom: 6px;
}

.feedback-form-subtitle {
    color: var(--text-muted);
    font-size: 13px;
}

.feedback-form-fields {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feedback-select {
    width: 100%;
    max-width: 320px;
}

.feedback-textarea {
    width: 100%;
    min-height: 170px;
    resize: vertical;
    line-height: 1.5;
}

.feedback-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

/* KONTROL TABLOSU (üretim önizleme) */
.kontrol-tablo { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.kontrol-tablo th, .kontrol-tablo td { padding: 7px 10px; border: 1px solid var(--border); }
.kontrol-tablo tr:last-child td { border-bottom: 1px solid var(--border); }
.kontrol-tablo th { background: #f8fafc; font-weight: 600; }
.kontrol-tablo .ok { color: var(--success); font-weight: 600; }
.kontrol-tablo .fail { color: var(--danger); font-weight: 600; }
.kontrol-warning { padding: 10px 14px; background: var(--danger-light); border-radius: 6px; color: var(--danger); margin-bottom: 10px; font-weight: 500; }
.kontrol-success { padding: 10px 14px; background: var(--success-light); border-radius: 6px; color: var(--success); margin-bottom: 10px; font-weight: 500; }

/* STATUS BADGES */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.status-tamamlandi { background: var(--success-light); color: var(--success); }
.status-iptal { background: #f1f5f9; color: var(--text-muted); }
.status-uretiliyor { background: #fef3c7; color: #d97706; }
.status-yari-mamul { background: #ede9fe; color: #7c3aed; }
.status-mamul { background: var(--primary-light); color: var(--primary); }

/* CATEGORY GROUPING */
.category-header td {
    background: #eef2ff !important;
    padding: 10px 14px;
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
}

.category-header:hover td { background: #eef2ff !important; }

.category-name {
    font-size: 14px;
    color: var(--primary-dark);
    font-weight: 700;
}

.category-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 8px;
}

.satis-kalem-table-wrap {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
    overflow-x: hidden;
}

.satis-kalem-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.satis-kalem-table th,
.satis-kalem-table td {
    padding: 8px 10px;
}

.satis-kalem-table {
    width: 100%;
    table-layout: fixed;
}

.satis-kalem-table td .form-control {
    min-width: 0;
    width: 100%;
}

.satis-kalem-table th:nth-child(1),
.satis-kalem-table td:nth-child(1) { width: 42px; }
.satis-kalem-table th:nth-child(2),
.satis-kalem-table td:nth-child(2) { width: 40%; }
.satis-kalem-table th:nth-child(3),
.satis-kalem-table td:nth-child(3) { width: 18%; }
.satis-kalem-table th:nth-child(4),
.satis-kalem-table td:nth-child(4) { width: 20%; }
.satis-kalem-table th:nth-child(5),
.satis-kalem-table td:nth-child(5) { width: 16%; }
.satis-kalem-table th:nth-child(6),
.satis-kalem-table td:nth-child(6) { width: 40px; text-align: center; }

.satis-toplam-row {
    text-align: right;
    margin-top: 10px;
    font-size: 14px;
}

.satis-modal-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.satis-richtext-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.satis-richtext-grid .form-group {
    margin-bottom: 10px;
}

.file-upload-area {
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
}

.file-upload-area > label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.file-upload-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 8px;
}

.file-upload-row > span {
    font-size: 13px;
    font-weight: 500;
    line-height: 34px;
}

.file-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
}

.file-picker input[type="file"] {
    display: none;
}

.file-picker-text {
    color: var(--text-muted);
    font-size: 13px;
}

.file-upload-row input[type="file"].form-control {
    padding: 6px 8px;
    cursor: pointer;
}

.file-upload-row input[type="file"]::file-selector-button {
    border: 1px solid var(--border);
    background: #f8fafc;
    color: var(--text);
    border-radius: 6px;
    padding: 6px 10px;
    margin-right: 10px;
    cursor: pointer;
    transition: all .15s;
}

.file-upload-row input[type="file"]::file-selector-button:hover {
    background: var(--primary-light);
    border-color: #93c5fd;
    color: var(--primary-dark);
}

.file-list {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.file-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 8px;
    background: #f8fafc;
}

@media (max-width: 1100px) {
    .satis-richtext-grid {
        grid-template-columns: 1fr;
    }
}

.category-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-muted);
    white-space: nowrap;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #1e293b;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    transition: opacity .3s, transform .3s;
}

.toast.hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    #sidebar { width: 60px; }
    #sidebar .logo span,
    #sidebar ul li a span { display: none; }
    #content { margin-left: 60px; padding: 16px; }
    .form-row { grid-template-columns: 1fr; }
}

/* BULK ACTIONS */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.bulk-actions.hidden {
    display: none;
}

.bulk-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-right: 8px;
}

.bulk-count span {
    font-size: 16px;
}

/* Checkbox in table header */
th input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

td input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

tr.selected {
    background-color: #eff6ff !important;
}

/* SETTINGS TABS */
.settings-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.settings-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
}

.settings-tab:hover { color: var(--text); }
.settings-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.settings-tab-content.hidden { display: none !important; }

/* DATABASE SETTINGS */
.db-settings-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.db-card {
    padding: 22px;
}

.db-card-header {
    margin-bottom: 6px;
}

.db-card-header h2 {
    margin: 0;
}

.db-card-hint {
    margin-bottom: 14px;
}

.db-card-actions {
    display: flex;
    gap: 8px;
}

.db-settings-form {
    max-width: 760px;
}

.db-file-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px dashed var(--border);
    border-radius: 6px;
    background: #f8fafc;
}

.db-file-name {
    color: var(--text-muted);
    font-size: 13px;
    word-break: break-all;
}

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

.db-table-header-actions {
    display: flex;
    gap: 8px;
}

.db-table-header-actions .btn-secondary {
    padding: 6px 10px;
    font-size: 12px;
}

.db-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
}

.db-table-item {
    margin: 0;
}

.db-table-item input:disabled {
    opacity: 0.5;
}

.db-submit-row {
    margin-top: 20px;
    display: flex;
    gap: 8px;
}

/* SETTINGS FORM */
.settings-form { max-width: 500px; }
.settings-form .form-group { margin-bottom: 20px; }
.settings-form .form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* BIRIM LIST */
.birimler-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.birim-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.birim-item .birim-value {
    font-weight: 600;
    font-size: 13px;
    min-width: 60px;
    color: var(--primary);
}

.birim-item .birim-label {
    flex: 1;
    font-size: 13px;
    color: var(--text);
}

.birim-item .btn-icon {
    padding: 2px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.birim-item .btn-icon:hover {
    color: var(--danger);
    background: var(--danger-light);
}

.birim-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.birim-add-row .form-control {
    flex: 1;
    min-width: 0;
}

/* HAKKINDA PAGE */
.hakkinda-page { max-width: 700px; }

.hakkinda-header {
    text-align: center;
    padding: 40px 20px 30px;
}

.hakkinda-logo {
    margin-bottom: 16px;
}

.hakkinda-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.hakkinda-versiyon {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.hakkinda-gelistirici {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.hakkinda-aciklama {
    color: var(--text);
    line-height: 1.7;
    font-size: 14px;
}

/* Üretim Akış Şeması */
.uretim-akis {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.akis-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.akis-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.akis-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.akis-ok {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Özellik Grid */
.ozellik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.ozellik-item {
    padding: 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.ozellik-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.ozellik-item span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Teknik Bilgiler */
.teknik-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.teknik-grid > div {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 13px;
}

.teknik-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 110px;
}

/* HIZLI DÜZENLEME (INLINE EDIT) */
.btn-quick-edit.active {
    background: var(--primary, #3b82f6) !important;
    color: #fff !important;
    border-color: var(--primary, #3b82f6) !important;
}
.inline-edit-active .ie-cell {
    cursor: pointer;
    position: relative;
    transition: background 0.15s, outline 0.15s;
}
.inline-edit-active .ie-cell:hover {
    background: rgba(59, 130, 246, 0.08);
    outline: 1px dashed #3b82f6;
    outline-offset: -1px;
}
.ie-cell.ie-editing {
    padding: 2px 4px !important;
    background: #fff;
}
.ie-cell .ie-input {
    width: 100%;
    padding: 4px 6px;
    border: 2px solid #3b82f6;
    border-radius: 4px;
    font-size: inherit;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
}
.ie-cell .ie-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.ie-cell.ie-saving {
    opacity: 0.5;
    pointer-events: none;
}

/* PRINT */
@media print {
    #sidebar, .page-header button, .btn-actions, .recete-selector,
    .table-toolbar, .filtreler, #modal-overlay, #toast, .bulk-actions { display: none !important; }
    #content { margin-left: 0; padding: 10px; }
    .card { box-shadow: none; border: 1px solid #e2e8f0; }
    th input[type="checkbox"], td input[type="checkbox"] { display: none; }
}
