:root {
    --bs-body-font-family: var(--font-body);
    --bs-body-font-size: .9375rem;
    --text-xs: .75rem;
    --text-sm: .875rem;
    --text-base: .9375rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.625rem;
    --text-3xl: 2rem;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    --ink: #15342c;
    --muted: #66766f;
    --line: #e4ebe6;
    --green: #16634d;
    --surface: #f6f8f5
}

html { font-size: 16px; }

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    color: var(--ink);
    background: var(--surface)
}

.app-shell {
    display: flex;
    min-height: 100vh
}

.app-sidebar {
    width: 248px;
    flex: none;
    background: #123b31;
    color: #fff;
    padding: 28px 18px
}

.app-main {
    flex: 1;
    min-width: 0
}

.brand {
    font-weight: 700;
    color: inherit;
    white-space: nowrap;
    font-size: 1rem
}

    .brand:hover {
        color: inherit
    }

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e9b958;
    color: #163d32;
    margin-right: 8px
}

.nav-caption {
    font-size: .67rem;
    letter-spacing: .13em;
    color: #9cb9ac;
    margin: 48px 12px 14px
}

.app-sidebar .nav-link {
    color: #dbe8df;
    border-radius: 8px;
    padding: 11px 13px
}

    .app-sidebar .nav-link.active, .app-sidebar .nav-link:hover {
        background: #2b5c4c;
        color: #fff
    }

.offcanvas .nav-caption {
    color: #687c70
}

.offcanvas .nav-link {
    color: var(--ink)
}

    .offcanvas .nav-link.active {
        background: #e2eee8;
        color: var(--green)
    }

.app-topbar {
    height: 76px;
    background: #fff;
    border-bottom: 1px solid var(--line)
}

.topbar-title {
    font-weight: 650
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink)
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e4efe8;
    color: var(--green)
}

.page-intro {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 38px;
    max-width: 850px
}

    .page-intro h1 {
        font-size: 2rem;
        margin: 8px 0
    }

.eyebrow {
    font-size: .7rem;
    letter-spacing: .16em;
    font-weight: 700;
    color: var(--green)
}

.form-label {
    font-weight: 600;
    font-size: .9rem
}

.form-control:focus {
    border-color: #3b856a;
    box-shadow: 0 0 0 .2rem #3b856a22
}

.btn-primary {
    background: var(--green);
    border-color: var(--green)
}

    .btn-primary:hover {
        background: #104a3b;
        border-color: #104a3b
    }

@media(max-width:575px) {
    .page-intro {
        padding: 28px
    }
}

/* Login */
.login-page {
    min-height: 100vh;
    margin: 0;
    background: #fdfefc
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0,55fr) minmax(460px,45fr);
    min-height: 100vh
}

.login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-color: #0a4437;
    background-image: linear-gradient(90deg,rgba(3,54,42,.91),rgba(4,68,53,.65)),url('../images/auth/grinew-solar-rooftop.webp');
    background-position: center;
    background-size: cover;
    color: #fff
}

.login-visual-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(38px,5.5vw,82px) clamp(38px,6.2vw,94px) clamp(32px,4.5vw,68px)
}

.login-logo {
    display: block;
    width: clamp(174px,16vw,232px);
    height: auto
}

.login-logo-desktop {
    padding: 10px 14px;
    border-radius: 9px;
    background: rgba(255,255,255,.94)
}

.login-brand-message {
    margin: auto 0;
    max-width: 560px;
    padding: 42px 0
}

.login-accent {
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 26px;
    border-radius: 4px;
    background: #9fd542
}

.login-brand-message h1 {
    margin: 0 0 20px;
    font-size: clamp(2.65rem,4.2vw,4rem);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.04
}

    .login-brand-message h1 span {
        color: #a3d746
    }

.login-brand-message > p {
    max-width: 480px;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(.94rem,1.25vw,1.1rem);
    line-height: 1.65
}

.login-capabilities {
    display: flex;
    margin-top: 34px
}

.login-capability {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 9px;
    max-width: 145px;
    padding: 0 22px;
    border-right: 1px solid rgba(255,255,255,.25);
    font-size: .9rem
}

    .login-capability:first-child {
        padding-left: 0
    }

    .login-capability:last-child {
        border: 0
    }

    .login-capability i {
        font-size: 1.35rem
    }

.login-tagline {
    display: flex;
    align-items: center;
    gap: 17px;
    color: rgba(255,255,255,.72);
    font-size: .68rem;
    font-weight: 650;
    letter-spacing: .22em;
    text-transform: uppercase
}

    .login-tagline span {
        width: 43px;
        height: 3px;
        border-radius: 3px;
        background: #9fd542
    }

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 56px clamp(36px,6vw,96px);
    background: #fdfefc
}

.login-form-wrap {
    width: 100%;
    max-width: 480px
}

.login-logo-mobile {
    display: none
}

.login-form-wrap > .eyebrow {
    margin-bottom: 14px;
    color: var(--grinew-primary);
    font-size: .72rem;
    letter-spacing: .23em;
    text-transform: uppercase
}

.login-form-wrap h2 {
    margin: 0;
    color: #102b24;
    font-size: clamp(2rem,2.5vw,2.35rem);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.15
}

.login-subtitle {
    margin: 12px 0 31px;
    color: #71807c;
    font-size: 1rem
}

.login-field {
    margin-bottom: 21px
}

    .login-field .form-label {
        margin-bottom: 8px;
        color: #1c2c28;
        font-size: .88rem
    }

.login-input-wrap {
    position: relative
}

    .login-input-wrap .form-control {
        height: 57px;
        padding: 10px 48px;
        border: 1px solid #d6dfda;
        border-radius: 9px;
        background: #fbfcfb;
        color: #142622;
        font-size: 1rem
    }

        .login-input-wrap .form-control::placeholder {
            color: #9aa5a1
        }

        .login-input-wrap .form-control:hover {
            border-color: #b8c7c0
        }

        .login-input-wrap .form-control:focus {
            border-color: var(--grinew-primary);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(8,116,88,.12)
        }

.login-input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 18px;
    color: #52645f;
    font-size: 1rem;
    transform: translateY(-50%);
    pointer-events: none
}

.login-password-wrap .form-control {
    padding-right: 60px
}

.login-password-toggle {
    position: absolute;
    z-index: 3;
    top: 1px;
    right: 1px;
    display: grid;
    width: 56px;
    height: 55px;
    place-items: center;
    border: 0;
    border-left: 1px solid #e1e6e3;
    border-radius: 0 8px 8px 0;
    background: transparent;
    color: #36514a
}

    .login-password-toggle:hover {
        background: #f1f6f3;
        color: var(--grinew-primary-dark)
    }

    .login-password-toggle:focus-visible {
        z-index: 4
    }

.login-field-validation {
    display: block;
    min-height: 0;
    margin-top: 6px;
    color: #c82333;
    font-size: .78rem
}

.login-input-wrap:has(.input-validation-error) .form-control {
    border-color: #d92332
}

.login-validation-summary {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #f0c7cb;
    border-radius: 8px;
    background: #fff4f5;
    color: #a51d2a;
    font-size: .84rem
}

    .login-validation-summary.validation-summary-valid {
        display: none
    }

    .login-validation-summary ul {
        margin: 0;
        padding-left: 18px
    }

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    height: 58px;
    margin-top: 30px;
    border: 1px solid var(--grinew-primary);
    border-radius: 9px;
    background: var(--grinew-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700
}

    .login-submit:hover {
        border-color: var(--grinew-primary-dark);
        background: var(--grinew-primary-dark);
        color: #fff
    }

    .login-submit:active {
        border-color: #064537 !important;
        background: #064537 !important;
        color: #fff !important;
        transform: translateY(1px)
    }

    .login-submit:focus-visible {
        box-shadow: 0 0 0 4px rgba(8,116,88,.22)
    }

@media(max-width:991.98px) {
    .login-shell {
        grid-template-columns: minmax(330px,45fr) minmax(430px,55fr)
    }

    .login-visual-content {
        padding: 40px 34px
    }

    .login-brand-message h1 {
        font-size: 2.75rem
    }

    .login-capability {
        padding-inline: 13px;
        font-size: .79rem
    }

    .login-form-panel {
        padding-inline: 42px
    }
}

@media(max-width:767.98px) {
    .login-shell {
        display: block;
        min-height: 100vh
    }

    .login-visual {
        display: none
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 34px 24px
    }

    .login-form-wrap {
        max-width: 500px
    }

    .login-logo-mobile {
        display: block;
        width: 176px;
        margin-bottom: clamp(36px,8vh,70px)
    }

    .login-form-wrap h2 {
        font-size: 2rem
    }

    .login-subtitle {
        margin-bottom: 27px
    }
}

@media(max-width:399.98px) {
    .login-form-panel {
        align-items: flex-start;
        padding: 24px 18px
    }

    .login-logo-mobile {
        width: 150px;
        margin-bottom: 34px
    }

    .login-form-wrap h2 {
        font-size: 1.75rem
    }

    .login-subtitle {
        margin: 9px 0 22px
    }

    .login-field {
        margin-bottom: 17px
    }

    .login-submit {
        margin-top: 22px
    }
}

.page-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 4px
}

.page-subtitle {
    color: var(--muted);
    font-size: .92rem
}

.content-width {
    max-width: 900px
}

.content-width-sm {
    max-width: 600px
}

.content-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px
}

.form-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--line);
    margin: 24px -24px -24px;
    padding: 18px 24px
}

.filter-bar {
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfb
}

    .filter-bar .form-label {
        font-size: .78rem;
        margin-bottom: 5px
    }

.input-group-text {
    background: #fff;
    color: var(--muted)
}

.users-table th {
    background: #fafbfa;
    color: #6a7973;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom-color: var(--line);
    padding: 12px 16px
}

.users-table td {
    font-size: .87rem;
    padding: 13px 16px;
    border-color: #edf1ee
}

.user-avatar {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #e4efe8;
    color: var(--green);
    font-size: .72rem;
    font-weight: 700
}

.status-active {
    background: #daf2e7;
    color: #126044
}

.status-inactive {
    background: #eef0ef;
    color: #5f6965
}

.table-footer {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line)
}

.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--muted)
}

    .empty-state > i {
        font-size: 2rem;
        margin-bottom: 15px
    }

    .empty-state h2 {
        font-size: 1.05rem;
        color: var(--ink)
    }

.modal-content {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 60px #173c2d25
}

@media(max-width:767px) {
    .users-table {
        min-width: 900px
    }

    .table-footer {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column
    }
}

.product-form-width {
    max-width: 1100px
}

.section-title {
    font-size: 1rem;
    font-weight: 700
}

.specification-table th {
    font-size: .78rem;
    color: var(--muted);
    background: #fafbfa
}

.specification-table .spec-order {
    width: 110px
}

.specification-table td:last-child {
    width: 44px
}

.compact-details dt {
    color: var(--muted);
    font-size: .86rem
}

.compact-details dd {
    font-size: .9rem
}

.duplicate-row {
    padding: .5rem 0;
    border-bottom: 1px solid #dfc980
}

    .duplicate-row:last-of-type {
        border-bottom: 0
    }

.preserve-lines {
    white-space: pre-line
}

.quotation-stepper {
    display: flex;
    align-items: center;
    margin-bottom: 18px
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #87938e;
    flex: 1;
    font-size: .86rem
}

    .wizard-step:not(:last-child):after {
        content: "";
        height: 1px;
        background: var(--line);
        flex: 1;
        margin: 0 12px
    }

    .wizard-step span {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border: 1px solid #cfd8d3;
        border-radius: 50%;
        font-weight: 700
    }

    .wizard-step.current {
        color: var(--green)
    }

        .wizard-step.current span {
            background: var(--green);
            border-color: var(--green);
            color: #fff
        }

    .wizard-step.complete {
        color: #417360
    }

        .wizard-step.complete span {
            background: #dceee6;
            border-color: #c5dfd3
        }

.customer-picker {
    border: 1px solid var(--line);
    border-radius: 8px;
    max-height: 330px;
    overflow: auto
}

.customer-option {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    cursor: pointer
}

    .customer-option:last-child {
        border: 0
    }

    .customer-option:hover {
        background: #f6faf7
    }

    .customer-option span, .customer-option strong, .customer-option small {
        display: block
    }

    .customer-option small {
        color: var(--muted);
        margin-top: 2px
    }

.quotation-status {
    font-weight: 600
}

.status-draft {
    background: #e8ecea;
    color: #53615b
}

.status-shared {
    background: #dcecf8;
    color: #195b84
}

.status-followup {
    background: #fff0c9;
    color: #795a00
}

.status-finalized {
    background: #daf2e7;
    color: #126044
}

.status-cancelled, .status-expired {
    background: #f6dddd;
    color: #8b2929
}

@media(max-width:575px) {
    .wizard-step {
        font-size: .75rem;
        gap: 5px
    }

        .wizard-step:not(:last-child):after {
            margin: 0 5px
        }

        .wizard-step span {
            width: 24px;
            height: 24px
        }
}

.customer-preview {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f3f8f5;
    border: 1px solid #dce9e1
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px
}

.dashboard-kpi {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none
}

    .dashboard-kpi > span {
        font-size: .8rem;
        color: var(--muted)
    }

    .dashboard-kpi strong {
        font-size: 1.65rem;
        line-height: 1.2
    }

    .dashboard-kpi small {
        font-size: .72rem;
        color: var(--muted)
    }

    .dashboard-kpi:hover {
        color: var(--ink);
        border-color: #abcdb8
    }

.dashboard-followup {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink)
}

    .dashboard-followup:last-of-type {
        border-bottom: 0
    }

    .dashboard-followup strong, .dashboard-followup small {
        display: block
    }

    .dashboard-followup small {
        font-size: .78rem;
        color: var(--muted);
        margin-top: 2px;
        overflow-wrap: anywhere
    }

.dashboard-followup-time {
    font-size: .8rem;
    color: var(--muted);
    white-space: nowrap
}

@media(max-width:991px) {
    .dashboard-kpis {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:575px) {
    .dashboard-kpis {
        grid-template-columns: 1fr 1fr
    }

    .dashboard-kpi {
        padding: 14px
    }

        .dashboard-kpi strong {
            font-size: 1.4rem
        }

    .dashboard-followup {
        flex-direction: column;
        gap: 2px
    }

    .dashboard-followup-time {
        white-space: normal
    }
}

.capacity-summary {
    background: #f3f8f5;
    border: 1px solid #dce9e1;
    border-radius: 8px;
    padding: 12px
}

.equipment-row, .category-add {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 14px;
    margin-bottom: 10px
}

.category-add {
    display: grid;
    grid-template-columns: minmax(150px,1fr) minmax(240px,2fr);
    align-items: center
}

.spec-box {
    background: #fafbfa;
    border-radius: 7px;
    padding: 10px
}

@media(max-width:575px) {
    .category-add {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .quotation-stepper {
        overflow-x: auto
    }

    .wizard-step {
        min-width: 105px
    }
}

.wizard-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px
}

    .wizard-context span:not(.badge) {
        display: block;
        color: var(--muted);
        font-size: .82rem
    }

.wizard-step a {
    color: inherit;
    text-decoration: none;
    font-weight: 700
}

.review-accordion .content-card {
    box-shadow: none
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 4
}

@media(max-width:767px) {
    .quotation-stepper {
        overflow-x: auto;
        padding-bottom: 8px
    }

    .wizard-step {
        min-width: 116px;
        flex: none
    }

        .wizard-step:not(:last-child):after {
            width: 20px;
            flex: none
        }

    .form-actions {
        flex-wrap: wrap
    }

    .sticky-actions {
        position: static
    }
}

.crm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.crm-metrics {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px
}

    .crm-metrics > div {
        padding: 16px;
        border-right: 1px solid var(--line)
    }

        .crm-metrics > div:last-child {
            border: 0
        }

    .crm-metrics span, .crm-metrics small, .crm-metrics strong {
        display: block
    }

    .crm-metrics span {
        font-size: .72rem;
        text-transform: uppercase;
        color: var(--muted);
        margin-bottom: 4px
    }

    .crm-metrics strong {
        font-size: .9rem
    }

.crm-tabs {
    flex-wrap: nowrap;
    overflow-x: auto
}

.timeline {
    border-left: 2px solid #dce8e1;
    margin-left: 12px
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 0 0 20px 24px
}

.timeline-icon {
    position: absolute;
    left: -14px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e2eee8;
    color: var(--green);
    font-size: .7rem
}

.note-card p {
    margin-bottom: 8px
}

.followup-link {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: var(--ink);
    padding: 12px 0;
    border-bottom: 1px solid var(--line)
}

    .followup-link:last-child {
        border: 0
    }

    .followup-link span {
        color: var(--muted);
        font-size: .85rem
    }

@media(max-width:900px) {
    .crm-metrics {
        grid-template-columns: repeat(2,1fr)
    }

        .crm-metrics > div {
            border-bottom: 1px solid var(--line)
        }

    .crm-header {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:575px) {
    .crm-metrics {
        grid-template-columns: 1fr
    }

        .crm-metrics > div {
            border-right: 0
        }

    .followup-card .d-flex {
        gap: 12px;
        flex-direction: column
    }
}

/* Customers directory */
.customers-page {
    max-width: 1600px;
    margin: 0 auto
}

.customers-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px
}

.page-eyebrow {
    margin-bottom: 5px;
    color: #879690;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase
}

.customers-header .page-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    letter-spacing: -.025em
}

.customers-header-actions {
    display: flex;
    align-items: center;
    gap: 22px
}

.customer-total {
    display: flex;
    align-items: center;
    gap: 11px
}

.customer-total-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--grinew-primary-dark);
    font-size: 1.1rem
}

.customer-total strong, .customer-total small {
    display: block;
    white-space: nowrap
}

.customer-total strong {
    font-size: .9rem
}

.customer-total small {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: .7rem
}

.add-customer-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding-inline: 17px;
    font-size: .85rem;
    font-weight: 650
}

.customers-surface {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    box-shadow: 0 4px 18px rgba(18,54,43,.035)
}

.customer-filter-bar {
    display: grid;
    grid-template-columns: minmax(280px,2.5fr) repeat(2,minmax(140px,1fr)) minmax(170px,1.15fr) auto;
    align-items: end;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: #fff
}

    .customer-filter-bar .form-label {
        margin: 0 0 5px;
        color: #52635e;
        font-size: .7rem;
        font-weight: 600
    }

    .customer-filter-bar .form-control, .customer-filter-bar .form-select, .customer-filter-bar .input-group-text {
        min-height: 39px;
        border-color: #dbe4df;
        font-size: .82rem
    }

    .customer-filter-bar .input-group-text {
        padding-right: 4px;
        border-right: 0;
        color: #526861
    }

    .customer-filter-bar .input-group .form-control {
        border-left: 0;
        padding-left: 9px
    }

    .customer-filter-bar .input-group:focus-within .input-group-text {
        border-color: var(--grinew-primary)
    }

.customer-filter-actions {
    display: flex;
    gap: 8px
}

    .customer-filter-actions .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 39px;
        padding-inline: 15px;
        font-size: .8rem;
        font-weight: 650
    }

.customers-table {
    min-width: 990px
}

    .customers-table thead th {
        padding: 11px 16px;
        border-bottom: 1px solid var(--border);
        background: #f4f7f5;
        color: #52635e;
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .045em;
        text-transform: uppercase
    }

    .customers-table tbody td {
        height: 60px;
        padding: 8px 16px;
        border-color: #e9eeeb;
        color: var(--text-primary);
        font-size: .82rem
    }

    .customers-table tbody tr:hover td {
        background: #fbfdfc
    }

.customer-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px
}

.customer-initials {
    display: grid;
    width: 36px;
    height: 36px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: #dff3e9;
    color: #11664e;
    font-size: .72rem;
    font-weight: 700
}

.customer-identity > span:last-child, .customer-created-date, .customer-created-by {
    display: block
}

.customer-name {
    display: block;
    color: var(--text-primary);
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none
}

    .customer-name:hover {
        color: var(--grinew-primary)
    }

.customer-identity small, .customer-created-by {
    margin-top: 1px;
    color: var(--text-secondary);
    font-size: .7rem
}

.customer-mobile {
    color: #286eaa;
    font-weight: 500;
    text-decoration: none
}

    .customer-mobile:hover {
        text-decoration: underline
    }

.customer-location {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap
}

    .customer-location i {
        width: 13px;
        color: #8a9d96
    }

.customer-status {
    min-width: 62px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: .68rem;
    font-weight: 650;
    text-align: center
}

.customer-created-date {
    font-weight: 500
}

.customer-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px
}

    .customer-row-actions .btn {
        min-height: 34px
    }

.customer-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-inline: 12px;
    border-color: #d8e1dc;
    color: #1e3430;
    font-weight: 650
}

    .customer-view-btn i {
        color: #1584ad
    }

.customer-more-btn {
    width: 35px;
    padding-inline: 0;
    border-color: #d8e1dc;
    color: #1e3430
}

.customer-actions-menu {
    min-width: 155px;
    padding: 6px;
    border-color: var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15,48,39,.12)
}

    .customer-actions-menu .dropdown-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border: 0;
        border-radius: 5px;
        background: transparent;
        font-size: .8rem
    }

        .customer-actions-menu .dropdown-item i {
            width: 15px;
            text-align: center
        }

    .customer-actions-menu .customer-activate {
        color: var(--success)
    }

    .customer-actions-menu .customer-deactivate {
        color: var(--danger)
    }

    .customer-actions-menu .dropdown-divider {
        margin: 4px 0
    }

.customers-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 61px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: .76rem
}

    .customers-table-footer .pagination {
        gap: 5px
    }

    .customers-table-footer .page-link {
        display: grid;
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        place-items: center;
        border-color: var(--border);
        border-radius: 6px !important;
        color: #29443d
    }

    .customers-table-footer .page-item.active .page-link {
        border-color: var(--grinew-primary);
        background: var(--grinew-primary);
        color: #fff
    }

.customer-empty-state {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center
}

    .customer-empty-state > span {
        display: grid;
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
        place-items: center;
        border-radius: 50%;
        background: var(--grinew-primary-soft);
        color: var(--grinew-primary);
        font-size: 1.3rem
    }

    .customer-empty-state h2 {
        margin-bottom: 5px;
        font-size: 1rem
    }

    .customer-empty-state p {
        margin: 0;
        color: var(--text-secondary);
        font-size: .82rem
    }

@media(max-width:1199.98px) {
    .customer-filter-bar {
        grid-template-columns: minmax(280px,2fr) repeat(3,minmax(145px,1fr))
    }

    .customer-filter-actions {
        grid-column: 1/-1;
        justify-content: flex-end
    }
}

@media(max-width:767.98px) {
    .customers-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 17px
    }

    .customers-header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 12px
    }

    .customer-total-icon {
        display: none
    }

    .customer-filter-bar {
        grid-template-columns: 1fr 1fr
    }

    .customer-search-field {
        grid-column: 1/-1
    }

    .customer-creator-field {
        grid-column: 1/-1
    }

    .customer-filter-actions {
        grid-column: 1/-1;
        justify-content: stretch
    }

        .customer-filter-actions .btn {
            flex: 1
        }

    .customers-table-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px
    }

        .customers-table-footer nav {
            align-self: flex-end
        }
}

@media(max-width:479.98px) {
    .customers-header-actions {
        align-items: stretch;
        flex-direction: column
    }

    .customer-total-icon {
        display: grid
    }

    .customer-total {
        order: 2
    }

    .add-customer-btn {
        justify-content: center
    }

    .customer-filter-bar {
        grid-template-columns: 1fr
    }

    .customer-search-field, .customer-creator-field, .customer-filter-actions {
        grid-column: 1
    }

    .customer-filter-actions {
        flex-wrap: wrap
    }

        .customer-filter-actions .btn {
            min-width: 110px
        }
}

/* Quotations index */
.quotations-page {
    max-width: 1600px;
    margin: 0 auto
}

.quotations-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px
}

    .quotations-header .page-title {
        color: var(--text-primary);
        font-size: 1.75rem;
        letter-spacing: -.025em
    }

.quotations-header-actions {
    display: flex;
    align-items: center;
    gap: 22px
}

.quotation-total {
    display: flex;
    align-items: center;
    gap: 11px
}

.quotation-total-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--grinew-primary-dark);
    font-size: 1.1rem
}

.quotation-total strong, .quotation-total small {
    display: block;
    white-space: nowrap
}

.quotation-total strong {
    font-size: .9rem
}

.quotation-total small {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: .7rem
}

.add-quotation-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding-inline: 17px;
    font-size: .85rem;
    font-weight: 650
}

.quotation-filter-bar {
    display: grid;
    grid-template-columns: minmax(310px,2.35fr) repeat(2,minmax(125px,.8fr)) minmax(155px,1fr) repeat(2,minmax(140px,.9fr)) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(18,54,43,.025)
}

    .quotation-filter-bar .form-label {
        margin: 0 0 5px;
        color: #52635e;
        font-size: .7rem;
        font-weight: 600
    }

    .quotation-filter-bar .form-control, .quotation-filter-bar .form-select, .quotation-filter-bar .input-group-text {
        min-height: 39px;
        border-color: #dbe4df;
        font-size: .8rem
    }

    .quotation-filter-bar .input-group-text {
        padding-right: 4px;
        border-right: 0;
        color: #526861
    }

    .quotation-filter-bar .input-group .form-control {
        border-left: 0;
        padding-left: 9px
    }

    .quotation-filter-bar .input-group:focus-within .input-group-text {
        border-color: var(--grinew-primary)
    }

.quotation-filter-actions {
    display: flex;
    gap: 8px
}

    .quotation-filter-actions .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 39px;
        padding-inline: 15px;
        font-size: .8rem;
        font-weight: 650
    }

.quotation-grid {
    margin-bottom: 0
}

    .quotation-grid > [class*=col-] {
        display: flex
    }

.quotation-card {
    display: flex;
    width: 100%;
    min-height: 258px;
    flex-direction: column;
    overflow: visible;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 13px rgba(18,54,43,.035);
    transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease
}

    .quotation-card:hover {
        border-color: #cbdcd3;
        box-shadow: 0 8px 24px rgba(18,54,43,.075);
        transform: translateY(-1px)
    }

.quotation-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 0
}

.quotation-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px
}

.quotation-number {
    color: #0870df;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none
}

    .quotation-number:hover {
        text-decoration: underline
    }

.quotation-status {
    min-width: 64px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: .66rem;
    text-align: center
}

.quotation-customer {
    min-height: 49px;
    padding-top: 8px
}

    .quotation-customer strong, .quotation-customer span {
        display: block
    }

    .quotation-customer strong {
        color: var(--text-primary);
        font-size: .84rem;
        font-weight: 700
    }

    .quotation-customer span {
        margin-top: 1px;
        color: var(--text-secondary);
        font-size: .73rem
    }

.quotation-metadata {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    border-top: 1px solid #e7ece9
}

    .quotation-metadata > div {
        min-width: 0;
        padding: 10px 0
    }

        .quotation-metadata > div + div {
            padding-left: 18px
        }

    .quotation-metadata dt {
        margin-bottom: 2px;
        color: var(--text-secondary);
        font-size: .66rem;
        font-weight: 500;
        letter-spacing: .01em;
        text-transform: uppercase
    }

    .quotation-metadata dd {
        margin: 0;
        color: #142a25;
        font-size: .8rem;
        font-weight: 700;
        white-space: nowrap
    }

.quotation-timing {
    margin-top: auto
}

    .quotation-timing dd {
        font-size: .74rem;
        font-weight: 500
    }

        .quotation-timing dd i {
            width: 14px;
            margin-right: 3px;
            color: #6c7d77
        }

    .quotation-timing .follow-up-overdue {
        color: var(--danger);
        font-weight: 650
    }

        .quotation-timing .follow-up-overdue i {
            color: var(--danger)
        }

.quotation-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 57px;
    margin: 0 18px;
    padding: 10px 0 12px;
    border-top: 1px solid #e7ece9
}

    .quotation-card-footer .btn {
        display: inline-flex;
        min-height: 33px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border-color: #d5e0da;
        border-radius: 6px;
        font-size: .75rem;
        font-weight: 650
    }

.quotation-primary-action {
    min-width: 124px
}

.quotation-icon-action, .quotation-more-action {
    width: 35px;
    padding-inline: 0
}

.quotation-icon-action {
    margin-left: auto
}

.quotation-actions-menu {
    min-width: 140px;
    padding: 6px;
    border-color: var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15,48,39,.12)
}

    .quotation-actions-menu .dropdown-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 5px;
        font-size: .8rem
    }

        .quotation-actions-menu .dropdown-item i {
            width: 15px;
            text-align: center
        }

.quotations-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    margin-top: 12px;
    padding: 10px 2px;
    color: var(--text-secondary);
    font-size: .76rem
}

    .quotations-footer .pagination {
        gap: 5px
    }

    .quotations-footer .page-link {
        display: grid;
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        place-items: center;
        border-color: var(--border);
        border-radius: 6px !important;
        color: #29443d;
        background: #fff
    }

    .quotations-footer .page-item.active .page-link {
        border-color: var(--grinew-primary);
        background: var(--grinew-primary);
        color: #fff
    }

.quotation-empty-state {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    text-align: center
}

    .quotation-empty-state > span {
        display: grid;
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
        place-items: center;
        border-radius: 50%;
        background: var(--grinew-primary-soft);
        color: var(--grinew-primary);
        font-size: 1.3rem
    }

    .quotation-empty-state h2 {
        margin-bottom: 5px;
        font-size: 1rem
    }

    .quotation-empty-state p {
        margin: 0;
        color: var(--text-secondary);
        font-size: .82rem
    }

@media(max-width:1399.98px) {
    .quotation-filter-bar {
        grid-template-columns: minmax(300px,2fr) repeat(3,minmax(140px,1fr))
    }

    .quotation-filter-actions {
        grid-column: 1/-1;
        justify-content: flex-end
    }
}

@media(max-width:767.98px) {
    .quotations-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 17px
    }

    .quotations-header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 12px
    }

    .quotation-total-icon {
        display: none
    }

    .quotation-filter-bar {
        grid-template-columns: 1fr 1fr
    }

    .quotation-search-field, .quotation-preparer-field {
        grid-column: 1/-1
    }

    .quotation-filter-actions {
        grid-column: 1/-1;
        justify-content: stretch
    }

        .quotation-filter-actions .btn {
            flex: 1
        }

    .quotations-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px
    }

        .quotations-footer nav {
            align-self: flex-end
        }

    .quotation-card {
        min-height: 252px
    }
}

@media(max-width:479.98px) {
    .quotations-header-actions {
        align-items: stretch;
        flex-direction: column
    }

    .quotation-total-icon {
        display: grid
    }

    .quotation-total {
        order: 2
    }

    .add-quotation-btn {
        justify-content: center
    }

    .quotation-filter-bar {
        grid-template-columns: 1fr
    }

    .quotation-search-field, .quotation-preparer-field, .quotation-filter-actions {
        grid-column: 1
    }

    .quotation-filter-actions {
        flex-wrap: wrap
    }

        .quotation-filter-actions .btn {
            min-width: 110px
        }

    .quotation-card-body {
        padding-inline: 16px
    }

    .quotation-card-footer {
        margin-inline: 16px
    }
}

/* Authenticated application shell */
:root {
    --grinew-primary: #087458;
    --grinew-primary-dark: #075542;
    --grinew-primary-soft: #e8f4ee;
    --app-bg: #f7f9f6;
    --surface: #fff;
    --border: #e2e9e4;
    --text-primary: #10231f;
    --text-secondary: #64736f;
    --success: #087458;
    --warning: #d98a00;
    --danger: #d92332
}

body {
    color: var(--text-primary);
    background: var(--app-bg)
}

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh
}

.app-main {
    width: 100%;
    padding: 32px clamp(20px,3vw,52px) 44px
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 70px;
    min-height: 70px;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(20,52,44,.035)
}

.app-nav-wrap {
    height: 100%;
    padding-inline: clamp(20px,3vw,52px);
    flex-wrap: nowrap
}

.navbar-brand {
    display: flex;
    align-items: center;
    width: 220px;
    margin-right: 18px;
    padding: 0
}

    .navbar-brand img {
        display: block;
        width: 190px;
        height: 48px;
        object-fit: contain
    }

.app-topbar .navbar-nav {
    gap: 3px
}

.app-topbar .nav-link {
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #142622;
    font-size: .875rem;
    font-weight: 600;
    padding: 10px 13px;
    white-space: nowrap
}

    .app-topbar .nav-link:hover, .app-topbar .nav-link:focus, .app-topbar .nav-link.active {
        color: var(--grinew-primary-dark);
        background: var(--grinew-primary-soft)
    }

.new-quotation-btn {
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 7px;
    font-size: .875rem;
    font-weight: 650;
    white-space: nowrap
}

.profile-button {
    min-height: 42px;
    padding: 4px 8px;
    gap: 9px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600
}

    .profile-button:hover, .profile-button:focus {
        background: #f4f7f5
    }

.profile-name {
    max-width: 165px;
    overflow: hidden;
    text-overflow: ellipsis
}

.avatar {
    width: 34px;
    height: 34px;
    flex: none;
    background: var(--grinew-primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 700
}

.nav-dropdown {
    min-width: 210px;
    margin-top: 8px !important;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: 0 12px 32px rgba(15,48,39,.12)
}

    .nav-dropdown .dropdown-item {
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 6px;
        padding: 9px 10px;
        color: var(--text-primary);
        font-size: .84rem
    }

        .nav-dropdown .dropdown-item i {
            width: 17px;
            color: #75837f;
            text-align: center
        }

        .nav-dropdown .dropdown-item:hover, .nav-dropdown .dropdown-item:focus {
            color: var(--grinew-primary-dark);
            background: var(--grinew-primary-soft)
        }

.settings-menu {
    width: 268px;
    max-height: calc(100vh - 90px);
    overflow-y: auto
}

.account-menu {
    min-width: 190px
}

.mobile-account small {
    display: block;
    color: var(--text-secondary);
    font-size: .75rem
}

/* Dashboard */
.dashboard-page {
    max-width: 1600px;
    margin: 0 auto
}

.dashboard-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 120px;
    margin: -32px calc(-1 * clamp(20px,3vw,52px)) 20px;
    padding: 26px clamp(20px,3vw,52px);
    overflow: hidden;
    background: #f5faf7;
    border-bottom: 1px solid #edf2ee
}

.dashboard-hero-copy {
    position: relative;
    z-index: 2
}

.dashboard-hero h1 {
    margin: 7px 0 4px;
    font-size: clamp(1.65rem,2.4vw,2rem);
    font-weight: 750;
    letter-spacing: -.025em
}

.dashboard-hero p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .95rem
}

.dashboard-date {
    position: absolute;
    z-index: 2;
    top: 22px;
    right: clamp(20px,3vw,52px);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(255,255,255,.88);
    font-size: .78rem
}

.dashboard-hero-visual {
    position: absolute;
    inset: 0 15% 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #9cc6b5;
    opacity: .22;
    font-size: 4.8rem;
    transform: rotate(-3deg)
}

    .dashboard-hero-visual .fa-sun {
        align-self: flex-start;
        margin-top: 18px;
        color: #e3a915;
        font-size: 2.2rem
    }

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 16px
}

.dashboard-kpi {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-height: 120px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(18,54,43,.025);
    color: var(--text-primary);
    text-decoration: none
}

    .dashboard-kpi:hover {
        color: var(--text-primary);
        border-color: #bbd2c7;
        box-shadow: 0 5px 18px rgba(18,54,43,.06)
    }

.kpi-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: none;
    border-radius: 50%;
    font-size: 1.3rem
}

.kpi-content {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.kpi-label {
    color: #40534e;
    font-size: .78rem;
    font-weight: 650
}

.dashboard-kpi strong {
    margin: 3px 0;
    font-size: 1.75rem;
    line-height: 1.1
}

.dashboard-kpi small {
    color: var(--text-secondary);
    font-size: .72rem;
    line-height: 1.35
}

.dashboard-kpi .kpi-action {
    color: var(--grinew-primary);
    font-weight: 650
}

.kpi-customers .kpi-icon {
    color: #087458;
    background: #dff4e9
}

.kpi-quotations .kpi-icon {
    color: #1769d2;
    background: #e3edfc
}

.kpi-today .kpi-icon {
    color: #d98900;
    background: #fff0cc
}

.kpi-overdue .kpi-icon {
    color: #df1f2e;
    background: #fee4e5
}

.dashboard-followup-grid {
    margin-bottom: 16px
}

.dashboard-panel {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(18,54,43,.025)
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 57px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--border)
}

    .dashboard-panel-header h2 {
        display: flex;
        align-items: center;
        gap: 11px;
        margin: 0;
        font-size: 1rem;
        font-weight: 700
    }

    .dashboard-panel-header > a {
        color: var(--grinew-primary);
        font-size: .8rem;
        font-weight: 650;
        text-decoration: none
    }

        .dashboard-panel-header > a i {
            margin-left: 5px
        }

.panel-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--grinew-primary);
    font-size: 1rem
}

.panel-icon-today {
    color: var(--grinew-primary)
}

.panel-icon-overdue {
    color: var(--danger)
}

.dashboard-panel-header .badge {
    min-width: 27px;
    padding: 6px 8px;
    border-radius: 20px
}

.dashboard-panel-body {
    padding: 10px 18px;
    min-height: 130px
}

.dashboard-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    color: var(--text-secondary);
    font-size: .8rem;
    text-align: center
}

    .dashboard-empty > i {
        margin-bottom: 9px;
        color: #acb8bd;
        font-size: 1.8rem
    }

    .dashboard-empty strong {
        margin-bottom: 2px;
        color: #435650;
        font-weight: 600
    }

.dashboard-followup {
    min-height: 62px;
    padding: 9px 2px
}

    .dashboard-followup:hover {
        color: var(--grinew-primary-dark)
    }

.dashboard-followup-overdue {
    align-items: center;
    margin: 2px 0;
    padding: 9px 11px;
    border: 0;
    border-radius: 8px;
    background: #fff0f1
}

.followup-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    background: #ffdadd;
    color: #582127;
    font-size: .72rem;
    font-weight: 700
}

.dashboard-followup-time i {
    margin-right: 3px
}

.dashboard-followup-overdue .dashboard-followup-time {
    color: var(--danger)
}

.list-note {
    display: block;
    padding: 6px 2px;
    color: var(--text-secondary)
}

.recent-quotations {
    margin-top: 0
}

.dashboard-table th {
    padding: 10px 20px;
    background: #f5f7f6;
    color: #5d6e69;
    font-size: .68rem
}

.dashboard-table td {
    padding: 10px 20px;
    font-size: .82rem
}

.dashboard-table tbody tr:hover td {
    background: #fbfdfb
}

.quotation-link {
    color: #0969da;
    font-weight: 600;
    text-decoration: none
}

.quotation-status {
    min-width: 62px;
    padding: 5px 8px;
    border-radius: 6px;
    text-align: center
}

.table-action {
    padding: 3px 12px;
    font-size: .75rem
}

.timezone-note {
    margin: 10px 2px 0;
    color: var(--text-secondary);
    font-size: .7rem
}

:focus-visible {
    outline: 3px solid rgba(8,116,88,.24) !important;
    outline-offset: 2px
}

@media(max-width:1199.98px) {
    .app-topbar .offcanvas {
        width: min(88vw,360px)
    }

    .app-topbar .offcanvas-header {
        height: 70px;
        border-bottom: 1px solid var(--border)
    }

        .app-topbar .offcanvas-header img {
            width: 175px;
            height: 44px;
            object-fit: contain
        }

    .app-topbar .offcanvas-body {
        display: flex;
        flex-direction: column;
        padding: 16px
    }

    .app-topbar .navbar-nav {
        align-items: stretch !important;
        gap: 3px
    }

    .app-topbar .nav-link {
        width: 100%;
        padding: 11px 12px;
        text-align: left
    }

    .app-topbar .nav-item.dropdown .dropdown-menu {
        position: static;
        width: 100%;
        max-height: none;
        margin: 3px 0 8px !important;
        border: 0;
        box-shadow: none;
        background: #f7f9f7
    }

    .navbar-brand {
        width: auto
    }

        .navbar-brand img {
            width: 180px
        }

    .navbar-toggler {
        padding: 7px;
        border: 1px solid var(--border)
    }

    .dashboard-hero-visual {
        right: 10%;
        opacity: .12
    }

    .dashboard-kpis {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:767.98px) {
    .app-main {
        padding: 24px 16px 34px
    }

    .app-nav-wrap {
        padding-inline: 16px
    }

    .navbar-brand img {
        width: 150px
    }

    .dashboard-hero {
        min-height: 150px;
        margin: -24px -16px 16px;
        padding: 22px 16px
    }

    .dashboard-date {
        top: 18px;
        right: 16px
    }

    .dashboard-hero-copy {
        align-self: flex-end
    }

        .dashboard-hero-copy p {
            max-width: 330px;
            font-size: .85rem
        }

    .dashboard-hero-visual {
        display: none
    }

    .dashboard-kpis {
        gap: 10px
    }

    .dashboard-kpi {
        min-height: 110px;
        padding: 14px;
        gap: 11px
    }

    .kpi-icon {
        width: 44px;
        height: 44px;
        font-size: 1.05rem
    }

    .dashboard-kpi strong {
        font-size: 1.45rem
    }

    .dashboard-panel-header {
        padding-inline: 16px
    }

    .dashboard-panel-body {
        padding-inline: 14px
    }

    .dashboard-table {
        min-width: 820px
    }
}

@media(max-width:479.98px) {
    .navbar-brand img {
        width: 128px
    }

    .new-quotation-btn {
        width: 40px;
        padding: 9px
    }

    .dashboard-kpis {
        grid-template-columns: 1fr
    }

    .dashboard-kpi {
        min-height: 96px
    }

    .dashboard-date {
        font-size: .7rem
    }

    .dashboard-followup {
        flex-direction: column
    }

    .dashboard-followup-overdue {
        align-items: flex-start
    }

    .followup-avatar {
        display: none
    }
}

/* Quotation wizard shell and customer step */
.quotation-wizard-page {
    max-width: 1540px;
    margin: 0 auto
}

.wizard-page-header {
    margin-bottom: 17px
}

    .wizard-page-header .page-eyebrow {
        margin-bottom: 6px
    }

    .wizard-page-header h1 {
        margin: 0 0 5px;
        font-size: 1.78rem;
        font-weight: 750;
        letter-spacing: -.025em
    }

    .wizard-page-header p {
        margin: 0;
        color: var(--text-secondary);
        font-size: .9rem
    }

.quotation-progress {
    margin-bottom: 18px;
    overflow-x: auto;
    scrollbar-width: thin
}

    .quotation-progress ol {
        display: flex;
        align-items: center;
        min-width: 750px;
        margin: 0;
        padding: 0 0 7px;
        list-style: none
    }

.quotation-progress-step {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    color: #83908c;
    font-size: .76rem;
    font-weight: 550;
    white-space: nowrap
}

    .quotation-progress-step:not(:last-child)::after {
        width: 100%;
        height: 1px;
        min-width: 13px;
        margin: 0 9px;
        content: "";
        background: #dbe3df
    }

.progress-indicator {
    display: grid;
    width: 30px;
    height: 30px;
    flex: none;
    margin-right: 7px;
    place-items: center;
    border: 1px solid #b9c6c1;
    border-radius: 50%;
    background: #fff;
    color: #61706b;
    font-size: .72rem;
    font-weight: 700
}

.quotation-progress-step.current {
    color: var(--grinew-primary-dark);
    font-weight: 700
}

    .quotation-progress-step.current .progress-indicator {
        border-color: var(--grinew-primary);
        background: var(--grinew-primary);
        color: #fff
    }

.quotation-progress-step.completed {
    color: #27654f;
    font-weight: 650
}

    .quotation-progress-step.completed .progress-indicator {
        border-color: #d0e8dc;
        background: #e3f3eb;
        color: var(--grinew-primary)
    }

.wizard-workspace-card, .quotation-overview {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 17px rgba(18,54,43,.035)
}

.wizard-card-header {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border)
}

    .wizard-card-header h2, .quotation-overview h2 {
        margin: 0;
        font-size: 1.08rem;
        font-weight: 720
    }

.wizard-card-body {
    padding: 18px 20px
}

.customer-search-wrap {
    position: relative;
    margin-bottom: 13px
}

    .customer-search-wrap i {
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 16px;
        color: #71817c;
        transform: translateY(-50%)
    }

    .customer-search-wrap .form-control {
        height: 48px;
        padding-left: 43px;
        border-color: #d9e2dd;
        border-radius: 9px;
        font-size: .84rem
    }

.customer-results {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 9px
}

.customer-result {
    display: flex;
    position: relative;
    align-items: center;
    gap: 12px;
    min-height: 61px;
    padding: 9px 14px;
    border-bottom: 1px solid #e8eeea;
    cursor: pointer;
    transition: background .15s,border-color .15s
}

    .customer-result:last-child {
        border-bottom: 0
    }

    .customer-result:hover {
        background: #f8fbf9
    }

    .customer-result.selected {
        background: #eff8f3;
        box-shadow: inset 3px 0 var(--grinew-primary)
    }

    .customer-result input {
        width: 16px;
        height: 16px;
        flex: none;
        margin: 0;
        accent-color: var(--grinew-primary)
    }

.customer-result-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: #dcf1e6;
    color: #0b6b50;
    font-size: .72rem;
    font-weight: 750
}

.customer-result-identity {
    min-width: 0
}

    .customer-result-identity strong, .customer-result-identity small {
        display: block
    }

    .customer-result-identity strong {
        font-size: .85rem
    }

    .customer-result-identity small {
        margin-top: 2px;
        color: var(--text-secondary);
        font-size: .73rem
    }

.customer-result-location {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    color: #586a65;
    font-size: .75rem;
    white-space: nowrap
}

    .customer-result-location i {
        color: #718681
    }

.customer-no-results {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: .82rem;
    text-align: center
}

.selected-customer {
    margin-top: 15px;
    padding: 13px 15px;
    border: 1px solid #d7e9df;
    border-radius: 9px;
    background: #f1f8f4
}

.selected-customer-label {
    margin-bottom: 10px;
    color: #315b4d;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .055em
}

.selected-customer-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #465a54;
    font-size: .75rem
}

    .selected-customer-content > div {
        min-width: 0
    }

    .selected-customer-content strong {
        display: block;
        margin-bottom: 1px;
        color: var(--text-primary);
        font-size: .86rem
    }

    .selected-customer-content small {
        display: block;
        margin-top: 4px;
        color: #60716c;
        overflow-wrap: anywhere
    }

        .selected-customer-content small i {
            width: 15px;
            margin-right: 3px;
            text-align: center
        }

.change-customer {
    margin-left: auto;
    white-space: nowrap;
    font-size: .73rem
}

.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    background: #fdfefd
}

    .wizard-actions .btn {
       /* min-height: 40px;
        padding-inline: 18px;*/
        font-size: .82rem;
        font-weight: 650
    }

.overview-sticky {
    position: sticky;
    top: 94px
}

.quotation-overview {
    padding: 20px
}

.overview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px
}

    .overview-heading p {
        max-width: 310px;
        margin: 5px 0 0;
        color: var(--text-secondary);
        font-size: .76rem;
        line-height: 1.45
    }

    .overview-heading .badge {
        padding: 7px 10px
    }

.overview-identity {
    display: grid;
    grid-template-columns: minmax(120px,44%) 1fr;
    align-items: center;
    gap: 16px;
    margin: 18px 0 14px
}

.overview-visual {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    height: 126px;
    border-radius: 9px;
    background: linear-gradient(145deg,#e8f4ee,#f8faf7);
    color: #74a993;
    overflow: hidden
}

    .overview-visual .fa-solar-panel {
        font-size: 3.2rem;
        transform: rotate(-6deg)
    }

    .overview-visual .fa-sun {
        position: absolute;
        top: 19px;
        right: 18%;
        color: #d9b750;
        font-size: 1.6rem
    }

.overview-identity-copy {
    min-width: 0
}

    .overview-identity-copy > span {
        display: block;
        margin-bottom: 4px;
        color: var(--text-secondary);
        font-size: .65rem;
        text-transform: uppercase;
        letter-spacing: .045em
    }

    .overview-identity-copy > strong {
        display: block;
        margin-bottom: 12px;
        font-size: 1rem;
        overflow-wrap: anywhere
    }

.overview-customer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: .8rem
}

.overview-change {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--grinew-primary);
    font-size: .69rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap
}

.overview-identity-copy small {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: .73rem
}

    .overview-identity-copy small i {
        margin-top: 2px
    }

.overview-metrics {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
    margin-top: 14px
}

    .overview-metrics > div {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 3px 8px;
        min-width: 0;
        padding: 11px 9px;
        border-radius: 8px;
        background: #f6f9f7
    }

    .overview-metrics i {
        grid-row: 1/3;
        color: var(--grinew-primary);
        font-size: .9rem
    }

    .overview-metrics span {
        color: var(--text-secondary);
        font-size: .61rem;
        white-space: nowrap
    }

    .overview-metrics strong {
        font-size: .8rem;
        overflow-wrap: anywhere
    }

.overview-summary {
    margin-top: 10px;
    border-top: 1px solid var(--border)
}

.overview-summary-row {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1ef
}

    .overview-summary-row:last-child {
        border-bottom: 0
    }

.overview-row-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--grinew-primary-soft);
    color: var(--grinew-primary);
    font-size: .85rem
}

.overview-summary-row > div {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: start;
    gap: 7px;
    min-width: 0;
    padding-top: 7px;
    font-size: .75rem
}

.overview-summary-row strong {
    font-size: .73rem
}

.overview-summary-row p {
    margin: 0;
    color: #4f625d;
    line-height: 1.4;
    overflow-wrap: anywhere
}

.overview-financials > div {
    display: block;
    padding-top: 7px
}

    .overview-financials > div > strong {
        display: block;
        margin-bottom: 5px
    }

.overview-financials dl {
    margin: 0
}

    .overview-financials dl > div {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 2px 0;
        color: #4f625d;
        font-size: .73rem
    }

.overview-financials dt {
    font-weight: 400
}

.overview-financials dd {
    margin: 0
}

/* Project quotation step */
.wizard-page-header .page-eyebrow {
    color: #52645f;
    font-size: .72rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .045em
}

    .wizard-page-header .page-eyebrow i {
        margin-right: 6px;
        font-size: .65rem
    }

.project-form-card .wizard-card-body {
    padding: 22px
}

.wizard-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 18px
}

.wizard-section-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--grinew-primary-soft);
    color: var(--grinew-primary);
    font-size: 1rem
}

.wizard-section-heading h2 {
    margin: 1px 0 3px;
    font-size: 1.08rem;
    font-weight: 720
}

.wizard-section-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .78rem
}

.project-form-card .form-label {
    margin-bottom: 6px;
    font-size: .79rem;
    font-weight: 650
}

.project-form-card .form-control, .project-form-card .form-select {
    height: 45px;
    border-color: #d7e0db;
    border-radius: 8px;
    font-size: .84rem
}

    .project-form-card .form-control:focus, .project-form-card .form-select:focus {
        border-color: var(--grinew-primary);
        box-shadow: 0 0 0 3px rgba(8,116,88,.12)
    }

.wizard-section-divider {
    margin: 28px 0 22px;
    border-color: var(--border);
    opacity: 1
}

.project-actions {
    gap: 15px;
    padding: 17px 22px
}

    .project-actions > div {
        display: flex;
        gap: 9px
    }

    .project-actions .btn-primary {
        margin-left: auto
    }

@media(max-width:1199.98px) {
    .overview-sticky {
        position: static
    }

    .quotation-overview {
        margin-top: 2px
    }

    .overview-visual {
        height: 110px
    }
}

@media(max-width:575.98px) {
    .wizard-page-header h1 {
        font-size: 1.55rem
    }

    .quotation-progress ol {
        min-width: 720px
    }

    .wizard-card-body, .project-form-card .wizard-card-body {
        padding: 15px
    }

    .wizard-card-header, .wizard-actions {
        padding-inline: 15px
    }

    .customer-result {
        padding-inline: 10px
    }

    .customer-result-avatar {
        width: 34px;
        height: 34px
    }

    .customer-result-location {
        max-width: 90px;
        white-space: normal;
        text-align: right
    }

    .selected-customer-content {
        flex-wrap: wrap
    }

    .change-customer {
        margin-left: 46px
    }

    .overview-identity {
        grid-template-columns: 1fr
    }

    .overview-visual {
        height: 100px
    }

    .overview-metrics {
        grid-template-columns: 1fr
    }

        .overview-metrics > div {
            grid-template-columns: 22px 1fr auto
        }

        .overview-metrics i {
            grid-row: auto
        }

        .overview-metrics strong {
            justify-self: end
        }

    .overview-summary-row > div {
        grid-template-columns: 1fr
    }

    .project-actions {
        align-items: stretch;
        flex-direction: column
    }

        .project-actions > div {
            display: grid;
            grid-template-columns: 1fr 1fr
        }

        .project-actions .btn-primary {
            width: 100%;
            margin: 0
        }
}

/* System configuration step */
.system-form-card .wizard-card-body {
    padding: 22px
}

.application-selector {
    display: grid;
    grid-template-columns: repeat(4,minmax(125px,1fr));
    gap: 12px
}

.application-option {
    display: flex;
    position: relative;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    padding: 15px 28px;
    border: 1px solid #d7e0db;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s,background .15s,box-shadow .15s
}

    .application-option:hover {
        border-color: #91bcaa
    }

    .application-option input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0
    }

    .application-option:has(input:focus-visible) {
        outline: 3px solid rgba(8,116,88,.24);
        outline-offset: 2px
    }

    .application-option:has(input:checked) {
        border-color: var(--grinew-primary);
        background: #f0f9f4;
        box-shadow: 0 2px 8px rgba(8,116,88,.08)
    }

.application-option-icon {
    color: #263c36;
    font-size: 1.55rem
}

.application-option:has(input:checked) .application-option-icon {
    color: var(--grinew-primary)
}

.application-option strong {
    font-size: .8rem
}

.application-check {
    display: grid;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 1px solid #9caaa5;
    border-radius: 50%;
    color: transparent;
    font-size: .55rem
}

.application-option:has(input:checked) .application-check {
    border-color: var(--grinew-primary);
    background: var(--grinew-primary);
    color: #fff
}

.system-form-card .form-label {
    margin-bottom: 6px;
    font-size: .79rem;
    font-weight: 650
}

.system-form-card .form-control, .system-form-card .form-select, .system-form-card .input-group-text {
    height: 45px;
    border-color: #d7e0db;
    font-size: .84rem
}

.system-form-card .form-control, .system-form-card .form-select {
    border-radius: 8px
}

.system-form-card .input-group .form-control {
    border-radius: 8px 0 0 8px
}

.system-form-card .input-group-text {
    border-radius: 0 8px 8px 0;
    background: #f5f8f6;
    color: #66756f
}

.calculation-summary {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    align-items: center;
    gap: 13px;
    margin-top: 22px;
    padding: 13px;
    border: 1px solid #cfe5da;
    border-radius: 9px;
    background: linear-gradient(100deg,#f1faf5,#f8fcfa)
}

.calculation-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #dcf2e7;
    color: var(--grinew-primary)
}

.calculation-summary > div > strong {
    font-size: .83rem
}

.calculation-summary p {
    margin: 3px 0 0;
    color: var(--text-secondary);
    font-size: .72rem
}

.calculation-summary small {
    display: block;
    margin-top: 3px
}

.calculation-value {
    min-width: 150px;
    padding-left: 20px;
    border-left: 1px solid #d3e5dc;
    text-align: center
}

    .calculation-value strong, .calculation-value span {
        display: block
    }

    .calculation-value strong {
        color: var(--grinew-primary);
        font-size: 1.12rem
    }

    .calculation-value span {
        margin-top: 5px;
        color: #445852;
        font-size: .72rem
    }

.system-actions {
    gap: 15px;
    padding: 17px 22px
}

    .system-actions > div {
        display: flex;
        gap: 9px
    }

    .system-actions > .btn-primary {
        margin-left: auto
    }

@media(max-width:1399.98px) {
    .application-selector {
        grid-template-columns: repeat(2,minmax(140px,1fr))
    }
}

@media(max-width:575.98px) {
    .system-form-card .wizard-card-body {
        padding: 15px
    }

    .application-selector {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 9px
    }

    .application-option {
        min-height: 100px;
        padding: 12px 20px
    }

    .calculation-summary {
        grid-template-columns: 40px 1fr
    }

    .calculation-value {
        grid-column: 1/-1;
        min-width: 0;
        padding: 12px 0 0;
        border-top: 1px solid #d3e5dc;
        border-left: 0
    }

    .system-actions {
        align-items: stretch;
        flex-direction: column
    }

        .system-actions > div {
            display: grid;
            grid-template-columns: 1fr 1fr
        }

        .system-actions > .btn-primary {
            width: 100%;
            margin: 0
        }
}

/* Products and equipment step */
.product-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border)
}

    .product-card-header h2 {
        margin: 1px 0 3px;
        font-size: 1.08rem;
        font-weight: 720
    }

    .product-card-header p {
        margin: 0;
        color: var(--text-secondary);
        font-size: .78rem
    }

.product-search {
    position: relative;
    width: min(360px,45%);
    flex: none
}

    .product-search i {
        position: absolute;
        top: 50%;
        left: 12px;
        color: #71817c;
        font-size: .8rem;
        transform: translateY(-50%)
    }

    .product-search .form-control {
        height: 38px;
        padding-left: 35px;
        border-color: #d7e0db;
        font-size: .78rem
    }

.product-category-filter {
    display: flex;
    gap: 7px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 3px
}

.category-filter {
    flex: none;
    padding: 6px 11px;
    border: 1px solid #d5dfda;
    border-radius: 7px;
    background: #fff;
    color: #40534d;
    font-size: .72rem
}

    .category-filter span {
        color: #71817c
    }

    .category-filter.active {
        border-color: var(--grinew-primary);
        background: var(--grinew-primary);
        color: #fff
    }

        .category-filter.active span {
            color: #fff
        }

.product-table-wrap {
    border: 1px solid #e5ebe8;
    border-radius: 8px
}

.product-table {
    min-width: 880px
}

    .product-table th {
        padding: 10px 11px;
        border-bottom-color: #dfe7e3;
        background: #f5f7f6;
        color: #50635d;
        font-size: .66rem;
        font-weight: 700;
        text-transform: uppercase;
        white-space: nowrap
    }

    .product-table td {
        padding: 8px 11px;
        border-color: #e8eeeb;
        color: #425650;
        font-size: .73rem
    }

        .product-table td strong {
            color: #243832;
            font-size: .75rem
        }

    .product-table .btn {
        min-width: 72px;
        font-size: .7rem
    }

.btn-added {
    border: 1px solid #cde5da;
    background: #e9f6ef;
    color: #176448
}

.product-browser-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px
}

.product-empty, .selected-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 34px;
    color: var(--text-secondary);
    font-size: .78rem;
    text-align: center
}

    .product-empty strong, .selected-empty strong {
        margin-bottom: 3px;
        color: #344a43;
        font-size: .86rem
    }

    .selected-empty i {
        margin-bottom: 9px;
        color: #8ca29a;
        font-size: 1.45rem
    }

.equipment-count {
    padding: 6px 10px;
    border-radius: 7px;
    background: #e1f3ea;
    color: #176448;
    font-size: .74rem;
    font-weight: 700
}

.recommendation-strip {
    margin: 13px 18px 0;
    padding: 8px 11px;
    border: 1px solid #d9e9e1;
    border-radius: 7px;
    background: #f4faf7;
    color: #486159;
    font-size: .72rem
}

    .recommendation-strip i {
        margin-right: 6px;
        color: var(--grinew-primary)
    }

.selected-equipment .table-responsive {
    margin: 13px 18px 0;
    border: 1px solid #e5ebe8;
    border-radius: 8px
}

.selected-table {
    min-width: 1020px
}

.equipment-quantity {
    width: 76px;
    min-height: 34px;
    font-size: .75rem
}

.equipment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap
}

    .equipment-actions .btn {
        min-width: auto
    }

.custom-badge {
    display: block;
    width: max-content;
    margin-top: 3px;
    padding: 2px 5px;
    border-radius: 4px;
    background: #eef1ef;
    color: #61716c;
    font-size: .58rem;
    text-transform: uppercase
}

.products-actions {
    margin-top: 14px
}

    .products-actions > div {
        display: flex;
        gap: 9px
    }

.equipment-editor-fields .form-label {
    font-size: .78rem;
    font-weight: 650
}

.editor-spec .btn {
    width: 100%;
    height: 38px;
    padding: 5px
}

.products-step-page .modal-header h2 {
    font-weight: 700
}

@media(max-width:1199.98px) {
    .products-step-page .quotation-overview {
        margin-top: 8px
    }
}

@media(max-width:767.98px) {
    .product-card-header {
        align-items: flex-start;
        flex-direction: column
    }

    .product-search {
        width: 100%
    }

    .optional-column {
        display: none
    }

    .products-actions {
        align-items: stretch;
        flex-direction: column
    }

        .products-actions > div {
            display: grid;
            grid-template-columns: 1fr 1fr
        }

        .products-actions > .btn-primary {
            width: 100%
        }

    .selected-equipment .table-responsive {
        margin-inline: 12px
    }

    .recommendation-strip {
        margin-inline: 12px
    }
}

@media(max-width:575.98px) {
    .product-card-header {
        padding: 13px 15px
    }

    .product-browser .wizard-card-body {
        padding: 13px 15px
    }

    .product-browser-footer {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column
    }

    .product-table {
        min-width: 690px
    }

    .selected-table {
        min-width: 790px
    }

    .equipment-actions {
        gap: 3px
    }

        .equipment-actions .edit-item {
            font-size: 0
        }

            .equipment-actions .edit-item i {
                margin: 0 !important;
                font-size: .72rem
            }
}

/* Pricing step */
.pricing-card .wizard-card-body {
    padding: 22px
}

.pricing-card .form-label {
    margin-bottom: 6px;
    font-size: .79rem;
    font-weight: 650
}

.pricing-card .form-control {
    height: 45px;
    border-color: #d7e0db;
    border-radius: 8px;
    font-size: .84rem
}

    .pricing-card .form-control:focus {
        border-color: var(--grinew-primary);
        box-shadow: 0 0 0 3px rgba(8,116,88,.12)
    }

.net-investment-summary {
    display: grid;
    grid-template-columns: 64px minmax(0,1fr) minmax(220px,36%);
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 22px;
    border: 1px solid #d5e9df;
    border-radius: 10px;
    background: #f2faf6
}

.net-investment-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: #dcefe5;
    color: var(--grinew-primary);
    font-size: 1.35rem
}

.net-investment-result h3 {
    margin: 0 0 6px;
    color: #386153;
    font-size: .76rem;
    font-weight: 700
}

.net-investment-amount {
    display: block;
    color: var(--grinew-primary-dark);
    font-size: 1.85rem;
    line-height: 1.2;
    letter-spacing: -.02em
}

.net-investment-result p {
    margin: 9px 0 0;
    color: var(--text-secondary);
    font-size: .78rem
}

.net-investment-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-left: 1px solid #d4e5dc;
    color: #315e4e;
    font-size: .74rem;
    line-height: 1.55
}

    .net-investment-note i {
        margin-top: 3px;
        color: var(--grinew-primary)
    }

    .net-investment-note strong {
        display: block
    }

.pricing-actions {
    gap: 15px;
    padding: 17px 22px
}

    .pricing-actions > div {
        display: flex;
        gap: 9px
    }

    .pricing-actions > .btn-primary {
        margin-left: auto
    }

@media(max-width:767.98px) {
    .net-investment-summary {
        grid-template-columns: 48px 1fr;
        padding: 17px
    }

    .net-investment-icon {
        width: 46px;
        height: 46px
    }

    .net-investment-note {
        grid-column: 1/-1;
        padding: 13px 0 0;
        border-top: 1px solid #d4e5dc;
        border-left: 0
    }

    .pricing-actions {
        align-items: stretch;
        flex-direction: column
    }

        .pricing-actions > div {
            display: grid;
            grid-template-columns: 1fr 1fr
        }

        .pricing-actions > .btn-primary {
            width: 100%;
            margin: 0
        }
}

@media(max-width:575.98px) {
    .pricing-card .wizard-card-body {
        padding: 15px
    }

    .net-investment-summary {
        grid-template-columns: 1fr
    }

    .net-investment-icon {
        display: none
    }

    .net-investment-amount {
        font-size: 1.55rem
    }

    .net-investment-note {
        grid-column: auto
    }
}

/* Performance and savings step */
.performance-form .wizard-card-body {
    padding: 22px
}

.performance-form .form-label {
    margin-bottom: 6px;
    font-size: .79rem;
    font-weight: 650
}

.performance-form .form-control, .performance-form .form-select, .performance-form .input-group-text {
    height: 45px;
    border-color: #d7e0db;
    font-size: .84rem
}

.performance-form .form-control, .performance-form .form-select {
    border-radius: 8px
}

.performance-form .input-group .form-control {
    min-width: 0;
    border-radius: 8px 0 0 8px
}

.performance-form .input-group-text {
    max-width: 45%;
    border-radius: 0 8px 8px 0;
    background: #f5f8f6;
    color: #5e7069;
    white-space: normal
}

.performance-form .form-control:focus, .performance-form .form-select:focus {
    border-color: var(--grinew-primary);
    box-shadow: 0 0 0 3px rgba(8,116,88,.12)
}

.calculation-mode-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: -2px 0 18px;
    padding: 12px 14px;
    border: 1px solid #d9ece2;
    border-radius: 9px;
    background: #f0f8f4;
    color: #315e4e
}

    .calculation-mode-notice > i {
        margin-top: 3px;
        color: var(--grinew-primary)
    }

    .calculation-mode-notice strong {
        display: block;
        font-size: .79rem
    }

    .calculation-mode-notice p {
        margin: 2px 0 0;
        font-size: .73rem;
        line-height: 1.45
    }

.manual-results {
    padding: 17px;
    border: 1px solid #dce7e1;
    border-radius: 9px;
    background: #fafcfb
}

.manual-results-heading h2, .performance-preview h2 {
    margin: 0;
    font-size: .9rem;
    font-weight: 720
}

.manual-results-heading p, .performance-preview-heading p {
    margin: 3px 0 13px;
    color: var(--text-secondary);
    font-size: .73rem
}

.performance-preview {
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid #d5e9df;
    border-radius: 9px;
    background: #f2faf6
}

.performance-preview-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #235c49
}

    .performance-preview-heading > i {
        margin-top: 2px;
        color: var(--grinew-primary)
    }

.performance-preview-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    margin-top: 2px
}

    .performance-preview-grid > div {
        padding: 5px 18px;
        border-left: 1px solid #d6e6de
    }

        .performance-preview-grid > div:first-child {
            padding-left: 0;
            border-left: 0
        }

    .performance-preview-grid span, .performance-preview-grid strong {
        display: block
    }

    .performance-preview-grid span {
        color: var(--text-secondary);
        font-size: .68rem
    }

    .performance-preview-grid strong {
        margin-top: 3px;
        color: var(--grinew-primary-dark);
        font-size: 1rem
    }

.performance-actions {
    gap: 15px;
    padding: 17px 22px
}

    .performance-actions > div {
        display: flex;
        gap: 9px
    }

    .performance-actions > .btn-primary {
        margin-left: auto
    }

@media(max-width:767.98px) {
    .performance-preview-grid {
        grid-template-columns: 1fr
    }

        .performance-preview-grid > div {
            padding: 10px 0;
            border-top: 1px solid #d6e6de;
            border-left: 0
        }

            .performance-preview-grid > div:first-child {
                border-top: 0
            }

    .performance-actions {
        align-items: stretch;
        flex-direction: column
    }

        .performance-actions > div {
            display: grid;
            grid-template-columns: 1fr 1fr
        }

        .performance-actions > .btn-primary {
            width: 100%;
            margin: 0
        }
}

@media(max-width:575.98px) {
    .performance-form .wizard-card-body {
        padding: 15px
    }

    .performance-form .input-group-text {
        max-width: 42%;
        padding-inline: 9px;
        font-size: .72rem
    }

    .performance-form .wizard-section-divider {
        margin-block: 23px
    }

    .performance-actions {
        padding-inline: 15px
    }
}

/* Terms and conditions step */
.terms-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border)
}

    .terms-card-header .wizard-section-heading {
        min-width: 0
    }

    .terms-card-header h2 {
        margin: 1px 0 3px;
        font-size: 1.08rem;
        font-weight: 720
    }

    .terms-card-header p {
        max-width: 590px;
        margin: 0;
        color: var(--text-secondary);
        font-size: .78rem
    }

    .terms-card-header small {
        display: block;
        margin-top: 5px;
        color: #65766f;
        font-size: .7rem;
        font-weight: 650
    }

    .terms-card-header > .btn {
        flex: none;
        font-size: .78rem
    }

.quotation-terms-table {
    margin: 16px;
    border: 1px solid #e2e9e5;
    border-radius: 9px;
    overflow: hidden
}

.terms-table-header, .term-row {
    display: grid;
    grid-template-columns: 48px minmax(140px,25%) minmax(230px,1fr) 124px;
    align-items: center
}

.terms-table-header {
    min-height: 39px;
    border-bottom: 1px solid #dde5e1;
    background: #f5f7f6;
    color: #50635d;
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em
}

    .terms-table-header > span {
        padding: 10px 12px
    }

.term-row {
    position: relative;
    min-height: 57px;
    border-bottom: 1px solid #e8eeeb;
    background: #fff;
    transition: background .15s
}

    .term-row:last-child {
        border-bottom: 0
    }

    .term-row:hover {
        background: #fbfdfc
    }

    .term-row > div:not(.term-editor) {
        min-width: 0;
        padding: 11px 12px
    }

.term-number {
    color: #536862;
    font-size: .73rem
}

    .term-number span {
        display: none
    }

.term-heading {
    color: #20352f;
    font-size: .77rem;
    font-weight: 700;
    overflow-wrap: anywhere
}

.term-description-preview {
    display: -webkit-box;
    margin: 0;
    color: #596d67;
    font-size: .74rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden
}

.term-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px
}

    .term-actions .btn {
        min-width: 34px;
        font-size: .7rem
    }

    .term-actions .btn-outline-danger {
        padding-inline: 9px
    }

.term-editor {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: minmax(180px,31%) 1fr;
    gap: 14px;
    padding: 15px 18px;
    border-top: 1px solid #dce6e1;
    background: #f8fbf9
}

    .term-editor[hidden] {
        display: none
    }

    .term-editor .form-label {
        margin-bottom: 5px;
        font-size: .75rem;
        font-weight: 650
    }

    .term-editor .form-control {
        border-color: #d4dfd9;
        border-radius: 8px;
        font-size: .8rem
    }

    .term-editor textarea {
        resize: vertical
    }

.term-editor-actions {
    grid-column: 1/-1;
    display: flex;
    gap: 8px;
    justify-content: flex-end
}

.terms-empty {
    padding: 35px;
    color: var(--text-secondary);
    text-align: center
}

    .terms-empty i {
        font-size: 1.35rem
    }

    .terms-empty p {
        margin: 7px 0 0;
        font-size: .8rem
    }

.terms-actions {
    gap: 15px
}

    .terms-actions > div {
        display: flex;
        gap: 9px
    }

    .terms-actions > .btn-primary {
        margin-left: auto
    }

.terms-step-page .modal-content {
    border-color: #dce5e0;
    border-radius: 11px
}

.terms-step-page .modal-header {
    border-bottom-color: #e6ece9
}

.terms-step-page .modal-footer {
    border-top-color: #e6ece9
}

.terms-step-page .modal-body .form-label {
    font-size: .78rem;
    font-weight: 650
}

@media(max-width:767.98px) {
    .terms-card-header {
        align-items: flex-start;
        flex-direction: column
    }

        .terms-card-header > .btn {
            width: 100%
        }

    .quotation-terms-table {
        border: 0;
        overflow: visible
    }

    .terms-table-header {
        display: none
    }

    .term-row {
        grid-template-columns: 42px minmax(0,1fr) auto;
        margin-bottom: 10px;
        border: 1px solid #e0e8e4 !important;
        border-radius: 9px
    }

        .term-row > div:not(.term-editor) {
            padding: 10px
        }

    .term-number {
        grid-row: 1/3;
        align-self: start
    }

        .term-number span {
            display: inline
        }

    .term-heading {
        padding-bottom: 3px !important
    }

    .term-description {
        grid-column: 2/4;
        padding-top: 0 !important
    }

    .term-actions {
        grid-column: 3;
        grid-row: 1
    }

    .term-editor {
        grid-template-columns: 1fr;
        border-radius: 0 0 9px 9px
    }

    .terms-actions {
        align-items: stretch;
        flex-direction: column
    }

        .terms-actions > div {
            display: grid;
            grid-template-columns: 1fr 1fr
        }

        .terms-actions > .btn-primary {
            width: 100%;
            margin: 0
        }
}

@media(max-width:575.98px) {
    .terms-card-header {
        padding: 15px
    }

    .quotation-terms-table {
        margin: 12px
    }

    .term-row {
        grid-template-columns: 35px minmax(0,1fr)
    }

    .term-number {
        grid-row: auto
    }

    .term-heading {
        padding-left: 0 !important
    }

    .term-description {
        grid-column: 1/-1;
        padding: 0 10px 9px !important
    }

    .term-actions {
        grid-column: 1/-1;
        grid-row: auto;
        justify-content: flex-start;
        padding-top: 0 !important
    }

        .term-actions .btn-outline-danger {
            font-size: .7rem
        }

            .term-actions .btn-outline-danger .visually-hidden {
                position: static !important;
                width: auto !important;
                height: auto !important;
                margin-left: 4px !important;
                clip: auto !important;
                white-space: normal !important
            }

    .term-editor {
        padding: 13px
    }

    .term-editor-actions {
        justify-content: stretch
    }

        .term-editor-actions .btn {
            flex: 1
        }
}

/* Final internal review */
.review-step-page .quotation-progress {
    margin-bottom: 14px
}

.review-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 11px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 9px;
    font-size: .76rem
}

.review-alert-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    font-size: .9rem
}

.review-alert > div {
    min-width: 0;
    flex: 1
}

.review-alert strong {
    display: block;
    margin: 1px 0 3px;
    font-size: .82rem
}

.review-alert ul {
    margin: 0;
    padding-left: 17px
}

.review-alert .btn {
    align-self: center;
    flex: none;
    white-space: nowrap
}

.review-alert-warning {
    border-color: #eed895;
    background: #fff9e7;
    color: #70520a
}

    .review-alert-warning .review-alert-icon {
        background: #fff0bd;
        color: #b27b00
    }

.review-alert-error {
    border-color: #efc8cc;
    background: #fff5f6;
    color: #8d2832
}

    .review-alert-error .review-alert-icon {
        background: #f9dde0;
        color: #b42332
    }

.review-sections {
    display: grid;
    gap: 9px
}

.review-section-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(18,54,43,.025)
}

    .review-section-card > header {
        display: grid;
        grid-template-columns: 40px 1fr auto;
        align-items: center;
        gap: 12px;
        min-height: 52px;
        padding: 8px 14px
    }

    .review-section-card h2 {
        margin: 0;
        font-size: .9rem;
        font-weight: 720
    }

    .review-section-card header .btn {
        min-width: 53px
    }

.review-section-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--grinew-primary-soft);
    color: var(--grinew-primary);
    font-size: .88rem
}

.review-section-body {
    padding: 0 15px 13px 66px
}

.review-customer > strong {
    display: block;
    font-size: .83rem
}

.review-customer p, .review-primary-value, .review-empty, .review-count {
    margin: 3px 0 0;
    color: var(--text-secondary);
    font-size: .75rem;
    overflow-wrap: anywhere
}

.review-project > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 7px;
    color: #50635d;
    font-size: .72rem
}

    .review-project > div span {
        display: inline-flex;
        align-items: center;
        gap: 7px
    }

.review-project i {
    color: #72837d
}

.review-metric-grid {
    display: grid
}

.review-metric-grid-3 {
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.review-metric-grid-4 {
    grid-template-columns: repeat(4,minmax(0,1fr))
}

.review-metric-grid-6 {
    grid-template-columns: repeat(6,minmax(0,1fr))
}

/* The overview occupies a third of desktop widths; keep large INR totals readable. */
@media (min-width:1200px) and (max-width:1599.98px) {
    .review-metric-grid-6 { grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:16px; }
    .review-metric-grid-6 .review-metric:nth-child(4) { padding-left:0; border-left:0; }
}

.review-metric {
    min-width: 0;
    padding: 4px 15px;
    border-left: 1px solid #e2e9e5
}

    .review-metric:first-child {
        padding-left: 0;
        border-left: 0
    }

    .review-metric strong, .review-metric span {
        display: block;
        overflow-wrap: anywhere
    }

    .review-metric strong {
        color: #172e27;
        font-size: .79rem
    }

    .review-metric span {
        margin-top: 3px;
        color: var(--text-secondary);
        font-size: .65rem
    }

.review-equipment-list {
    margin-top: 7px;
    border: 1px solid #e8eeeb;
    border-radius: 7px;
    background: #fafcfb;
    overflow: hidden
}

.review-equipment-row {
    display: grid;
    grid-template-columns: minmax(105px,24%) 1fr auto;
    gap: 12px;
    padding: 7px 10px;
    border-bottom: 1px solid #e8eeeb;
    color: #52655f;
    font-size: .71rem
}

    .review-equipment-row:last-child {
        border-bottom: 0
    }

    .review-equipment-row strong {
        color: #253b34;
        font-size: .72rem;
        font-weight: 600
    }

    .review-equipment-row span:last-child {
        text-align: right;
        white-space: nowrap
    }

.review-actions {
    margin-top: 9px
}

    .review-actions > div, .review-finish {
        display: flex;
        align-items: center;
        gap: 9px
    }

.review-finish {
    margin-left: auto
}

    .review-finish small {
        max-width: 165px;
        color: var(--text-secondary);
        font-size: .66rem;
        text-align: right
    }

.quotation-completion {
    margin: 12px -20px -20px;
    padding: 15px 20px 17px;
    border-top: 1px solid #d7e9df;
    background: #f0f8f4
}

.quotation-completion-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--grinew-primary-dark)
}

    .quotation-completion-heading > i {
        font-size: 1rem
    }

.quotation-completion h3 {
    margin: 0;
    font-size: .79rem;
    font-weight: 720
}

.quotation-completion ul {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 5px 16px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none
}

.quotation-completion li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #49615a;
    font-size: .7rem
}

    .quotation-completion li i {
        display: grid;
        width: 18px;
        height: 18px;
        place-items: center;
        border-radius: 50%;
        background: #d3ebdf;
        color: var(--grinew-primary);
        font-size: .55rem
    }

    .quotation-completion li.incomplete i {
        background: #e4e9e6;
        color: #71817c
    }

.quotation-completion p {
    margin: 12px 0 0;
    padding-top: 11px;
    border-top: 1px solid #d7e7df;
    color: #176448;
    font-size: .72rem;
    font-weight: 700
}

    .quotation-completion p i {
        margin-right: 7px
    }

@media(max-width:991.98px) {
    .review-metric-grid-6 {
        grid-template-columns: repeat(3,minmax(0,1fr));
        row-gap: 12px
    }

        .review-metric-grid-6 .review-metric:nth-child(4) {
            padding-left: 0;
            border-left: 0
        }

    .review-metric-grid-4 {
        grid-template-columns: repeat(2,minmax(0,1fr));
        row-gap: 12px
    }

        .review-metric-grid-4 .review-metric:nth-child(3) {
            padding-left: 0;
            border-left: 0
        }
}

@media(max-width:767.98px) {
    .review-actions {
        align-items: stretch;
        flex-direction: column
    }

        .review-actions > div {
            display: grid;
            grid-template-columns: 1fr 1fr
        }

    .review-finish {
        width: 100%;
        margin: 0;
        justify-content: space-between
    }

    .review-alert {
        flex-wrap: wrap
    }

        .review-alert .btn {
            margin-left: 46px
        }

    .review-equipment-row {
        grid-template-columns: 1fr auto
    }

        .review-equipment-row span:first-child {
            grid-column: 1/-1;
            color: var(--text-secondary);
            font-size: .65rem
        }

        .review-equipment-row strong {
            min-width: 0
        }

    .review-metric-grid-6 {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

        .review-metric-grid-6 .review-metric:nth-child(odd) {
            padding-left: 0;
            border-left: 0
        }

        .review-metric-grid-6 .review-metric:nth-child(4) {
            padding-left: 15px;
            border-left: 1px solid #e2e9e5
        }
}

@media(max-width:575.98px) {
    .review-section-card > header {
        grid-template-columns: 36px 1fr auto;
        padding-inline: 11px
    }

    .review-section-body {
        padding: 1px 12px 12px
    }

    .review-metric-grid-3 {
        grid-template-columns: repeat(2,minmax(0,1fr));
        row-gap: 12px
    }

        .review-metric-grid-3 .review-metric:nth-child(3) {
            padding-left: 0;
            border-left: 0
        }

    .review-project > div {
        flex-direction: column
    }

    .review-alert .btn {
        width: calc(100% - 46px)
    }

    .review-finish {
        align-items: stretch;
        flex-direction: column
    }

        .review-finish small {
            text-align: left
        }

        .review-finish .btn {
            width: 100%
        }
}

/* Global feedback */
#toast-region {
    z-index: 1090;
    top: 88px;
    right: 18px;
    width: min(390px,calc(100vw - 32px));
    pointer-events: none
}

.app-toast {
    width: 100%;
    border: 1px solid transparent;
    border-left-width: 4px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16,44,35,.18);
    pointer-events: auto
}

    .app-toast .toast-body {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 13px;
        color: #243832
    }

        .app-toast .toast-body > span {
            flex: 1;
            line-height: 1.4
        }

    .app-toast .toast-icon {
        margin-top: 3px
    }

.app-toast-success {
    border-color: #198754
}

    .app-toast-success .toast-icon {
        color: #198754
    }

.app-toast-danger {
    border-color: #dc3545
}

    .app-toast-danger .toast-icon {
        color: #dc3545
    }

.app-toast-warning {
    border-color: #e0a800
}

    .app-toast-warning .toast-icon {
        color: #8a6500
    }

.app-toast-info {
    border-color: #0dcaf0
}

    .app-toast-info .toast-icon {
        color: #087990
    }

.validation-summary-errors {
    margin-bottom: 1rem;
    padding: .7rem .85rem;
    border: 1px solid #f0c7cb;
    border-radius: 8px;
    background: #fff4f5;
    color: #a51d2a
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 1.2rem
    }

.validation-summary-valid {
    display: none
}

.field-validation-error {
    display: block;
    margin-top: .3rem;
    font-size: .8rem;
    color: #b42332
}

.input-validation-error {
    border-color: #dc3545 !important
}

.required-marker {
    color: #b42332
}

@media(max-width:575.98px) {
    #toast-region {
        top: 76px;
        right: 12px;
        width: calc(100vw - 24px)
    }
}

/* Quotation details overview */
.quotation-details-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px 28px 32px
}

.details-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #243b59;
    font-size: .82rem;
    text-decoration: none
}

    .details-back:hover {
        color: var(--green)
    }

.details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px
}

.details-heading h1 {
    margin: 0;
    color: #101f4b;
    font-size: 1.65rem;
    font-weight: 750;
    letter-spacing: -.02em
}

.details-heading p {
    margin: 6px 0 0;
    color: #65738c;
    font-size: .88rem
}

.details-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap
}

    .details-actions .btn {
        min-height: 39px;
        padding: 8px 13px;
        font-size: .78rem;
        font-weight: 600
    }

        .details-actions .btn i {
            margin-right: 6px
        }

    .details-actions .dropdown-item i {
        width: 20px;
        color: #60706a
    }

.details-alert {
    padding: 10px 14px;
    font-size: .8rem
}

.details-metrics {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    margin-bottom: 10px;
    border: 1px solid #e1e8e4;
    border-radius: 10px;
    background: #fff;
    overflow: hidden
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 98px;
    padding: 16px;
    border-right: 1px solid #e5ebe8
}

    .metric-card:last-child {
        border-right: 0
    }

.metric-icon, .card-icon {
    display: grid;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: #e5f4ed;
    color: #087458
}

.metric-icon {
    width: 46px;
    height: 46px;
    font-size: 1rem
}

.metric-icon-warning {
    background: #fff1dd;
    color: #c17900
}

.metric-card > div {
    min-width: 0
}

.metric-card span:not(.metric-icon), .metric-card strong, .metric-card small {
    display: block
}

.metric-card > div > span {
    margin-bottom: 5px;
    color: #536486;
    font-size: .71rem
}

.metric-card strong {
    color: #101f4b;
    font-size: .91rem;
    line-height: 1.25;
    overflow-wrap: anywhere
}

.metric-card small {
    margin-top: 3px;
    color: #5b6a82;
    font-size: .67rem
}

.details-tabs {
    margin-bottom: 13px;
    border-bottom: 1px solid #e0e7e3
}

    .details-tabs .nav {
        flex-wrap: nowrap;
        overflow-x: auto
    }

    .details-tabs .nav-link {
        display: flex;
        align-items: center;
        gap: 9px;
        min-height: 50px;
        padding: 12px 17px;
        border-bottom: 3px solid transparent;
        color: #536486;
        font-size: .78rem;
        white-space: nowrap
    }

        .details-tabs .nav-link:hover {
            color: #087458
        }

        .details-tabs .nav-link.active {
            border-bottom-color: #087458;
            background: #fff;
            color: #087458;
            font-weight: 700
        }

        .details-tabs .nav-link i {
            width: 17px;
            text-align: center
        }

.details-card {
    display: flex;
    min-width: 0;
    padding: 14px 17px;
    border: 1px solid #e1e8e4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(18,54,43,.025);
    flex-direction: column
}

    .details-card > header {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 42px;
        margin-bottom: 11px
    }

        .details-card > header h2 {
            margin: 0;
            color: #10204c;
            font-size: .89rem;
            font-weight: 750
        }

        .details-card > header p {
            margin: 4px 0 0;
            color: #64728a;
            font-size: .72rem
        }

        .details-card > header .badge {
            margin-left: 7px;
            vertical-align: middle
        }

.card-icon {
    width: 40px;
    height: 40px;
    font-size: .9rem
}

.details-list, .financial-list, .followup-meta {
    margin: 0
}

    .details-list > div {
        display: grid;
        grid-template-columns: minmax(115px,31%) 1fr;
        gap: 12px;
        padding: 4px 0;
        font-size: .75rem
    }

    .details-list dt, .followup-meta dt {
        color: #596b8b;
        font-weight: 400
    }

    .details-list dd, .followup-meta dd {
        margin: 0;
        color: #41557c;
        overflow-wrap: anywhere
    }

    .details-list .details-separator {
        margin-top: 8px;
        padding-top: 11px;
        border-top: 1px solid #edf1ef
    }

.muted {
    color: #718079
}

.readiness-state {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 8px;
    font-size: .75rem
}

    .readiness-state > i {
        margin-top: 2px;
        font-size: 1.1rem
    }

    .readiness-state strong {
        display: block;
        margin-bottom: 4px;
        font-size: .78rem
    }

    .readiness-state p {
        margin: 0;
        line-height: 1.45
    }

.readiness-ready {
    background: #edf8f3;
    color: #087458
}

.readiness-warning {
    background: #fff8e6;
    color: #8a5b00
}

.readiness-error {
    background: #fff0f1;
    color: #a52c38
}

.card-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    flex-direction: column;
    padding: 18px;
    color: #718079;
    text-align: center
}

    .card-empty i {
        margin-bottom: 8px;
        font-size: 1.35rem
    }

    .card-empty strong, .card-empty span {
        display: block
    }

    .card-empty strong {
        color: #42534d;
        font-size: .78rem
    }

    .card-empty span {
        margin-top: 4px;
        font-size: .69rem
    }

.followup-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #edf6ff;
    color: #125dcc
}

    .followup-highlight > i {
        margin-top: 3px
    }

    .followup-highlight strong, .followup-highlight span {
        display: block
    }

    .followup-highlight strong {
        color: #10204c;
        font-size: .78rem
    }

    .followup-highlight span {
        margin-top: 4px;
        font-size: .68rem
    }

.followup-meta {
    padding: 10px 0
}

    .followup-meta > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 4px 0;
        font-size: .69rem
    }

.public-link-card {
    min-height: 92px;
    justify-content: center
}

    .public-link-card > header {
        margin: 0
    }

    .public-link-card .input-group {
        max-width: 820px
    }

    .public-link-card > .muted {
        margin-top: 5px;
        font-size: .67rem
    }

.financial-list > div {
    display: grid;
    grid-template-columns: 1fr minmax(130px,36%);
    gap: 15px;
    padding: 8px 4px;
    color: #445779;
    font-size: .75rem
}

.financial-list dt {
    font-weight: 400
}

.financial-list dd {
    margin: 0;
    font-weight: 600
}

.financial-list .financial-total {
    margin-top: 5px;
    padding: 14px;
    border-radius: 8px;
    background: #eaf6f0;
    color: #086b54;
    font-size: .84rem
}

.overview-grid {
    align-items: stretch
}

@media(max-width:1199.98px) {
    .details-metrics {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }

    .metric-card:nth-child(3) {
        border-right: 0
    }

    .metric-card:nth-child(-n+3) {
        border-bottom: 1px solid #e5ebe8
    }

    .public-link-card {
        min-height: unset
    }
}

@media(max-width:991.98px) {
    .quotation-details-page {
        padding-inline: 18px
    }

    .details-header {
        align-items: flex-start;
        flex-direction: column
    }

    .details-actions {
        justify-content: flex-start
    }

    .details-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .metric-card:nth-child(3) {
        border-right: 1px solid #e5ebe8
    }

    .metric-card:nth-child(even) {
        border-right: 0
    }

    .metric-card:nth-child(-n+4) {
        border-bottom: 1px solid #e5ebe8
    }
}

@media(max-width:575.98px) {
    .quotation-details-page {
        padding: 15px 10px 24px
    }

    .details-heading h1 {
        font-size: 1.4rem
    }

    .details-actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr
    }

        .details-actions .dropdown, .details-actions .dropdown > .btn {
            width: 100%
        }

    .details-metrics {
        grid-template-columns: 1fr 1fr
    }

    .metric-card {
        min-height: 106px;
        padding: 12px;
        align-items: flex-start
    }

    .metric-icon {
        width: 35px;
        height: 35px
    }

    .metric-card:nth-child(odd) {
        border-right: 1px solid #e5ebe8
    }

    .metric-card:nth-child(even) {
        border-right: 0
    }

    .metric-card:nth-child(-n+4) {
        border-bottom: 1px solid #e5ebe8
    }

    .details-tabs .nav-link {
        padding-inline: 13px
    }

    .details-card {
        padding: 13px
    }

    .details-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 6px 0
    }

    .public-link-card > header {
        align-items: flex-start;
        flex-wrap: wrap
    }

        .public-link-card > header .ms-auto {
            width: 100%;
            margin-left: 0 !important
        }

        .public-link-card > header .btn {
            flex: 1
        }

    .public-link-card .input-group {
        display: grid;
        grid-template-columns: 1fr auto
    }

        .public-link-card .input-group input {
            grid-column: 1/-1;
            width: 100%;
            border-radius: 6px !important
        }

        .public-link-card .input-group .btn {
            margin-top: 6px;
            border-radius: 6px !important
        }

    .followup-meta > div {
        grid-template-columns: 1fr
    }

    .financial-list > div {
        grid-template-columns: 1fr auto
    }
}

/* Shared application typography. Keep these rules out of quotation-pdf.css. */
h1, h2, h3, h4, h5, h6,
.page-title, .section-title, .wizard-page-header h1,
.quotation-card-heading, .wizard-section-heading,
.login-brand-message h1, .login-form-wrap h2,
.review-section-card header h2, .details-card header h2,
.dashboard-panel-header h2 {
    font-family: var(--font-heading);
}

.page-title, .quotations-header .page-title, .wizard-page-header h1, .details-heading h1, .dashboard-hero h1 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    line-height: 1.3;
}
.page-subtitle, .wizard-page-header p, .login-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-regular);
    line-height: 1.5;
}
.section-title, .wizard-section-heading {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    line-height: 1.35;
}
.content-card h2, .details-card header h2, .review-section-card header h2,
.dashboard-panel-header h2, .modal-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    line-height: 1.4;
}

.nav-caption {
    font-family: var(--font-body);
    font-size: .6875rem;
    font-weight: var(--weight-bold);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.app-sidebar .nav-link, .offcanvas .nav-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}
.app-topbar .nav-link, .profile-button, .dropdown-item {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}
.btn, .new-quotation-btn {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
}
.details-actions .btn, .quotation-filter-bar .btn,
.customer-filter-bar .btn, .add-quotation-btn,
.term-actions .btn, .product-table .btn {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
}
.form-label, label:not(.form-check-label) {
    font-family: var(--font-body);
    font-size: .8125rem;
    font-weight: var(--weight-semibold);
}
.filter-bar .form-label, .customer-filter-bar .form-label,
.quotation-filter-bar .form-label, .login-field .form-label,
.project-form-card .form-label, .system-form-card .form-label,
.equipment-editor-fields .form-label, .pricing-card .form-label,
.performance-form .form-label, .term-editor .form-label,
.terms-step-page .modal-body .form-label {
    font-size: .8125rem;
    font-weight: var(--weight-semibold);
}
.form-control, .form-select, .input-group-text {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-regular);
}
.customer-filter-bar .form-control, .customer-filter-bar .form-select,
.customer-filter-bar .input-group-text, .quotation-filter-bar .form-control,
.quotation-filter-bar .form-select, .quotation-filter-bar .input-group-text,
.login-input-wrap .form-control, .project-form-card .form-control,
.system-form-card .form-control, .system-form-card .input-group .form-control,
.product-search .form-control, .equipment-editor-fields .form-control,
.pricing-card .form-control, .performance-form .form-control,
.performance-form .input-group .form-control, .term-editor .form-control {
    font-size: var(--text-sm);
    font-weight: var(--weight-regular);
}
.form-text, .text-secondary small { font-size: var(--text-xs); }
.field-validation-error, .validation-summary-errors, .login-field-validation,
.login-validation-summary, .invalid-feedback {
    font-family: var(--font-body);
    font-size: .8125rem;
    font-weight: var(--weight-regular);
}
.app-toast, .app-toast .toast-body {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

.table, .table td, .users-table td, .specification-table td {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-regular);
    line-height: 1.45;
}
.table th, .users-table th, .specification-table th {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    line-height: 1.35;
}
.table td > strong, .users-table td > strong { font-weight: var(--weight-semibold); }
.badge, .custom-badge {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
}
.quotation-progress-step, .wizard-step { font-family: var(--font-body); font-size: .8125rem; font-weight: var(--weight-medium); }
.dashboard-kpi strong {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: var(--weight-bold);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.metric-card strong, .review-metric strong {
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.metric-card strong { font-size: var(--text-sm); overflow-wrap: break-word; }
.metric-card:nth-child(-n+2) strong { font-size: var(--text-xl); }
.details-metrics .metric-card { gap: 8px; padding-inline: 12px; }
.details-metrics .metric-icon { width: 35px; height: 35px; }
.dashboard-kpi .kpi-label, .kpi-label, .metric-card > div > span {
    font-family: var(--font-body);
    font-size: .8125rem;
    font-weight: var(--weight-medium);
}
.net-investment-amount, .financial-total dd {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    font-variant-numeric: tabular-nums;
}
.table td, .financial-list dd, .overview-financials dd,
.review-metric strong, .performance-preview strong,
.metric-card strong { font-variant-numeric: tabular-nums; }

@media (max-width: 767.98px) {
    .page-title, .quotations-header .page-title, .wizard-page-header h1, .details-heading h1, .dashboard-hero h1 { font-size: 1.375rem; }
    .section-title, .wizard-section-heading { font-size: 1.0625rem; }
    .dashboard-kpi strong { font-size: 1.5rem; }
}
