﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, #1e88e5 0%, #42a5f5 50%, #64b5f6 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    padding: 5px 15px;
}

    .navbar-brand img {
        max-height: 50px;
        width: auto;
        filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }

/* Main Container */
.doc-sectionmain {
    padding: 30px 15px;
}

/* Form Title Section */
.table-heading {
    background: white;
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #1e88e5;
}

.formtitle {
    color: #1e88e5;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Form Content Container */
.form-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.mainbody {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.form-container {
    padding: 0;
}

/* Tab Navigation */
nav {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.menu-toggle {
    display: none;
}

.menu-label {
    display: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #1e88e5;
    background: white;
}

.nav-tabs-justified {
    border-bottom: none;
    margin: 0;
}

    .nav-tabs-justified > li {
        float: left;
        width: calc(100%/3);
    }

        .nav-tabs-justified > li > a {
            border: none;
            border-radius: 0;
            padding: 18px 20px;
            color: #666;
            font-weight: 500;
            font-size: 16px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
        }

            .nav-tabs-justified > li > a:hover {
                background: #e3f2fd;
                color: #1e88e5;
            }

        .nav-tabs-justified > li.active > a,
        .nav-tabs-justified > li.active > a:hover,
        .nav-tabs-justified > li.active > a:focus {
            background: white;
            color: #1e88e5;
            font-weight: 600;
            border: none;
            border-bottom: 3px solid #1e88e5;
        }

/* Form Container */
.form-container {
    padding: 30px;
}

.tab-pane {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups and Rows */
.form-group {
    margin-bottom: 20px;
}

.row.bg-gray {
    background: #eff4fb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

label, .searchname {
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700 !important
}

    label.required::after , .searchname.required::after {
        content: " *";
        color: #e74c3c;
        font-weight: bold;
    }

/* Form Controls */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

    .form-control:focus {
        border-color: #42a5f5;
        box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
        outline: none;
    }

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}


.radio-inline tbody tr, .radio-inline tr td {
    display: flex;
    align-items: center;
    gap: 10px;
}
.radio-inline tbody tr {
    min-width: 150px;
}

.radio-inline tbody tr td{
    min-width: 50px;
}

.radio-inline label{
    margin: 0 !important
}

/* Table Styling */
.table-responsive {
    overflow: scroll;
    margin-bottom: 20px;
}

.my-table {
    margin-bottom: 0;
}

    .my-table > tbody > tr:first-child, .my-table > tbody > tr:first-child:hover , .th-table > thead > tr:first-child, .th-table > thead > tr:first-child:hover {
        background: linear-gradient(135deg, #14276e, #42a5f5);
        color: white;
    }

        .my-table tbody th , .th-table thead th {
            font-weight: 600;
            padding: 12px;
            border: none;
            font-size: 14px;
        }

    .my-table tbody tr {
        transition: background 0.2s ease;
    }

        .my-table tbody tr:hover , .th-table thead tr:hover {
            background: #f5f9fc;
        }

    .my-table > tbody >  td , .th-table >  thead > td {
        padding: 10px;
        vertical-align: middle;
        border-color: #e8ecf1;
    }

    my-table > tbody > tr th a{
        color: #fff !important
    }

    .my-table tfoot {
        background: #f8f9fa;
    }

        .my-table tfoot td {
            padding: 10px;
            border-top: 2px solid #1e88e5;
        }

        .my-table th a , .th-table th a {
            color: #fff !important;
        }



/* Action Buttons */
.editimg {
    width: 25px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .editimg:hover {
        transform: scale(1.2);
    }

.action-class {
    text-align: center;
    width: 80px;
}

/* File Upload */
.file-upload {
    display: flex;
    gap: 10px;
    align-items: center;
}

.button-upload {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .button-upload:hover {
        background: linear-gradient(135deg, #1565c0, #1e88e5);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
    }

/* Submit Button Section */
.submit-section {
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.btn-submit {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: white;
    border: none;
    padding: 14px 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

    .btn-submit:hover {
        background: linear-gradient(135deg, #1565c0, #1e88e5);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
    }

.btn-cancel {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 14px 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 15px;
}

    .btn-cancel:hover {
        background: #7f8c8d;
        transform: translateY(-2px);
    }

/* Responsive Design */
@media (max-width: 991px) {
    .formtitle {
        font-size: 20px;
    }

        .formtitle span {
            font-size: 14px;
        }

    .form-container {
        padding: 20px;
    }

    .table-heading {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .doc-sectionmain {
        padding: 20px 10px;
    }

    .navbar-brand img {
        max-height: 40px;
    }

    .formtitle {
        font-size: 18px;
    }

        .formtitle span {
            font-size: 13px;
        }

    .form-container {
        padding: 15px;
    }

    .table-heading {
        padding: 15px;
    }

    .nav-tabs-justified > li {
        width: 100%;
        float: none;
    }

        .nav-tabs-justified > li > a {
            border-bottom: 1px solid #e0e0e0;
        }

    .menu-label {
        display: block;
    }

    .nav-links {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu-toggle:checked ~ .nav-links {
        display: block;
        max-height: 500px;
    }

    .row.bg-gray {
        padding: 15px;
    }

    .btn-submit,
    .btn-cancel {
        width: 100%;
        margin: 10px 0;
    }

    .file-upload {
        flex-direction: column;
        align-items: stretch;
    }

    .button-upload {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .formtitle {
        font-size: 16px;
    }

        .formtitle span {
            font-size: 12px;
        }

    .nav-tabs-justified > li > a {
        padding: 15px 10px;
        font-size: 14px;
    }

    .form-container {
        padding: 10px;
    }

    .form-control {
        font-size: 13px;
    }

    label {
        font-size: 13px;
    }

    .table-responsive {
        font-size: 12px;
    }
}

/* Additional Helper Classes */
.half {
    display: inline-block;
}

.currency {
    width: 100%;
}

.mb-0 {
    margin-bottom: 0;
}

/* Error Messages */
span[style*="color: Red"],
span[style*="color:Red"] {
    display: block;
    margin-top: 5px;
    font-size: 13px;
}

.btn-group{
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    margin: 10px 0
}

.btn-custom, .btn-custom:hover {
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 16px;
    width: 150px;
}

.btn-custom-primary {
    background: #2991ea;
    color: #fff !important;
}

    .btn-custom-primary:hover, .btn-custom-primary:active {
        background: #175a93;
    }

.btn-custom-info {
    background: #8aebff;
}

    .btn-custom-info:hover {
        background: #16d7ff;
    }


.btn-custom-success {
    background: #00a140;
    color: #fff !important
}

    .btn-custom-success:hover, .btn-custom-success:active {
        background: #1b8344;
    }


.btn-custom-back {
    background: #5195a5;
    color: #fff !important
}

    .btn-custom-back:hover, .btn-custom-back:active {
        background: #07687f;
    }


.ajax__tab_header {
    display: flex;
    border-bottom: none;
    background: #f5f7fa;
}

    .ajax__tab_header > span {
        flex: 1;
        text-align: center;
    }

.ajax__tab_tab {
    display: block;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    background: #f5f7fa;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.ajax__tab_header > span:not(.ajax__tab_active):hover .ajax__tab_tab {
    background: #e3f2fd;
    color: #1e88e5;
}

.ajax__tab_active .ajax__tab_tab {
    background: #ffffff !important;
    color: #1e88e5 !important;
    font-weight: 600;
}

.ajax__tab_outer, .ajax__tab_inner, .ajax__tab_tab{
    width: 100%
}

.ajax__tab_active .ajax__tab_outer {
    background: #ffffff !important;
    border-bottom: 3px solid #1e88e5 !important;
}

.ajax__tab_outer,
.ajax__tab_inner {
    border: none !important;
    background: none !important;
    padding: 0 !important;
}
.center-tb{
    text-align: center;
    vertical-align: middle;
}

.table-scroll{
    max-height: 450px;
    overflow: scroll;
}
.table-scroll > div  > table > tbody > tr:first-child{
    position: sticky;
    top: 0;
}

.Background{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh!important;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
}

.my-file-upload {
    display: flex;
    gap: 10px;
    align-items: center;
}

.custom-radio{
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-radio label , .custom-radio input{
    margin: 0 5px;
}

.modal1 > div{
    background: transparent;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 450px;
    width: 90%
}

.dataTables_length label{
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 10px;
}
    .dataTables_length label select{
        width: 80px;
    }

.dataTables_filter {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 10px;
}

.dataTables_paginate {
    display: flex;
    justify-content: end;
    align-items: center;
}