.card1,
.sagcard {
    margin-bottom: 75px;
    border-radius: 50px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-in-out;
    font-size: 16px;
    font-weight: bold;
    padding: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.card1 {
    background: linear-gradient(to right, #26344a, #315ea5) !important;
}

.sagcard {
    background: linear-gradient(to right, #0c0c0c, #cd5656) !important;
}

.ece1 {
    font-size: 20px;
    font-weight: bold;
    color: white;
    align-items: center;
}

.listem a {
    color: black;
}

.Baslık {
    font-size: 20px;
    font-weight: bold;
    color: #5a5959;
}

.kasakard {
    background: linear-gradient(to right, #516b93, #1a3663) !important;
}

.simge {
    color: #e3914b !important;
    margin-left: 5px !important;
    font-size: 40px !important;
    line-height: 72px !important;
}

.simge2 {
    color: white !important;
    margin-bottom: 8px !important;
    margin-left: 5px !important;
    font-size: 30px !important;
    line-height: 72px !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva;
}

.logom {
    width: 50px;
    border-radius: 100%;
    border: 1px solid #eee;
}

.sidebarf {
    position: absolute;
    top: 115px;
    left: 0;
    height: 100vh;
    width: 80px;
    background-color: #1b112f;
    padding: .4rem 0.8rem;
    transition: all 0.5s ease;
}

.sidebarf.active ~ .main-content {
    left: 250px;
    width: calc(100% - 250px);
}

.sidebarf.active {
    width: 250px;
}

.sidebarf #btnn {
    position: absolute;
    color: #fff3cd;
    top: .4rem;
    left: 50%;
    font-size: 1.2rem;
    line-height: 50px;
    transform: translate(-50%);
    cursor: pointer;
}

.sidebarf.active #btnn {
    left: 90%;
}

.sidebarf .top .logom {
    color: #fff3cd;
    display: flex;
    height: 50px;
    width: 100%;
    align-items: center;
    pointer-events: none;
    opacity: 0;
}

.sidebarf.active .top .logom {
    opacity: 1;
}

.top .logom i {
    font-size: 2rem;
    margin-right: 5px;
}

.userr {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.userr p {
    color: #fff3cd;
    opacity: 1;
    margin-left: 1rem;
}

.boldd,
.sidebarf p {
    opacity: 0;
}

.sidebarf.active p,
.sidebarf.active .nav-item {
    opacity: 1;
}

.sidebarf ul li {
    position: relative;
    list-style-type: none;
    height: 50px;
    width: 90%;
    margin: 0.8rem auto;
    line-height: 50px;
}

.sidebarf ul li a {
    color: #fff3cd;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 1.8rem;
}

.sidebarf ul li a:hover {
    background-color: #fff3cd;
    color: black;
}

.sidebarf ul li a i {
    min-width: 50px;
    text-align: center;
    height: 50px;
    border-radius: 12px;
    line-height: 50px;
}

.sidebarf ul li .tooltip {
    position: absolute;
    left: 125px;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0.5rem 0.8rem rgba(0, 0, 0, 0.2);
    border-radius: .6rem;
    padding: .4rem 1.2rem;
    line-height: 1.8rem;
    z-index: 20;
    opacity: 0;
}

.sidebarf ul li:hover .tooltip {
    opacity: 1;
}

.sidebarf.active ul li .tooltip {
    display: none;
}

.main-content {
    position: relative;
    background-color: white;
    min-height: 100vh;
    top: 0;
    left: 80px;
    transition: all 0.5s ease;
    width: calc(100% - 80px);
    padding: 1rem;
}

.ModalAciklama {
    align-items: center;
    text-align: center;
    color: #fff3cd;
    font-size: 25px;
    font-weight: bold;
    background-color: #ef5350;
}

.belirgin {
    opacity: 1 !important;
    background-color: #fff !important;
}

.belirginbtn {
    opacity: 1 !important;
    background-color: #180c45 !important;
}

.Modalsag {
    position: absolute !important;
    right: 25px !important;
}

.textboxbuyuk {
    text-transform: uppercase;
}

.custom-bordered-table th,
.custom-bordered-table td {
    border: 1px solid #9e9a9a !important;
}

.kalanData th:nth-child(2),
.kalanData th:nth-child(3),
.kalanData th:nth-child(7),
.kalanData th:nth-child(8),
.kalanData th:nth-child(9) {
    border-left: none !important;
    border-right: none !important;
}

.kalanData th:nth-child(9) {
    border-left: none !important;
    border-right: 1px solid #9e9a9a !important;
}


#gelenTable td, #gelenTable th,
#gidenTable td, #gidenTable th,
#kalanTable td, #kalanTable th {
    padding: 6px 10px !important;
    line-height: 1.6 !important;
    vertical-align: middle !important;
    font-size: 13px !important;
}

@keyframes gentle-flash {
    0% { opacity: 1; }
    50% { opacity: 0.85; }
    100% { opacity: 1; }
}

.modern-flash-button {
    background: linear-gradient(to right, #1b112f, #4a3c65);
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    max-width: 100%;
    font-family: 'Segoe UI', sans-serif;
}

.modern-flash-buttoniki {
    background: linear-gradient(to right, #1b112f, #4a3c65);
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    max-width: 100%;
    font-family: 'Segoe UI', sans-serif;
}

.modern-flash-button:hover {
    animation: gentle-flash 2.5s ease-in-out infinite;
    cursor: pointer;
}

.modern-flash-button span {
    color: white;
    font-weight: bold;
    margin-left: 5px;
}

.modern-flash-button i {
    margin-right: 8px;
}

.custom-finans-table {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    overflow: hidden;
}

.custom-finans-table thead {
    background-color: #e9ecef;
    color: #343a40;
}

.custom-finans-table tbody tr {
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.custom-finans-table tbody tr:hover {
    background-color: #dee2e6;
}

.modern-flash-heading {
    background: linear-gradient(to right, #1b112f, #4a3c65);
    color: white;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    position: relative;
    text-align: center;
}

.modern-flash-heading i {
    margin-right: 8px;
    color: white;
}

.text-center-with-icon {
    padding-left: 40px;
}

.fixed-left-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1.2rem;
}

.donem-link {
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.modern-flash-headinga {
    background: linear-gradient(to right, #1b112f, #4a3c65);
    color: white;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.modern-flash-headinga i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

#dashboardVeri .finans-kart {
    margin-bottom: 8px; /* varsayılan 16px veya 24px olabilir */
    padding-left: 4px;
    padding-right: 4px;
}


.dh-responsive-table {
    overflow-x: auto;
    width: 100%;
}

@media (max-width: 576px) {
    .dh-responsive-table table {
        font-size: 0.85rem;
        min-width: 600px;
    }

    .dh-responsive-table th,
    .dh-responsive-table td {
        white-space: nowrap;
        padding: 0.4rem 0.6rem;
    }
}

/* Genel Responsive Tablolar */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* GELEN Tablosu */
.gelen-responsive table {
    min-width: 1000px;
}

/* GİDEN Tablosu */
.giden-responsive table {
    min-width: 1100px;
}

/* KALAN Tablosu */
.kalan-responsive table {
    min-width: 800px;
}

/* Accordion butonları mobil uyumlu */
@media (max-width: 576px) {
    .modern-flash-button {
        font-size: 14px;
        padding: 8px 10px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .modern-flash-button i {
        font-size: 16px;
    }
}

.kalanData th:nth-child(2),
.kalanData th:nth-child(3),
.kalanData th:nth-child(7),
.kalanData th:nth-child(8),
.kalanData th:nth-child(9) {
    border-left: none !important;
    border-right: none !important;
}

.kalanData th:nth-child(9) {
    border-left: none !important;
    border-right: 1px solid #9e9a9a !important;
}

.mizantablo {
    overflow-x: auto;
    max-height: auto;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 2px;
    margin-bottom: 2px;
    display: block;
}

.mizantablo table {
    min-width: 1000px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;

    /* EKLENDİ: Sütunlar width’e göre sabitlenir */
    table-layout: fixed; /* ✅ */
    box-sizing: border-box; /* ✅ */
}

.mizantablo thead th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
}

.mizantablo th,
.mizantablo td {
    white-space: nowrap;

    /* Padding’i azaltmak sütunların şişmesini önler */
    padding: 6px 8px; /* 🔄 Eskisi: 8px 12px */

    border: 1px solid #dee2e6;
    text-align: right;
    font-size: 1rem;
    color: #212529;
    font-weight: 400;

    /* EKLENDİ: Padding dahil width'e sayılır */
    box-sizing: border-box; /* ✅ */
}

.mizantablo td:first-child,
.mizantablo th:first-child {
    text-align: left;
}

/* ALT TOPLAM satırları: tüm hücreleri kırmızı, 18px, bold */
#accordion-mizan .alt-toplam td,
#accordion-mizan .alt-toplam th {
    color: red !important;
    font-size: 16px !important;
    font-weight: bold !important;
    background-color: #a4daed;
}

/* GENEL TOPLAM satırları: arka plan .table-success, ve tüm hücreleri de kırmızı, 18px, bold */
#accordion-mizan .table-success td,
#accordion-mizan .table-success th {
    color: red !important;
    font-size: 16px !important;
    font-weight: bold !important;
    /* background-color Bootstrap’in default table-success’i korur */
}

/* Accordion panelleri arasındaki boşluğu azalt */
#accordion-mizan .card {
    margin-bottom: 4px;
}

/* Başlık alanının iç boşluklarını daralttık */
#accordion-mizan .card-header {
    padding: 0.25rem 0.5rem;
}

/* Buton içindeki h2 ya da button paddingʼini daralttık */
#accordion-mizan .card-header h2 {
    margin: 0;
    padding: 0;
}
#accordion-mizan .card-header button {
    padding: 0.75rem 1rem;
}

/* İçerik (card-body) bloğunun paddingini de küçült */
#accordion-mizan .card-body {
    padding: 0.5rem;
}


/* Mizan tablolarında yeni sabit kolon genişlikleri */
.mizantablo th:nth-child(1),
.mizantablo td:nth-child(1) {
    width: 400px;
    min-width: 400px;
    max-width: 400px;
}

.mizantablo th:nth-child(2),
.mizantablo td:nth-child(2) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

.mizantablo th:nth-child(3),
.mizantablo td:nth-child(3) {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

/* Kalan 5 sütuna eşit 70px verdik (1000px - 650px = 350px / 5) */
.mizantablo th:nth-child(n+4),
.mizantablo td:nth-child(n+4) {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}


/* Yalnızca .mizan-detay-table içinde çalışır */
/* Tablonun genel stili */
.mizan-detay-table {
    border-collapse: collapse;
    width: 100%;
}

/* Kenarlıklar */
.mizan-detay-table th,
.mizan-detay-table td {
    border: 1px solid #dee2e6; /* Bootstrap standardı */
    padding: 8px;
}

/* Hover tüm satırı etkiler */
.mizan-detay-table.table-hover tbody tr:hover td {
    background-color: #ede6f7 !important;
    transition: background-color 0.3s ease;
}

/* GELİR kolonları */
.mizan-detay-table td.gelir,
.mizan-detay-table th.gelir{
    background-color: #97bcea;
    color: black;

}

/* GİDER kolonları */
.mizan-detay-table td.gider,
.mizan-detay-table th.gider{
    background-color: #c8f1b5;
    color: black;
}

/* FARK kolonları */
.mizan-detay-table td.fark,
.mizan-detay-table th.fark{
    background-color: #e8ce76;
    color: black;
}

/* KALAN hücreleri: kırmızı ve kalın */
.mizan-detay-table td.kalan,
.mizan-detay-table th.kalan{
    font-weight: bold;
    color: red;
}

/* GELİR/GİDER/FARK başlık hücreleri */
.mizan-detay-table .gelir-baslik {
    background-color: #97bcea;
    font-weight: bold;
    text-align: center;
    color: black;
}

.mizan-detay-table .gider-baslik {
    background-color: #c8f1b5;
    font-weight: bold;
    text-align: center;
    color: black;
}

.mizan-detay-table .fark-baslik {
    background-color: #e8ce76;
    font-weight: bold;
    text-align: center;
    color: black;
}

/* DÖNEM başlığı hizalı */
.mizan-detay-table .donem-baslik {
    vertical-align: middle;
    font-weight: bold;
    text-align: center;
}

/* DÖNEM hücresi içerik */
.mizan-detay-table td.donem-cell {
    font-weight: bold;
    text-align: center;
}


/* Dönem link butonu */
.mizan-detay-table .donem-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #4b1d75, #5d3b90);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Hover efekti */
.mizan-detay-table .donem-link:hover {
    background: linear-gradient(90deg, #6b44b5, #7a5ac2);
    color: white;
}

/* İkon: sol taraf sabit ve düzgün boşluklu */
.mizan-detay-table .donem-link .fixed-left-icon {
    margin-right: 6px;
    font-size: 14px;
}






/* MALİYET RAPORU */

/* Kapsayıcı */
.maliyet-icmal-wrapper {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* Yatay scroll alanı */
.maliyet-icmal-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    white-space: nowrap;
    max-width: 100%;
}

/* Tablo */
.maliyet-icmal-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
    font-size: 13px;
    table-layout: fixed;
    min-width: 1100px;
}

/* Başlık ve veri hücreleri */
.maliyet-icmal-table th,
.maliyet-icmal-table td {
    min-width: 150px;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

/* Satır isimleri */
.maliyet-icmal-table td:first-child {
    text-align: left;
    font-weight: bold;
    background-color: #f8f9fa;
    min-width: 380px;
    max-width: 380px;
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Başlıklar */
.maliyet-icmal-table thead th:first-child {
    background-color: #ffc107;
    color: black;
    font-weight: bold;
    min-width: 380px;
    max-width: 380px;
    text-align: left;
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maliyet-icmal-table thead th:not(:first-child) {
    background-color: #6c757d;
    color: white;
    font-weight: bold;
}

/* Alternatif satır zeminleri */
.maliyet-icmal-table tbody tr:nth-child(even) td {
    background-color: #f2f2f2 !important;
}

.maliyet-icmal-table tbody tr:nth-child(odd) td {
    background-color: #ffffff !important;
}

/* Hover efekti tüm satıra uygulanır */
.maliyet-icmal-table tbody tr:hover td {
    background-color: #d2d2f3 !important;
    transition: background-color 0.2s ease;
    cursor: default;
}

/* Toplam sütunu */
.maliyet-icmal-table td.toplam-hucre {
    font-weight: bold;
    background-color: inherit !important;
}

/* Kalem isimleri hücresi sağa doğru uzasın */
.maliyet-icmal-table tbody td:first-child {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 380px !important;
}

/* Hakediş tablolarındaki ilk hücre de sabit genişlikte olsun */
.maliyet-icmal-table thead th:first-child,
.maliyet-icmal-table td:first-child {
    width: 380px !important;
}




/* GENEL RESET */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6f9;
    overflow-x: hidden !important;
}

/* SAYFA YAPISI */
.fullscreen-maliyet-layout {
    display: flex;
    width: 100%;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* SOL PANEL */
.fullscreen-maliyet-sol {
    flex: 13;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden !important;
    padding: 15px;
    background-color: #ffffff;
    box-sizing: border-box;
    border-right: 1px solid #dee2e6;
}

/* SAĞ PANEL */
.fullscreen-maliyet-sag {
    flex: 7;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    background-color: #f8f9fa;
    box-sizing: border-box;
    border-left: 1px solid #dee2e6;
    display: flex;
    align-items: flex-start;
}

/* KUTU */
.maliyet-santiye-kutu {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

/* TABLO STİLİ */
.fullscreen-maliyet-sol table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse;
}

.fullscreen-maliyet-sol th,
.fullscreen-maliyet-sol td {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* AÇIKLAMA HÜCRESİ */
.fullscreen-maliyet-sol td:first-child {
    text-align: left;
    white-space: normal;
    min-width: 200px;
    max-width: 300px;
}

/* TUTAR HÜCRESİ */
.maliyet-tutar-hucre {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    text-align: right;
}

/* SCROLLBAR GİZLEME */
.fullscreen-maliyet-sol::-webkit-scrollbar,
.fullscreen-maliyet-sol *::-webkit-scrollbar {
    height: 0 !important;
    display: none !important;
}

.fullscreen-maliyet-sol div {
    overflow-x: hidden !important;
}

/* GRAFİK PANELİ */
.maliyetgrafik-container {
    display: flex;
    height: calc(100vh - 80px);
    overflow: hidden;
    background-color: #f8f9fa;
}

.maliyetgrafik-left {
    flex: 13;
    overflow-y: auto;
    padding: 15px;
    background-color: #fff;
}

.maliyetgrafik-tablolar {
    padding-right: 10px;
}

.maliyetgrafik-right {
    flex: 7;
    background: #fff;
    border-left: 2px solid #dee2e6;
    padding: 15px;
    overflow-y: auto;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.maliyetgrafik-chartbox {
    width: 100%;
    height: 600px;
    padding-top: 10px;
}

#maliyetgrafikPie {
    max-height: 560px;
    width: 100% !important;
}


/* /css/maliyetgrafik.css */
.maliyetgrafik-container {
    display: flex;
    gap: 10px;
    margin: 10px;
    width: 100%;
}

.maliyetgrafik-left {
    width: 65%;
}

.maliyetgrafik-right {
    width: 35%;
}

.MaliyetMaasTablosuBaslik{
    width:100%;
    background: linear-gradient(90deg,#1b3d77 0%, #2b5fb9 60%, #3c78d8 100%);
    color:#fff;
    padding:10px 16px;
    border-radius:8px;
    font-weight:700;
    display:block;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    margin:16px 0 8px;
}


.modal-header.MaliyetMaasTablosuBaslik{
    margin:0;                 /* dış boşluk olmasın */
    border-bottom:0;
    border-radius:6px 6px 0 0;/* modal-content ile uyumlu */
    padding:12px 16px;
    display:flex;             /* bootstrap flex’i garanti et */
    align-items:center;
}
.modal-header.MaliyetMaasTablosuBaslik .modal-title{ color:#fff; font-weight:700; margin:0; }
.modal-header.MaliyetMaasTablosuBaslik .close{ color:#fff; opacity:.9; }
.modal-header.MaliyetMaasTablosuBaslik .close:hover{ opacity:1; }





/* Genel badge stili (tüm sayfalar) */
.status-badge{
    display:inline-flex; align-items:center; gap:.45rem;
    padding:.25rem .6rem; border-radius:9999px;
    font-weight:600; font-size:.85rem; line-height:1;
    border:1px solid transparent; white-space:nowrap;
}
.status-badge i{ font-size:.9rem }

/* Genel renkler */
.status-waiting   { background:#fff3cd; color:#856404; border-color:#ffe8a1; }
.status-paid      { background:#d4edda; color:#155724; border-color:#b7e4c7; }
.status-endorsed  { background:#d1ecf1; color:#0c5460; border-color:#bee5eb; }
.status-clearing  { background:#99dc99; color:#383d41; border-color:#d6d8db; }
.status-collected { background:#cce5ff; color:#004085; border-color:#b8daff; }
.status-unknown   { background:#f8d7da; color:#721c24; border-color:#f5c6cb; }
.status-pending   { background:#efb6ad; color:#252523; border:1px solid #efb6ad; }
/* Çek/Senet liste tablosu: data-url ile scope */
table.JsonTable[data-url*="/Json/Cek/CekListe"] .status-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.35rem;
    height:28px;
    min-width:170px;      /* hepsi aynı genişlik */
    padding:0 .75rem;
    border-radius:9999px;
    font-weight:600;
    font-size:.85rem;
    line-height:1;
    border:1px solid transparent;
    box-sizing:border-box;
    white-space:nowrap;
}
@media (max-width:1366px){
    table.JsonTable[data-url*="/Json/Cek/CekListe"] .status-badge{
        min-width:120px; height:24px; font-size:.8rem;
    }
}

/* Renkler (sadece bu tablo) */
table.JsonTable[data-url*="/Json/Cek/CekListe"] .status-waiting   { background:#fff3cd; color:#856404; border-color:#ffe8a1; }
table.JsonTable[data-url*="/Json/Cek/CekListe"] .status-paid      { background:#d4edda; color:#155724; border-color:#b7e4c7; }
table.JsonTable[data-url*="/Json/Cek/CekListe"] .status-endorsed  { background:#d1ecf1; color:#0c5460; border-color:#bee5eb; }
table.JsonTable[data-url*="/Json/Cek/CekListe"] .status-clearing  { background:#99dc99; color:#383d41; border-color:#d6d8db; }
table.JsonTable[data-url*="/Json/Cek/CekListe"] .status-collected { background:#cce5ff; color:#004085; border-color:#b8daff; }
table.JsonTable[data-url*="/Json/Cek/CekListe"] .status-unknown   { background:#f8d7da; color:#721c24; border-color:#f5c6cb; }
table.JsonTable[data-url*="/Json/Cek/CekListe"] .status-pending   { background:#fff3cd; color:#856404; border:1px solid #ffeeba; }



/* Harcama liste tablosu için geniş rozetler */
table.JsonTable[data-url*="/Json/Harcama/HarcamaDetayListe"] .status-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.35rem;
    height:28px;
    min-width:120px;   /* hepsi aynı genişlik */
    padding:0 .75rem;
    border-radius:9999px;
    font-weight:600;
    font-size:.85rem;
    line-height:1;
    border:1px solid transparent;
    box-sizing:border-box;
    white-space:nowrap;
}



/* Varsayılan responsive küçülme */
.dashboard-maliyet-santiye .modern-flash-heading {
    font-size: clamp(12px, 2vw, 18px); /* 12px altına düşmez, 18px üstüne çıkmaz */
    white-space: normal;
    text-align: center;
    word-break: break-word;
}

/* Karakter uzunluğuna göre ekstra küçültme */
.dashboard-maliyet-santiye .modern-flash-heading.font-small-1 {
    font-size: 16px !important;
}

.dashboard-maliyet-santiye .modern-flash-heading.font-small-2 {
    font-size: 14px !important;
}


/* MizanYilDetay tabloları sabit hizalama */
#accordion-mizan .fixed-columns th.col-cari,
#accordion-mizan .fixed-columns td.col-cari {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
}

#accordion-mizan .fixed-columns th.col-tip,
#accordion-mizan .fixed-columns td.col-tip {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
}

#accordion-mizan .fixed-columns th.col-santiye,
#accordion-mizan .fixed-columns td.col-santiye {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

#accordion-mizan .fixed-columns th.col-devir,
#accordion-mizan .fixed-columns td.col-devir,
#accordion-mizan .fixed-columns th.col-yil,
#accordion-mizan .fixed-columns td.col-yil,
#accordion-mizan .fixed-columns th.col-toplam,
#accordion-mizan .fixed-columns td.col-toplam,
#accordion-mizan .fixed-columns th.col-odeme,
#accordion-mizan .fixed-columns td.col-odeme,
#accordion-mizan .fixed-columns th.col-kalan,
#accordion-mizan .fixed-columns td.col-kalan {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    text-align: right;
}

/* Başlık hizaları */
#accordion-mizan th {
    vertical-align: middle !important;
    text-align: center !important;
    white-space: nowrap;
}

/* Alt toplam ve genel toplam satırları */
#accordion-mizan tr.alt-toplam td,
#accordion-mizan tr.table-success td,
#accordion-mizan tr.table-warning td {
    font-weight: bold;
}


/* Hepsinde sabit kolon hesabı kullansın */
#accordion-mizan .fixed-columns {
    table-layout: fixed;
    width: 100%;
}

/* İlk 3 sütunun birleşik genişliği (CARİ + TİP + ŞANTİYE) */
#accordion-mizan .fixed-columns td.col-sum3,
#accordion-mizan .fixed-columns th.col-sum3 {
    width: 540px;        /* 280 + 140 + 120 */
    min-width: 540px;
    max-width: 540px;
}




/* Harcama dönem kartlarının aynı boyutta olması */
.harcama-donemler.equal-cards .card {
    height: 100%;
    min-height: 220px; /* sabit boy */
    display: flex;
    flex-direction: column;
}
.harcama-donemler.equal-cards .card-body {
    flex: 1;
}



#HarcamaYemek .select2-container { width:100% !important; z-index: 9999; }

.modal .select2-container {
    width: 100% !important;
    z-index: 9999 !important;
}

.modal .select2-dropdown {
    z-index: 99999 !important;
}


/* === Modal genel boyut === */
#harcamaDosyaModal .modal-dialog {
    width: 60vw;
    max-width: 700px;
    height: 88vh;
}

#harcamaDosyaModal .modal-content {
    background: rgba(255,255,255,0.98);
    border-radius: 16px;
    height: 88vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === PDF === */
.harcama-pdf-frame {
    width: 100%;
    height: 95vh;          /* 📌 PDF’yi modal içinde tam sayfa göstermek için artırıldı */
    max-height: 95vh;
    border: none;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    overflow: hidden;
}

/* === Görseller === */
.harcama-img-fluid {
    max-height: 88vh;
    width: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

/* === Mobil === */
@media (max-width: 768px) {
    #harcamaDosyaModal .modal-dialog {
        width: 95vw;
        height: 80vh;
    }

    .harcama-pdf-frame {
        height: 78vh;
        max-height: 78vh;
    }

    .harcama-img-fluid {
        max-height: 78vh;
        width: 100%;
    }
}
/* 🔒 Yalnızca Harcama Onay Detay sayfasını etkiler */
.harcama-onay-detay {
    width: 100%;
    max-width: 100%;
}

.harcama-onay-detay .fullwidth-card {
    width: 100%;
    max-width: 100%;
    background-color: #fff;
    margin: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 1.5rem;
}

.harcama-onay-detay .fullwidth-card .table {
    width: 100%;
    margin: 0;
}

.harcama-onay-detay .table-responsive {
    width: 100%;
    overflow-x: auto;
}

.harcama-onay-detay .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}



