﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
#header {
    width: 100%;
    background-color: #2185d0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    color: #fff;
    justify-content: space-between;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    #header img {
        max-height: 40px;
    }

    #header .nav-menu {
        display: flex;
        align-items: center;
    }

        #header .nav-menu a {
            color: #fff;
            text-decoration: none;
            margin-left: 20px;
            font-size: 16px;
            transition: color 0.3s ease;
        }

            #header .nav-menu a:hover {
                color: #e0e0e0;
            }

.btn-primary {
    color: #fff;
    /*background-color: #2185d0 !important;*/
    border-color: #007bff;
}

    .btn-primary:hover {
        color: #fff;
        background-color: #1678c2 !important;
        border-color: #007bff;
    }

.aps-logo {
    width: auto !important;
    height: 1.8rem;
}

.bg-dark {
    background-color: #2185d0 !important;
}

.aps-header {
    color: #2185d0 !important;
    font-weight: bold;
}

.custom-navbar {
    height: 3rem; /* Set your desired height */
}

.navbar-nav .nav-link {
    color: white !important;
    padding: 1rem 1rem;
}

.navbar-nav .nav-item:hover {
    background: rgba(255, 255, 255, .08) !important;
    display: inline-block;
}

.form-label {
    /*font-size:0.75rem!important;*/
    font-weight: bold;
    color: #776f6f;
    display: inline-block;
    margin-top: 0.3rem !important;
    margin-bottom: 0.1rem !important;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: white;
}

.pagination .page-link {
    border: 1px solid #dee2e6;
}

#sidebarToggle {
    display: none;
    cursor: pointer;
    font-size: 18px;
    background: none;
    border: none;
    color: #fff;
    padding: 5px;
    margin-left: auto;
}

.sidebar {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 3rem;
    bottom: 0;
    left: 0;
    width: 250px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(0);
    z-index: 1000;
    height: calc(100vh - 3rem);
}

    .sidebar.active {
        transform: translateX(-100%);
    }

    .sidebar .nav-link {
        display: flex;
        align-items: center;
        color: #333;
        border-radius: 8px;
        padding: 10px 15px;
        text-decoration: none;
        transition: background-color 0.3s ease, color 0.3s ease;
        font-size: 14px;
    }
        .sidebar .nav-link.active,
        .sidebar .nav-link:hover {
            background-color: #f0f0f0;
            color: #2185d0;
        }

        .sidebar .nav-link i {
            margin-right: 15px;
            font-size: 16px;
        }

.card {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.row {
    margin-bottom:0.5rem;
}
/* Main Content */
main {
    margin: 2.5rem 0 0 15.8rem !important; /* Adjust for sidebar width */
    padding: 20px;
    background-color: #ffffff;
    flex-grow: 1;
    transition: margin-left 0.3s ease;
    overflow-y: auto;
    padding: 50px 15px
}

table {
    border-collapse: collapse;
    /*width: 100%;
    height: 80%;*/
    border-bottom-color: transparent;
    border-width: 0px;
}

td {
    text-align: left;
    vertical-align: text-top;
}



#LoginBox, .LoginBox {
    width: 100%;
    max-width: 31.25rem;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin: auto;
    margin-top: 6rem;
    text-align: left;
}

    #LoginBox h2 {
        margin-bottom: 20px;
        color: #2185d0;
        font-size: 24px;
        text-align: center;
        font-weight: 100;
    }

    #LoginBox label {
        font-size: 14px;
        color: #333;
        margin-bottom: 5px;
        display: block;
    }

    #LoginBox .form-control {
        margin-bottom: 20px;
        border-radius: 4px;
        border: 1px solid #ddd;
        font-size: 16px;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

#btn_Login {
    width: 100%;
    padding: 12px;
    background-color: #2185d0;
    border: none;
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    #btn_Login:hover {
        background-color: #1869a8;
    }


#sidemenu, .sidemenu {
    background-color: lightblue;
}

#menuHolder, .menuHolder {
    position: relative;
    top: 0px;
    left: 0px;
    /*background-color:red;*/
}

#imageBox, .imageBox {
    position: relative;
    top: 0px;
    left: 0px;
    width: 100%;
    background-color: white;
    /*border-color:red;
    border-width:1px,1px,1px,1px;
    border-style: solid;*/
    height: 70px;
}

#MainTable a {
    margin: 10px;
    /* margin-bottom:10px;
    margin-left:10px;
    margin-right:10px;
    margin-top:10px;*/
    color: white;
}

    #MainTable a:link, a:visited {
        text-decoration: none;
    }



#tableHolder, .tableHolder {
    position: relative;
    top: 0px;
    left: 0px;
}

.errorMessages, #errorMessages {
    color: red;
}

label {
    cursor: default;
    color: red;
}

.customerholder, #customerholder {
    position: relative;
    top: 0px;
    left: 0px;
    clear: both;
}

.bankholder, #bankholder {
    position: relative;
    top: 0px;
    left: 0px;
    clear: both;
}

.customerholder label, #customerholder label {
    cursor: default;
    color: black;
}


#mainContainer, .mainContainer {
    position: relative;
    top: 0px;
    left: 0px;
    padding-left: 10px;
    padding-top: 10px;
}

#customerEditBox, .customerEditBox {
    position: absolute;
    top: 4rem;
    margin: auto;
    width: 70%;
    border: 2px solid black;
    background-color: white;
    padding: 10px;
    /*padding-top:30px;
    padding-bottom:30px;
    padding-left:30px;
    padding-right:30px;*/
    padding: 30px;
    -webkit-box-shadow: 6px 3px 7px 0px rgba(53, 53, 53, 0.75);
    -moz-box-shadow: 6px 3px 7px 0px rgba(53, 53, 53, 0.75);
    box-shadow: 6px 3px 7px 0px rgba(53, 53, 53, 0.75);
    z-index: 99;
}

#mandateEditBox, .mandateEditBox {
    position: absolute;
    top: 4rem;
    margin: auto;
    width: 70%;
    border: 2px solid black;
    background-color: white;
    padding: 10px;
    /*padding-top:30px;
    padding-bottom:30px;
    padding-left:30px;
    padding-right:30px;*/
    padding: 30px;
    -webkit-box-shadow: 6px 3px 7px 0px rgba(53, 53, 53, 0.75);
    -moz-box-shadow: 6px 3px 7px 0px rgba(53, 53, 53, 0.75);
    box-shadow: 6px 3px 7px 0px rgba(53, 53, 53, 0.75);
    z-index: 99;
}

.buttonHolder, #buttonHolder {
    position: relative;
    top: 0px;
    left: 0px;
}

.buttonHolderInner, #buttonHolderInner {
    position: relative;
    top: -60px;
    left: 0px;
    float: right;
    z-index: 99;
}

.buttonHolderText, #buttonHolderText {
    position: relative;
    top: 0px;
    left: 0px;
    float: left;
    z-index: 1;
    width: 100%;
}


.Blanker, #Blanker {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 9999;
    color: black;
    height: 100%;
    width: 100%;
    background-color: red;
}


.spinnder, #spinnder {
    /*display: none;
    display: block;*/

    display: none;
    z-index: 999;
}

#loading {
    /*display: none;
    display: block;*/

    display: none;
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 9999;
    /*background-image: URL('/img/loading.gif');*/
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: 300px;
    background-color: rgba(234, 234, 234, 0.50);
    top: 0;
    left: 0;
    border-bottom-width: 3px;
    border-color: red;
    border-style: solid;
}

th.sortasc a {
    display: block;
    padding: 0 4px 0 15px;
    background: url(../../images/asc.gif) no-repeat;
}



th.sortdesc a {
    display: block;
    padding: 0 4px 0 15px;
    background: url(../../images/desc.gif) no-repeat;
}

th.nonedesc a {
    display: block;
    padding: 0 4px 0 15px;
    background: url(../../images/none.gif) no-repeat;
}

/* Footer */
#footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 12px;
    background-color: #f4f4f4;
}

    #footer p {
        margin: 0;
    }

    #footer::before {
        content: "";
        display: block;
        height: 1px;
        background-color: #ddd;
        margin-bottom: 10px;
    }



/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        width: 250px;
        z-index: 1050;
    }

        .sidebar.active {
            transform: translateX(0);
        }

    main {
        margin-left: 0;
    }

    #header {
        flex-direction: column;
        align-items: flex-start;
    }

        #header .nav-menu {
            margin-top: 10px;
            justify-content: flex-start;
        }

            #header .nav-menu a {
                margin-left: 10px;
            }

    #sidebarToggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
        cursor: pointer;
        background-color: #2185d0;
        color: #fff;
        font-size: 18px;
        padding: 10px;
        border-radius: 5px;
        transition: background-color 0.3s ease;
        border: none;
        outline: none;
    }

        #sidebarToggle:hover {
            background-color: #1b74d8;
        }
}

/* Main Heading */
.main-heading {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

/* Card Container */
.card-container {
    padding: 0 2%;
    margin-top: 20px;
}

/* Custom Card */
.custom-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    overflow: hidden;
}

.card-header {
    background-color: #007bff;
    color: #fff;
    padding: 15px;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
}

.card-body {
    padding: 15px;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-info {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: #333;
}

.card-label {
    font-weight: bold;
}

.card-info span {
    font-size: 1rem;
    color: #333;
}

/* Graph Section */
.card-body canvas {
    max-width: 100%;
    height: auto;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .card-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-label {
        margin-right: 0;
    }
}

.btn {
    font-size: 1rem;
    border-radius: 0.25rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #0056b3;
        border-color: #004085;
    }

.search-panel {
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

.input-group {
    display: flex;
    align-items: center;
}

.form-select {
    border-radius: 0.25rem;
}

.form-control {
    border-radius: 0.25rem;
}

.calendar-icon {
    border: none;
    background: none;
}

.filter-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-weight: bold;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.no-data-label {
    font-size: 1rem;
    color: #6c757d;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

    .btn-secondary:hover {
        background-color: #5a6268;
        border-color: #545b62;
    }

/* General Styles */
.container {
    max-width: 100%;
    margin: 0 auto;
    /* padding: 20px;*/
}

.header-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

/*.btn {
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}*/
/* Ensure buttons are aligned correctly and spaced properly on all devices */

.btn-export {
    background-color: #007bff;
    color: #fff;
}

    .btn-export:hover {
        background-color: #0056b3;
    }

.btn-search {
    background-color: #28a745;
    color: #fff;
}

    .btn-search:hover {
        background-color: #218838;
    }

.calendar-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Filter and Search Section */
.filter-search-section {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-box {
    margin-bottom: 1rem;
}

    .filter-box .form-label {
        font-weight: 600;
    }

.filter-search-section .input-group {
    display: flex;
    align-items: center;
}

/* Grouping the Search By dropdown and Search textbox */
.filter-search-section .input-group {
    display: flex;
    align-items: center;
}

.filter-search-section .form-select,
.filter-search-section .form-control {
    border: 1px solid #ced4da;
    height: 38px; /* Align height with button */
    box-sizing: border-box;
}

.filter-search-section .form-select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none; /* Remove right border to connect to text input */
    height: 38px; /* Match the height of the input fields */
}

.filter-search-section .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none; /* Remove left border to connect to dropdown */
}

.filter-search-section .input-group > .form-select:first-child {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.filter-search-section .input-group > .form-control:last-child {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.filter-search-section .btn-search {
    margin-left: 5px;
    height: 38px; /* Match height with inputs */
}

/* Reset border-left for date inputs */
.filter-search-section .date-input {
    border-left: 1px solid #ced4da;
    border-radius: 0.25rem; /* Add back border-radius */
}

/* Ensure consistent height for all input elements */
.filter-search-section .form-control,
.filter-search-section .date-input {
    height: 38px; /* Set a consistent height */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.filter-search-section .btn-search {
    height: 38px; /* Match height of other inputs */
    line-height: 1; /* Ensure text is vertically centered */
}

/* Aligning date filter inputs */
.filter-search-section .input-group {
    display: flex;
    align-items: center; /* Center vertically */
}

/* Style the filter box container */
.filter-search-section .filter-box {
    margin-bottom: 0; /* Remove default margin */
}

.filter-search-section .input-group .calendar-icon {
    height: 38px; /* Match the height of other inputs */
    width: 38px; /* Ensure icon is consistent in size */
    cursor: pointer;
}

.form-control,
.form-select {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

/*.form-control {
    padding: 0.5rem 1rem;
}*/

.search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    .search-panel .form-control {
        flex: 1;
    }

    .search-panel .form-select {
        flex: 1;
    }

    .search-panel .btn-search {
        flex: 0 0 auto;
    }

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

    .table th,
    .table td {
        /*padding: 0.75rem;*/
        vertical-align: middle;
        border: 1px solid #dee2e6;
    }

    .table thead th {
        background-color: #f1f1f1;
        font-weight: 600;
    }

    .table tbody tr:hover {
        background-color: #f8f9fa;
    }

.empty-data-message {
    line-height: 50px;
    font-size: 1rem;
    text-align: center;
    color: #6c757d;
}

/* Container for header and button group */
.d-flex {
    display: flex;
    justify-content: space-between; /* Space between header and button group */
    align-items: center; /* Align items vertically */
}

/* Ensure header and button group stack on mobile */
@media (max-width: 1085px) {
    .d-flex {
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start; /* Align items to the start on smaller screens */
    }

    .section-title {
        margin-bottom: 1rem; /* Space between header and button group */
    }

    .button-group {
        width: 100%; /* Full width for button group on mobile */
    }

        .button-group .btn {
            width: 100%; /* Full width buttons on mobile */
            margin-bottom: 0.5rem; /* Space between buttons on mobile */
        }
}
