:root {
    --primary: #115785;
    --primary-dark: #0d456a;
    --surface: #ffffff;
    --background: #f4f7fa;
    --text: #1f2933;
    --muted: #6b7280;
    --border: #dbe2ea;
    --success: #16865a;
    --danger: #c23b45;
    --shadow: 0 18px 45px rgba(17, 87, 133, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--background);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------------------------------------------------------
   Landing Header
--------------------------------------------------------- */

.landing-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.landing-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-brand__logo {
    display: block;
    width: auto;
    height: 58px;
}

.landing-brand__product {
    padding-left: 14px;
    color: var(--primary);
    border-left: 1px solid var(--border);
    font-size: 15px;
    font-weight: 700;
}

.landing-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

    .landing-signin:hover {
        background: var(--primary-dark);
    }

/* ---------------------------------------------------------
   Landing Hero
--------------------------------------------------------- */

.landing-main {
    min-height: calc(100vh - 126px);
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.85fr);
    align-items: center;
    gap: 70px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 72px 24px;
}

.landing-hero__content {
    max-width: 650px;
}

.landing-eyebrow {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin: 0 0 24px;
    color: var(--primary);
    font-size: clamp(46px, 5vw, 70px);
    line-height: 1;
    letter-spacing: -0.045em;
}

    .landing-hero h1 span {
        color: var(--text);
    }

.landing-hero__content > p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.65;
}

.landing-primary-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    margin-top: 30px;
    padding: 0 24px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 9px;
    box-shadow: var(--shadow);
    font-size: 15px;
    font-weight: 700;
}

    .landing-primary-button:hover {
        background: var(--primary-dark);
    }

/* ---------------------------------------------------------
   Landing Visual
--------------------------------------------------------- */

.landing-hero__visual {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.landing-status-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.landing-status-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: var(--success);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 800;
}

.landing-status-card__label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-status-card strong {
    display: block;
    color: var(--primary);
    font-size: 18px;
}

.landing-status-card p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.landing-feature-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

    .landing-feature-card span {
        display: block;
        margin-bottom: 12px;
        color: var(--primary);
        font-size: 11px;
        font-weight: 800;
    }

    .landing-feature-card strong {
        display: block;
        margin-bottom: 6px;
        color: var(--text);
        font-size: 15px;
    }

    .landing-feature-card p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.5;
    }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */

.landing-footer {
    min-height: 50px;
    padding: 15px 24px;
    color: var(--muted);
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 900px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 50px;
    }

    .landing-hero__content {
        max-width: none;
    }
}

@media (max-width: 650px) {
    .landing-header__inner {
        min-height: 68px;
        padding: 0 16px;
    }

    .landing-brand__logo {
        height: 36px;
    }

    .landing-brand__product {
        font-size: 13px;
    }

    .landing-hero {
        padding: 38px 16px;
    }

        .landing-hero h1 {
            font-size: 42px;
        }

    .landing-hero__content > p {
        font-size: 16px;
    }

    .landing-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   Application Header
--------------------------------------------------------- */

.app-page {
    min-height: 100vh;
    background: var(--background);
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .app-brand img {
        width: auto;
        height: 44px;
    }

    .app-brand span {
        padding-left: 14px;
        color: var(--primary);
        border-left: 1px solid var(--border);
        font-size: 15px;
        font-weight: 700;
    }

.app-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-user__avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: var(--primary);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

.app-user__details strong,
.app-user__details span {
    display: block;
}

.app-user__details strong {
    color: var(--text);
    font-size: 13px;
}

.app-user__details span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}


/* ---------------------------------------------------------
   Application Shell
--------------------------------------------------------- */

.app-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: calc(100vh - 72px);
}

.app-sidebar {
    padding: 22px 14px;
    background: var(--primary);
}

    .app-sidebar nav {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 14px;
    color: rgba(255,255,255,.78);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

    .app-nav-link:hover {
        color: #fff;
        background: rgba(255,255,255,.08);
    }

.app-nav-link--active {
    color: var(--primary);
    background: #fff;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Dashboard
--------------------------------------------------------- */

.dashboard-main {
    min-width: 0;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 34px;
}

.dashboard-heading {
    margin-bottom: 26px;
}

.dashboard-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-heading h1 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 34px;
    letter-spacing: -.03em;
}

.dashboard-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


/* ---------------------------------------------------------
   Dashboard Search
--------------------------------------------------------- */

.dashboard-search {
    padding: 24px;
    margin-bottom: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

    .dashboard-search > label {
        display: block;
        margin-bottom: 9px;
        color: var(--text);
        font-size: 13px;
        font-weight: 700;
    }

.dashboard-search__box {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

    .dashboard-search__box > span {
        color: var(--muted);
    }

    .dashboard-search__box input {
        width: 100%;
        min-height: 40px;
        padding: 0;
        color: var(--text);
        background: transparent;
        border: 0;
        outline: 0;
        font-size: 14px;
    }

    .dashboard-search__box button {
        min-height: 40px;
        padding: 0 20px;
        color: #fff;
        background: var(--primary);
        border: 0;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 700;
    }


/* ---------------------------------------------------------
   Dashboard Actions
--------------------------------------------------------- */

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-action-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .dashboard-action-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.dashboard-action-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: #fff;
    background: var(--primary);
    border-radius: 9px;
    font-size: 18px;
    font-weight: 700;
}

.dashboard-action-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 14px;
}

.dashboard-action-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Recently Viewed
--------------------------------------------------------- */

.dashboard-recent {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.dashboard-section-heading {
    margin-bottom: 14px;
}

    .dashboard-section-heading h2 {
        margin: 0 0 4px;
        color: var(--text);
        font-size: 18px;
    }

    .dashboard-section-heading p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
    }

.recent-hose-list {
    border-top: 1px solid var(--border);
}

.recent-hose {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--border);
}

    .recent-hose strong,
    .recent-hose span {
        display: block;
    }

    .recent-hose strong {
        color: var(--primary);
        font-size: 13px;
    }

    .recent-hose span {
        margin-top: 3px;
        color: var(--muted);
        font-size: 11px;
    }

.recent-hose__status {
    padding: 6px 10px;
    color: var(--primary);
    background: #edf5f9;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Dashboard Responsive
--------------------------------------------------------- */

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        padding: 10px;
    }

        .app-sidebar nav {
            flex-direction: row;
            overflow-x: auto;
        }

    .app-nav-link {
        flex: 0 0 auto;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .app-header {
        padding: 0 14px;
    }

    .app-brand span,
    .app-user__details {
        display: none;
    }

    .dashboard-main {
        padding: 22px 14px;
    }

    .dashboard-heading h1 {
        font-size: 28px;
    }

    .dashboard-search__box {
        grid-template-columns: 22px minmax(0, 1fr);
    }

        .dashboard-search__box button {
            grid-column: 1 / -1;
            width: 100%;
        }
}

/* ---------------------------------------------------------
   Hose Overview
--------------------------------------------------------- */

.hose-main {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px;
}

.hose-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.hose-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hose-header h1 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 36px;
    letter-spacing: -.03em;
}

.hose-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.hose-status {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hose-status--good {
    color: #0f6b49;
    background: #e7f5ef;
    border: 1px solid #b9dfcf;
}


/* ---------------------------------------------------------
   Hose Summary
--------------------------------------------------------- */

.hose-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.hose-summary-card {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

    .hose-summary-card span {
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
    }

    .hose-summary-card strong {
        color: var(--text);
        font-size: 14px;
    }

.hose-summary-card--attention {
    border-left: 4px solid var(--primary);
}


/* ---------------------------------------------------------
   Hose Actions
--------------------------------------------------------- */

.hose-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.hose-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    color: var(--primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

    .hose-action:hover {
        background: #eef4f7;
    }

.hose-action--primary {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

    .hose-action--primary:hover {
        background: var(--primary-dark);
    }


/* ---------------------------------------------------------
   Hose Panels
--------------------------------------------------------- */

.hose-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hose-panel {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.hose-panel__heading {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

    .hose-panel__heading h2 {
        margin: 0 0 4px;
        color: var(--text);
        font-size: 18px;
    }

    .hose-panel__heading p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
    }


/* ---------------------------------------------------------
   Current Condition
--------------------------------------------------------- */

.condition-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

    .condition-row:last-child {
        border-bottom: 0;
    }

    .condition-row span,
    .condition-row strong {
        display: block;
    }

    .condition-row span {
        margin-bottom: 3px;
        color: var(--muted);
        font-size: 11px;
    }

    .condition-row strong {
        color: var(--text);
        font-size: 13px;
    }

.condition-badge {
    padding: 5px 9px;
    color: var(--muted);
    background: #f1f3f5;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.condition-badge--good {
    color: #0f6b49;
    background: #e7f5ef;
}


/* ---------------------------------------------------------
   Recent Activity
--------------------------------------------------------- */

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

    .activity-item:last-child {
        border-bottom: 0;
    }

.activity-item__dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.activity-item strong,
.activity-item div span {
    display: block;
}

.activity-item strong {
    margin-bottom: 3px;
    color: var(--text);
    font-size: 13px;
}

.activity-item div span {
    color: var(--muted);
    font-size: 11px;
}


/* ---------------------------------------------------------
   Hose Overview Responsive
--------------------------------------------------------- */

@media (max-width: 900px) {
    .hose-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hose-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hose-main {
        padding: 22px 14px;
    }

    .hose-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hose-summary-grid {
        grid-template-columns: 1fr;
    }

    .hose-actions {
        flex-direction: column;
    }

    .hose-action {
        width: 100%;
    }
}

/* ---------------------------------------------------------
   Inspection Page
--------------------------------------------------------- */

.inspection-main {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 34px;
}

.inspection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.inspection-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.inspection-header h1 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 34px;
    letter-spacing: -.03em;
}

.inspection-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


/* ---------------------------------------------------------
   Inspection Cards
--------------------------------------------------------- */

.inspection-card {
    padding: 22px;
    margin-bottom: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

    .inspection-card h2 {
        margin: 0 0 18px;
        color: var(--text);
        font-size: 17px;
    }

    .inspection-card > p {
        margin: 0 0 14px;
        color: var(--muted);
        font-size: 12px;
    }


/* ---------------------------------------------------------
   Inspection Fields
--------------------------------------------------------- */

.inspection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.inspection-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.inspection-field input,
.inspection-card textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
}

.inspection-card textarea {
    min-height: 110px;
    resize: vertical;
}

    .inspection-field input:focus,
    .inspection-card textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(17, 87, 133, 0.12);
    }


/* ---------------------------------------------------------
   Overall Condition
--------------------------------------------------------- */

.condition-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

    .condition-buttons button {
        min-height: 44px;
        padding: 0 14px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 9px;
        cursor: pointer;
        color: var(--text);
        font-weight: 700;
    }

        .condition-buttons button:hover {
            border-color: var(--primary);
            background: #f5f9fb;
        }


/* ---------------------------------------------------------
   Observed Conditions
--------------------------------------------------------- */

.condition-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

    .condition-list label {
        display: flex;
        align-items: center;
        gap: 9px;
        min-height: 42px;
        padding: 0 12px;
        background: #f8fafc;
        border: 1px solid var(--border);
        border-radius: 9px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 600;
    }

    .condition-list input {
        width: 16px;
        height: 16px;
        accent-color: var(--primary);
    }


/* ---------------------------------------------------------
   Inspection Footer
--------------------------------------------------------- */

.inspection-footer {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 20px;
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 700px) {

    .inspection-main {
        padding: 22px 14px;
    }

    .inspection-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .inspection-grid,
    .condition-buttons,
    .condition-list {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   Inspection Progress
--------------------------------------------------------- */

.inspection-progress {
    margin-bottom: 20px;
}

.inspection-progress__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
}

    .inspection-progress__top strong {
        color: var(--primary);
        font-size: 11px;
    }

.inspection-progress__track {
    height: 7px;
    overflow: hidden;
    background: #dce3e9;
    border-radius: 999px;
}

.inspection-progress__fill {
    width: 35%;
    height: 100%;
    background: var(--primary);
    border-radius: inherit;
}

.inspection-description {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    max-width: 600px;
}


/* ---------------------------------------------------------
   Inspection Condition Buttons
--------------------------------------------------------- */

.condition-button {
    min-height: 46px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
    transition: all .15s ease;
}

.condition-button__check {
    display: none;
    margin-right: 6px;
}


/* Light colors while NOT selected */

.condition-buttons .condition-button--good {
    color: #0d6a47;
    background: #f2faf6;
    border-color: #b9dfcf;
}

.condition-buttons .condition-button--monitor {
    color: #8a6600;
    background: #fffaf0;
    border-color: #eadb9e;
}

.condition-buttons .condition-button--danger {
    color: #a12d38;
    background: #fff5f6;
    border-color: #efc4c8;
}


/* Selected states */

.condition-buttons .condition-button--good.is-selected {
    color: #fff;
    background: #16865a;
    border-color: #16865a;
}

.condition-buttons .condition-button--monitor.is-selected {
    color: #fff;
    background: #b8860b;
    border-color: #b8860b;
}

.condition-buttons .condition-button--danger.is-selected {
    color: #fff;
    background: #c23b45;
    border-color: #c23b45;
}

.condition-button.is-selected .condition-button__check {
    display: inline;
}


/* Fade the other choices after one is selected */

.condition-buttons:has(.is-selected)
.condition-button:not(.is-selected) {
    color: var(--muted);
    background: #f5f6f8;
    border-color: var(--border);
}


/* ---------------------------------------------------------
   Inspection Photos
--------------------------------------------------------- */

.inspection-photo-drop {
    padding: 28px;
    text-align: center;
    background: #f8fafc;
    border: 2px dashed var(--border);
    border-radius: 12px;
}

.inspection-photo-drop__icon {
    margin-bottom: 8px;
    font-size: 28px;
}

.inspection-photo-drop strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 14px;
}

.inspection-photo-drop p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
}

/* ---------------------------------------------------------
   History Page
--------------------------------------------------------- */

.history-main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.history-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.history-header h1 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 34px;
    letter-spacing: -.03em;
}

.history-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


/* ---------------------------------------------------------
   History Summary
--------------------------------------------------------- */

.history-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

    .history-summary > div {
        padding: 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    .history-summary span,
    .history-summary strong {
        display: block;
    }

    .history-summary span {
        margin-bottom: 5px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
    }

    .history-summary strong {
        color: var(--text);
        font-size: 13px;
    }


/* ---------------------------------------------------------
   History Panel
--------------------------------------------------------- */

.history-panel {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.history-panel__heading {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

    .history-panel__heading h2 {
        margin: 0 0 4px;
        color: var(--text);
        font-size: 18px;
    }

    .history-panel__heading p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
    }


/* ---------------------------------------------------------
   Timeline
--------------------------------------------------------- */

.history-timeline {
    position: relative;
}

    .history-timeline::before {
        position: absolute;
        top: 18px;
        bottom: 18px;
        left: 22px;
        width: 2px;
        content: "";
        background: rgba(17,87,133,.35);
    }

.history-item {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 22px;
}

    .history-item:last-child {
        padding-bottom: 0;
    }

.history-item__marker {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--primary);
    background: #eef4f7;
    border: 2px solid var(--surface);
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
}

.history-item__marker--good {
    color: #0f6b49;
    background: #e7f5ef;
}

.history-item__marker--warning {
    color: #8a6600;
    background: #fff6d8;
}

.history-item__content {
    padding: 16px 18px;
    background: #fafbfd;
    border: 1px solid var(--border);
    border-radius: 11px;
    transition: all .18s ease;
    cursor: pointer;
    border-left: 4px solid #d8e6ef;
}

    .history-item__content:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.06);
        background: #ffffff;
}

.history-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.history-item__top strong,
.history-item__top div span {
    display: block;
}

.history-item__top strong {
    margin-bottom: 3px;
    color: var(--text);
    font-size: 13px;
}

.history-item__top div span {
    color: var(--muted);
    font-size: 10px;
}

.history-item__content > p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.history-item__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 10px;
}

.history-item__details span {
    color: var(--muted);
    font-size: 10px;
}

.history-item__marker--good + .history-item__content {
    border-left-color: #22a06b;
}

.history-item__marker--warning + .history-item__content {
    border-left-color: #d4a000;
}

.history-item__marker--created {
    color: #ffffff;
    background: #D3D3D3;
}

.history-badge--created {
    color: #4b5563;
    background: #eef2f5;
}

.history-item__marker--created + .history-item__content {
    border-left-color: #D3D3D3;
}

.history-item__content:has( .history-badge:not(.history-badge--good) :not(.history-badge--warning) :not(.history-badge--created) ) {
    border-left-color: #2d7bd2;
}

.history-item__marker--good + .history-item__content {
    border-left-color: #22a06b;
}

.history-item__marker--warning + .history-item__content {
    border-left-color: #d4a000;
}



.history-item__content:has( .history-badge:not(.history-badge--good) :not(.history-badge--warning) :not(.history-badge--created) ) {
    border-left-color: #2d7bd2;
}




/* ---------------------------------------------------------
   History Badges
--------------------------------------------------------- */

.history-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    color: var(--primary);
    background: #edf5f9;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.history-badge--good {
    color: #0f6b49;
    background: #e7f5ef;
}

.history-badge--warning {
    color: #8a6600;
    background: #fff6d8;
}


/* ---------------------------------------------------------
   History Responsive
--------------------------------------------------------- */

@media (max-width: 800px) {
    .history-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .history-main {
        padding: 22px 14px;
    }

    .history-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .history-summary {
        grid-template-columns: 1fr;
    }

    .history-item__top {
        flex-direction: column;
        gap: 8px;
    }
}

/* ---------------------------------------------------------
   Documents Page
--------------------------------------------------------- */

.documents-main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px;
}

.documents-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.documents-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.documents-header h1 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 34px;
    letter-spacing: -.03em;
}

.documents-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.documents-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* ---------------------------------------------------------
   Document Summary
--------------------------------------------------------- */

.documents-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

    .documents-summary > div {
        padding: 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    .documents-summary span,
    .documents-summary strong {
        display: block;
    }

    .documents-summary span {
        margin-bottom: 5px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
    }

    .documents-summary strong {
        color: var(--text);
        font-size: 14px;
    }


/* ---------------------------------------------------------
   Search & Filters
--------------------------------------------------------- */

.documents-tools {
    padding: 16px;
    margin-bottom: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.documents-search {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
}

    .documents-search span {
        color: var(--muted);
    }

    .documents-search input {
        width: 100%;
        min-height: 38px;
        padding: 0;
        color: var(--text);
        background: transparent;
        border: 0;
        outline: 0;
        font-size: 13px;
    }

.documents-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.documents-filter {
    min-height: 32px;
    padding: 0 12px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

    .documents-filter:hover {
        color: var(--primary);
        border-color: #b7ccd9;
    }

.documents-filter--active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}


/* ---------------------------------------------------------
   Document Library
--------------------------------------------------------- */

.documents-panel {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.documents-panel__heading {
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

    .documents-panel__heading h2 {
        margin: 0 0 4px;
        color: var(--text);
        font-size: 18px;
    }

    .documents-panel__heading p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
    }


/* ---------------------------------------------------------
   Individual Documents
--------------------------------------------------------- */

.document-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 17px 4px;
    border-bottom: 1px solid var(--border);
}

    .document-item:last-child {
        border-bottom: 0;
    }

.document-item__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: #edf4f8;
    border-radius: 12px;
    font-size: 26px;
}

.document-item__content strong,
.document-item__content span {
    display: block;
}

.document-item__content strong {
    margin-bottom: 3px;
    color: var(--text);
    font-size: 13px;
}

.document-item__content span {
    color: var(--muted);
    font-size: 10px;
}

.document-item__content p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.document-item__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

    .document-item__actions button {
        min-height: 32px;
        padding: 0 11px;
        color: var(--primary);
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 7px;
        cursor: pointer;
        font-size: 10px;
        font-weight: 700;
    }

        .document-item__actions button:hover {
            background: #edf4f8;
            border-color: #bfd0dc;
        }


/* ---------------------------------------------------------
   Document Row Hover
--------------------------------------------------------- */

.document-item {
    transition: background .15s ease;
}

    .document-item:hover {
        background: #fafcfd;
    }


/* ---------------------------------------------------------
   Documents Responsive
--------------------------------------------------------- */

@media (max-width: 800px) {
    .documents-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .document-item {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .document-item__actions {
        grid-column: 2;
    }
}

@media (max-width: 600px) {
    .documents-main {
        padding: 22px 14px;
    }

    .documents-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .documents-header__actions {
        width: 100%;
    }

        .documents-header__actions .hose-action {
            flex: 1;
        }

    .documents-summary {
        grid-template-columns: 1fr 1fr;
    }

    .document-item {
        align-items: flex-start;
    }
}

/* ---------------------------------------------------------
   Add Hose Page
--------------------------------------------------------- */

.add-hose-main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px;
}

.add-hose-header {
    margin-bottom: 20px;
}

.add-hose-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.add-hose-header h1 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 34px;
    letter-spacing: -.03em;
}

.add-hose-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


/* ---------------------------------------------------------
   Add Hose Cards
--------------------------------------------------------- */

.add-hose-card {
    padding: 22px;
    margin-bottom: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.add-hose-card__heading {
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

    .add-hose-card__heading h2 {
        margin: 0 0 4px;
        color: var(--text);
        font-size: 17px;
    }

    .add-hose-card__heading p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
    }


/* ---------------------------------------------------------
   Add Hose Fields
--------------------------------------------------------- */

.add-hose-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.add-hose-field--wide {
    grid-column: 1 / -1;
}

.add-hose-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.add-hose-field input,
.add-hose-field select {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 13px;
}

    .add-hose-field input:focus,
    .add-hose-field select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(17, 87, 133, 0.12);
    }


/* ---------------------------------------------------------
   Add Hose Photo
--------------------------------------------------------- */

.add-hose-photo-drop {
    min-height: 220px;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8fafc;
    border: 2px dashed var(--border);
    border-radius: 12px;
}

.add-hose-photo-drop__icon {
    margin-bottom: 8px;
    font-size: 28px;
}

.add-hose-photo-drop strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 14px;
}

.add-hose-photo-drop p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
}


/* ---------------------------------------------------------
   Add Hose Footer
--------------------------------------------------------- */

.add-hose-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-bottom: 24px;
}


/* ---------------------------------------------------------
   Add Hose Responsive
--------------------------------------------------------- */

@media (max-width: 700px) {
    .add-hose-main {
        padding: 22px 14px;
    }

    .add-hose-grid {
        grid-template-columns: 1fr;
    }

    .add-hose-field--wide {
        grid-column: auto;
    }

    .add-hose-footer {
        flex-direction: column-reverse;
    }

        .add-hose-footer .hose-action {
            width: 100%;
        }
}

.add-hose-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.add-hose-step {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

    .add-hose-step span {
        display: grid;
        place-items: center;
        width: 24px;
        height: 24px;
        color: var(--muted);
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 50%;
        font-size: 10px;
    }

.add-hose-step--active {
    color: var(--primary);
}

    .add-hose-step--active span {
        color: #fff;
        background: var(--primary);
        border-color: var(--primary);
    }

.add-hose-photo-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

/* ---------------------------------------------------------
   Registration Summary
--------------------------------------------------------- */

.add-hose-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    margin-bottom: 20px;
    background: #f5fbf7;
    border: 1px solid #cfe8d8;
    border-radius: 12px;
}

.add-hose-summary__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: #22a06b;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}

.add-hose-summary__content strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 14px;
}

.add-hose-summary__content p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}