@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-success: #10b981;
    --color-danger: #f43f5e;
    --color-warning: #f59e0b;
    --color-info: #06b6d4;
    --color-sidebar: #0f172a;
    --color-bg: #f8fafc;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f8fafc;
    --bg-main: #f8fafc;
    --bg-element: #f1f5f9;
    --surface-alt: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.06);
    --brand-gradient: #4f46e5;
    --status-ready: #059669;
    --status-ready-bg: #ecfdf5;
    --status-danger: #e11d48;
    --status-danger-bg: #fff1f2;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: #1e293b;
}

body.menu-open #mobileSidebar {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
}

html[data-theme='dark'] body {
    background-color: #0f172a;
    color: #e2e8f0;
}

html[data-theme='dark'] .bg-white {
    background-color: #1e293b;
}

html[data-theme='dark'] .bg-slate-50,
html[data-theme='dark'] .bg-slate-100 {
    background-color: #273449;
}

html[data-theme='dark'] .bg-slate-200 {
    background-color: #334155;
}

html[data-theme='dark'] .text-slate-900,
html[data-theme='dark'] .text-slate-800 {
    color: #f1f5f9;
}

html[data-theme='dark'] .text-slate-700,
html[data-theme='dark'] .text-slate-600 {
    color: #cbd5e1;
}

html[data-theme='dark'] .text-slate-500,
html[data-theme='dark'] .text-slate-400 {
    color: #94a3b8;
}

html[data-theme='dark'] .border-slate-100,
html[data-theme='dark'] .border-slate-200,
html[data-theme='dark'] .border-slate-300 {
    border-color: #334155;
}

html[data-theme='dark'] input,
html[data-theme='dark'] select {
    background-color: #273449;
    border-color: #475569;
    color: #f1f5f9;
}

html[data-theme='dark'] table thead tr,
html[data-theme='dark'] table tbody tr:hover {
    background-color: #273449;
}

html[data-theme='dark'] table tbody tr {
    border-color: #334155;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card-hover {
    transition: all 0.2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.dashboard-quick-access { display: flex; align-items: center; gap: 0.6rem; overflow-x: auto; padding: 0.15rem 0 0.35rem; scrollbar-width: thin; }
.dashboard-quick-link { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; flex: 0 0 auto; min-height: 2.45rem; padding: 0.6rem 0.85rem; border: 1px solid #e2e8f0; border-radius: 0.6rem; background: #ffffff; color: #475569; font-size: 0.72rem; font-weight: 800; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.dashboard-quick-link:hover { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
.dashboard-quick-link i { color: #4f46e5; }
.dashboard-quick-primary { border-color: #4f46e5; background: #4f46e5; color: #ffffff; }
.dashboard-quick-primary i { color: #ffffff; }
.dashboard-quick-primary:hover { background: #4338ca; color: #ffffff; }
.dashboard-service-list { display: grid; }
.dashboard-service-row { display: grid; grid-template-columns: minmax(220px, 1.35fr) minmax(150px, 1fr) minmax(150px, 0.95fr) 145px 100px; min-height: 76px; align-items: center; gap: 1rem; padding: 0.85rem 1rem; border-bottom: 1px solid #e2e8f0; color: #1e293b; text-decoration: none; transition: background 0.15s ease; }
.dashboard-service-row:last-child { border-bottom: 0; }
.dashboard-service-row:hover { background: #f8fafc; }
.dashboard-service-vehicle { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 0.55rem; align-items: center; min-width: 0; }
.dashboard-service-vehicle strong { overflow: hidden; color: #0f172a; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-service-vehicle > small { grid-column: 2; color: #94a3b8; font-size: 0.65rem; }
.dashboard-service-plate { display: inline-flex; align-items: center; gap: 0.25rem; grid-row: 1 / span 2; padding: 0.35rem 0.45rem; border: 1px solid #cbd5e1; border-radius: 0.35rem; background: #f8fafc; color: #0f172a; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.04em; }
.dashboard-service-plate small { color: #4f46e5; font-size: 0.5rem; }
.dashboard-service-customer { overflow: hidden; color: #334155; font-size: 0.75rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-service-technician { display: inline-flex; align-items: center; gap: 0.4rem; overflow: hidden; color: #475569; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-service-technician i { width: 1.55rem; height: 1.55rem; display: grid; place-items: center; flex: none; border-radius: 50%; background: #f1f5f9; color: #64748b; font-size: 0.62rem; font-style: normal; font-weight: 900; }
.dashboard-service-status { display: inline-flex; align-items: center; justify-self: start; gap: 0.3rem; width: max-content; max-width: 145px; padding: 0.35rem 0.55rem; border-radius: 999px; font-size: 0.65rem; font-weight: 800; white-space: nowrap; }
.dashboard-service-total { color: #0f172a; font-size: 0.8rem; text-align: right; white-space: nowrap; }
html[data-theme='dark'] .dashboard-service-row { border-color: #334155; color: #e2e8f0; }
html[data-theme='dark'] .dashboard-service-row:hover { background: #273449; }
html[data-theme='dark'] .dashboard-service-vehicle strong,
html[data-theme='dark'] .dashboard-service-total { color: #f1f5f9; }
html[data-theme='dark'] .dashboard-service-customer,
html[data-theme='dark'] .dashboard-service-technician { color: #cbd5e1; }
html[data-theme='dark'] .dashboard-service-plate,
html[data-theme='dark'] .dashboard-service-technician i { border-color: #475569; background: #273449; color: #e2e8f0; }

@media (max-width: 1000px) {
    .dashboard-service-row { grid-template-columns: minmax(210px, 1.4fr) minmax(140px, 1fr) 140px 95px; }
    .dashboard-service-technician { display: none; }
}

@media (max-width: 640px) {
    .dashboard-service-row { grid-template-columns: 1fr auto; gap: 0.45rem; }
    .dashboard-service-customer { grid-column: 1; }
    .dashboard-service-status { grid-column: 2; grid-row: 1; }
    .dashboard-service-total { grid-column: 2; grid-row: 2; }
}
html[data-theme='dark'] .dashboard-quick-link { border-color: #334155; background: #1e293b; color: #cbd5e1; }
html[data-theme='dark'] .dashboard-quick-link:hover { border-color: #6366f1; background: #312e81; color: #e0e7ff; }
html[data-theme='dark'] .dashboard-quick-link i { color: #a5b4fc; }
html[data-theme='dark'] .dashboard-quick-primary { border-color: #6366f1; background: #4f46e5; color: #ffffff; }

.tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

tbody tr {
    transition: background-color 0.15s ease;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-danger {
    background-color: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.badge-warning {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-indigo {
    background-color: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.badge-slate {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.dropzone {
    border: 2px dashed #cbd5e1;
    transition: all 0.2s;
}

.dropzone:hover {
    border-color: #6366f1;
    background-color: #f5f3ff;
}

.surface-card,
.intake-card,
.service-detail-block,
.service-detail-summary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.auth-form,
.intake-card,
.service-detail-block,
.service-detail-summary {
    padding: 1.25rem;
}

.intake-layout,
.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
    gap: 1.25rem;
    align-items: start;
}

.intake-left-col,
.intake-right-col,
.service-detail-main,
.service-detail-side {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.field-grid-2,
.field-grid-3 {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.field-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.form-group { min-width: 0; margin-bottom: 1rem; }

.form-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #f8fafc;
    color: #1e293b;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-textarea { min-height: 7rem; resize: vertical; }

.intake-card-head,
.service-detail-block-head,
.service-detail-topbar,
.page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.intake-card-head,
.service-detail-block-head { margin-bottom: 1rem; }
.intake-card-head h3,
.service-detail-block-head h3 { margin: 0; color: #0f172a; font-size: 1rem; font-weight: 800; }
.inline-link { color: #4f46e5; font-size: 0.75rem; font-weight: 700; text-decoration: none; }
.inline-link:hover { color: #3730a3; }

.intake-selected-box,
.intake-total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    margin-top: 0.75rem;
    border: 1px solid #c7d2fe;
    border-radius: 0.75rem;
    background: #eef2ff;
}

.servis-combobox { position: relative; width: 100%; }
.servis-combobox-icon { position: absolute; z-index: 1; left: 0.8rem; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.servis-combobox-input { padding-left: 2.25rem; }
.servis-combobox-results { display: none; position: absolute; z-index: 30; top: calc(100% + 0.35rem); left: 0; right: 0; overflow: hidden; max-height: 280px; border: 1px solid #c7d2fe; border-radius: 0.65rem; background: #ffffff; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16); }
.servis-combobox-results.is-open { display: block; }
.servis-combobox-result { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.8rem; border-bottom: 1px solid #f1f5f9; color: #1e293b; cursor: pointer; }
.servis-combobox-result:last-child { border-bottom: 0; }
.servis-combobox-result:hover { background: #eef2ff; }
.servis-combobox-result-icon { width: 2rem; height: 2rem; display: grid; place-items: center; flex: none; border-radius: 0.5rem; background: #eef2ff; color: #4f46e5; font-size: 0.75rem; }
.servis-combobox-result strong { display: block; font-size: 0.78rem; }
.servis-combobox-result span { display: block; margin-top: 0.15rem; color: #64748b; font-size: 0.68rem; }
.servis-combobox-empty { padding: 0.8rem; color: #64748b; font-size: 0.75rem; text-align: center; }
.selection-fallback-fields { display: grid; }
.customer-selection-field { display: none; }
.vehicle-selection-field { grid-column: 1 / -1; }
.vehicle-select-row { display: flex; align-items: stretch; gap: 0.5rem; }
.vehicle-select-row .form-select { flex: 1; min-width: 0; }
.vehicle-add-button { flex: none; white-space: nowrap; }
.vehicle-add-button.is-disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; }
.servis-combobox-new-vehicle { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.35rem; padding: 0.45rem 0.65rem; border: 0; border-radius: 0.45rem; background: #eef2ff; color: #4338ca; font-size: 0.72rem; font-weight: 800; cursor: pointer; }
.servis-combobox-new-vehicle:hover { background: #e0e7ff; }
html[data-theme='dark'] .servis-combobox-results { border-color: #475569; background: #1e293b; }
html[data-theme='dark'] .servis-combobox-result { border-color: #334155; color: #f1f5f9; }
html[data-theme='dark'] .servis-combobox-result:hover { background: #312e81; }
html[data-theme='dark'] .servis-combobox-result-icon { background: #312e81; color: #c7d2fe; }
html[data-theme='dark'] .servis-combobox-result span,
html[data-theme='dark'] .servis-combobox-empty { color: #94a3b8; }
html[data-theme='dark'] .servis-combobox-new-vehicle { background: #312e81; color: #c7d2fe; }

.license-plate {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid #94a3b8;
    border-radius: 0.35rem;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.tr-code { color: #4f46e5; font-size: 0.6rem; }
.service-strong { color: #1e293b; font-size: 0.8rem; font-weight: 700; }
.service-muted { color: #64748b; font-size: 0.75rem; }
.intake-fuel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.option-card-label { padding: 0.65rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; color: #475569; font-size: 0.75rem; font-weight: 600; }
.intake-upload-box { display: grid; justify-items: center; gap: 0.4rem; padding: 2rem 1rem; border: 2px dashed #cbd5e1; border-radius: 0.75rem; color: #64748b; text-align: center; cursor: pointer; }
.intake-upload-box > i { color: #4f46e5; font-size: 1.5rem; }
.intake-upload-box strong { color: #1e293b; font-size: 0.9rem; }
.intake-upload-box span { font-size: 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.35rem; padding: 0.55rem 0.8rem; border: 1px solid transparent; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary { background: #4f46e5; color: #ffffff; }
.btn-primary:hover { background: #4338ca; }
.btn-secondary { background: #f1f5f9; border-color: #e2e8f0; color: #475569; }
.btn-secondary:hover { background: #e2e8f0; }
.action-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.35rem; padding: 0.55rem 0.8rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #f8fafc; color: #475569; font-size: 0.75rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.action-btn:hover { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
.action-btn-primary { border-color: #4f46e5; background: #4f46e5; color: #ffffff; }
.action-btn-primary:hover { border-color: #4338ca; background: #4338ca; color: #ffffff; }
.action-btn-secondary { background: #f1f5f9; color: #475569; }
.service-create-btn { min-height: 2.35rem; }
.intake-total-box ~ .btn { margin-top: 0.75rem; }
.intake-total-box ~ .btn + .btn { margin-left: 0.35rem; }
.intake-total-box strong { color: #0f172a; font-size: 1rem; font-weight: 900; white-space: nowrap; }
.page-actions { justify-content: flex-end; margin-top: 1.25rem; }

.service-detail-shell { display: grid; gap: 1.25rem; }
.service-detail-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 1.25rem; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 0.75rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.service-detail-topbar-main { display: flex; align-items: flex-start; gap: 1rem; min-width: 0; }
.service-detail-topbar-main h2 { margin: 0; color: #0f172a; font-size: 1.1rem; font-weight: 800; }
.service-detail-topbar-main p { margin: 0.35rem 0 0; color: #64748b; font-size: 0.75rem; }
.service-detail-topbar-main p span { margin-left: 0.35rem; }
.service-topbar-link { color: #4f46e5; font-weight: 700; text-decoration: none; }
.service-detail-topbar-side { display: flex; gap: 1.25rem; text-align: right; }
.service-complaint-warning { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.75rem; margin-top: 0.2rem; padding: 0.7rem 0.85rem; border: 1px solid #fecaca; border-radius: 0.6rem; background: #fff1f2; color: #b91c1c; }
.service-complaint-warning > i { flex: none; font-size: 1rem; }
.service-complaint-warning strong { display: block; font-size: 0.76rem; font-weight: 800; }
.service-complaint-warning span { display: block; margin-top: 0.15rem; color: #be4b4b; font-size: 0.7rem; }
.service-complaint-note { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 0.2rem; padding: 0.7rem 0.85rem; border: 1px solid #c7d2fe; border-radius: 0.6rem; background: #eef2ff; color: #4338ca; }
.service-complaint-note > i { flex: none; margin-top: 0.1rem; font-size: 1rem; }
.service-complaint-note strong { display: block; font-size: 0.76rem; font-weight: 800; }
.service-complaint-note span { display: block; margin-top: 0.15rem; color: #3730a3; font-size: 0.72rem; white-space: pre-wrap; }
.service-detail-topbar-side span { display: block; color: #64748b; font-size: 0.68rem; }
.service-detail-topbar-side strong { display: block; margin-top: 0.25rem; color: #0f172a; font-size: 0.82rem; }
.service-detail-assign-form { margin-top: 0.25rem; }
.service-detail-assign-select { border: 1px solid #cbd5e1; border-radius: 0.5rem; padding: 0.45rem; background: #f8fafc; color: #1e293b; font-size: 0.75rem; }
.service-detail-inline-form { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(110px, 0.7fr)) auto; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.service-detail-inline-form-iscilik { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(130px, 0.8fr)) auto; }
.service-detail-discount-form { grid-template-columns: minmax(0, 1fr) auto; margin-top: 1rem; }
.service-detail-not-form { display: grid; gap: 0.65rem; margin-bottom: 1rem; }
.service-input-wide { min-width: 0; }
.service-board-scroll { overflow-x: auto; }
.service-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.service-table th { padding: 0.75rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0; color: #64748b; font-size: 0.68rem; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: 0.04em; }
.service-table td { padding: 0.75rem; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 0.78rem; vertical-align: middle; }
.service-code { color: #4f46e5; font-size: 0.75rem; font-weight: 800; }
.service-part-row-actions { display: flex; align-items: center; gap: 0.4rem; }
.service-part-row-input,
.service-labor-row-input { min-width: 90px; padding: 0.45rem 0.55rem; font-size: 0.75rem; }
.btn-sm { min-height: 2rem; padding: 0.4rem 0.55rem; font-size: 0.68rem; }
.service-notes-list { display: grid; gap: 0.65rem; }
.service-note-item { padding: 0.8rem; border: 1px solid #e2e8f0; border-radius: 0.65rem; background: #f8fafc; }
.service-note-meta { display: flex; justify-content: space-between; gap: 0.5rem; color: #64748b; font-size: 0.7rem; }
.service-note-meta strong { color: #334155; }
.service-note-item p { margin: 0.45rem 0 0; color: #475569; font-size: 0.78rem; white-space: pre-wrap; }
.service-detail-summary h3 { margin: 0 0 1rem; color: #0f172a; font-size: 1rem; font-weight: 800; }
.service-detail-summary-rows { display: grid; gap: 0.65rem; }
.service-detail-summary-rows > div { display: flex; justify-content: space-between; gap: 0.75rem; color: #64748b; font-size: 0.75rem; }
.service-detail-summary-rows strong { color: #1e293b; white-space: nowrap; }
.service-detail-grand-total { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid #e2e8f0; color: #475569; font-weight: 700; }
.service-detail-grand-total strong { color: #4f46e5; font-size: 1.35rem; }
.service-detail-actions { display: grid; gap: 0.6rem; margin-top: 1rem; }
.service-detail-actions .btn { width: 100%; }
.servis-emri-gorsel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.servis-emri-gorsel-karti { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 0.65rem; background: #f8fafc; }
.servis-emri-gorsel-link { display: block; aspect-ratio: 4 / 3; }
.servis-emri-gorsel-link img { width: 100%; height: 100%; object-fit: cover; }
.servis-emri-gorsel-alt { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0.55rem; color: #64748b; font-size: 0.68rem; }
.service-icon-btn { width: 2rem; height: 2rem; display: inline-grid; place-items: center; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #ffffff; color: #64748b; }
.service-icon-btn:hover { background: #eef2ff; color: #4f46e5; }

.service-page-head { margin-bottom: 1rem; }
.service-title { margin: 0; color: #0f172a; font-size: 1.25rem; font-weight: 800; }
.service-subtitle { margin: 0.35rem 0 0; color: #64748b; font-size: 0.8rem; }
.service-create-action-row { display: flex; justify-content: flex-end; gap: 0.6rem; margin-bottom: 1rem; }
.service-filter-form-wrap { margin-bottom: 1rem; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.service-filter-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; align-items: end; }
.service-filter-actions { display: flex; align-items: flex-end; gap: 0.5rem; }
.service-filter-note { margin-top: 0.8rem; color: #64748b; font-size: 0.75rem; }
.service-mobile-hint { display: none; margin-top: 0.5rem; color: #94a3b8; font-size: 0.7rem; }
.service-board { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.service-board-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 1rem; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.service-pagination { display: flex; align-items: center; gap: 0.25rem; }
.service-page-btn { padding: 0.4rem 0.65rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #ffffff; color: #475569; font-size: 0.72rem; text-decoration: none; }
.service-page-btn.active { border-color: #4f46e5; background: #4f46e5; color: #ffffff; }
.service-page-btn.muted { background: #e2e8f0; color: #94a3b8; }
.service-actions { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.service-pill-btn { padding: 0.4rem 0.55rem; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 0.68rem; font-weight: 700; text-decoration: none; }
.service-pill-btn.ready { background: #d1fae5; color: #047857; }
.customer-plate-list { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.customer-type-badge,
.customer-balance-badge,
.followup-type-pill { display: inline-flex; align-items: center; padding: 0.35rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 800; }
.customer-type-badge.kurumsal { border: 1px solid #c7d2fe; background: #eef2ff; color: #4338ca; }
.customer-type-badge.bireysel { border: 1px solid #e2e8f0; background: #f1f5f9; color: #475569; }
.customer-balance-badge.borc { border: 1px solid #fecdd3; background: #fff1f2; color: #be123c; }
.customer-balance-badge.alacak { border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; }
.customer-balance-badge.kapali { border: 1px solid #e2e8f0; background: #f1f5f9; color: #475569; }
.empty-state { padding: 2rem 1rem; color: #94a3b8; font-size: 0.78rem; text-align: center; }

html[data-theme='dark'] .service-filter-form-wrap,
html[data-theme='dark'] .service-board { background: #1e293b; border-color: #334155; }
html[data-theme='dark'] .service-title,
html[data-theme='dark'] .service-board td { color: #f1f5f9; }
html[data-theme='dark'] .service-subtitle,
html[data-theme='dark'] .service-filter-note,
html[data-theme='dark'] .empty-state { color: #94a3b8; }
html[data-theme='dark'] .service-board-footer,
html[data-theme='dark'] .service-page-btn { background: #273449; border-color: #334155; color: #cbd5e1; }

.gdr-shell,
.finance-shell { display: grid; gap: 1rem; }
.gdr-headline { color: #64748b; margin-top: -0.25rem; font-size: 0.8rem; }
.gdr-metric-grid,
.finance-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.gdr-metric,
.finance-metric-card { display: grid; gap: 0.45rem; padding: 1.1rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.gdr-k { color: #64748b; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.gdr-v { color: #ef4444; font-size: 1.7rem; font-weight: 900; line-height: 1; }
.gdr-v.soft { color: #f59e0b; }
.gdr-v.pos { color: #10b981; }
.gdr-n { color: #94a3b8; font-size: 0.72rem; }
.gdr-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gdr-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.8rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #ffffff; color: #475569; font-size: 0.72rem; font-weight: 800; }
.gdr-chip.active { border-color: transparent; background: #4f46e5; color: #ffffff; }
.gdr-chip small { padding: 0.1rem 0.4rem; border-radius: 999px; background: rgba(255,255,255,0.18); }
.gdr-table-wrap { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.gdr-table-wrap table { width: 100%; border-collapse: collapse; }
.gdr-table-wrap th { padding: 0.75rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0; color: #64748b; font-size: 0.68rem; font-weight: 800; text-align: left; text-transform: uppercase; }
.gdr-table-wrap td { padding: 0.75rem; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 0.78rem; vertical-align: top; }
.gdr-muted { color: #64748b; font-size: 0.72rem; }
.gdr-strong { color: #1e293b; font-weight: 800; text-decoration: none; }
.gdr-badge { display: inline-flex; align-items: center; padding: 0.35rem 0.55rem; border: 1px solid #fde68a; border-radius: 999px; background: #fffbeb; color: #b45309; font-size: 0.68rem; font-weight: 800; }
.gdr-amount { color: #ef4444; font-size: 0.9rem; font-weight: 900; white-space: nowrap; }
.gdr-actions { display: flex; gap: 0.4rem; }
.gdr-icon-btn { width: 2rem; height: 2rem; display: inline-grid; place-items: center; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #f8fafc; color: #64748b; text-decoration: none; }
.finance-action-row { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem; }
.finance-metric-card header { display: flex; align-items: center; justify-content: space-between; color: #64748b; }
.finance-metric-card h3 { margin: 0; font-size: 0.75rem; font-weight: 800; }
.finance-metric-card header i { color: #4f46e5; }
.finance-metric-card > strong { color: #0f172a; font-size: 1.7rem; font-weight: 900; }
.finance-metric-card p { margin: 0; color: #64748b; font-size: 0.72rem; }
.finance-metric-card.danger > strong { color: #ef4444; }
.finance-metric-card.warn > strong { color: #f59e0b; }
.finance-inline-link { color: #4f46e5; font-weight: 700; text-decoration: none; }
.finance-movement-board { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.finance-movement-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem; border-bottom: 1px solid #e2e8f0; }
.finance-movement-head h4 { margin: 0; color: #0f172a; font-size: 0.95rem; font-weight: 800; }
.finance-movement-head p { margin: 0.3rem 0 0; color: #64748b; font-size: 0.72rem; }
.finance-movement-search { width: 230px; }
.finance-move-pill { display: inline-flex; padding: 0.35rem 0.55rem; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 0.68rem; font-weight: 800; }
.finance-move-pill.giren, .text-positive { color: #047857; }
.finance-move-pill.cikan, .text-negative { color: #be123c; }

html[data-theme='dark'] .gdr-metric,
html[data-theme='dark'] .gdr-chip,
html[data-theme='dark'] .gdr-table-wrap,
html[data-theme='dark'] .finance-metric-card,
html[data-theme='dark'] .finance-movement-board { background: #1e293b; border-color: #334155; }
html[data-theme='dark'] .gdr-headline,
html[data-theme='dark'] .gdr-k,
html[data-theme='dark'] .gdr-n,
html[data-theme='dark'] .gdr-muted,
html[data-theme='dark'] .finance-metric-card p,
html[data-theme='dark'] .finance-movement-head p { color: #94a3b8; }
html[data-theme='dark'] .gdr-strong,
html[data-theme='dark'] .finance-metric-card > strong,
html[data-theme='dark'] .finance-movement-head h4 { color: #f1f5f9; }
html[data-theme='dark'] .gdr-table-wrap th { background: #273449; border-color: #334155; }
html[data-theme='dark'] .gdr-table-wrap td { border-color: #334155; color: #cbd5e1; }
html[data-theme='dark'] .finance-movement-head { border-color: #334155; }

@media (max-width: 1000px) {
    .gdr-metric-grid,
    .finance-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .gdr-metric-grid,
    .finance-metric-grid { grid-template-columns: 1fr; }
    .finance-movement-head { align-items: stretch; flex-direction: column; }
    .finance-movement-search { width: 100%; }
}

.customer-summary-card { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.customer-summary-main { display: flex; align-items: flex-start; gap: 0.9rem; min-width: 0; }
.customer-avatar { width: 3rem; height: 3rem; display: grid; place-items: center; flex: none; border-radius: 0.75rem; background: #4f46e5; color: #ffffff; font-size: 0.85rem; font-weight: 900; }
.customer-summary-name { margin: 0; color: #0f172a; font-size: 1.2rem; font-weight: 800; }
.customer-summary-meta,
.customer-summary-extra { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.45rem; color: #64748b; font-size: 0.72rem; }
.customer-summary-extra { color: #94a3b8; }
.customer-summary-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.customer-summary-stats > div { min-width: 110px; }
.customer-stat-label { display: block; color: #64748b; font-size: 0.68rem; font-weight: 700; }
.customer-stat-value { display: block; margin-top: 0.25rem; color: #0f172a; font-size: 1rem; font-weight: 900; }
.customer-stat-value.negative,
.text-negative { color: #e11d48; }
.customer-stat-value.positive,
.text-positive { color: #059669; }
.customer-tabs-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0; }
.customer-tab-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #ffffff; color: #64748b; font-size: 0.72rem; font-weight: 700; text-decoration: none; }
.customer-tab-btn.active,
.customer-tab-btn:hover { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
.customer-tab-btn-cta { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.customer-detail-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid #e2e8f0; }
.customer-detail-filter-form { display: flex; align-items: center; gap: 0.6rem; }
.customer-detail-filter-form .form-select { min-width: 220px; }
.customer-service-count { color: #475569; font-size: 0.72rem; font-weight: 700; }

html[data-theme='dark'] .customer-summary-card,
html[data-theme='dark'] .customer-tab-btn { background: #1e293b; border-color: #334155; }
html[data-theme='dark'] .customer-summary-name,
html[data-theme='dark'] .customer-stat-value { color: #f1f5f9; }
html[data-theme='dark'] .customer-summary-meta,
html[data-theme='dark'] .customer-stat-label,
html[data-theme='dark'] .customer-detail-filter-bar { color: #94a3b8; border-color: #334155; }
html[data-theme='dark'] .customer-summary-extra { color: #64748b; }
html[data-theme='dark'] .customer-tab-btn { color: #cbd5e1; }
html[data-theme='dark'] .customer-tab-btn.active { background: #312e81; color: #c7d2fe; }

@media (max-width: 900px) {
    .customer-summary-card { align-items: flex-start; flex-direction: column; }
    .customer-summary-stats { width: 100%; }
}

@media (max-width: 640px) {
    .customer-detail-filter-bar,
    .customer-detail-filter-form { align-items: stretch; flex-direction: column; }
    .customer-detail-filter-form .form-select { min-width: 0; width: 100%; }
}

    .vehicle-detail-page { display: grid; gap: 1rem; }
    .vehicle-hero-card { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
    .vehicle-hero-left { display: flex; align-items: flex-start; gap: 1rem; min-width: 0; }
    .vehicle-hero-left h2 { margin: 0.4rem 0 0; color: #0f172a; font-size: 1.25rem; font-weight: 800; }
    .vehicle-hero-meta { display: flex; flex-wrap: wrap; gap: 0.45rem 0.8rem; margin-top: 0.35rem; color: #64748b; font-size: 0.72rem; }
    .vehicle-hero-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }
    .vehicle-hero-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
    .vehicle-hero-stat { min-width: 100px; }
    .vehicle-hero-stat span { display: block; color: #64748b; font-size: 0.65rem; font-weight: 700; }
    .vehicle-hero-stat strong { display: block; margin-top: 0.25rem; color: #0f172a; font-size: 0.9rem; font-weight: 900; }
    .vehicle-hero-timeline,
    .vehicle-hero-open-order { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.75rem; border-radius: 0.5rem; font-size: 0.72rem; font-weight: 700; text-decoration: none; }
    .vehicle-hero-timeline { border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; }
    .vehicle-hero-open-order { background: #4f46e5; color: #ffffff; }
    .vehicle-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
    .vehicle-left-column,
    .vehicle-right-column { display: grid; gap: 1rem; min-width: 0; }
    .vehicle-panel { padding: 1rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
    .vehicle-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
    .vehicle-panel-head h3 { margin: 0; color: #0f172a; font-size: 0.95rem; font-weight: 800; }
    .vehicle-panel-head a { color: #4f46e5; font-size: 0.72rem; font-weight: 700; text-decoration: none; }
    .vehicle-owner-box { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.65rem; background: #f8fafc; }
    .vehicle-owner-avatar { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 0.65rem; background: #4f46e5; color: #ffffff; font-size: 0.75rem; font-weight: 900; }
    .vehicle-owner-name { color: #0f172a; font-size: 0.85rem; font-weight: 800; }
    .vehicle-owner-link { color: #4f46e5; text-decoration: none; }
    .vehicle-owner-meta { margin-top: 0.2rem; color: #64748b; font-size: 0.7rem; }
    .vehicle-balance-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.8rem; color: #64748b; font-size: 0.75rem; }
    .vehicle-balance-row strong { font-weight: 900; }
    .vehicle-balance-row .negative { color: #e11d48; }
    .vehicle-balance-row .positive { color: #059669; }
    .vehicle-reminder-item { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid #f1f5f9; }
    .vehicle-reminder-item:last-child { border-bottom: 0; }
    .vehicle-reminder-item span { display: block; color: #64748b; font-size: 0.7rem; }
    .vehicle-reminder-item strong { display: block; margin-top: 0.25rem; color: #1e293b; font-size: 0.75rem; }
    .vehicle-reminder-item em { padding: 0.3rem 0.5rem; border-radius: 999px; font-size: 0.65rem; font-style: normal; font-weight: 800; white-space: nowrap; }
    .vehicle-reminder-item em.safe { background: #ecfdf5; color: #047857; }
    .vehicle-reminder-item em.warn { background: #fffbeb; color: #b45309; }
    .vehicle-reminder-item em.danger { background: #fff1f2; color: #be123c; }
    .vehicle-tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
    .vehicle-tech-item { padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.6rem; background: #f8fafc; }
    .vehicle-tech-item span { display: block; color: #64748b; font-size: 0.68rem; }
    .vehicle-tech-item strong { display: block; margin-top: 0.25rem; color: #1e293b; font-size: 0.78rem; }
    .vehicle-single-history-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; padding: 0.8rem; border: 1px solid #e2e8f0; border-radius: 0.65rem; background: #f8fafc; color: #475569; font-size: 0.7rem; }
    .vehicle-history-cta-row { display: flex; justify-content: flex-end; margin-top: 0.75rem; }
    .vehicle-history-footnote { margin-top: 0.75rem; color: #64748b; font-size: 0.72rem; }
    .vehicle-timeline-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
    .vehicle-timeline-filter { display: flex; align-items: center; gap: 0.5rem; color: #64748b; font-size: 0.72rem; }
    .vehicle-timeline-table .timeline-detail-row { display: none; }
    .vehicle-timeline-table .timeline-detail-row.is-open { display: table-row; }
    .timeline-toggle-btn { width: 1.8rem; height: 1.8rem; border: 1px solid #e2e8f0; border-radius: 0.45rem; background: #f8fafc; color: #4f46e5; cursor: pointer; }
    .service-user-pill { display: inline-flex; align-items: center; gap: 0.35rem; color: #475569; font-size: 0.7rem; font-weight: 700; }
    .service-user-dot { width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; background: #eef2ff; color: #4338ca; font-size: 0.55rem; font-weight: 900; }
    .vehicle-kalem-pill { display: inline-flex; padding: 0.3rem 0.5rem; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 0.65rem; font-weight: 800; }
    .timeline-detail-row > td { padding: 0.9rem; background: #f8fafc; }
    .timeline-detail-head { display: flex; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.6rem; color: #475569; font-size: 0.72rem; }

    html[data-theme='dark'] .vehicle-hero-card,
    html[data-theme='dark'] .vehicle-panel { background: #1e293b; border-color: #334155; }
    html[data-theme='dark'] .vehicle-hero-left h2,
    html[data-theme='dark'] .vehicle-hero-stat strong,
    html[data-theme='dark'] .vehicle-panel-head h3,
    html[data-theme='dark'] .vehicle-owner-name,
    html[data-theme='dark'] .vehicle-tech-item strong { color: #f1f5f9; }
    html[data-theme='dark'] .vehicle-hero-meta,
    html[data-theme='dark'] .vehicle-hero-stat span,
    html[data-theme='dark'] .vehicle-owner-meta,
    html[data-theme='dark'] .vehicle-balance-row,
    html[data-theme='dark'] .vehicle-reminder-item span,
    html[data-theme='dark'] .vehicle-tech-item span { color: #94a3b8; }
    html[data-theme='dark'] .vehicle-owner-box,
    html[data-theme='dark'] .vehicle-tech-item,
    html[data-theme='dark'] .vehicle-single-history-row,
    html[data-theme='dark'] .timeline-detail-row > td { background: #273449; border-color: #334155; }
    html[data-theme='dark'] .vehicle-reminder-item { border-color: #334155; }
    html[data-theme='dark'] .vehicle-hero-timeline,
    html[data-theme='dark'] .timeline-toggle-btn { background: #273449; border-color: #475569; color: #e2e8f0; }

    @media (max-width: 1000px) {
        .vehicle-hero-card,
        .vehicle-hero-actions { align-items: flex-start; flex-direction: column; }
        .vehicle-content-grid { grid-template-columns: 1fr; }
        .vehicle-single-history-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 640px) {
        .vehicle-hero-left { flex-direction: column; }
        .vehicle-hero-actions { width: 100%; }
        .vehicle-hero-stats { width: 100%; }
        .vehicle-hero-stat { flex: 1; min-width: 0; }
        .vehicle-hero-timeline,
        .vehicle-hero-open-order { width: 100%; justify-content: center; }
        .vehicle-tech-grid,
        .vehicle-single-history-row { grid-template-columns: 1fr; }
        .vehicle-timeline-toolbar { align-items: stretch; flex-direction: column; }
        .vehicle-timeline-filter { justify-content: space-between; }
    }

.stock-page-shell { display: grid; gap: 1rem; }
.stock-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.stock-page-head h2 { margin: 0; color: #0f172a; font-size: 1.2rem; font-weight: 800; }
.stock-page-head p { margin: 0.35rem 0 0; color: #64748b; font-size: 0.78rem; }
.stock-page-head > div:last-child { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.stock-filter-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.stock-chip { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.8rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; color: #475569; font-size: 0.72rem; font-weight: 700; text-decoration: none; }
.stock-chip strong { color: #4f46e5; font-size: 1rem; }
.stock-chip.active { border-color: #c7d2fe; background: #eef2ff; color: #3730a3; }
.stock-chip-critical { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.stock-chip-critical strong { color: #d97706; }
.stock-chip-empty { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }
.stock-chip-empty strong { color: #e11d48; }
.stock-chip-high { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.stock-chip-high strong { color: #059669; }
.stock-chip-critical.active { border-color: #d97706; background: #f59e0b; color: #ffffff; }
.stock-chip-empty.active { border-color: #e11d48; background: #e11d48; color: #ffffff; }
.stock-chip-high.active { border-color: #059669; background: #059669; color: #ffffff; }
.stock-board { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.stock-board-toolbar { padding: 1rem; border-bottom: 1px solid #e2e8f0; }
.stock-search-form { display: flex; gap: 0.5rem; }
.stock-search-form .form-input { flex: 1; }
.stock-board-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 1rem; border-top: 1px solid #e2e8f0; background: #f8fafc; color: #64748b; font-size: 0.72rem; }
.stock-status-dot { display: inline-block; width: 0.55rem; height: 0.55rem; margin-left: 0.35rem; border-radius: 50%; vertical-align: middle; }
.stock-status-dot.ok { background: #10b981; }
.stock-status-dot.danger { background: #f43f5e; }
.stock-sell-price { color: #047857; font-weight: 800; white-space: nowrap; }
.section-card { padding: 1rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.enterprise-table { width: 100%; border-collapse: collapse; }
.enterprise-table th { padding: 0.75rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0; color: #64748b; font-size: 0.68rem; font-weight: 800; text-align: left; text-transform: uppercase; }
.enterprise-table td { padding: 0.75rem; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 0.78rem; }
.report-filter-form,
.raf-filter-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; align-items: end; }
.report-filter-submit,
.raf-filter-submit { margin-bottom: 1rem; }
.report-filter-submit .btn,
.raf-filter-submit .btn { width: 100%; }
.stock-table { min-width: 850px; }

html[data-theme='dark'] .stock-page-head h2,
html[data-theme='dark'] .enterprise-table td { color: #f1f5f9; }
html[data-theme='dark'] .stock-page-head p,
html[data-theme='dark'] .stock-board-footer { color: #94a3b8; }
html[data-theme='dark'] .stock-chip,
html[data-theme='dark'] .stock-board,
html[data-theme='dark'] .section-card { background: #1e293b; border-color: #334155; }
html[data-theme='dark'] .stock-chip { color: #cbd5e1; }
html[data-theme='dark'] .stock-chip.active { background: #312e81; color: #c7d2fe; }
html[data-theme='dark'] .stock-chip-critical { border-color: #92400e; background: #451a03; color: #fde68a; }
html[data-theme='dark'] .stock-chip-critical strong { color: #fbbf24; }
html[data-theme='dark'] .stock-chip-empty { border-color: #9f1239; background: #4c1d2a; color: #fecdd3; }
html[data-theme='dark'] .stock-chip-empty strong { color: #fb7185; }
html[data-theme='dark'] .stock-chip-high { border-color: #047857; background: #064e3b; color: #a7f3d0; }
html[data-theme='dark'] .stock-chip-high strong { color: #34d399; }
html[data-theme='dark'] .stock-chip-critical.active { border-color: #f59e0b; background: #b45309; color: #ffffff; }
html[data-theme='dark'] .stock-chip-empty.active { border-color: #f43f5e; background: #be123c; color: #ffffff; }
html[data-theme='dark'] .stock-chip-high.active { border-color: #10b981; background: #047857; color: #ffffff; }
html[data-theme='dark'] .stock-board-toolbar,
html[data-theme='dark'] .stock-board-footer { border-color: #334155; background: #273449; }
html[data-theme='dark'] .enterprise-table th { background: #273449; border-color: #334155; }
html[data-theme='dark'] .enterprise-table td { border-color: #334155; }

.stat-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.mini-stat { padding: 1rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.mini-stat-label { display: block; color: #64748b; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.mini-stat-value { margin-top: 0.55rem; color: #0f172a; font-size: 1.2rem; font-weight: 900; }
html[data-theme='dark'] .mini-stat { background: #1e293b; border-color: #334155; }
html[data-theme='dark'] .mini-stat-label { color: #94a3b8; }
html[data-theme='dark'] .mini-stat-value { color: #f1f5f9; }

.settings-card { padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.settings-card h3 { margin: 0 0 0.35rem; color: #0f172a; font-size: 1rem; font-weight: 800; }
.settings-card p { color: #64748b; font-size: 0.78rem; }
.settings-inline-links { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.settings-inline-links > div { display: flex; gap: 0.5rem; flex-wrap: wrap; }
html[data-theme='dark'] .settings-card { background: #1e293b; border-color: #334155; }
html[data-theme='dark'] .settings-card h3 { color: #f1f5f9; }
html[data-theme='dark'] .settings-card p { color: #94a3b8; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: #f8fafc; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr); width: min(100%, 980px); overflow: hidden; border: 1px solid #e2e8f0; border-radius: 1rem; background: #ffffff; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12); }
.auth-showcase { display: flex; flex-direction: column; justify-content: center; padding: 3rem; background: linear-gradient(135deg, #0f172a, #312e81); color: #ffffff; }
.auth-showcase-badge { display: inline-flex; align-items: center; gap: 0.5rem; color: #c7d2fe; font-size: 0.75rem; font-weight: 800; }
.auth-showcase-title { margin: 1.5rem 0 0; font-size: 2rem; line-height: 1.15; font-weight: 900; }
.auth-showcase-text { margin: 1rem 0 0; color: #cbd5e1; font-size: 0.9rem; line-height: 1.7; }
.auth-showcase-list { display: grid; gap: 0.8rem; margin-top: 2rem; color: #e0e7ff; font-size: 0.8rem; font-weight: 700; }
.auth-showcase-item { display: flex; align-items: center; gap: 0.6rem; }
.auth-showcase-item i { color: #a5b4fc; }
.auth-card { padding: 2rem; background: #ffffff; }
.auth-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.brand-logo-icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 0.75rem; background: #4f46e5; color: #ffffff; }
.auth-form { display: grid; gap: 0.85rem; }
.auth-form .form-group { margin-bottom: 0; }
.auth-form > .btn { width: 100%; margin-top: 0.5rem; }
.auth-meta-row { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; color: #64748b; font-size: 0.75rem; }
.status-note { padding: 0.75rem 1rem; border: 1px solid #a7f3d0; border-radius: 0.5rem; background: #ecfdf5; color: #047857; font-size: 0.8rem; }
.error-note { padding: 0.75rem 1rem; border: 1px solid #fecdd3; border-radius: 0.5rem; background: #fff1f2; color: #be123c; font-size: 0.8rem; }
.duplicate-check-warning { margin-top: 0.45rem; padding: 0.55rem 0.7rem; border: 1px solid #fecaca; border-radius: 0.5rem; background: #fff1f2; color: #be123c; font-size: 0.72rem; font-weight: 700; }
.existing-customer-warning { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.6rem 0.7rem; border: 1px solid #fde68a; border-radius: 0.55rem; background: #fffbeb; color: #92400e; font-size: 0.72rem; }
.existing-customer-warning > i { margin-top: 0.12rem; color: #d97706; }
.existing-customer-warning strong { display: block; font-weight: 800; }
.existing-customer-warning strong a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.existing-customer-warning small { display: block; margin-top: 0.15rem; font-size: 0.68rem; }
html[data-theme='dark'] .duplicate-check-warning { border-color: #9f1239; background: #4c1d2a; color: #fecdd3; }
html[data-theme='dark'] .existing-customer-warning { border-color: #92400e; background: #451a03; color: #fde68a; }
html[data-theme='dark'] .existing-customer-warning > i { color: #fbbf24; }
html[data-theme='dark'] .auth-shell { background: #0f172a; }
html[data-theme='dark'] .auth-grid,
html[data-theme='dark'] .auth-card { background: #1e293b; border-color: #334155; }
html[data-theme='dark'] .auth-meta-row { color: #94a3b8; }
html[data-theme='dark'] {
    --text-heading: #f1f5f9;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-surface: #1e293b;
    --bg-surface-hover: #273449;
    --bg-main: #0f172a;
    --bg-element: #273449;
    --surface-alt: #273449;
    --border-color: #334155;
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.25);
    --brand-gradient: #4f46e5;
    --status-ready: #34d399;
    --status-ready-bg: #064e3b;
    --status-danger: #fb7185;
    --status-danger-bg: #4c1d2a;
}

@media (max-width: 760px) {
    .auth-shell { padding: 1rem; }
    .auth-grid { grid-template-columns: 1fr; }
    .auth-showcase { padding: 2rem; }
    .auth-showcase-title { font-size: 1.6rem; }
}

@media (max-width: 1000px) {
    .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-filter-form,
    .raf-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .stat-strip { grid-template-columns: 1fr; }
    .report-filter-form,
    .raf-filter-form { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .stock-filter-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stock-page-head { align-items: flex-start; flex-direction: column; }
    .stock-page-head > div:last-child { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .stock-filter-chips { grid-template-columns: 1fr; }
    .stock-search-form { align-items: stretch; flex-direction: column; }
    .stock-search-form .btn { width: 100%; }
}

.vehicle-customer-context { display: flex; align-items: center; gap: 0.85rem; width: 100%; padding: 1rem 1.15rem; border: 1px solid #c7d2fe; border-radius: 0.75rem; background: linear-gradient(135deg, #eef2ff, #f8fafc); }
.vehicle-customer-context-icon { width: 2.7rem; height: 2.7rem; display: grid; place-items: center; flex: none; border-radius: 0.75rem; background: #4f46e5; color: #ffffff; font-size: 1rem; }
.vehicle-customer-context-label { display: block; color: #6366f1; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.vehicle-customer-context strong { display: block; margin-top: 0.2rem; color: #0f172a; font-size: 1.05rem; font-weight: 900; }
.vehicle-customer-context-code { display: block; margin-top: 0.15rem; color: #64748b; font-size: 0.72rem; }
.vehicle-customer-context-link { margin-left: auto; color: #4338ca; font-size: 0.72rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.vehicle-customer-context-link:hover { color: #312e81; }
.customer-select-fallback { display: none; }
.customer-selection-card { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 0.85rem; width: 100%; padding: 1rem 1.15rem; border: 1px solid #c7d2fe; border-left: 4px solid #6366f1; border-radius: 0.85rem; background: #ffffff; box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08); }
.customer-selection-card .vehicle-selected-customer-copy { flex: 1 1 auto; min-width: 0; }
.customer-selection-card .vehicle-selected-customer-clear { flex: 0 0 auto; margin-left: auto; }
html[data-theme='dark'] .customer-selection-card { border-color: #4338ca; border-left-color: #818cf8; background: #1e293b; }
.vehicle-selected-customer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.85rem; padding: 1rem 1.15rem; border: 1px solid #c7d2fe; border-left: 4px solid #6366f1; border-radius: 0.85rem; background: #ffffff; box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08); }
.vehicle-selected-customer-avatar { width: 3.1rem; height: 3.1rem; display: grid; place-items: center; flex: none; border-radius: 1rem; background: linear-gradient(135deg, #8b5cf6, #4f46e5); color: #ffffff; font-size: 1.05rem; font-weight: 900; box-shadow: 0 8px 18px rgba(79, 70, 229, 0.25); }
.vehicle-selected-customer-copy { min-width: 0; flex: 1; }
.vehicle-selected-customer-copy strong { display: block; color: #0f172a; font-size: 1rem; font-weight: 900; }
.vehicle-selected-customer-details { display: flex; align-items: center; flex-wrap: nowrap; gap: 0.45rem; margin-top: 0.4rem; overflow: hidden; }
.vehicle-selected-customer-details span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.5rem; border-radius: 0.45rem; background: #f8fafc; color: #64748b; font-size: 0.68rem; }
.vehicle-selected-customer-details i { color: #94a3b8; }
.vehicle-selected-customer-details b { overflow: hidden; color: #64748b; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-selected-customer-clear { margin-left: auto; border: 1px solid #fecaca; border-radius: 0.45rem; background: #ffffff; color: #be123c; padding: 0.45rem 0.6rem; font-size: 0.68rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.vehicle-selected-customer-clear:hover { background: #fff1f2; }
html[data-theme='dark'] .vehicle-selected-customer { border-color: #4338ca; border-left-color: #818cf8; background: #1e293b; }
html[data-theme='dark'] .vehicle-selected-customer-copy strong { color: #f1f5f9; }
html[data-theme='dark'] .vehicle-selected-customer-details span { background: #273449; color: #cbd5e1; }
html[data-theme='dark'] .vehicle-selected-customer-details b { color: #cbd5e1; }
html[data-theme='dark'] .vehicle-selected-customer-clear { border-color: #9f1239; background: #1e293b; color: #fda4af; }
.stok-detay-sayfasi,
.stock-form-shell { display: grid; gap: 1rem; }
.stok-detay-hero { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.stok-detay-gorsel { width: 150px; height: 120px; flex: none; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 0.65rem; background: #f8fafc; }
.stok-detay-gorsel img { width: 100%; height: 100%; object-fit: contain; }
.stok-detay-gorsel-bos { height: 100%; display: grid; place-items: center; align-content: center; gap: 0.35rem; color: #94a3b8; font-size: 0.72rem; }
.stok-detay-gorsel-bos i { font-size: 1.5rem; color: #818cf8; }
.stok-detay-hero-icerik { min-width: 0; }
.stok-detay-hero-icerik h2 { margin: 0; color: #0f172a; font-size: 1.35rem; font-weight: 900; }
.stok-detay-oem { margin-top: 0.3rem; color: #4f46e5; font-size: 0.75rem; font-weight: 800; }
.stok-detay-etiketler { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.stok-etiket { padding: 0.35rem 0.55rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 0.68rem; font-weight: 800; }
.stok-etiket-ok { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.stok-etiket-danger { border-color: #fecdd3; background: #fff1f2; color: #be123c; }
.stok-detay-hero-icerik p { margin: 0.7rem 0 0; color: #64748b; font-size: 0.78rem; }
.stok-detay-metrikler { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.detail-item { padding: 0.9rem; border: 1px solid #e2e8f0; border-radius: 0.65rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.detail-item-label { display: block; color: #64748b; font-size: 0.68rem; font-weight: 700; }
.detail-item-value { margin-top: 0.35rem; color: #0f172a; font-size: 0.85rem; font-weight: 900; }
.stok-detay-tedarik-paneli { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.stok-detay-tedarik-baslik { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem; border-bottom: 1px solid #e2e8f0; }
.stok-detay-tedarik-baslik h3 { margin: 0; color: #0f172a; font-size: 0.95rem; font-weight: 800; }
.stok-detay-tedarik-baslik span { color: #64748b; font-size: 0.72rem; }
.stok-temin-tablosu { min-width: 780px; }
.stock-form-head { margin-bottom: 0.25rem; }
.stock-form-head h2 { margin: 0; color: #0f172a; font-size: 1.2rem; font-weight: 800; }
.stock-form-head p { margin: 0.35rem 0 0; color: #64748b; font-size: 0.78rem; }
.stock-part-form { display: grid; gap: 1rem; }
.stock-form-section { padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.stock-form-section h3 { margin: 0 0 1rem; color: #0f172a; font-size: 0.98rem; font-weight: 800; }
.stock-form-section h3 i { margin-right: 0.35rem; color: #4f46e5; }
.stock-profit-box { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; padding: 0.85rem 1rem; border: 1px solid #c7d2fe; border-radius: 0.65rem; background: #eef2ff; color: #4338ca; }
.stock-profit-box span { display: block; color: #6366f1; font-size: 0.68rem; font-weight: 700; }
.stock-profit-box strong { display: block; margin-top: 0.2rem; font-size: 1rem; font-weight: 900; }
.stok-gorsel-onizleme { margin-bottom: 0.8rem; }
.stok-gorsel-onizleme img { max-width: 180px; max-height: 130px; border: 1px solid #e2e8f0; border-radius: 0.6rem; object-fit: contain; }
.form-help { display: block; margin-top: 0.35rem; color: #64748b; font-size: 0.7rem; }
.stock-form-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }

html[data-theme='dark'] .stok-detay-hero,
html[data-theme='dark'] .detail-item,
html[data-theme='dark'] .stok-detay-tedarik-paneli,
html[data-theme='dark'] .stock-form-section { background: #1e293b; border-color: #334155; }
html[data-theme='dark'] .vehicle-customer-context { border-color: #4338ca; background: #312e81; }
html[data-theme='dark'] .vehicle-customer-context strong { color: #f1f5f9; }
html[data-theme='dark'] .vehicle-customer-context-label,
html[data-theme='dark'] .vehicle-customer-context-link { color: #c7d2fe; }
html[data-theme='dark'] .vehicle-customer-context-code { color: #cbd5e1; }
html[data-theme='dark'] .stok-detay-hero-icerik h2,
html[data-theme='dark'] .detail-item-value,
html[data-theme='dark'] .stok-detay-tedarik-baslik h3,
html[data-theme='dark'] .stock-form-head h2,
html[data-theme='dark'] .stock-form-section h3 { color: #f1f5f9; }
html[data-theme='dark'] .stok-detay-hero-icerik p,
html[data-theme='dark'] .detail-item-label,
html[data-theme='dark'] .stok-detay-tedarik-baslik span,
html[data-theme='dark'] .stock-form-head p,
html[data-theme='dark'] .form-help { color: #94a3b8; }
html[data-theme='dark'] .stok-detay-gorsel,
html[data-theme='dark'] .stok-gorsel-onizleme img { background: #273449; border-color: #475569; }
html[data-theme='dark'] .stock-profit-box { border-color: #4338ca; background: #312e81; color: #c7d2fe; }
html[data-theme='dark'] .stock-profit-box span { color: #a5b4fc; }
html[data-theme='dark'] .stok-detay-tedarik-baslik { border-color: #334155; }

@media (max-width: 900px) {
    .stok-detay-metrikler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .customer-selection-card { align-items: flex-start !important; flex-wrap: wrap !important; }
    .vehicle-selected-customer-details { flex-wrap: wrap; }
    .customer-selection-card .vehicle-selected-customer-clear { margin-left: 2.7rem; }
    .vehicle-customer-context { align-items: flex-start; flex-wrap: wrap; }
    .vehicle-customer-context-link { width: 100%; margin-left: 3.55rem; }
    .stok-detay-hero { align-items: flex-start; flex-direction: column; }
    .stok-detay-gorsel { width: 100%; height: 160px; }
    .stok-detay-metrikler { grid-template-columns: 1fr; }
    .stock-profit-box,
    .stock-form-actions { align-items: stretch; flex-direction: column; }
    .stock-form-actions .btn { width: 100%; }
    .vehicle-select-row { align-items: stretch; flex-direction: column; }
    .vehicle-add-button { width: 100%; }
}

@media (max-width: 900px) {
    .service-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .service-filter-form { grid-template-columns: 1fr; }
    .service-create-action-row,
    .service-filter-actions { justify-content: stretch; }
    .service-create-action-row .btn,
    .service-filter-actions .btn { flex: 1; }
    .service-mobile-hint { display: block; }
}

html[data-theme='dark'] .service-detail-topbar,
html[data-theme='dark'] .service-detail-summary,
html[data-theme='dark'] .service-detail-block { background: #1e293b; border-color: #334155; }
html[data-theme='dark'] .service-detail-topbar-main h2,
html[data-theme='dark'] .service-detail-topbar-side strong,
html[data-theme='dark'] .service-detail-summary h3,
html[data-theme='dark'] .service-detail-summary-rows strong { color: #f1f5f9; }
html[data-theme='dark'] .service-detail-topbar-main p,
html[data-theme='dark'] .service-detail-topbar-side span,
html[data-theme='dark'] .service-detail-summary-rows > div { color: #94a3b8; }
html[data-theme='dark'] .service-complaint-warning { border-color: #7f1d1d; background: #450a0a; color: #fca5a5; }
html[data-theme='dark'] .service-complaint-warning span { color: #fda4af; }
html[data-theme='dark'] .service-complaint-note { border-color: #4338ca; background: #312e81; color: #c7d2fe; }
html[data-theme='dark'] .service-complaint-note span { color: #e0e7ff; }
html[data-theme='dark'] .service-table th,
html[data-theme='dark'] .service-note-item,
html[data-theme='dark'] .servis-emri-gorsel-karti { background: #273449; border-color: #334155; }
html[data-theme='dark'] .service-table td { border-color: #334155; color: #cbd5e1; }
html[data-theme='dark'] .service-note-item p { color: #cbd5e1; }
html[data-theme='dark'] .service-detail-grand-total { border-color: #334155; color: #cbd5e1; }
html[data-theme='dark'] .service-detail-assign-select,
html[data-theme='dark'] .service-icon-btn { background: #273449; border-color: #475569; color: #e2e8f0; }
html[data-theme='dark'] .action-btn,
html[data-theme='dark'] .action-btn-secondary { background: #273449; border-color: #475569; color: #e2e8f0; }

html[data-theme='dark'] .surface-card,
html[data-theme='dark'] .intake-card,
html[data-theme='dark'] .service-detail-block,
html[data-theme='dark'] .service-detail-summary { background: #1e293b; border-color: #334155; }
html[data-theme='dark'] .form-label,
html[data-theme='dark'] .service-muted { color: #94a3b8; }
html[data-theme='dark'] .intake-card-head h3,
html[data-theme='dark'] .service-detail-block-head h3,
html[data-theme='dark'] .service-strong,
html[data-theme='dark'] .intake-upload-box strong { color: #f1f5f9; }

@media (max-width: 900px) {
    .intake-layout,
    .service-detail-layout { grid-template-columns: 1fr; }
    .field-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-detail-topbar { grid-template-columns: 1fr; align-items: flex-start; }
    .service-detail-topbar-side { width: 100%; justify-content: flex-start; text-align: left; }
    .service-detail-inline-form,
    .service-detail-inline-form-iscilik { grid-template-columns: 1fr 1fr; }
    .service-detail-inline-form .service-input-wide { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .field-grid-2,
    .field-grid-3,
    .intake-fuel-grid { grid-template-columns: 1fr; }
    .intake-selected-box,
    .intake-card-head,
    .service-detail-block-head { align-items: flex-start; flex-direction: column; }
    .service-detail-inline-form,
    .service-detail-inline-form-iscilik,
    .service-detail-discount-form { grid-template-columns: 1fr; }
    .servis-emri-gorsel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .intake-total-box ~ .btn { width: 100%; }
    .intake-total-box ~ .btn + .btn { margin-left: 0; }
}

.sigorta-page { display: grid; gap: 1.1rem; width: 100%; max-width: 1480px; margin: 0 auto; }
.sigorta-hero { display: flex; align-items: center; gap: 1.1rem; padding: 1.35rem 1.5rem; border: 1px solid #dbe4f0; border-left: 4px solid #2563eb; border-radius: 0.85rem; background: #ffffff; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); }
.sigorta-hero-mark { display: grid; place-items: center; width: 3rem; height: 3rem; flex: 0 0 auto; border: 1px solid #bfdbfe; border-radius: 0.8rem; background: #eff6ff; color: #1d4ed8; font-size: 1.2rem; }
.sigorta-hero-copy { min-width: 0; }
.sigorta-eyebrow { display: block; color: #2563eb; font-size: 0.66rem; font-weight: 800; letter-spacing: 0; line-height: 1.3; }
.sigorta-hero h1 { margin: 0.2rem 0 0; color: #0f172a; font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.sigorta-hero p { margin: 0.35rem 0 0; color: #64748b; font-size: 0.82rem; line-height: 1.5; }
.sigorta-account-panel { padding: 1rem 1.2rem; border: 1px solid #e2e8f0; border-radius: 0.85rem; background: #ffffff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); }
.sigorta-account-head { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.sigorta-account-icon { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; flex: 0 0 auto; border-radius: 0.65rem; background: #f1f5f9; color: #475569; }
.sigorta-account-name { display: grid; gap: 0.18rem; min-width: 0; }
.sigorta-account-name strong { overflow-wrap: anywhere; color: #0f172a; font-size: 0.92rem; }
.sigorta-connection-status { display: inline-flex; align-items: center; gap: 0.4rem; flex: 0 0 auto; margin-left: auto; padding: 0.42rem 0.65rem; border: 1px solid transparent; border-radius: 999px; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.sigorta-connection-status > span { width: 0.45rem; height: 0.45rem; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.sigorta-connection-status.is-ready { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.sigorta-connection-status.is-pending { border-color: #fde68a; background: #fffbeb; color: #a16207; }
.sigorta-account-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-top: 0.9rem; padding-top: 0.85rem; border-top: 1px solid #edf1f6; }
.sigorta-account-details > div { display: grid; gap: 0.22rem; min-width: 0; }
.sigorta-account-details span { color: #64748b; font-size: 0.68rem; }
.sigorta-account-details strong { overflow-wrap: anywhere; color: #1e293b; font-size: 0.78rem; font-weight: 700; }
.sigorta-alert { display: flex; align-items: flex-start; gap: 0.55rem; margin-top: 0.85rem; padding: 0.7rem 0.8rem; border: 1px solid; border-radius: 0.65rem; font-size: 0.75rem; line-height: 1.5; }
.sigorta-alert i { margin-top: 0.1rem; flex: 0 0 auto; }
.sigorta-alert.is-info { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }
.sigorta-alert.is-error { border-color: #fecdd3; background: #fff1f2; color: #be123c; }
.sigorta-portal-section { display: grid; gap: 0.75rem; }
.sigorta-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.sigorta-section-heading h2 { margin: 0.2rem 0 0; color: #0f172a; font-size: 1.15rem; font-weight: 800; }
.sigorta-section-heading p { max-width: 34rem; margin: 0; color: #64748b; font-size: 0.75rem; line-height: 1.5; text-align: right; }
.sigorta-portal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.sigorta-portal-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 10.2rem; padding: 1rem; overflow: hidden; border: 1px solid #dfe6ef; border-radius: 0.75rem; background: #ffffff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); color: #0f172a; text-decoration: none; transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.sigorta-portal-card:hover { transform: translateY(-2px); border-color: #93c5fd; box-shadow: 0 8px 18px rgba(30, 64, 175, 0.1); }
.sigorta-portal-card:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.45); outline-offset: 2px; }
.sigorta-portal-icon { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; margin-bottom: 0.8rem; border: 1px solid #bfdbfe; border-radius: 0.65rem; background: #eff6ff; color: #1d4ed8; font-size: 0.95rem; }
.sigorta-portal-card.is-report .sigorta-portal-icon { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.sigorta-portal-arrow { position: absolute; top: 1rem; right: 1rem; color: #94a3b8; font-size: 0.78rem; transition: color 150ms ease, transform 150ms ease; }
.sigorta-portal-card:hover .sigorta-portal-arrow { transform: translate(1px, -1px); color: #2563eb; }
.sigorta-portal-type { margin-bottom: 0.25rem; color: #64748b; font-size: 0.61rem; font-weight: 800; letter-spacing: 0; }
.sigorta-portal-card strong { max-width: 100%; color: #0f172a; font-size: 0.9rem; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.sigorta-portal-action { display: flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.75rem; color: #1d4ed8; font-size: 0.72rem; font-weight: 700; }
.sigorta-portal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sigorta-portal-toolbar h1 { margin: 0.2rem 0 0; color: #0f172a; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.sigorta-portal-toolbar .btn,
.sigorta-portal-footer .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.6rem; }
.sigorta-portal-frame { overflow: hidden; border: 1px solid #dbe3ed; border-radius: 0.8rem; background: #ffffff; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }
.sigorta-portal-iframe { display: block; width: 100%; height: clamp(34rem, calc(100dvh - 17rem), 68rem); border: 0; background: #ffffff; }
.sigorta-portal-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #64748b; font-size: 0.75rem; }

html[data-theme='dark'] .sigorta-hero,
html[data-theme='dark'] .sigorta-account-panel,
html[data-theme='dark'] .sigorta-portal-card,
html[data-theme='dark'] .sigorta-portal-frame { border-color: #334155; background: #1e293b; }
html[data-theme='dark'] .sigorta-hero h1,
html[data-theme='dark'] .sigorta-account-name strong,
html[data-theme='dark'] .sigorta-account-details strong,
html[data-theme='dark'] .sigorta-section-heading h2,
html[data-theme='dark'] .sigorta-portal-toolbar h1,
html[data-theme='dark'] .sigorta-portal-card strong { color: #f1f5f9; }
html[data-theme='dark'] .sigorta-hero p,
html[data-theme='dark'] .sigorta-account-details span,
html[data-theme='dark'] .sigorta-section-heading p,
html[data-theme='dark'] .sigorta-portal-footer { color: #94a3b8; }
html[data-theme='dark'] .sigorta-account-details { border-color: #334155; }
html[data-theme='dark'] .sigorta-account-icon { background: #273449; color: #cbd5e1; }
html[data-theme='dark'] .sigorta-portal-card:hover { border-color: #60a5fa; }
html[data-theme='dark'] .sigorta-portal-iframe { background: #ffffff; }

@media (max-width: 1120px) {
    .sigorta-portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .sigorta-portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sigorta-section-heading { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
    .sigorta-section-heading p { text-align: left; }
}

@media (max-width: 640px) {
    .sigorta-page { gap: 0.85rem; }
    .sigorta-hero { align-items: flex-start; padding: 1rem; }
    .sigorta-hero-mark { width: 2.6rem; height: 2.6rem; }
    .sigorta-hero h1 { font-size: 1.3rem; }
    .sigorta-account-panel { padding: 0.85rem; }
    .sigorta-account-head { align-items: flex-start; flex-wrap: wrap; }
    .sigorta-connection-status { margin-left: 3.1rem; }
    .sigorta-account-details { grid-template-columns: 1fr 1fr; }
    .sigorta-portal-grid { grid-template-columns: 1fr; gap: 0.6rem; }
    .sigorta-portal-card { min-height: 8.5rem; padding: 0.85rem; }
    .sigorta-portal-toolbar { align-items: stretch; flex-direction: column; }
    .sigorta-portal-toolbar .btn { width: 100%; }
    .sigorta-portal-iframe { height: calc(100dvh - 16rem); min-height: 28rem; }
    .sigorta-portal-footer { align-items: stretch; flex-direction: column; }
    .sigorta-portal-footer .btn { width: 100%; }
}

.followup-insurance-action { min-height: 2rem; white-space: nowrap; }
.vehicle-policy-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid #e2e8f0; }
.vehicle-policy-row:last-of-type { border-bottom: 0; }
.vehicle-policy-main { display: grid; gap: 0.2rem; min-width: 0; }
.vehicle-policy-type { color: #2563eb; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; }
.vehicle-policy-main strong { color: #0f172a; font-size: 0.85rem; overflow-wrap: anywhere; }
.vehicle-policy-main > span:last-child,
.vehicle-policy-dates > span { color: #64748b; font-size: 0.73rem; }
.vehicle-policy-dates { display: grid; justify-items: end; gap: 0.35rem; text-align: right; }
.vehicle-policy-dates a { color: #1d4ed8; font-size: 0.74rem; font-weight: 700; text-decoration: none; }
.vehicle-policy-dates a:hover { text-decoration: underline; }
.insurance-policy-state { display: inline-flex; align-items: center; padding: 0.38rem 0.65rem; border: 1px solid transparent; border-radius: 999px; font-size: 0.7rem; font-weight: 800; white-space: nowrap; }
.insurance-policy-state.is-valid { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.insurance-policy-state.is-expired { border-color: #fecdd3; background: #fff1f2; color: #be123c; }
.insurance-policy-grid { margin-top: 1rem; }
.insurance-policy-note { margin-top: 1rem; padding: 0.85rem 1rem; border: 1px solid #e2e8f0; border-radius: 0.65rem; background: #f8fafc; }
.insurance-policy-note > span { color: #64748b; font-size: 0.69rem; font-weight: 800; text-transform: uppercase; }
.insurance-policy-note p { margin: 0.35rem 0 0; color: #334155; font-size: 0.8rem; white-space: pre-wrap; }
.insurance-form-panel .insurance-form { padding: 1rem 1.2rem; }
.insurance-form-note { display: flex; align-items: flex-start; gap: 0.55rem; margin: 1rem 1.2rem 0; padding: 0.75rem 0.85rem; border: 1px solid #bfdbfe; border-radius: 0.65rem; background: #eff6ff; color: #1e40af; font-size: 0.76rem; line-height: 1.5; }
.insurance-form-note i { margin-top: 0.1rem; flex: 0 0 auto; }
.insurance-form-actions { justify-content: flex-end; gap: 0.6rem; }

html[data-theme='dark'] .vehicle-policy-row { border-color: #334155; }
html[data-theme='dark'] .vehicle-policy-main strong { color: #f1f5f9; }
html[data-theme='dark'] .vehicle-policy-dates > span,
html[data-theme='dark'] .vehicle-policy-main > span:last-child { color: #94a3b8; }
html[data-theme='dark'] .insurance-policy-note { border-color: #334155; background: #273449; }
html[data-theme='dark'] .insurance-policy-note p { color: #cbd5e1; }
html[data-theme='dark'] .insurance-form-note { border-color: #1e40af; background: #172554; color: #bfdbfe; }

@media (max-width: 640px) {
    .followup-insurance-action { width: 100%; justify-content: center; }
    .vehicle-policy-row { align-items: flex-start; flex-direction: column; gap: 0.55rem; }
    .vehicle-policy-dates { justify-items: start; text-align: left; }
    .insurance-form-panel .insurance-form { padding: 0.85rem; }
    .insurance-form-note { margin: 0.85rem 0.85rem 0; }
    .insurance-form-actions { display: grid; grid-template-columns: 1fr; }
    .insurance-form-actions .btn { width: 100%; justify-content: center; }
}
