/* Main site styles for ICAAP Unified System */

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

/* Removed body margin-bottom since footer is no longer absolutely positioned */

.footer {
  position: relative;
  width: 100%;
  white-space: nowrap;
  line-height: 18px;
  margin-top: auto;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  flex-shrink: 0;
}

/* Custom styles for ICAAP Unified System */
.main-content {
  padding: 20px;
}

.sidebar {
  min-height: 100vh;
  background-color: #f8f9fa;
}

.navbar-brand {
  font-weight: bold;
}

.card {
  /*margin-bottom: 20px;*/
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table th {
  background-color: #003366;
  color: white;
  border-color: #003366;
}

.btn-primary {
  background-color: #003366;
  border-color: #003366;
}

.btn-primary:hover {
  background-color: #0059ee;
  border-color: #0059ee;
}

.alert {
  border-radius: 0.375rem;
}

/* Loading spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive utilities */
@media (max-width: 768px) {
  .sidebar {
    position: static;
    height: auto;
    min-height: auto;
  }
  
  .main-content {
    padding: 10px;
  }
}

/* Global DataTable Scrollbar Styling */
/* Webkit browsers (Chrome, Safari, Edge) */
.dataTables_wrapper ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dataTables_wrapper ::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.dataTables_wrapper ::-webkit-scrollbar-thumb {
  background: #003366;
  border-radius: 4px;
}

.dataTables_wrapper ::-webkit-scrollbar-thumb:hover {
  background: #0059ee;
}

/* Firefox */
.dataTables_wrapper {
  scrollbar-width: thin;
  scrollbar-color: #003366 #f1f1f1;
}

/* Table container scrollbars */
.table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #003366;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #0059ee;
}

.table-responsive {
  scrollbar-width: thin;
  scrollbar-color: #003366 #f1f1f1;
}

/* DataTable specific scrollbar styling */
.dataTables_scrollBody::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dataTables_scrollBody::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
  background: #003366;
  border-radius: 4px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
  background: #0059ee;
}

.dataTables_scrollBody {
  scrollbar-width: thin;
  scrollbar-color: #003366 #f1f1f1;
}

/* Additional table container scrollbar styling */
.table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #003366;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #0059ee;
}

.table-container {
  scrollbar-width: thin;
  scrollbar-color: #003366 #f1f1f1;
}

/* Ensure scrollbars are visible on all table elements */
table {
  scrollbar-width: thin;
  scrollbar-color: #003366 #f1f1f1;
}

table::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

table::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

table::-webkit-scrollbar-thumb {
  background: #003366;
  border-radius: 4px;
}

table::-webkit-scrollbar-thumb:hover {
  background: #0059ee;
}

/* Custom scrollbar class for DataTables */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #003366;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #0059ee;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #003366 #f1f1f1;
}

/* DataTables scrollbar specific styling */
.dataTables_scroll {
  scrollbar-width: thin;
  scrollbar-color: #003366 #f1f1f1;
}

.dataTables_scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dataTables_scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.dataTables_scroll::-webkit-scrollbar-thumb {
  background: #003366;
  border-radius: 4px;
}

.dataTables_scroll::-webkit-scrollbar-thumb:hover {
  background: #0059ee;
}

/* Ensure horizontal scrollbars are visible */
.dataTables_scrollHead {
  scrollbar-width: thin;
  scrollbar-color: #003366 #f1f1f1;
}

.dataTables_scrollHead::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dataTables_scrollHead::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.dataTables_scrollHead::-webkit-scrollbar-thumb {
  background: #003366;
  border-radius: 4px;
}

.dataTables_scrollHead::-webkit-scrollbar-thumb:hover {
  background: #0059ee;
}


.bank-link {
    color: #000; /* Bootstrap default blue */
    text-decoration: none;
    transition: color 0.2s ease;
}

    .bank-link:hover {
        color: #003366;
        text-decoration: underline;
    }

.table thead th{
    color:white
}

.link-title {
    margin-left: 10px !important;
}


.page-header {
    margin-bottom: 0px !important;
    border-bottom: none !important;
}

.page-description {
    max-width: fit-content !important;
}
.card {
    border-color:white;
}



/*////stats styling */

.avatar-initial {
    padding: 4px;
    color: white;
}

/* Stats and Action Buttons Section */
.stats-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

    .stats-item i {
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    .stats-item .fw-bold {
        color: #495057;
    }

.action-buttons-section .btn-group .btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
}

    .action-buttons-section .btn-group .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transition: all 0.2s ease;
    }

/* Compact Filters */
.compact-filters .form-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.compact-filters .form-select-sm,
.compact-filters .form-control-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Table Container Styling for Centralized Table Headers */
.table-container {
    margin-bottom: 1rem;
}

.table-container .card {

}

/* Make modal body scrollable and cap its height so it fits the viewport */
.modal-dialog-scrollable .modal-body {
  max-height: calc(100vh - 220px); /* header + footer + some margin; adjust if necessary */
  overflow-y: auto;
}

/* Slightly increase padding on small devices for readability */
@media (max-width: 576px) {
  .modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 180px);
    padding: 1rem;
  }
}

/* Fix DataTable header width alignment issues */
.dataTables_wrapper .dataTables_scrollHead {
    overflow: hidden !important;
}

.dataTables_wrapper .dataTables_scrollHead table {
    width: 100% !important;
}

.dataTables_wrapper .dataTables_scrollBody {
    overflow-x: auto;
}

/* Ensure table headers take full width */
.dataTables_wrapper table {
    width: 100% !important;
    table-layout: auto;
}

.dataTables_wrapper thead th {
    white-space: nowrap;
    min-width: auto;
}

/* Document Requirements Button Visibility */
#removeDocumentButtonContainer {
    display: none !important;
}

#removeDocumentButtonContainer.show {
    display: flex !important;
}

.sidebar .sidebar-header{
    padding:0 15px !important;
}


table.dataTable thead > tr > td.sorting:after, table.dataTable thead > tr > td.sorting:before, table.dataTable thead > tr > td.sorting_asc:after, table.dataTable thead > tr > td.sorting_asc:before, table.dataTable thead > tr > td.sorting_asc_disabled:after, table.dataTable thead > tr > td.sorting_asc_disabled:before, table.dataTable thead > tr > td.sorting_desc:after, table.dataTable thead > tr > td.sorting_desc:before, table.dataTable thead > tr > td.sorting_desc_disabled:after, table.dataTable thead > tr > td.sorting_desc_disabled:before, table.dataTable thead > tr > th.sorting:after, table.dataTable thead > tr > th.sorting:before, table.dataTable thead > tr > th.sorting_asc:after, table.dataTable thead > tr > th.sorting_asc:before, table.dataTable thead > tr > th.sorting_asc_disabled:after, table.dataTable thead > tr > th.sorting_asc_disabled:before, table.dataTable thead > tr > th.sorting_desc:after, table.dataTable thead > tr > th.sorting_desc:before, table.dataTable thead > tr > th.sorting_desc_disabled:after, table.dataTable thead > tr > th.sorting_desc_disabled:before {

    font-size: 1.9em !important;
  
}