/* Base styles */
body {
    padding-bottom: 2rem;
    background-color: #f8f9fa;
}

.container-fluid {
    max-width: 1920px;
    margin: 0 auto;
}

/* Month Selector Styles */
.month-selector-wrapper {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.date-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 320px;
    margin: 0 auto;
    background-color: #f8f9fa;
    border-radius: 2rem;
    padding: 0.3rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.date-selects {
    display: flex;
    gap: 0.25rem;
    margin: 0 0.5rem;
    background-color: white;
    border-radius: 1.5rem;
    padding: 0.25rem 0.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.date-selects select {
    appearance: none;
    background-color: transparent;
    border: none;
    padding: 0.2rem 1rem 0.2rem 0.3rem;
    font-size: 0.75rem;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
    font-weight: 500;
    min-width: 80px;
}

.date-selects select:focus {
    outline: none;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

.nav-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    transition: all 0.2s;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.nav-link:hover {
    color: #0d6efd;
    background-color: #f0f4ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .month-selector-wrapper {
        padding: 0.5rem 0;
    }
    
    .date-nav {
        max-width: 280px;
    }

    .date-selects select {
        font-size: 0.875rem;
        padding: 0.25rem;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .month-selector-wrapper {
        padding: 0.375rem 0;
    }

    .date-nav {
        max-width: 240px;
        gap: 0.25rem;
    }

    .date-selects {
        gap: 0;
    }

    .date-selects select {
        font-size: 0.8125rem;
        min-width: 60px;
    }

    .nav-link {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
}

/* Content spacing */
.content-wrapper {
    padding-top: 1rem;
}

/* Card styles */
.card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.75rem;
}

.card-header {
    padding: 0.4rem 0.75rem;
}

.card-title {
    font-size: 0.85rem;
}

.card-body {
    padding: 0.5rem;
}

/* Summary Panel Styles */
.summary-group {
    padding: 0.5rem;
    margin-bottom: 0.25rem;
}

.summary-section-title {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
    padding-bottom: 0.3rem;
}

.summary-item {
    padding: 0.3rem;
    margin-bottom: 0.2rem;
}
.summary-item .label {
    font-size: 0.65rem;
}

/* Table styles */
.table th,
.table td {
    padding: 0.3rem;
    font-size: 0.75rem;
}

.table thead th {
    font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header {
        padding: 0.3rem 0.5rem;
    }
    
    .card-body {
        padding: 0.3rem;
    }
    
    .summary-group {
        padding: 0.3rem;
    }
    
    .summary-item {
        padding: 0.2rem;
    }
    
    .table th,
    .table td {
        padding: 0.2rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .card {
        margin-bottom: 0.5rem;
    }
    
    .summary-item .value {
        font-size: 0.7rem;
    }
    
    .summary-item .label {
        font-size: 0.6rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.2rem 0.3rem;
        font-size: 0.7rem;
    }
}

/* Update nav tabs */
.nav-tabs {
    margin-bottom: 1rem;
    padding: 0.3rem;
}

.nav-tabs .nav-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
}

.nav-icon {
    font-size: 1rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 1rem;
    }

    .month-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .selector-group {
        width: 100%;
    }

    .selector-group .form-select {
        flex: 1;
        min-width: auto;
    }

    .month-controls .btn {
        width: 100%;
        justify-content: center;
    }

    .summary-row {
        flex-direction: column;
        margin: 0;
    }

    .summary-col {
        width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }

    .summary-col:last-child {
        margin-bottom: 0;
    }

    .card-body {
        padding: 1rem;
    }

    .summary-group {
        padding: 0.5rem;
    }

    /* Table responsiveness */
    .table-responsive {
        margin: 0;
        padding: 0;
    }

    table.dataTable {
        font-size: 0.875rem;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: left;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .month-selector h1 {
        font-size: 1.25rem;
    }

    .summary-item .value {
        font-size: 0.7rem;
    }

    .summary-item .value.highlight {
        font-size: 0.8rem;
    }

    .summary-item .label {
        font-size: 0.75rem;
    }
}

/* Print styles */
@media print {
    .container-fluid {
        width: 100%;
        padding: 0;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .summary-group {
        background: none;
    }
    
    .summary-item .value.highlight,
    .summary-item .value.text-danger {
        background: none;
        -webkit-text-fill-color: initial;
        color: inherit;
    }
}

/* Update the summary item value styles */
.summary-item .value {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    color: #1e293b;
    line-height: 1;
    text-align: left;
    width: 100%;
    justify-content: center;
    align-items: center;
    min-height: 1.5rem;
}

/* Update the highlight value styles */
.summary-item .value.highlight {
    font-size: 0.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0d6efd, #0099ff);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(13,110,253,0.1);
}

/* Update responsive styles for bold values */
@media (max-width: 768px) {
    .summary-item .value {
        font-size: 0.75rem;
        font-weight: 700;
    }
    
    .summary-item .value.highlight {
        font-size: 0.85rem;
        font-weight: 800;
    }
}

@media (max-width: 480px) {
    .summary-item .value {
        font-size: 0.7rem;
        font-weight: 700;
    }
    
    .summary-item .value.highlight {
        font-size: 0.8rem;
        font-weight: 800;
    }
}
