/* ==========================================================================
   Municipality Page — Backoffice Theme Override
   Applies backoffice look-and-feel (Nunito + blue palette) to Municipality.aspx.
   Loaded automatically by ASP.NET theme system (Page.Theme = "Main").
   ========================================================================== */

/* --- Typography --- */
body,
input, select, textarea, button {
    font-family: 'Nunito', Arial, sans-serif;
}

/* --- Page background --- */
body {
    background-color: #f6f6f7;
}

/* ==========================================================================
   TOOLBAR
   ========================================================================== */

.muni-toolbar-table {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    width: 100% !important;
}

.muni-toolbar-table .menu_table {
    height: auto !important;
    width: 100%;
    background: #fff;
}

/* The first empty placeholder cell – collapse it */
.muni-toolbar-table .menu_table > tbody > tr > td:first-child {
    padding: 0 !important;
    width: 0 !important;
}

/* Navigation tabs container */
#div_load_parameters_button {
    display: none; /* initial state; JS will set to block */
}

#div_load_parameters_button table.cont_table {
    border-collapse: collapse;
    width: 100%;
}

#div_load_parameters_button .cont_table th {
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #607d8b;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
}

#div_load_parameters_button .cont_table th a {
    color: inherit;
    text-decoration: none;
}

#div_load_parameters_button .cont_table th a span {
    color: inherit;
    font-weight: 700;
}

#div_load_parameters_button .cont_table th:hover {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

#div_load_parameters_button .cont_table th a:hover span {
    color: #2271b1;
}

/* Save button */
#img_save {
    height: 34px;
    padding: 0 18px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-family: 'Nunito', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.15s;
}

#img_save:hover {
    background: #0a4b78;
}

/* ==========================================================================
   MAIN CONTENT CARD
   ========================================================================== */

#div_content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    margin: 16px;
    padding: 24px !important;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.header_2 {
    font-size: 11px;
    font-weight: 700;
    color: #0a4b78;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Section header separator lines — override inline #607890 and #94c3f1 */
div[style*="#607890"] {
    border-color: #c3c4c7 !important;
}

div[style*="#94c3f1"] {
    border-color: #e0e0e0 !important;
}

/* ==========================================================================
   FORM FIELDS
   ========================================================================== */

input.regular_fld,
textarea.regular_fld {
    height: 34px;
    padding: 5px 10px;
    border: 1px solid #dcdcde;
    border-radius: 2px;
    font-size: 13px;
    font-family: 'Nunito', Arial, sans-serif;
    color: #3c434a;
    background: #fff;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

textarea.regular_fld {
    height: auto;
    min-height: 80px;
    padding: 8px 10px;
}

input.regular_fld:focus,
textarea.regular_fld:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Selects (ASP.NET DropDownList + plain select) */
select.regular_fld,
select.regular_ddl {
    height: 34px;
    padding: 5px 8px;
    border: 1px solid #dcdcde;
    border-radius: 2px;
    font-size: 13px;
    font-family: 'Nunito', Arial, sans-serif;
    color: #3c434a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

select.regular_fld:focus,
select.regular_ddl:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Checkbox inputs — keep native styling, just align */
input[type="checkbox"] {
    width: auto;
    height: auto;
    cursor: pointer;
    accent-color: #2271b1;
}

/* Readonly inputs */
input[readonly].regular_fld {
    background: #f6f6f7;
    color: #50575e;
}

/* ==========================================================================
   MANDATORY FIELD LABELS
   ========================================================================== */

.mandatory_field {
    border-bottom: 2px solid #d63638;
    font-weight: 600;
    color: #3c434a;
}

/* ==========================================================================
   TABLE LABELS (cont_table th = field label cells)
   ========================================================================== */

.cont_table th {
    color: #50575e;
    font-size: 13px;
    font-weight: 400;
    vertical-align: middle;
}

/* ==========================================================================
   METER CARD INNER TABS
   ========================================================================== */

.tab_unselected {
    border-top: 1px solid #dcdcde;
    border-left: 1px solid #dcdcde;
    border-right: 1px solid #dcdcde;
    border-bottom: 1px solid #dcdcde;
    background: #f6f6f7;
    color: #50575e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 3px 3px 0 0;
    transition: background 0.15s, color 0.15s;
}

.tab_unselected:hover {
    background: #f0f6fc;
    color: #2271b1;
    border-color: #2271b1;
    border-bottom-color: #dcdcde;
}

.tab_selected {
    border-top: 1px solid #dcdcde;
    border-left: 1px solid #dcdcde;
    border-right: 1px solid #dcdcde;
    border-bottom: 3px solid #2271b1;
    background: #fff;
    color: #2271b1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 3px 3px 0 0;
}

/* Meter card tab content border */
div[style*="border-bottom: #c0c0c0 1px solid; border-left: #c0c0c0 1px solid; border-right: #c0c0c0 1px solid"] {
    border-color: #dcdcde !important;
}

/* ==========================================================================
   LINKS
   ========================================================================== */

a {
    color: #2271b1;
}

a:hover {
    color: #0a4b78;
    text-decoration: underline;
}

/* Breadcrumb links in meter card ("Meters list /") */
a[style*="color: Blue"] {
    color: #2271b1 !important;
}

/* Add new / Remove selected text links */
.cont_table th > a {
    color: #2271b1;
    font-weight: 600;
}

.cont_table th > a:hover {
    color: #0a4b78;
    text-decoration: underline;
}

/* ==========================================================================
   SECTION CARDS — User codes, Concentrators (have bold top border)
   ========================================================================== */

div[style*="border-top: #607890 2px solid"] {
    border-color: #2271b1 !important;
    border-width: 2px !important;
}

/* ==========================================================================
   MISC
   ========================================================================== */

/* Weather station click-target box */
div[onclick="setWeatherStation()"] {
    border: 1px solid #dcdcde !important;
    border-radius: 3px;
    transition: border-color 0.15s, background 0.15s;
}

/* spnMessage (save confirmation text) */
#spnMessage {
    font-size: 12px;
    color: #2271b1;
    font-weight: 600;
    margin-left: 10px;
}

/* Import section button */
#div_import_meter input[type="button"] {
    height: 34px;
    padding: 0 18px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-family: 'Nunito', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: background 0.15s;
}

#div_import_meter input[type="button"]:hover {
    background: #0a4b78;
}
