/* =====================================================
   FDLE Dexter / Statutes Shared UI Styling
   ===================================================== */

html,
body {
    font-size: 13px;
    line-height: 1.4;
}

/* =====================================================
   Page Layout
   ===================================================== */

.page-container {
    margin: 10px 5px 30px 5px;
}

.page-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    font-style: bold;
    color: #1976d2;
    margin: 10px auto 20px auto;
}

.section-wide {
    width: 80%;
    max-width: 1420px;
    margin: 0 auto 20px auto;
}

.section-medium {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.section-small {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 20px auto;
}

/* narrower centered search section for statute search page */
.section-wide-search {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto 20px auto;
}

/* =====================================================
   Fieldsets
   ===================================================== */

.ui-fieldset {
    border: 1px solid #d6e6f2 !important;
    border-radius: 6px !important;
    background: #f7fbff !important;
    overflow: hidden;
}

.ui-fieldset .ui-fieldset-legend {
    background: #0080c0!important;
    border: 1px solid #0080c0!important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
}

.ui-fieldset .ui-fieldset-content {
    background: #ffffff !important;
    padding: 12px !important;
}

/* =====================================================
   Buttons
   ===================================================== */

.ui-button,
button.ui-button,
a.ui-button {
    background: #1976d2 !important;
    border-color: #1976d2 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}

.ui-button:hover {
    background: #1565c0 !important;
    border-color: #1565c0 !important;
}

.search-buttons {
    text-align: center;
    margin-top: 14px;
}

.search-buttons .ui-button {
    margin: 0 6px;
    min-width: 100px;
}

.export-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}


.statute-search-button {
    display: flex;
    justify-content: center;
    margin: 15px 0 20px 0;
}

.statute-search-button .ui-button {
    min-width: 120px;
}


.statute-search-button .ui-button {
    padding: 2px 8px;
    font-weight: 600;
    border-radius: 6px;
}
/* =====================================================
   Messages / Contact
   ===================================================== */

.contact-block {
    color: #000000;
    text-align: left;
}

/* =====================================================
   Inputs
   ===================================================== */

.ui-inputfield,
.ui-inputtext,
.ui-inputnumber input,
textarea,
select {
    font-size: 13px !important;
    box-sizing: border-box;
}

/* =====================================================
   Dexter Search Layout
   ===================================================== */

.search-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: nowrap;
    margin-top: 10px;
}

.search-field {
    display: flex;
    flex-direction: column;
    width: 220px;
}

.search-field label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #000000;
}

/* =====================================================
   Statute Search Page
   ===================================================== */

.statute-page .statute-search-grid {
    display: grid;
    grid-template-columns: 250px 250px 250px 250px 260px;
    column-gap: 12px;
    row-gap: 0;
    justify-content: center;
    align-items: start;
    margin-top: 0.75rem;
}

.statute-page .statute-search-card {
    width: 100%;
    min-width: 0;
}

.statute-page .statute-search-card .ui-fieldset {
    height: 100%;
}

.statute-page .statute-search-card .ui-fieldset-content {
    padding: 0.75rem !important;
    min-height: 86px;
}

.statute-page .statute-search-card .search-field {
    width: 100%;
}

.statute-page .statute-search-card label,
.statute-page .statute-search-card .search-field label {
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #000000;
}

.statute-page .statute-search-card .search-field .ui-inputfield,
.statute-page .statute-search-card .search-field input {
    width: 100% !important;
    max-width: 100% !important;
}

/* field-specific widths */
.statute-page #byStatute {
    width: 130px !important;
}

.statute-page #bySubsection_input {
    width: 90px !important;
}

.statute-page #byAON {
    width: 115px !important;
}

.statute-page #byDesc,
.statute-page #byDesc_input {
    width: 210px !important;
}

.statute-page #byRecordNum_input {
    width: 105px !important;
}

.statute-page .statute-version-box {
    max-width: 820px;
    margin: 1rem auto 0.75rem auto;
}

.statute-page .statute-version-inner {
    display: flex;
    justify-content: center;
}
.statute-page .statute-version-inner .ui-selectoneradio{
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 25px;
}
.statute-page .statute-version-inner .ui-selectoneradio label {
	white-space: nowrap;    
    font-size: 13px;
}

/* make the whole statute search fieldset look tighter like FDLE */
.statute-page .section-wide-search > .ui-fieldset .ui-fieldset-content {
    padding: 16px 14px 18px 14px !important;
}

/* =====================================================
   Download Cards
   ===================================================== */

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1rem;
}

.download-card {
    width: 100%;
}

/* =====================================================
   FDLE Style DataTable
   ===================================================== */

.fdle-table {
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f5;
    font-size: 13px;
}

.fdle-table .ui-datatable-tablewrapper {
    background: #ffffff;
}

.fdle-table table {
    border-collapse: collapse !important;
    width: 100%;
}

.fdle-table .ui-paginator-top,
.fdle-table .ui-paginator-bottom {
    background: #f3f4f5 !important;
    border: none !important;
    padding: 10px 8px !important;
}

.fdle-table .ui-paginator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #000000;
}

.fdle-table .ui-paginator-current {
    font-weight: 700;
    margin-right: 10px;
}

.fdle-table thead th {
    background: #dfeaf1 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    text-align: center !important;
    border: 1px solid #c6d6df !important;
    padding: 6px 10px !important;
}

.fdle-table tbody td {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #d9d9d9 !important;
    padding: 6px 10px !important;
}

.fdle-table .ui-datatable-data > tr > td {
    transition: background-color 0.15s ease;
}

.fdle-table .ui-datatable-data > tr:hover > td {
    background-color: #e9f2f8 !important;
    cursor: pointer;
}

.fdle-table .ui-datatable-empty-message td {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 6px 10px !important;
}

/* =====================================================
   Dialog
   ===================================================== */

.ui-dialog .ui-dialog-titlebar {
    background: #1976d2 !important;
    border-color: #1976d2 !important;
    color: #ffffff !important;
}

.ui-dialog .ui-dialog-content {
    font-size: 13px;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 1200px) {
    .statute-page .statute-search-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        row-gap: 1rem;
    }

    .statute-page #byStatute,
    .statute-page #byAON,
    .statute-page #byDesc,
    .statute-page #byDesc_input,
    .statute-page #bySubsection_input,
    .statute-page #byRecordNum_input {
        width: 100% !important;
    }

    .section-wide-search {
        max-width: 900px;
    }
}

@media (max-width: 900px) {
    .search-row {
        flex-wrap: wrap;
    }

    .search-field {
        width: 100%;
        max-width: 320px;
    }

    .section-wide,
    .section-medium,
    .section-small,
    .section-wide-search {
        width: 95%;
    }

    .export-buttons {
        justify-content: center;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .statute-page .statute-search-grid {
        grid-template-columns: 1fr;
    }
}