    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    input[type=number] {
        -moz-appearance: textfield;
    }

    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100;
    }

    .popup-content {
        background-color: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
        width: 80%;
        max-width: 850px;
    }

    .card-header ul {
        background-color: #305b9f;
        width: fit-content;
        display: inline-flex;
        justify-content: space-around;
        border-radius: 50px;
        align-items: center;
    }

        .card-header ul li i {
            font-size: 1rem;
            color: white;
            padding: 0.5rem;
            border-radius: 20px;
            align-items: center;
        }

        .card-header ul li a:hover {
            scale: 1.5;
        }

    /* --- MODERN Ä°SRAF (FÄ°RE) STÄ°LLERÄ° --- */
    .form-control-modern {
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        padding: 0.6rem 0.75rem;
        transition: all 0.2s;
        height: auto !important;
        font-size: 0.9rem;
    }

    .form-control-modern:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .fade-in {
        animation: fadeIn 0.3s ease-in-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* --- BATCH ACTION BAR --- */
    .batch-action-bar {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        background: #1e293b;
        color: white;
        padding: 12px 30px;
        border-radius: 100px;
        display: flex;
        align-items: center;
        gap: 25px;
        z-index: 2100;
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
        animation: barSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 1px solid rgba(255,255,255,0.1);
        backdrop-filter: blur(10px);
    }

    @keyframes barSlideUp {
        from { transform: translate(-50%, 100px); opacity: 0; }
        to { transform: translate(-50%, 0); opacity: 1; }
    }

    .batch-action-bar__count {
        background: #3b82f6;
        padding: 6px 16px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.95rem;
        box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    }

    .batch-action-bar__actions {
        display: flex;
        gap: 20px;
        border-left: 1px solid rgba(255,255,255,0.15);
        padding-left: 20px;
    }

    .batch-action-bar__btn {
        background: transparent;
        border: none;
        color: #94a3b8;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        transition: all 0.3s;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        min-width: 60px;
    }

    .batch-action-bar__btn:hover {
        color: white;
        transform: translateY(-3px);
    }

    .batch-action-bar__btn i {
        font-size: 1.4rem;
        margin-bottom: 2px;
    }

    .batch-action-bar__btn--danger:hover {
        color: #ef4444;
    }

    .batch-action-bar__btn--success:hover {
        color: #10b981;
    }

    /* --- STATUS MODAL MODERNIZATION --- */
    #statusModal .modal-content {
        border-radius: 20px;
        border: none;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
        overflow: hidden;
    }

    #statusModal .modal-header {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        color: white;
        border-bottom: none;
        padding: 1.5rem 2rem;
    }

    #statusModal .modal-header .close {
        color: white;
        text-shadow: none;
        opacity: 0.8;
    }

    #statusModal .modal-body {
        padding: 2rem;
        background: #f8fafc;
    }

    #statusModal .list-group-item {
        border: 1px solid #e2e8f0;
        margin-bottom: 10px;
        border-radius: 12px !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        padding: 15px 20px;
        font-weight: 600;
        color: #475569;
        background: white;
    }

    #statusModal .list-group-item:hover {
        background-color: #fff;
        border-color: #3b82f6;
        transform: scale(1.02) translateX(5px);
        color: #1e293b;
        box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
    }

    #statusModal .list-group-item i {
        font-size: 1.1rem;
        transition: transform 0.2s;
    }

    #statusModal .list-group-item:hover i {
        transform: scale(1.2);
    }
    /* ------------------------------------ */


    thead th {
        font-size: 1rem;
    }

    .custom-dropdown {
        position: relative;
        display: inline-block;
    }

    button {
        cursor: pointer;
    }

    crm-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        backdrop-filter: blur(3px);
    }

    .crm-customer-modal {
        background: #ffffff;
        width: 960px;
        max-width: 95%;
        height: 85vh;
        border-radius: 12px;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* --- HEADER --- */
    .crm-modal__header {
        padding: 16px 24px;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .crm-modal__title-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .crm-modal__company-name {
        margin: 0;
        font-size: 1.25rem;
        color: #1e293b;
        font-weight: 600;
    }

    .crm-modal__customer-id-badge {
        background: #f1f5f9;
        color: #64748b;
        font-size: 0.75rem;
        padding: 3px 8px;
        border-radius: 4px;
        font-weight: 500;
    }

    .crm-modal__close-action {
        background: transparent;
        border: none;
        font-size: 24px;
        color: #94a3b8;
        cursor: pointer;
        padding: 0;
        line-height: 1;
    }

        .crm-modal__close-action:hover {
            color: #ef4444;
        }

    .crm-modal__body-layout {
        display: flex;
        flex: 1;
        overflow: hidden;
    }

    .crm-modal__profile-sidebar {
        width: 35%;
        min-width: 320px;
        background: #fff;
        border-right: 1px solid #e2e8f0;
        padding: 20px;
        overflow-y: auto;
    }

    .crm-data-card {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .crm-data-card__title {
        margin: 0 0 12px 0;
        font-size: 0.8rem;
        text-transform: uppercase;
        color: #94a3b8;
        letter-spacing: 0.5px;
        border-bottom: 1px solid #f8fafc;
        padding-bottom: 8px;
    }

    .crm-data-card--financial {
        background: #f8fafc;
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }

    .crm-financial__metric {
        display: flex;
        flex-direction: column;
    }

    .crm-financial__label {
        font-size: 0.7rem;
        color: #64748b;
        margin-bottom: 4px;
    }

    .crm-financial__value {
        font-size: 1rem;
        font-weight: 700;
        color: #334155;
    }

    .crm-financial__value--negative {
        color: #ef4444;
    }

    .crm-financial__value--positive {
        color: #10b981;
    }

    .crm-info-row {
        display: flex;
        gap: 10px;
        margin-bottom: 12px;
        font-size: 0.9rem;
        color: #334155;
    }

    .crm-icon {
        width: 20px;
        text-align: center;
    }

    .crm-contact__wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .crm-contact__avatar {
        width: 42px;
        height: 42px;
        background: #3b82f6;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

    .crm-contact__info {
        display: flex;
        flex-direction: column;
    }

    .crm-contact__name {
        font-weight: 600;
        color: #1e293b;
        font-size: 0.95rem;
    }

    .crm-contact__id {
        font-size: 0.75rem;
        color: #94a3b8;
    }

    .crm-contact__phone-link {
        font-size: 0.85rem;
        color: #2563eb;
        text-decoration: none;
        margin-top: 2px;
    }

    .crm-contact__empty {
        font-style: italic;
        color: #cbd5e1;
        font-size: 0.9rem;
    }

    .crm-modal__timeline-content {
        flex: 1;
        background: #f1f5f9;
        padding: 20px;
        display: flex;
        flex-direction: column;
    }

    .crm-timeline__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .crm-timeline__title {
        margin: 0;
        font-size: 1rem;
        color: #475569;
        font-weight: 600;
    }

    .crm-timeline__count-badge {
        background: #e2e8f0;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        color: #64748b;
        font-weight: bold;
    }

    .crm-timeline__scroll-area {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden !important;
        padding-right: 5px;
    }

    .crm-timeline__empty-state {
        text-align: center;
        color: #94a3b8;
        margin-top: 40px;
        font-style: italic;
    }

    /* Not KartÄ± */
    .crm-note-entry {
        background: white;
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 8px;
        border-left: 4px solid #cbd5e1;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    .crm-note-entry__meta {
        display: flex;
        justify-content: space-between;
        margin-bottom: 6px;
    }

    .crm-note-entry__tag {
        font-size: 0.7rem;
        font-weight: bold;
        text-transform: uppercase;
        background: #f1f5f9;
        color: #64748b;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .crm-note-entry__date {
        font-size: 0.75rem;
        color: #94a3b8;
    }

    .crm-note-entry__subject {
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 6px;
    }

    .crm-note-entry__content {
        font-size: 0.9rem;
        color: #475569;
        white-space: pre-wrap;
        line-height: 1.4;
    }

    .crm-note-entry__content--empty {
        color: #cbd5e1;
        font-style: italic;
    }

    .crm-note-entry__footer {
        margin-top: 10px;
        pt: 10px;
        border-top: 1px solid #f1f5f9;
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
        color: #94a3b8;
    }

    /* Not Renkleri */
    .crm-note-entry--critical {
        border-left-color: #ef4444;
    }
        /* KÄ±rmÄ±zÄ± */
        .crm-note-entry--critical .crm-note-entry__tag {
            background: #fef2f2;
            color: #ef4444;
        }

    .crm-note-entry--positive {
        border-left-color: #10b981;
    }
        /* YeÅŸil */
        .crm-note-entry--positive .crm-note-entry__tag {
            background: #ecfdf5;
            color: #047857;
        }

    .crm-note-entry--warning {
        border-left-color: #f59e0b;
    }
        /* Turuncu */
        .crm-note-entry--warning .crm-note-entry__tag {
            background: #fffbeb;
            color: #b45309;
        }

    /* --- FOOTER --- */
    .crm-modal__actions {
        padding: 16px 24px;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        display: flex;
        justify-content: flex-end;
        gap: 12px;
    }

    .crm-btn {
        padding: 8px 16px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 500;
        border: none;
    }

    .crm-btn--cancel {
        background: #fff;
        border: 1px solid #cbd5e1;
        color: #475569;
    }

        .crm-btn--cancel:hover {
            background: #f8fafc;
            color: #1e293b;
        }

    .crm-btn--confirm {
        background: #2563eb;
        color: white;
    }

        .crm-btn--confirm:hover {
            background: #1d4ed8;
        }

    /* Transition (Fade Effect) */
    .crm-fade-enter-active, .crm-fade-leave-active {
        transition: opacity 0.3s;
    }

    .crm-fade-enter, .crm-fade-leave-to {
        opacity: 0;
    }

    .dropdown-options {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 350px;
        max-height: 350px; /* Adjust the max height to your preference */
        overflow-y: auto;
        background-color: #fff;
        border: 1px solid #ccc;
        border-top: none;
        list-style: none;
        margin: 0;
        padding: 0;
        z-index: 999;
    }

    .custom-control {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #customerVSelect div {
        height: 100%;
    }

    .order-type-switch {
        width: 11rem;
        height: 2rem;
        background-color: #e9ecef;
        border-radius: 22px;
        cursor: pointer;
        padding: 4px;
        position: relative;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
        transition: background-color 0.4s ease-in-out;
    }

    /* Switch'in aktif durum stili (BEM: Modifier) */
    .order-type-switch--active {
        background: linear-gradient(45deg, #67a5b9, #b0b8ff);
    }

    /* Hareket eden kÄ±sÄ±m (BEM: Element) */
    .order-type-switch__thumb {
        width: 140px;
        height: 100%;
        background-color: #ffffff;
        border-radius: 18px;
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-weight: 500;
        color: #343a40;
        font-size: 14px;
        box-sizing: border-box;
        box-shadow: 0 3px 8px rgba(0,0,0,0.12), 0 3px 1px rgba(0,0,0,0.04);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    /* Aktif durumda hareketli kÄ±smÄ±n konumu */
    .order-type-switch--active .order-type-switch__thumb {
        transform: translateX(calc(240px - 194px - 8px));
    }

    /* Ä°kon stili (BEM: Element) */
    .order-type-switch__icon {
        width: 20px;
        height: 20px;
        transition: fill 0.3s ease;
    }

    /* YazÄ± stili (BEM: Element) */
    .order-type-switch__label {
        user-select: none; /* YazÄ±nÄ±n seÃ§ilmesini engeller */
    }


    /* Durumu gÃ¶steren metin bloÄŸu */
    .order-status-display {
        font-size: 18px;
        font-weight: 500;
        color: #495057;
    }

    /* Durumu gÃ¶steren metnin deÄŸer kÄ±smÄ± */
    .order-status-display__value {
        font-weight: 600;
        transition: color 0.3s ease;
    }

    /* Switch aktifken durum metninin rengi */
    .order-type-switch--active ~ .order-status-display .order-status-display__value {
        color: #4c75af;
    }

    /* Switch pasifken durum metninin rengi */
    .order-type-switch:not(.order-type-switch--active) ~ .order-status-display .order-status-display__value {
        color: #6c757d;
    }

    [v-cloak] {
        display: none;
    }

    .nav-link {
        padding: 0.2rem !important;
    }

    .vue-treeselect__control {
        min-height: 38px;
    }

    .vs__dropdown-toggle {
        min-height: 38px;
    }

    .history-panel {
        margin-top: 1rem;
    }

    .history-card {
        border-radius: 18px;
        overflow: hidden;
        background: #fff;
    }

    .history-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem 1.25rem 1rem 1.25rem;
        border-bottom: 1px solid #eef2f7;
        background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
    }

    .history-title {
        font-size: 1.15rem;
        font-weight: 700;
        color: #1f2d3d;
    }

    .history-subtitle {
        margin-top: .35rem;
        color: #6b7280;
        font-size: .92rem;
    }

    .history-header-right {
        display: flex;
        gap: .75rem;
        flex-wrap: wrap;
    }

    .history-tab-btn {
        border: 1px solid #cfe2f3;
        background: #f4f9fc;
        color: #0b6aa2;
        border-radius: 12px;
        padding: .65rem 1rem;
        font-weight: 600;
        transition: .2s ease;
        min-width: 180px;
    }

        .history-tab-btn:hover {
            background: #e8f4fb;
            border-color: #9cc9e4;
        }

        .history-tab-btn.active {
            background: #0b6aa2;
            color: #fff;
            border-color: #0b6aa2;
            box-shadow: 0 6px 18px rgba(11, 106, 162, .18);
        }

    .history-summary {
        margin-top: 0 !important;
    }

    .summary-box {
        background: #f8fafc;
        border: 1px solid #edf2f7;
        border-radius: 14px;
        padding: 1rem;
        height: 100%;
    }

    .summary-label {
        font-size: .82rem;
        color: #6b7280;
        margin-bottom: .35rem;
    }

    .summary-value {
        font-size: 1.15rem;
        font-weight: 700;
        color: #1f2937;
    }

        .summary-value.small-text {
            font-size: .92rem;
            line-height: 1.35;
        }

    .history-table-wrapper {
        border: 1px solid #edf2f7;
        border-radius: 16px;
        overflow: auto;
        max-height: 650px;
        background: #fff;
    }

    .history-table {
        min-width: 1400px;
        margin-bottom: 0;
    }

        .history-table thead th {
            position: sticky;
            top: 0;
            z-index: 2;
            background: #f8fafc;
            color: #334155;
            font-size: .82rem;
            font-weight: 700;
            border-bottom: 1px solid #e5e7eb;
            white-space: nowrap;
            text-align: center;
            padding: .85rem .75rem;
        }

        .history-table tbody td {
            text-align: center;
            vertical-align: middle;
            padding: .8rem .75rem;
            font-size: .9rem;
            color: #374151;
            white-space: nowrap;
            border-top: 1px solid #f1f5f9;
        }

        .history-table tbody tr:hover {
            background: #fafcff;
        }

    .remark-cell {
        max-width: 260px;
        min-width: 220px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .badge-soft {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        padding: .35rem .7rem;
        font-size: .78rem;
        font-weight: 700;
    }

    .badge-soft-success {
        background: rgba(16, 185, 129, .12);
        color: #059669;
    }

    .badge-soft-warning {
        background: rgba(245, 158, 11, .15);
        color: #b45309;
    }

    .badge-soft-secondary {
        background: rgba(100, 116, 139, .15);
        color: #475569;
    }

    .status-pill {
        display: inline-block;
        border: 1px solid;
        border-radius: 999px;
        padding: .3rem .7rem;
        font-size: .78rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .bool-yes,
    .bool-no {
        display: inline-flex;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: .95rem;
    }

    .bool-yes {
        color: #059669;
        background: rgba(16, 185, 129, .12);
    }

    .bool-no {
        color: #dc2626;
        background: rgba(239, 68, 68, .12);
    }

    .history-empty {
        padding: 3rem 1rem;
        color: #94a3b8;
        text-align: center;
        font-size: .95rem;
    }

        .history-empty i {
            font-size: 1.6rem;
        }

    .history-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .history-footer-text {
        color: #6b7280;
        font-size: .92rem;
    }

    .history-pagination {
        display: flex;
        gap: .4rem;
        align-items: center;
        flex-wrap: wrap;
    }

    .page-btn {
        min-width: 38px;
        height: 38px;
        border: 1px solid #dbe4ee;
        background: #fff;
        color: #334155;
        border-radius: 10px;
        font-weight: 600;
        transition: .2s ease;
    }

        .page-btn:hover:not(:disabled) {
            background: #f8fafc;
            border-color: #b8d8e7;
        }

        .page-btn.active {
            background: #0b6aa2;
            color: #fff;
            border-color: #0b6aa2;
        }

        .page-btn:disabled {
            opacity: .45;
            cursor: not-allowed;
        }

    @media (max-width: 991px) {
        .history-header {
            flex-direction: column;
            align-items: stretch;
        }

        .history-header-right {
            width: 100%;
        }

        .history-tab-btn {
            flex: 1;
            min-width: auto;
        }

        .history-footer {
            flex-direction: column;
            align-items: stretch;
        }

        .history-pagination {
            justify-content: center;
        }
    }

/* --- ORDER TABLE SORTING STYLES --- */
#orderTable thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

#orderTable thead th.sortable:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

#orderTable thead th .sort-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    vertical-align: middle;
}

#orderTable thead th .sort-icon-active {
    color: #2563eb;
    font-size: 0.95rem;
}

#orderTable thead th .sort-icon-inactive {
    color: #94a3b8;
    opacity: 0.35;
    font-size: 0.85rem;
    transition: opacity 0.2s ease, color 0.2s ease;
}

#orderTable thead th.sortable:hover .sort-icon-inactive {
    opacity: 0.8;
    color: #64748b;
}
