/* =====================================================
   SMART NURSERY TRACKING
   REPORTS & ANALYTICS
   ===================================================== */

.reports-page-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.reports-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 13px;
}

.reports-breadcrumb a {
    color: #14532d;
    text-decoration: none;
}

.reports-breadcrumb a:hover {
    color: #166534;
}

.reports-page-intro h2 {
    margin: 0 0 10px;
    color: #334155;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.reports-page-intro p {
    max-width: 650px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.reports-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.reports-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #14532d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease,
                border-color 0.2s ease;
}

.reports-action-button:hover {
    background: #f0fdf4;
    border-color: #16a34a;
}

.reports-action-button.primary {
    border-color: #14532d;
    background: #14532d;
    color: #ffffff;
}

.reports-action-button.primary:hover {
    border-color: #166534;
    background: #166534;
}

/* =====================================================
   SUMMARY CARDS
   ===================================================== */

.reports-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.report-summary-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}

.report-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #dcfce7;
    color: #14532d;
    font-size: 23px;
}

.report-summary-card:nth-child(2)
.report-summary-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.report-summary-card:nth-child(3)
.report-summary-icon {
    background: #dcfce7;
    color: #15803d;
}

.report-summary-card:nth-child(4)
.report-summary-icon {
    background: #fef3c7;
    color: #b45309;
}

.report-summary-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.report-summary-content span {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.report-summary-content strong {
    color: #334155;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.report-summary-content small {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.5;
}

/* =====================================================
   REPORT GENERATOR
   ===================================================== */

.reports-generator-card {
    margin-bottom: 28px;
    padding: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}

.reports-generator-header {
    margin-bottom: 24px;
}

.reports-section-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.reports-generator-header h3,
.reports-records-header h3 {
    margin: 0 0 8px;
    color: #334155;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.reports-generator-header p,
.reports-records-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.reports-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.reports-form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.reports-form-group label {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.reports-form-group input,
.reports-form-group select {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.reports-form-group input::placeholder {
    color: #94a3b8;
}

.reports-form-group input:focus,
.reports-form-group select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.10);
}

.reports-generator-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #eef2f7;
}

.reports-generator-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 11px 20px;
    border: 1px solid #14532d;
    border-radius: 8px;
    background: #14532d;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.reports-generator-actions button:hover {
    background: #166534;
}

/* =====================================================
   REPORT RESULTS TABLE
   ===================================================== */

.reports-records-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}

.reports-records-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 26px;
    border-bottom: 1px solid #eef2f7;
}

.reports-records-header h3 {
    font-size: 18px;
}

.reports-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.reports-table thead {
    background: #f8fafc;
}

.reports-table th {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.reports-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f7;
    color: #475569;
    font-size: 13px;
    vertical-align: middle;
}

.reports-table tbody tr {
    transition: background 0.2s ease;
}

.reports-table tbody tr:hover {
    background: #f8fafc;
}

.reports-table tbody tr:last-child td {
    border-bottom: none;
}

.reports-table .empty-row td {
    padding: 40px 20px;
    color: #94a3b8;
    text-align: center;
}

/* =====================================================
   RESULTS FOOTER
   ===================================================== */

.reports-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 26px;
    border-top: 1px solid #eef2f7;
    background: #ffffff;
}

.reports-table-footer p,
.reports-table-footer span {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1200px) {
    .reports-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .reports-page-intro {
        flex-direction: column;
        gap: 20px;
    }

    .reports-page-intro h2 {
        font-size: 25px;
    }

    .reports-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .reports-action-button {
        flex: 1;
    }

    .reports-summary-grid {
        gap: 14px;
    }

    .report-summary-card {
        gap: 12px;
        padding: 17px;
    }

    .report-summary-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .report-summary-content strong {
        font-size: 22px;
    }

    .reports-generator-card {
        padding: 20px;
    }

    .reports-filters {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .reports-records-header {
        padding: 20px;
    }

    .reports-table th,
    .reports-table td {
        padding: 14px 16px;
    }

    .reports-table-footer {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .reports-summary-grid {
        grid-template-columns: 1fr;
    }

    .report-summary-card {
        padding: 18px;
    }

    .reports-generator-card {
        padding: 17px;
    }

    .reports-generator-actions {
        flex-direction: column;
    }

    .reports-generator-actions button {
        width: 100%;
    }

    .reports-records-header {
        padding: 18px;
    }

    .reports-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =====================================================
   REPORT PAGE ACTION BUTTONS
   ===================================================== */

.reports-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reports-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #14532d;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reports-actions button:hover {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #14532d;
}

.reports-actions button:active {
    transform: translateY(1px);
}

/* Export button */

.reports-actions #exportReport {
    border-color: #14532d;
    background: #14532d;
    color: #ffffff;
}

.reports-actions #exportReport:hover {
    border-color: #166534;
    background: #166534;
    color: #ffffff;
}

/* Print button */

.reports-actions #printReport {
    background: #ffffff;
    color: #14532d;
}

.reports-actions #printReport:hover {
    background: #f0fdf4;
    border-color: #16a34a;
}

/* Mobile */

@media (max-width: 768px) {

    .reports-actions {
        width: 100%;
    }

    .reports-actions button {
        flex: 1;
    }
}