
/* ==========================================
   KERITH ESTATES PORTAL
   MAIN STYLESHEET
   ========================================== */


/* ------------------------------------------
   COLOURS
   ------------------------------------------ */

:root {
    --charcoal: #343d40;
    --blue: #0789be;
    --green: #83be08;
    --bg: #ffffff;
    --border: #d8e2e7;
    --text: #344046;
}


/* ------------------------------------------
   GENERAL
   ------------------------------------------ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
}


/* ==========================================
   LOGIN PAGE
   ========================================== */

.login-page {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 28px;
}

.login-card {
    width: min(100%, 420px);
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 9px 30px rgba(30, 60, 80, 0.08);
    padding: 40px 38px;
    text-align: center;
    border-top: 5px solid var(--blue);
}

.kerith-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 19px;
}

.login-card h1 {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 8px;
}

.subtitle {
    color: #718087;
    margin: 0 0 30px;
    font-size: 14px;
    line-height: 1.6;
}

.login-card form {
    text-align: left;
}

.login-card label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin: 17px 0 8px;
}

.login-card input {
    width: 100%;
    padding: 13px;
    border: 1px solid #cbd5da;
    border-radius: 3px;
    font: inherit;
    font-size: 15px;
}

.login-card input:focus {
    outline: 2px solid #88cde9;
    outline-offset: 1px;
}

.primary-button {
    width: 100%;
    background: var(--green);
    color: white;
    border: 0;
    border-radius: 3px;
    font-size: 16px;
    font-weight: bold;
    padding: 13px;
    cursor: pointer;
    margin-top: 25px;
}

.primary-button:hover {
    background: #71a809;
}

.forgot-link {
    display: inline-block;
    margin-top: 23px;
    color: #087fac;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.alert {
    background: #fff0f0;
    border: 1px solid #e8b9b9;
    color: #9d2828;
    text-align: left;
    padding: 12px;
    border-radius: 3px;
    font-size: 13px;
}

.login-footer {
    margin-top: 22px;
    color: #87959a;
    font-size: 12px;
}


/* ==========================================
   APPLICATION LAYOUT
   ========================================== */

.app-page {
    background: var(--bg);
}


/* ------------------------------------------
   SIDEBAR
   ------------------------------------------ */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    background: var(--charcoal);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar nav {
    padding: 20px 12px;
}


/* ------------------------------------------
   SIDEBAR NAVIGATION
   ------------------------------------------ */

.nav-link {
    display: block;
    color: #e5ebed;
    text-decoration: none;
    padding: 13px 14px;
    margin: 2px 0;
    border-radius: 2px;
}

a.nav-link:hover {
    background: #48565b;
    color: #fff;
}

.nav-link.active {
    background: #687f87;
    color: #fff;
}

.nav-link.disabled {
    opacity: 0.6;
    cursor: default;
}


/* ------------------------------------------
   SIDEBAR FOOTER
   ------------------------------------------ */

.sidebar-bottom {
    margin-top: auto;
    padding: 16px 12px;
}

.sidebar-bottom span {
    display: block;
    padding: 12px 14px;
    color: #b9c5c9;
    font-size: 13px;
}


/* ==========================================
   MAIN CONTENT AREA
   ========================================== */

.app-main {
    margin-left: 260px;
    min-height: 100vh;
}


/* ------------------------------------------
   TOP BLUE HEADER
   ------------------------------------------ */

.topbar {
    background: var(--blue);
    color: #fff;
    height: 82px;
    padding: 0 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Main page title */

.topbar > :first-child {
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

/* Portal name on the right */

.topbar > :last-child:not(:first-child) {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}


/* ==========================================
   PAGE CONTENT
   ========================================== */

.content {
    padding: 32px;
}


/* ------------------------------------------
   CONTENT PANELS
   ------------------------------------------ */

.panel {
    background: white;
    border: 1px solid var(--border);
    max-width: 850px;
}

.panel-heading {
    background: #e5f0f5;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid var(--border);
}

.panel-body {
    padding: 24px;
}

.panel-body h2 {
    margin-top: 0;
}


/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 700px) {

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .sidebar nav {
        padding: 8px;
    }

    .sidebar-bottom {
        padding: 8px;
    }

    .app-main {
        margin-left: 0;
    }

    .topbar {
        padding: 20px;
        height: auto;
        min-height: 82px;
        gap: 12px;
    }

    .topbar > :first-child {
        font-size: 32px;
    }

    .topbar > :last-child:not(:first-child) {
        font-size: 13px;
    }

    .content {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
    }

}


/* ==========================================
   USER MANAGEMENT
   ========================================== */

.users-panel {
    max-width: none;
    width: 100%;
}

.users-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.section-description {
    margin: 0 0 22px;
    color: #718087;
    font-size: 14px;
}


/* ------------------------------------------
   BUTTONS
   ------------------------------------------ */

.button {
    display: inline-block;
    padding: 11px 18px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.button-green {
    background: var(--green);
    color: #fff;
}

.button-green:hover {
    background: #71a809;
}

.button-small {
    padding: 7px 13px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
}

.button-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}


/* ------------------------------------------
   USER TABLE
   ------------------------------------------ */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #e5f0f5;
    color: #344046;
    text-align: left;
    padding: 14px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #f7fafb;
}

.empty-table {
    text-align: center;
    color: #718087;
    padding: 30px !important;
}

.muted-text {
    color: #87959a;
    font-style: italic;
}


/* ------------------------------------------
   STATUS BADGES
   ------------------------------------------ */

.status-badge {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #e6f4d9;
    color: #467d13;
}

.status-inactive {
    background: #fce8e8;
    color: #a32929;
}

.permission-label {
    font-weight: 600;
    color: #0789be;
}


/* ------------------------------------------
   MOBILE
   ------------------------------------------ */

@media (max-width: 700px) {

    .users-panel-heading {
        flex-wrap: wrap;
    }

    .data-table {
        min-width: 700px;
    }

}


/* ==========================================
   ADD / EDIT USER FORMS
   ========================================== */

.user-form-panel {
    max-width: 950px;
}

.user-form-panel h3 {
    margin: 0 0 18px;
    font-size: 18px;
    color: #344046;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5da;
    border-radius: 3px;
    font: inherit;
    font-size: 14px;
}

.form-group input:focus {
    outline: 2px solid #88cde9;
    outline-offset: 1px;
}

.form-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 30px 0;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0;
}

.checkbox-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--blue);
    cursor: pointer;
    flex-shrink: 0;
}

.all-sites-option {
    margin-bottom: 18px;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.button-cancel {
    background: #e5eaed;
    color: #344046;
}

.button-cancel:hover {
    background: #d3dce0;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        flex-wrap: wrap;
    }
}


/* ==========================================
   SITES, BUILDINGS & LOCATIONS
   ========================================== */

.structure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.structure-panel {
    background: #fff;
    border: 1px solid var(--border);
    min-height: 360px;
}

.structure-heading {
    background: #e5f0f5;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.structure-heading h2 {
    margin: 0;
    font-size: 18px;
}

.structure-heading .button {
    padding: 9px 12px;
    font-size: 12px;
}

.structure-heading button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.structure-list {
    padding: 12px;
}

.structure-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #e0e8eb;
    border-radius: 3px;
    margin-bottom: 8px;
    background: #fff;
}

.structure-item.selected {
    background: #e5f0f5;
    border-color: #0789be;
}

.structure-select {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    text-align: left;
    padding: 14px 12px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    color: #344046;
}

.structure-edit {
    background: transparent;
    color: #0789be;
    border: 0;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.structure-edit:hover {
    text-decoration: underline;
}

.structure-empty {
    color: #87959a;
    font-size: 14px;
    padding: 15px 5px;
}

.inactive-label {
    color: #a32929;
    font-size: 12px;
}

.structure-success {
    background: #e6f4d9;
    color: #467d13;
    border: 1px solid #c4dfa8;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 3px;
}


/* ------------------------------------------
   POP-UP FORM
   ------------------------------------------ */

.structure-modal {
    border: 0;
    border-radius: 6px;
    padding: 0;
    width: min(94vw, 480px);
    max-height: 90vh;
    box-shadow: 0 15px 50px rgba(0,0,0,.22);
    color: #344046;
}

.structure-modal::backdrop {
    background: rgba(20, 30, 35, .55);
}

.structure-modal form {
    margin: 0;
}

.structure-modal-heading {
    background: #e5f0f5;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.structure-modal-heading h2 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #52646d;
}

.structure-modal-body {
    padding: 25px;
}

.structure-modal-body select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5da;
    border-radius: 3px;
    font: inherit;
}

.structure-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 25px;
    border-top: 1px solid var(--border);
}

@media (max-width: 1100px) {
    .structure-grid {
        grid-template-columns: 1fr;
    }

    .structure-panel {
        min-height: 150px;
    }
}


/* ==========================================
   DELETE BUTTON AND CONFIRMATION
   ========================================== */

.structure-delete-button {
    background: #c0392b;
    color: #ffffff;
    border: 1px solid #c0392b;
    border-radius: 3px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.structure-delete-button:hover {
    background: #a93226;
    border-color: #a93226;
}

.structure-delete-button[hidden] {
    display: none;
}

#delete-record-button {
    margin-right: auto;
}

.structure-delete-warning {
    color: #a93226;
    font-weight: 600;
    margin-top: 15px;
}

/* Contractors */
.contractor-check-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:12px 0 24px; }
.contractor-check-grid label { display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #dfe6ec;border-radius:7px; }
.contractor-engineer-row { display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;margin:10px 0;align-items:center; }
.contractor-engineer-row input { min-width:0;width:100%;padding:10px;border:1px solid #d5dee5;border-radius:6px; }
@media(max-width:800px){.contractor-engineer-row{grid-template-columns:1fr 1fr}.contractor-engineer-row input:first-child{grid-column:1/-1}}

/* Contractor pages: use the full available content width. */
.contractor-page { min-width: 0; }
.contractor-page > .panel { width: 100%; max-width: none; min-width: 0; box-sizing: border-box; }
.contractor-page .panel-body { min-width: 0; }
.contractor-page .table-responsive { max-width: 100%; overflow-x: auto; }
.contractor-page .form-grid > *, .contractor-page .contractor-check-grid > * { min-width: 0; }
@media (max-width: 700px) { .contractor-page { padding: 16px; } }

/* Contractor directory: align filter dropdown heights with search field. */
.contractor-page form.form-grid .form-group input,
.contractor-page form.form-grid .form-group select {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5da;
    border-radius: 6px;
    background-color: #fff;
    font: inherit;
    font-size: 14px;
}

/* Consistent button appearance for links used as actions/navigation */
a.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; vertical-align: middle; }
a.button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.table-responsive td a.button + a.button { margin-left: 6px; }

/* Contractor and job page navigation consistency */
a.button-blue { background: var(--blue); color: #fff; }
a.button-blue:hover { filter: brightness(0.9); color: #fff; }
.contractor-header-button { min-height: 44px; box-sizing: border-box; }
.contractor-view-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.contractor-view-actions .button { min-height: 44px; box-sizing: border-box; }

/* Consistent button heights across portal (matching compact View/Edit actions). */
.button, a.button, button.button, input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 13px;
    font-size: 13px;
    line-height: 20px;
    box-sizing: border-box;
    vertical-align: middle;
}
.button-small { min-height: 32px; padding: 6px 13px; }
.contractor-header-button, .contractor-view-actions .button { min-height: 32px; }
.contractor-header-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.email-text-link { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.email-text-link:hover { text-decoration: none; }


/* ============================================================
   Unified card appearance — matched to jobs.php
   Presentation-only: no changes to markup, forms or behaviour.
   ============================================================ */
:root {
    --kerith-card-border: #dce5e9;
    --kerith-card-heading: #e5f0f5;
}
.panel,
.structure-panel,
.report-card,
.job-panel,
.contractor-card {
    background: #fff;
    border: 1px solid var(--kerith-card-border);
    border-radius: 5px;
    box-sizing: border-box;
}
.panel,
.structure-panel,
.report-card {
    overflow: hidden;
}
.panel-heading,
.structure-heading,
.report-card-heading {
    background: var(--kerith-card-heading);
    border-bottom: 1px solid var(--kerith-card-border);
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}
.structure-heading h2 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}
.panel-body,
.report-card-body {
    padding: 20px;
}
.job-panel > h2,
.contractor-card > h2 {
    background: var(--kerith-card-heading) !important;
    color: inherit !important;
    border-bottom: 1px solid var(--kerith-card-border) !important;
    padding: 16px 20px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

/* Card surfaces use the former page background; page stays white. */
:root { --kerith-card-surface: #f8fafb; }
.login-card,
.panel, .structure-panel, .report-card, .job-panel, .contractor-card,
.jobs-panel, .jobs-stat, .dashboard-outstanding-card,
.card, .filter-card, .form-card, .stat-card, .summary-card {
    background-color: var(--kerith-card-surface) !important;
}


/* Keep all data tables white against the light-grey card surfaces. */
.table-responsive, .data-table, .data-table tbody,
.data-table tbody tr, .data-table tbody td,
table:not(.layout-table) tbody tr, table:not(.layout-table) tbody td {
    background-color: #ffffff;
}
/* Subtle grey hover across the entire table row, including its cells. */
.data-table tbody tr:hover, .data-table tbody tr:hover > td,
table:not(.layout-table) tbody tr:hover, table:not(.layout-table) tbody tr:hover > td {
    background-color: #f1f3f5;
}

/* Compact card headers only; leave card content and body padding unchanged. */
.panel-heading,
.structure-heading,
.report-card-heading,
.job-panel > h2,
.contractor-card > h2,
.contractor-collapsible-card > summary,
.jobs-filter-heading,
.jobs-list-heading {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}


/* Asset and scheduled maintenance filter headings use an inner button.
   Compact its vertical padding as well as the outer heading. */
.asset-filter-toggle,
.scheduled-filter-toggle {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Keep the Asset Register and Scheduled Maintenance filter bars as compact
   as the other card headings, including their nested Show/Hide labels. */
.asset-filter-toggle, .scheduled-filter-toggle {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
.asset-filter-action, .scheduled-filter-action {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

/* Restore full-size Show/Hide buttons while keeping the two filter bars compact. */
.asset-filter-toggle, .scheduled-filter-toggle {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.asset-filter-action, .scheduled-filter-action {
    padding: 7px 12px !important;
    min-height: 32px;
    box-sizing: border-box;
}

/* Unified action buttons: asset_categories.php reference palette and sizing. */
:root{--action-blue:#0789be;--action-green:#83be08;--action-red:#c62828;--action-grey:#e5eaed;--action-brown:#94632d}
.button,a.button,button.button,input.button,.structure-delete-button,.primary-button{border-radius:3px!important;box-sizing:border-box;min-height:32px;line-height:20px;font-size:13px;font-weight:600}
.button-blue,a.button-blue,button.button-blue,.primary-button{background-color:var(--action-blue)!important;color:white!important}
.button-green,a.button-green,button.button-green{background-color:var(--action-green)!important;color:white!important}
.button-cancel,.job-cancel-light,.cancel-category{background-color:var(--action-grey)!important;color:#344046!important}
.structure-delete-button,.delete-category,.it-delete,.it-danger,.asset-delete-button,.asset-discard-button,.quote-delete,.sm-delete-button,.sm-unsaved-discard,.user-unsaved-leave,.unsaved-exit-leave,button.button[style*="#b42318"]{background-color:var(--action-red)!important;border-color:var(--action-red)!important;color:white!important}
.archive-category,.it-archive,.asset-archive-button,.sm-archive-button,.sm-archive-confirm,button.button[style*="#9a650a"]{background-color:var(--action-brown)!important;border-color:var(--action-brown)!important;color:white!important}
.it-dialog-actions .button{min-height:36px}


/* Contractor directory filter header — shared stylesheet, no page-local CSS. */
.contractor-filter-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.contractor-filter-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 110px;
    white-space: nowrap;
    box-sizing: border-box;
    background: var(--action-blue);
    color: #fff;
    border-radius: 3px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    padding: 7px 12px;
    min-height: 32px;
}
#contractor-filter-body[hidden] { display: none !important; }

/* Separate the Contractors filter card from the directory results card. */
.contractor-page > .panel + .panel { margin-top: 24px; }

/* Match filter action button corners to standard portal buttons. */
.asset-filter-action,
.scheduled-filter-action,
.jobs-filter-toggle {
    border-radius: 3px !important;
}

/* Same filter-button hover treatment as Asset Register. */
.contractor-filter-toggle:hover .contractor-filter-action { background: #066594; }
.contractor-filter-toggle:focus-visible { outline: 2px solid #087aa7; outline-offset: -3px; }


/* Shared Show/Hide Filters styling — all four directory filter cards.
   Override page-local styles so these controls render identically. */
#contractor-filter-heading,
.panel-heading:has(> .asset-filter-toggle),
.panel-heading:has(> .scheduled-filter-toggle) {
    padding: 0 !important;
}
.asset-filter-toggle,
.scheduled-filter-toggle,
.contractor-filter-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 0 20px !important;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.jobs-filter-heading { padding: 0 20px !important; min-height: 46px; }
.asset-filter-action,
.scheduled-filter-action,
.contractor-filter-action,
.jobs-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: 110px;
    min-height: 34px;
    padding: 7px 12px !important;
    background: #087cb8;
    color: #fff;
    border: 0;
    border-radius: 3px !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
}
.asset-filter-toggle:hover .asset-filter-action,
.scheduled-filter-toggle:hover .scheduled-filter-action,
.contractor-filter-toggle:hover .contractor-filter-action,
.jobs-filter-heading:hover .jobs-filter-toggle { background: #066594; }

/* Give all Show/Hide Filters buttons breathing room within their card headers. */
.asset-filter-toggle,
.scheduled-filter-toggle,
.contractor-filter-toggle {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
.jobs-filter-heading {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Contractor detail collapsible Show/Hide controls are compact buttons,
   not the full-width directory filter heading toggle. */
.contractor-collapsible-card > summary .contractor-filter-toggle {
    width: auto !important;
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    padding: 7px 12px !important;
    border-radius: 3px !important;
}
