/* =================================================================================== 
   CONNECTO GLOBAL ERP — FINAL STABLE UI CSS 
=================================================================================== */ 
:root{ 
    --connecto-blue:#1E4F6F; 
    --connecto-blue-light:#2E6F95; 
    --connecto-dark:#0D2431; 
    --connecto-gray:#C8C8CC; 
    --connecto-white:#F5F7FA; 
    --glass-light:rgba(255,255,255,0.07); 
    --glass-mid:rgba(255,255,255,0.12); 
    --glass-strong:rgba(255,255,255,0.20); 
} 

html, body { 
    height: 100%; 
    overflow-x: hidden; /* Prevent horizontal scrollbar */
} 
body { 
    font-family: 'Poppins', sans-serif; 
    /* background-attachment: fixed kaldırıldı — Chrome'da backdrop-filter ile stacking context bozuyordu */
    background: linear-gradient(135deg, var(--connecto-blue), var(--connecto-dark)) fixed; 
    background-size: cover;
    color: var(--connecto-white); 
} 

/* =========================================================== 
   NAVBAR 
=========================================================== */ 
.navbar { 
    background: #ffffff !important; 
    border-bottom: 1px solid rgba(0,0,0,.1) !important; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
} 
.navbar .nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.9rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
.navbar .nav-link:hover {
    color: #ff4fa5 !important; /* Telefon pembesi */
}
.navbar-brand img { height: auto; max-height: 120px; } 

/* main.container styling removed to support system-container class in base.html */ 	 


/* =========================================================== 
   TABLE STYLES (Global)
   Kullanıcı isteği üzerine global beyaz tablo stili kaldırıldı.
   Eski şeffaf/koyu stil geri getirildi.
=========================================================== */ 
/* 
.table {
    --bs-table-bg: #ffffff !important;
    --bs-table-color: #000000 !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #dee2e6 !important;
}

.table tbody, 
.table td, 
.table th {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #dee2e6 !important;
}
*/

/* Tablo içindeki input/select elemanları - Varsayılan (Glass) */
.table .form-control,
.table .form-select {
    /* background: #ffffff !important; */
    /* color: #000000 !important; */
    /* border: 1px solid #ced4da !important; */
    /* backdrop-filter: none !important; */
    /* box-shadow: none !important; */
}

/* Light table gövdesinde (beyaz/açık satırlar) input/select'ler koyu cam görünmesin */
.table:not(.table-dark):not(.glass-table):not(.table-premium) tbody .form-control,
.table:not(.table-dark):not(.glass-table):not(.table-premium) tbody .form-select {
    background: rgba(255, 255, 255, 0.82) !important;
    color: rgba(13, 36, 49, 0.95) !important;
    border: 1px solid rgba(13, 36, 49, 0.18) !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.table:not(.table-dark):not(.glass-table):not(.table-premium) tbody .form-control:focus,
.table:not(.table-dark):not(.glass-table):not(.table-premium) tbody .form-select:focus {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(13, 36, 49, 0.38) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 36, 49, 0.10) !important;
    color: rgba(13, 36, 49, 0.98) !important;
}

.table:not(.table-dark):not(.glass-table):not(.table-premium) tbody .form-control::placeholder {
    color: rgba(13, 36, 49, 0.45) !important;
}

.table:not(.table-dark):not(.glass-table):not(.table-premium) tbody .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230d2431' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

.table:not(.table-dark):not(.glass-table):not(.table-premium) tbody .form-select option {
    background-color: #ffffff;
    color: rgba(13, 36, 49, 0.98);
}

/* Tablo içi dropdown menüler beyaz olduğu için arama inputu da açık görünmeli */
.table .dropdown-menu .form-control,
.table .dropdown-menu .form-select {
    background: rgba(255, 255, 255, 0.96) !important;
    color: rgba(13, 36, 49, 0.95) !important;
    border: 1px solid rgba(13, 36, 49, 0.18) !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.table .dropdown-menu .form-control:focus,
.table .dropdown-menu .form-select:focus {
    background: #ffffff !important;
    border-color: rgba(13, 36, 49, 0.38) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 36, 49, 0.10) !important;
    color: rgba(13, 36, 49, 0.98) !important;
}

.table .dropdown-menu .form-control::placeholder {
    color: rgba(13, 36, 49, 0.45) !important;
}

.table .dropdown-menu .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230d2431' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

.table .dropdown-menu .form-select option {
    background-color: #ffffff;
    color: rgba(13, 36, 49, 0.98);
}

/*
.table .form-control:focus,
.table .form-select:focus {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}
*/

/* Tablo içindeki select ok işareti (beyaz olsun) */
/*
.table .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}
*/

/* Tablo başlıkları (Koyu kalabilir veya kullanıcı isteğine göre değişebilir) 
   Kullanıcı "Özlük gibi" dedi, Özlük'te başlık koyu (table-dark).
*/
.table thead th {
    background-color: #212529 !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.14) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.table {
    table-layout: auto;
    width: 100%;
}

.table-responsive,
.glass-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block;
    width: 100%;
    max-width: 100%;
}

.table-responsive .table,
.glass-table-container .table,
.table-responsive > table,
.glass-table-container > table {
    width: max-content !important;
    min-width: 100% !important;
}

.table:not(.glass-table):not(.table-premium) {
    --bs-table-border-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

/* Glass Table Styles */
.glass-table {
    --bs-table-bg: transparent !important;
    background: rgba(255, 255, 255, 0.07) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    margin-bottom: 1.5rem !important;
}

.glass-table thead th {
    background-color: rgba(0, 0, 0, 0.35) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 12px 14px !important;
}

.glass-table thead th:last-child {
    border-right: none !important;
}

.glass-table tbody tr > td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    vertical-align: middle;
}

.glass-table tbody tr > td:last-child {
    border-right: none !important;
}

.glass-table tbody tr:last-child > td {
    border-bottom: none !important;
}

.glass-table tbody tr:not(.subRow):not(.subRowGenel) {
    background-color: rgba(255, 255, 255, 0.02) !important;
    transition: background-color 0.2s ease;
}

.glass-table tbody tr:not(.subRow):not(.subRowGenel):hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Sub-row styling for detail expandable panel inside glass tables */
.glass-table tbody tr.subRow > td,
.glass-table tbody tr.subRowGenel > td {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.15) !important;
    padding: 14px 18px !important;
}

/* Ensure table-hover works nicely with glass tables */
.table-hover.glass-table tbody tr:hover > * {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Glass Table Form Inputs & Selects */
.glass-table .form-control,
.glass-table .form-select {
    background-color: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 8px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.glass-table .form-control:focus,
.glass-table .form-select:focus {
    background-color: rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.glass-table .form-control:disabled,
.glass-table .form-select:disabled,
.glass-table .form-control[readonly] {
    background-color: rgba(255, 255, 255, 0.07) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    opacity: 0.85;
}

.table:not(.glass-table):not(.table-premium) thead th,
.table:not(.glass-table):not(.table-premium) tbody td {
    white-space: nowrap;
    vertical-align: middle;
    height: 54px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.table > :not(caption) > * > * {
    border: 0 !important;
}

.table:not(.glass-table):not(.table-premium) thead th {
    border-right: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.table:not(.glass-table):not(.table-premium) thead th:last-child {
    border-right: 0 !important;
}

.table:not(.glass-table):not(.table-premium) tbody tr:nth-of-type(odd) {
    --cx-row-bg: rgba(255, 255, 255, 0.98);
}

.table:not(.glass-table):not(.table-premium) tbody tr:nth-of-type(even) {
    --cx-row-bg: rgba(242, 245, 248, 0.98);
}

.table:not(.glass-table):not(.table-premium) tbody tr > * {
    background-color: var(--cx-row-bg) !important;
    color: rgba(13, 36, 49, 0.95) !important;
    box-shadow: none !important;
}

.table thead th {
    position: relative;
    overflow: visible !important;
}

.table tbody td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-hover:not(.glass-table):not(.table-premium) tbody tr:hover > * {
    background-color: var(--cx-row-bg) !important;
}

.table .dropdown-menu {
    z-index: 130000;
}

.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

.malzeme-th {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

th.text-center .malzeme-th,
.text-center > .malzeme-th,
.malzeme-th.malzeme-th--center {
    justify-content: center !important;
}

.malzeme-th-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: inherit !important;
}

.malzeme-filter-toggle {
    flex: 0 0 auto;
    line-height: 1;
    width: 26px;
    height: 26px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.cx-sort-dropdown {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
}

.cx-sort-toggle {
    line-height: 1;
    width: 26px;
    height: 26px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.table thead th:hover .cx-sort-toggle,
.table thead th.cx-sorted-asc .cx-sort-toggle,
.table thead th.cx-sorted-desc .cx-sort-toggle {
    opacity: 1;
}

.table thead th.cx-sorted-asc::after,
.table thead th.cx-sorted-desc::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 36px;
    font-size: 0.7rem;
    opacity: 0.95;
}

.table thead th.cx-sorted-asc::after {
    content: "▲";
}

.table thead th.cx-sorted-desc::after {
    content: "▼";
}

.malzeme-filter-menu--floating {
    position: fixed !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 130000 !important;
}

/* Filter Box Scroll */
.filter-box {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 180px; /* Yaklaşık 5 öğe */
    overflow-y: auto;
}
.filter-box::-webkit-scrollbar {
    width: 6px;
}
.filter-box::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}

/* Tablo içindeki disabled inputlar */
.table .form-control:disabled,
.table .form-select:disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    opacity: 1;
    border-color: #ced4da !important;
}

/* =========================================================== 
   CARD 
=========================================================== */ 
.card { 
    border: none; 
    border-radius: 12px; 
    background: var(--glass-light); 
    -webkit-backdrop-filter: blur(12px); 
    backdrop-filter: blur(12px); 
    border:1px solid rgba(255,255,255,0.14); 
} 

/* =========================================================== 
   FORM ELEMANLARI 
=========================================================== */ 
.form-control, 
.form-select{ 
    background: rgba(0, 0, 0, 0.25) !important; 
    border: 1px solid rgba(255,255,255,0.2) !important; 
    color: #fff !important; 
    border-radius: 10px; 
    -webkit-backdrop-filter: blur(5px); 
    backdrop-filter: blur(5px); 
    transition: all 0.2s ease; 
} 

/* Date Input Calendar Icon - Make it white */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(100%);
    cursor: pointer;
}

/* White text class for "Yeni Sipariş Ekle" */
.text-white-force {
    color: #fff !important;
}

/* Black text class for "Malzeme Seç" header */
.text-black-force {
    color: #000 !important;
}

.form-control:focus, 
.form-select:focus { 
    background: rgba(0, 0, 0, 0.4) !important; 
    border-color: rgba(255,255,255,0.5) !important; 
    box-shadow: 0 0 10px rgba(255,255,255,0.1) !important; 
    color: #fff !important; 
} 

.form-control::placeholder { 
    color: rgba(255,255,255,0.5) !important; 
} 

/* Select ok işaretini beyaz yap */
.form-select { 
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important; 
    background-repeat: no-repeat !important; 
    background-position: right 0.75rem center !important; 
    background-size: 16px 12px !important; 
} 

/* Select Option Styling (Açılır liste) */
.form-select option {
    background-color: #1E4F6F; /* Camsı mavi tonu (Solid olmak zorunda) */
    color: #fff;
}

/* Multiple select odak kaybetse bile seçili elemanların rengini koruması */
select[multiple].form-select option:checked {
    background: linear-gradient(#0d6efd, #0d6efd) !important;
    background-color: #0d6efd !important;
    color: #fff !important;
}


/* =========================================================== 
   CONNECTO KURUMSAL SOHBET & REHBER PANELİ
=========================================================== */ 
#cx_tel_btn { 
    position: fixed; 
    left: 24px; 
    bottom: 24px; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #1e3a8a, #0284c7); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 26px; 
    color: #ffffff; 
    cursor: pointer; 
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45), 0 2px 6px rgba(0,0,0,0.3); 
    border: 1.5px solid rgba(255, 255, 255, 0.25); 
    backdrop-filter: blur(8px); 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 999990; 
    font-family: 'Poppins', sans-serif !important;
} 
#cx_tel_btn:hover { 
    transform: translateY(-3px) scale(1.08); 
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.6), 0 4px 10px rgba(0,0,0,0.4); 
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
} 
.cx-tel-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.72rem !important;
    font-weight: 700;
    padding: 4px 7px !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.9);
    animation: cxPulse 2s infinite;
}
@keyframes cxPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* =========================================================== 
   ANA İLETİŞİM & SOHBET PANELİ 
=========================================================== */ 
#cx_tel_panel { 
    position: fixed; 
    left: 24px; 
    bottom: 95px; 
    width: 390px; 
    max-width: calc(100vw - 32px);
    height: 580px; 
    max-height: calc(100vh - 120px); 
    background: rgba(15, 23, 42, 0.96); 
    backdrop-filter: blur(20px); 
    border-radius: 16px; 
    padding: 0; 
    display: none; 
    flex-direction: column;
    z-index: 999992; 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
    font-family: 'Poppins', sans-serif !important;
    overflow: hidden;
} 
#cx_tel_panel.active_tel { 
    display: flex !important; 
} 

/* Panel Header */
.cx_panel_header {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}
.cx_panel_header h6 {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
}

/* Tabs Bar */
.cx_nav_tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    gap: 6px;
}
.cx_tab_btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif !important;
}
.cx_tab_btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
.cx_tab_btn.active {
    color: #ffffff;
    background: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

/* Search and Filters */
.cx_search_bar {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cx_search_bar input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-family: 'Poppins', sans-serif !important;
}
.cx_search_bar input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}
.cx_filter_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 14px 10px;
}
.cx_chip {
    white-space: nowrap;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.15s ease;
    user-select: none;
}
.cx_chip:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}
.cx_chip.active {
    background: #0284c7;
    color: #fff;
    border-color: #38bdf8;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

/* Lists Container */
.cx_tab_content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.cx_tab_content::-webkit-scrollbar {
    width: 5px;
}
.cx_tab_content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

/* List Items */
.cx_item_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    margin-bottom: 4px;
    color: #fff;
    position: relative;
}
.cx_item_row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}
.cx_item_row.is_active {
    background: rgba(2, 132, 199, 0.2);
    border-color: rgba(2, 132, 199, 0.5);
}
.cx_avatar_box {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}
.cx_avatar_box img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.cx_initials_avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.cx_status_dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #0f172a;
}
.cx_status_dot.online { 
    background: #10b981; 
    box-shadow: 0 0 0 1px #0f172a, 0 0 8px rgba(16, 185, 129, 0.85);
}
.cx_status_dot.offline { 
    display: none; 
}

.cx_item_body {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}
.cx_item_name_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}
.cx_item_name {
    font-size: 13.5px;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cx_item_time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
    margin-left: 6px;
}
.cx_item_sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cx_item_preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* User Künye Styles (Rehber) */
.cx_kunye_role {
    font-size: 11.5px;
    line-height: 1.3;
    margin-top: 1px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cx_kunye_contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}
.cx_kunye_pill {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Quick Actions in Directory */
.cx_item_actions {
    display: flex;
    gap: 4px;
    opacity: 0.85;
    transition: opacity 0.15s;
}
.cx_action_btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
    background: rgba(255, 255, 255, 0.08);
}
.cx_action_btn:hover {
    background: #0284c7;
    transform: scale(1.1);
}
.cx_action_btn.tel:hover {
    background: #10b981;
}

/* Executive Badge */
.cx_exec_badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1e1b4b;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    letter-spacing: 0.3px;
}

/* Legacy .cx_p compatibility */
.cx_p {
    display: flex;
    gap: 9px;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
}
.cx_p:hover {
    background: rgba(255,255,255,0.14);
}
.cx_p img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4);
}

/* Detail Card Modal */
#cx_person_detail { 
    position: fixed; 
    left: 406px; 
    bottom: 95px; 
    width: 340px; 
    background: rgba(15, 23, 42, 0.97); 
    border-radius: 16px; 
    border: 1px solid rgba(255,255,255,0.18); 
    box-shadow: 0 20px 45px rgba(0,0,0,0.55); 
    padding: 18px; 
    display: none; 
    color: white; 
    z-index: 999994;
    font-family: 'Poppins', sans-serif !important;
    backdrop-filter: blur(20px);
} 
.cx_person_box { 
    display: flex; 
    gap: 14px; 
} 
.cx_person_photo img { 
    width: 80px; 
    height: 80px; 
    border-radius: 12px; 
    border: 2px solid rgba(255,255,255,0.2); 
    object-fit: cover; 
} 
.cx_person_info { 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
} 
.cx_person_name_row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 4px;
} 
#cx_chat_icon { 
    background: #0284c7; 
    padding: 6px 12px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 15px; 
    color: white; 
    transition: .15s ease; 
} 
#cx_chat_icon:hover { 
    background: #0ea5e9; 
} 
.cx_person_line { 
    opacity: .85; 
    font-size: 13px; 
    margin-bottom: 4px; 
} 

/* =========================================================== 
   FILTER BOX (Amazon Style) 
=========================================================== */ 
.filter-box { 
    list-style:none; 
    border:1px solid #555; 
    border-radius:8px; 
    min-height:40px; 
    padding:5px;
    background-color: #212529; /* Dark background */
    color: #fff; /* White text */
}
.filter-box li { padding:5px 10px; cursor:pointer; border-radius:5px; }
.filter-box li:hover { background:#343a40; } /* Slightly lighter dark */
.filter-box li.active { background:#0d6efd; color:white; }

/* =========================================================== 
   MULTI-CHAT CARDS CONTAINER (Yan yana kartlar, en fazla 4)
=========================================================== */ 
#cx_chat_cards_container {
    position: fixed;
    left: 424px;
    bottom: 95px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
    z-index: 999993;
    max-width: calc(100vw - 440px);
    overflow-x: auto;
    overflow-y: hidden;
    pointer-events: none;
    padding-bottom: 2px;
}
#cx_chat_cards_container::-webkit-scrollbar {
    height: 6px;
}
#cx_chat_cards_container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.cx_chat_card,
#cx_chat_popup {
    pointer-events: auto;
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    height: 560px;
    max-height: calc(100vh - 120px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 20px 45px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Poppins', sans-serif !important;
    flex-shrink: 0;
    position: relative;
}

.cx_chat_card.focused {
    border-color: #0284c7;
    box-shadow: 0 20px 45px rgba(2, 132, 199, 0.35);
}

.swal2-container,
.cx_swal_top_container {
    z-index: 9999999 !important;
}
.cx_swal_top_container .swal2-popup {
    margin-top: 35px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
    border-radius: 16px !important;
}

.cx_chat_header,
#cx_chat_popup_header {
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}
.cx_chat_header_info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.cx_chat_header_text {
    line-height: 1.2;
    min-width: 0;
}
.cx_chat_header_name {
    font-weight: 700;
    font-size: 14px;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cx_chat_header_status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cx_chat_controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cx_chat_ctrl_btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 15px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}
.cx_chat_ctrl_btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.cx_chat_ctrl_btn.close:hover {
    color: #ef4444;
}

#cx_chat_close {
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}
#cx_chat_close:hover { opacity: 1; color: #ef4444; }

.cx_chat_card_log,
#cx_chat_popup_log {
    flex: 1;
    padding: 14px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
#cx_chat_popup_log::-webkit-scrollbar {
    width: 5px;
}
#cx_chat_popup_log::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

/* Chat Messages */
.cx_chat_msg_user {
    align-self: flex-end;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 14px 14px 2px 14px;
    max-width: 82%;
    font-size: 13.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    line-height: 1.4;
    word-break: break-word;
}
.cx_chat_msg_sys {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    padding: 8px 14px;
    border-radius: 14px 14px 14px 2px;
    max-width: 82%;
    font-size: 13.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1.4;
    word-break: break-word;
}
.cx_chat_msg_bot {
    align-self: flex-start;
    background: rgba(13, 148, 136, 0.25);
    border: 1px solid rgba(20, 184, 166, 0.4);
    color: #ccfbf1;
    padding: 8px 14px;
    border-radius: 14px 14px 14px 2px;
    max-width: 85%;
    font-size: 13px;
    line-height: 1.4;
}
.cx_msg_footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    margin-top: 4px;
}
.cx_msg_footer span {
    opacity: 0.85;
}
.cx_msg_footer .bi-check2,
.cx_msg_footer .cx-tick-sent {
    font-size: 15px !important;
    line-height: 1;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.65) !important; /* Tek gri tik (Gönderildi) */
}
.cx_msg_footer .cx-tick-delivered {
    font-size: 18px !important;
    line-height: 1;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.75) !important; /* Çift gri tik (İletildi) */
}
.cx_msg_footer .bi-check2-all.cx-tick-read,
.cx_msg_footer .cx-tick-read {
    font-size: 18px !important;
    line-height: 1;
    vertical-align: middle;
    color: #38bdf8 !important; /* Çift mavi tik (Okundu) */
    filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
    font-weight: 700;
}

/* Quick prompt chips */
.cx_quick_chips_bar {
    display: flex;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.2);
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cx_quick_chips_bar::-webkit-scrollbar { display: none; }
.cx_quick_chip {
    white-space: nowrap;
    padding: 4px 10px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.15s ease;
}
.cx_quick_chip:hover {
    background: #0284c7;
    color: #fff;
    border-color: #38bdf8;
}

/* Chat Input Area */
.cx_chat_card_input_area,
#cx_chat_popup_input_area {
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(15, 23, 42, 0.98);
}
.cx_chat_card_input_area input,
#cx_chat_popup_input {
    flex: 1;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    color: #ffffff !important;
    padding: 9px 14px !important;
    border-radius: 20px !important;
    outline: none !important;
    font-size: 13.5px !important;
    font-family: 'Poppins', sans-serif !important;
}
.cx_chat_card_input_area input::placeholder,
#cx_chat_popup_input::placeholder { color: rgba(255,255,255,0.45); }
.cx_chat_card_input_area input:focus,
#cx_chat_popup_input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.3) !important;
}

.cx_chat_card_input_area button,
#cx_chat_popup_input_area button {
    background: #0284c7;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
    flex-shrink: 0;
}
.cx_chat_card_input_area button:hover,
#cx_chat_popup_input_area button:hover { 
    background: #0369a1; 
    transform: scale(1.06);
}


/* =========================================================== 
   MODAL (Glassmorphism) 
=========================================================== */ 
.modal-content {
    background: rgba(20, 30, 40, 0.75) !important; /* Darker glass for readability on white/mixed backgrounds */
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important;
    color: #fff !important;
    border-radius: 16px !important;
}
.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.modal-title {
    color: #fff !important;
    font-weight: 600;
}
.modal-body {
    color: #ddd;
}
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* =========================================================== 
   GLOBAL FORM LABELS 
=========================================================== */ 
.form-label, label:not(.btn):not(.form-check-label) {
    color: #ffffff !important;
}

/* Modal (Koyu/Glassmorphism) Etiketleri ve Metinleri */
.modal-content .form-label,
.modal-content label:not(.btn):not(.form-check-label),
.modal-body .form-label,
.modal-body label:not(.btn):not(.form-check-label) {
    color: #ffffff !important;
}

/* Koyu Modallarda Text Muted ve Yardımcı Metinler Açık/Okunaklı Renk */
.modal-content:not(.bg-white):not(.modal-content-white):not(.text-dark) .text-muted,
.modal-body:not(.bg-white):not(.text-dark) .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Özel Renk Tanımlı Etiketlerin (Warning, Danger, Info, Success) Rengini Koru */
.modal-content .form-label.text-warning,
.modal-content label.text-warning {
    color: #f59e0b !important;
}
.modal-content .form-label.text-danger,
.modal-content label.text-danger {
    color: #ef4444 !important;
}
.modal-content .form-label.text-info,
.modal-content label.text-info {
    color: #0dcaf0 !important;
}
.modal-content .form-label.text-success,
.modal-content label.text-success {
    color: #10b981 !important;
}

/* SADECE Beyaz/Açık Zeminli Modallarda ve Beyaz Alanlarda Form Etiketleri Koyu Renk */
.modal-content.bg-white .form-label,
.modal-content.bg-white label:not(.btn),
.modal-content.text-dark .form-label,
.modal-content.text-dark label:not(.btn),
.modal-content-white .form-label,
.modal-content-white label:not(.btn),
.modal-content .bg-white .form-label,
.modal-content .bg-white label:not(.btn),
.bg-white .form-label,
.bg-white label:not(.btn),
.talent-filter-bar .form-label,
.talent-filter-bar label:not(.btn) {
    color: #111827 !important;
}

/* Koyu Modallarda Input Autofill Düzenlemesi */
.modal-content input:-webkit-autofill,
.modal-content input:-webkit-autofill:hover, 
.modal-content input:-webkit-autofill:focus, 
.modal-content select:-webkit-autofill,
.modal-content textarea:-webkit-autofill,
.form-control.bg-dark:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #1e293b inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Radio & Checkbox Button Groups Contrast Fix */
.btn-outline-success {
    color: #16a34a !important;
    border-color: #16a34a !important;
    background-color: #ffffff;
}
.btn-outline-success:hover,
.btn-check:checked + .btn-outline-success,
.btn-check:checked + label.btn-outline-success,
.btn-outline-success.active,
.btn-outline-success:active {
    color: #ffffff !important;
    background-color: #16a34a !important;
    border-color: #16a34a !important;
}

.btn-outline-danger {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
    background-color: #ffffff;
}
.btn-outline-danger:hover,
.btn-check:checked + .btn-outline-danger,
.btn-check:checked + label.btn-outline-danger,
.btn-outline-danger.active,
.btn-outline-danger:active {
    color: #ffffff !important;
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}

/* Kart içi yazılar */ 
.talep-title { 
    font-size: 18px; /* Global font uyumu için biraz küçültüldü */
    font-weight: 600; 
    margin-bottom: 8px; 
    color: var(--connecto-white); 
    text-shadow: 0 0 5px rgba(0,0,0,0.5); 
} 

.small-label { 
    color: #cbd5e0; 
    font-weight: 500; 
    font-size: 0.9rem; 
}

/* =========================================================== 
   USER REQUESTS: WHITE TEXT IN CARDS 
=========================================================== */

/* Üretim Kartları */
.jobCard, .jobCard h5, .jobCard p, .jobCard strong {
    color: #ffffff !important;
}

.jobCard-Urgent {
    border-left: 5px solid #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.22) !important;
}
.jobCard-Urgent:hover {
    box-shadow: 0 0.5rem 1rem rgba(220, 53, 69, 0.35) !important;
}
.badge-urgent {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.35em 0.65em;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.6);
    display: inline-block;
    vertical-align: middle;
}

/* Kit Durumu Kartları */
.kit-card, .kit-card h5, .kit-card p, .kit-card strong {
    color: #ffffff !important;
}

/* Depo Kit Hazırlama Kartları (Sekme 2) */
#sekme2 .card, #sekme2 .card h5, #sekme2 .card p, #sekme2 .card strong {
    color: #ffffff !important;
}

/* =========================================================== 
   ADAM-SAAT BADGE (Glassmorphic) 
=========================================================== */
.badge-kaynak-xl {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    z-index: 10;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.kaynakAltYazi-xl {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================================== 
   BEKLEME SÜRESİ KRONOMETRE BADGE & POPOVER (Kit Durumu Stili)
=========================================================== */
.badge-bekleme-kronometre {
    position: absolute;
    top: 86px;
    right: 15px;
    background: #0f172a !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #38bdf8 !important;
    z-index: 20;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: default;
    transition: all 0.2s ease;
}

.dashboard-card .badge-bekleme-kronometre,
.dashboard-container .badge-bekleme-kronometre {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    border-radius: 50rem !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 3px 9px !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
}

.dashboard-card .badge-bekleme-kronometre .bekleme-popover,
.dashboard-container .badge-bekleme-kronometre .bekleme-popover {
    left: 0 !important;
    right: auto !important;
    bottom: calc(100% + 8px) !important;
}

.dashboard-card .badge-bekleme-kronometre .bekleme-popover::after,
.dashboard-container .badge-bekleme-kronometre .bekleme-popover::after {
    left: 20px !important;
    right: auto !important;
}

.badge-bekleme-kronometre:hover {
    border-color: rgba(56, 189, 248, 0.8) !important;
    background: #1e293b !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
    color: #ffffff !important;
    z-index: 50;
}

.badge-bekleme-kronometre.bekleme-uzun {
    border-color: rgba(245, 158, 11, 0.7) !important;
    background: #181b20 !important;
    color: #fbbf24 !important;
}

.badge-bekleme-kronometre.bekleme-kritik {
    border-color: rgba(239, 68, 68, 0.7) !important;
    background: #181b20 !important;
    color: #f87171 !important;
}

.badge-bekleme-kronometre.badge-bekleme-paused {
    border-color: rgba(251, 191, 36, 0.4) !important;
    background: rgba(30, 41, 59, 0.85) !important;
    color: #94a3b8 !important;
    opacity: 0.85;
}

/* =========================================================== 
   24 SAAT SARI TOP GERİ SAYIM SAYACI (Ara Denetim Beklemesi)
=========================================================== */
.badge-sari-geri-sayim {
    position: absolute;
    top: 122px;
    right: 15px;
    background: linear-gradient(135deg, rgba(202, 138, 4, 0.25) 0%, rgba(234, 179, 8, 0.15) 100%) !important;
    border: 1px solid rgba(250, 204, 21, 0.6) !important;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fde047 !important;
    z-index: 21;
    text-align: center;
    box-shadow: 0 4px 12px rgba(202, 138, 4, 0.25);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.badge-sari-geri-sayim:hover {
    background: linear-gradient(135deg, rgba(202, 138, 4, 0.45) 0%, rgba(234, 179, 8, 0.3) 100%) !important;
    border-color: #fef08a !important;
    box-shadow: 0 4px 16px rgba(250, 204, 21, 0.45);
    transform: translateY(-1px);
    z-index: 50;
}

.badge-sari-geri-sayim.sari-doldu {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.4) 0%, rgba(234, 88, 12, 0.3) 100%) !important;
    border-color: #f87171 !important;
    color: #fca5a5 !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5) !important;
    animation: sariPulse 1.5s infinite;
}

@keyframes sariPulse {
    0% { transform: scale(1); box-shadow: 0 0 5px rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.04); box-shadow: 0 0 16px rgba(239, 68, 68, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 5px rgba(239, 68, 68, 0.4); }
}

.badge-sari-geri-sayim:hover .bekleme-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Kit Durumu Tarzı Şık Hover Popover */
.bekleme-popover {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 8px;
    padding: 9px 12px;
    width: max-content;
    min-width: 210px;
    max-width: 280px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(56, 189, 248, 0.2);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    font-family: 'Poppins', sans-serif !important;
    text-align: left;
}

.bekleme-popover::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(56, 189, 248, 0.5) transparent transparent transparent;
}

.badge-bekleme-kronometre:hover .bekleme-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.bekleme-popover-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 5px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
}

.bekleme-popover-body {
    font-size: 10.5px;
    line-height: 1.5;
}

.bekleme-popover-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 3px;
}

.bekleme-popover-label {
    color: #94a3b8;
    font-weight: 400;
}

.bekleme-popover-val {
    color: #f8fafc;
    font-weight: 600;
    font-family: 'Poppins', sans-serif !important;
}

/* =========================================================== 
   SWEETALERT2 DARK THEME 
   (Fixes white text on white background issue)
=========================================================== */ 
.swal2-popup {
    background: rgba(20, 30, 40, 0.95) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px !important;
}

.swal2-title {
    color: #ffffff !important;
}

.swal2-html-container {
    color: rgba(255,255,255,0.9) !important;
}

.swal2-radio label {
    color: #ffffff !important;
}

/* Radyo butonlarının etrafındaki alanın şeffaf olması için */
.swal2-radio {
    background: transparent !important;
}

.cx-accordion .accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
}

.cx-accordion .accordion-button {
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    box-shadow: none;
}

.cx-accordion .accordion-button::after {
    filter: invert(1);
    opacity: 0.9;
}

.cx-accordion .accordion-button:not(.collapsed) {
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
}

.cx-accordion .accordion-body {
    background: transparent;
}

/* Table Dark override to guarantee white text on dark background in modals */
.table-dark tbody tr > * {
    color: #ffffff !important;
}

/* =========================================================== 
   MODAL WIDTH ADJUSTMENTS (WIDEN HORIZONTAL SCROLLING MODALS)
=========================================================== */ 
@media (min-width: 992px) {
    .modal-lg {
        max-width: 90% !important;
    }
}
@media (min-width: 1200px) {
    .modal-xl {
        max-width: 95% !important;
    }
}
.modal-body {
    overflow-x: auto;
}

/* =========================================================== 
   COMPREHENSIVE MOBILE RESPONSIVE OPTIMIZATION (< 768px & < 576px)
=========================================================== */
@media (max-width: 768px) {
    /* Prevent iOS Safari auto-zoom on input focus by enforcing min 16px font-size */
    input[type="text"],
    input[type="password"],
    input[type="datetime-local"],
    input[type="date"],
    input[type="number"],
    input[type="email"],
    input[type="search"],
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px !important;
        border-radius: 8px;
    }

    /* Touch target sizes & spacing for mobile fingers */
    .btn {
        min-height: 42px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .dropdown-item {
        min-height: 40px;
        display: flex;
        align-items: center;
        padding: 10px 14px !important;
    }

    /* Mobile Container Padding & Overflow Fixes */
    .system-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Smooth Touch Scroll for Tables & Nav Tabs */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        border-radius: 10px;
        margin-bottom: 1rem;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
    }

    .nav-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        padding-bottom: 4px;
    }

    .nav-tabs .nav-item {
        flex: 0 0 auto;
    }

    /* Cards & Modals on mobile screens */
    .card {
        border-radius: 14px !important;
        margin-bottom: 1rem;
    }

    .card-header, .card-footer {
        padding: 0.75rem 1rem !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    .modal-dialog {
        margin: 0.5rem auto !important;
        max-width: 96vw !important;
    }

    .swal2-popup {
        width: 94vw !important;
        padding: 1rem 0.75rem !important;
    }

    /* Filter bars & responsive button groups */
    .mobile-w-100 {
        width: 100% !important;
    }

    .mobile-mb-2 {
        margin-bottom: 0.5rem !important;
    }

    /* Page title header text adjustments on small mobile screens */
    h1, .h1 { font-size: 1.6rem !important; }
    h2, .h2 { font-size: 1.35rem !important; }
    h3, .h3 { font-size: 1.2rem !important; }
    h4, .h4 { font-size: 1.1rem !important; }
    h5, .h5 { font-size: 1.0rem !important; }
}

@media (max-width: 576px) {
    /* Extra small phone tweaks (< 576px) */
    .system-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

}

/* =========================================================== 
   SWEETALERT2 GLOBAL STYLING 
=========================================================== */ 
.swal2-container {
    z-index: 99999 !important;
}

.swal2-popup .swal2-input,
.swal2-popup .swal2-textarea,
.swal2-popup .swal2-select {
    color: #ffffff !important;
    background-color: #2b303b !important;
    border: 1px solid #4a5568 !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
}

.swal2-popup .swal2-input::placeholder,
.swal2-popup .swal2-textarea::placeholder {
    color: #a0aec0 !important;
}

.swal2-popup .swal2-input:focus,
.swal2-popup .swal2-textarea:focus,
.swal2-popup .swal2-select:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    color: #ffffff !important;
}



/* --- Palace Script MT İmza Fontu Standardı --- */
@font-face {
    font-family: 'Palace Script MT';
    src: url('/static/fonts/PALSCRI.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.imza-font {
    font-family: 'Palace Script MT', cursive, sans-serif !important;
    font-size: 28px;
    line-height: 1;
    color: #0f172a;
    white-space: nowrap;
    display: inline-block;
    user-select: none;
    letter-spacing: 0.5px;
}
