:root {
    --app-bg: #070b14;
    --app-surface: #0f1b33;
    --app-surface-2: #132243;
    --app-border: rgba(121, 139, 190, 0.2);
    --app-text: #f4f6ff;
    --app-muted: #9ba8c9;
    --app-accent: #ef4444;
    --app-accent-2: #dc2626;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background:
        radial-gradient(800px 450px at 0% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
        radial-gradient(1000px 700px at 100% -20%, rgba(220, 38, 38, 0.08), transparent 62%),
        linear-gradient(160deg, #070b14 0%, #0a1325 48%, #0b1730 100%);
    color: var(--app-text);
    overflow-x: clip;
    max-width: 100vw;
}

.app-navbar {
    background: rgba(9, 11, 18, 0.92);
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(6px);
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
}

main.container {
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

main img,
.panel img,
.card img {
    max-width: 100%;
    height: auto;
}

/* Mobil: hamburger + dikey menü; masaüstü: yatay şerit */
@media (max-width: 991.98px) {
    .app-navbar .navbar-collapse {
        max-height: min(78vh, 32rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .app-navbar .navbar-nav {
        width: 100%;
    }

    .app-navbar .navbar-nav .nav-link {
        padding: 0.55rem 0.35rem;
        border-radius: 8px;
    }

    .app-navbar .navbar-nav .nav-link.active {
        background: rgba(239, 68, 68, 0.18);
    }

    .app-navbar .app-nav-user {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(148, 163, 184, 0.25);
    }
}

@media (min-width: 992px) {
    .app-navbar .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 0.15rem;
        row-gap: 0.15rem;
    }

    .app-navbar .nav-link {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        white-space: nowrap;
    }
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.app-brand-logo {
    width: clamp(120px, 16vw, 170px);
    height: auto;
    max-height: 44px;
    object-fit: contain;
    display: block;
}

.login-logo-wrap {
    width: 100%;
    text-align: center;
}

.login-logo-image {
    width: min(100%, 170px);
    height: auto;
    max-height: 72px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.login-compact {
    margin-top: 0;
    max-width: 360px;
}

.login-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-card {
    width: min(92vw, 420px);
    background: linear-gradient(180deg, rgba(15, 27, 51, 0.96), rgba(13, 23, 44, 0.96));
    border: 1px solid var(--app-border);
    border-radius: 14px;
    padding: 22px 18px;
    box-shadow: 0 10px 24px rgba(3, 8, 20, 0.45);
}

.login-card .h4 {
    margin: 6px 0 14px;
    text-align: center;
}

.login-card .mb-3 {
    margin-bottom: 12px;
}

.login-card .form-label {
    display: block;
    margin-bottom: 6px;
    color: #dbe4ff;
    font-size: 0.92rem;
}

.login-card .form-control {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
    padding: 8px 10px;
    box-sizing: border-box;
    display: block;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #9fb0d8;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
}

.password-toggle:hover {
    color: #e9efff;
    background: rgba(255, 255, 255, 0.06);
}

.password-eye-icon {
    width: 18px;
    height: 18px;
}

.password-slash {
    display: none;
}

.password-toggle.is-visible .password-slash {
    display: block;
}

.login-card .btn-primary {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
    box-sizing: border-box;
    display: block;
}

.login-decoy {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.nav-link {
    color: #d4d8e5 !important;
    border-radius: 8px;
    padding: 6px 10px !important;
    font-size: 0.88rem;
}

.nav-link.active,
.nav-link:hover {
    color: #fff !important;
    background: linear-gradient(90deg, var(--app-accent), var(--app-accent-2));
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.35);
}

.panel,
.card {
    background: linear-gradient(180deg, rgba(15, 27, 51, 0.96), rgba(13, 23, 44, 0.96));
    border: 1px solid var(--app-border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(3, 8, 20, 0.45);
}

.table-dark {
    --bs-table-bg: var(--app-surface);
    --bs-table-striped-bg: var(--app-surface-2);
    --bs-table-striped-color: var(--app-text);
    --bs-table-color: var(--app-text);
    --bs-table-border-color: var(--app-border);
}

.table-dark thead th {
    border-bottom-color: rgba(255, 255, 255, 0.14);
    color: #f9f9f9;
    font-size: 0.86rem;
    letter-spacing: 0.2px;
}

.form-control,
.form-select {
    background-color: rgba(8, 17, 35, 0.95) !important;
    border-color: var(--app-border);
    color: #f7f9ff !important;
    caret-color: #ffffff;
    font-weight: 500;
    -webkit-text-fill-color: #f7f9ff;
}

.form-control:focus,
.form-select:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.22);
    color: #ffffff !important;
    background-color: rgba(10, 22, 44, 0.98) !important;
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
    color: #dbe4ff !important;
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--app-accent), var(--app-accent-2));
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover {
    filter: brightness(1.06);
    color: #fff;
}

.btn-outline-light {
    border-color: rgba(200, 208, 232, 0.4);
    color: #d9e0f3;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.text-muted,
.muted-note {
    color: var(--app-muted) !important;
}

.form-control::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder {
    color: #c4cee8 !important;
    opacity: 1;
    font-size: 0.92rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--app-text);
    box-shadow: 0 0 0px 1000px rgba(8, 17, 35, 0.95) inset;
    transition: background-color 9999s ease-out 0s;
}

/* Date inputs: keep typed date readable on dark theme */
input[type="date"].form-control {
    color: #f7f9ff !important;
    font-variant-numeric: tabular-nums;
}

input[type="date"].form-control::-webkit-datetime-edit,
input[type="datetime-local"].form-control::-webkit-datetime-edit {
    color: #f7f9ff;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator {
    opacity: 0.95;
    filter: invert(93%) sepia(8%) saturate(570%) hue-rotate(183deg) brightness(108%) contrast(102%);
    cursor: pointer;
}

.part-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.part-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ba8c9;
    background: rgba(255, 255, 255, 0.04);
}

.part-image-cell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.part-image-upload-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.part-image-plus-btn {
    position: static;
    min-width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(7, 11, 20, 0.72);
    color: #fff;
    line-height: 1;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.part-image-plus-btn:hover {
    color: #fff;
    background: rgba(7, 11, 20, 0.92);
}

.part-image-preview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    line-height: 0;
    vertical-align: middle;
    flex-shrink: 0;
}

.part-image-preview-btn:focus-visible {
    outline: 2px solid rgba(100, 160, 255, 0.85);
    outline-offset: 2px;
}

.part-image-preview-dialog {
    max-width: min(36rem, 94vw);
}

.part-image-preview-full {
    max-height: min(60vh, 520px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.part-image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.part-image-overlay.open {
    display: flex;
}

.part-image-overlay img {
    max-width: min(92vw, 900px);
    max-height: 88vh;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.part-image-picker {
    width: min(100%, 250px);
}

.part-image-picker-trigger {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}

.part-image-picker-trigger:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.part-image-picker-trigger img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.part-image-picker-plus {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(7, 11, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card .card-body {
    padding: 0.9rem 1rem;
}

.stat-card-blue {
    background: linear-gradient(145deg, #1e3a8a, #1d4ed8) !important;
}

.stat-card-purple {
    background: linear-gradient(145deg, #6d28d9, #8b5cf6) !important;
}

.stat-card-amber {
    background: linear-gradient(145deg, #d97706, #f59e0b) !important;
}

.stat-card-red {
    background: linear-gradient(145deg, #dc2626, #ef4444) !important;
}

.stat-card-emerald {
    background: linear-gradient(145deg, #047857, #10b981) !important;
}

.stat-card-teal {
    background: linear-gradient(145deg, #0f766e, #14b8a6) !important;
}

.stat-card-sky {
    background: linear-gradient(145deg, #0369a1, #0ea5e9) !important;
}

.stat-card-violet {
    background: linear-gradient(145deg, #5b21b6, #7c3aed) !important;
}

.stat-card .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.quick-menu-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 92px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(120, 140, 190, 0.35);
    background: linear-gradient(145deg, #334a68, #3f5878);
    color: #f5f8ff;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 8px 18px rgba(8, 15, 30, 0.35);
}

.quick-menu-card:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 20px rgba(8, 15, 30, 0.5);
}

.quick-menu-blue { background: linear-gradient(145deg, #1d4ed8, #2563eb); }
.quick-menu-indigo { background: linear-gradient(145deg, #4338ca, #4f46e5); }
.quick-menu-purple { background: linear-gradient(145deg, #7e22ce, #9333ea); }
.quick-menu-teal { background: linear-gradient(145deg, #0f766e, #0d9488); }
.quick-menu-cyan { background: linear-gradient(145deg, #0e7490, #0891b2); }
.quick-menu-amber { background: linear-gradient(145deg, #b45309, #d97706); }
.quick-menu-red { background: linear-gradient(145deg, #b91c1c, #dc2626); }
.quick-menu-slate { background: linear-gradient(145deg, #334155, #475569); }
.quick-menu-forest { background: linear-gradient(145deg, #14532d, #15803d); }
.quick-menu-violet { background: linear-gradient(145deg, #5b21b6, #7c3aed); }

/* Dashboard — profesyonel özet (dash-pro-scope) */
.dash-pro-scope .dash-pro-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--app-muted);
}

.dash-pro-scope .dash-pro-hero {
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(121, 139, 190, 0.28);
    background: linear-gradient(135deg, rgba(24, 38, 78, 0.88), rgba(10, 20, 42, 0.94));
    box-shadow: 0 16px 42px rgba(3, 8, 20, 0.42);
}

.dash-pro-scope .dash-pro-title {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f8faff;
}

.dash-pro-scope .dash-pro-sub {
    margin-top: 0.35rem;
    font-size: 0.86rem;
    color: var(--app-muted);
}

.dash-pro-scope .dash-pro-pipeline {
    padding: 0.55rem 0.95rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(121, 139, 190, 0.22);
    background: rgba(12, 22, 44, 0.72);
    font-size: 0.86rem;
}

.dash-pro-scope .dash-pro-pipeline-label {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-muted);
}

.dash-pro-scope .dash-pro-pipeline-total {
    font-weight: 600;
    color: #e2e8ff;
}

.dash-pro-scope .dash-pro-pipeline a {
    color: #dbe4ff;
    text-decoration: none;
}

.dash-pro-scope .dash-pro-pipeline a:hover {
    color: #fff;
    text-decoration: underline;
}

.dash-pro-scope .dash-kpi-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(3, 8, 20, 0.38);
}

.dash-pro-scope .dash-kpi-card .card-body {
    padding: 1rem 1.05rem;
}

.dash-pro-scope .dash-kpi-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.95);
}

.dash-pro-scope .dash-kpi-val {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dash-pro-scope .dash-kpi-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dash-pro-scope .dash-pro-panel {
    position: relative;
    z-index: 0;
    border-radius: 14px;
    border: 1px solid rgba(121, 139, 190, 0.28);
    /* Opak zemin: alt satırdaki tablolar / metin üst üste binmiş gibi görünmesin */
    background: linear-gradient(180deg, rgba(16, 28, 54, 0.98), rgba(11, 21, 42, 0.99));
    box-shadow: 0 12px 30px rgba(3, 8, 20, 0.36);
}

.dash-pro-scope .dash-pro-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dash-pro-scope .dash-pro-panel-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #eef2ff;
}

.dash-pro-scope .dash-pro-panel-meta {
    font-size: 0.75rem;
    color: var(--app-muted);
    white-space: nowrap;
}

.dash-pro-scope .dash-pro-metric {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dash-pro-scope .dash-pro-hr {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 0.85rem 0;
    opacity: 1;
}

.dash-pro-scope .dash-pro-badge {
    font-weight: 600;
    padding: 0.4em 0.75em;
}

.dash-pro-scope .dash-pro-type-row + .dash-pro-type-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-pro-scope .dash-table thead th {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c5d2ef;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    background-color: rgba(22, 38, 72, 0.55);
}

.dash-pro-scope .dash-pro-table-wrap {
    margin: 0 -2px;
    border-radius: 10px;
    overflow: hidden;
}

.dash-pro-scope .dash-pro-progress {
    background-color: rgba(0, 0, 0, 0.28);
    border-radius: 6px;
}

/* Dashboard v2 — bölüm başlıkları */
.dash-pro-scope.dash-v2 .dash-v2-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.92);
    margin: 0 0 0.7rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dash-pro-scope.dash-v2 .dash-v2-section .row {
    --bs-gutter-y: 0.85rem;
}

/* Dashboard v2 — akış kartları ve bilgi yoğun düzen */
.dash-pro-scope.dash-v2 .dash-v2-tagline {
    margin-top: 0.5rem;
    max-width: 46rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--app-muted);
}

.dash-pro-scope.dash-v2 .dash-v2-legend {
    margin-top: -0.25rem;
    margin-bottom: 0.75rem !important;
    line-height: 1.45;
}

.dash-pro-scope.dash-v2 .dash-v2-flow-row {
    margin-bottom: 0.25rem;
}

.dash-pro-scope.dash-v2 .dash-v2-flow-card {
    border-radius: 14px;
    border: 1px solid rgba(121, 139, 190, 0.28);
    background: linear-gradient(165deg, rgba(18, 32, 62, 0.9), rgba(10, 20, 40, 0.95));
    box-shadow: 0 12px 32px rgba(3, 8, 20, 0.38);
    padding: 1rem 1.1rem;
}

.dash-pro-scope.dash-v2 .dash-v2-flow-card--supply {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(165deg, rgba(14, 45, 40, 0.55), rgba(10, 24, 44, 0.95));
}

.dash-pro-scope.dash-v2 .dash-v2-flow-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
}

.dash-pro-scope.dash-v2 .dash-v2-flow-title {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    color: #f0f4ff;
    letter-spacing: -0.01em;
}

.dash-pro-scope.dash-v2 .dash-v2-flow-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--app-muted);
    line-height: 1.4;
    margin-top: 0.2rem;
    max-width: 28rem;
}

.dash-pro-scope.dash-v2 .dash-v2-flow-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
}

.dash-pro-scope.dash-v2 .dash-v2-stat-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 4.5rem;
}

.dash-pro-scope.dash-v2 .dash-v2-stat-pill--link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dash-pro-scope.dash-v2 .dash-v2-stat-pill--link:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.dash-pro-scope.dash-v2 .dash-v2-stat-num {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.dash-pro-scope.dash-v2 .dash-v2-stat-txt {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--app-muted);
    margin-top: 0.15rem;
}

.dash-pro-scope.dash-v2 .dash-v2-stat-pill--link .dash-v2-stat-txt {
    color: rgba(210, 220, 245, 0.85);
}

.dash-pro-scope.dash-v2 .dash-v2-kpi-link {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.dash-pro-scope.dash-v2 a:hover .dash-v2-kpi-link {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(3, 8, 20, 0.45);
}

.dash-pro-scope.dash-v2 .dash-v2-panel-sub {
    display: block;
    font-size: 0.76rem;
    color: var(--app-muted);
    line-height: 1.4;
    margin-top: 0.25rem;
    font-weight: 400;
}

.dash-pro-scope.dash-v2 .dash-pro-panel-head {
    align-items: flex-start;
}

.dash-pro-scope.dash-v2 .dash-v2-compact-metric .dash-pro-metric {
    font-size: 1.75rem;
}

/* ——— Hareketler sayfası ——— */
.mov-scope {
    max-width: 100%;
}

.mov-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(121, 139, 190, 0.28);
    background: linear-gradient(135deg, rgba(24, 38, 78, 0.9), rgba(10, 20, 42, 0.95));
    box-shadow: 0 14px 36px rgba(3, 8, 20, 0.4);
}

.mov-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--app-muted);
}

.mov-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8faff;
    margin-top: 0.35rem;
}

.mov-hero-meta {
    margin-top: 0.35rem;
    font-size: 0.84rem;
    color: var(--app-muted);
    max-width: 36rem;
    line-height: 1.45;
}

.mov-stat-card {
    border-radius: 14px;
    border: 1px solid rgba(121, 139, 190, 0.22);
    background: linear-gradient(165deg, rgba(18, 32, 62, 0.88), rgba(11, 21, 42, 0.94));
    padding: 0.85rem 1rem;
    box-shadow: 0 10px 26px rgba(3, 8, 20, 0.32);
    height: 100%;
}

.mov-stat-card--muted {
    border-color: rgba(100, 116, 139, 0.35);
}

.mov-stat-card--accent {
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(165deg, rgba(22, 40, 82, 0.92), rgba(12, 24, 48, 0.96));
}

.mov-stat-card--split .mov-stat-value {
    font-size: 1.15rem;
    font-weight: 800;
}

.mov-stat-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.35rem;
}

.mov-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f1f5ff;
    line-height: 1.1;
}

.mov-filter-panel {
    padding: 1rem 1.15rem 1.1rem;
    border-radius: 14px;
}

.mov-filter-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mov-filter-panel-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.mov-filter-panel-meta {
    font-size: 0.8rem;
    color: var(--app-muted);
    font-variant-numeric: tabular-nums;
}

.mov-field-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.25rem;
}

.mov-filter-actions {
    padding-top: 0.15rem;
}

.mov-table-panel {
    border-radius: 14px;
    border: 1px solid rgba(121, 139, 190, 0.22);
    box-shadow: 0 12px 32px rgba(3, 8, 20, 0.35);
    background: linear-gradient(180deg, rgba(16, 28, 54, 0.96), rgba(11, 21, 42, 0.98));
}

.mov-table-toolbar-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.mov-table-scroll {
    max-height: none;
}

.mov-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c5d2ef;
    background: rgba(22, 38, 72, 0.97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.mov-table tbody tr:hover {
    background-color: rgba(66, 115, 219, 0.1);
}

.mov-cell-date {
    font-variant-numeric: tabular-nums;
}

.mov-dt {
    font-size: 0.82rem;
    color: #dbe4ff;
}

.mov-part-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #f8fafc;
    word-break: break-word;
}

.mov-part-name--empty {
    font-weight: 500;
    color: rgba(148, 163, 184, 0.9);
}

.mov-part-code {
    margin-top: 0.2rem;
    font-weight: 500;
    font-size: 0.72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.02em;
    color: rgba(148, 163, 184, 0.92);
}

.mov-motor-volts {
    align-items: center;
}

.mov-motor-volt {
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.28em 0.55em;
    letter-spacing: 0.04em;
}

.mov-motor-volt--220 {
    background: rgba(234, 179, 8, 0.9) !important;
    color: #1c1917 !important;
}

.mov-motor-volt--380 {
    background: rgba(59, 130, 246, 0.92) !important;
    color: #fff !important;
}

.mov-badge-source {
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.35em 0.65em;
}

.mov-badge-source--stock {
    background: rgba(71, 85, 105, 0.85) !important;
    color: #f1f5f9;
}

.mov-badge-source--sales {
    background: rgba(37, 99, 235, 0.9) !important;
    color: #fff;
}

.mov-badge-type {
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.35em 0.65em;
}

.mov-badge-type--in {
    background: rgba(22, 163, 74, 0.88) !important;
    color: #fff;
}

.mov-badge-type--out {
    background: rgba(220, 38, 38, 0.88) !important;
    color: #fff;
}

.mov-badge-type--other {
    background: rgba(100, 116, 139, 0.75) !important;
    color: #f8fafc;
}

.mov-cell-note {
    max-width: 22rem;
    word-break: break-word;
    color: rgba(226, 232, 240, 0.92);
}

.mov-empty-cell {
    padding: 2.5rem 1.5rem !important;
    border: none;
}

.mov-empty {
    text-align: center;
    max-width: 22rem;
    margin: 0 auto;
}

.mov-empty-title {
    font-weight: 700;
    color: #e2e8f0;
}

@media (max-width: 767.98px) {
    .mov-table-scroll {
        max-height: none;
    }

    .mov-table thead th {
        position: static;
    }

    .mov-cell-note {
        max-width: 12rem;
    }
}

/* ——— Raporlar sayfası ——— */
.rep-scope {
    max-width: 100%;
}

.rep-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: linear-gradient(135deg, rgba(55, 42, 18, 0.55), rgba(18, 28, 54, 0.95));
    box-shadow: 0 14px 36px rgba(3, 8, 20, 0.4);
}

.rep-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(253, 224, 138, 0.85);
}

.rep-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fffbeb;
    margin-top: 0.35rem;
}

.rep-hero-meta {
    margin-top: 0.35rem;
    font-size: 0.84rem;
    color: var(--app-muted);
    max-width: 40rem;
    line-height: 1.45;
}

.rep-stats .rep-stat-card {
    border-radius: 14px;
    border: 1px solid rgba(121, 139, 190, 0.22);
    background: linear-gradient(165deg, rgba(18, 32, 62, 0.88), rgba(11, 21, 42, 0.94));
    padding: 0.85rem 1rem;
    box-shadow: 0 10px 26px rgba(3, 8, 20, 0.32);
    height: 100%;
}

.rep-stat-card--warn {
    border-color: rgba(245, 158, 11, 0.45);
}

.rep-stat-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.35rem;
}

.rep-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f1f5ff;
}

.rep-filter-panel {
    padding: 1rem 1.15rem 1.1rem;
    border-radius: 14px;
}

.rep-filter-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rep-filter-panel-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.rep-filter-panel-meta {
    font-size: 0.8rem;
    color: var(--app-muted);
    line-height: 1.35;
    max-width: 28rem;
    text-align: right;
}

.rep-field-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.25rem;
}

.rep-table-panel {
    border-radius: 14px;
    border: 1px solid rgba(121, 139, 190, 0.22);
    box-shadow: 0 12px 32px rgba(3, 8, 20, 0.35);
    background: linear-gradient(180deg, rgba(16, 28, 54, 0.96), rgba(11, 21, 42, 0.98));
}

.rep-table-toolbar-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.rep-table-scroll {
    max-height: min(70vh, 720px);
}

.rep-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c5d2ef;
    background: rgba(22, 38, 72, 0.97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.rep-table tbody tr:hover {
    background-color: rgba(245, 158, 11, 0.08);
}

.rep-cell {
    font-size: 0.88rem;
    vertical-align: middle;
}

.rep-empty-cell {
    padding: 2.5rem 1.5rem !important;
    border: none;
}

.rep-empty-title {
    font-weight: 700;
    color: #e2e8f0;
}

@media (max-width: 767.98px) {
    .rep-filter-panel-meta {
        text-align: left;
    }

    .rep-table-scroll {
        max-height: none;
    }

    .rep-table thead th {
        position: static;
    }
}

/* ——— Arızalı / giden aktüatörler ——— */
.fa-scope {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.fa-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: linear-gradient(135deg, rgba(12, 45, 58, 0.55), rgba(14, 24, 48, 0.96));
    box-shadow: 0 14px 36px rgba(3, 8, 20, 0.38);
}

.fa-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(103, 232, 249, 0.9);
    margin-bottom: 0;
}

.fa-title {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ecfeff;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.fa-hero-meta {
    margin-top: 0.4rem;
    font-size: 0.84rem;
    color: var(--app-muted);
    max-width: 38rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.fa-hero-actions {
    align-items: center;
}

.fa-flow-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fa-flow-tabs .btn {
    flex: 1 1 220px;
}

.fa-tab-btn {
    font-weight: 600;
    border-radius: 999px;
    padding-left: 14px;
    padding-right: 14px;
}

.fa-action-btn {
    border-radius: 10px;
    font-weight: 600;
}

.fa-surface {
    background: linear-gradient(180deg, rgba(17, 28, 55, 0.92), rgba(11, 21, 42, 0.94));
    border: 1px solid rgba(84, 120, 200, 0.28);
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
}

.fa-form-panel-head,
.fa-records-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fa-form-panel-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.fa-form-panel-meta {
    font-size: 0.8rem;
    color: var(--app-muted);
}

.fa-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.3rem;
}

.fa-stats .fa-stat-card {
    border-radius: 14px;
    border: 1px solid rgba(121, 139, 190, 0.22);
    background: linear-gradient(165deg, rgba(18, 32, 62, 0.88), rgba(11, 21, 42, 0.94));
    padding: 0.85rem 1rem;
    box-shadow: 0 10px 26px rgba(3, 8, 20, 0.32);
    height: 100%;
}

.fa-stat-card--accent {
    border-color: rgba(34, 211, 238, 0.35);
}

.fa-stat-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.35rem;
}

.fa-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f1f5ff;
    line-height: 1.1;
}

.fa-table-panel {
    border: 1px solid rgba(121, 139, 190, 0.22);
    box-shadow: 0 12px 32px rgba(3, 8, 20, 0.35);
}

.fa-table-toolbar-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.fa-table-scroll {
    max-height: min(65vh, 640px);
}

.fa-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #d7e8ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(22, 38, 72, 0.97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.fa-table tbody tr:hover {
    background-color: rgba(34, 211, 238, 0.06);
}

.fa-customer-link {
    text-decoration: none;
}

.fa-customer-link:hover {
    color: #67e8f9 !important;
    text-decoration: underline;
}

.fa-empty-cell {
    padding: 2.5rem 1.5rem !important;
    vertical-align: middle;
}

.fa-empty-title {
    font-weight: 700;
    color: #e2e8f0;
}

.fa-info-panel-text {
    max-width: 36rem;
    line-height: 1.45;
}

.fa-type-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}

.fa-record-card {
    border-radius: 14px;
    border: 1px solid rgba(121, 139, 190, 0.25);
    background: linear-gradient(165deg, rgba(16, 30, 58, 0.9), rgba(10, 20, 40, 0.95));
    padding: 1rem 1.15rem;
    box-shadow: 0 8px 24px rgba(3, 8, 20, 0.28);
}

.fa-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem 1.25rem;
}

.fa-record-item {
    border: 1px solid rgba(100, 116, 139, 0.35);
    background: rgba(15, 23, 42, 0.42);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fa-record-item--wide {
    grid-column: span 2;
}

.fa-record-item--full {
    grid-column: 1 / -1;
}

.fa-record-label {
    display: block;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(191, 219, 254, 0.88);
    margin-bottom: 0.28rem;
    padding-bottom: 0.22rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.35);
}

.fa-record-value {
    font-size: 0.88rem;
    color: #e5e7eb;
    line-height: 1.4;
    word-break: break-word;
    font-weight: 500;
}

.fa-serial-mini-table {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
    max-width: none;
}

.fa-serial-mini-row {
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    align-items: center;
    border: 1px solid rgba(96, 165, 250, 0.32);
    background: rgba(30, 58, 138, 0.16);
    border-radius: 8px;
    overflow: hidden;
}

.fa-serial-mini-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #bfdbfe;
    background: rgba(30, 64, 175, 0.35);
    border-right: 1px solid rgba(96, 165, 250, 0.35);
    min-height: 1.6rem;
}

.fa-serial-mini-val {
    padding: 0.15rem 0.45rem;
    color: #e2e8f0;
    font-size: 0.79rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fa-transfer-box {
    border-radius: 12px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: rgba(8, 25, 38, 0.65);
}

.fa-record-gallery .faulty-image-link img {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fa-record-gallery .faulty-image-link:hover img {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.modern-upload-box {
    background: linear-gradient(180deg, rgba(22, 30, 53, 0.9), rgba(14, 20, 38, 0.92));
    border: 1px solid rgba(74, 105, 189, 0.55);
    border-radius: 14px;
    padding: 12px;
}

.modern-upload-main {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.modern-upload-main input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
    border: 0;
    padding: 0;
    margin: -1px;
}

.modern-upload-count {
    color: #8bd7ff;
    font-size: 0.88rem;
}

.file-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.file-chip {
    background: rgba(13, 110, 253, 0.15);
    border: 1px solid rgba(13, 110, 253, 0.45);
    color: #d7e9ff;
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 3px 10px;
}

.extra-file-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.extra-file-name {
    color: #c9ddff;
    font-size: 0.85rem;
    min-width: 180px;
}

.file-input-dark::file-selector-button {
    background: #0d6efd;
    color: #fff;
    border: 0;
    border-right: 1px solid #1e3a8a;
    padding: 0.38rem 0.8rem;
    margin-right: 0.75rem;
    border-radius: 0.35rem;
    font-weight: 600;
}

.file-input-dark:hover::file-selector-button {
    background: #0b5ed7;
}

@media (max-width: 576px) {
    .fa-flow-tabs .btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0.75rem;
        white-space: normal;
        line-height: 1.2;
    }

    .fa-record-item--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .fa-table-scroll {
        max-height: none;
    }

    .fa-table thead th {
        position: static;
    }
}

/* ——— Parçalar listesi ——— */
.parts-scope tr.part-row[id^='part-'],
.parts-scope .parts-mobile-card[id^='part-'] {
    scroll-margin-top: 5.5rem;
}

.page-sales tr.sales-missing-row[id^='sales-missing-part-'] {
    scroll-margin-top: 5.5rem;
}

.parts-scope {
    max-width: 100%;
}

.parts-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.15rem 1.25rem 1.2rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: linear-gradient(135deg, rgba(24, 32, 62, 0.92), rgba(12, 20, 42, 0.97));
    box-shadow: 0 12px 32px rgba(3, 8, 20, 0.32);
}

.parts-hero-main {
    flex: 1 1 16rem;
    min-width: 0;
}

.parts-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(165, 180, 252, 0.95);
    margin-bottom: 0;
}

.parts-title {
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #eef2ff;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.parts-hero-meta {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: var(--app-muted);
    max-width: 44rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.parts-meta-warn {
    color: #fbbf24;
    font-weight: 700;
}

.parts-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.parts-hero-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.parts-hero-pill-k {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.parts-hero-pill--warn {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(120, 53, 15, 0.2);
}

.parts-btn-new {
    font-weight: 700;
    border: none;
    color: #042f2e;
    background: linear-gradient(165deg, #5eead4, #2dd4bf);
    box-shadow: 0 4px 14px rgba(45, 212, 191, 0.25);
}

.parts-btn-new:hover {
    color: #022c22;
    filter: brightness(1.06);
}

.parts-btn-apply {
    font-weight: 700;
    border: 1px solid rgba(129, 140, 248, 0.55);
    color: #eef2ff;
    background: rgba(67, 56, 202, 0.45);
}

.parts-btn-apply:hover {
    color: #fff;
    background: rgba(79, 70, 229, 0.65);
    border-color: rgba(165, 180, 252, 0.65);
}

.parts-seg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    min-height: 2.25rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.45);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.parts-seg:hover {
    color: #f8fafc;
    border-color: rgba(199, 210, 254, 0.45);
    background: rgba(30, 41, 59, 0.75);
}

.parts-seg.is-active.is-all {
    color: #eff6ff;
    border-color: rgba(96, 165, 250, 0.65);
    background: rgba(37, 99, 235, 0.38);
}

.parts-seg.is-active.is-low {
    color: #fffbeb;
    border-color: rgba(251, 191, 36, 0.55);
    background: rgba(180, 83, 9, 0.35);
}

.parts-seg.is-active.is-sort {
    color: #ecfdf5;
    border-color: rgba(45, 212, 191, 0.5);
    background: rgba(6, 95, 70, 0.35);
}

.parts-filter-panel {
    padding: 1rem 1.2rem 1.15rem;
    border-radius: 14px;
}

.parts-filter-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.parts-filter-panel-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.parts-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.28rem;
}

.parts-filter-form .parts-segmented {
    row-gap: 0.5rem;
}

.parts-toolbar-count {
    font-variant-numeric: tabular-nums;
}

.parts-table-panel {
    border-radius: 14px;
    border: 1px solid rgba(121, 139, 190, 0.22);
    box-shadow: 0 12px 32px rgba(3, 8, 20, 0.35);
    /* overflow-hidden üst + hizalı satırda resim / + düğmesini üstten kırpıyordu */
    overflow: visible;
}

.parts-table-toolbar-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.parts-table-scroll {
    max-height: none;
}

.parts-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c5d2ef;
    background: rgba(22, 38, 72, 0.97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.parts-table tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.08);
}

.parts-table tbody td {
    vertical-align: middle;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.parts-scope .parts-table tbody td:first-child,
.parts-scope .parts-table thead th.parts-col-thumb {
    overflow: visible;
    vertical-align: middle;
}

.parts-scope .parts-table .part-image-cell {
    min-height: 48px;
    align-items: center;
    padding-top: 2px;
    padding-bottom: 2px;
}

.parts-scope .parts-table .part-thumb,
.parts-scope .parts-table .part-thumb-empty {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
}

.parts-scope .parts-table .part-image-preview-btn {
    flex-shrink: 0;
}

.parts-scope .parts-table .part-image-plus-btn {
    min-width: 26px;
    height: 26px;
    font-size: 1rem;
}

.parts-part-cell {
    max-width: 18rem;
}

.parts-part-code {
    display: block;
    font-size: 0.72rem;
    color: #7dd3fc;
    margin-bottom: 0.2rem;
    letter-spacing: 0.02em;
}

.parts-part-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    color: #f1f5f9;
    word-break: break-word;
}

.parts-motor-v-select {
    max-width: 6.25rem;
    font-size: 0.75rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.parts-motor-v-badge {
    font-weight: 700;
    font-size: 0.65rem;
    margin-right: 0.35rem;
}

.parts-motor-v-badge--220 {
    background: rgba(234, 179, 8, 0.88) !important;
    color: #1c1917 !important;
}

.parts-motor-v-badge--380 {
    background: rgba(59, 130, 246, 0.9) !important;
    color: #fff !important;
}

.parts-cat-cell {
    max-width: 11rem;
}

.parts-cat-text {
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(203, 213, 225, 0.92);
    word-break: break-word;
}

.parts-col-thumb {
    width: 1%;
    min-width: 4.5rem;
}

.parts-col-desc {
    max-width: 14rem;
}

.parts-desc-cell {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.parts-col-actions {
    width: 1%;
    white-space: nowrap;
}

.parts-action-stack a.parts-act {
    text-decoration: none;
}

.parts-action-stack {
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-end;
}

.parts-action-cell .parts-act {
    min-height: 2.1rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    line-height: 1.2;
}

.parts-action-cell .parts-act.parts-act--icon {
    width: 2.1rem;
    min-width: 2.1rem;
    padding: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.parts-action-cell .parts-act.parts-act--icon svg {
    display: block;
    opacity: 0.96;
}

.parts-action-cell .parts-act.parts-act--icon:hover svg {
    opacity: 1;
    transform: scale(1.03);
}

.parts-act--primary {
    color: #dbeafe;
    border: 1px solid rgba(96, 165, 250, 0.55);
    background: rgba(30, 58, 138, 0.45);
}

.parts-act--primary:hover {
    color: #fff;
    background: rgba(37, 99, 235, 0.55);
    border-color: rgba(147, 197, 253, 0.65);
}

.parts-act--muted {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.5);
}

.parts-act--muted:hover {
    color: #fff;
    border-color: rgba(203, 213, 225, 0.45);
    background: rgba(51, 65, 85, 0.65);
}

.parts-act--danger {
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.25);
}

.parts-act--danger:hover {
    color: #fff;
    background: rgba(185, 28, 28, 0.45);
    border-color: rgba(252, 165, 165, 0.55);
}

.parts-status-badge {
    font-weight: 600;
    font-size: 0.72rem;
}

.parts-empty-cell {
    padding: 0 !important;
    border: none;
}

.parts-empty-title {
    font-weight: 700;
    color: #e2e8f0;
}

.parts-mobile-card {
    border-radius: 14px;
    border: 1px solid rgba(121, 139, 190, 0.22);
    background: linear-gradient(165deg, rgba(16, 30, 58, 0.88), rgba(10, 20, 40, 0.94));
    box-shadow: 0 8px 22px rgba(3, 8, 20, 0.28);
}

@media (max-width: 767.98px) {
    .parts-table-scroll {
        max-height: none;
    }

    .parts-table thead th {
        position: static;
    }
}

.quick-menu-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.quick-menu-sub {
    margin-top: 4px;
    font-size: 0.8rem;
    color: rgba(242, 246, 255, 0.82);
}

.dashboard-desktop-only {
    display: block;
}

.dashboard-mobile-open {
    display: block;
}

.mobile-part-actions .btn {
    white-space: nowrap;
}

/* Mobil parça kartı — düzenle/sil simge butonları (masaüstü ile aynı ikonlar) */
.mobile-part-actions .parts-act.parts-act--icon {
    width: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mobile-part-actions .parts-act.parts-act--icon svg {
    display: block;
    opacity: 0.96;
}

.mobile-part-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f4f6ff;
}

.mobile-part-image-wrap {
    flex: 0 0 auto;
}

.mobile-part-image {
    width: 54px;
    height: 54px;
    object-fit: cover;
}

.mobile-part-image-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ba8c9;
}

.mobile-move-btn {
    white-space: nowrap;
}

.mobile-stock-value {
    color: #22d3ee;
    font-weight: 800;
    font-size: 1.02rem;
}

.mobile-stock-value.is-ok {
    color: #22c55e;
}

.mobile-stock-value.is-low {
    color: #ef4444;
}

.app-qty-highlight {
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .app-qty-highlight {
        color: #22d3ee !important;
        font-weight: 800;
    }
}

@media (max-width: 768px) {
    main.container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }

    .panel,
    .card {
        border-radius: 12px;
        padding: 10px;
        max-width: 100%;
    }

    .table {
        font-size: 0.86rem;
    }

    /* Varsayılan: satır kırılsın; yatay kaydırma sadece .table-responsive içinde */
    .table td,
    .table th {
        white-space: normal;
        vertical-align: top;
        word-break: break-word;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .table-responsive .table td,
    .table-responsive .table th {
        white-space: nowrap;
    }

    .form-control,
    .form-select,
    .btn {
        min-height: 40px;
    }

    .card .btn.btn-sm,
    .panel .btn.btn-sm {
        min-height: 38px;
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .mobile-part-name,
    .mobile-name-wrap {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .app-brand-logo {
        width: clamp(95px, 30vw, 140px);
        max-height: 36px;
    }

    .quick-menu-card {
        min-height: 84px;
        padding: 10px;
    }

    .page-dashboard main.container {
        min-height: calc(100dvh - 64px);
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .page-dashboard .quick-menu-grid {
        margin-bottom: 0 !important;
    }

    .page-dashboard .quick-menu-grid > [class*="col-6"] {
        display: flex;
    }

    .page-dashboard .quick-menu-grid .quick-menu-card {
        flex: 1 1 auto;
        min-height: 88px;
    }

    .dashboard-desktop-only {
        display: none !important;
    }

    .dashboard-mobile-open {
        display: block !important;
    }

    .dash-pro-scope .dash-pro-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .dash-pro-scope .dash-pro-title {
        font-size: 1.12rem;
    }

    .dash-pro-scope .dash-pro-hero-actions {
        width: 100%;
    }

    .dash-pro-scope .dash-pro-hero-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .dash-pro-scope .dash-pro-pipeline {
        font-size: 0.8rem;
        gap: 0.35rem !important;
    }

    .dash-pro-scope .dash-kpi-card .card-body {
        padding: 0.85rem 0.75rem;
        gap: 0.65rem !important;
    }

    .dash-pro-scope .dash-kpi-icon {
        width: 38px;
        height: 38px;
    }

    .dash-pro-scope .dash-kpi-val {
        font-size: 1.2rem;
    }

    .dash-pro-scope.dash-v2 .dash-v2-flow-card-head .btn {
        width: 100%;
    }

    .dash-pro-scope.dash-v2 .dash-v2-stat-pill {
        flex: 1 1 calc(50% - 0.35rem);
    }

    .dash-pro-scope.dash-v2 .dash-v2-tagline {
        font-size: 0.78rem;
    }
}

/* Parçalar — kategori: sağ üst köşede küçük açılır menü */
.parts-cat-corner-btn {
    font-size: 0.78rem !important;
    font-weight: 600;
    padding: 0.28rem 0.55rem !important;
}
.parts-cat-dropdown-menu {
    min-width: 15rem;
    max-width: 17rem;
    border: 1px solid var(--app-border);
    background: var(--app-surface, #0f1b33);
}
.parts-cat-drop-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--app-muted);
    margin-bottom: 0.35rem;
    padding-left: 0.15rem;
}
.parts-cat-drop-input {
    min-width: 0;
}

