:root {
    --app-navy: #0f2f57;
    --app-navy-2: #173f70;
    --app-blue: #2563eb;
    --app-bg: #f4f7fb;
    --app-surface: #ffffff;
    --app-border: #d8e0ea;
    --app-muted: #64748b;
    --app-text: #172033;
    --app-success: #15803d;
    --app-warning: #c46a00;
    --app-danger: #b42318;
    --app-shadow: 0 12px 34px rgba(15, 47, 87, .08);
    --app-sidebar-width: 292px;
}

html {
    min-height: 100%;
}

body.app-body {
    min-height: 100vh;
    background: var(--app-bg);
    color: var(--app-text);
    font-size: .95rem;
    letter-spacing: 0;
}

a {
    color: var(--app-blue);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--app-navy);
    color: #fff;
    box-shadow: 8px 0 24px rgba(15, 47, 87, .18);
    z-index: 1030;
}

.app-sidebar-brand {
    min-height: 76px;
    display: flex;
    align-items: center;
    padding: 1rem 1rem .9rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.app-brand-mark {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.app-brand-mark:hover {
    color: #fff;
}

.brand-symbol {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    background: #fff;
    color: var(--app-navy);
    font-weight: 800;
}

.app-brand-mark strong,
.app-brand-mark small {
    display: block;
    line-height: 1.2;
}

.app-brand-mark small {
    color: rgba(255, 255, 255, .72);
    font-size: .8rem;
    margin-top: .2rem;
}

.app-menu {
    padding: .9rem .75rem 1.5rem;
}

.app-menu-section {
    margin: 1.2rem .45rem .45rem;
    padding: .55rem .25rem .25rem;
    color: rgba(255, 255, 255, .7);
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.app-menu-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 42px;
    padding: .55rem .7rem;
    color: rgba(255, 255, 255, .84);
    text-decoration: none;
    border-radius: .55rem;
    margin-bottom: .15rem;
}

.app-menu-link:hover,
.app-menu-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.app-menu-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .12));
    box-shadow: inset 4px 0 0 #93c5fd, 0 8px 18px rgba(0, 0, 0, .13);
    font-weight: 850;
}

.app-menu-link svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: currentColor;
    flex: 0 0 auto;
    opacity: .92;
}

.app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.4rem;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(12px);
}

.app-content {
    width: 100%;
    max-width: 1560px;
    padding: 1.35rem;
}

.topbar-title {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

/* Sayfa adı üst çubukta tek h1'dir (Faz 43); eski strong görünümünü korur. */
.topbar-title h1 {
    margin: 0;
    font-weight: 700;
    line-height: inherit;
}

.topbar-title :is(strong, h1) {
    color: var(--app-navy);
    font-size: 1rem;
}

.topbar-title span {
    color: var(--app-muted);
    font-size: .82rem;
}

.topbar-user {
    margin-left: auto;
}

.topbar-user-button {
    display: flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
}

.topbar-username {
    font-weight: 700;
    color: var(--app-text);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--app-border);
    background: #fff;
}

.btn-icon span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--app-navy);
}

.app-sidebar-backdrop {
    display: none;
}

.app-messages {
    display: grid;
    gap: .75rem;
    margin-bottom: 1rem;
}

.app-alert {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    border: 1px solid transparent;
    box-shadow: 0 10px 25px rgba(15, 47, 87, .08);
    margin: 0;
    padding: .85rem 1rem;
}

.app-alert-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: rgba(255, 255, 255, .72);
}

.app-alert-icon::before {
    content: "i";
}

.alert-success .app-alert-icon::before {
    content: "✓";
}

.alert-warning .app-alert-icon::before {
    content: "!";
}

.alert-danger .app-alert-icon::before {
    content: "!";
}

.app-alert-text {
    min-width: 0;
}

.card {
    border: 1px solid rgba(216, 224, 234, .85) !important;
    border-radius: .75rem;
    box-shadow: var(--app-shadow) !important;
}

.card-header,
.card-footer {
    border-color: var(--app-border);
    background: #fff;
}

.card-header {
    font-weight: 800;
    color: var(--app-navy);
}

.table-responsive {
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table-card .table-responsive {
    max-height: min(68vh, 760px);
    overflow: auto;
}

.table {
    --bs-table-color: var(--app-text);
    --bs-table-hover-bg: #f2f7ff;
    vertical-align: middle;
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #eef4fb !important;
    color: #334155;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid var(--app-border);
    box-shadow: inset 0 -1px 0 var(--app-border);
}

.table tbody td {
    border-color: #edf2f7;
}

.table-hover tbody tr:hover {
    background: #f8fbff;
}

.table td.cell-empty {
    color: #94a3b8;
    font-weight: 650;
}

.form-control,
.form-select,
.form-check-input {
    min-height: 2.55rem;
    border-color: #cbd5e1;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #79a9ee;
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .14);
}

.form-label {
    font-weight: 700;
    color: #334155;
}

.btn {
    min-height: 2.45rem;
    border-radius: .55rem;
    font-weight: 700;
    white-space: normal;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
}

.btn-action-icon {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    flex: 0 0 1rem;
}

.btn-primary {
    --bs-btn-bg: var(--app-navy);
    --bs-btn-border-color: var(--app-navy);
    --bs-btn-hover-bg: var(--app-navy-2);
    --bs-btn-hover-border-color: var(--app-navy-2);
}

.btn-outline-primary {
    --bs-btn-color: var(--app-navy);
    --bs-btn-border-color: #9bb2cc;
    --bs-btn-hover-bg: var(--app-navy);
    --bs-btn-hover-border-color: var(--app-navy);
}

.btn-success {
    --bs-btn-bg: var(--app-success);
    --bs-btn-border-color: var(--app-success);
}

.btn-warning {
    --bs-btn-bg: #f59e0b;
    --bs-btn-border-color: #f59e0b;
    --bs-btn-color: #111827;
}

.btn-danger {
    --bs-btn-bg: var(--app-danger);
    --bs-btn-border-color: var(--app-danger);
}

.badge {
    border-radius: 999px;
    padding: .38rem .58rem;
    font-weight: 800;
}

.app-badge-primary,
.kurum-badge {
    background: var(--app-navy);
    color: #fff;
}

.app-badge-soft,
.rol-badge {
    background: #e8eef7;
    color: var(--app-navy);
}

.text-bg-primary {
    background: var(--app-navy) !important;
}

.text-bg-success,
.bg-success {
    background: var(--app-success) !important;
}

.text-bg-warning,
.bg-warning {
    background: #fbbf24 !important;
    color: #2f2200 !important;
}

.text-bg-danger,
.bg-danger {
    background: var(--app-danger) !important;
}

.alert {
    border-radius: .75rem;
}

.page-hero {
    margin-bottom: 1.25rem;
}

.page-kicker {
    color: var(--app-muted);
    font-size: .86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-shell {
    display: grid;
    gap: 1rem;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color: var(--app-text);
}

.dashboard-shell *,
.dashboard-shell *::before,
.dashboard-shell *::after {
    letter-spacing: 0;
}

.dashboard-shell a:focus-visible,
.dashboard-shell button:focus-visible,
.dashboard-shell .btn:focus-visible {
    outline: 3px solid var(--app-blue);
    outline-offset: 2px;
}

.dashboard-header,
.dashboard-card,
.dashboard-panel {
    border: 1px solid rgba(216, 224, 234, .9);
    border-radius: .5rem;
    background: #fff;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.dashboard-header-copy {
    min-width: 0;
}

.dashboard-kicker {
    color: var(--app-muted);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.dashboard-header h1,
.dashboard-section h2,
.dashboard-panel h2 {
    margin: 0;
    color: var(--app-navy);
    font-weight: 700;
    line-height: 1.2;
}

.dashboard-header h1 {
    margin-top: .12rem;
    font-size: 1.45rem;
}

.dashboard-section h2,
.dashboard-panel h2 {
    margin-top: .1rem;
    font-size: 1.05rem;
}

.dashboard-header p {
    max-width: 58rem;
    margin: .25rem 0 0;
    color: var(--app-muted);
    font-size: .92rem;
    line-height: 1.45;
}

.dashboard-context {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    flex: 0 0 auto;
}

.dashboard-context-pill,
.dashboard-panel-meta {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    max-width: 100%;
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 47, 87, .18);
    background: var(--app-navy);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.dashboard-context-pill.is-soft,
.dashboard-panel-meta {
    background: #edf2f7;
    color: var(--app-navy);
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
}

.dashboard-kpi-card {
    position: relative;
    display: grid;
    min-height: 8.4rem;
    padding: 1rem;
    overflow: hidden;
    box-shadow: none;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.dashboard-kpi-card:hover,
.dashboard-kpi-card:focus-visible {
    transform: translateY(-1px);
    border-color: #b7cae1;
    box-shadow: 0 12px 24px rgba(15, 47, 87, .08);
}

.dashboard-kpi-label,
.dashboard-attention-label {
    color: #526174;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.25;
}

.dashboard-kpi-value {
    margin-top: .45rem;
    color: var(--app-navy);
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1;
    overflow-wrap: anywhere;
}

.dashboard-kpi-value.is-success {
    color: var(--app-success);
}

.dashboard-kpi-note {
    align-self: end;
    margin-top: .8rem;
    color: var(--app-muted);
    font-size: .82rem;
    font-weight: 400;
}

.dashboard-kpi-icon {
    position: absolute;
    right: .9rem;
    bottom: .9rem;
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    background: #eef4fb;
    color: var(--app-navy);
    opacity: .88;
}

.dashboard-kpi-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.dashboard-section,
.dashboard-panel {
    min-width: 0;
}

.dashboard-section-header,
.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
}

.dashboard-panel {
    padding: 1rem;
}

.dashboard-actions-panel,
.dashboard-movements-panel {
    display: grid;
    gap: .9rem;
}

.dashboard-attention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
    gap: .75rem;
    margin-top: .7rem;
}

.dashboard-attention-item {
    display: grid;
    gap: .45rem;
    min-height: 7rem;
    padding: .9rem;
    border: 1px solid #dce4ef;
    border-left-width: 4px;
    border-radius: .5rem;
    background: #fff;
    color: var(--app-text);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

a.dashboard-attention-item:hover,
a.dashboard-attention-item:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 47, 87, .07);
}

.dashboard-attention-item.is-muted {
    border-left-color: #94a3b8;
    background: #f8fafc;
}

.dashboard-attention-item.is-neutral {
    border-left-color: #64748b;
}

.dashboard-attention-item.is-warning {
    border-left-color: #d97706;
    background: #fffbeb;
}

.dashboard-attention-item.is-danger {
    border-left-color: var(--app-danger);
    background: #fff7f7;
}

.dashboard-attention-value {
    color: var(--app-navy);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    overflow-wrap: anywhere;
}

.dashboard-attention-item.is-danger .dashboard-attention-value {
    color: var(--app-danger);
}

.dashboard-attention-item.is-warning .dashboard-attention-value {
    color: #a85500;
}

.dashboard-attention-action {
    align-self: end;
    color: var(--app-muted);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.dashboard-action-grid {
    margin-top: .15rem;
}

.dashboard-action-btn {
    min-height: 2.75rem;
    text-align: center;
    line-height: 1.2;
}

.dashboard-inline-alert {
    display: block;
    margin-top: .75rem;
    padding: .7rem .8rem;
    border: 1px solid #dce4ef;
    border-radius: .5rem;
    background: #f8fafc;
    color: var(--app-text);
    text-decoration: none;
    font-size: .9rem;
}

.dashboard-inline-alert.is-warning {
    border-color: #f3c675;
    background: #fffbeb;
    color: #7c4a03;
}

.dashboard-inline-alert.is-danger {
    border-color: #f0b4ad;
    background: #fff1f2;
    color: #7f1d1d;
}

.dashboard-inline-alert.is-neutral {
    background: #f8fafc;
}

.dashboard-movement-list {
    display: grid;
    gap: .5rem;
}

.dashboard-movement-head,
.dashboard-movement-row {
    display: grid;
    grid-template-columns:
        minmax(5.5rem, .78fr)
        minmax(8.5rem, 1.45fr)
        minmax(6rem, .9fr)
        minmax(9.5rem, 1.25fr)
        minmax(5.5rem, .68fr)
        minmax(5rem, .55fr);
    gap: .75rem;
    align-items: center;
}

.dashboard-movement-head {
    padding: .65rem .8rem;
    border-radius: .5rem;
    background: #eef4fb;
    color: #526174;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-movement-row {
    padding: .75rem .8rem;
    border: 1px solid #e7edf5;
    border-radius: .5rem;
    background: #fff;
}

.dashboard-movement-cell {
    min-width: 0;
    color: #34404d;
    font-size: .9rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dashboard-cell-primary {
    color: var(--app-text);
    font-weight: 600;
}

.dashboard-cell-label {
    display: none;
}

.dashboard-status {
    justify-content: center;
    min-width: 4.4rem;
    font-weight: 700;
}

.dashboard-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    border: 1px dashed #cbd5e1;
    border-radius: .5rem;
    background: #f8fafc;
    color: var(--app-muted);
    font-weight: 600;
    text-align: center;
}

@media (max-width: 1099.98px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-movement-head {
        display: none;
    }

    .dashboard-movement-row {
        grid-template-columns: 1fr;
        gap: .55rem;
        padding: .9rem;
    }

    .dashboard-movement-cell {
        display: grid;
        grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr);
        gap: .55rem;
        align-items: start;
    }

    .dashboard-movement-cell .dashboard-cell-label {
        display: block;
        color: var(--app-muted);
        font-size: .78rem;
        font-weight: 700;
        line-height: 1.35;
    }

    .dashboard-status {
        width: fit-content;
    }
}

@media (max-width: 768px) {
    .dashboard-shell {
        gap: .8rem;
    }

    .dashboard-header,
    .dashboard-panel {
        padding: .85rem;
    }

    .dashboard-header,
    .dashboard-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-context {
        justify-content: flex-start;
        width: 100%;
    }

    .dashboard-header h1 {
        font-size: 1.3rem;
    }

    .dashboard-kpi-card {
        min-height: 7.8rem;
        padding: .85rem;
    }

    .dashboard-kpi-value {
        font-size: 1.8rem;
    }

    .dashboard-kpi-note {
        padding-right: 2.7rem;
    }
}

@media (max-width: 359.98px) {
    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-action-grid > [class*="col-"] {
        flex: 0 0 auto;
        width: 100%;
    }

    .dashboard-movement-cell {
        grid-template-columns: 1fr;
    }
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-header :is(h1, .page-title) {
    color: var(--app-navy);
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.filter-toolbar,
.action-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .75rem;
}

.filter-toolbar > * {
    min-width: min(100%, 180px);
}

.table-card .card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.table-card .table {
    margin-bottom: 0;
}

.table-card .table td,
.table-card .table th {
    white-space: nowrap;
}

.table-card .table td.text-wrap,
.table-card .table th.text-wrap,
.table-card .table td:last-child {
    white-space: normal;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}

.table-actions .btn {
    min-height: 2rem;
    padding: .28rem .55rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
}

.responsive-table-scroll {
    scrollbar-gutter: stable both-edges;
}

.responsive-table-scroll::-webkit-scrollbar {
    height: .65rem;
}

.responsive-table-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 2rem 1rem;
    color: var(--app-muted);
    text-align: center;
    background: linear-gradient(180deg, #fff, #f8fbff);
    border-radius: .75rem;
}

.empty-state strong {
    color: var(--app-text);
}

.form-layout {
    display: grid;
    gap: 1rem;
}

.form-section {
    border: 1px solid var(--app-border);
    border-radius: .75rem;
    background: #fbfdff;
    padding: 1rem;
}

.form-section .invalid-feedback,
.form-section .text-danger.small,
.card .text-danger.small {
    margin-top: .35rem;
    padding: .35rem .55rem;
    border-radius: .45rem;
    background: #fff1f2;
    color: var(--app-danger) !important;
    font-weight: 700;
}

.form-text {
    color: var(--app-muted);
    font-size: .82rem;
}

.required-marker {
    color: var(--app-danger);
    font-weight: 900;
}

.form-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
    color: var(--app-navy);
    font-weight: 850;
}

.form-section-title span {
    color: var(--app-muted);
    font-size: .82rem;
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    border-radius: 999px;
    padding: .22rem .58rem;
    font-size: .78rem;
    font-weight: 850;
}

.status-badge.is-success {
    background: #dcfce7;
    color: #14532d;
}

.status-badge.is-muted {
    background: #e5e7eb;
    color: #374151;
}

.status-badge.is-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.is-info {
    background: #dbeafe;
    color: #1e3a8a;
}

.status-badge.is-danger,
.status-badge.status-kind-danger {
    background: #fee2e2;
    color: #7f1d1d;
}

.status-badge.status-kind-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-kind-success {
    background: #dcfce7;
    color: #14532d;
}

.status-badge.status-kind-muted {
    background: #e5e7eb;
    color: #374151;
}

.status-badge.status-kind-info {
    background: #dbeafe;
    color: #1e3a8a;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.1rem;
    min-height: 1.8rem;
    padding: .2rem .65rem;
    border-radius: .65rem;
    background: #eef4fb;
    color: var(--app-navy);
    font-weight: 850;
}

.modal .alert-danger,
.modal .alert-warning,
.critical-warning {
    border: 1px solid #f1b5ad;
    background: #fff1f2;
    color: #7f1d1d;
    font-weight: 700;
}

.modal .alert-info,
.safe-notice {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.btn-app-new,
.btn-app-save {
    --bs-btn-bg: var(--app-navy);
    --bs-btn-border-color: var(--app-navy);
    --bs-btn-hover-bg: var(--app-navy-2);
    --bs-btn-hover-border-color: var(--app-navy-2);
    color: #fff;
}

.btn-app-excel {
    --bs-btn-bg: var(--app-success);
    --bs-btn-border-color: var(--app-success);
    color: #fff;
}

.btn-app-pdf {
    --bs-btn-color: var(--app-danger);
    --bs-btn-border-color: #f0b4ad;
    --bs-btn-hover-bg: var(--app-danger);
    --bs-btn-hover-border-color: var(--app-danger);
}

.filtre-cip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #eef4fb;
    border: 1px solid var(--app-border);
    color: #34404d;
    border-radius: 999px;
    padding: .22rem .6rem;
    font-size: .8rem;
    font-weight: 700;
}

.filtre-cip .cip-kaldir {
    border: 0;
    background: transparent;
    line-height: 1;
    font-size: 1rem;
    color: #7a8694;
    cursor: pointer;
    padding: 0;
}

.filtre-cip .cip-kaldir:hover {
    color: var(--app-danger);
}

.multi-check-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--app-border);
    border-radius: .75rem;
    background: #fff;
    padding: .9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: .5rem .75rem;
}

.multi-check-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: contents;
}

.multi-check-list li,
.multi-check-list label {
    margin: 0;
}

.multi-check-list label {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    padding: .55rem .65rem;
    border: 1px solid #e7edf5;
    border-radius: .65rem;
    background: #f8fafc;
    font-weight: 650;
    color: #34404d;
}

.multi-check-list label:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.multi-check-list input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
}

.personel-check-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.personel-check-list label {
    align-items: flex-start;
    line-height: 1.25;
}

.form-summary-card {
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: .9rem;
    padding: 1rem;
}

.tuketim-form-card .form-control,
.tuketim-form-card .form-select,
.manual-stock-card .form-control,
.manual-stock-card .form-select,
.stock-line .form-control,
.stock-line .form-select {
    width: 100%;
    min-height: 2.65rem;
}

.form-field-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: .25rem;
    height: 100%;
    padding: .85rem;
    border: 1px solid #e7edf5;
    border-radius: .75rem;
    background: #fff;
}

.stock-settings-row .form-field-card .form-control,
.stock-settings-row .form-field-card .form-select {
    max-width: 100%;
}

.tuketim-switch-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: fit-content;
    min-height: 2.75rem;
    padding: .65rem .85rem;
    border: 1px solid #e7edf5;
    border-radius: .75rem;
    background: #fff;
}

.tuketim-switch-card .form-check-input {
    width: 2.4rem;
    height: 1.25rem;
    margin-top: 0;
    margin-left: 0; /* Bootstrap form-switch negatif boşluğu anahtarı kartın dışına taşıyordu */
    flex: 0 0 auto;
}

.tuketim-switch-card.form-switch {
    padding-left: .85rem;
}

.tuketim-switch-card .form-check-label {
    font-weight: 750;
    color: var(--app-navy);
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .45rem 0;
    border-bottom: 1px solid #e7edf5;
}

.summary-line:last-of-type {
    border-bottom: 0;
}

.summary-line span {
    color: var(--app-muted);
    font-size: .86rem;
}

.app-feature-card {
    border-color: #bfdbfe;
    box-shadow: 0 18px 40px rgba(15, 59, 112, .08);
}

.excel-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
    gap: 1rem;
    align-items: end;
    padding-top: .25rem;
}

.excel-upload-field {
    min-width: 0;
}

.excel-upload-button {
    min-height: 2.6rem;
}

.manual-stock-section textarea {
    min-height: 6.75rem;
}

.manual-stock-row > div {
    min-width: 0;
}

.kalem-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem;
    margin-bottom: .85rem;
    border: 1px solid #dbeafe;
    border-radius: .85rem;
    background: #f8fbff;
}

.duplicate-kalem-warning {
    border-color: #fbbf24;
    background: #fffbeb;
    color: #92400e;
}

.stock-line {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(180px, .65fr) minmax(260px, 1fr) minmax(120px, auto);
    gap: .85rem;
    align-items: start;
    padding: .9rem;
    border: 1px solid var(--app-border);
    border-radius: .75rem;
    background: #fff;
    margin-bottom: .75rem;
}

.stock-line-head {
    grid-template-columns: minmax(280px, 1.35fr) minmax(180px, .65fr) minmax(260px, 1fr) minmax(120px, auto);
    gap: .85rem;
    padding: 0 .75rem .35rem;
    color: var(--app-muted);
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.stock-line textarea,
.stock-line input[type="text"] {
    min-height: 2.65rem;
}

.stock-line .form-label {
    color: var(--app-muted);
    font-weight: 800;
}

.stock-line-action {
    display: flex;
    align-items: end;
    height: 100%;
    padding-top: 1.7rem;
}

.stock-line-action .btn {
    width: 100%;
    min-height: 2.65rem;
}

.metric-card {
    border-left: 4px solid var(--app-navy);
}

.metric-label {
    color: var(--app-muted);
    font-size: .86rem;
    font-weight: 750;
}

.metric-value {
    color: var(--app-navy);
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 900;
}

.detail-list dt {
    color: var(--app-muted);
}

.detail-list dd {
    font-weight: 650;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background:
        linear-gradient(145deg, rgba(15, 47, 87, .92), rgba(23, 63, 112, .76)),
        radial-gradient(circle at top right, rgba(255, 255, 255, .18), transparent 28%),
        var(--app-navy);
}

.login-shell > .row {
    width: 100%;
}

.login-card {
    overflow: hidden;
}

.password-toggle-button {
    min-width: 5.4rem;
}

.caps-lock-warning {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #92400e;
    font-weight: 750;
}

.caps-lock-warning[hidden] {
    display: none !important;
}

.database-info-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    border: 1px solid #bfdbfe;
    border-radius: .75rem;
    background: #eff6ff;
    color: #1e3a8a;
    padding: .75rem .9rem;
}

.database-info-panel code {
    color: #0f2f57;
}

.login-brand-symbol {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--app-navy);
    color: #fff;
    font-weight: 850;
    box-shadow: 0 14px 28px rgba(15, 47, 87, .18);
}

.btn-app-new:focus,
.btn-app-save:focus,
.btn-app-excel:focus,
.btn-app-pdf:focus,
.table-actions .btn:focus {
    outline: 3px solid var(--app-blue);
    outline-offset: 2px;
}

.app-menu-link:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

@media (max-width: 1199.98px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform .18s ease;
        width: var(--app-sidebar-width);
    }

    .sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .btn-icon {
        display: inline-flex;
    }

    .app-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .42);
        z-index: 1025;
    }

    .sidebar-open .app-sidebar-backdrop {
        display: block;
    }
}

@media (max-width: 768px) {
    .app-topbar {
        padding: .75rem;
    }

    .app-content {
        padding: .75rem;
    }

    .topbar-title span {
        display: none;
    }

    .topbar-user-button .badge {
        display: none;
    }

    .btn-lg {
        width: 100%;
    }

    .form-control,
    .form-select,
    .form-control-sm,
    .form-select-sm,
    textarea,
    input[type="text"],
    input[type="search"],
    input[type="password"],
    input[type="number"],
    input[type="email"],
    input[type="date"] {
        font-size: 16px;
    }

    .table {
        font-size: .9rem;
    }

    .page-header {
        gap: .75rem;
    }

    .page-actions,
    .action-toolbar,
    .filter-toolbar {
        width: 100%;
    }

    .page-actions > *,
    .action-toolbar > *,
    .filter-toolbar > * {
        flex: 1 1 100%;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .table-actions .btn,
    .table-actions form,
    .table-actions form .btn {
        width: 100%;
    }

    .app-alert {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        padding: .75rem;
    }

    .app-alert-icon {
        width: 28px;
        height: 28px;
    }

    .stock-line {
        grid-template-columns: 1fr;
    }

    .stock-line-action {
        padding-top: 0;
    }

    .kalem-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .kalem-toolbar .btn {
        width: 100%;
    }

    .excel-upload-row {
        grid-template-columns: 1fr;
    }

    .excel-upload-button {
        width: 100%;
    }

    .multi-check-list,
    .personel-check-list {
        grid-template-columns: 1fr;
        max-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .app-sidebar {
        width: min(88vw, var(--app-sidebar-width));
    }

    .modal-dialog {
        margin: .5rem;
    }

    .modal-body {
        max-height: 75vh;
        overflow-y: auto;
    }

    .modal-footer {
        flex-wrap: wrap;
    }

    .modal-footer > .btn {
        flex: 1 1 auto;
    }
}

/* MEKAN_MULTI_RESPONSIVE_MARKER */
#id_sorumlu_personeller {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: .65rem;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: .85rem;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}

#id_sorumlu_personeller > div {
    margin: 0;
}

#id_sorumlu_personeller label {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    width: 100%;
    margin: 0;
    padding: .65rem .75rem;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #ffffff;
    color: #0f2748;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

#id_sorumlu_personeller label:hover {
    border-color: #0f3b70;
    background: #f1f7ff;
    box-shadow: 0 8px 20px rgba(15, 59, 112, .08);
}

#id_sorumlu_personeller input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0f3b70;
}

#id_sorumlu_personeller input[type="checkbox"]:checked + span,
#id_sorumlu_personeller label:has(input[type="checkbox"]:checked) {
    border-color: #0f3b70;
    background: #eaf3ff;
}

.form-text,
.helptext {
    color: #64748b;
    font-size: .82rem;
}

@media (max-width: 768px) {
    #id_sorumlu_personeller {
        grid-template-columns: 1fr;
        max-height: 340px;
    }
}

/* DEMIRBAS_DETAY_HELPERS */
.demirbas-detay-header h1 {
    color: var(--app-navy);
}

.demirbas-detay-header .status-badge {
    line-height: 1.2;
}

.demirbas-detay-header .page-actions {
    align-items: flex-start;
}

.demirbas-detay-header .alert {
    border-radius: .65rem;
}

@media (max-width: 768px) {
    .demirbas-detay-header .page-actions {
        width: 100%;
    }

    .demirbas-detay-header .page-actions > * {
        flex: 1 1 100%;
    }
}

