/* =====================================================================
   KartelaStokTakip - site.css
   ASCII only (file may be saved as ANSI).
   Order: shell (01-07), system pages (08-13), shared components (14),
   then app pages in menu order (15-29).
   Within each section: base rules first, then @media rules.

   01 BASE              08 AUTH               15 ANA SAYFA              32 MOBIL UYUM
   02 LAYOUT            09 PROFILE            16 ETIKET BASIM           33 MOBIL UYGULAMA
   03 TOPBAR            10 USER MANAGEMENT    17 ETIKET TASARIMI        34 WEB TALEPLERI (Library entegrasyonu)
   04 PAGE CONTENT      11 ROLES              18 ETIKET BASKI SAYFASI
   05 BOOTSTRAP         12 AUDIT LOG          19 DEPO OKUTMA
   06 NOTIFICATIONS     13 EMAIL SETTINGS     20 DEPO YERLERI
   07 USER MENU         14 ORTAK BILESENLER   21 YER ETIKETI
                                              22 KARTELALAR
                                              23 KARTELA DETAY
                                              24 STOK HAREKETLERI
                                              25 MAL KABUL / MALIYET
                                              26 MUSTERILER
                                              27 TALEPLER
                                              28 SEVKIYAT
                                              29 SEVK FISI
                                              30 SAYIM
                                              31 RAPORLAR
   ===================================================================== */


/* =====================================================================
   01 - BASE: variables, html, body, links
   ===================================================================== */

:root {
    --navy: #14233b;
    --navy-light: #1d3150;
    --blue: #356df3;
    --blue-hover: #2458d4;
    --page-bg: #f4f7fb;
    --text: #202c3c;
    --muted: #8a96a8;
    --border: #e7ecf3;
    --success: #22b573;
    --white: #ffffff;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

a {
    transition: color .2s ease, background .2s ease;
}


/* =====================================================================
   02 - LAYOUT: app shell, sidebar, menu, overlay
   ===================================================================== */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.main-area {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.brand:hover {
    color: var(--white);
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 15px;
    color: white !important;
    width: 100%;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 255px;
    min-width: 255px;
    padding: 28px 16px;
    background: var(--navy);
    color: var(--white);
}

.menu-caption {
    margin: 18px 10px 7px;
    color: #8294af;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 45px;
    padding: 0 13px;
    border-radius: 9px;
    color: #c8d3e4;
    text-decoration: none;
    transition: background .2s, color .2s;
}

    .menu-link:hover,
    .menu-link.active {
        background: var(--navy-light);
        color: var(--white);
    }

.menu-icon {
    display: inline-block;
    width: 22px;
    flex-shrink: 0;
    text-align: center;
    font-size: 18px;
}

.sidebar-overlay {
    display: none;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    color: var(--white);
    text-align: center;
    text-decoration: none;
    gap: 10px;
    min-height: 0;
    margin-bottom: 8px;
    padding: 4px 8px 20px;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.brand-logo {
    object-fit: contain;
    background: transparent;
    border: 0;
    padding: 0;
    display: block;
    width: 150px;
    height: auto;
    max-height: 80px;
}

.brand strong {
    display: block;
    line-height: 1.2;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.brand small {
    display: block;
    white-space: nowrap;
    color: #8294af;
    font-size: 9px;
    letter-spacing: 1.6px;
}

.sidebar.sidebar-collapsed {
    overflow: visible;
}

    .sidebar.sidebar-collapsed .menu-link {
        position: relative;
    }

        .sidebar.sidebar-collapsed .menu-link:hover::after {
            content: attr(data-label);
            position: absolute;
            top: 50%;
            left: calc(100% + 12px);
            z-index: 1100;
            padding: 6px 12px;
            border-radius: 6px;
            background: #0d1a2e;
            box-shadow: 0 4px 14px rgb(0 0 0 / 25%);
            color: #fff;
            font-size: 12px;
            white-space: nowrap;
            pointer-events: none;
            transform: translateY(-50%);
        }

.menu-link.active {
    background: var(--navy-light);
    box-shadow: inset 3px 0 0 var(--blue);
    color: var(--white);
    font-weight: 600;
}

    .menu-link.active .menu-icon {
        color: #8fb0ff;
    }

.old .audit-values-heading {
    color: #d14343;
    border-color: #f1c6c6;
}

.new .audit-values-heading {
    color: #16834b;
    border-color: #b9e2ca;
}

@media (min-width: 901px) {
    .sidebar.sidebar-collapsed {
        flex: 0 0 76px !important;
        width: 76px !important;
        min-width: 76px !important;
        padding: 28px 8px;
    }

        .sidebar.sidebar-collapsed .brand {
            min-height: 70px;
            padding: 8px 0;
        }

        .sidebar.sidebar-collapsed .brand-logo {
            width: 42px;
            height: 42px;
        }

        .sidebar.sidebar-collapsed .brand-text,
        .sidebar.sidebar-collapsed .menu-caption,
        .sidebar.sidebar-collapsed .menu-link > span:not(.menu-icon) {
            display: none !important;
        }

        .sidebar.sidebar-collapsed .menu-link {
            justify-content: center;
            padding: 0;
            width: 100%;
        }

        .sidebar.sidebar-collapsed .menu-icon {
            width: auto;
            font-size: 20px;
        }

    .app-shell {
        display: flex;
    }

        .app-shell > .sidebar {
            flex: 0 0 255px;
            width: 255px;
            min-width: 0;
            transition: flex-basis .25s ease, width .25s ease;
            /* Menu yerinde kalir, sayfa kayar; menu uzunsa kendi icinde kayar */
            position: sticky;
            top: 0;
            height: 100vh;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #2c3e5c transparent;
        }

            /* Sabit yukseklikte ogeler ezilmesin, sigmazsa menu kayar */
            .app-shell > .sidebar > * {
                flex-shrink: 0;
            }

        .app-shell > .main-area {
            flex: 1 1 auto;
            min-width: 0;
            width: calc(100% - 255px);
        }

        .app-shell:has(> .sidebar.sidebar-collapsed) > .sidebar {
            flex-basis: 76px;
            width: 76px;
        }

        .app-shell:has(> .sidebar.sidebar-collapsed) > .main-area {
            width: calc(100% - 76px);
        }
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1050;
        height: 100vh;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

        .sidebar.sidebar-open {
            transform: translateX(0);
        }

    .sidebar-overlay.overlay-visible {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgb(10 20 35 / 45%);
    }
}


/* =====================================================================
   03 - TOPBAR: page title bar, mobile menu button
   ===================================================================== */

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--success);
}

.topbar-user a {
    color: var(--text);
    text-decoration: none;
}

    .topbar-user a:hover {
        color: var(--blue);
    }

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

.topbar-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid #dce6ff;
    border-radius: 11px;
    background: #eef3ff;
    color: var(--blue);
    font-size: 21px;
}

.topbar-title strong {
    color: var(--text);
    font-size: 20px;
    font-weight: 650;
}

.topbar {
    display: flex;
    align-items: center;
    padding: 15px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    min-height: 76px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-page-title {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 19px;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.topbar-eyebrow {
    color: var(--muted);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1.2px;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-block;
    }

    .topbar {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .topbar-eyebrow {
        display: none;
    }

    .topbar-page-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}


/* =====================================================================
   04 - PAGE CONTENT AND FOOTER
   ===================================================================== */

.page-content {
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 32px;
}

.it-footer {
    padding: 12px 16px !important;
    text-align: center;
    gap: 4px;
}

.it-icon {
    font-size: 20px !important;
    line-height: 1.2;
    margin-bottom: 2px;
}

.it-title {
    font-size: 9px !important;
    line-height: 1.4;
    letter-spacing: 1.2px;
    margin-bottom: 2px;
}

.it-subtitle {
    font-size: 8px !important;
    line-height: 1.4;
    margin-bottom: 2px;
}

.it-services {
    font-size: 10px !important;
    line-height: 1.5;
    margin-top: 2px;
}

    .it-services span {
        margin: 0 5px;
    }

.page-content > .container,
.page-content > .container-fluid {
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 900px) {
    .page-content {
        padding: 22px 16px;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 18px 12px;
    }
}

@media (min-width: 901px) {
    .page-content {
        max-width: 1600px;
        padding: 20px 24px;
    }
}


/* =====================================================================
   05 - BOOTSTRAP OVERRIDES: buttons, forms, cards, tables
   ===================================================================== */

.btn-primary {
    border-color: var(--blue);
    background: var(--blue);
}

    .btn-primary:hover,
    .btn-primary:focus {
        border-color: var(--blue-hover);
        background: var(--blue-hover);
    }

.form-control,
.form-select {
    min-height: 43px;
    border-color: #dce3ed;
    border-radius: 8px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #85a6ff;
        box-shadow: 0 0 0 .2rem rgb(53 109 243 / 12%);
    }

.form-label {
    color: var(--text);
    font-weight: 600;
}

.card {
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 3px 14px rgb(25 42 70 / 3%);
}

.card-header {
    border-bottom-color: var(--border);
    background: var(--white);
}

.table {
    color: var(--text);
    vertical-align: middle;
}

    .table thead th {
        background: #f7f9fc;
        color: #66758b;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    .table > :not(caption) > * > * {
        padding: 12px 14px;
        border-bottom-color: var(--border);
    }


/* =====================================================================
   06 - NOTIFICATIONS (TempData Success/Error/Warning/Info)
   ===================================================================== */

.notification-area:empty {
    display: none;
}

.notification-area {
    margin-bottom: 18px;
}

.app-notification i {
    font-size: 18px;
    flex-shrink: 0;
}

.app-notification span {
    flex: 1;
}

.notification-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 23px;
    line-height: 1;
    opacity: .65;
    cursor: pointer;
}

    .notification-close:hover {
        opacity: 1;
    }

.notification-success {
    color: #176b42;
    background: #edf9f1;
    border-color: #c7ecd4;
}

.notification-error {
    color: #a52834;
    background: #fff0f0;
    border-color: #f4cccc;
}

.notification-warning {
    color: #805b10;
    background: #fff8e6;
    border-color: #f2e1a9;
}

.notification-info {
    color: #245b91;
    background: #eef6ff;
    border-color: #cfe3fa;
}

.app-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 3px 12px rgba(20, 40, 70, 0.04);
    transition: opacity .3s ease, transform .3s ease;
}

    .app-notification.notification-hiding {
        opacity: 0;
        transform: translateY(-8px);
    }


/* =====================================================================
   07 - USER MENU (topbar, right side)
   ===================================================================== */

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

    .login-button:hover {
        border-color: #cbd8f5;
        background: #f2f6ff;
        color: var(--blue);
    }

.user-session {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

    .user-profile-trigger:hover,
    .user-profile-trigger[aria-expanded="true"] {
        border-color: var(--border);
        background: #f7f9fc;
    }

.user-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e8efff;
    color: var(--blue);
    font-size: 17px;
    font-weight: 700;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.user-welcome {
    color: var(--muted);
    font-size: 11px;
}

.user-email {
    max-width: 220px;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-chevron {
    color: var(--muted);
    font-size: 18px;
}

.user-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1100;
    width: 270px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 35px rgb(20 35 59 / 14%);
}

    .user-profile-menu[hidden] {
        display: none !important;
    }

.profile-menu-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

    .profile-menu-heading strong {
        color: var(--text);
        font-size: 14px;
    }

    .profile-menu-heading span {
        overflow: hidden;
        color: var(--muted);
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.profile-menu-link,
.profile-logout-link {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

    .profile-menu-link:hover {
        background: #f2f6ff;
        color: var(--blue);
    }

    .profile-menu-link span,
    .profile-logout-link span {
        width: 20px;
        text-align: center;
    }

.profile-menu-divider {
    height: 1px;
    margin: 5px 0;
    background: var(--border);
}

.profile-logout-link {
    color: #d94343;
}

    .profile-logout-link:hover {
        background: #fff1f1;
        color: #b92828;
    }

@media (max-width: 600px) {
    .user-profile-trigger {
        gap: 6px;
        padding: 4px;
    }

    .user-email {
        max-width: 125px;
    }

    .user-profile-menu {
        width: 250px;
    }
}

/* ---- Avatar: calisilan yer (Istanbul Ofis / Adana Fabrika) ve secici ---- */
.user-yer {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 600;
    color: #1f55d6;
    white-space: nowrap;
}

.user-yer-yok {
    color: #b42318;
}

.profile-menu-grup {
    padding: 4px 14px 2px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8592a6;
}

.profile-yer {
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
}

.profile-yer-secili {
    font-weight: 700;
    color: #1f55d6;
}

.profile-menu-rol {
    display: block;
    font-size: 12px;
    color: #1f6feb;
    margin-top: 2px;
}


/* =====================================================================
   08 - AUTH PAGES: Login, Forgot/Reset password
   ===================================================================== */

.auth-page {
    min-height: 100vh;
    margin: 0;
    background: #f3f6fb;
}

.auth-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 30px 16px;
}

.auth-login-card {
    width: 100%;
    max-width: 400px;
    padding: 34px 32px;
    border: 1px solid #dce4ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 35px rgb(20 35 59 / 8%);
    text-align: center;
}

    .auth-login-card h1 {
        margin: 0;
        color: #14233b;
        font-size: 23px;
        font-weight: 750;
    }

.auth-subtitle {
    margin: 7px 0 26px;
    color: #718096;
    font-size: 13px;
}

.auth-login-card .form-label {
    font-size: 13px;
    font-weight: 600;
}

.auth-input {
    min-height: 45px;
    border-radius: 8px;
}

.auth-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 18px 0 22px;
    font-size: 12px;
}

    .auth-login-options label {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .auth-login-options a {
        color: #356df3;
        text-decoration: none;
    }

        .auth-login-options a:hover {
            text-decoration: underline;
        }

.auth-login-button {
    width: 100%;
    min-height: 45px;
    border: 0;
    border-radius: 8px;
    background: #2861ed;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

    .auth-login-button:hover {
        background: #194fd2;
    }

.auth-login-footer {
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid #e7ecf3;
    color: #8491a5;
    font-size: 9px;
}

@media (max-width: 450px) {
    .auth-login-card {
        padding: 28px 22px;
    }
}


/* =====================================================================
   09 - PAGE: PROFILE / ACCOUNT (Identity/Account/Manage)
   ===================================================================== */

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(20, 40, 80, 0.04);
}

.account-nav-title {
    margin: 3px 12px 12px;
    padding: 8px 12px 14px;
    color: #8491a5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 5px;
    border-radius: 10px;
    color: #526078;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
}

    .account-nav-link:hover {
        background: #f0f5ff;
        color: #3268ed;
    }

    .account-nav-link.active {
        background: #356cf4;
        color: #ffffff;
    }

.account-nav-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    font-size: 16px;
}

.account-page {
    width: 100%;
    margin: 0 auto;
}

.account-profile-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(24, 43, 79, 0.05);
}

.account-profile-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
    border-bottom: 1px solid #edf0f5;
}

    .account-profile-card-header h3 {
        margin: 0 0 5px;
        color: #182943;
        font-size: 17px;
        font-weight: 700;
    }

    .account-profile-card-header p {
        margin: 0;
        color: #8290a5;
        font-size: 12px;
    }

.account-profile-card-body {
    padding: 26px;
}

    .account-profile-card-body .form-label {
        color: #34435b;
        font-size: 13px;
        font-weight: 600;
    }

    .account-profile-card-body .form-control {
        min-height: 44px;
        border-color: #dce4ef;
        border-radius: 9px;
        font-size: 13px;
    }

        .account-profile-card-body .form-control:focus {
            border-color: #356cf4;
            box-shadow: 0 0 0 3px rgba(53, 108, 244, 0.10);
        }

.account-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

    .account-form-actions .btn {
        min-height: 44px;
        padding: 10px 20px;
        border-radius: 9px;
        font-size: 13px;
        font-weight: 600;
    }

.account-profile-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #edf3ff;
    color: #356cf4;
    font-size: 21px;
}

@media (max-width: 767px) {
    .account-page {
        max-width: 100%;
    }

    .account-profile-card-header,
    .account-profile-card-body {
        padding: 18px;
    }

    .account-form-actions .btn {
        width: 100%;
    }
}


/* =====================================================================
   10 - PAGE: USER MANAGEMENT (Admin/Index)
   ===================================================================== */

.user-initial {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e9ecef;
    color: #495057;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-table .badge {
    font-size: .8rem;
    padding: .4em .7em;
}

.user-row-passive td:nth-child(1),
.user-row-passive td:nth-child(2) {
    opacity: .55;
}
/* =====================================================================
   KULLANICI YONETIMI - yumusak rol rozetleri ve yer metni
   ===================================================================== */
.us-rol {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e7efff;
    color: #1f55d6;
    font-size: 12px;
    font-weight: 700;
}

.us-rol-yonetici {
    background: #efeaff;
    color: #5b3fd1;
}

.us-rol-yok {
    background: #eef1f5;
    color: #6b7689;
}

.us-yer {
    white-space: nowrap;
}

    .us-yer i {
        color: var(--blue);
        font-size: 13px;
    }

/* =====================================================================
   11 - PAGE: ROLES AND PERMISSIONS (Admin/Roller)
   ===================================================================== */

.perm-savebar {
    position: sticky;
    bottom: 0;
    padding: 12px 0;
    background: linear-gradient(to top,#f4f6fb 70%,rgba(244,246,251,0));
    z-index: 5;
}

.list-group-item.active small {
    color: rgba(255,255,255,.8);
}

/* =====================================================================
   ROL VE YETKILER - yere bagli yetki isareti, kaydedilmemis degisiklik
   ===================================================================== */
.rl-yer {
    margin-left: 4px;
    color: var(--blue);
    font-size: 12px;
}

.rl-degisti {
    color: #8a5a00;
    font-size: 13px;
    font-weight: 600;
}


/* =====================================================================
   12 - PAGE: AUDIT LOG (Audit/Index)
   ===================================================================== */

.audit-table td,
.audit-table th {
    padding: .6rem .75rem;
}

    .audit-table td:last-child {
        white-space: nowrap;
        width: 1%;
    }

.audit-detail-modal [hidden] {
    display: none !important;
}

.audit-detail-modal .modal-content {
    border: 0;
    border-radius: 14px;
}

.audit-detail-subtitle {
    color: #8290a5;
    font-size: 12px;
    margin-top: 3px;
}

.audit-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 16px;
    margin-bottom: 22px;
}

.audit-meta-wide {
    grid-column: 1 / -1;
}

.audit-meta-label {
    color: #8491a5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.audit-meta-value {
    color: #29364a;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.audit-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

    .audit-values-grid.single {
        grid-template-columns: 1fr;
    }

.audit-values-card {
    border: 1px solid;
    border-radius: 10px;
    overflow: hidden;
    min-width: 0;
}

    .audit-values-card.old {
        border-color: #f1c6c6;
        background: #fff6f6;
    }

    .audit-values-card.new {
        border-color: #b9e2ca;
        background: #f3fbf6;
    }

.audit-values-heading {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid;
}

.audit-values-content {
    padding: 8px 12px;
}

.audit-value-row {
    display: grid;
    grid-template-columns: minmax(90px, .8fr) minmax(0, 1.4fr);
    gap: 10px;
    padding: 7px 6px;
    border-bottom: 1px solid rgba(130, 145, 165, .15);
    font-size: 12px;
}

    .audit-value-row:last-child {
        border-bottom: 0;
    }

    .audit-value-row.changed {
        background: rgba(255, 193, 7, .16);
        border-radius: 5px;
        font-weight: 700;
    }

.audit-value-key {
    font-weight: 700;
    color: #5d6b80;
    overflow-wrap: anywhere;
}

.audit-value-text {
    color: #273449;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.audit-technical {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 16px;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f6f8fb;
}

.audit-technical-value {
    color: #4b5a70;
    font-size: 12px;
    overflow-wrap: anywhere;
}

@media (max-width: 650px) {
    .audit-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-values-grid {
        grid-template-columns: 1fr;
    }

    .audit-technical {
        grid-template-columns: 1fr;
    }
}


/* =====================================================================
   13 - PAGE: EMAIL SETTINGS (Admin/EmailSettings)
   ===================================================================== */

.email-settings-card,
.email-test-card {
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

    .email-settings-card .card-header {
        padding: 18px 22px;
        background: #fff;
        border-bottom: 1px solid #edf0f4;
    }

.email-section-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f0f5ff;
    color: #2563eb;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.email-settings-page .form-label {
    font-size: .9rem;
    color: #344054;
    margin-bottom: 8px;
}

.email-settings-page .form-control {
    min-height: 44px;
    border-color: #dce2ea;
    border-radius: 9px;
}

    .email-settings-page .form-control:focus {
        border-color: #86aefb;
        box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
    }

.email-settings-page .form-text {
    font-size: .8rem;
    color: #667085;
    margin-top: 7px;
}

.email-actions .btn,
.email-test-card .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .email-settings-card .card-header {
        padding: 15px;
    }

    .email-settings-page .form-control {
        min-height: 46px;
    }

    .email-actions .btn,
    .email-test-card .btn {
        width: 100%;
    }
}


/* =====================================================================
   14 - ORTAK BILESENLER
   Birden cok sayfada kullanilir: kart, tablo, durum rozeti, arama kutusu,
   filtre satiri, sekmeler, iki sutunlu sayfa, form izgarasi.
   ===================================================================== */



/* ---- Kart ---- */
.ek-kart {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.ek-kart-baslik {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    font-weight: 650;
}

.ek-kart-govde {
    padding: 20px 22px;
}

/* ---- Yazi: etiket, rozet, soluk, mono ---- */
.ek-etiket {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    color: #56647a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ek-rozet {
    padding: 2px 9px;
    border-radius: 999px;
    background: #eef2f8;
    color: #34445c;
    font-size: 11px;
    letter-spacing: .3px;
    text-transform: none;
}

.ek-soluk {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.ek-mono {
    font-family: Consolas, monospace;
    letter-spacing: .5px;
}

/* ---- Iki sutunlu sayfa (sol form, sag liste) ---- */
.ek-sayfa {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 1100px) {
    .ek-sayfa {
        grid-template-columns: 1fr;
    }
}

/* ---- Canli arama kutusu ve sonuc listesi ---- */
.ek-arama {
    position: relative;
    margin-bottom: 18px;
}

    .ek-arama > i {
        position: absolute;
        left: 13px;
        top: 11px;
        color: var(--muted);
    }

    .ek-arama > input {
        padding-left: 38px;
        min-height: 44px;
    }

.ek-sonuc {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(20, 35, 59, .12);
}

.ek-sonuc-satir {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #f0f3f7;
    background: none;
    text-align: left;
}

    .ek-sonuc-satir:hover {
        background: #eef3fe;
    }

.ek-sonuc-bos {
    padding: 12px 14px;
    color: var(--muted);
}

/* ---- Secili kayit kutusu ve desen kare ---- */
.ek-desen {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 2px, transparent 2px 4px), #2c4a7c;
}

.ek-secili {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px 14px;
    border: 1px solid #cfdcfb;
    border-radius: 10px;
    background: #f3f6fe;
}

/* ---- Bilgi notu ---- */
.ek-not {
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 10px;
    background: #f5f7fb;
    color: #56647a;
    font-size: 13px;
    line-height: 1.5;
}

/* ---- Tablo ---- */
.ek-tablo {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

    .ek-tablo th {
        padding: 10px 16px;
        border-bottom: 1px solid var(--border);
        color: #6b788c;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        text-align: left;
        white-space: nowrap;
    }

    .ek-tablo td {
        padding: 11px 16px;
        border-bottom: 1px solid #f0f3f7;
        vertical-align: middle;
    }

    .ek-tablo tr:last-child td {
        border-bottom: 0;
    }

/* ---- Durum rozetleri ---- */
.ek-durum {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eef1f5;
    color: #56647a;
    font-size: 12px;
    font-weight: 650;
}

.ek-durum-kismi {
    background: #e7efff;
    color: #1f55d6;
}

.ek-durum-tamam {
    background: #e4f6ec;
    color: #17784a;
}

.ek-durum-hata {
    background: #fdecec;
    color: #b42318;
}

.ok-rozet-sari {
    background: #fff6e0;
    color: #8a5a00;
}

/* ---- Filtre satiri (Kartelalar, Talepler, Hareketler, Musteriler, Sevkiyat) ----
   Alanlar yan yana, sigmazsa alt satira gecer; butonlar alanlarin altina hizali */
.kl-filtre {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 14px;
}

    .kl-filtre > div {
        min-width: 150px;
    }

    .kl-filtre > .flex-grow-1 {
        min-width: 260px;
    }

    .kl-filtre .btn {
        white-space: nowrap;
    }

/* Urunler sekmesi: Tumu / Stokta / Kritik / Tukenen */
.kl-hizli {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px 4px;
}

    .kl-hizli a {
        padding: 4px 12px;
        border: 1px solid var(--border);
        border-radius: 999px;
        font-size: 13px;
        color: inherit;
        text-decoration: none;
        background: #fff;
    }

        .kl-hizli a.aktif {
            background: #2F6DB5;
            border-color: #2F6DB5;
            color: #fff;
        }

/* Tiklanabilir sutun basligi */
.kl-sirala {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

    .kl-sirala:hover {
        text-decoration: underline;
    }

.kl-sekmeler {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

    .kl-sekmeler a {
        padding: 8px 16px;
        border-radius: 10px;
        color: #56647a;
        font-weight: 600;
        text-decoration: none;
    }

        .kl-sekmeler a:hover {
            background: #eef1f5;
        }

        .kl-sekmeler a.aktif {
            background: var(--blue);
            color: #fff;
        }

/* ---- Pasif satir ---- */
.rf-pasif td {
    color: var(--muted);
}

/* ---- Form izgarasi (3 sutun) ve bolum basliklari ---- */
.ms-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 16px;
}

    .ms-form .ms-genis {
        grid-column: 1 / -1;
    }

@media (max-width: 800px) {
    .ms-form {
        grid-template-columns: 1fr;
    }
}

.ms-bolum {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9eef5;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}

    .ms-bolum:first-child {
        margin-top: 0;
    }

.ms-form .ms-iki {
    grid-column: span 2;
}

/* Adres iki sutun genis, iki satir yuksek; Il ve Ulke yanina dizilir */
.ms-form .ms-adres {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

    .ms-form .ms-adres textarea {
        flex: 1;
        min-height: 90px;
        resize: vertical;
    }

.ms-form .ms-islem {
    display: flex;
    align-items: flex-start;
    padding-top: 1.55rem;
}

.ms-salt {
    background: #f8fafc;
    color: #475569;
    font-family: ui-monospace, Consolas, monospace;
}

@media (max-width: 800px) {
    .ms-form .ms-iki,
    .ms-form .ms-adres {
        grid-column: auto;
        grid-row: auto;
    }

    .ms-form .ms-islem {
        padding-top: 0;
    }
}

/* =====================================================================
   TALEP DETAY v2 - iki kolon: solda bilgi/kalemler/sevkler, sagda durum gecmisi
   ===================================================================== */

/* ---- Ust serit: talep no + durum, sagda islem butonlari ---- */
.tdx-ust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.tdx-baslik {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tdx-no {
    font-size: 22px;
    font-weight: 700;
}

.tdx-islemler {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

    /* Reddet / iptal / geri al: neden kutusu butonun altinda acilir pencere olarak */
    .tdx-islemler .td-neden {
        position: relative;
    }

        .tdx-islemler .td-neden[open] form {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            z-index: 30;
            width: 340px;
            margin: 0;
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: #fff;
            box-shadow: 0 10px 30px rgb(20 35 59 / 14%);
        }

/* ---- Sayfa duzeni ---- */
.tdx-sayfa {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}

.tdx-sol {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

    .tdx-sol > .app-notification {
        margin: 0;
    }

.tdx-sag {
    position: sticky;
    top: 20px;
}

@media (max-width: 1100px) {
    .tdx-sayfa {
        grid-template-columns: 1fr;
    }

    .tdx-sag {
        position: static;
    }
}

/* ---- Bilgi karti ---- */
.tdx-bilgi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px 22px;
}

.tdx-musteri {
    color: var(--text);
    font-size: 16px;
    font-weight: 650;
    text-decoration: none;
}

    .tdx-musteri:hover {
        color: var(--blue);
        text-decoration: underline;
    }

.tdx-alt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.tdx-deger {
    font-size: 15px;
    font-weight: 600;
}

    .tdx-deger .ek-soluk {
        font-size: 12px;
    }

.tdx-bilgi-alt {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px 22px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf1f6;
}

@media (max-width: 700px) {
    .tdx-bilgi-alt {
        grid-template-columns: 1fr;
    }
}

/* ---- Kalemler: gonderilen hapi ve kartela kodlari ---- */
.tdx-hap {
    display: inline-block;
    min-width: 54px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef1f5;
    color: #56647a;
    font-weight: 700;
    text-align: center;
}

.tdx-hap-tamam {
    background: #e4f6ec;
    color: #17784a;
}

.tdx-hap-kismi {
    background: #fff6e0;
    color: #8a5a00;
}

.tdx-kodlar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    max-width: 320px;
}

    .tdx-kodlar a {
        font-weight: 600;
        text-decoration: none;
    }

        .tdx-kodlar a:hover {
            text-decoration: underline;
        }

    .tdx-kodlar .tdx-gizli {
        display: none;
    }

    .tdx-kodlar.acik .tdx-gizli {
        display: inline;
    }

.tdx-daha {
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: #e7efff;
    color: #1f55d6;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* ---- Kalemler: parti numaralari (maliyeti yoksa turuncu) ---- */
.tdx-partiler {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.tdx-parti {
    color: #34445c;
    font-size: 12px;
}

.tdx-parti-eksik {
    padding: 1px 8px;
    border-radius: 999px;
    background: #fdecdc;
    color: #9a4a12;
    font-weight: 600;
}

.tdx-kodlar.acik .tdx-daha {
    display: none;
}

/* ---- Sevkler: her sevk bir kargo satiri ---- */
.tdx-sevk {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid #edf1f6;
}

    .tdx-sevk:last-child {
        border-bottom: 0;
    }

.tdx-sevk-ikon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 12px;
    background: #e7efff;
    color: #1f55d6;
    font-size: 22px;
}

.tdx-sevk-bilgi {
    flex: 1;
    min-width: 0;
}

.tdx-sevk-satir {
    margin-top: 3px;
    color: #56647a;
    font-size: 13px;
}

.tdx-sevk-sag {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 800px) {
    .tdx-sevk {
        flex-wrap: wrap;
    }

    .tdx-sevk-sag {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ---- Sag kolon: zaman cizelgesi ---- */
.tdx-adimlar {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tdx-adim {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 22px;
}

    .tdx-adim:last-child {
        padding-bottom: 0;
    }

    /* adimlari birlestiren dikey cizgi */
    .tdx-adim::before {
        content: "";
        position: absolute;
        top: 34px;
        bottom: 2px;
        left: 15px;
        width: 2px;
        background: #dfe6f0;
    }

    .tdx-adim:last-child::before {
        display: none;
    }

    .tdx-adim.tdx-tamam::before {
        background: var(--blue);
    }

.tdx-nokta {
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
}

.tdx-tamam .tdx-nokta {
    background: var(--blue);
    color: #fff;
}

.tdx-simdi .tdx-nokta {
    border: 2px solid var(--blue);
    background: #fff;
    color: var(--blue);
    font-size: 14px;
}

.tdx-bekliyor .tdx-nokta {
    border: 2px dashed #c3ccd9;
    background: #fff;
}

.tdx-red .tdx-nokta {
    background: #d92d20;
    color: #fff;
}

.tdx-adim strong {
    font-size: 15px;
}

.tdx-bekliyor strong {
    color: var(--muted);
    font-weight: 600;
}

.tdx-red strong {
    color: #b42318;
}

.tdx-adim-not {
    margin-top: 2px;
    color: #56647a;
    font-size: 13px;
}

/* ---- Sag kolon: tum hareketler (kucuk liste) ---- */
.tdx-hareket-baslik {
    margin: 22px 0 6px;
    padding-top: 16px;
    border-top: 1px solid #edf1f6;
    color: #56647a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tdx-hareketler li {
    font-size: 13px;
}


/* =====================================================================
   15 - PAGE: ANA SAYFA (Home/Index)
   Tasarim: selamlama, bekleyen isler seridi, 6 kart, paneller.
   ===================================================================== */



/* ---- Selamlama (acik mavi kutu) ve yer rozeti ---- */

.ds-selam {
    margin: 4px 0 16px;
    padding: 18px 22px;
    border: 1px solid #d7e2fb;
    border-radius: 14px;
    background: linear-gradient(135deg, #f3f7ff 0%, #e9f0fe 100%);
}

.ds-selam-ust {
    font-size: 13px;
    color: #8592a6;
}

.ds-selam h1 {
    margin: 2px 0 0;
    font-size: 28px;
    font-weight: 800;
    color: #14233b;
}

.ds-yer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    padding: 3px 10px;
    border: 1px solid #d7e2fb;
    border-radius: 999px;
    background: #fff;
    color: #1f55d6;
    font-size: 13px;
    font-weight: 600;
    vertical-align: middle;
}

/* ---- Bekleyen isler seridi ---- */
.ds-isler {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ds-isler-baslik {
    margin-right: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8592a6;
}

.ds-is {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid transparent;
}

    .ds-is:hover {
        filter: brightness(.97);
    }

.ds-is-sari {
    background: #fff6e0;
    color: #8a5a00;
    border-color: #f6e2ad;
}

.ds-is-mavi {
    background: #eef3fe;
    color: #1f55d6;
    border-color: #d7e2fb;
}

.ds-is-gri {
    background: #f1f3f6;
    color: #3d4a5c;
    border-color: #e1e6ed;
}

.ds-is-mor {
    background: #f3effd;
    color: #6741c7;
    border-color: #e2d9fa;
}

.ds-is-gecikme {
    margin-left: 2px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #fdecec;
    color: #b42318;
    font-size: 11px;
    font-weight: 700;
}

/* ---- Ust kartlar ---- */

.ds-kartlar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.ds-kart {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .15s;
}

    .ds-kart:hover {
        box-shadow: 0 6px 18px rgba(20, 35, 59, .08);
        color: inherit;
    }

    /* Kartin yazi kismi (ikon kutusuna dokunmaz) */
    .ds-kart > div {
        min-width: 0;
    }

        .ds-kart > div > span {
            display: block;
            font-size: 13px;
            color: #56647a;
        }

        .ds-kart > div > strong {
            display: block;
            font-size: 26px;
            font-weight: 800;
            line-height: 1.15;
        }

        .ds-kart > div > small {
            display: block;
            margin-top: 2px;
            font-size: 11px;
            color: #8592a6;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .ds-kart .ds-uyari {
        color: #b42318;
    }

.ds-ikon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 20px;
    line-height: 1;
}

.ds-ikon-mavi {
    background: #eef3fe;
    color: #1f55d6;
}

.ds-ikon-yesil {
    background: #e8f6ee;
    color: #17784a;
}

.ds-ikon-gri {
    background: #f1f3f6;
    color: #3d4a5c;
}

.ds-ikon-sari {
    background: #fff6e0;
    color: #b7791f;
}

.ds-ikon-kirmizi {
    background: #fdecec;
    color: #d92d20;
}

.ds-ikon-mor {
    background: #f3effd;
    color: #6741c7;
}

/* ---- Paneller ---- */
.ds-ikili {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.ks-bar-hucre {
    width: 35%;
}

.ks-bar {
    height: 8px;
    border-radius: 99px;
    background: #eef1f5;
    overflow: hidden;
}

.ks-dolu {
    height: 100%;
    border-radius: 99px;
    background: #d93a3a;
}

@media (max-width: 1400px) {
    .ds-kartlar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ds-kartlar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .ds-ikili {
        grid-template-columns: 1fr;
    }
}

/* Alt paneller: solda genis, sagda dar sutun (tasarim) */
.ds-alt {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 24px;
}

.ds-sutun {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.ds-kart-not {
    padding: 10px 16px;
    border-top: 1px solid #f0f3f7;
    color: #8592a6;
    font-size: 12px;
}

.ds-kisalt {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* "Yakinda" rozeti ve bos kutu */
.ds-yakinda {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px dashed #c9b6f2;
    border-radius: 999px;
    background: #f7f3fe;
    color: #6741c7;
    font-size: 12px;
    font-weight: 650;
}

.ds-yakinda-govde {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: #8592a6;
    font-size: 13px;
    line-height: 1.5;
}

    .ds-yakinda-govde > i {
        font-size: 28px;
        color: #c9b6f2;
    }

/* Talep kaynaklari: cubuklar */
.ds-kaynak {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.ds-kaynak-ad {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-kaynak-bar {
    height: 10px;
    border-radius: 99px;
    background: #f0f3f7;
    overflow: hidden;
}

    .ds-kaynak-bar > span {
        display: block;
        height: 100%;
        border-radius: 99px;
    }

.ds-kaynak-adet {
    text-align: right;
    color: #56647a;
}

@media (max-width: 1100px) {
    .ds-alt {
        grid-template-columns: 1fr;
    }
}

/* ---- Kisayol kartlari (_AppShortcuts / _SystemShortcuts partial'lari; ana sayfadan kaldirildi, partial'lar silinirse bu blok da silinebilir) ---- */
.home-section-title {
    font-size: .72rem;
    letter-spacing: .12em;
    font-weight: 700;
    color: #8491a5;
    margin: 24px 0 10px;
}

.home-card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
    transition: transform .12s ease, box-shadow .12s ease;
}

    .home-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
        color: inherit;
    }

    .home-card.is-soon {
        opacity: .6;
        pointer-events: none;
    }

.home-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef3ff;
    color: #2563eb;
    font-size: 1.25rem;
    flex-shrink: 0;
}


/* =====================================================================
   16 - PAGE: ETIKET BASIMI (Etiket/Index)
   ===================================================================== */

.ek-satir {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 12px;
    margin-bottom: 18px;
}

    .ek-satir .form-control {
        min-height: 44px;
    }

.ek-olcu {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .ek-olcu span {
        color: var(--muted);
    }

.ek-bilgi {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-bottom: 18px;
    padding: 0 14px;
    border: 1px solid #d9e0ea;
    border-radius: 10px;
}

.ek-butonlar {
    display: flex;
    gap: 10px;
}

    .ek-butonlar .btn {
        min-height: 44px;
        padding: 0 20px;
        font-weight: 650;
    }

/* Taleplerden bekleyenler */
.eb-kart {
    border-color: #e2d9fa;
}

    .eb-kart .ek-kart-baslik {
        background: #faf8ff;
        border-radius: 14px 14px 0 0;
    }

.eb-ikon {
    color: #6741c7;
}

/* Basilmadi rozeti */
.eb-basilmadi {
    background: #fdecec;
    color: #c0392b;
}

/* Baski sayfasi: "Etiketler basildi mi?" kutusu */
.baski-soru {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px;
    padding: 12px 16px;
    background: #fff8e6;
    border: 1px solid #f5d27a;
    border-radius: 10px;
    font-family: system-ui, sans-serif;
    font-size: 14px;
}

    .baski-soru[hidden] {
        display: none;
    }

    .baski-soru form {
        margin: 0;
    }

    .baski-soru button {
        padding: 6px 12px;
        border-radius: 8px;
        border: 1px solid #ccc;
        background: #fff;
        cursor: pointer;
    }

    .baski-soru .baski-evet {
        background: #1f6feb;
        border-color: #1f6feb;
        color: #fff;
    }

    .baski-soru .baski-sil {
        border-color: #c0392b;
        color: #c0392b;
    }

@media print {
    .baski-soru {
        display: none !important;
    }
}

/* =====================================================================
   17 - ETIKET TASARIMI (onizleme ve baski ayni)
   --w ve --h: etiket olcusu, ornek style="--w:60mm;--h:60mm"
   Yazilar etiket yuksekligine gore buyur/kuculur.
   ===================================================================== */

.etk {
    --pad: calc(var(--h) * 0.04);
    box-sizing: border-box;
    width: var(--w);
    height: var(--h);
    padding: var(--pad);
    display: flex;
    flex-direction: column;
    gap: calc(var(--pad) * 0.8);
    overflow: hidden;
    background: #fff;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: calc(var(--h) * 0.042);
    line-height: 1.15;
}

/* Cerceveli bilgi tablosu (orijinal etiket gibi) */
.etk-bilgi {
    width: 100%;
    border-collapse: collapse;
    border: .25mm solid #000;
}

    .etk-bilgi td {
        padding: .35em .45em;
        border-bottom: .2mm solid #000;
        vertical-align: middle;
    }

    .etk-bilgi tr:last-child td {
        border-bottom: 0;
    }

.etk-ad {
    font-size: 1.35em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.etk-baslik {
    font-weight: 700;
    white-space: nowrap;
    margin-right: .5em;
}

.etk-birim {
    font-size: .7em;
    font-weight: 400;
    margin-right: .5em;
}

/* Alt kisim: karekod + kartela kodu (eski barkodun yeri) */
.etk-alt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    min-height: 0;
}

.etk-qr {
    width: calc(var(--h) * 0.28);
    height: calc(var(--h) * 0.28);
    image-rendering: pixelated;
}

.etk-qr-kutu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15em;
}

.etk-kod-kucuk {
    font-family: Consolas, "Courier New", monospace;
    font-size: .95em;
    font-weight: 700;
    letter-spacing: .15em;
}

.etk-qr-ornek {
    display: flex;
    align-items: center;
    justify-content: center;
    border: .3mm dashed #999;
    color: #999;
    font-size: 3em;
}

.etk-kod {
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: .08em;
}

.etk-no {
    margin-top: .2em;
    font-size: 1em;
}

.etk-ornek {
    color: #9aa3af;
}

/* Ekrandaki onizleme alani */
.etk-onizleme-alan {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 24px;
    overflow: auto;
    border-radius: 12px;
    background: #f5f7fb;
}

.etk-cerceve .etk {
    border: 1px solid #c9d1dc;
    border-radius: 1mm;
    box-shadow: 0 2px 8px rgba(20, 35, 59, .12);
}


/* =====================================================================
   18 - ETIKET BASKI SAYFASI (Etiket/Bas)
   Ekranda etiketler yan yana, yazicida her etiket ayri sayfa.
   ===================================================================== */

.baski-govde {
    margin: 0;
    background: #e9edf3;
}

.baski-arac {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

    .baski-arac button {
        padding: 6px 18px;
        border: 0;
        border-radius: 8px;
        background: var(--blue);
        color: #fff;
        font-weight: 600;
        cursor: pointer;
    }

.baski-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 6mm;
    padding: 6mm;
}

    .baski-liste .etk {
        box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    }

@media print {
    .baski-govde {
        background: #fff;
    }

    .baski-arac {
        display: none;
    }

    .baski-liste {
        display: block;
        gap: 0;
        padding: 0;
    }

        .baski-liste .etk {
            box-shadow: none;
            break-after: page;
        }

            .baski-liste .etk:last-child {
                break-after: auto;
            }
}


/* =====================================================================
   19 - PAGE: DEPO OKUTMA (Stok/Okut)
   ===================================================================== */

.ok-duzen {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 22px;
    align-items: start;
}

@media (max-width: 1000px) {
    .ok-duzen {
        grid-template-columns: 1fr;
    }
}

.ok-yer-sec {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 16px;
    border: 1px solid #cfdcfb;
    border-radius: 12px;
    background: #f3f6fe;
}

    .ok-yer-sec > i {
        color: var(--blue);
        font-size: 22px;
    }

    .ok-yer-sec .form-select {
        min-height: 44px;
        font-weight: 600;
    }

.ok-bos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
}

    .ok-bos > i {
        font-size: 40px;
    }

.ok-ozet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

    .ok-ozet > div {
        padding: 14px 16px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
    }

    .ok-ozet span {
        display: block;
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .ok-ozet strong {
        font-size: 24px;
    }

.ok-uyari {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
}

.ok-basarili {
    background: #e4f6ec;
    color: #17784a;
}

.ok-hata {
    background: #fdecec;
    color: #b42318;
}

.ok-ust {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}

.ok-desen {
    width: 56px;
    height: 56px;
    border-radius: 10px;
}

.ok-ad {
    font-size: 20px;
    font-weight: 750;
}

.ok-bilgiler {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    padding-top: 14px;
}

    .ok-bilgiler span {
        display: block;
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .ok-bilgiler strong {
        font-size: 15px;
    }

/* Buyuk renkli sonuc bandi (okutma istasyonu icin) */
.ok-sonuc {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px 22px;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

    .ok-sonuc > i {
        font-size: 26px;
    }

.ok-sonuc-yesil {
    background: #1e9e57;
}

.ok-sonuc-sari {
    background: #f4b400;
    color: #3a2a00;
}

.ok-sonuc-kirmizi {
    background: #d93a3a;
}

.ok-sonuc-mavi {
    background: #2f6fde;
}

.ok-ozet-rozet {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3fe;
    color: #1f3b73;
    font-size: 13px;
}

/* Yeri sonradan degismis eski satir */
.ok-eski td {
    background: #fdecef;
    color: #b0707e;
    text-decoration: line-through;
}

/* Okutma kutusu + kamera butonu yan yana */
.ok-okut-satir {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

    .ok-okut-satir .form-control {
        min-height: 48px;
        font-size: 16px;
    }

    .ok-okut-satir .btn {
        min-height: 48px;
        padding: 0 18px;
        white-space: nowrap;
    }

/* Kamera kucuk ve ortada */
.ok-kamera {
    max-width: 380px;
    margin: 0 auto 16px;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

    .ok-kamera video {
        max-height: 280px;
        object-fit: cover;
    }

.ok-sari {
    background: #fff6e0;
    color: #8a5a00;
}

.ok-aktif-yer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid #cfdcfb;
    border-radius: 12px;
    background: #f3f6fe;
}

    .ok-aktif-yer > i {
        color: var(--blue);
        font-size: 22px;
    }

    .ok-aktif-yer strong {
        font-size: 18px;
    }

/* ===================== OKUTMA - TIKLANABILIR OZET KARTI ===================== */
/* Ozet kutusu link oldugunda: kart gorunumu ayni, tamami tiklanir */
.ok-ozet > a.ok-ozet-link {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

    .ok-ozet > a.ok-ozet-link:hover {
        border-color: #2F6DB5;
        box-shadow: 0 6px 16px rgba(47, 109, 181, .15);
        transform: translateY(-1px);
    }

    .ok-ozet > a.ok-ozet-link strong {
        color: #2F6DB5;
    }

/* Sag ust kosedeki "Listele" yazisi: dokunmatikte de tiklanabilir oldugu belli olsun */
.ok-ozet > a.ok-ozet-link {
    position: relative;
}

.ok-ozet-git {
    position: absolute;
    top: 12px;
    right: 14px;
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    color: #2F6DB5;
}

.ok-ozet > a.ok-ozet-link:hover .ok-ozet-git {
    text-decoration: underline;
}
/* =====================================================================
   20 - PAGE: DEPO YERLERI (Lokasyon)
   ===================================================================== */

.rf-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

    .rf-form .form-control, .rf-form .form-select, .rf-form .btn {
        min-height: 44px;
    }

.rf-girinti {
    display: inline-block;
    width: calc(var(--seviye) * 22px);
}
/* Ana yer satiri (Istanbul Ofis, Adana Fabrika) */
.rf-anayer td {
    background: #f3f6fe;
    font-weight: 600;
}


/* =====================================================================
   21 - YER ETIKETI (Lokasyon/Etiket)
   ===================================================================== */

.yer-etk {
    box-sizing: border-box;
    width: var(--w);
    height: var(--h);
    padding: calc(var(--h) * 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--h) * 0.02);
    overflow: hidden;
    background: #fff;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

.yer-etk-qr {
    width: calc(var(--h) * 0.58);
    height: calc(var(--h) * 0.58);
    image-rendering: pixelated;
}

.yer-etk-kod {
    font-size: calc(var(--h) * 0.14);
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1;
}

.yer-etk-yol {
    font-size: calc(var(--h) * 0.045);
}

.baski-liste .yer-etk {
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

@media print {
    .baski-liste .yer-etk {
        box-shadow: none;
        break-after: page;
    }

        .baski-liste .yer-etk:last-child {
            break-after: auto;
        }
}


/* =====================================================================
   22 - PAGE: KARTELALAR (Kartela/Index)
   ===================================================================== */

.kl-urun-filtre {
    margin-left: auto;
    background: #eef3fe;
    color: #1f3b73 !important;
    font-size: 13px;
}

.kl-toplam td {
    font-weight: 700;
    border-top: 2px solid var(--border);
}

.kl-sayfalama {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

    .kl-sayfalama span {
        margin-right: auto;
    }

.kl-kritik td {
    background: #fff5f5;
}

.kl-min {
    display: inline-flex;
    gap: 4px;
}

    .kl-min .form-control {
        width: 70px;
    }



/* Canli liste: durumu degisen satir kisa sure parlar */
@keyframes kl-parla {
    from {
        background: #fff4d6;
    }

    to {
        background: transparent;
    }
}

.kl-degisti td {
    animation: kl-parla 2s ease-out;
}

/* Kartelalar: sevk edilen kartelanin gittigi musteri */
.kl-sevk-musteri {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

    .kl-sevk-musteri:hover {
        color: var(--blue);
        text-decoration: underline;
    }

/* =====================================================================
   23 - PAGE: KARTELA DETAY (Kartela/Detay)
   ===================================================================== */

.kd-duzen {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 22px;
    align-items: start;
}

@media (max-width: 1000px) {
    .kd-duzen {
        grid-template-columns: 1fr;
    }
}


/* =====================================================================
   24 - PAGE: STOK HAREKETLERI (Hareket)
   ===================================================================== */

.hr-ozet {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .hr-ozet a {
        padding: 6px 14px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: #fff;
        color: #34445c;
        font-size: 13px;
        text-decoration: none;
    }

        .hr-ozet a strong {
            margin-left: 4px;
        }

        .hr-ozet a.aktif {
            border-color: var(--blue);
            background: var(--blue);
            color: #fff;
        }
/* Stok hareketleri: sevkte gidilen musteri (farkli renk) ve filtre butonlari */
.hr-musteri {
    padding: 1px 8px;
    border-radius: 999px;
    background: #efeaff;
    color: #5b3fd1;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.hr-musteri:hover {
    background: #e2d9ff;
    color: #4329b8;
}

.kl-filtre > .hr-butonlar {
    min-width: 0;
}

/* Stok hareketleri: filtreler genis ekranda tek satir */
@media (min-width: 1200px) {
    .kl-filtre.hr-filtre {
        flex-wrap: nowrap;
    }

        .kl-filtre.hr-filtre > div {
            flex: 1 1 0;
            min-width: 0;
        }

            /* tarihler sabit */
            .kl-filtre.hr-filtre > div:nth-child(-n+2) {
                flex: 0 0 145px;
            }

        /* kartela / urun aramasi biraz daha genis */
        .kl-filtre.hr-filtre > .flex-grow-1 {
            flex: 1.6 1 0;
        }

        .kl-filtre.hr-filtre > .hr-butonlar {
            flex: 0 0 auto;
        }
}
/* =====================================================================
   25 - PAGE: MAL KABUL / MALIYET (Maliyet)
   ===================================================================== */
.mk-tutar {
    width: 110px;
    text-align: right;
}

.mk-fatura {
    width: 130px;
}


/* =====================================================================
   26 - PAGE: MUSTERILER (Musteri)
   ===================================================================== */



/* ---- Musteri karti: Leo firma kutusu ---- */
/* Musteri formu: Leo Id + buton yan yana */
.ms-leo {
    display: flex;
    gap: .5rem;
    align-items: stretch;
}

    .ms-leo .form-control {
        flex: 1;
        min-width: 0;
    }

.ms-leo-buton {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.ms-leo .ek-arama {
    flex: 1;
    min-width: 0;
}

.ms-leo-secili {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem .75rem;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background: #f8fafc;
}

    .ms-leo-secili .ek-soluk {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* ---- Musteri listesi: canli arama ---- */
/* Musteri listesi: canli arama */
.ms-hizli {
    position: relative;
}

.ms-hizli-satir {
    color: inherit;
    text-decoration: none;
}

    .ms-hizli-satir:hover {
        color: inherit;
    }

    .ms-hizli-satir .min-w-0 {
        min-width: 0;
    }

.ms-hizli-secili {
    background: #eef3fe;
}

.ms-hizli-pasif {
    opacity: .6;
}

/* Musteri karti: gonderim durumu + uyari notlari */
.ms-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 960px;
    margin-top: 16px;
    align-items: start;
}

@media (max-width: 800px) {
    .ms-panel {
        grid-template-columns: 1fr;
    }
}

/* Gonderim durumu renkleri: gd-1 Normal, gd-2 Dikkat, gd-3 Onay gerekli, gd-4 Durduruldu */
.gd-1 {
    background: #e7f6ec;
    color: #1e7b45;
}

.gd-2 {
    background: #fff4d6;
    color: #a86a00;
}

.gd-3 {
    background: #ece6fb;
    color: #6741c7;
}

.gd-4 {
    background: #fdecec;
    color: #c0392b;
}

.ms-neden {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f6f8fb;
    border-radius: 8px;
    font-size: 14px;
}

.ms-degistir {
    margin-top: 12px;
}

    .ms-degistir > summary {
        list-style: none;
    }

        .ms-degistir > summary::-webkit-details-marker {
            display: none;
        }

.ms-durumlar {
    display: grid;
    gap: 6px;
}

.ms-durum-secim {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ms-gecmis td {
    vertical-align: top;
}

.ms-uyari {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #fff8e6;
    border: 1px solid #f5d27a;
}

    .ms-uyari > .bi {
        color: #a86a00;
        margin-top: 2px;
    }

.ms-uyari-onemli {
    background: #fdecec;
    border-color: #f2b8b5;
}

    .ms-uyari-onemli > .bi {
        color: #c0392b;
    }

.ms-uyarilar {
    margin-top: 12px;
}
/* ===================== MUSTERILER - OZET SATIRI ===================== */
.ms-ozet {
    margin: 0 0 10px 4px;
    font-size: 13px;
    color: var(--muted);
}
/* =====================================================================
   MUSTERI KARTI v2 - ust serit, solda form, sagda gonderim durumu + uyari notlari
   ===================================================================== */
.ms-ust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ms-baslik {
    font-size: 22px;
    font-weight: 700;
}

.ms-sayfa {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
    align-items: start;
}

.ms-yan {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 1200px) {
    .ms-sayfa {
        grid-template-columns: 1fr;
    }
}

/* Gonderim durumu secenekleri: kart gibi, secili olan mavi */
.ms-yan .ms-durumlar {
    gap: 8px;
}

.ms-yan .ms-durum-secim {
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .15s, background .15s;
}

    .ms-yan .ms-durum-secim input {
        margin-top: 4px;
    }

    .ms-yan .ms-durum-secim:hover {
        border-color: #c9d6ea;
    }

    .ms-yan .ms-durum-secim:has(input:checked) {
        border-color: var(--blue);
        background: #f3f7ff;
    }

/* Bolum basliklari: acik mavi serit, ikonlu */
.ms-form .ms-bolum {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    background: #f1f5fb;
    color: #3b5b8c;
}

    .ms-form .ms-bolum:first-child {
        margin-top: 0;
    }

    .ms-form .ms-bolum i {
        color: #6b8cc2;
        font-size: 13px;
    }

/* Form alanlari biraz daha kucuk ve sik */
.ms-form {
    gap: 10px 14px;
}

    .ms-form .form-control,
    .ms-form .form-select {
        padding: .3rem .65rem;
        font-size: 13px;
    }

    .ms-form .ek-etiket {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .ms-form .ms-adres textarea {
        min-height: 70px;
    }

/* Gonderim durumu degisiklik gecmisi: dar kolonda alt alta */
.ms-gecmis-liste {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .ms-gecmis-liste li {
        padding: 8px 0;
        border-bottom: 1px solid #f0f3f7;
    }

        .ms-gecmis-liste li:last-child {
            border-bottom: 0;
        }

/* =====================================================================
   MUSTERI KARNESI - sol kolon: sekmeler, ozet kartlari, kumaslar, talepler
   ===================================================================== */
.ms-sol {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

    .ms-sol > .kl-sekmeler {
        margin-bottom: 0;
    }

/* Musteri listesinde unvan linki */
.ms-unvan-link {
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
}

    .ms-unvan-link:hover {
        color: var(--blue);
        text-decoration: underline;
    }

/* ---- Ozet kartlari ---- */
.ms-ozet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.ms-ozet-kart {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.ms-ozet-sayi {
    margin: 2px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

/* ---- En cok giden kumaslar ---- */
.ms-kumas {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 40px;
    align-items: center;
    gap: 14px;
    padding: 6px 0;
}

.ms-kumas-ad {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-kumas-cubuk {
    height: 8px;
    border-radius: 999px;
    background: #eef1f5;
    overflow: hidden;
}

    .ms-kumas-cubuk span {
        display: block;
        height: 100%;
        border-radius: 999px;
        background: var(--blue);
    }

.ms-kumas-adet {
    font-weight: 700;
    text-align: right;
}

/* ---- Talepler tablosu alti ---- */
.ms-tumu {
    padding: 12px 22px;
    border-top: 1px solid var(--border);
    text-align: right;
}

    .ms-tumu a {
        font-weight: 600;
        text-decoration: none;
    }

/* Ozet rakamlari koyu */
.ms-ozet-sayi {
    color: var(--text);
}

/* Leo arama kutusu: kucultme kurali ikonun sol boslugunu ezmesin */
.ms-form .ek-arama .form-control {
    padding-left: 34px;
}

/* =====================================================================
   27 - PAGE: TALEPLER (Talep, TalepKaynak)
   ===================================================================== */



/* ---- Yeni talep: kaynak, mukerrer satir, bolum araliklari ---- */
.tl-kaynak {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tl-mukerrer td {
    background: #fdecec;
}

#talepGovde .ms-bolum,
.ek-kart-govde > .ms-bolum {
    margin: 18px 0 10px;
}

    .ek-kart-govde > .ms-bolum:first-child {
        margin-top: 0;
    }

/* ---- Yeni talep: nereden gonderilsin ---- */
/* Talep: nereden gonderilsin */
.tl-yerler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tl-yer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
}

    .tl-yer:has(input:checked) {
        border-color: #1f55d6;
        background: #f3f6fe;
    }

/* ---- Yeni talep: eksik alan isareti ---- */
/* Talep: eksik alan isareti */
.tl-eksik {
    outline: 2px solid #dc3545;
    outline-offset: 4px;
    border-radius: 8px;
    animation: tl-titre .35s;
}

@keyframes tl-titre {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* ---- Yeni talep: form + sag panel (musterinin talepleri) ---- */
/* Talep: form + sag panel */
.tl-duzen {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

    .tl-duzen.tl-iki {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

.tl-yan {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.tl-yan-satir {
    display: block;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f3f7;
    color: inherit;
    text-decoration: none;
}

    .tl-yan-satir:hover {
        background: #f5f7fb;
        color: inherit;
    }

@media (max-width: 1100px) {
    .tl-duzen.tl-iki {
        grid-template-columns: minmax(0, 1fr);
    }

    .tl-yan {
        position: static;
        max-height: none;
    }
}

/* ---- Talep detay ---- */
/* Talep detay */
.td-bilgi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

    .td-bilgi .td-genis {
        grid-column: span 2;
    }

.td-metin {
    white-space: pre-line;
}

.td-islemler {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e9eef5;
}

.td-neden summary {
    list-style: none;
}

    .td-neden summary::-webkit-details-marker {
        display: none;
    }

.td-neden[open] form {
    margin-top: 8px;
    min-width: 320px;
}

.td-adet {
    display: flex;
    gap: 4px;
    max-width: 130px;
}

.td-gecmis {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .td-gecmis li {
        display: flex;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid #f0f3f7;
    }

        .td-gecmis li:last-child {
            border-bottom: 0;
        }

        .td-gecmis li > i {
            color: #1f55d6;
            margin-top: 2px;
        }

@media (max-width: 800px) {
    .td-bilgi {
        grid-template-columns: 1fr;
    }

        .td-bilgi .td-genis {
            grid-column: auto;
        }
}

/* ---- Talep kaynaklari ---- */
/* Talep kaynaklari */
.tk-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 1.2rem;
    color: #1f55d6;
}

.tk-secili td {
    background: #eef3fe;
}

/* Durdurulmus musteri: form pasif */
.tl-pasif {
    opacity: .45;
    filter: grayscale(1);
}
/* =====================================================================
   28 - PAGE: SEVKIYAT (Sevkiyat/Index, Sevkiyat/Sevk)
   ===================================================================== */

.sv-kalem {
    padding: 12px 18px;
    border-bottom: 1px solid #f0f3f7;
}

    .sv-kalem:last-child {
        border-bottom: 0;
    }

    .sv-kalem.sv-tamam {
        background: #f1faf5;
    }

.sv-sayac {
    min-width: 64px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef1f5;
    font-weight: 700;
    text-align: center;
}

.sv-tamam .sv-sayac {
    background: #e4f6ec;
    color: #17784a;
}

.sv-yerler {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.sv-yer {
    padding: 2px 8px;
    border-radius: 6px;
    background: #f5f7fb;
    color: #56647a;
    font-size: 12px;
}

.sv-bant {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
}

.sv-bant-ok {
    background: #e4f6ec;
    color: #17784a;
}

.sv-bant-hata {
    background: #fdecec;
    color: #b42318;
}

/* =====================================================================
   SEVK EKRANI v2 - solda okut ve topla, sagda kargo ve tamamla
   ===================================================================== */
.sv-sayfa {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1100px) {
    .sv-sayfa {
        grid-template-columns: 1fr;
    }
}

.sv-talep-link {
    color: var(--text);
    text-decoration: none;
}

    .sv-talep-link:hover {
        color: var(--blue);
        text-decoration: underline;
    }

/* Adim numarasi: 1, 2 */
.sv-adim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* ---- Okutma kutusu ---- */
.sv-okut-satir {
    display: flex;
    gap: 10px;
}

.sv-okut {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--blue);
    border-radius: 12px;
    font-size: 17px;
    box-shadow: 0 0 0 4px rgb(53 109 243 / 12%);
}

    .sv-okut:focus {
        border-color: var(--blue);
        box-shadow: 0 0 0 4px rgb(53 109 243 / 22%);
    }

.sv-bant {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* ---- Kalem satiri: ilerleme hapi, raf cipleri, okutulan kodlar ---- */
.sv-kalem {
    padding: 14px 22px;
    border-top: 1px solid #edf1f6;
    border-bottom: 0;
}

    .sv-kalem.sv-tamam {
        background: transparent;
    }

.sv-hap {
    min-width: 64px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eef1f5;
    color: #56647a;
    font-weight: 800;
    text-align: center;
}

.sv-kismi .sv-hap {
    background: #fff3d6;
    color: #8a5a00;
}

.sv-tamam .sv-hap {
    background: #e4f6ec;
    color: #17784a;
}

    .sv-tamam .sv-hap::before {
        content: "\2713  ";
    }

/* Tamamlanan kumasin raf cipleri gizlenir: oradan alinacak bir sey kalmadi */
.sv-tamam .sv-yerler {
    display: none;
}

.sv-yerler {
    align-items: center;
    margin-top: 8px;
}

.sv-kodlar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .sv-kodlar:not(:empty) {
        margin-top: 10px;
    }

.sv-kod {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 10px;
    border: 1px solid #d5e2ff;
    border-radius: 8px;
    background: #eef4ff;
    color: #1f55d6;
    font-size: 13px;
    font-weight: 700;
}

.sv-kod-yer {
    color: #6b7689;
    font-weight: 400;
}

.sv-kod button {
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #8a97ab;
    font-size: 12px;
}

    .sv-kod button:hover {
        color: #b42318;
    }

.sv-ozet {
    display: flex;
    gap: 10px;
    padding: 12px 22px;
    border-top: 1px solid #edf1f6;
    background: #f8fafc;
    font-size: 13px;
}

/* ---- Kargo karti ---- */
.sv-alici {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #f6f8fb;
}

.sv-firmalar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sv-firma {
    cursor: pointer;
}

    .sv-firma input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .sv-firma span {
        display: inline-block;
        padding: 8px 14px;
        border: 1px solid var(--border);
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
    }

    .sv-firma:hover span {
        border-color: #c9d6ea;
    }

    .sv-firma input:checked + span {
        border-color: var(--blue);
        background: #eef4ff;
        color: #1f55d6;
        box-shadow: 0 0 0 2px rgb(53 109 243 / 18%);
    }

.sv-iki {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sv-eksik {
    margin-top: 16px;
    padding: 9px 12px;
    border: 1px solid #f6dfa0;
    border-radius: 10px;
    background: #fff8e6;
    color: #7a5200;
    font-size: 13px;
}

.sv-tamamla {
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
}


/* =====================================================================
   29 - SEVK FISI (Sevkiyat/Fis, ekran + baski)
   ===================================================================== */

.sf-govde {
    background: #eef1f5;
    color: #14233b;
}

.sf-araclar {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 14px;
}

.sf-sayfa {
    width: 210mm;
    min-height: 270mm;
    margin: 0 auto 24px;
    padding: 12mm;
    background: #fff;
    box-shadow: 0 6px 24px rgba(20, 35, 59, .12);
    font-size: 12px;
}

.sf-baslik {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid #14233b;
}

    .sf-baslik h1 {
        margin: 2px 0 0;
        font-size: 22px;
        font-weight: 800;
    }

.sf-firma {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #56647a;
}

.sf-kunye th {
    padding: 1px 10px 1px 0;
    color: #56647a;
    font-weight: 600;
    text-align: right;
}

.sf-kunye td {
    font-weight: 700;
    font-family: ui-monospace, Consolas, monospace;
}

.sf-taraflar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.sf-kutu {
    padding: 10px 12px;
    border: 1px solid #cfd6e0;
    border-radius: 6px;
    line-height: 1.5;
}

.sf-kutu-baslik {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #56647a;
}

.sf-adres {
    white-space: pre-line;
}

.sf-soluk {
    color: #8592a6;
}

.sf-kucuk {
    font-size: 10.5px;
    color: #56647a;
}

.sf-tablo {
    width: 100%;
    margin-bottom: 12px;
    border-collapse: collapse;
}

    .sf-tablo th, .sf-tablo td {
        padding: 6px 8px;
        border: 1px solid #cfd6e0;
        vertical-align: top;
    }

    .sf-tablo thead th, .sf-kargo th {
        background: #f3f5f9;
        font-size: 10.5px;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: #56647a;
    }

.sf-not {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f5f7fb;
}

.sf-imzalar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 28px 0 20px;
    color: #56647a;
}

.sf-imza-cizgi {
    height: 40px;
    border-bottom: 1px solid #8592a6;
}

.sf-kes {
    margin: 18px 0 8px;
    border-top: 1px dashed #8592a6;
    padding-top: 4px;
    font-size: 10px;
    color: #8592a6;
}

.sf-etiket {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    padding: 12px 14px;
    border: 2px solid #14233b;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.sf-etiket-unvan {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.sf-etiket-yan {
    padding-left: 14px;
    border-left: 1px solid #cfd6e0;
    font-size: 12px;
}

.sf-etiket-no {
    margin-top: 8px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 18px;
    font-weight: 800;
}

@media print {
    .sf-govde {
        background: #fff;
    }

    .sf-araclar {
        display: none;
    }

    .sf-sayfa {
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
}

/* =========================================================
  30 - SAYIM
   ========================================================= */
.sy-form {
    display: grid;
    grid-template-columns: 2fr 2fr auto;
    gap: 16px;
}

@media (max-width: 800px) {
    .sy-form {
        grid-template-columns: 1fr;
    }
}

.sy-aktif {
    border-color: #b9d3fb;
    background: #f5f9ff;
}

.sy-aktif-ikon {
    font-size: 28px;
    color: #1f6feb;
}
.sy-sayac {
    text-align: center;
    min-width: 70px;
}

    .sy-sayac span {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        color: #8a94a6;
    }

    .sy-sayac strong {
        font-size: 22px;
    }

.sy-ozet {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .sy-ozet a {
        text-decoration: none;
    }

.sy-grup > summary {
    cursor: pointer;
    list-style: none;
}

    .sy-grup > summary::-webkit-details-marker {
        display: none;
    }

@media print {
    .sy-yazdirma-yok,
    .sidebar,
    .topbar {
        display: none !important;
    }

    .sy-grup {
        break-inside: avoid;
    }
}
/* =====================================================================
   OKUTMA: secili raf seridi (sayim ve depo okutma)
   ===================================================================== */
.ok-raf-serit {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 14px 18px;
    border: 1px dashed #c9d2df;
    border-radius: 14px;
    background: #f6f8fb;
    color: #6b7689;
}

    .ok-raf-serit > i {
        font-size: 26px;
        color: #a3aec0;
    }

.ok-raf-etiket {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ok-raf-ad {
    font-size: 17px;
    font-weight: 600;
}

/* Raf secili: mavi, belirgin */
.ok-raf-serit.secili {
    border: 2px solid var(--blue);
    background: #eef4ff;
    color: #1f55d6;
}

    .ok-raf-serit.secili > i {
        color: var(--blue);
    }

    .ok-raf-serit.secili .ok-raf-ad {
        color: var(--text);
        font-size: 20px;
        font-weight: 700;
    }

/* Raf degisince kisa bir an yanip soner */
.ok-raf-serit.yanip {
    animation: ok-raf-yanip .9s ease-out;
}

@keyframes ok-raf-yanip {
    0% {
        box-shadow: 0 0 0 0 rgb(53 109 243 / 55%);
        background: #d6e4ff;
    }

    100% {
        box-shadow: 0 0 0 12px rgb(53 109 243 / 0%);
    }
}
/* =========================================================
   31 - RAPORLAR
   ========================================================= */
.rp-filtre {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

    .rp-filtre select {
        width: auto;
    }

.rp-donemler {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rp-kartlar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .rp-kartlar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rp-kart {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    padding: 14px 16px;
}

    .rp-kart span {
        display: block;
        font-size: 12px;
        color: #8a94a6;
    }

    .rp-kart strong {
        display: block;
        font-size: 22px;
        margin-top: 4px;
    }

    .rp-kart small {
        color: #8a94a6;
    }

.rp-kart-ana {
    background: #f0f6ff;
    border-color: #b9d3fb;
}

    .rp-kart-ana strong {
        color: #1f6feb;
    }

/* Toplamdaki pay cubugu */
.rp-pay {
    width: 80px;
    height: 6px;
    background: #eef1f5;
    border-radius: 3px;
    margin-left: auto;
    overflow: hidden;
}

    .rp-pay span {
        display: block;
        height: 100%;
        background: #1f6feb;
    }
/* Girilmemis deger: 0 ile karismasin */
.rp-eksik {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #9a4a12;
    background: #fdecdc;
    vertical-align: middle;
}


/* =====================================================================
   SATIR ISLEMLERI - durum anahtari ve ikon butonlar (tum tanim ekranlari)
   ===================================================================== */
.ek-anahtar-form {
    margin: 0;
}

.ek-anahtar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #9aa4b4;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ek-anahtar-yuva {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: #cfd6e0;
    transition: background .15s;
}

    .ek-anahtar-yuva::after {
        content: "";
        position: absolute;
        top: 2px;
        left: 2px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
        transition: left .15s;
    }

.ek-anahtar.acik {
    color: var(--text);
}

    .ek-anahtar.acik .ek-anahtar-yuva {
        background: #2fb36b;
    }

        .ek-anahtar.acik .ek-anahtar-yuva::after {
            left: 16px;
        }

.ek-anahtar:disabled {
    opacity: .6;
    cursor: wait;
}

.ek-anahtar:focus-visible .ek-anahtar-yuva {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Ikon butonlar: normalde gri, uzerine gelince renklenir */
.ek-islemler {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .ek-islemler form {
        margin: 0;
    }

.ek-ikon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #6b7689;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}

    .ek-ikon-btn:hover {
        border-color: #d5e2ff;
        background: #eef4ff;
        color: #1f55d6;
    }

.ek-ikon-sil:hover {
    border-color: #f5c4bd;
    background: #fdeeec;
    color: #b42318;
}

.ek-ikon-kapali,
.ek-ikon-kapali:hover {
    border-color: transparent;
    background: transparent;
    color: #d3d9e2;
    cursor: not-allowed;
}

/* =====================================================================
   32 MOBIL UYUM - telefon ve dar ekran
   Genel kurallar: sayfa kodlari degismez. Sayfaya ozel telefon
   tasarimlari (ana sayfa alt cubugu vb.) ayrica eklenecek.
   ===================================================================== */

/* ---- Sayfa hicbir zaman yana kaymasin ---- */
.main-area {
    min-width: 0; /* esnek kutu icerige gore genislemesin */
}

body {
    overflow-x: clip; /* son guvence; sticky ogeleri bozmaz */
}

img,
video,
canvas {
    max-width: 100%;
}

/* Esnek satirlarda buyuyen kutu kuculebilsin (uzun secenekli select tasmasin) */
.d-flex > .flex-grow-1,
.d-flex > .form-select,
.d-flex > .form-control {
    min-width: 0;
}

/* ---- Sol menu: ogeler sikismasin (logo menunun ustune binmesin) ---- */
.sidebar > * {
    flex-shrink: 0;
}

@media (max-width: 900px) {

    /* Tablolar kartin icinde kaysin; hucreler gereksiz kirilmasin */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    /* Iki kolonlu duzenler tek kolona */
    .ek-sayfa,
    .ok-duzen {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    /* ---- Ust cubuk: baslik sigsin, kullanicida sadece avatar + yer ---- */
    .topbar {
        gap: 10px;
    }

    .topbar-title {
        flex: 1;
        min-width: 0;
    }

    .topbar-page-title {
        overflow: hidden;
        font-size: 18px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .topbar .status-dot,
    .topbar .user-welcome,
    .topbar .user-email,
    .topbar .profile-chevron {
        display: none;
    }

    .topbar .user-profile-trigger {
        gap: 6px;
        padding: 0;
    }

    /* ---- iPhone: 16px altindaki kutuya dokununca sayfa yakinlasiyor ---- */
    .form-control,
    .form-select,
    input,
    select,
    textarea {
        font-size: 16px;
    }

    /* ---- Ana sayfa kartlari: 2 kolon, ikon ustte ---- */
    .ds-kartlar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ds-kart {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 14px;
    }

    .ds-ikon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .ds-kart > div > strong {
        font-size: 22px;
    }

    /* ---- Okutma ekranlari: yer secimi ve okutma kutusu sigsin ---- */
    .ok-yer-sec {
        padding: 12px;
    }

    .ok-okut-satir {
        flex-wrap: wrap;
    }

        .ok-okut-satir > .btn {
            flex: 1 0 100%;
        }

    .ok-sonuc {
        padding: 12px 14px;
        font-size: 15px;
    }

    /* ---- Filtre satirlari alt alta, butonlar yan yana ---- */
    .kl-filtre {
        flex-wrap: wrap;
    }

        .kl-filtre > div {
            flex: 1 1 100%;
            min-width: 0;
        }

    /* ---- Ikon butonlar parmakla dokunulacak boyutta ---- */
    .ek-ikon-btn {
        width: 38px;
        height: 38px;
    }

    /* ---- Kart ic bosluklari biraz daralsin ---- */
    .ek-kart-govde {
        padding: 14px;
    }
}
/* =====================================================================
   MOBIL UYUM 2 - telefonda tablolar kart listesi olur
   site.js her hucreye sutun basligini data-label olarak yazar ve
   tabloya "mobil-kart" sinifini ekler. Kart olmasin istenen tabloya
   (ya da kapsayicisina) "mobil-tablo-kalsin" sinifi verilir.
   ===================================================================== */
@media (max-width: 600px) {

    /* Sekmeler alt satira gecsin, sayfayi genisletmesin */
    .kl-sekmeler {
        flex-wrap: wrap;
    }

        .kl-sekmeler a {
            padding: 7px 12px;
        }

    /* Tablo kutusu artik yana kaymaz */
    .table-responsive {
        overflow-x: visible;
    }

    table.mobil-kart > thead {
        display: none;
    }

    table.mobil-kart,
    table.mobil-kart > tbody,
    table.mobil-kart > tfoot,
    table.mobil-kart > tbody > tr,
    table.mobil-kart > tfoot > tr {
        display: block;
        box-sizing: border-box;
        width: 100%;
    }

        table.mobil-kart > tbody,
        table.mobil-kart > tfoot {
            padding: 2px 12px 12px;
        }

            /* Her satir bir kart */
            table.mobil-kart > tbody > tr,
            table.mobil-kart > tfoot > tr {
                margin-top: 10px;
                padding: 10px 12px;
                border: 1px solid #e6eaf0;
                border-radius: 12px;
                background: #fff;
            }

                /* Her hucre: solda etiket (float), sagda deger; deger serbestce akar */
                table.mobil-kart > tbody > tr > td,
                table.mobil-kart > tfoot > tr > td {
                    display: block;
                    box-sizing: border-box;
                    width: 100%;
                    min-width: 0;
                    padding: 4px 0 !important;
                    border: 0 !important;
                    text-align: right !important;
                    white-space: normal !important;
                    overflow-wrap: break-word;
                }

                    table.mobil-kart > tbody > tr > td::before,
                    table.mobil-kart > tfoot > tr > td::before {
                        content: attr(data-label);
                        float: left;
                        width: 38%;
                        padding-right: 10px;
                        color: #6b7689;
                        font-size: 12px;
                        font-weight: 600;
                        text-align: left;
                    }

                    table.mobil-kart > tbody > tr > td::after,
                    table.mobil-kart > tfoot > tr > td::after {
                        content: "";
                        display: table;
                        clear: both;
                    }

                    table.mobil-kart > tbody > tr > td[data-label=""]::before,
                    table.mobil-kart > tfoot > tr > td[data-label=""]::before {
                        display: none;
                    }

                    table.mobil-kart > tbody > tr > td:empty {
                        display: none;
                    }

                    /* Ilk hucre kartin basligi (talep no, kartela kodu, ad...) */
                    table.mobil-kart > tbody > tr > td:first-child {
                        margin-bottom: 4px;
                        padding-bottom: 8px !important;
                        border-bottom: 1px solid #edf1f6 !important;
                        text-align: left !important;
                        font-size: 15px;
                        font-weight: 700;
                    }

                        table.mobil-kart > tbody > tr > td:first-child::before {
                            display: none;
                        }

                    /* "Kayit bulunamadi" gibi tek hucreli satirlar */
                    table.mobil-kart > tbody > tr > td[colspan] {
                        border-bottom: 0 !important;
                        text-align: center !important;
                        font-weight: 400;
                    }
}

/* =====================================================================
   34 - MOBIL UYGULAMA - telefon gorunumu (body.mobil)
   Ust cubuk (mb-ust), alt sekme cubugu (mb-alt) + OKUT, telefon ana ekrani (mb-*)
   ===================================================================== */

/* ---- Ust cubuk ---- */
.mb-ust {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.mb-logo {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.mb-ust-baslik {
    flex: 1;
    min-width: 0;
    line-height: 1.15;
}

    .mb-ust-baslik small {
        display: block;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .8px;
    }

    .mb-ust-baslik strong {
        display: block;
        overflow: hidden;
        font-size: 16px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

/* Kullanici: sadece avatar + yer */
.mb-ust .status-dot,
.mb-ust .user-welcome,
.mb-ust .user-email,
.mb-ust .profile-chevron {
    display: none;
}

.mb-ust .user-profile-trigger {
    gap: 6px;
    padding: 0;
}

/* ---- Sayfa alti bosluk: alt cubuk icerigi ortmesin ---- */
body.mobil .page-content {
    padding: 14px 14px 110px;
}

/* ---- Alt sekme cubugu ---- */
.mb-alt {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 8px 4px env(safe-area-inset-bottom);
    border-top: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 -4px 16px rgb(20 35 59 / 6%);
}

.mb-sekme {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 11px;
    text-decoration: none;
}

    .mb-sekme i {
        font-size: 20px;
        line-height: 1.1;
    }

    .mb-sekme.aktif {
        color: var(--blue);
        font-weight: 700;
    }

.mb-okut {
    display: flex;
    flex: 0 0 62px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-top: -28px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 8px 20px rgb(53 109 243 / 35%);
    color: #fff;
    text-decoration: none;
}

    .mb-okut i {
        font-size: 22px;
        line-height: 1;
    }

    .mb-okut span {
        font-size: 9px;
        font-weight: 700;
    }

    .mb-okut:hover {
        color: #fff;
    }

/* ---- Ana ekran ---- */
.mb-selam {
    margin: 2px 2px 12px;
    font-size: 21px;
    font-weight: 700;
}

    .mb-selam small {
        display: block;
        color: var(--muted);
        font-size: 13px;
        font-weight: 400;
    }

.mb-bas {
    display: flex;
    justify-content: space-between;
    margin: 16px 4px 8px;
    color: #56647a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

    .mb-bas a {
        color: var(--blue);
        letter-spacing: 0;
        text-decoration: none;
        text-transform: none;
    }

.mb-liste {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.mb-is {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid #edf1f6;
    color: inherit;
    text-decoration: none;
}

    .mb-is:first-child {
        border-top: 0;
    }

    .mb-is:active {
        background: #f6f8fb;
    }

.mb-ik {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 10px;
    font-size: 17px;
}

.mb-m {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

    .mb-m small {
        display: block;
        color: var(--muted);
        font-size: 12px;
        font-weight: 400;
    }

.mb-say {
    min-width: 30px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.mb-ok {
    color: #a9b3c2;
}

.mb-sari {
    background: #fff3d6;
    color: #8a5a00;
}

.mb-mavi {
    background: #e7efff;
    color: #1f55d6;
}

.mb-mor {
    background: #efedff;
    color: #5b3fd6;
}

.mb-kir {
    background: #fde8e6;
    color: #b42318;
}

.mb-yesil {
    background: #e4f6ec;
    color: #17784a;
}

.mb-kartlar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mb-k {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

    .mb-k small {
        display: block;
        color: var(--muted);
        font-size: 12px;
    }

    .mb-k b {
        display: block;
        margin-top: 2px;
        font-size: 22px;
    }

    .mb-k i {
        display: block;
        overflow: hidden;
        color: var(--muted);
        font-size: 11px;
        font-style: normal;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .mb-k .mb-uyari {
        color: #b42318;
    }

/* Hizli islem kutulari: ikon ustte, yazi altta */
.mb-hizli {
    padding: 16px 10px;
    text-align: center;
}

    .mb-hizli i {
        display: block;
        color: var(--blue);
        font-size: 26px;
    }

    .mb-hizli span {
        display: block;
        margin-top: 4px;
        color: #3b4658;
        font-size: 13px;
    }

.mb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.mb-btn-mavi {
    background: var(--blue);
    color: #fff;
}

    .mb-btn-mavi:hover {
        color: #fff;
    }

.mb-kutu {
    display: block;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.mb-talep small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.mb-talep-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Talep ilerlemesi: Acildi > Onay > Yolda > Teslim */
.mb-ilerle {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

    .mb-ilerle span {
        flex: 1;
        height: 5px;
        border-radius: 9px;
        background: #e3e8ef;
    }

        .mb-ilerle span.tamam {
            background: var(--blue);
        }

/* ---- OKUT ekrani ---- */
.mb-kamera {
    overflow: hidden;
    border-radius: 18px;
    background: #141a24;
    min-height: 280px;
}

    .mb-kamera video {
        width: 100% !important;
        border-radius: 18px;
    }

.mb-bant {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.mb-bant-ok {
    background: #e9f8f0;
    color: #17633e;
}

.mb-bant-hata {
    background: #fdeeec;
    color: #9b2316;
}

.mb-elle {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}


/* =====================================================================
   MOBIL SEVK HAZIRLA (Views/Mobil/Sevk.cshtml)
   ===================================================================== */
.ms-sevk {
    padding-bottom: 20px;
}

.ms-sevk-ust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ms-geri {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: #3b4658;
    font-size: 18px;
}

.ms-adimlar {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}

    .ms-adimlar .aktif {
        color: var(--blue);
    }

.ms-kamera {
    overflow: hidden;
    min-height: 200px;
    border-radius: 16px;
    background: #141a24;
}

    .ms-kamera video {
        width: 100% !important;
    }

.ms-elle {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ms-ilerleme {
    margin: 12px 2px 10px;
    font-size: 14px;
}

.ms-cubuk {
    height: 8px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 9px;
    background: #eef1f5;
}

    .ms-cubuk div {
        width: 0;
        height: 8px;
        border-radius: 9px;
        background: #1f9d5a;
        transition: width .2s;
    }

/* Kalem satiri: solda tik, ortada ad + nereden + okutulan kodlar, sagda sayac */
.ms-kalem {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #edf1f6;
}

    .ms-kalem:first-child {
        border-top: 0;
    }

.ms-tik {
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    height: 28px;
    border: 2px solid #d6dde7;
    border-radius: 50%;
    color: transparent;
}

.ms-kalem.tamam .ms-tik {
    border-color: #1f9d5a;
    background: #1f9d5a;
    color: #fff;
}

.ms-kalem.kismi .ms-tik {
    border-color: #f0a33a;
}

.ms-hap {
    background: #eef1f5;
    color: #56647a;
}

.ms-kalem.tamam .ms-hap {
    background: #e4f6ec;
    color: #17784a;
}

.ms-kalem.kismi .ms-hap {
    background: #fff3d6;
    color: #8a5a00;
}

.ms-nereden {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.ms-kodlar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.ms-kod {
    padding: 3px 8px;
    border: 1px solid #d5e2ff;
    border-radius: 8px;
    background: #eef4ff;
    color: #1f55d6;
    font-family: Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
}

/* Kargo firmasi: buyuk dokunulabilir secenekler */
.ms-firmalar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ms-firma {
    position: relative;
    cursor: pointer;
}

    .ms-firma input {
        position: absolute;
        opacity: 0;
    }

    .ms-firma span {
        display: block;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
        font-weight: 600;
        text-align: center;
    }

    .ms-firma input:checked + span {
        border-color: var(--blue);
        background: #eef4ff;
        box-shadow: 0 0 0 2px rgb(53 109 243 / 18%);
        color: #1f55d6;
    }

/* Alt sabit buton cubugu (alt sekme cubugu yerine) */
.ms-alt {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: #fff;
}

    .ms-alt .btn {
        padding: 13px;
        border-radius: 14px;
        font-size: 15px;
        font-weight: 700;
    }

.min-w-0 {
    min-width: 0;
}

/* =====================================================================
   MOBIL TALEP DETAYI (Views/Mobil/TalepDetay.cshtml)
   ===================================================================== */
.mt-ust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mt-diger {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

    .mt-diger summary {
        color: #3b4658;
        font-weight: 700;
        cursor: pointer;
    }

/* Zaman cizelgesi telefonda biraz daha sik */
body.mobil .tdx-adim {
    padding-bottom: 14px;
}

/* =====================================================================
   MOBIL TALEP AC (Views/Mobil/TalepAc.cshtml)
   ===================================================================== */
.mta-cipler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mta-cip {
    position: relative;
    cursor: pointer;
}

    .mta-cip input {
        position: absolute;
        opacity: 0;
    }

    .mta-cip span {
        display: inline-block;
        padding: 9px 14px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
        font-weight: 600;
    }

    .mta-cip input:checked + span {
        border-color: var(--blue);
        background: #eef4ff;
        box-shadow: 0 0 0 2px rgb(53 109 243 / 18%);
        color: #1f55d6;
    }

/* Adet: - 2 + */
.mta-step {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
}

    .mta-step button {
        width: 34px;
        height: 34px;
        border: 0;
        background: #f6f8fb;
        color: #1f55d6;
        font-size: 18px;
        font-weight: 700;
    }

    .mta-step b {
        width: 30px;
        text-align: center;
    }

.mta-mevcut {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    border-color: #f6dfa0;
    background: #fff8e6;
}

    .mta-mevcut input {
        width: 20px;
        height: 20px;
        margin-top: 2px;
    }
/* Mobil ust cubuk: uygulama ikonu */
.mb-logo {
    overflow: hidden;
    background: none;
}

    .mb-logo img {
        width: 100%;
        height: 100%;
    }

/* =====================================================================
   WEB TALEPLERI (Library entegrasyonu)
   ===================================================================== */
.menu-sayac {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f59f00;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-sayac-sari {
    background: #e0a100;
}

.menu-sayac-mavi {
    background: var(--blue);
}

/* Gelen kutusu detayi */
.ek-sonuc[hidden] {
    display: none;
}

.wt-degistir > summary {
    cursor: pointer;
    color: var(--blue);
}

.wt-acik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f3f7;
}

    .wt-acik:last-of-type {
        border-bottom: 0;
    }
/* ===================== DUZELTME PAKETI (27.11) ===================== */
/* Okutma ozeti: "Listele" yazisi sayinin altinda, ust uste binmesin */
.ok-ozet-git {
    position: static;
    display: block;
    margin-top: 2px;
}

/* Dashboard kartlari: alt satirlar kesilmesin, gerekirse alt satira insin */
.ds-kart > div > small {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

    .ds-kart > div > small.ds-yer-satir b {
        font-weight: 700;
        color: #56647a;
    }

/* Sevkiyat listesi: talep kaynağı simgesi (WhatsApp, Library…) */
.sv-kaynak {
    color: #56647a;
    margin-right: 4px;
    font-size: 14px;
}

/* Kartelalar › Kritik: listeyi e-postayla gönder */
.kl-kritik-gonder {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 16px 12px;
    padding: 10px 14px;
    background: #f3f6fb;
    border-radius: 10px;
}

.kl-kritik-gonder-metin {
    font-size: 13px;
    color: #16213a;
}

    .kl-kritik-gonder-metin small {
        color: #6b7489;
    }

.kl-kritik-gonder input[name="ekAdres"] {
    flex: 1 1 220px;
    max-width: 340px;
}

/* Ana sayfa: kritik stok kartındaki Gönder */
.ds-kritik-gonder {
    padding: 2px 10px;
    font-size: 12px;
}


/* ---- Metraj (numune top) ---- */
.nm-tur {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .nm-tur label {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        border: 1px solid #dfe4ec;
        border-radius: 10px;
        cursor: pointer;
        font-weight: 600;
    }

        .nm-tur label:has(input:checked) {
            border-color: var(--blue);
            background: #eef4ff;
        }

.nm-kumas td {
    background: #f6f8fb;
}

.nm-cubuk {
    height: 4px;
    min-width: 80px;
    margin-top: 4px;
    border-radius: 4px;
    background: #e6eaf0;
    overflow: hidden;
}

    .nm-cubuk span {
        display: block;
        height: 100%;
        background: var(--blue);
    }

.nm-cubuk-buyuk {
    height: 8px;
    margin: 6px 0 4px;
}

.nm-metre {
    margin: 12px 0;
    font-size: 1.1rem;
}
/* ---- Ana sayfa kartları: tek satır, küçük kutular ---- */
@media (min-width: 1401px) {
    .ds-kartlar {
        grid-template-columns: none;
        grid-auto-flow: column; /* kaç kart varsa tek satır */
        grid-auto-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

@media (min-width: 701px) and (max-width: 1400px) {
    .ds-kartlar {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, minmax(0, 1fr)); /* dar ekranda 4 + 3 */
    }
}

@media (min-width: 701px) {
    .ds-kart {
        gap: 10px;
        padding: 12px;
    }

    .ds-ikon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 16px;
    }

    .ds-kart > div > span {
        font-size: 12px;
    }

    .ds-kart > div > strong {
        font-size: 22px;
    }
}

/* ---- Raporlar: aylık sütun grafiği (Maliyet ve Sevkiyat raporu) ---- */
.rp-grafik {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 220px;
    padding-top: 6px;
    overflow-x: auto;
}

.rp-sutun {
    flex: 1 1 0;
    min-width: 42px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

    .rp-sutun small {
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }

.rp-cubuk {
    width: 100%;
    max-width: 46px;
    flex: 1 1 auto; /* sütunun kalan yüksekliği */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* çubuk alttan büyür */
    border-radius: 6px 6px 0 0;
    background: #f3f5f9; /* boş ayın izi */
    overflow: hidden;
}

    .rp-cubuk span {
        display: block;
        width: 100%;
        min-height: 0;
    }

.rp-c-kartela {
    background: #2563eb;
}

.rp-c-kargo {
    background: #f59e0b;
}

.rp-lejant {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    vertical-align: middle;
}