﻿
/*09.06.2026*/
.scheme-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    position: relative;
}

.tab-btn {
    position: relative;
    border: 0;
    background: #f1f3f5;
    color: #495057;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all .3s ease;
    min-width: 180px;
    text-align: left;
}

    .tab-btn:hover {
        background: #e9ecef;
        transform: translatey(-2px);
    }

    .tab-btn .tab-no {
        display: inline-flex;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(255,255,255,.8);
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        margin-right: 10px;
    }

    .tab-btn.active {
        background: linear-gradient(135deg,#0f5132,#198754);
        color: white;
        box-shadow: 0 8px 20px rgba(25,135,84,.25);
    }

        .tab-btn.active .tab-no {
            color: #198754;
        }

        .tab-btn.active::after {
            content: "";
            position: absolute;
            bottom: -12px;
            left: 50%;
            transform: translatex(-50%);
            border-left: 12px solid transparent;
            border-right: 12px solid transparent;
            border-top: 12px solid #198754;
        }

.tab-content {
    display: none !important;
}

    .tab-content.active {
        display: block !important;
    }

        .tab-content.active > .row:first-child {
            background: #fff;
            border-top: 4px solid #198754;
            border-radius: 0 0 12px 12px;
            padding-top: 20px;
        }


/* ================================
   SCHEME TABS
   ================================ */


.nav-pills .nav-link {
    background: #ffffff;
    color: #374151;
    border-radius: 14px !important;
    padding: 12px 25px !important;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transition: .3s;
}


    .nav-pills .nav-link:hover {
        transform: translateY(-2px);
        background: #ecfdf5;
    }


.nav-pills.nav-secondary .nav-link.active {
/*    background: linear-gradient(135deg,#166534,#22c55e) !important;*/
    color: white !important;
    box-shadow: 0 8px 20px rgba(34,197,94,.25);
}


body {
    background: #f4f8f5;
    color: #1b2b1b;
}


/* ==============================
   HEADER / SIDEBAR
============================== */

.main-header {
    background: #ffffff;
    min-height: 60px;
    width: calc(100% - 250px);
    position: fixed;
    z-index: 1001;
    color: #062e0b;
    border-bottom: 1px solid #0f7a1f;
    backdrop-filter: blur(6px);
}


.nav-collapse a.active {
    background: #0b5d16;
    border-radius: 5px;
}


.sidebar .nav > .nav-item a,
.sidebar .nav > .nav-item a p {
    color: #ffffff !important;
}


    .sidebar .nav > .nav-item.active > a p,
    .sidebar .nav > .nav-item a:hover p {
        color: #e6f4ea !important;
        font-weight: 600;
    }


.sidebar .nav.nav-secondary > .nav-item.active a i {
    color: #d1fae5 !important;
}


.footer {
    background: #062e0b !important;
    color: #c7e8cc;
}


/* ==============================
   CARD DESIGN
============================== */

.card {
    border: none !important;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    margin-bottom: 20px;
}


    .card .card-header,
    .card-light .card-title {
        background: linear-gradient(135deg,#d1fae5,#ecfdf5) !important;
        color: #065f46 !important;
        border-bottom: 1px solid #ccebd3;
        font-weight: 700;
        padding: 18px !important;
    }


   /* .card .card-body,
    .card-light .card-body {
        background: #fff;
        padding: 25px !important;
        color: #1b2b1b;
    }*/


.card-header h2 {
    font-size: 24px;
    font-weight: 700;
}



/* ==============================
   FILTER AREA
============================== */

.filter-panel {
    background: #ffffff;
    border: 1px solid #d8eadb;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 18px rgba(0,0,0,.05);
}



label,
.form-label {
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}


.form-control,
.form-select {
    border-radius: 10px !important;
    min-height: 42px;
    border: 1px solid #d1d5db;
}


    .form-control:focus,
    .form-select:focus {
        border-color: #198754;
        box-shadow: 0 0 0 .2rem rgba(25,135,84,.15);
    }



/* ==============================
   BUTTON
============================== */

.btn {
    border-radius: 10px !important;
    font-weight: 600;
    padding: 9px 18px;
    transition: .3s;
}


    .btn:hover {
        transform: translateY(-1px);
    }


.btn-success {
    background: #15803d !important;
    border-color: #15803d !important;
}



/* ==============================
   GRID GLOBAL STYLE
============================== */


.grid-container,
.grid-scroll {
    height: 700px;
    overflow: auto;
    border-radius: 15px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
}



.gv-fixed {
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
}



    .gv-fixed th {
        position: sticky;
        top: 0;
        z-index: 10;
        /*        background: linear-gradient(135deg,#166534,#198754) !important;*/
        background-color: #166534 !important;
        ;
        color: white !important;
        text-align: center;
        vertical-align: middle;
        font-weight: 600;
        padding: 12px !important;
    }



    .gv-fixed td {
        background: #fff;
        /*padding: 12px !important;*/
        color: #374151;
        vertical-align: top;
        border-bottom: 1px solid #edf2f7;
    }



    .gv-fixed tr:hover td {
        background: #f0fdf4 !important;
    }



    .gv-fixed tr:nth-child(even) td {
        background: #f8faf9;
    }



.grid-fixed {
    table-layout: fixed !important;
    width: 100% !important;
}



    .grid-fixed th,
    .grid-fixed td {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }



/* ==============================
   GRID PAGINATION
============================== */

.grid-pager {
    position: sticky;
    bottom: 0;
    background: #ffffff !important;
    padding: 10px;
    z-index: 20;
}



    .grid-pager a,
    .grid-pager span {
        padding: 7px 14px !important;
        margin: 2px;
        border-radius: 20px !important;
        border: 1px solid #0fb394 !important;
        text-decoration: none;
    }



    .grid-pager span {
        background: #198754 !important;
        color: #fff !important;
        font-weight: bold;
    }



.card-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e5e7eb;
    padding: 20px !important;
}



/* ==============================
   MOBILE
============================== */

@media(max-width:768px) {

    .nav-pills {
        flex-wrap: wrap;
    }


        .nav-pills .nav-link {
            width: 100%;
            margin-bottom: 8px;
        }


    .card-body {
        padding: 15px !important;
    }
}