/* ---------------------------------------------------------
   TW REPORT BUILDER — CONTAINER
--------------------------------------------------------- */

#tw-report-builder {
    border: 1px solid #ddd;
    padding: 20px;
    background: #fafafa;
    margin: 20px 0;
    border-radius: 6px;
    font-family: Arial, sans-serif;
}

#tw-report-builder h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

/* ---------------------------------------------------------
   SECTION HEADERS
--------------------------------------------------------- */

.tw-section {
    margin-bottom: 25px;
}

.tw-section h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.tw-section h4 {
    margin: 10px 0 5px;
    font-size: 15px;
    font-weight: 600;
}

/* ---------------------------------------------------------
   LABELS
--------------------------------------------------------- */

.tw-table-label,
.tw-column-label,
.tw-filter-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 14px;
}

/* ---------------------------------------------------------
   ACTION BUTTONS
--------------------------------------------------------- */

.tw-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

#tw-generate-report,
#tw-export-csv {
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
}

/* ---------------------------------------------------------
   RESULTS TABLE
--------------------------------------------------------- */

.tw-report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tw-report-table th,
.tw-report-table td {
    padding: 8px 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.tw-report-table th {
    background: #f0f0f0;
    font-weight: 600;
}

.tw-button {
    background-color: #1e73be;
    color: #ffffff;
    border: none;
    border-radius: 3px;

    min-width: 150px;
    height: 40px;
    padding: 0 20px;

    font-size: 14px;
    font-weight: 600;
    text-align: center;

    display: flex;               /* FIX */
    align-items: center;         /* FIX */
    justify-content: center;     /* FIX */

    cursor: pointer;
    touch-action: manipulation;  /* FIX */
}


.tw-button:hover {
    background-color: #155a8f;   /* darker hover */
}

#tw-debug {
    display: none !important;
}



/* ---------------------------------------------------------
   RESPONSIVE DESIGN
--------------------------------------------------------- */

@media (max-width: 600px) {

    #tw-report-builder {
        padding: 15px;
    }

    .tw-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #tw-generate-report,
    #tw-export-csv {
        width: 100%;
        text-align: center;
    }
}
