 @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300);



html {
    overflow: scroll;
}
  /* Add this style to your CSS */
    table.dataTable td {
        white-space: nowrap;
    }

    table.dataTable th {
        white-space: nowrap;
    }

    table.dataTable {
        width: auto;
        table-layout: auto;
    }
.container .mt-4 {
    margin-bottom: 61px;
}
    .frame {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 400px;
      height: 400px;
      margin-top: -200px;
      margin-left: -200px;
      border-radius: 2px;
        overflow: hidden;
      color: #415868;
        font-family: 'Open Sans', Helvetica, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .modal {
         position: absolute;
        width: 280px;
        top: 95px;
        left: 60px;
        background: #fff;
        border-radius: 3px;
        box-shadow: 4px 8px 12px 0 rgba(0,0,0,0.4);
        text-align: center;
        overflow: hidden;
        animation: show-modal .5s ease-in-out;
        padding-bottom: 10px; /* Ensure there is space for the button */

        &.hide {
            animation: hide-modal .5s ease-in-out both;
        }

        & img {
            margin-top: 24px;
        }

        .title {
            display: block;
            font-size: 18px;
            line-height: 24px;
            font-weight: 400;
            margin: 14px 0 5px 0;
        }

        & p {
            font-size: 14px;
            font-weight: 300;
            line-height: 19px;
            margin: 0;
            padding: 0 30px;
        }


        .button {
        margin-top: 10px;
        height: 40px;
        background: #F65656;
        color: #fff;
        line-height: 40px;
        font-size: 14px;
        font-weight: 400;
        cursor: pointer;
        transition: background .3s ease-in-out;
        width: 100%;

            &:hover {
                background: #EC3434;
            }

        }

    }
    .animation-container {
    margin: 0 auto;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
     /* Backdrop styles */
        .backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            z-index: 1040;
            animation: show-modal .5s ease-in-out;
            &.hide {
            animation: hide-modal .5s ease-in-out both;
        }
        }
        .hide {
            display: none;
        }

    @keyframes show-modal {
        0% {
            transform: scale(0);
        }
        60% {
            transform: scale(1.1);
        }
        80% {
            transform: scale(.95);
        }
        100% {
            transform: scale(1);
        }
    }

    @keyframes hide-modal {
        0% {
            transform: scale(1);
        }
        20% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(0);
        }
    }

    /* General layout */


body {
    display: flex;
    flex-direction: column;
}
/* main header styling */
 /* Main Header styling */
.main-header {
    position: fixed;
    justify-content: flex-start;
    flex-direction: row; /*default*/
    max-height: 50px;
    z-index: 1040;
    background-color: #343a40;
    color: #ffffff;
    width: 100%;
    transition: width 0.3s ease-in-out;
}
.skin-blue .main-header .logo{
    color: #fff;
    border-bottom: 0 solid transparent;
    text-decoration: none;

}
.main-header .logo{
   -webkit-transition: width 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out;
    transition: width 0.3s ease-in-out;
    display: block;
    float: left;
    height: 80px;
    font-size: 15px;
    line-height: 50px;
    text-align: center;
    width: 250px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    padding: 0 15px;
    font-weight: 300;
    overflow: hidden;
}

.main-header .logo .logo-lg {
    display: block;
}
.main-header .logo .mini-logo {
    display: none;
}
.main-header .navbar{
    max-height: 50px;
    background-color: #495057;
    margin-left: 230px;
    transition: margin-left 0.3s ease-in-out;
}
.main-header.active .navbar {
    margin-left: 70px;
}
.main-header.active .logo {
    width: 70px;
}

.main-header.active .logo .logo-lg {
    display: none;
}

.main-header.active .logo .mini-logo {
    display: block;
    font-size: small;
}



/* Sidebar styling */
.main-sidebar {
    width: 250px;
    background-color: #343a40;
    color: #ffffff;
    position: fixed;
    height: 100%;
    top: 50px; /* Adjust to be below the header */
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    z-index: 1030; /* Ensure the sidebar is above other content */
}

.main-sidebar.active {
    width: 70px;
}

.main-sidebar .nav-link {
    color: #ffffff;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

.main-sidebar .nav-link:hover {
    background-color: #495057;
}

.main-sidebar .nav-link i {
    margin-right: 10px;
}
.main-sidebar.active .nav-link span {
    display: none; /* Hide the text when sidebar is collapsed */
}
/* Dropdown button in sidebar */
.custom-dropdown-toggle {
    color: #ffffff;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    font-weight: 500;
}

.custom-dropdown-toggle:hover,
.custom-dropdown-toggle:focus {
    background-color: #495057;
    color: #ffffff;
}

/* Dropdown menu styling */
.custom-dropdown-menu {
    background-color: #212529; /* Dark background to match sidebar */
    border: none;
    padding: 0;
    margin-top: 2px;
}

/* Dropdown items styling */
.custom-dropdown-item {
    color: #f8f9fa !important; /* White text */
    padding: 10px 15px;
    font-size: 14px;
    border-bottom: 1px solid #343a40;
}

.custom-dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown-item i {
    margin-right: 8px;
}

/* Hover / Active states */
.custom-dropdown-item:hover,
.custom-dropdown-item:focus {
    background-color: #495057 !important;
    color: #ffffff !important;
}

/* Disabled state for dropdown items */
.custom-dropdown-item.disabled {
    color: #6c757d !important;  /* Gray text for disabled */
    pointer-events: none;
    opacity: 0.6;
}

/* Active top level */
.custom-dropdown-toggle.active {
    background-color: #495057;
    color: #ffffff;
}

/* Optional: icon rotation for caret (if you want animated indicators) */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}
/* Content wrapper to ensure it doesn't overlap with the sidebar */
.content-wrapper {
    margin-left: 250px;
    padding-top: 70px; /* Adjust for header height */
    transition: margin-left 0.3s ease-in-out;
}

.content-wrapper.active {
    margin-left: 0;
}

/* Toggle button styling */
.sidebar-toggle {
    float: left;
    background-color: #495057;
    background-image: none;
    padding: 15px 15px;
    font-family: fontAwesome, serif;
    color: #ffffff;
}

.sidebar-toggle:before {
    content: "\f0c9";
}

.sidebar-toggle:hover {
    color: #ffffff;
    background-color: #5e5e5e;
}

.sidebar-toggle:focus,
.sidebar-toggle:active {
    float: left;
    background-color: #495057;
    background-image: none;
    padding: 15px 15px;
    font-family: fontAwesome, serif;
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-header {
        position: relative;
    }
    .main-header.active .logo {
        width: 70px;
    }
    .main-header.active .logo .logo-lg {
        display: none;
    }
    .main-header.active .logo .mini-logo {
        display: block;
    }
    .main-sidebar {
        width: 150px;
        position: fixed;
    }
    .main-sidebar.active {
        width: 70px;
    }
    .content-wrapper {
        margin-left: 150px;
    }
    .content-wrapper.active {
        margin-left: 70px;
    }
    .main-footer {
    padding-top: 12px;
    margin-left: 70px;
    color: #444;
    border-top: 1px solid #d2d6de;
    }
    .main-footer.active {
    padding-top: 12px;
    margin-left: 70px;
    color: #444;
    border-top: 1px solid #d2d6de;
    }
}

.content-wrapper {
    min-height: 100%;
    background-color: #ecf0f5;
}

/* Footer styling */
.main-footer {
    padding-top: 12px;
    margin-left: 252px;
    color: #444;
    border-top: 1px solid #d2d6de;
}
.main-footer.active {
    padding-top: 12px;
    margin-left: 70px;
    color: #444;
    border-top: 1px solid #d2d6de;
}
.box-body {
    border-radius: 0 0 3px 3px;
    padding: 10px;
}
/* Balance rows */
.content table.table tbody tr.balance-row {
    font-weight: bold !important;
    background-color: #b5daff !important; /* Use a lighter color */
    font-size: 11px;
}

.content table.table tbody tr.global-balance-row {
    font-weight: bold !important;
    background-color: #4293e4 !important; /* Use a different lighter color */
    font-size: 13px;
}
/* css for copy to clipboard*/
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
.bg-success {
    background-color: #28a745 !important;
    color: white !important;
}
.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
}
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-popup {
    background: #fff;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.popup-header {
    background-color: #005c99;
    color: #fff;
    padding: 16px 24px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h4 {
    margin: 0;
    font-size: 1.25rem;
}

.popup-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
}

.popup-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.client-popup-table {
    width: 100%;
    border-collapse: collapse;
}

.client-popup-table thead {
    background-color: #f2f2f2;
}

.client-popup-table th, .client-popup-table td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    text-align: left;
}

.client-popup-table tbody tr:hover {
    background-color: #f9f9f9;
}
.subtotal-row {
    background-color: #f4f6f9;
    font-weight: bold;
    border-top: 2px solid #aaa;
}

.grand-total-row {
    background-color: #333;
    color: white;
    font-weight: bold;
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
}
.table-total-row {
    font-weight: bold;
    background-color: #f3f3f3 !important;
    border-top: 2px solid #bbb;
    border-bottom: 2px solid #bbb;
}

.bg-success {
    background-color: #4caf50 !important;
    color: #fff !important;
}

.bg-danger {
    background-color: #f44336 !important;
    color: #fff !important;
}

.font-weight-bold {
    font-weight: bold;
}


