﻿    /* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

/* Date picker styles */
.datepicker {
    z-index: 9999 !important;
}

.datepicker-dropdown {
    z-index: 9999 !important;
    position: fixed !important;
}

.bootstrap-datepicker {
    z-index: 9999 !important;
}

.datepicker-orient-top {
    margin-top: -500px !important;
}

/* Document Verification Styles */
.document-item {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.document-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #007bff;
}

/* Sticky Header Table Styles */
.sticky-header-table {
    position: relative;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #f8f9fa;
}

.sticky-header th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* DataTable Sticky Header Overrides */
.dataTables_wrapper .sticky-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: #f8f9fa !important;
}

.dataTables_wrapper .sticky-header th {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6 !important;
}

/* Ensure sticky header works with DataTable scrolling */
.dataTables_scrollHead .sticky-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Specific targeting for monthly revenue table */
#monthlyRevenueTable .sticky-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: #f8f9fa !important;
}

.dataTables_scrollHeadInner .sticky-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Additional DataTable sticky header fixes */
.dataTables_scrollHeadInner .sticky-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.dataTables_scrollHeadInner .sticky-header th {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6 !important;
}

/* Force sticky positioning for monthly revenue table */
#monthlyRevenueTable .sticky-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: #f8f9fa !important;
}

#monthlyRevenueTable .sticky-header th {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6 !important;
}

/* Bootstrap Table Sorting Styles */
.bootstrap-table .table th.sortable {
    cursor: pointer;
    position: relative;
}

.bootstrap-table .table th.sortable:hover {
    background-color: #f8f9fa;
}

.bootstrap-table .table th.sortable:after {
    content: '\f0dc';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.bootstrap-table .table th.sortable.asc:after {
    content: '\f0de';
    color: #007bff;
}

.bootstrap-table .table th.sortable.desc:after {
    content: '\f0dd';
    color: #007bff;
}

.bootstrap-table .table th.sortable:hover:after {
    color: #007bff;
}

/* Additional sorting styles for better visibility */
.table th[data-sortable="true"] {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.table th[data-sortable="true"]:hover {
    background-color: #e9ecef;
}

.table th[data-sortable="true"]:after {
    content: '\f0dc';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    opacity: 0.5;
}

.table th[data-sortable="true"].asc:after {
    content: '\f0de';
    color: #007bff;
    opacity: 1;
}

.table th[data-sortable="true"].desc:after {
    content: '\f0dd';
    color: #007bff;
    opacity: 1;
}

.table th[data-sortable="true"]:hover:after {
    color: #007bff;
    opacity: 1;
}

.document-item .btn-group {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.document-item:hover .btn-group {
    opacity: 1;
}

.info-box {
    display: flex;
    min-height: 80px;
    background: #fff;
    width: 100%;
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.info-box-icon {
    border-radius: 0.25rem 0 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    text-align: center;
    font-size: 1.875rem;
    line-height: 0;
}

.info-box-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.8;
    flex: 1;
    padding: 0 10px;
}

.info-box-text {
    display: block;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-box-number {
    display: block;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-secondary {
    background-color: #6c757d;
    color: #fff;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.card-header .card-tools {
    margin-top: 0.5rem;
}

.card-title {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group > .btn {
        border-radius: 0.2rem !important;
        margin-bottom: 0.25rem;
    }
    
    .info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .info-box-icon {
        border-radius: 0.25rem 0.25rem 0 0;
        width: 100%;
        height: 50px;
    }
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .info-box {
        min-height: 70px;
        margin-bottom: 0.75rem;
    }
    
    .info-box-icon {
        height: 70px;
        width: 70px;
        line-height: 70px;
        font-size: 1.5rem;
    }
    
    .info-box-content {
        margin-left: 70px;
        padding: 3px 8px;
    }
    
    .info-box-text {
        font-size: 0.875rem;
    }
    
    .info-box-number {
        font-size: 1.1rem;
    }
    
    .document-item {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .document-file-item {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .btn-group-vertical .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .btn-group-vertical .btn:last-child {
        margin-bottom: 0;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .form-control-file {
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .card-header .card-tools {
        margin-top: 0.5rem;
    }
    
    .card-header .card-tools .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .info-box-text {
        font-size: 0.8rem;
    }
    
    .info-box-number {
        font-size: 1rem;
    }
    
    .document-item h6 {
        font-size: 0.9rem;
    }
    
    .document-file-item .small {
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}
