:root {
    --ink: #172033;
    --muted: #667085;
    --line: #e6eaf0;
    --paper: #ffffff;
    --canvas: #f6f8fc;
    --brand: #5b4bdb;
    --brand-dark: #4134ae;
    --success: #16794c;
    --pending: #9a6700;
    --teal: #0b8f87;
    --teal-dark: #08756f;
    --teal-soft: #e8f8f4;
    --mint-soft: #e8f8f4;
    --purple: #5b45e6;
    --purple-soft: #efedff;
    --brand-navy: #111a31;
}

/* Orders, procurement and controlled returns share the existing product/inventory
   visual language, while keeping action-heavy tables usable on small screens. */
.commerce-page{display:grid;gap:24px}.commerce-page>.page-heading{margin-bottom:0}.commerce-page>.card{overflow:hidden}.commerce-page .section-heading{margin-bottom:18px}.commerce-page .inventory-table form,.commerce-row-actions{display:flex;align-items:center;gap:8px;margin:0;flex-wrap:wrap}.commerce-page .inventory-table form select{min-width:150px}.commerce-row-actions form input[type=date]{min-width:150px}.commerce-compact-form{display:grid;gap:14px;padding-right:24px;border-right:1px solid #dfe7ee}.commerce-compact-form label{display:grid;gap:7px}.commerce-page ul{display:grid;gap:8px;padding-left:20px}.commerce-page select{max-width:100%}
@media(max-width:760px){.commerce-page{gap:16px}.commerce-page>.card{padding:20px}.commerce-page .product-form-grid{grid-template-columns:1fr}.commerce-compact-form{padding-right:0;padding-bottom:20px;border-right:0;border-bottom:1px solid #dfe7ee}.commerce-page .inventory-table form{align-items:stretch;flex-direction:column}.commerce-page .inventory-table form select,.commerce-page .inventory-table form button{width:100%;min-width:0}.inventory-stock-in-page .inventory-table input,.inventory-stock-in-page .inventory-table select{min-width:150px}}
.showroom-slide-admin-grid{display:grid;gap:18px;grid-template-columns:repeat(3,minmax(0,1fr))}
.showroom-slide-admin-item{border:1px solid var(--border);border-radius:16px;overflow:hidden}.showroom-slide-admin-item>img,.showroom-slide-default-preview{height:180px;object-fit:cover;width:100%}
.showroom-slide-default-preview{background:linear-gradient(135deg,#102f3a,#0f8f84);color:#fff;display:flex;flex-direction:column;gap:8px;justify-content:flex-end;padding:20px}.showroom-slide-default-preview span{font-size:11px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.showroom-slide-default-preview strong{font-size:20px;line-height:1.2}
.showroom-slide-admin-item form{display:grid;gap:12px;padding:16px}.showroom-slide-admin-item form+form{padding-top:0}.showroom-slide-admin-item label{display:grid;gap:6px}.showroom-slide-admin-item input,.showroom-slide-admin-item select,.showroom-slide-admin-item textarea{width:100%}
@media(max-width:980px){.showroom-slide-admin-grid{grid-template-columns:1fr}}
.product-attribute-check{align-items:center;display:flex;min-height:45px}
.product-attribute-check input[type=checkbox]{height:20px;min-height:0;width:20px}
.inventory-stock-in-page{display:grid;gap:18px;max-width:none;min-width:0;width:100%}.inventory-stock-in-form{display:grid;gap:20px;max-width:none;padding:24px;width:100%}.inventory-ledger-note{background:#fff8e8;border:1px solid #f1d391;border-radius:12px;color:#755319;font-size:13px;line-height:1.5;margin:0;padding:13px 15px}.inventory-stock-in-form>footer{align-items:center;border-top:1px solid #e4eaef;display:flex;gap:10px;justify-content:flex-end;padding-top:18px}@media(max-width:700px){.inventory-stock-in-form{padding:17px 14px}.inventory-stock-in-form>footer{display:grid;grid-template-columns:1fr 1fr}.inventory-stock-in-form>footer a,.inventory-stock-in-form>footer button{justify-content:center;width:100%}}
.credit-note-page{gap:22px}.credit-note-heading p{margin-top:8px}.credit-note-form{gap:0;overflow:hidden;padding:0}.credit-note-section{padding:24px 28px}.credit-note-section+.credit-note-section{border-top:1px solid #e4eaef}.credit-note-section-heading{align-items:flex-start;display:flex;gap:12px;margin-bottom:18px}.credit-note-section-heading>span{align-items:center;background:#e7f7f3;border-radius:10px;color:#087f78;display:flex;flex:0 0 34px;font-size:12px;font-weight:900;height:34px;justify-content:center}.credit-note-section-heading h2{font-size:20px;margin:0}.credit-note-section-heading p{color:#748096;font-size:13px;margin:3px 0 0}.credit-note-stock-grid{align-items:stretch;display:grid;gap:15px;grid-template-columns:repeat(2,minmax(0,1fr))}.credit-note-stock-toggle{align-items:center;background:#f3faf8;border:1px solid #cce9e1;border-radius:12px;color:#26344a;cursor:pointer;display:flex;gap:12px;padding:13px 15px}.credit-note-stock-toggle input[type=checkbox]{accent-color:#0b9389;flex:0 0 20px;height:20px;margin:0;min-height:0;padding:0;width:20px}.credit-note-stock-toggle span{display:grid;gap:3px}.credit-note-stock-toggle strong{font-size:13px}.credit-note-stock-toggle small{color:#748096;font-size:11px;font-weight:600}.credit-note-location{color:#526078;display:grid;font-size:12px;font-weight:850;gap:7px}.credit-note-location select{background:#fff;border:1px solid #d7e1e8;border-radius:10px;min-height:47px;padding:10px 12px;width:100%}.credit-note-form>.inventory-ledger-note{border-radius:0;border-width:1px 0 0;margin:0;padding:14px 28px}.credit-note-form>footer{background:#f8fafb;margin:0;padding:16px 28px}
@media(max-width:700px){.credit-note-page{gap:14px;margin-top:-10px}.credit-note-heading{align-items:flex-start}.credit-note-heading .secondary-button{display:none}.credit-note-heading h1{font-size:34px}.credit-note-section{padding:18px 14px}.credit-note-section-heading{margin-bottom:15px}.credit-note-section-heading h2{font-size:18px}.credit-note-section-heading p{font-size:12px}.credit-note-stock-grid{grid-template-columns:1fr}.credit-note-stock-toggle{padding:12px}.credit-note-form>.inventory-ledger-note{padding:13px 14px}.credit-note-form>footer{padding:14px}}
.inventory-reversal-card{padding:0;overflow:hidden}.inventory-reversal-list{display:grid}.inventory-reversal-list article{align-items:center;border-bottom:1px solid #e4eaef;display:grid;gap:18px;grid-template-columns:minmax(0,1fr) minmax(280px,420px);padding:18px 20px}.inventory-reversal-list article:last-child{border-bottom:0}.inventory-reversal-list article>div{display:grid;gap:4px}.inventory-reversal-list span,.inventory-reversal-list small{color:#748096;font-size:12px}.inventory-reversal-list form{align-items:end;display:grid;gap:8px;grid-template-columns:1fr auto}.inventory-reversal-list label{color:#526078;display:grid;font-size:12px;font-weight:850;gap:6px}.inventory-reversal-list input{border:1px solid #d7e1e8;border-radius:10px;min-height:42px;padding:9px 11px}@media(max-width:700px){.inventory-reversal-list article{grid-template-columns:1fr;padding:16px 14px}.inventory-reversal-list form{grid-template-columns:1fr}.inventory-reversal-list button{width:100%}}
.inventory-page{display:grid;gap:18px}.inventory-summary-grid{display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}.inventory-summary-grid article{background:#fff;border:1px solid #dfe7ed;border-radius:14px;display:grid;gap:5px;padding:16px 18px}.inventory-summary-grid small{color:#748096;font-size:11px;font-weight:850;text-transform:uppercase}.inventory-summary-grid strong{font-size:25px}.inventory-summary-grid .is-warning{background:#fff9ec;border-color:#f0d28e}.inventory-summary-grid .is-danger{background:#fff3f2;border-color:#efbbb7}.inventory-list-card{overflow:hidden;padding:0}.inventory-list-card .product-filters{border:0;border-bottom:1px solid #e4eaef;border-radius:0}.inventory-table-wrap{overflow-x:auto}.inventory-table{border-collapse:collapse;width:100%}.inventory-table th{background:#f7f9fb;color:#647287;font-size:11px;letter-spacing:.04em;padding:11px 14px;text-align:left;text-transform:uppercase}.inventory-table td{border-top:1px solid #edf1f4;padding:13px 14px;vertical-align:middle}.inventory-table td strong,.inventory-table td small{display:block}.inventory-table td small{color:#7b8798;font-size:11px;margin-top:3px}.inventory-table tr.is-low{background:#fffaf0}.inventory-low-badge{background:#f7d77d;border-radius:999px;color:#694b00;display:inline-block;font-size:10px;font-weight:900;margin-left:7px;padding:3px 7px}.inventory-movement{border-radius:999px;display:inline-block;font-size:10px;font-weight:900;padding:4px 8px}.inventory-movement-stock_in,.inventory-movement-transfer_in,.inventory-movement-sale_reversal{background:#e4f7ef;color:#087b60}.inventory-movement-stock_out,.inventory-movement-sale,.inventory-movement-transfer_out{background:#fff0ee;color:#ae3b34}.inventory-movement-adjustment,.inventory-movement-reversal,.inventory-movement-opening{background:#eeeafd;color:#5740b6}.inventory-ledger-table .is-positive{color:#087b60;font-weight:850}.inventory-ledger-table .is-negative{color:#ae3b34;font-weight:850}.inventory-ledger-note-row td{background:#fafbfc!important;padding-top:7px!important}@media(max-width:850px){.inventory-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.inventory-table thead{display:none}.inventory-table,.inventory-table tbody,.inventory-table tr,.inventory-table td{display:block}.inventory-table tr{border-bottom:1px solid #dfe7ed;padding:10px 14px}.inventory-table td{align-items:center;border:0;display:flex;justify-content:space-between;padding:6px 0;text-align:right}.inventory-table td:before{color:#758196;content:attr(data-label);font-size:10px;font-weight:850;margin-right:14px;text-transform:uppercase}.inventory-table td strong,.inventory-table td small{text-align:right}.inventory-ledger-note-row{padding:0 14px 10px!important}.inventory-ledger-note-row td{display:block;text-align:left}.inventory-ledger-note-row td:before{display:none}}

/* Generic Product catalogue */
.product-page{display:grid;gap:18px}.product-heading{align-items:flex-end}.product-filter-card{padding:18px}.product-filters{align-items:end;display:grid;gap:12px;grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) minmax(140px,.8fr) auto}.product-filters label,.product-category-create label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#526078}.product-filters input,.product-filters select,.product-category-create input,.product-category-create textarea,.product-table select,.product-category-list select{background:#fff;border:1px solid #d9e3ea;border-radius:10px;min-height:43px;padding:9px 11px}.product-filter-actions{align-items:center;display:flex;gap:10px}.product-filter-actions a{color:#627086;font-weight:800}.product-layout{align-items:start;display:grid;gap:18px;grid-template-columns:minmax(0,1fr) minmax(280px,340px)}.product-layout-wide{grid-template-columns:1fr}.product-list-card,.product-category-card{padding:20px}.product-page-number{color:#758198;font-size:12px;font-weight:800}.product-table-wrap{overflow-x:auto}.product-table{border-collapse:collapse;width:100%}.product-table th{border-bottom:1px solid #dfe7ed;color:#718096;font-size:11px;letter-spacing:.08em;padding:10px;text-align:left;text-transform:uppercase}.product-table td{border-bottom:1px solid #edf1f4;padding:13px 10px;vertical-align:middle}.product-table td>small,.product-identity small,.product-category-list small{color:#758198;display:block;font-size:11px;margin-top:3px}.product-identity{align-items:center;display:flex;gap:10px}.product-identity>span{align-items:center;background:#e7f7f3;border-radius:10px;color:#087f78;display:flex;font-weight:900;height:38px;justify-content:center;width:38px}.product-table select,.product-category-list select{font-size:12px;min-height:36px;padding:6px 8px}.product-status{border-radius:999px;display:inline-flex;font-size:11px;font-weight:850;padding:6px 9px}.product-status-active{background:#e6f8f1;color:#08775f}.product-status-draft{background:#eef1ff;color:#4c45a7}.product-status-inactive,.product-status-archived{background:#f1f3f5;color:#616b78}.product-category-create{border-bottom:1px solid #e7edf1;display:grid;gap:11px;margin-bottom:14px;padding-bottom:16px}.product-category-list{display:grid;gap:8px}.product-category-list article{align-items:center;background:#f8fafb;border:1px solid #e5ebef;border-radius:11px;display:flex;gap:10px;justify-content:space-between;padding:10px}.product-list-card .empty-state{padding:42px 20px;text-align:center}
@media(max-width:900px){.product-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.product-filter-actions{grid-column:1/-1}.product-layout{grid-template-columns:1fr}}
@media(max-width:700px){.product-page{margin-top:-12px}.product-heading{align-items:stretch}.product-filters{grid-template-columns:1fr}.product-filter-actions{display:grid;grid-template-columns:1fr 1fr}.product-filter-actions a{align-items:center;border:1px solid #d9e3ea;border-radius:10px;display:flex;justify-content:center;min-height:43px}.product-list-card,.product-category-card,.product-filter-card{padding:14px}.product-table thead{display:none}.product-table tbody{display:grid;gap:10px}.product-table tr{border:1px solid #e2e9ee;border-radius:13px;display:grid;gap:8px;grid-template-columns:1fr 1fr;padding:12px}.product-table td{border:0;padding:0}.product-table td:first-child{grid-column:1/-1}.product-table td[data-label="Status"]{text-align:right}.product-table td[data-label="Category"]:before,.product-table td[data-label="Price"]:before,.product-table td[data-label="Status"]:before{color:#8490a2;content:attr(data-label);display:block;font-size:10px;font-weight:800;margin-bottom:3px;text-transform:uppercase}}
.product-heading-actions,.product-row-actions{align-items:center;display:flex;gap:8px}.product-row-actions a{color:var(--teal-dark);font-size:12px;font-weight:850}.product-form-page{display:grid;gap:18px;max-width:none;min-width:0;width:100%}.product-editor{display:grid;gap:0;max-width:none;overflow:hidden;padding:0;width:100%}.product-editor>section{padding:24px}.product-editor>section+section{border-top:1px solid #e4eaef}.product-form-section-heading{align-items:flex-start;display:flex;gap:12px;margin-bottom:18px}.product-form-section-heading>span{align-items:center;background:#e7f7f3;border-radius:10px;color:#087f78;display:flex;font-size:12px;font-weight:900;height:34px;justify-content:center;width:34px}.product-form-section-heading h2{font-size:20px;margin:0}.product-form-section-heading p{color:#748096;font-size:13px;margin:3px 0 0}.product-form-grid{display:grid;gap:15px;grid-template-columns:repeat(2,minmax(0,1fr))}.product-price-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-form-grid label{color:#526078;display:grid;font-size:12px;font-weight:850;gap:7px}.product-form-grid input,.product-form-grid select,.product-form-grid textarea{background:#fff;border:1px solid #d7e1e8;border-radius:10px;min-height:45px;padding:10px 12px;width:100%}.product-form-grid textarea{resize:vertical}.product-form-wide{grid-column:1/-1}.product-money-input{align-items:center;border:1px solid #d7e1e8;border-radius:10px;display:flex;overflow:hidden}.product-money-input:focus-within{border-color:var(--teal)}.product-money-input i{color:#647287;font-style:normal;font-weight:900;padding:0 11px}.product-money-input input{border:0;border-radius:0;min-width:0}.product-track-toggle{align-items:center!important;background:#f5faf8;border:1px solid #d9eee8;border-radius:12px;display:flex!important;grid-template-columns:auto 1fr!important;padding:13px}.product-track-toggle input{height:19px;min-height:0;width:19px}.product-track-toggle span{display:grid;gap:3px}.product-track-toggle small{color:#738096;font-weight:500}.product-editor>footer{align-items:center;background:#f8fafb;border-top:1px solid #e4eaef;display:flex;gap:10px;justify-content:flex-end;padding:16px 24px}
@media(max-width:800px){.product-price-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.product-heading-actions{display:grid;grid-template-columns:1fr 1fr}.product-form-page{margin-top:-12px}.product-editor>section{padding:17px 14px}.product-form-grid,.product-price-grid{grid-template-columns:1fr}.product-form-wide{grid-column:auto}.product-track-toggle{grid-column:1!important}.product-editor>footer{display:grid;grid-template-columns:1fr 1fr;padding:14px}.product-editor>footer a,.product-editor>footer button{justify-content:center;width:100%}.product-row-actions{justify-content:flex-end}}
.product-identity>img{border-radius:10px;height:38px;object-fit:cover;width:38px}.product-images-card{padding:22px}.product-image-count{background:#edf7f4;border-radius:999px;color:#08796f;font-size:12px;font-weight:900;padding:7px 10px}.product-image-upload{align-items:end;background:#f8fafb;border:1px solid #e2e9ee;border-radius:13px;display:grid;gap:12px;grid-template-columns:minmax(190px,1fr) minmax(220px,1fr) auto;margin-bottom:18px;padding:14px}.product-image-upload label{color:#526078;display:grid;font-size:12px;font-weight:850;gap:6px}.product-image-upload input{background:#fff;border:1px solid #d7e1e8;border-radius:10px;min-height:44px;padding:9px 11px}.product-image-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.product-image-grid article{border:1px solid #e0e7ec;border-radius:13px;display:grid;gap:10px;overflow:hidden;padding:10px}.product-image-grid article.is-cover{border-color:#77cbbb;box-shadow:0 0 0 2px #ddf6ef}.product-image-preview{aspect-ratio:4/3;background:#eef2f4;border-radius:9px;overflow:hidden;position:relative}.product-image-preview img{height:100%;object-fit:cover;width:100%}.product-image-preview span{background:#087f78;border-radius:999px;color:#fff;font-size:10px;font-weight:900;left:8px;padding:5px 8px;position:absolute;top:8px}.product-image-grid article>div+div{min-width:0}.product-image-grid article strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-image-grid article small{color:#758198;font-size:11px}.product-image-grid article footer{display:flex;gap:7px}.product-image-grid article footer form{flex:1}.product-image-grid article footer button{font-size:11px;min-height:36px;padding:6px 9px;width:100%}.product-image-remove{color:#a23b3b!important}
@media(max-width:700px){.product-images-card{padding:14px}.product-image-upload{grid-template-columns:1fr}.product-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-image-grid article footer{display:grid}.product-image-grid article footer form{width:100%}}

/* Final public-page brand refinements (kept after responsive rules for consistency). */
.marketing-home .home-cta { background: linear-gradient(120deg,var(--teal-dark),var(--purple)); }
.marketing-home .home-features .marketing-eyebrow { color: #72e5d5; }
.marketing-home .home-features .marketing-eyebrow i { background: #9b91ff; box-shadow: 0 0 0 5px #2e3148; }

.insurance-policy-more { max-width: 920px; }
.insurance-policy-more > summary { align-items: center; color: var(--teal-dark); cursor: pointer; display: flex; font-weight: 850; justify-content: space-between; list-style: none; }
.insurance-policy-more > summary::-webkit-details-marker { display: none; }
.insurance-policy-more__content { border-top: 1px solid var(--line); display: grid; gap: 18px; margin-top: 14px; padding-top: 16px; }
.insurance-policy-more__content > section { border-top: 1px solid var(--line); padding-top: 16px; }
.insurance-policy-more__content h2 { font-size: 18px; margin: 0 0 8px; }
.insurance-manual-detail { display: flex; flex-direction: column; }
.insurance-manual-detail > .page-heading { order: 1; }
.insurance-manual-detail > .customer-identity-card { order: 2; }
.insurance-manual-detail > .insurance-policy-more { align-self: flex-end; order: 3; }
.insurance-manual-detail > .insurance-renewal-summary { order: 4; }
.insurance-manual-detail > .daily-update-card { order: 5; }
.insurance-manual-detail > .insurance-policy-more:not([open]) { background: transparent; border: 0; box-shadow: none; padding: 0; width: auto; }
.insurance-manual-detail > .insurance-policy-more > summary { background: #effaf7; border: 1px solid #9edfd2; border-radius: 999px; box-shadow: 0 3px 9px rgba(11,143,135,.08); gap: 10px; min-height: 40px; padding: 0 14px; }
.insurance-manual-detail > .insurance-policy-more[open] { align-self: stretch; width: min(100%,920px); }
.insurance-manual-detail > .insurance-policy-more[open] > summary { width: fit-content; }

/* Final mobile insurance queue layout. */
@media (max-width: 700px) {
    main.insurance-page .insurance-queue-heading { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
    main.insurance-page .insurance-queue-heading .insurance-utility-action { font-size: 11px; min-height: 36px; padding: 0 10px; width: auto; }
    main.insurance-page form.insurance-queue-search { align-items: stretch; display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) auto; }
    main.insurance-page form.insurance-queue-search > label { grid-column: 1; margin: 0; }
    main.insurance-page form.insurance-queue-search .filter-actions { display: flex; gap: 6px; grid-column: 2; grid-template-columns: none; min-height: 0; }
    main.insurance-page form.insurance-queue-search .filter-actions > button,
    main.insurance-page form.insurance-queue-search .filter-actions > a { min-height: 44px; padding-inline: 14px; width: auto; }
}

/* Simple Insurance Desk, aligned with the daily Sales Leads workspace. */
@media (max-width: 700px) {
    main.insurance-page { display: flex; flex-direction: column; gap: 0; margin-top: 0; }
    main.insurance-page > .page-heading { display: none; }
    main.insurance-page > .insurance-work-tabs:not(.tractor-queue-tabs) {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        margin: 0 0 14px;
        order: 1;
    }
    main.insurance-page > .crm-directory-card {
        background: #fff;
        border: 1px solid #dce5eb;
        border-radius: 16px;
        box-shadow: 0 8px 22px rgba(25,45,72,.05);
        order: 2;
        padding: 16px;
    }
    main.insurance-page .insurance-queue-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 14px;
    }
    main.insurance-page .insurance-queue-heading h2 { font-size: 28px; letter-spacing: -.04em; }
    main.insurance-page .insurance-queue-heading .muted { display: none; }
    main.insurance-page .insurance-queue-heading .insurance-utility-action {
        background: var(--teal);
        border-color: var(--teal);
        color: #fff;
        font-size: 14px;
        justify-content: center;
        min-height: 46px;
        width: 100%;
    }
    main.insurance-page .crm-directory-card > .tractor-queue-tabs { margin: 0 0 14px; }
    main.insurance-page form.insurance-queue-search {
        background: transparent;
        border: 0;
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2,minmax(0,1fr));
        margin: 0 0 12px;
        padding: 0;
    }
    main.insurance-page form.insurance-queue-search > label { grid-column: 1 / -1; }
    main.insurance-page form.insurance-queue-search .filter-actions {
        display: grid;
        gap: 8px;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    main.insurance-page form.insurance-queue-search .filter-actions > button,
    main.insurance-page form.insurance-queue-search .filter-actions > a {
        min-height: 44px;
        width: 100%;
    }
    main.insurance-page form.insurance-queue-search .filter-actions > a {
        align-items: center;
        border: 1px solid #dce5eb;
        border-radius: 11px;
        color: #44516a;
        display: flex;
        font-weight: 800;
        justify-content: center;
    }
}

/* Final mobile insurance overrides must stay after legacy queue rules. */
@media (max-width: 700px) {
    main.insurance-page .insurance-work-tabs {
        display: grid !important;
        gap: 2px !important;
        grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    }
    main.insurance-page .insurance-work-tabs a { min-width: 0 !important; width: 100% !important; }
    main.insurance-page .insurance-table tbody { display: grid !important; gap: 9px !important; }
    main.insurance-page .insurance-table tbody tr {
        display: grid !important;
        gap: 8px 12px !important;
        grid-template-columns: minmax(0,1fr) auto !important;
        padding: 13px 14px !important;
    }
    main.insurance-page .insurance-table tbody td {
        display: block !important;
        grid-column: auto !important;
        padding: 0 !important;
        width: auto !important;
    }
    main.insurance-page .insurance-table td[data-label="Customer"] { grid-column: 1 !important; grid-row: 1 !important; }
    main.insurance-page .insurance-table td[data-label="Policy"] {
        border-top: 1px solid #edf1f4 !important;
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        padding-top: 9px !important;
    }
    main.insurance-page .insurance-table td[data-label="Next follow-up"] { grid-column: 1 !important; grid-row: 3 !important; }
    main.insurance-page .insurance-table td[data-label="Insurance owner"] { grid-column: 2 !important; grid-row: 3 !important; }
    main.insurance-page .insurance-table td[data-label=""] {
        align-self: center !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 0 !important;
    }
    main.insurance-page .insurance-table td[data-label=""] .action-link,
    main.insurance-page .insurance-table td[data-label=""] .secondary-button { width: auto !important; }
}

/* Insurance desk: final responsive authority. Keep the operational queue
   compact and scannable after the shared CRM mobile table cascade. */
.insurance-page .insurance-add-policy { align-items: center; display: inline-flex; gap: 5px; }
.insurance-page .insurance-primary-action { justify-content: center; margin: 0 0 14px; min-height: 46px; width: 100%; }
.insurance-page .insurance-add-icon { align-items: center; background: var(--teal); border-radius: 50%; color: #fff; display: inline-flex; font-size: 18px; height: 30px; justify-content: center; line-height: 1; width: 30px; }
.insurance-page .insurance-policy-composer:not([open]) { display: none; }
.insurance-page .insurance-policy-composer { margin: 0 0 16px; }
.insurance-page .insurance-policy-composer > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; }
.insurance-page .insurance-policy-composer form { display: grid; gap: 18px; margin-top: 18px; }
.insurance-page .insurance-policy-composer section { border-top: 1px solid var(--line); padding-top: 14px; }
.insurance-page .insurance-policy-composer h2 { font-size: 18px; margin: 0 0 5px; }
.customer-identity-card__actions.insurance-detail-contact-actions { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(112px,1fr)); }
.customer-identity-card__actions.insurance-detail-contact-actions .quick-urgent-reminder { grid-column: 1 / -1; width: 100%; }
.insurance-detail-contact-actions .action-link { align-items: center; border-radius: 12px; display: inline-flex; font-weight: 800; gap: 8px; justify-content: center; min-height: 44px; padding: 0 14px; text-align: center; }
.insurance-detail-contact-actions form { min-width: 0; }
.insurance-detail-contact-actions form .action-link { width: 100%; }
.insurance-contact-icon { align-items: center; display: inline-flex; flex: 0 0 20px; height: 20px; justify-content: center; }
.insurance-contact-icon svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 20px; }
.insurance-call-action { background: #f4f7ff; border-color: #c9d6f4; color: #294e9b; }
.insurance-call-action:hover { background: #eaf0ff; border-color: #9eb5e5; color: #183d88; text-decoration: none; }
.insurance-whatsapp-action { background: #effaf4; border-color: #a9dec0; color: #147a45; }
.crm-collection-task .insurance-whatsapp-action::before { background: currentColor; content: ''; flex: 0 0 20px; height: 20px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M20.5 11.7a8.5 8.5 0 0 1-12.6 7.5L3 20.5l1.3-4.7a8.5 8.5 0 1 1 16.2-4.1ZM8.3 7.5c.2-.4.4-.4.7-.4h.5l1.1 2.5c.1.3 0 .5-.2.7l-.8.9c.9 1.8 2 2.9 3.8 3.8l.9-.8c.2-.2.4-.3.7-.2l2.5 1.1v.5c0 .3 0 .5-.4.7-.6.4-1.4.6-2.1.5-3.7-.5-7.3-4-7.8-7.8-.1-.7.1-1.5.5-2.1Z'/%3E%3C/svg%3E") center / contain no-repeat; width: 20px; }
.crm-collection-task .insurance-call-action { background: #2457b8; border-color: #2457b8; color: #fff; }
.crm-collection-task .insurance-call-action:hover { background: #1c4698; border-color: #1c4698; color: #fff; }
.crm-collection-task .insurance-whatsapp-action { background: #16864b; border-color: #16864b; color: #fff; }
.crm-collection-task .insurance-whatsapp-action:hover { background: #106d3c; border-color: #106d3c; color: #fff; }
.insurance-whatsapp-action:hover { background: #e2f7eb; border-color: #78c99a; color: #0c6537; text-decoration: none; }
.insurance-detail-contact-actions .quick-urgent-reminder { border-radius: 12px; min-height: 44px; }
@media (max-width:620px) { .customer-identity-card__actions.insurance-detail-contact-actions { grid-template-columns: 1fr; margin-left: 0; width: 100%; } }
@media (max-width:620px) { .crm-detail-page:not(.crm-collection-task) .customer-identity-card__actions.insurance-detail-contact-actions { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) {
    .crm-collection-task .customer-identity-card__actions.insurance-detail-contact-actions {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .crm-collection-task .customer-identity-card__actions.insurance-detail-contact-actions form { margin: 0; }
    .crm-collection-task .customer-identity-card__actions.insurance-detail-contact-actions .action-link,
    .crm-collection-task .customer-identity-card__actions.insurance-detail-contact-actions .quick-urgent-reminder {
        border-radius: 10px;
        font-size: 11px;
        gap: 4px;
        grid-column: auto;
        min-height: 38px;
        padding: 0 5px;
        width: 100%;
    }
    .crm-collection-task .insurance-contact-icon,
    .crm-collection-task .insurance-contact-icon svg,
    .crm-collection-task .insurance-whatsapp-action::before {
        flex-basis: 16px;
        height: 16px;
        width: 16px;
    }
}
.insurance-page .insurance-queue-heading h2 { margin: 0; }
.insurance-page .insurance-queue-heading { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.insurance-page .insurance-utility-action { flex: 0 0 auto; font-size: 12px; min-height: 38px; padding: 0 12px; }
@media (max-width: 700px) {
    .insurance-page { margin-top: -18px; padding-bottom: 92px; }
    .insurance-page .page-heading {
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 16px;
        padding-bottom: 0;
    }
    .insurance-page .page-heading h1 {
        font-size: clamp(30px, 9vw, 38px);
        letter-spacing: -.045em;
        line-height: 1.02;
        margin: 7px 0 8px;
    }
    .insurance-page .page-heading p {
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
        max-width: 34ch;
    }
    .insurance-page .page-heading .member-actions { width: 100%; }
    .insurance-page .insurance-add-policy {
        background: #fff;
        border-color: #cfe0e7;
        color: #087f78;
        justify-content: center;
        min-height: 42px;
        width: 100%;
    }
    .insurance-page .insurance-primary-action { margin-bottom: 12px; }
    .insurance-page .insurance-queue-search { align-items: end; display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) auto; }
    .insurance-page .insurance-queue-search > label { grid-column: 1; }
    .insurance-page .insurance-queue-search .filter-actions { display: flex; grid-column: 2; }
    .insurance-page .insurance-queue-search .filter-actions button,
    .insurance-page .insurance-queue-search .filter-actions a { min-height: 44px; padding-inline: 16px; width: auto; }
    .insurance-page .insurance-work-tabs {
        background: #eef3f7;
        border: 1px solid #dce5ec;
        border-radius: 12px;
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        margin: 0 0 14px;
        overflow: visible;
        padding: 3px;
    }
    .insurance-page .insurance-work-tabs a {
        align-items: center;
        border: 0;
        border-radius: 9px;
        display: flex;
        font-size: 11px;
        justify-content: center;
        min-height: 38px;
        padding: 5px 3px;
    }
    .insurance-page .insurance-work-tabs a.active {
        background: #fff;
        box-shadow: 0 2px 7px rgba(25,45,72,.09);
        color: #087f78;
    }
    .insurance-page > .crm-directory-card {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
    .insurance-page .insurance-queue-heading { margin: 0 0 9px; }
    .insurance-page .insurance-queue-heading h2 { font-size: 20px; }
    .insurance-page .insurance-queue-heading .muted { font-size: 12px; margin: 2px 0 0; }
    .insurance-page .crm-table-wrap { margin: 0; }
    .insurance-page .insurance-table tbody {
        display: grid !important;
        gap: 9px !important;
    }
    .insurance-page .insurance-table tr {
        border: 1px solid #dce5eb !important;
        border-radius: 14px !important;
        box-shadow: 0 5px 14px rgba(25,45,72,.045) !important;
        display: grid !important;
        gap: 8px 12px !important;
        grid-template-columns: minmax(0,1fr) auto !important;
        margin: 0 !important;
        padding: 13px 14px !important;
    }
    .insurance-page .insurance-table td {
        display: block !important;
        font-size: 13px;
        grid-column: auto !important;
        padding: 0 !important;
        width: auto !important;
    }
    .insurance-page .insurance-table td::before {
        display: block;
        font-size: 9px;
        margin-bottom: 3px;
    }
    .insurance-page .insurance-table td[data-label="Customer"] {
        grid-column: 1 !important;
        grid-row: 1 !important;
        padding: 0 !important;
    }
    .insurance-page .insurance-table td[data-label="Customer"] strong { font-size: 16px; line-height: 1.25; }
    .insurance-page .insurance-table td[data-label="Customer"] span { font-size: 11px; margin-top: 1px; }
    .insurance-page .insurance-table td[data-label="Policy"] {
        border-top: 1px solid #edf1f4;
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        padding-top: 9px !important;
    }
    .insurance-page .insurance-table td[data-label="Policy"] strong { font-size: 13px; }
    .insurance-page .insurance-table td[data-label="Policy"] span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .insurance-page .insurance-table td[data-label="Next follow-up"] { grid-column: 1 !important; grid-row: 3 !important; }
    .insurance-page .insurance-table td[data-label="Insurance owner"] { grid-column: 2 !important; grid-row: 3 !important; min-width: 92px; }
    .insurance-page .insurance-table td[data-label=""] {
        align-self: center;
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 0 !important;
    }
    .insurance-page .insurance-table td[data-label=""] .action-link,
    .insurance-page .insurance-table td[data-label=""] .secondary-button {
        background: #eef9f7;
        border: 1px solid #c9ebe4;
        border-radius: 9px;
        color: #087f78;
        font-size: 11px;
        min-height: 34px;
        padding: 6px 10px;
        white-space: nowrap;
        width: auto !important;
    }
    .insurance-page .insurance-due-badge { font-size: 9px; margin-top: 4px; padding: 3px 7px; }
}

/* Insurance queue actions: daily follow-ups stay primary; setup actions stay compact. */
@media (max-width: 700px) {
    main.insurance-page .insurance-queue-heading { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
    main.insurance-page .insurance-queue-heading .insurance-utility-action {
        font-size: 11px;
        min-height: 36px;
        padding: 0 10px;
        width: auto;
    }
    main.insurance-page .insurance-queue-search {
        align-items: stretch;
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0,1fr) auto;
    }
    main.insurance-page .insurance-queue-search > label { grid-column: 1; margin: 0; }
    main.insurance-page .insurance-queue-search .filter-actions {
        display: flex;
        gap: 6px;
        grid-column: 2;
        min-height: 0;
    }
    main.insurance-page .insurance-queue-search .filter-actions > button,
    main.insurance-page .insurance-queue-search .filter-actions > a {
        min-height: 44px;
        padding-inline: 14px;
        width: auto;
    }
}

/* Compact mobile invoice builder: one clear form instead of nested cards. */
@media (max-width: 620px) {
    .billing-page .invoice-composer #invoice-builder { gap: 12px; }
    .billing-page .invoice-composer #invoice-builder > .invoice-form-section { padding: 12px; }
    .billing-page .invoice-composer #invoice-builder > .invoice-form-section .section-heading { margin-bottom: 10px; }
    .billing-page .invoice-composer #invoice-builder > .invoice-form-section .section-heading h2 { font-size: 21px; }
    .billing-page .table-wrap:has(.invoice-items) { border: 0; border-radius: 0; }
    .billing-page .invoice-items tr { background: #fff; gap: 10px; padding: 12px; }
    .billing-page .invoice-items input { min-height: 48px; }
    .billing-page .member-actions { margin-top: -1px; }
    .billing-page .invoice-discount-field { margin-top: 2px; }
    .billing-page .invoice-summary {
        background: #f4f7fb;
        border: 1px solid #e0e7ef;
        border-radius: 12px;
        gap: 8px;
        grid-template-columns: repeat(3,minmax(0,1fr));
        margin: 12px 0;
        padding: 12px;
    }
    .billing-page .invoice-summary span { gap: 2px; }
    .billing-page .invoice-summary strong { font-size: 15px; }
    .billing-page .invoice-summary .invoice-grand-total { grid-column: auto; }
    .billing-page .invoice-summary .invoice-grand-total strong { font-size: 20px; }
    .billing-page .invoice-form-section textarea[name="notes"] { min-height: 88px; }
    .billing-page .invoice-recordkeeping-notice { margin-top: -2px; }
}
.marketing-page a:focus-visible,
.marketing-home a:focus-visible,
.topbar a:focus-visible { outline: 3px solid rgba(11,143,135,.28); outline-offset: 3px; }

/* JANVIXO public brand system: navy builds trust, teal marks action, violet marks identity. */
.marketing-home,
.marketing-page { --brand: var(--purple); --brand-dark: #4735c4; }
.topbar .public-nav a:hover,
.topbar .public-nav a:focus-visible,
.site-footer a:hover,
.home-footer a:hover { color: var(--teal); }
.nav-cta,
.home-primary {
    background: linear-gradient(135deg,var(--teal),var(--purple));
    box-shadow: 0 11px 24px rgba(37,71,132,.22);
}
.nav-cta:hover,
.home-primary:hover { background: linear-gradient(135deg,var(--teal-dark),#4937c8); }
.marketing-eyebrow { color: var(--teal); }
.marketing-eyebrow i {
    background: var(--purple);
    box-shadow: 0 0 0 5px var(--purple-soft);
}
.marketing-home .home-hero-copy:after {
    background: linear-gradient(90deg,var(--teal),var(--purple),transparent);
    opacity: .55;
}
.home-hero h1 em {
    background: linear-gradient(100deg,var(--teal) 0%,var(--purple) 72%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.preview-top .preview-mark,
.workflow-strip strong { background: linear-gradient(135deg,var(--teal),var(--purple)); }
.preview-title small,
.steps-grid b,
.marketing-grid article b,
.pricing-card > span { color: var(--teal); }
.preview-glow { background: linear-gradient(135deg,#bfeee4,#d8d2ff); }
.pricing-card.featured {
    background: linear-gradient(145deg,var(--teal-soft),#fff 46%,var(--purple-soft));
    border-color: var(--purple);
    box-shadow: 0 18px 44px rgba(49,54,105,.11);
}
.faq-list details[open] { border-color: #b9ded7; box-shadow: inset 4px 0 0 var(--teal); }
.faq-list summary::marker { color: var(--purple); }
.public-contact-card {
    background: linear-gradient(135deg,var(--teal-soft),#fff 55%,var(--purple-soft));
    border-color: #b9ded7;
}
.marketing-banner {
    background: linear-gradient(120deg,var(--brand-navy),#20294a);
    border-top: 3px solid var(--teal);
}

/* Public feature education: homepage cards lead to one stable, detailed page. */
.home-features .feature-grid > a {
    background: #21263a;
    border: 1px solid #3a415d;
    border-radius: 16px;
    color: #fff;
    display: block;
    padding: 24px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.home-features .feature-grid > a:hover,
.home-features .feature-grid > a:focus-visible {
    background: #272d44;
    border-color: #8175f3;
    box-shadow: 0 18px 36px rgba(0,0,0,.24);
    transform: translateY(-2px);
}
.home-features .feature-grid > a > span {
    align-items: center;
    background: #353b56;
    border-radius: 11px;
    color: #c6c0ff;
    display: inline-flex;
    font-size: 24px;
    height: 44px;
    justify-content: center;
    margin-bottom: 24px;
    width: 44px;
}
.home-features .feature-grid > a:nth-child(3n+1) > span,
.home-features .feature-grid > a:nth-child(3n+1) small { color: #66dfcf; }
.home-features .feature-grid > a:nth-child(3n+1):hover,
.home-features .feature-grid > a:nth-child(3n+1):focus-visible { border-color: #38bcae; }
.home-features .feature-grid > a h3 { color: #fff; font-size: 18px; }
.home-features .feature-grid > a p { color: #c3cada; margin-top: 9px; }
.home-features .feature-grid small {
    color: #aaa1ff;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-top: 20px;
}
.feature-detail-page { max-width: 1040px; }
.feature-detail-intro { max-width: 820px; }
.feature-jump-nav {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(16,37,64,.08);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 30px;
    padding: 10px;
    position: sticky;
    top: 12px;
    z-index: 5;
}
.feature-jump-nav a {
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    padding: 9px 12px;
    text-decoration: none;
}
.feature-jump-nav a:hover,
.feature-jump-nav a:focus-visible { background: var(--mint-soft); color: var(--teal); }
.feature-detail-list { display: grid; gap: 18px; margin: 0 0 30px; }
.feature-detail-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(16,37,64,.07);
    display: grid;
    gap: 22px;
    grid-template-columns: 64px minmax(0,1fr);
    padding: 28px;
    scroll-margin-top: 110px;
}
.feature-detail-icon {
    align-items: center;
    background: var(--mint-soft);
    border-radius: 18px;
    color: var(--teal);
    display: flex;
    font-size: 28px;
    height: 58px;
    justify-content: center;
    width: 58px;
}
.feature-detail-card > div:last-child > span {
    color: var(--teal);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    margin-bottom: 7px;
    text-transform: uppercase;
}
.feature-detail-card h2 { font-size: clamp(23px,3vw,32px); margin: 0 0 8px; }
.feature-detail-card p { color: var(--muted); margin: 0; }
.feature-detail-card ol {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3,minmax(0,1fr));
    list-style-position: inside;
    margin: 20px 0 0;
    padding: 0;
}
.feature-detail-card li {
    background: var(--surface-soft);
    border-radius: 14px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    padding: 14px;
}
.feature-detail-note {
    background: #fff8e8;
    border: 1px solid #f1d58b;
    border-radius: 14px;
    color: #775914;
    font-size: 13px;
    margin-top: 16px;
    padding: 12px 14px;
}
.feature-detail-cta {
    align-items: center;
    background: linear-gradient(135deg,#0c8178,#10a08f);
    border-radius: 24px;
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 36px;
    padding: 28px;
}
.feature-detail-cta h2 { color: #fff; margin: 0 0 6px; }
.feature-detail-cta p { color: rgba(255,255,255,.8); margin: 0; }

@media (max-width:700px) {
    .home-features .feature-grid > a { padding: 18px; }
    .feature-detail-page { padding-top: 16px; }
    .feature-jump-nav {
        flex-wrap: nowrap;
        margin: 16px 0 20px;
        overflow-x: auto;
        position: static;
    }
    .feature-jump-nav a { flex: 0 0 auto; }
    .feature-detail-card { gap: 12px; grid-template-columns: 1fr; padding: 20px; scroll-margin-top: 20px; }
    .feature-detail-icon { height: 48px; width: 48px; }
    .feature-detail-card ol { grid-template-columns: 1fr; }
    .feature-detail-cta { align-items: stretch; flex-direction: column; padding: 22px; }
    .feature-detail-cta .button { width: 100%; }
}

/* Highlight the most recent delivery commitment without recreating the full activity history. */
.latest-remark {
    background: #f0fbf8;
    border: 1px solid #aee8d6;
    border-left: 4px solid var(--brand);
    border-radius: 10px;
    display: grid;
    gap: 4px;
    margin: 16px 0;
    padding: 12px 14px;
}
.latest-remark span {
    color: #087f73;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.latest-remark strong { color: var(--ink); line-height: 1.45; }
.latest-remark small { color: #738096; font-size: 10px; line-height: 1.4; }
.crm-detail-page.simple-record-page > .latest-remark,
.crm-detail-page.simple-record-page > .latest-remark-panel { order: 3; }
.customer-identity-card--with-remark { align-items: center; flex-wrap: wrap; }
.customer-identity-card--with-remark > .customer-identity-card__marker,
.customer-identity-card--with-remark > .customer-identity-card__content { order: 1; }
.customer-identity-card--with-remark > .latest-remark,
.customer-identity-card--with-remark > .latest-remark-panel { flex: 0 0 100%; margin: 5px 0 0; order: 2; }
.customer-identity-card--with-remark > .customer-identity-card__actions { flex: 0 0 100%; margin-left: 0; order: 3; width: 100%; }

/* Member controls stay inside the phone viewport instead of opening a clipped popover. */
@media (max-width: 700px) {
    .crm-page.crm-payment-queue > .page-heading {
        border-bottom: 0;
        margin-bottom: 12px;
        padding-bottom: 0;
    }
    .crm-page.crm-payment-queue > .page-heading .eyebrow,
    .crm-page.crm-payment-queue > .page-heading p {
        display: none;
    }
    .crm-page.crm-payment-queue > .page-heading h1 {
        font-size: 27px;
        line-height: 1.1;
        margin: 0;
    }
    .crm-page.crm-payment-queue .crm-directory-card > .section-heading {
        gap: 0;
        margin-bottom: 10px;
    }
    .crm-page.crm-payment-queue .crm-directory-card > .section-heading h2 {
        font-size: 23px;
        margin: 0;
    }
    .crm-page.crm-payment-queue .crm-directory-card > .section-heading .muted {
        display: none;
    }
    .crm-page.crm-payment-queue .crm-directory-card .crm-filter-form {
        margin: 0 0 14px;
    }
    .members-row .members-manage {
        grid-column: 1 / -1;
        justify-self: stretch;
        min-width: 0;
        width: 100%;
    }
    .members-row .members-manage summary { justify-content: center; width: 132px; }
    .members-row .members-manage-panel {
        box-sizing: border-box;
        left: auto;
        margin-top: 9px;
        max-width: 100%;
        position: static;
        right: auto;
        width: 100%;
    }
    .members-row .members-manage-panel form,
    .members-row .members-manage-panel input,
    .members-row .members-manage-panel select,
    .members-row .members-manage-panel button { box-sizing: border-box; max-width: 100%; min-width: 0; }
}

/* Mobile customer directory: compact daily-use list; full context remains on desktop. */
@media (max-width: 700px) {
    .customer-directory-page { margin-top: -24px; }
    .customer-directory-page .customer-directory-heading {
        border-bottom: 0;
        margin-bottom: 10px;
        padding-bottom: 0;
    }
    .customer-directory-page .customer-directory-heading .eyebrow,
    .customer-directory-page .customer-directory-heading p,
    .customer-directory-page .customer-directory-heading > .action-link {
        display: none;
    }
    .customer-directory-page .customer-directory-heading h1 {
        font-size: 32px;
        margin: 0;
    }
    .customer-directory-page .customer-directory-card {
        border-radius: 16px;
        padding: 13px;
    }
    .customer-directory-page .customer-directory-toolbar {
        margin-bottom: 9px;
    }
    .customer-directory-page .customer-directory-toolbar h2,
    .customer-directory-page .customer-directory-toolbar p,
    .customer-directory-page .customer-directory-toolbar > strong {
        display: none;
    }
    .customer-directory-page .customer-directory-search {
        margin: 0 0 10px;
    }
    .customer-directory-page .customer-directory-search label {
        padding: 4px 4px 4px 10px;
    }
    .customer-directory-page .customer-directory-list article {
        align-items: center;
        column-gap: 9px;
        grid-template-columns: 36px minmax(0,1fr) 86px;
        padding: 11px 2px;
        row-gap: 7px;
    }
    .customer-directory-page .customer-directory-avatar {
        font-size: 12px;
        height: 36px;
        width: 36px;
    }
    .customer-directory-page .customer-directory-person {
        grid-column: 2;
        grid-row: 1;
    }
    .customer-directory-page .customer-directory-list article > .customer-directory-stat:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    .customer-directory-page .customer-directory-list article > .customer-directory-stat:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
    }
    .customer-directory-page .customer-directory-list article > .customer-directory-stat:nth-child(5) {
        display: none;
    }
    .customer-directory-page .customer-directory-list .secondary-button {
        grid-column: 3;
        grid-row: 1;
        min-height: 36px;
        padding: 0 10px;
        width: 100%;
    }
}

/* Keep desktop CRM queues dense enough for daily operational use. */
@media (min-width: 701px) {
    .crm-page {
        margin-top: -24px;
    }
    .crm-page .tractor-queue-tabs {
        margin: 0 0 14px;
    }
    .crm-page .crm-directory-card {
        padding: 20px 24px;
    }
    .crm-page .crm-directory-heading {
        align-items: center;
        margin-bottom: 14px;
    }
    .crm-page .crm-directory-heading h2 {
        margin: 0;
    }
    .crm-page .crm-simple-search {
        margin: 0 0 14px;
        padding: 9px;
    }
    .crm-page .crm-table th {
        padding-bottom: 8px;
    }
    .crm-page .crm-table td {
        padding-bottom: 12px;
        padding-top: 12px;
    }
}

/* CRM directory: a phone shows a readable customer card, not a cropped desktop table. */
@media (max-width: 620px) {
    /* Reports use concise metric rows on a phone, never a cropped desktop table. */
    .report-team-workload .crm-table,
    .report-team-workload .crm-table tbody,
    .report-team-workload .crm-table tr,
    .report-team-workload .crm-table td { display: block; min-width: 0; width: 100%; }
    .report-team-workload .crm-table { border-spacing: 0; }
    .report-team-workload .crm-table thead { display: none; }
    .report-team-workload .crm-table tbody { display: grid; gap: 10px; }
    .report-team-workload .crm-table tr { border: 1px solid #e1e8f0; border-radius: 13px; padding: 12px 14px; }
    .report-team-workload .crm-table td { align-items: center; border: 0; display: grid; font-size: 14px; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; padding: 8px 0; text-align: right; }
    .report-team-workload .crm-table td::before { color: #718096; content: attr(data-label); font-size: 10px; font-weight: 900; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
    .report-team-workload .crm-table td[data-label="Member"] { display: block; padding-bottom: 10px; text-align: left; }
    .report-team-workload .crm-table td[data-label="Member"]::before { display: none; }
    .report-team-workload .crm-table td[data-label="Member"] strong { font-size: 16px; }
    .report-team-workload .crm-table td span.status { justify-self: end; min-width: 34px; }

    /* Insurance uses its own labelled renewal rows; do not inherit CRM queue cards. */
    .insurance-page .insurance-table tbody { display: block !important; }
    .insurance-page .insurance-table tr {
        display: block !important;
        gap: 0 !important;
        grid-template-columns: none !important;
        padding: 8px 14px !important;
    }
    .insurance-page .insurance-table td {
        display: grid !important;
        grid-column: auto !important;
        grid-template-columns: minmax(106px, .6fr) minmax(0, 1fr) !important;
        padding: 9px 0 !important;
    }
    .insurance-page .insurance-table td::before { content: attr(data-label) !important; }
    .insurance-page .insurance-table td[data-label="Customer"] {
        display: block !important;
        padding-bottom: 11px !important;
    }
    .insurance-page .insurance-table td[data-label="Customer"]::before,
    .insurance-page .insurance-table td[data-label=""]::before { display: none; }
    .insurance-page .insurance-table td[data-label=""] {
        border-top: 0 !important;
        display: block !important;
        padding-top: 12px !important;
    }

    .crm-page .tractor-queue-tabs {
        gap: 0;
        margin-inline: -4px;
        overflow-x: auto;
        padding: 0 4px 2px;
        scrollbar-width: thin;
        scroll-padding-inline: 4px;
    }
    .crm-page .tractor-queue-tabs a {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 0 13px 11px;
        white-space: nowrap;
    }

    .crm-page .crm-table-wrap {
        border: 0;
        margin: 0;
        overflow: visible;
    }
    .crm-page .crm-table,
    .crm-page .crm-table tbody,
    .crm-page .crm-table tr,
    .crm-page .crm-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }
    .crm-page .crm-table { border-spacing: 0; }
    .crm-page .crm-table thead { display: none; }
    .crm-page .crm-table tbody { display: grid; gap: 12px; }
    .crm-page .crm-table tbody tr {
        background: #fff;
        border: 1px solid #dfe7ed;
        border-radius: 14px;
        display: grid;
        gap: 12px 14px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        margin: 0;
        padding: 15px;
    }
    .crm-page .crm-table tbody tr:hover { background: #fff; }
    .crm-page .crm-table td {
        border: 0;
        color: #26364d;
        font-size: 13px;
        min-width: 0;
        padding: 0;
        text-align: left;
        white-space: normal;
    }
    .crm-page .crm-table td:first-child {
        grid-column: 1 / -1;
        min-width: 0;
    }
    .crm-page .crm-table td:first-child strong { font-size: 16px; }
    .crm-page .crm-table td:not(:first-child):not(:last-child)::before {
        color: #7a889c;
        content: '';
        display: block;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .07em;
        margin-bottom: 4px;
        text-transform: uppercase;
    }
    .crm-page:not(.crm-payment-queue) .crm-table td:nth-child(2)::before { content: 'Stage'; }
    .crm-page:not(.crm-payment-queue) .crm-table td:nth-child(3)::before { content: 'Assigned to'; }
    .crm-page:not(.crm-payment-queue) .crm-table td:nth-child(4)::before { content: 'Next action'; }
    .crm-page.crm-payment-queue .crm-table td:nth-child(2)::before { content: 'Due amount'; }
    .crm-page.crm-payment-queue .crm-table td:nth-child(3)::before { content: 'Follow-up'; }
    .crm-page.crm-payment-queue .crm-table td:nth-child(4)::before { content: 'Owner'; }
    .crm-page .crm-table td:last-child {
        border-top: 0;
        grid-column: auto;
        padding-top: 0;
        text-align: left;
    }
    .crm-page .crm-table td:last-child .action-link,
    .crm-page .crm-table td:last-child button {
        justify-content: center;
        min-height: 42px;
        width: 100%;
    }

    /* Keep the daily CRM list dense enough for real phone use. */
    .crm-page .crm-directory-card { padding: 14px; }
    .crm-page .crm-directory-heading { margin-bottom: 8px; }
    .crm-page .crm-directory-heading h2 { font-size: 26px; margin: 0; }
    .crm-page .crm-directory-heading .muted { margin: 3px 0 0; }
    .crm-page .crm-simple-search {
        gap: 9px;
        grid-template-columns: minmax(0, 1fr) auto;
        margin: 12px 0 14px;
        padding: 12px;
    }
    .crm-page .crm-simple-search > label { grid-column: 1 / -1; }
    .crm-page .crm-simple-search .filter-actions { gap: 10px; min-height: 0; }
    .crm-page .crm-simple-search .filter-actions button { min-height: 40px; padding-inline: 22px; }
    .crm-page .crm-table tbody { gap: 9px; }
    .crm-page .crm-table tbody tr { gap: 8px 12px; padding: 12px; }
    .crm-page .crm-table td:first-child strong { font-size: 15px; }
    .crm-page .crm-table td > span { margin-top: 1px; }
    .crm-page .crm-table td:not(:first-child):not(:last-child)::before { margin-bottom: 2px; }
    .crm-page .crm-table td:last-child .action-link,
    .crm-page .crm-table td:last-child button { min-height: 38px; }
}

.marketing-home .home-hero h1 { font-family: -apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,sans-serif; font-size: clamp(44px,4.2vw,56px); font-weight: 700; letter-spacing: normal; line-height: 1.15; text-wrap: balance; word-spacing: normal; }.marketing-home h1,.marketing-home h2,.marketing-home h3,.marketing-page h1,.marketing-page h2,.marketing-page h3 { letter-spacing: .01em !important; }.marketing-home .home-hero-copy { position: relative; }.marketing-home .home-hero-copy:after { background: linear-gradient(90deg,var(--brand),transparent); bottom: -15px; content: ''; height: 2px; left: 0; opacity: .25; position: absolute; width: 128px; }.marketing-home .home-hero-copy > p { font-size: 17px; max-width: 540px; }.marketing-home .home-preview:before { align-items: center; color: #667085; content: '●  LIVE WORKSPACE VIEW'; display: flex; font-size: 10px; font-weight: 850; letter-spacing: .08em; margin: 0 0 10px 12px; word-spacing: 4px; }.marketing-home .home-preview { padding-top: 4px; }.marketing-home .home-preview .preview-window { box-shadow: 0 30px 80px rgba(28,36,64,.18); }

* { box-sizing: border-box; }
html,body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .012em; }
.push-enable { background: var(--brand); border: 0; border-radius: 999px; bottom: 18px; box-shadow: 0 12px 28px rgba(45,35,130,.28); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; padding: 11px 16px; position: fixed; right: 18px; z-index: 90; }
.workspace-assistant-shortcut { align-items: center; background: linear-gradient(145deg,#168d84,#08746f); border: 2px solid rgba(255,255,255,.6); box-shadow: 0 14px 30px rgba(8,127,120,.30),0 0 0 6px rgba(41,195,158,.10); display: inline-flex; gap: 8px; justify-content: center; min-width: 84px; padding: 8px 13px 8px 9px; }.workspace-assistant-shortcut > span { align-items: center; background: rgba(255,255,255,.18); border-radius: 50%; display: inline-flex; font-size: 18px; height: 29px; justify-content: center; width: 29px; }.workspace-assistant-shortcut b { font-size: 12px; letter-spacing: .02em; }.workspace-assistant-shortcut:hover { background: linear-gradient(145deg,#0c7c75,#066b65); color: #fff; text-decoration: none; transform: translateY(-2px); }.plan-workspace-action { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 17px; }.plan-workspace-action .secondary-button { margin: 0; min-height: 42px; }.plan-workspace-action p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.app-shell { min-height: 100vh; }
.saas-shell { min-height: 100vh; display: flex; }
.sidebar { width: 248px; flex: 0 0 248px; height: 100vh; position: sticky; top: 0; overflow-y: auto; background: #0d1220; color: #d8deed; display: flex; flex-direction: column; padding: 25px 15px 18px; }
.sidebar .brand { color: white; margin: 0 10px 26px; }
.workspace-switch { display: flex; align-items: center; gap: 10px; border: 1px solid #343a50; border-radius: 10px; color: #eef1ff; margin-bottom: 22px; padding: 10px; }
.workspace-switch:hover { background: #252a3c; text-decoration: none; }.workspace-switch small { color: #9da5bd; display: block; font-size: 11px; margin-top: 1px; }
.workspace-icon { align-items: center; background: var(--brand); border-radius: 8px; color: white; display: inline-flex; font-size: 13px; font-weight: 800; height: 28px; justify-content: center; width: 28px; }
.side-nav { display: grid; gap: 3px; }.side-nav a { border-radius: 7px; color: #c4cbdf; font-size: 13px; font-weight: 650; padding: 9px 10px; }.side-nav a:hover { background: #292e41; color: white; text-decoration: none; }.nav-label { color: #7f879f; font-size: 10px; font-weight: 800; letter-spacing: .08em; margin: 16px 10px 4px; text-transform: uppercase; }.nav-badge { align-items: center; background: #d92d20; border-radius: 999px; color: #fff; display: inline-flex; font-size: 10px; font-weight: 850; justify-content: center; line-height: 1; margin-left: 5px; min-width: 19px; padding: 4px 6px; vertical-align: middle; }
.sidebar-footer { border-top: 1px solid #343a50; display: grid; gap: 6px; margin-top: auto; padding: 16px 10px 0; }.sidebar-footer a { color: #c4cbdf; font-size: 13px; }.sidebar-footer form { max-width: none; }.logout-button { background: transparent; color: #c4cbdf; font-size: 13px; min-height: 28px; padding: 0; text-align: left; }.logout-button:hover { background: transparent; color: white; }

/* Signed-in navigation: compact icons, clear active state and account identity. */
.sidebar { background: linear-gradient(180deg, #0c1324 0%, #10182a 100%); padding: 24px 15px 14px; }
.sidebar .brand { margin-bottom: 24px; }
.side-nav { gap: 5px; }
.side-nav a,.sidebar-utility-links a,.logout-button { align-items: center; display: flex; gap: 10px; min-height: 40px; padding: 0 10px; }
.side-nav a { border: 1px solid transparent; color: #c6cde0; }
.side-nav a:hover { background: #1c263b; border-color: #2b3650; }
.side-nav a.is-current { background: linear-gradient(90deg, rgba(46, 202, 145, .18), rgba(46, 202, 145, .06)); border-color: rgba(71, 213, 160, .2); box-shadow: inset 3px 0 0 #36c486; color: #fff; }
.nav-icon { align-items: center; color: #95a2be; display: inline-flex; flex: 0 0 18px; height: 18px; justify-content: center; width: 18px; }
.nav-icon svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 18px; }
.side-nav a:hover .nav-icon,.side-nav a.is-current .nav-icon,.sidebar-utility-links a:hover .nav-icon,.logout-button:hover .nav-icon { color: #6ee1ae; }
.side-nav .nav-badge,.sidebar-utility-links .nav-badge { margin-left: auto; }
.nav-label { margin: 19px 10px 5px; }
.sidebar-footer { border-color: #2b354c; gap: 12px; padding: 15px 0 0; }
.sidebar-profile { align-items: center; border: 1px solid #2a354c; border-radius: 13px; display: grid; gap: 10px; grid-template-columns: 38px minmax(0, 1fr) auto; padding: 9px 10px; }
.sidebar-profile:hover { background: #19243a; border-color: #40506d; text-decoration: none; }
.sidebar-profile-avatar { align-items: center; background: linear-gradient(135deg, #2bc58a, #15857a 58%, #5a47db); border: 2px solid #36435d; border-radius: 50%; color: #fff; display: inline-flex; font-size: 12px; font-weight: 900; height: 38px; justify-content: center; width: 38px; }
.sidebar-profile > span:nth-child(2) { display: grid; min-width: 0; }
.sidebar-profile strong { color: #f4f7ff; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile small { color: #98a5c0; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile > i { color: #8f9bb4; font-size: 22px; font-style: normal; line-height: 1; }
.sidebar-utility-links { display: grid; gap: 3px; }
.sidebar-utility-links a,.logout-button { border-radius: 8px; color: #aeb9cf; font-size: 12px; font-weight: 700; }
.sidebar-utility-links a:hover,.logout-button:hover { background: #1b263b; color: #fff; text-decoration: none; }
.logout-button { border: 0; cursor: pointer; width: 100%; }

/* Account settings: identity first, then only the changes a user can make. */
.account-settings-page { margin: 0 auto; max-width: 1080px; }
.account-heading { margin-bottom: 20px; }
.account-heading h1 { font-size: clamp(32px, 4vw, 43px); letter-spacing: -.05em; margin: 4px 0 7px; }
.account-heading p { max-width: 590px; }
.account-identity-card { align-items: center; background: radial-gradient(circle at 95% 7%, rgba(68, 213, 159, .16), transparent 29%), linear-gradient(135deg, #f4fffb, #fff 72%); border: 1px solid #cce9df; border-radius: 18px; display: grid; gap: 14px; grid-template-columns: 58px minmax(0, 1fr) auto; margin-bottom: 20px; padding: 20px 22px; }
.account-avatar { align-items: center; background: linear-gradient(135deg, #29bd83, #087f78 60%, #5b45d7); border: 3px solid #e0f6ed; border-radius: 50%; color: #fff; display: inline-flex; font-size: 18px; font-weight: 900; height: 58px; justify-content: center; letter-spacing: .03em; width: 58px; }
.account-identity-card .eyebrow { color: #087f78; font-size: 10px; margin: 0 0 3px; }
.account-identity-card h2 { font-size: 21px; letter-spacing: -.03em; margin: 0; }
.account-identity-card p { color: #536b66; font-size: 13px; margin: 2px 0 0; }
.account-security-status { align-items: center; background: #eaf9f1; border: 1px solid #b8e8cd; border-radius: 999px; color: #176b46; display: inline-flex; font-size: 12px; font-weight: 850; gap: 6px; padding: 8px 11px; white-space: nowrap; }
.account-security-status i { align-items: center; background: #1e9a60; border-radius: 50%; color: #fff; display: inline-flex; font-size: 10px; font-style: normal; height: 16px; justify-content: center; width: 16px; }
.account-settings-grid { align-items: start; display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-setting-card { box-shadow: 0 10px 26px rgba(22, 35, 58, .04); margin: 0; padding: 22px; }
.account-setting-card header { align-items: flex-start; display: flex; gap: 12px; margin-bottom: 19px; }
.account-setting-card header > div { min-width: 0; }
.account-setting-card h2 { font-size: 18px; letter-spacing: -.02em; margin: 0 0 3px; }
.account-setting-card header p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0; }
.account-setting-icon { align-items: center; background: #e9f8f2; border: 1px solid #c5e9dc; border-radius: 10px; color: #087f78; display: inline-flex; flex: 0 0 38px; font-size: 20px; height: 38px; justify-content: center; width: 38px; }
.account-setting-card form { max-width: none; }
.account-setting-card label { font-size: 12px; }
.account-setting-card input { min-height: 44px; }
.account-primary { background: linear-gradient(90deg, #087f78, #07916f); margin-top: 2px; min-height: 44px; width: 100%; }
.account-primary:hover { background: linear-gradient(90deg, #066b65, #087f78); }
.account-current-value { background: #f7faf9; border: 1px solid #e0eae7; border-radius: 10px; display: grid; gap: 2px; margin: -2px 0 15px; padding: 10px 12px; }
.account-current-value span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.account-current-value strong { color: #263849; font-size: 14px; }
.account-password-card { background: linear-gradient(135deg, #fbfbfe, #fff); }
.account-password-help { color: var(--muted); font-size: 12px; line-height: 1.45; margin: -5px 0 0; }
.employee-account-card { background: linear-gradient(135deg, #f8fffc, #fff); }
.account-alert-card { background: linear-gradient(135deg, #fbfbff, #fff); }
.account-alert-control { align-items: center; background: #f5f7fb; border: 1px solid #e1e7ef; border-radius: 10px; display: flex; gap: 9px; margin-bottom: 12px; padding: 11px 12px; }
.account-alert-control p { color: #536176; font-size: 12px; font-weight: 750; margin: 0; }
.account-alert-dot,.notification-phone-alert-dot { background: #9aa7b8; border-radius: 50%; flex: 0 0 8px; height: 8px; width: 8px; }
.account-alert-card.is-enabled .account-alert-control { background: #ecfaf3; border-color: #bfe8d1; }
.account-alert-card.is-enabled .account-alert-dot,.notification-phone-alert.is-enabled .notification-phone-alert-dot { background: #20ad67; }
.account-secondary-link { align-items: center; background: #f4f6fb; border: 1px solid #dde5ef; border-radius: 10px; color: #33435c; display: inline-flex; font-size: 13px; font-weight: 850; gap: 9px; min-height: 44px; padding: 0 14px; }
.account-secondary-link:hover { background: #edf8f3; border-color: #a9dfcb; color: #087f78; text-decoration: none; }
.account-secondary-link span { color: #087f78; font-size: 19px; line-height: 1; }
.account-audit-note { align-items: center; color: #66768a; display: flex; font-size: 12px; gap: 7px; margin: 18px 2px 0; }
.account-audit-note span { color: #087f78; font-size: 16px; }
@media (max-width: 700px) { .account-settings-grid { grid-template-columns: 1fr; }.account-identity-card { grid-template-columns: 52px minmax(0, 1fr); padding: 17px; }.account-avatar { height: 52px; width: 52px; }.account-security-status { grid-column: 1 / -1; justify-self: start; }.account-heading { margin-bottom: 16px; }.account-setting-card { padding: 19px; } }

/* Support: one private conversation per issue, presented as a focused inbox. */
.support-page { margin: 0 auto; max-width: 1080px; }
.support-heading { align-items: flex-start; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 20px; }
.support-heading h1 { font-size: clamp(31px,4vw,43px); letter-spacing: -.05em; margin: 4px 0 7px; }
.support-heading p { margin: 0; max-width: 610px; }
.support-availability { align-items: center; background: #ecfaf3; border: 1px solid #c5ead6; border-radius: 999px; color: #176b46; display: inline-flex; flex: 0 0 auto; font-size: 12px; font-weight: 850; gap: 7px; padding: 9px 12px; }
.support-availability i { background: #20ad67; border-radius: 50%; height: 7px; width: 7px; }
.support-layout { align-items: stretch; display: grid; gap: 18px; grid-template-columns: minmax(0,1.45fr) minmax(250px,.75fr); margin-bottom: 18px; }
.support-compose-card { box-shadow: 0 12px 28px rgba(22,35,58,.045); margin: 0; padding: 24px; }
.support-card-heading { align-items: flex-start; display: flex; gap: 12px; margin-bottom: 19px; }
.support-card-heading h2,.support-section-heading h2 { font-size: 20px; letter-spacing: -.025em; margin: 0 0 4px; }
.support-card-heading p,.support-section-heading p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0; }
.support-card-icon,.support-topic-icon { align-items: center; background: linear-gradient(135deg,#0d9781,#087f78); border-radius: 11px; color: #fff; display: inline-flex; flex: 0 0 40px; font-size: 20px; font-weight: 900; height: 40px; justify-content: center; width: 40px; }
.support-compose-form { max-width: none; }
.support-compose-form textarea,.support-reply-form textarea { min-height: 116px; resize: vertical; }
.support-workspace-fixed { background: #f4faf8; border: 1px solid #d9ebe4; border-radius: 10px; display: grid; gap: 2px; margin-bottom: 14px; padding: 10px 12px; }
.support-workspace-fixed span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.support-workspace-fixed strong { font-size: 14px; }
.support-submit { align-items: center; background: linear-gradient(90deg,#087f78,#07916f); display: inline-flex; gap: 8px; justify-content: center; min-height: 44px; width: 100%; }
.support-submit:hover { background: linear-gradient(90deg,#066b65,#087f78); }
.support-submit span { font-size: 18px; line-height: 1; }
.support-guidance-card { background: radial-gradient(circle at 100% 0,rgba(92,69,215,.14),transparent 39%),linear-gradient(150deg,#f9fbff,#f3faf7); border: 1px solid #dde7ec; border-radius: 16px; padding: 24px; }
.support-guidance-card .eyebrow { color: #087f78; font-size: 10px; }
.support-guidance-card h2 { font-size: 20px; letter-spacing: -.03em; line-height: 1.15; margin: 7px 0 14px; }
.support-guidance-card ul { color: #516278; display: grid; font-size: 13px; gap: 12px; line-height: 1.45; list-style: none; margin: 0; padding: 0; }
.support-guidance-card li { padding-left: 18px; position: relative; }.support-guidance-card li:before { color: #087f78; content: '✓'; font-weight: 900; left: 0; position: absolute; }
.support-conversations-card { box-shadow: 0 12px 28px rgba(22,35,58,.04); margin: 0; padding: 24px; }
.support-section-heading { align-items: flex-start; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 16px; }
.support-count { background: #f2f5fb; border-radius: 999px; color: #657087; font-size: 11px; font-weight: 850; padding: 7px 10px; white-space: nowrap; }
.support-conversation-list { border-top: 1px solid #e6ebf1; }
.support-conversation-row { align-items: center; border-bottom: 1px solid #e6ebf1; display: grid; gap: 13px; grid-template-columns: 38px minmax(0,1fr) auto; padding: 15px 2px; }
.support-conversation-row.is-unread { background: linear-gradient(90deg,rgba(231,250,242,.72),rgba(255,255,255,0)); box-shadow: inset 3px 0 #15a174; padding-left: 11px; }
.support-topic-icon { background: #edf7f4; color: #087f78; flex-basis: 38px; font-size: 17px; height: 38px; width: 38px; }
.support-conversation-copy { min-width: 0; }.support-conversation-title { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; }.support-conversation-title strong { font-size: 14px; }.support-conversation-copy p { color: #657087; font-size: 12px; margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-status,.support-new { border-radius: 999px; display: inline-flex; font-size: 10px; font-weight: 850; padding: 4px 7px; text-transform: capitalize; }
.support-status-open { background: #e9f9f0; color: #167044; }.support-status-closed { background: #f0f2f6; color: #697489; }.support-new { background: #fff0ed; color: #bd3f2f; }
.support-open-link { align-items: center; color: #087f78; display: inline-flex; font-size: 12px; font-weight: 850; gap: 5px; text-decoration: none; }.support-open-link:hover { color: #5b45d7; text-decoration: none; }
.support-pagination { margin-top: 16px; }
.support-thread-card { box-shadow: 0 12px 28px rgba(22,35,58,.04); margin: 0; max-width: 780px; padding: 22px; }
.support-message-list { display: grid; gap: 12px; margin-bottom: 20px; }.support-message { background: #f3f6fb; border: 1px solid #e3e8f0; border-radius: 4px 16px 16px 16px; max-width: min(82%,620px); padding: 12px 14px; }.support-message.is-mine { background: #e9f9f3; border-color: #cbeade; border-radius: 16px 4px 16px 16px; justify-self: end; }.support-message-meta { align-items: center; display: flex; gap: 8px; justify-content: space-between; }.support-message-meta strong { font-size: 12px; }.support-message-meta small { color: #77849a; font-size: 10px; }.support-message p { color: #34445b; font-size: 13px; line-height: 1.55; margin: 7px 0 0; }
.support-reply-form { border-top: 1px solid #e5eaf1; max-width: none; padding-top: 18px; }.support-reply-form textarea { min-height: 100px; }.support-close-form { margin-top: 12px; }.support-closed-note { background: #f6f8fb; border: 1px solid #e3e8ef; border-radius: 11px; color: #4d5e73; padding: 14px; }.support-closed-note strong { color: #2f4155; }.support-closed-note p { font-size: 13px; margin: 3px 0 0; }
@media (max-width: 700px) { .support-heading { display: grid; gap: 10px; }.support-availability { justify-self: start; }.support-layout { grid-template-columns: 1fr; }.support-compose-card,.support-conversations-card { padding: 18px; }.support-guidance-card { padding: 19px; }.support-conversation-row { align-items: start; grid-template-columns: 34px minmax(0,1fr); }.support-conversation-row .support-open-link { grid-column: 2; justify-self: start; }.support-conversation-copy p { white-space: normal; }.support-message { max-width: 92%; }.support-section-heading { display: grid; gap: 8px; }.support-count { justify-self: start; } }

/* Workspace settings: business configuration is grouped by real-world purpose. */
.workspace-settings-page { margin: 0 auto; max-width: 1080px; }
.workspace-settings-heading { align-items: flex-start; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 19px; }.workspace-settings-heading h1 { font-size: clamp(31px,4vw,43px); letter-spacing: -.05em; margin: 4px 0 7px; }.workspace-settings-heading p { margin: 0; max-width: 610px; }
.workspace-settings-owner-state { align-items: center; background: #edf9f3; border: 1px solid #c7ebd8; border-radius: 999px; color: #186e49; display: inline-flex; flex: 0 0 auto; font-size: 12px; font-weight: 850; gap: 7px; padding: 8px 11px; }.workspace-settings-owner-state i { align-items: center; background: #1c9c61; border-radius: 50%; color: #fff; display: inline-flex; font-size: 9px; font-style: normal; height: 15px; justify-content: center; width: 15px; }
.workspace-settings-identity { align-items: center; background: radial-gradient(circle at 98% 4%,rgba(82,69,215,.12),transparent 33%),linear-gradient(135deg,#f3fffa,#fff 67%); border: 1px solid #cce9df; border-radius: 18px; display: grid; gap: 14px; grid-template-columns: 58px minmax(0,1fr) auto; margin-bottom: 28px; padding: 20px 22px; }.workspace-settings-avatar { align-items: center; background: linear-gradient(135deg,#0c9a80,#087f78 55%,#5a45d8); border: 3px solid #e1f8ef; border-radius: 50%; color: #fff; display: inline-flex; font-size: 20px; font-weight: 900; height: 58px; justify-content: center; width: 58px; }.workspace-settings-identity .eyebrow { color: #087f78; font-size: 10px; margin: 0 0 3px; }.workspace-settings-identity h2 { font-size: 21px; letter-spacing: -.03em; margin: 0; }.workspace-settings-identity p { color: #587067; font-size: 13px; margin: 2px 0 0; }.workspace-settings-preview { align-items: center; background: #fff; border: 1px solid #dce7e3; border-radius: 9px; color: #087f78; display: inline-flex; font-size: 12px; font-weight: 850; gap: 6px; padding: 10px 12px; text-decoration: none; white-space: nowrap; }.workspace-settings-preview:hover { border-color: #9cd9c4; text-decoration: none; }
.workspace-settings-section { margin: 0 0 28px; scroll-margin-top: 90px; }.workspace-settings-section-heading { align-items: flex-start; display: flex; gap: 11px; margin: 0 0 12px; }.workspace-settings-section-heading h2 { font-size: 22px; letter-spacing: -.03em; margin: 2px 0 4px; }.workspace-settings-section-heading p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0; max-width: 690px; }.workspace-settings-section-number { align-items: center; background: #eaf8f2; border: 1px solid #c4eadc; border-radius: 10px; color: #087f78; display: inline-flex; flex: 0 0 34px; font-size: 11px; font-weight: 900; height: 34px; justify-content: center; letter-spacing: .05em; width: 34px; }
.workspace-settings-card { box-shadow: 0 12px 28px rgba(22,35,58,.04); margin: 0; padding: 23px; }.workspace-settings-form { display: grid; gap: 14px 16px; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: none; }.workspace-settings-form label { color: #3b4a61; font-size: 12px; font-weight: 800; }.workspace-settings-form input,.workspace-settings-form textarea,.workspace-settings-form select { margin-top: 6px; min-height: 44px; }.workspace-settings-form textarea { min-height: 88px; resize: vertical; }.workspace-settings-form small { color: var(--muted); display: block; font-size: 11px; font-weight: 600; line-height: 1.4; margin-top: 5px; }.workspace-settings-form .input-optional { color: #8090a5; font-size: 10px; font-weight: 700; margin-left: 4px; }.workspace-settings-wide { grid-column: 1 / -1; }.workspace-settings-form-actions { align-items: center; border-top: 1px solid #e5ebef; display: flex; gap: 16px; justify-content: space-between; margin-top: 3px; padding-top: 16px; }.workspace-settings-form-actions p { color: #65758a; font-size: 11px; line-height: 1.45; margin: 0; max-width: 500px; }.workspace-settings-form-actions strong { color: #415069; }.workspace-settings-primary { background: linear-gradient(90deg,#087f78,#07916f); flex: 0 0 auto; min-height: 44px; padding-inline: 19px; }.workspace-settings-primary:hover { background: linear-gradient(90deg,#066b65,#087f78); }.workspace-settings-card .company-logo-preview,.workspace-settings-image-preview { border: 1px solid #dce6e5; border-radius: 10px; display: block; margin-top: 10px; max-height: 132px; max-width: 230px; object-fit: contain; padding: 4px; }
.workspace-settings-live-link { align-items: center; background: linear-gradient(90deg,#effaf5,#f7f7ff); border: 1px solid #dbece5; border-radius: 12px; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 18px; padding: 14px; }.workspace-settings-live-link span { color: #738096; display: block; font-size: 10px; font-weight: 900; letter-spacing: .07em; margin-bottom: 3px; }.workspace-settings-live-link strong { color: #087f78; display: block; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 13px; }.workspace-settings-live-link p { color: #68778b; font-size: 11px; margin: 5px 0 0; }.workspace-settings-live-link > div:last-child { display: flex; flex: 0 0 auto; gap: 8px; }
.workspace-settings-tools { display: grid; gap: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }.workspace-settings-tool-card { align-items: center; background: #fff; border: 1px solid #e0e7ed; border-radius: 14px; display: grid; gap: 12px; grid-template-columns: 38px minmax(0,1fr) auto; min-width: 0; padding: 17px; text-decoration: none; transition: border-color .15s,box-shadow .15s,transform .15s; }.workspace-settings-tool-card:hover { border-color: #9bd7c3; box-shadow: 0 10px 20px rgba(22,95,78,.07); text-decoration: none; transform: translateY(-1px); }.workspace-settings-tool-icon { align-items: center; background: #eaf8f2; border-radius: 10px; color: #087f78; display: inline-flex; font-size: 17px; font-weight: 900; height: 38px; justify-content: center; width: 38px; }.workspace-settings-tool-card strong { color: #26364b; display: block; font-size: 14px; }.workspace-settings-tool-card p { color: #718096; font-size: 11px; line-height: 1.4; margin: 3px 0 0; }.workspace-settings-tool-card > i { color: #087f78; font-size: 18px; font-style: normal; }.workspace-settings-readonly { align-items: flex-start; background: #fbfcff; display: flex; gap: 12px; margin: 0 0 26px; padding: 20px; }.workspace-settings-readonly h2 { font-size: 18px; margin: 0 0 5px; }.workspace-settings-readonly p { color: #65758a; font-size: 13px; line-height: 1.45; margin: 0; }
@media (max-width: 980px) and (min-width: 701px) { .workspace-settings-tools { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.workspace-settings-advanced { background: #fbfcff; border: 1px solid #e2e8ef; border-radius: 12px; margin: 30px 0 0; padding: 0 17px; }.workspace-settings-advanced summary { align-items: center; color: #3d4c62; cursor: pointer; display: flex; font-size: 13px; font-weight: 850; gap: 8px; justify-content: space-between; list-style: none; min-height: 52px; }.workspace-settings-advanced summary::-webkit-details-marker { display: none; }.workspace-settings-advanced summary span { color: #087f78; }.workspace-settings-advanced summary i { color: #66768b; font-size: 17px; font-style: normal; }.workspace-settings-advanced[open] summary i { transform: rotate(180deg); }.workspace-settings-advanced > div { border-top: 1px solid #e6ebf1; padding: 14px 0 16px; }.workspace-settings-advanced p { color: #65758a; font-size: 12px; margin: 0 0 12px; }.workspace-settings-rename-form { align-items: end; display: flex; gap: 10px; max-width: 570px; }.workspace-settings-rename-form label { flex: 1; font-size: 12px; }.workspace-settings-rename-form input { margin-top: 5px; min-height: 42px; }
.module-settings-page{margin:0 auto;max-width:1080px}.module-settings-heading{align-items:flex-start;display:flex;gap:20px;justify-content:space-between;margin-bottom:18px}.module-settings-heading .back-link{display:block;margin-bottom:12px}.module-settings-heading h1{font-size:clamp(31px,4vw,43px);letter-spacing:-.05em;margin:4px 0 7px}.module-settings-heading p{margin:0;max-width:680px}.module-settings-notice{background:linear-gradient(100deg,#effaf5,#f8f7ff);border:1px solid #cfe9df;border-radius:14px;margin-bottom:28px;padding:16px 18px}.module-settings-notice strong{color:#087f78;font-size:13px}.module-settings-notice p{color:#5d6d80;font-size:12px;line-height:1.5;margin:4px 0 0}.module-settings-group{margin-bottom:28px}.module-settings-group-title{align-items:end;display:flex;gap:16px;justify-content:space-between;margin-bottom:10px}.module-settings-group-title h2{font-size:21px;letter-spacing:-.025em;margin:2px 0 0}.module-settings-group-title>span{color:#7a8798;font-size:11px;font-weight:800}.module-settings-list{display:grid;gap:10px}.module-settings-card{align-items:center;background:#fff;border:1px solid #e0e7ed;border-radius:14px;display:grid;gap:15px;grid-template-columns:42px minmax(0,1fr) auto;padding:16px}.module-settings-card.is-enabled{border-color:#bfe6d7;background:linear-gradient(95deg,#fbfffd,#fff)}.module-settings-card.is-planned{background:#fafbfc}.module-settings-icon{align-items:center;background:#eef3f7;border-radius:11px;color:#4e6075;display:inline-flex;font-size:15px;font-weight:900;height:42px;justify-content:center;width:42px}.is-enabled .module-settings-icon{background:#e5f7ef;color:#087f78}.module-settings-name{align-items:center;display:flex;flex-wrap:wrap;gap:8px}.module-settings-name h3{font-size:15px;margin:0}.module-state{border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.04em;padding:4px 7px;text-transform:uppercase}.module-state.is-on{background:#dff6ec;color:#087653}.module-state.is-off{background:#eef2f6;color:#66758a}.module-state.is-soon{background:#f3efff;color:#6953b6}.module-settings-copy>p{color:#69788c;font-size:12px;line-height:1.45;margin:4px 0}.module-settings-copy>small{color:#53657a;display:block;font-size:10px;font-weight:700}.module-impact{background:#fff7e8;border:1px solid #f1d49a;border-radius:8px;color:#88570d;font-size:10px;line-height:1.4;margin-top:8px;padding:7px 9px}.module-settings-action form{margin:0;max-width:none}.module-settings-action button{min-width:94px}.module-planned-label{color:#7b8797;display:block;font-size:10px;font-weight:800;max-width:110px;text-align:center}
@media (max-width:700px) { .workspace-settings-heading { display: grid; gap: 10px; }.workspace-settings-owner-state { justify-self: start; }.workspace-settings-identity { grid-template-columns: 52px minmax(0,1fr); padding: 17px; }.workspace-settings-avatar { height: 52px; width: 52px; }.workspace-settings-preview { grid-column: 1 / -1; justify-self: start; }.workspace-settings-card { padding: 18px; }.workspace-settings-form,.workspace-settings-tools { grid-template-columns: 1fr; }.workspace-settings-form-actions { align-items: stretch; flex-direction: column; }.workspace-settings-primary { width: 100%; }.workspace-settings-live-link { align-items: stretch; flex-direction: column; }.workspace-settings-live-link > div:last-child { display: grid; flex: 0 1 auto; grid-template-columns: 1fr; width: 100%; }.workspace-settings-live-link > div:last-child > * { min-width: 0; text-align: center; width: 100%; }.workspace-settings-rename-form { align-items: stretch; flex-direction: column; }.workspace-settings-rename-form .secondary-button { width: 100%; }.module-settings-heading{display:grid;gap:10px}.module-settings-heading .workspace-settings-owner-state{justify-self:start}.module-settings-card{align-items:start;grid-template-columns:38px minmax(0,1fr);padding:14px}.module-settings-icon{height:38px;width:38px}.module-settings-action{grid-column:1/-1;width:100%}.module-settings-action form,.module-settings-action button{width:100%}.module-planned-label{max-width:none;text-align:left} }

/* Access control: role templates first, then employee assignment, then detailed permissions. */
.access-page { margin: 0 auto; max-width: 1080px; }.access-heading { align-items: flex-start; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 19px; }.access-heading h1 { font-size: clamp(31px,4vw,43px); letter-spacing: -.05em; margin: 4px 0 7px; }.access-heading p { margin: 0; max-width: 640px; }
.access-summary { align-items: center; background: radial-gradient(circle at 97% 5%,rgba(91,69,215,.13),transparent 35%),linear-gradient(135deg,#f3fffa,#fff 68%); border: 1px solid #cde9df; border-radius: 17px; display: grid; gap: 20px; grid-template-columns: auto auto minmax(0,1fr); margin-bottom: 28px; padding: 18px 21px; }.access-summary > div { align-items: center; display: flex; gap: 9px; }.access-summary-icon { align-items: center; background: #e5f8ef; border-radius: 10px; color: #087f78; display: inline-flex; font-size: 17px; font-weight: 900; height: 34px; justify-content: center; width: 34px; }.access-summary-icon.is-purple { background: #efedff; color: #5b45d7; }.access-summary strong { color: #26364a; display: block; font-size: 18px; line-height: 1; }.access-summary span:not(.access-summary-icon) { color: #748195; display: block; font-size: 10px; font-weight: 800; margin-top: 3px; }.access-summary p { border-left: 1px solid #d8e9e2; color: #607186; font-size: 12px; line-height: 1.45; margin: 0; padding-left: 18px; }
.access-section { margin: 0 0 29px; }.access-section-heading { align-items: flex-start; display: flex; gap: 11px; margin-bottom: 12px; }.access-step { align-items: center; background: #eaf8f2; border: 1px solid #c4eadc; border-radius: 10px; color: #087f78; display: inline-flex; flex: 0 0 34px; font-size: 11px; font-weight: 900; height: 34px; justify-content: center; letter-spacing: .05em; width: 34px; }.access-section-heading h2 { font-size: 22px; letter-spacing: -.03em; margin: 2px 0 4px; }.access-section-heading p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0; max-width: 680px; }
.access-setup-grid { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }.access-template-card,.access-custom-card,.access-assignment-card { box-shadow: 0 12px 28px rgba(22,35,58,.04); margin: 0; padding: 22px; }.access-card-icon { align-items: center; background: #e7f8f0; border-radius: 10px; color: #087f78; display: inline-flex; font-size: 18px; font-weight: 900; height: 39px; justify-content: center; width: 39px; }.access-card-icon.is-purple { background: #eeecff; color: #5b45d7; }.access-setup-grid h3 { font-size: 17px; letter-spacing: -.02em; margin: 13px 0 3px; }.access-setup-grid p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0 0 15px; }.access-setup-grid form { max-width: none; }.access-setup-grid label { font-size: 12px; }.access-setup-grid select,.access-setup-grid input { min-height: 43px; }.access-primary { background: linear-gradient(90deg,#087f78,#07916f); margin-top: 1px; min-height: 43px; width: 100%; }.access-primary:hover { background: linear-gradient(90deg,#066b65,#087f78); }
.access-assignment-card { padding: 23px; }.access-assignment-form { display: grid; gap: 17px; grid-template-columns: minmax(230px,.75fr) minmax(0,1.55fr); max-width: none; }.access-employee-picker { font-size: 12px; }.access-employee-picker select { min-height: 44px; margin-top: 6px; }.access-role-picker { border: 0; margin: 0; min-width: 0; padding: 0; }.access-role-picker legend { color: #3d4c62; font-size: 12px; font-weight: 850; margin-bottom: 7px; }.access-role-picker > div { display: flex; flex-wrap: wrap; gap: 8px; }.access-role-option { align-items: center; background: #fafbfe; border: 1px solid #dfe6ee; border-radius: 10px; cursor: pointer; display: inline-flex; gap: 8px; min-height: 48px; padding: 8px 10px; position: relative; }.access-role-option input { accent-color: #087f78; height: 16px; margin: 0; width: 16px; }.access-role-option span { display: grid; gap: 1px; }.access-role-option strong { color: #34445b; font-size: 12px; }.access-role-option small { color: #7c899c; font-size: 10px; }.access-role-option i { color: #087f78; display: none; font-size: 12px; font-style: normal; font-weight: 900; }.access-role-option:has(input:checked) { background: #edfbf4; border-color: #9cddc3; }.access-role-option:has(input:checked) i { display: inline; }.access-assignment-form > button { align-self: end; grid-column: 1 / -1; justify-self: start; min-width: 210px; width: auto; }
.access-empty { align-items: flex-start; background: #fbfcff; border: 1px dashed #dbe3ec; border-radius: 12px; display: flex; flex-direction: column; gap: 5px; padding: 18px; }.access-empty strong { color: #35455a; font-size: 14px; }.access-empty p { color: #718095; font-size: 12px; line-height: 1.45; margin: 0; }.access-empty a { margin-top: 7px; }.access-readonly { align-items: flex-start; background: #fbfcff; display: flex; gap: 12px; margin: 0 0 26px; padding: 20px; }.access-block-icon { align-items: center; background: #eef0ff; border-radius: 10px; color: #5b45d7; display: inline-flex; flex: 0 0 34px; font-size: 14px; font-weight: 900; height: 34px; justify-content: center; width: 34px; }.access-readonly h2 { font-size: 18px; margin: 0 0 4px; }.access-readonly p { color: #66768b; font-size: 13px; line-height: 1.45; margin: 0; }
.access-role-list { display: grid; gap: 12px; }.access-role-card { background: #fff; border: 1px solid #e0e7ee; border-radius: 14px; overflow: hidden; }.access-role-card summary { align-items: center; cursor: pointer; display: grid; gap: 11px; grid-template-columns: 38px minmax(0,1fr) auto; list-style: none; min-height: 70px; padding: 14px 16px; }.access-role-card summary::-webkit-details-marker { display: none; }.access-role-card[open] summary { background: #f8fbfa; border-bottom: 1px solid #e4ebe9; }.access-role-initial { align-items: center; background: linear-gradient(135deg,#0d9781,#087f78); border-radius: 10px; color: #fff; display: inline-flex; font-size: 15px; font-weight: 900; height: 38px; justify-content: center; width: 38px; }.access-role-summary { display: grid; gap: 2px; min-width: 0; }.access-role-summary strong { color: #2c3d52; font-size: 14px; }.access-role-summary small { color: #748196; font-size: 11px; }.access-role-open { align-items: center; color: #087f78; display: inline-flex; font-size: 11px; font-weight: 850; gap: 6px; }.access-role-open i { color: #647287; font-size: 17px; font-style: normal; }.access-role-card[open] .access-role-open i { transform: rotate(180deg); }
.access-permission-form { padding: 17px; }.access-permission-groups { display: grid; gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); }.access-permission-groups fieldset { background: #fbfcff; border: 1px solid #e2e9f0; border-radius: 10px; display: grid; gap: 7px; margin: 0; min-width: 0; padding: 12px; }.access-permission-groups legend { color: #087f78; font-size: 10px; font-weight: 900; letter-spacing: .06em; padding: 0 3px; text-transform: uppercase; }.access-permission-option { align-items: flex-start; color: #4d5c70; cursor: pointer; display: flex; font-size: 11px; font-weight: 700; gap: 7px; line-height: 1.35; }.access-permission-option input { accent-color: #087f78; flex: 0 0 auto; height: 15px; margin: 0; width: 15px; }.access-permission-actions { align-items: center; border-top: 1px solid #e6ebf1; display: flex; gap: 16px; justify-content: space-between; margin-top: 16px; padding-top: 15px; }.access-permission-actions p { color: #718095; font-size: 11px; margin: 0; }.access-permission-actions .access-primary { margin: 0; min-width: 245px; width: auto; }.access-permission-readonly { display: grid; gap: 9px; padding: 15px 16px; }.access-permission-readonly div { background: #f8fafc; border-radius: 9px; padding: 10px; }.access-permission-readonly strong { color: #3a4a60; font-size: 11px; }.access-permission-readonly p { color: #6c7a8e; font-size: 11px; line-height: 1.45; margin: 3px 0 0; }
@media (max-width: 800px) { .access-summary { grid-template-columns: auto auto; }.access-summary p { border-left: 0; border-top: 1px solid #d8e9e2; grid-column: 1 / -1; padding: 11px 0 0; }.access-permission-groups { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) { .access-heading { display: grid; gap: 10px; }.access-heading > a { justify-self: start; }.access-summary { gap: 12px; padding: 16px; }.access-setup-grid,.access-assignment-form,.access-permission-groups { grid-template-columns: 1fr; }.access-template-card,.access-custom-card,.access-assignment-card { padding: 18px; }.access-assignment-form > button { justify-self: stretch; width: 100%; }.access-role-card summary { grid-template-columns: 36px minmax(0,1fr); }.access-role-open { grid-column: 2; justify-self: start; }.access-permission-actions { align-items: stretch; flex-direction: column; }.access-permission-actions .access-primary { min-width: 0; width: 100%; } }

/* Employee management: easy onboarding, then compact status and controlled actions. */
.members-page { margin: 0 auto; max-width: 1080px; }.members-heading { align-items: flex-start; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 19px; }.members-heading h1 { font-size: clamp(31px,4vw,43px); letter-spacing: -.05em; margin: 4px 0 7px; }.members-heading p { margin: 0; max-width: 640px; }
.members-summary { align-items: center; background: radial-gradient(circle at 97% 4%,rgba(91,69,215,.12),transparent 35%),linear-gradient(135deg,#f4fffb,#fff 70%); border: 1px solid #cde9df; border-radius: 17px; display: grid; gap: 20px; grid-template-columns: auto auto auto minmax(0,1fr); margin-bottom: 28px; padding: 18px 21px; }.members-summary > div { align-items: center; display: flex; gap: 9px; }.members-summary-icon { align-items: center; background: #eeecff; border-radius: 10px; color: #5b45d7; display: inline-flex; font-size: 17px; font-weight: 900; height: 34px; justify-content: center; width: 34px; }.members-summary-icon.is-green { background: #e5f8ef; color: #087f78; }.members-summary-icon.is-muted { background: #f1f3f6; color: #758399; }.members-summary strong { color: #26364a; display: block; font-size: 18px; line-height: 1; }.members-summary span:not(.members-summary-icon) { color: #748195; display: block; font-size: 10px; font-weight: 800; margin-top: 3px; }.members-summary p { border-left: 1px solid #d8e9e2; color: #607186; font-size: 12px; line-height: 1.45; margin: 0; padding-left: 18px; }
.members-section { margin: 0 0 29px; }.members-section-heading { align-items: flex-start; display: flex; gap: 11px; margin-bottom: 12px; }.members-step { align-items: center; background: #eaf8f2; border: 1px solid #c4eadc; border-radius: 10px; color: #087f78; display: inline-flex; flex: 0 0 34px; font-size: 11px; font-weight: 900; height: 34px; justify-content: center; letter-spacing: .05em; width: 34px; }.members-section-heading h2 { font-size: 22px; letter-spacing: -.03em; margin: 2px 0 4px; }.members-section-heading p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0; max-width: 700px; }
.members-onboarding-grid { display: grid; gap: 16px; grid-template-columns: minmax(0,1.4fr) minmax(250px,.8fr); }.members-create-card,.members-existing-card { box-shadow: 0 12px 28px rgba(22,35,58,.04); margin: 0; padding: 22px; }.members-card-icon { align-items: center; background: #e7f8f0; border-radius: 10px; color: #087f78; display: inline-flex; font-size: 20px; font-weight: 900; height: 39px; justify-content: center; width: 39px; }.members-card-icon.is-purple { background: #eeecff; color: #5b45d7; }.members-onboarding-grid h3 { font-size: 17px; letter-spacing: -.02em; margin: 13px 0 3px; }.members-onboarding-grid p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0 0 15px; }.members-create-form { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: none; }.members-create-form label,.members-existing-form label,.members-password-form label,.members-manage-role label { font-size: 12px; }.members-create-form input,.members-create-form select,.members-existing-form input,.members-password-form input,.members-manage-role select { min-height: 43px; }.members-create-form button { grid-column: 1 / -1; }.members-primary { background: linear-gradient(90deg,#087f78,#07916f); margin-top: 1px; min-height: 43px; }.members-primary:hover { background: linear-gradient(90deg,#066b65,#087f78); }.members-existing-card { background: radial-gradient(circle at 98% 4%,rgba(91,69,215,.12),transparent 42%),#fff; }.members-existing-form { display: grid; gap: 11px; max-width: none; }.members-existing-form .secondary-button { justify-self: start; }.members-existing-note { background: #f7fafc; border: 1px solid #e3e9f0; border-radius: 10px; margin-top: 17px; padding: 11px; }.members-existing-note strong { color: #3d4d62; font-size: 11px; }.members-existing-note p { color: #748195; font-size: 11px; line-height: 1.4; margin: 3px 0 0; }
.members-directory-card { box-shadow: 0 12px 28px rgba(22,35,58,.04); margin: 0; padding: 22px; }.members-directory-toolbar { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 15px; }.members-search { align-items: center; background: #fff; border: 1px solid #dce4ec; border-radius: 9px; display: flex; gap: 8px; max-width: 480px; min-width: 0; padding: 0 11px; width: 100%; }.members-search > span { color: #718096; font-size: 17px; }.members-search .list-filter { border: 0; box-shadow: none; margin: 0; min-width: 0; }.members-search .list-filter:focus { box-shadow: none; }.members-list { border-top: 1px solid #e6ebf1; }.members-row { align-items: center; border-bottom: 1px solid #e6ebf1; display: grid; gap: 12px; grid-template-columns: 42px minmax(0,1fr) auto; padding: 14px 2px; }.members-row.is-inactive { opacity: .72; }.members-avatar { align-items: center; background: linear-gradient(135deg,#5b45d7,#2e8cb6); border-radius: 50%; color: #fff; display: inline-flex; font-size: 14px; font-weight: 900; height: 42px; justify-content: center; width: 42px; }.members-person { min-width: 0; }.members-person > strong { color: #2e3e53; display: block; font-size: 14px; }.members-person > span { color: #728095; display: block; font-size: 12px; margin-top: 2px; }.members-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }.member-tag { background: #f0f3f7; border-radius: 999px; color: #647287; font-size: 9px; font-weight: 850; padding: 4px 7px; }.member-tag.is-owner { background: #ece9ff; color: #5b45d7; }.member-tag.is-role { background: #eef7ff; color: #276a9d; }.member-tag.is-active { background: #e9f9f0; color: #197044; }.member-tag.is-inactive { background: #feeceb; color: #b33e32; }.members-owner-label { color: #7c899b; font-size: 11px; font-weight: 800; }
.members-manage { min-width: 108px; position: relative; }.members-manage summary { align-items: center; background: #f3f5fa; border-radius: 8px; color: #3d4d63; cursor: pointer; display: flex; font-size: 12px; font-weight: 850; gap: 6px; justify-content: center; list-style: none; min-height: 38px; padding: 0 11px; }.members-manage summary::-webkit-details-marker { display: none; }.members-manage summary i { color: #087f78; font-size: 16px; font-style: normal; }.members-manage[open] summary { background: #eaf8f2; color: #087f78; }.members-manage[open] summary i { transform: rotate(180deg); }.members-manage-panel { background: #fff; border: 1px solid #dce6ec; border-radius: 12px; box-shadow: 0 16px 34px rgba(20,35,55,.15); display: grid; gap: 12px; padding: 13px; position: absolute; right: 0; top: calc(100% + 7px); width: min(420px,calc(100vw - 56px)); z-index: 20; }.members-manage-panel form { max-width: none; }.members-manage-role { align-items: end; display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) auto; }.members-manage-role select { margin-top: 5px; }.members-password-form { align-items: end; border-top: 1px solid #e7ecf2; display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) auto auto; padding-top: 12px; }.members-password-form input { margin-top: 5px; }.members-manage-panel .secondary-button { font-size: 11px; min-height: 39px; padding: 0 10px; }.members-danger-actions { border-top: 1px solid #e7ecf2; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }.members-danger-actions form { flex: 1; }.members-danger-actions button { font-size: 11px; min-height: 38px; padding: 0 9px; width: 100%; }.members-danger-actions .danger-button { background: #b42318; }.members-danger-actions .danger-button:hover { background: #912018; }.members-empty { background: #fbfcff; border: 1px dashed #dbe3ec; border-radius: 12px; padding: 18px; }.members-empty strong { color: #35455a; font-size: 14px; }.members-empty p { color: #718095; font-size: 12px; line-height: 1.45; margin: 4px 0 0; }.members-pagination { margin-top: 16px; }
@media (max-width: 850px) { .members-summary { grid-template-columns: auto auto auto; }.members-summary p { border-left: 0; border-top: 1px solid #d8e9e2; grid-column: 1 / -1; padding: 11px 0 0; }.members-onboarding-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .members-heading { display: grid; gap: 10px; }.members-heading > a { justify-self: start; }.members-summary { gap: 11px; grid-template-columns: auto auto; padding: 16px; }.members-summary > div:nth-of-type(3) { grid-column: 1 / -1; }.members-create-form { grid-template-columns: 1fr; }.members-directory-card { padding: 18px; }.members-directory-toolbar { align-items: stretch; flex-direction: column; }.members-directory-toolbar > a { width: 100%; }.members-row { align-items: start; grid-template-columns: 40px minmax(0,1fr); }.members-avatar { height: 40px; width: 40px; }.members-manage,.members-owner-label { grid-column: 2; justify-self: start; }.members-manage-panel { left: 0; right: auto; width: min(360px,calc(100vw - 70px)); }.members-manage-role,.members-password-form { grid-template-columns: 1fr; }.members-manage-panel .secondary-button { width: 100%; }.members-danger-actions { flex-direction: column; }.members-summary p { grid-column: 1 / -1; } }
.app-main { min-width: 0; flex: 1; }.app-main .content-wrap { width: min(100% - 56px, 1120px); }.mobile-topbar,.mobile-nav-drawer,.mobile-nav-backdrop { display: none; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { color: var(--ink); font-size: 20px; font-weight: 850; letter-spacing: -.8px; text-decoration: none; }
.brand span { color: var(--brand); }
.brand-image { align-items: center; display: inline-flex; }
.brand-image img { display: block; height: 40px; max-width: 238px; object-fit: contain; object-position: left center; }
.brand-image { align-items: flex-start; flex-direction: column; gap: 2px; }
.brand-image small { color: #6e62cf; font-size: 7px; font-weight: 850; letter-spacing: .075em; line-height: 1.1; white-space: nowrap; }
.sidebar .brand-image img,.mobile-nav-head .brand-image img { height: 42px; }
.sidebar .brand-image small,.mobile-nav-head .brand-image small { color: #aaa4df; }
.mobile-topbar .brand-image:after,.mobile-nav-head .brand-image:after { color: #6e62cf; content: 'CONNECTED BUSINESS. CLEAR CONTROL.'; font-size: 5.5px; font-weight: 850; letter-spacing: .075em; line-height: 1.1; white-space: nowrap; }
.mobile-nav-head .brand-image:after { color: #aaa4df; }
.site-footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 13px; justify-content: space-between; margin: 48px auto 0; max-width: 1180px; padding: 24px 0 34px; width: min(100% - 64px,1180px); }
.site-footer nav { display: flex; gap: 18px; }.site-footer a { color: var(--muted); font-weight: 700; }.site-footer a:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 700px) { .mobile-topbar .brand-image img { height: 32px; max-width: 188px; } }
@media (max-width: 700px) { .brand-image small { font-size: 5.5px; }.site-footer { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 30px; width: min(100% - 36px,1180px); }.site-footer nav { gap: 14px; } }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: #4b5568; font-size: 14px; font-weight: 650; }
nav a:hover { color: var(--brand); text-decoration: none; }
.nav-cta { color: white; background: var(--brand); padding: 9px 15px; border-radius: 8px; }
.nav-cta:hover { color: white; background: var(--brand-dark); }
.content-wrap { width: min(100% - 40px, 1050px); margin: 0 auto; padding: 52px 0 80px; }
main { width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: .005em; line-height: 1.15; margin-bottom: 10px; }
h2 { font-size: 18px; letter-spacing: .005em; }
p { color: var(--muted); }
.data-list .data-row p b { background: #fee4e2; border: 1px solid #fecdca; border-radius: 999px; color: #b42318; display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .02em; margin-left: 6px; padding: 3px 8px; text-transform: uppercase; }
.marketing-page { margin: 0 auto; max-width: 1080px; padding: 44px 0 80px; }.marketing-intro { max-width: 760px; padding: 30px 0 36px; }.marketing-intro h1 { font-size: clamp(36px,6vw,64px); letter-spacing: -2.5px; line-height: 1.03; margin: 10px 0 18px; }.marketing-intro p { font-size: 18px; line-height: 1.65; max-width: 680px; }.marketing-intro .home-primary { margin-top: 12px; }.marketing-grid { display: grid; gap: 16px; grid-template-columns: repeat(3,minmax(0,1fr)); }.marketing-grid article,.pricing-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }.marketing-grid article b { color: var(--brand); font-size: 13px; letter-spacing: .12em; }.marketing-grid h2,.pricing-card h2 { font-size: 20px; margin: 12px 0 8px; }.marketing-grid p,.pricing-card p { line-height: 1.6; }.marketing-banner { align-items: center; background: #171c31; border-radius: 20px; color: #fff; display: flex; gap: 26px; justify-content: space-between; margin-top: 24px; padding: 30px; }.marketing-banner h2 { font-size: 24px; margin: 0 0 8px; }.marketing-banner p { color: #cbd2e4; margin: 0; max-width: 650px; }.workflow-strip { display: grid; gap: 10px; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 0 26px; }.workflow-strip article { background: #f2efff; border-radius: 16px; padding: 18px; }.workflow-strip strong { align-items: center; background: var(--brand); border-radius: 50%; color: #fff; display: inline-flex; height: 30px; justify-content: center; width: 30px; }.workflow-strip h2 { font-size: 17px; margin: 14px 0 4px; }.workflow-strip p { font-size: 13px; margin: 0; }.pricing-grid { display: grid; gap: 20px; grid-template-columns: repeat(2,minmax(0,1fr)); }.pricing-card { min-height: 390px; }.pricing-card > span { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .1em; }.pricing-card > strong { display: block; font-size: 27px; letter-spacing: -1px; margin: 16px 0; }.pricing-card ul { color: var(--muted); line-height: 2; margin: 18px 0 28px; padding-left: 20px; }.pricing-card.featured { background: #f4f2ff; border: 2px solid var(--brand); }.marketing-note { margin-top: 18px; }.faq-list { display: grid; gap: 10px; max-width: 850px; }.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }.faq-list summary { color: var(--ink); cursor: pointer; font-weight: 800; }.faq-list p { line-height: 1.6; margin: 14px 0 0; }.legal-page { max-width: 800px; }.legal-page h1 { font-size: 48px; }.legal-page h2 { margin-top: 32px; }.legal-page p { line-height: 1.7; }
.public-contact-card { background: linear-gradient(135deg,#f1fcf8,#fff); border: 1px solid #bce6d8; border-radius: 20px; display: grid; gap: 18px; grid-template-columns: minmax(0,1fr) minmax(300px,.9fr); margin: 0 0 24px; padding: 28px; }.public-contact-card h2 { font-size: 26px; margin: 10px 0 6px; }.public-contact-card p { color: var(--muted); line-height: 1.55; margin: 0; }.public-contact-actions { align-content: start; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }.public-contact-actions .home-secondary,.public-contact-actions .home-primary { min-height: 44px; }.public-contact-address { border-top: 1px solid #ccebe0; grid-column: 1 / -1; padding-top: 16px; }.public-contact-address strong { color: var(--ink); }
@media (max-width: 760px) { .topbar .public-nav-detail { display: none; }.topbar .public-nav { gap: 10px; }.topbar .public-sign-in { display: inline-flex; font-size: 13px; }.topbar .nav-cta { font-size: 12px; padding: 9px 11px; }.marketing-page { padding: 22px 0 52px; }.marketing-intro h1 { letter-spacing: -1.6px; }.marketing-grid,.pricing-grid,.workflow-strip,.public-contact-card { grid-template-columns: 1fr; }.marketing-banner { align-items: flex-start; flex-direction: column; }.pricing-card { min-height: 0; }.legal-page h1 { font-size: 38px; }.public-contact-card { border-radius: 16px; padding: 20px; }.public-contact-actions { display: grid; grid-template-columns: 1fr; }.public-contact-actions .home-primary,.public-contact-actions .home-secondary { width: 100%; } }
@media (max-width: 760px) { .topbar .public-sign-in,.topbar .nav-cta { align-items:center; justify-content:center; min-height:44px; } }
.page-heading { align-items: flex-start; display: flex; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { color: var(--brand); display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 5px 20px rgba(20, 32, 51, .04); padding: 24px; margin-bottom: 20px; }
.billing-page .card { overflow: visible; padding: 26px; }.billing-page .invoice-items { margin: 0; }.billing-page .invoice-items th:first-child,.billing-page .invoice-items td:first-child { padding-left: 14px; }.billing-page .invoice-items th:last-child,.billing-page .invoice-items td:last-child { padding-right: 14px; }
form { display: grid; gap: 15px; max-width: 540px; }
.inline-form { display: flex; align-items: end; flex-wrap: wrap; max-width: none; gap: 12px; }
.customer-picker { position: relative; }.customer-search-results { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(16,24,40,.14); left: 0; max-height: 260px; overflow: auto; padding: 6px; position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; }.customer-search-results button { background: transparent; border: 0; color: var(--ink); display: grid; gap: 2px; padding: 10px; text-align: left; width: 100%; }.customer-search-results button:hover { background: #f5f3ff; }.customer-search-results small { color: var(--muted); }.table-wrap { overflow-x: auto; }.invoice-items { border-collapse: collapse; min-width: 680px; width: 100%; }.invoice-items th { color: var(--muted); font-size: 11px; letter-spacing: .05em; padding: 14px 10px 8px; text-align: left; text-transform: uppercase; }.invoice-items td { border-top: 1px solid var(--line); padding: 10px; vertical-align: middle; }.invoice-items td:first-child { min-width: 260px; }.invoice-items input { margin: 0; min-width: 80px; width: 100%; }.invoice-items .invoice-product-select{font-size:12px;margin:0 0 7px;min-height:38px;width:100%}.line-total { font-weight: 800; white-space: nowrap; }.invoice-summary { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-end; margin: 20px 0; }.invoice-summary span { color: var(--muted); display: grid; font-size: 12px; gap: 3px; text-align: right; }.invoice-summary strong { color: var(--ink); font-size: 16px; }.invoice-summary .invoice-grand-total strong { color: var(--brand); font-size: 20px; }
.company-logo-preview { border: 1px solid var(--line); border-radius: 10px; display: block; height: 64px; margin-top: 10px; max-width: 220px; object-fit: contain; padding: 6px; }
.settings-profile-form { align-items: end; display: grid; gap: 14px; grid-template-columns: minmax(240px,1fr) minmax(180px,.55fr) auto; max-width: 760px; }.settings-profile-form button { min-width: 150px; }
.company-profile-form { align-items: start; display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 860px; }.company-profile-form label:nth-of-type(3),.company-profile-form label:nth-of-type(4),.company-profile-form button { grid-column: 1 / -1; }.company-profile-form button { justify-self: start; min-width: 210px; }
.customer-validation { color: #b42318; font-size: 13px; font-weight: 700; margin: 12px 0 0; }
.form-error { background: #fff1f0; border: 1px solid #f3aaa5; border-radius: 10px; color: #b42318; font-size: 13px; font-weight: 750; line-height: 1.45; margin: 0; padding: 11px 13px; }
.payment-disclosure,.invoice-cancel-disclosure { position: relative; }.payment-disclosure summary,.invoice-cancel-disclosure summary { background: #f7f6ff; border: 1px solid #dcd7ff; border-radius: 9px; color: var(--brand-dark); cursor: pointer; font-size: 12px; font-weight: 800; list-style: none; padding: 10px 12px; white-space: nowrap; }.payment-disclosure summary::-webkit-details-marker,.invoice-cancel-disclosure summary::-webkit-details-marker { display: none; }.invoice-cancel-disclosure summary { background: #fff7ed; border-color: #f2c992; color: #9a5c09; }.payment-form { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 24px rgba(16,24,40,.14); display: grid; gap: 10px; margin-top: 8px; min-width: 260px; padding: 14px; position: absolute; right: 0; top: 100%; z-index: 12; }.payment-form p { margin: 0; }.payment-form label { font-size: 12px; }.payment-form input,.payment-form select { margin-top: 4px; }.payment-form button { width: 100%; }
@media (max-width: 620px) { .payment-form { min-width: 0; position: static; } }
.invoice-customer-panel { background: #fafaff; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 20px; padding: 20px; }.invoice-customer-panel [hidden] { display: none !important; }.invoice-customer-panel h3 { font-size: 17px; margin: 0 0 4px; }.invoice-customer-panel .section-heading { margin-bottom: 14px; }.customer-mode { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }.customer-mode-button { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); display: flex; gap: 9px; min-height: 54px; padding: 9px 11px; text-align: left; transition: border-color .15s ease, box-shadow .15s ease; }.customer-mode-button:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(81,66,210,.10); }.customer-mode-button > span:last-child { display: grid; gap: 2px; }.customer-mode-button strong { font-size: 13px; }.customer-mode-button small { color: var(--muted); font-size: 11px; font-weight: 500; }.customer-mode-icon { align-items: center; background: #f0eeff; border-radius: 8px; color: var(--brand); display: inline-flex; flex: 0 0 29px; font-size: 18px; height: 29px; justify-content: center; width: 29px; }.customer-mode-button.is-active { background: #f7f6ff; border: 2px solid var(--brand); box-shadow: 0 4px 12px rgba(81,66,210,.12); padding: 8px 10px; }.customer-mode-button.is-active .customer-mode-icon { background: var(--brand); color: #fff; }.customer-gstin-field { display: block; margin-top: 14px; max-width: 360px; }.visually-hidden { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }@media (max-width: 620px) { .customer-mode { grid-template-columns: 1fr; } }
.finance-heading { align-items: flex-end; }.finance-metrics { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 22px; }.finance-metric { background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 6px; min-height: 138px; padding: 18px; }.finance-metric > span { color: var(--muted); font-size: 12px; font-weight: 800; }.finance-metric strong { font-size: 25px; letter-spacing: -.045em; overflow-wrap: anywhere; }.finance-metric small { color: var(--muted); font-size: 11px; line-height: 1.45; }.invoice-composer { padding: 0 !important; }.invoice-composer > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; padding: 22px 24px; }.invoice-composer > summary::-webkit-details-marker { display: none; }.invoice-composer > summary span { display: grid; gap: 4px; }.invoice-composer > summary b { font-size: 17px; }.invoice-composer > summary small { color: var(--muted); }.invoice-composer > summary i { align-items: center; background: #f0eeff; border-radius: 50%; color: var(--brand); display: inline-flex; font-size: 24px; font-style: normal; height: 34px; justify-content: center; width: 34px; }.invoice-composer[open] > summary { border-bottom: 1px solid var(--line); }.invoice-composer[open] > summary i { transform: rotate(45deg); }.invoice-composer form { padding: 24px; }.invoice-form-section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }.invoice-history-card { margin-top: 22px; }.finance-table { border-collapse: collapse; min-width: 940px; width: 100%; }.finance-table th { color: var(--muted); font-size: 11px; letter-spacing: .06em; padding: 0 12px 11px; text-align: left; text-transform: uppercase; }.finance-table td { border-top: 1px solid var(--line); font-size: 13px; padding: 15px 12px; vertical-align: middle; }.finance-table td:first-child { min-width: 150px; }.finance-table td strong,.finance-table td span { display: block; }.finance-table td span:not(.status) { color: var(--muted); font-size: 12px; margin-top: 3px; }.finance-actions { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; min-width: 180px; }.finance-actions .payment-disclosure,.finance-actions .invoice-cancel-disclosure { flex: 1 1 100%; }.finance-actions .payment-form { min-width: 0; position: static; width: min(340px,100%); }.due-overdue { color: #b42318 !important; font-weight: 800; }.finance-empty { align-items: flex-start; background: #fafaff; border: 1px dashed #cec8f8; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding: 24px; }.finance-empty p { color: var(--muted); margin: 0; }.optional-label { color: var(--muted); font-size: 11px; font-weight: 600; }.cancellation-card { margin-top: 22px; }.cancellation-card form { max-width: 620px; }
.finance-table .invoice-credit-applied{color:#8a5a00!important;font-weight:750}.finance-actions>.action-link,.invoice-whatsapp-action{align-items:center;border-radius:9px;display:inline-flex;font-size:12px;font-weight:850;justify-content:center;min-height:38px;padding:8px 12px}.invoice-whatsapp-form{margin:0}.invoice-whatsapp-action{background:#15985a;border:1px solid #15985a;color:#fff}.invoice-whatsapp-action:hover{background:#117d4a}.finance-actions>.payment-disclosure{margin-top:2px}
@media (max-width: 860px) { .finance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.finance-heading { align-items: flex-start; } }
@media (max-width: 620px) { .billing-page .card { padding: 18px; }.finance-heading .action-link { width: 100%; }.finance-metrics { grid-template-columns: 1fr; }.finance-metric { min-height: 108px; }.invoice-composer { padding: 0 !important; }.invoice-composer > summary { padding: 18px; }.invoice-composer form { padding: 18px; }.invoice-composer > summary small { line-height: 1.4; }.finance-actions { align-items: stretch; flex-direction: column; min-width: 150px; }.finance-actions .action-link { text-align: center; }.payment-form { left: auto; right: 0; }.invoice-history-card .section-heading { align-items: stretch; flex-direction: column; }.invoice-history-card .list-filter { max-width: none; } }
[hidden] { display: none !important; }
label { color: #344054; display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; min-height: 0; }
input, select { min-height: 42px; width: 100%; border: 1px solid #d5dbe5; border-radius: 8px; background: white; color: var(--ink); font: inherit; padding: 9px 11px; outline: none; }
textarea { min-height: 92px; width: 100%; border: 1px solid #d5dbe5; border-radius: 8px; background: white; color: var(--ink); font: inherit; padding: 9px 11px; outline: none; resize: vertical; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,75,219,.12); }
button { min-height: 42px; border: 0; border-radius: 8px; background: var(--brand); color: white; cursor: pointer; font: inherit; font-size: 14px; font-weight: 750; padding: 0 16px; }
button:hover { background: var(--brand-dark); }
[role="alert"] { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px; padding: 10px 12px; }
.data-list { display: grid; gap: 12px; }
.pagination { align-items: center; display: flex; gap: 12px; justify-content: flex-end; margin-top: 18px; }
.pagination span { color: var(--muted); font-size: 13px; font-weight: 700; }
.member-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }.member-actions form { max-width: none; }.member-actions > form:not(.inline-form) { display: block; }.member-actions > form:not(.inline-form) button { font-size: 13px; min-height: 34px; padding: 0 11px; }.danger-button { background: #b42318; }.danger-button:hover { background: #912018; }
.list-filter { margin-bottom: 16px; max-width: 380px; }.toast { animation: toast-in .2s ease-out; background: #172033; border-radius: 10px; box-shadow: 0 12px 30px rgba(23,32,51,.24); color: white; font-weight: 700; max-width: min(420px, calc(100vw - 32px)); padding: 13px 16px; position: fixed; right: 20px; top: 20px; z-index: 9999; }.toast-success { background: #16794c; }.toast-error { background: #b42318; }@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.invoice-search-filter { flex: 1 1 280px; min-width: min(100%, 280px); }.invoice-register-helper { margin: 2px 0 16px; }
.invoice-history-card .invoice-search-only { align-items: end; grid-template-columns: minmax(280px, 720px) auto; }
.invoice-history-card .invoice-search-only .filter-actions { display: flex; gap: 12px; }
.invoice-history-card .invoice-search-only .filter-actions a { align-items: center; display: inline-flex; justify-content: center; min-height: 42px; padding-inline: 12px; }
@media (max-width: 620px) { .invoice-history-card .invoice-search-only { grid-template-columns: 1fr; }.invoice-history-card .invoice-search-only .filter-actions { display: grid; grid-template-columns: 1fr 1fr; }.invoice-history-card .invoice-search-only .filter-actions > * { width: 100%; } }
.invoice-history-card > .section-heading { display: flex; margin-bottom: 14px; }
.invoice-history-card > .section-heading h2 { color: var(--ink); font-size: 24px; margin: 0; }
.invoice-composer #invoice-builder { box-sizing: border-box; display: grid; gap: 18px; margin: 0 auto; max-width: 1040px; width: 100%; }
.invoice-composer:not([open]) { display: none; }
.invoice-composer #invoice-builder > .invoice-customer-panel,
.invoice-composer #invoice-builder > .invoice-form-section { background: #fafaff; border: 1px solid var(--line); border-radius: 14px; box-sizing: border-box; margin: 0; padding: 20px; }
.invoice-composer #invoice-builder > .invoice-form-section { padding-top: 20px; }
.invoice-composer #invoice-builder > .invoice-form-section .section-heading { margin-bottom: 14px; }
.selected-invoice-customer { background: #effaf6; border: 1px solid #b9e5d6; border-radius: 10px; color: #315b52 !important; display: grid; font-size: 12px !important; gap: 3px; margin-top: 9px; padding: 10px 12px; }
.selected-invoice-customer strong { color: #087f67; font-size: 14px; }
.customer-search-results button small + small { color: #55647a; }
.invoice-composer #invoice-builder > .invoice-form-section > button[type="submit"]:disabled { cursor: not-allowed; opacity: .5; }
.invoice-recordkeeping-notice { color: #718096; font-size: 11px; line-height: 1.45; padding: 2px 4px; text-align: center; }
.invoice-field-title { align-items: baseline; display: flex; gap: 7px; }
.invoice-field-title small { color: #8390a3; font-size: 10px; font-weight: 650; }
@media (max-width: 620px) { .invoice-composer #invoice-builder > .invoice-customer-panel,.invoice-composer #invoice-builder > .invoice-form-section { padding: 14px; } }
.invoice-history-card .section-heading { align-items: flex-start; }.invoice-export-action { margin-left: auto; white-space: nowrap; }
.admin-plan-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 12px; max-width: none; }
.controlled-recovery-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.controlled-recovery-form { align-content: start; background: #fafaff; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 14px; max-width: none; min-width: 0; padding: 18px; }
.controlled-recovery-form label { min-width: 0; }
.controlled-recovery-form button { justify-self: start; }
.danger-zone { border-color: #fecdca; }.danger-zone hr { border: 0; border-top: 1px solid #fecdca; margin: 22px 0; }
.workspace-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }.workspace-card { background: white; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); display: grid; gap: 10px; padding: 20px; transition: transform .15s, box-shadow .15s; }.workspace-card:hover { box-shadow: 0 10px 25px rgba(20,32,51,.08); text-decoration: none; transform: translateY(-2px); }.workspace-card small { color: var(--muted); }.action-link { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; white-space: nowrap; }.empty-workspace { max-width: 460px; }.empty-workspace .workspace-icon { margin-bottom: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.operations-dashboard { display: grid; gap: 22px; }.operations-dashboard .page-heading { margin-bottom: 0; }.dashboard-section { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }.dashboard-section .section-heading { margin-bottom: 16px; }.dashboard-priority-grid,.dashboard-trio-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }.dashboard-card-link { color: inherit; min-height: 128px; transition: box-shadow .18s ease, transform .18s ease; }.dashboard-card-link:hover { box-shadow: 0 12px 24px rgba(24,35,60,.10); color: inherit; text-decoration: none; transform: translateY(-2px); }.dashboard-revenue-card { margin-bottom: 4px; }
.dashboard-command-centre { background: linear-gradient(135deg,#f1fbf7 0%,#fff 76%); border: 1px solid #cce9df; border-radius: 18px; padding: 26px; }.dashboard-command-head { align-items: flex-start; display: flex; gap: 18px; justify-content: space-between; }.dashboard-command-head h1 { font-size: clamp(30px,4vw,44px); letter-spacing: -.05em; margin: 5px 0 7px; }.dashboard-command-head p { color: var(--muted); margin: 0; max-width: 620px; }.dashboard-live-status { align-items: center; background: #fff; border: 1px solid #dceee8; border-radius: 999px; color: #136d55; display: inline-flex; flex: 0 0 auto; font-size: 12px; font-weight: 800; gap: 7px; padding: 8px 11px; }.dashboard-live-status i { background: #24aa70; border-radius: 50%; height: 8px; width: 8px; }.dashboard-assistant-form { align-items: stretch; background: #fff; border: 1px solid #a9ddca; border-radius: 13px; box-shadow: 0 8px 22px rgba(16,112,81,.09); display: grid; gap: 9px; grid-template-columns: minmax(0,1fr) auto; margin-top: 20px; max-width: none; padding: 7px; }.dashboard-assistant-form input { border: 0; box-shadow: none; margin: 0; min-width: 0; }.dashboard-assistant-form input:focus { box-shadow: none; outline: 0; }.dashboard-assistant-form button { background: #087f78; margin: 0; min-height: 44px; padding: 0 24px; }.dashboard-assistant-form button:hover { background: #066b65; }.dashboard-assistant-link { color: #087f78; display: inline-block; font-size: 13px; font-weight: 800; margin-top: 11px; }.dashboard-quick-actions,.dashboard-snapshot { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 21px; }.dashboard-quick-actions .section-heading,.dashboard-snapshot .section-heading { margin-bottom: 14px; }.dashboard-action-tiles { display: grid; gap: 12px; grid-template-columns: repeat(5,minmax(0,1fr)); }.dashboard-action-tiles a { background: #fff; border: 1px solid #e4e8ee; border-radius: 13px; color: var(--ink); display: grid; gap: 6px; min-height: 136px; padding: 15px; transition: box-shadow .18s ease,transform .18s ease; }.dashboard-action-tiles a:hover { border-color: #8dcdc0; box-shadow: 0 12px 24px rgba(20,69,57,.1); text-decoration: none; transform: translateY(-2px); }.dashboard-action-tiles b { align-items: center; background: #eefaf6; border-radius: 9px; color: #087f78; display: inline-flex; font-size: 21px; height: 36px; justify-content: center; width: 36px; }.dashboard-action-tiles strong { font-size: 14px; line-height: 1.25; }.dashboard-action-tiles span { color: var(--muted); font-size: 11px; line-height: 1.4; }.dashboard-snapshot { padding-bottom: 22px; }
.metric { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.metric-brand { border-top: 4px solid var(--brand); }.metric-success { background: #f1fcf5; border-color: #b7ebc8; border-top: 4px solid #16794c; }.metric-success strong { color: #11643f; }.metric-warning { background: #fffaf0; border-color: #f6d99c; border-top: 4px solid #c58512; }.metric-warning strong { color: #9a650b; }.metric-danger { background: #fff5f4; border-color: #f5c0bb; border-top: 4px solid #b42318; }.metric-danger strong { color: #9f1c13; }.metric-info { background: #f3f8ff; border-color: #bfd9f5; border-top: 4px solid #3478c9; }.metric-info strong { color: #215f9f; }
.status-danger { background: #fee4e2; color: #b42318; }.report-filter { align-items: end; display: grid; gap: 12px; grid-template-columns: 1fr 1fr auto; max-width: 720px; }
.landing-url { display: flex; gap: 10px; max-width: 760px; }.landing-url input { flex: 1; }
.metric span, .metric small { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; font-size: 28px; letter-spacing: -1px; margin: 6px 0; }
.dashboard-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.controlled-recovery-card { overflow: visible; }
.controlled-recovery-grid { display: grid; gap: 18px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.controlled-recovery-form { background: #fafbfc; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 18px; margin: 0; max-width: none; padding: 20px; }
.controlled-recovery-form h3 { font-size: 19px; margin: 5px 0 6px; }
.controlled-recovery-form p { line-height: 1.55; margin: 0; }
.controlled-recovery-form label { margin: 0; }
.controlled-recovery-form input,.controlled-recovery-form textarea { background: #fff; width: 100%; }
.controlled-recovery-form button { align-self: flex-start; margin-top: auto; min-width: 210px; }
.controlled-recovery-danger { background: #fff9f8; border-color: #f3c7c2; }
.controlled-recovery-danger .eyebrow,.controlled-recovery-danger h3 { color: #9f1c13; }
.controlled-recovery-activate { background: #f4fbf7; border-color: #bfe5d0; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pipeline-list { display: grid; gap: 13px; }.pipeline-list div { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: center; }.pipeline-list span { color: var(--muted); font-size: 13px; }.pipeline-list strong { font-size: 14px; }.pipeline-list i { grid-column: 1 / -1; display: block; height: 8px; min-width: 6px; border-radius: 99px; background: var(--brand); }
.revenue-chart { align-items: end; display: flex; gap: 12px; height: 180px; padding-top: 20px; }.revenue-chart div { align-items: center; display: flex; flex: 1; flex-direction: column; gap: 7px; height: 100%; justify-content: end; min-width: 28px; }.revenue-chart i { background: linear-gradient(180deg, var(--brand), var(--brand-dark)); border-radius: 7px 7px 3px 3px; display: block; min-height: 5px; width: 100%; }.revenue-chart small { color: var(--muted); font-size: 11px; }.revenue-total { color: var(--brand); font-size: 28px; font-weight: 850; margin: 3px 0 0; }
.quick-links a { background: #f6f5ff; border-radius: 8px; font-weight: 700; padding: 9px 12px; }
.data-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 18px 0 0; }
.contact-row .data-row { align-items: flex-start; }.contact-row details { position: relative; }.contact-row summary { color: var(--brand); cursor: pointer; font-size: 13px; font-weight: 750; list-style: none; }.contact-row summary::-webkit-details-marker { display: none; }.contact-edit { background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 25px rgba(20,32,51,.14); margin-top: 10px; padding: 14px; position: absolute; right: 0; width: min(360px, 78vw); z-index: 5; }.contact-row details > form:last-child { margin-top: 10px; }
.data-row:first-child { border-top: 0; padding-top: 0; }
.data-row p { margin: 7px 0 0; }
.service-job-page .job-summary article { display: grid; gap: 5px; }
.job-action-disclosure { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.job-action-disclosure > summary,.job-danger-disclosure > summary { color: var(--brand); cursor: pointer; font-weight: 800; list-style: none; }
.job-action-disclosure > summary::-webkit-details-marker,.job-danger-disclosure > summary::-webkit-details-marker { display: none; }
.job-action-disclosure[open] > summary { margin-bottom: 16px; }
.job-stock-note { margin-bottom: 0; }
.job-danger-disclosure { padding: 0; }
.job-danger-disclosure > summary { padding: 20px 22px; }
.job-danger-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.job-danger-disclosure > div { padding: 20px 22px; }
.job-danger-disclosure h2 { margin-top: 0; }
.service-jobs-page { display: grid; gap: 18px; }
.service-jobs-page .service-jobs-heading { margin-bottom: 0; }
.service-job-filter-card { padding: 18px; }
.service-job-filters { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(260px,2fr) minmax(180px,1fr) auto; max-width: none; }
.service-job-filters label { color: #526078; display: grid; font-size: 12px; font-weight: 800; gap: 7px; margin: 0; }
.service-job-filters input,.service-job-filters select { background: #fff; border: 1px solid #d9e3ea; border-radius: 10px; min-height: 44px; padding: 9px 11px; }
.service-job-filter-actions { align-items: center; display: flex; gap: 10px; }
.service-job-filter-actions button { min-height: 44px; white-space: nowrap; }
.service-job-filter-actions a { color: #647287; font-size: 12px; font-weight: 800; }
.service-job-results { display: grid; gap: 12px; }
.service-job-results-heading { align-items: center; display: flex; justify-content: space-between; padding: 0 2px; }
.service-job-results-heading h2 { font-size: 17px; margin: 0; }
.service-job-results-heading span { color: #758198; font-size: 12px; font-weight: 800; }
.service-job-list { display: grid; gap: 12px; }
.service-job-item { align-items: center; display: grid; gap: 18px; grid-template-columns: minmax(220px,.9fr) minmax(320px,1.4fr) auto; padding: 18px 20px; }
.service-job-item-main { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; min-width: 0; }
.service-job-identity { min-width: 0; }
.service-job-identity > span { color: #68758a; display: block; font-size: 11px; font-weight: 850; letter-spacing: .05em; }
.service-job-identity h3 { font-size: 16px; margin: 4px 0 0; overflow-wrap: anywhere; }
.service-job-status { border-radius: 999px; display: inline-flex; flex: 0 0 auto; font-size: 10px; font-weight: 900; padding: 6px 9px; }
.service-job-status-draft { background: #eef1f5; color: #566273; }
.service-job-status-open,.service-job-status-in-progress { background: #e6f7f2; color: #087763; }
.service-job-status-awaiting-parts,.service-job-status-ready { background: #fff4d8; color: #946200; }
.service-job-status-completed { background: #e9f3ff; color: #245f9a; }
.service-job-status-cancelled { background: #f2f3f5; color: #6c7280; }
.service-job-meta { background: transparent; border: 0; display: grid; gap: 16px; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding: 0; }
.service-job-meta div { min-width: 0; }
.service-job-meta dt { color: #8490a2; font-size: 9px; letter-spacing: .06em; }
.service-job-meta dd { color: #455268; font-size: 12px; margin: 4px 0 0; overflow-wrap: anywhere; }
.service-job-open { align-items: center; border: 1px solid #d7e1e8; border-radius: 10px; color: #31536a; display: inline-flex; font-size: 12px; font-weight: 850; gap: 9px; justify-content: center; min-height: 42px; padding: 0 13px; white-space: nowrap; }
.service-job-open:hover { background: #f3f8f7; border-color: #a8d4ca; text-decoration: none; }
.service-job-empty { padding: 34px; text-align: center; }
.service-job-empty p { color: var(--muted); margin: 7px 0 0; }
.service-job-pagination { margin-top: 4px; }
.verification { min-width: min(100%, 480px); }
.verification code { display: block; overflow-wrap: anywhere; margin: 7px 0 12px; padding: 8px; background: #f6f5ff; border-radius: 6px; color: #4a3abc; font-size: 12px; }
.status { display: inline-block; border-radius: 999px; padding: 3px 9px; background: #fff3d6; color: var(--pending); font-size: 12px; font-weight: 750; text-transform: capitalize; }
.status-active { background: #dff7ea; color: var(--success); }
.success { color: var(--success); font-weight: 700; }
.muted { color: var(--muted); }
ul { padding-left: 20px; }
li { margin: 8px 0; }
dl { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
dd { margin: 3px 0 14px; font-weight: 700; }

@media (max-width: 620px) {
    .sidebar { display: none; }.app-main .content-wrap { width: min(100% - 28px, 1050px); }.mobile-topbar { align-items: center; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 14px 18px; position: sticky; top: 0; z-index: 70; }.mobile-topbar-actions { align-items: center; display: flex; gap: 12px; }.mobile-workspace-link { color: #4b5568; font-size: 12px; font-weight: 800; }.mobile-menu-trigger { align-items: center; background: #f1f0fb; border: 1px solid #dfdcf8; border-radius: 9px; display: grid; gap: 4px; justify-content: center; min-height: 38px; padding: 0; width: 40px; }.mobile-menu-trigger:hover { background: #e8e5ff; }.mobile-menu-trigger i { background: #3d347f; border-radius: 4px; display: block; height: 2px; width: 17px; }.mobile-nav-backdrop { background: rgba(18,23,39,.44); inset: 0; opacity: 0; position: fixed; transition: opacity .2s ease,visibility .2s ease; visibility: hidden; z-index: 90; }.mobile-nav-drawer { background: #0d1220; box-shadow: -16px 0 42px rgba(12,16,30,.28); color: #d8deed; display: flex; flex-direction: column; height: 100dvh; max-width: 340px; padding: 20px 15px 16px; position: fixed; right: 0; top: 0; transform: translateX(105%); transition: transform .24s ease; width: min(88vw,340px); z-index: 100; }.mobile-nav-open { overflow: hidden; }.mobile-nav-open .mobile-nav-backdrop { opacity: 1; visibility: visible; }.mobile-nav-open .mobile-nav-drawer { transform: translateX(0); }.mobile-nav-head { align-items: center; display: flex; justify-content: space-between; margin: 0 6px 22px; }.mobile-nav-head .brand { color: white; }.mobile-nav-close { align-items: center; background: #2b3147; border: 1px solid #3a425a; border-radius: 8px; color: #fff; display: inline-flex; font-size: 25px; font-weight: 400; height: 37px; justify-content: center; min-height: 37px; padding: 0; width: 37px; }.mobile-nav-close:hover { background: #353d56; }.mobile-workspace-switch { align-items: center; border: 1px solid #343a50; border-radius: 10px; color: #eef1ff; display: flex; gap: 10px; margin: 0 0 20px; padding: 10px; }.mobile-workspace-switch:hover { background: #252a3c; text-decoration: none; }.mobile-workspace-switch small { color: #9da5bd; display: block; font-size: 11px; margin-top: 1px; }.mobile-side-nav { display: grid; gap: 3px; overflow-y: auto; padding-right: 3px; }.mobile-side-nav a { border-radius: 7px; color: #c4cbdf; font-size: 14px; font-weight: 650; padding: 10px; }.mobile-side-nav a:hover,.mobile-side-nav a.is-current { background: #292e41; color: white; text-decoration: none; }.mobile-side-nav a.is-current { box-shadow: inset 3px 0 0 #8275f2; }.mobile-side-nav .nav-label { margin-top: 12px; }.mobile-nav-footer { border-top: 1px solid #343a50; display: grid; gap: 6px; margin-top: auto; padding: 16px 10px 0; }.mobile-nav-footer a { color: #c4cbdf; font-size: 13px; }.mobile-nav-footer form { max-width: none; }
    .topbar { height: auto; align-items: flex-start; flex-direction: column; gap: 16px; padding: 18px 20px; }
    nav { width: 100%; justify-content: space-between; gap: 10px; }
    nav a { font-size: 12px; }
    .content-wrap { width: min(100% - 28px, 1050px); padding-top: 32px; }
    .card { padding: 18px; }
    .data-row { align-items: flex-start; flex-direction: column; }
    .verification { min-width: 100%; }
    .theme-grid { grid-template-columns: 1fr; }
    .metric-grid, .dashboard-grid, .dashboard-priority-grid, .dashboard-trio-grid { grid-template-columns: 1fr; }
    .workspace-grid { grid-template-columns: 1fr; }
    .admin-plan-form,.settings-profile-form,.company-profile-form { grid-template-columns: 1fr; }.controlled-recovery-grid { grid-template-columns: 1fr; }.controlled-recovery-form { padding: 16px; }.controlled-recovery-form button { justify-self: stretch; width: 100%; }.company-profile-form label,.company-profile-form button { grid-column: auto !important; }.company-profile-form button { justify-self: stretch; width: 100%; }
}
.quotation-settings-page .card { overflow: visible; }.quotation-add-main-form { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; max-width: 760px; }.quotation-add-main-form label { margin: 0; }.quotation-group-list,.quotation-model-list { display: grid; gap: 14px; margin-top: 20px; }.quotation-group-card,.quotation-model-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 16px; padding: 18px; }.quotation-group-card { align-items: center; grid-template-columns: minmax(0, 1fr) auto; }.quotation-group-card strong,.quotation-model-title strong { display: block; font-size: 16px; overflow-wrap: anywhere; }.quotation-group-card p { margin: 5px 0 0; }.quotation-card-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }.quotation-card-actions form { margin: 0; max-width: none; }.quotation-card-actions details { min-width: 0; }.quotation-card-actions summary { background: #f7f6ff; border: 1px solid #dcd7ff; border-radius: 9px; color: var(--brand-dark); cursor: pointer; font-size: 13px; font-weight: 800; list-style: none; padding: 10px 12px; }.quotation-card-actions summary::-webkit-details-marker { display: none; }.quotation-card-actions details[open] { flex-basis: 100%; }.quotation-edit-grid { background: #fafaff; border: 1px solid #ddd9fb; border-radius: 12px; display: grid; gap: 14px; grid-template-columns: minmax(280px, 1fr) auto; margin-top: 10px; max-width: none; padding: 16px; width: min(720px, 100%); }.quotation-edit-grid label { margin: 0; min-width: 0; }.quotation-edit-grid input,.quotation-edit-grid select { width: 100%; }.quotation-model-form { align-items: end; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }.quotation-model-form label { margin: 0; }.quotation-model-form button { align-self: end; }.quotation-model-card { gap: 18px; }.quotation-model-title { display: grid; gap: 5px; }.quotation-model-title span { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; overflow-wrap: anywhere; }.quotation-model-card dl { display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }.quotation-model-card dl div { border-left: 1px solid var(--line); min-width: 0; padding-left: 12px; }.quotation-model-card dl div:first-child { border-left: 0; padding-left: 0; }.quotation-model-card dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.quotation-model-card dd { font-size: 14px; font-weight: 800; margin: 5px 0 0; overflow-wrap: anywhere; }.quotation-edit-model { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }.quotation-edit-model button { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 760px) { .quotation-add-main-form,.quotation-group-card,.quotation-model-form { grid-template-columns: 1fr; }.quotation-add-main-form button,.quotation-model-form button { width: 100%; }.quotation-card-actions { justify-content: flex-start; }.quotation-card-actions > * { flex: 1 1 auto; }.quotation-card-actions button,.quotation-card-actions summary { width: 100%; }.quotation-card-actions details[open] { flex-basis: 100%; }.quotation-edit-grid,.quotation-edit-model { grid-template-columns: 1fr; width: 100%; }.quotation-edit-grid button { width: 100%; }.quotation-model-card dl { grid-template-columns: 1fr 1fr; }.quotation-model-card dl div { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }.quotation-model-card dl div:first-child,.quotation-model-card dl div:nth-child(2) { border-top: 0; padding-top: 0; } }

/* Simple fixed-price quotation picker: team members never calculate discounts. */
.simple-ready-price { background: #f8f7ff; border: 1px solid #e1ddff; border-radius: 12px; display: grid; gap: 7px; margin: 0; padding: 13px 14px; }
.simple-ready-price select { background: #fff; border-color: #d8d3ff; font-weight: 800; margin: 0; }
.quotation-section-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quotation-section-choice { align-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink); display: grid; font-size: 15px; gap: 2px 10px; grid-template-columns: 30px 1fr; margin: 0; min-height: 72px; padding: 12px; text-align: left; }
.quotation-section-choice:hover { border-color: var(--brand); background: #faf9ff; }
.quotation-section-choice > span { align-items: center; background: #efedff; border-radius: 9px; color: var(--brand); display: inline-flex; font-size: 21px; grid-row: 1 / span 2; height: 30px; justify-content: center; width: 30px; }
.quotation-section-choice small { color: var(--muted); font-size: 11px; font-weight: 700; }
.simple-item-picker { background: #faf9ff; border: 1px solid #dcd7ff; border-radius: 14px; margin-top: 14px; padding: 16px; }
.simple-item-picker-head { align-items: start; display: flex; gap: 12px; justify-content: space-between; }
.simple-item-picker h4 { font-size: 18px; margin: 3px 0 0; }
.simple-item-picker-head button { flex: 0 0 auto; margin: 0; }
.simple-catalog-items { display: grid; gap: 9px; margin-top: 14px; }
.simple-catalog-item { align-items: center; background: #fff; border: 1px solid #e2def7; border-radius: 11px; display: flex; gap: 12px; justify-content: space-between; padding: 12px; }
.simple-catalog-item > div { display: grid; gap: 4px; min-width: 0; }
.simple-catalog-item strong { overflow-wrap: anywhere; }
.simple-catalog-item small { color: var(--muted); font-weight: 700; }
.simple-catalog-item button { flex: 0 0 auto; margin: 0; padding: 9px 12px; }
.simple-item-added { background: #e5f7ee; border-radius: 999px; color: #137447; flex: 0 0 auto; font-size: 12px; font-weight: 850; padding: 8px 11px; }
.simple-extra-item { background: #f5fbfa; border: 1px solid #bfe4dd; border-radius: 14px; display: grid; gap: 12px; margin: 16px 0; padding: 16px; }
.simple-extra-item p { font-size: 13px; margin: 4px 0 0; }
.simple-extra-item > div:last-child { display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) 150px auto; }
.simple-extra-item input,.simple-extra-item button { margin: 0; min-width: 0; }
.simple-selected-items { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.simple-selected-items h4 { font-size: 14px; margin: 0 0 6px; }
.quotation-selected-section { background: #f7f8fc; border: 1px solid #e2e5ed; border-radius: 13px; margin-top: 12px; padding: 13px; }
.quotation-selected-section h5 { color: var(--brand-dark); font-size: 13px; letter-spacing: .03em; margin: 0 0 2px; text-transform: uppercase; }
.simple-flat-discount { background: #fffdf7; border: 1px solid #f2deb0; border-radius: 12px; display: grid; gap: 7px; margin-top: 18px; padding: 13px; }
.simple-flat-discount > div { align-items: center; background: #fff; border: 1px solid #ead9aa; border-radius: 9px; display: flex; overflow: hidden; }
.simple-flat-discount > div span { background: #fff5d8; color: #875900; font-weight: 900; padding: 12px 14px; }
.simple-flat-discount input { border: 0; box-shadow: none; margin: 0; min-width: 0; }
.simple-flat-discount small { color: var(--muted); font-weight: 700; }
.quotation-simple-line { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 12px; justify-content: space-between; margin-top: 10px; padding: 13px 14px; }
.quotation-simple-line > div { display: grid; gap: 4px; min-width: 0; }
.quotation-simple-line strong { overflow-wrap: anywhere; }
.quotation-simple-line small { color: var(--muted); font-weight: 700; }
.quotation-simple-line button { flex: 0 0 auto; margin: 0; padding: 9px 12px; }
[data-simple-lines] > .muted { background: #fafaff; border: 1px dashed var(--line); border-radius: 12px; margin: 12px 0; padding: 14px; }
[data-simple-quotation] .invoice-summary { justify-content: flex-end; margin-top: 18px; }
[data-simple-quotation] .invoice-grand-total { align-items: end; color: #107b70; display: grid; font-size: 14px; gap: 4px; text-align: right; }
[data-simple-quotation] .invoice-grand-total small { color: var(--muted); font-size: 11px; font-weight: 700; }
[data-simple-quotation] .invoice-grand-total strong { color: #107b70; font-size: 28px; }
@media (max-width: 600px) { .quotation-section-grid { grid-template-columns: 1fr; }.simple-item-picker-head,.simple-catalog-item { align-items: stretch; flex-direction: column; }.simple-item-picker-head button,.simple-catalog-item button { width: 100%; }.simple-extra-item > div:last-child { grid-template-columns: 1fr; }.simple-extra-item button { width: 100%; }.quotation-simple-line { align-items: stretch; flex-direction: column; }.quotation-simple-line button { width: 100%; } }

/* Compact quotation finish: easier to scan on a phone before sending the offer. */
[data-simple-quotation] { gap: 16px; max-width: none; }
.assistant-quotation-actions,
.simple-quotation-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.assistant-quotation-actions > *,
.simple-quotation-actions > * { margin: 0; }
.simple-selected-items { margin-top: 10px; padding-top: 14px; }
.simple-selected-items h4 { font-size: 16px; margin-bottom: 9px; }
[data-simple-lines] > .muted { margin: 0; padding: 13px 14px; }
.simple-flat-discount { gap: 5px; margin-top: 2px; padding: 12px 13px; }
.simple-flat-discount > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.simple-flat-discount > div span { font-size: 15px; padding: 10px 13px; }
.simple-flat-discount input { font-size: 16px; min-height: 44px; padding: 8px 13px; }
.simple-flat-discount small { font-size: 12px; line-height: 1.35; }
[data-simple-quotation] .invoice-summary { background: #f7f8fc; border: 1px solid #e2e6ef; border-radius: 12px; display: grid; gap: 8px; grid-template-columns: repeat(3,minmax(0,1fr)); justify-content: initial; margin: 0; padding: 13px; }
[data-simple-quotation] .invoice-summary span { align-content: center; min-height: 44px; text-align: center; }
[data-simple-quotation] .invoice-summary strong { font-size: 16px; }
[data-simple-quotation] .invoice-summary .invoice-grand-total { background: #e8f7f2; border-radius: 9px; padding: 7px 9px; }
[data-simple-quotation] .invoice-summary .invoice-grand-total strong { font-size: 23px; }
@media (max-width: 420px) { [data-simple-quotation] .invoice-summary { gap: 6px; padding: 10px; } [data-simple-quotation] .invoice-summary strong { font-size: 14px; } [data-simple-quotation] .invoice-summary .invoice-grand-total strong { font-size: 20px; } }

/* Local Smart Assistant */
.assistant-page { max-width: 900px; }.assistant-shell { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px rgba(30,41,59,.06); padding: 24px; }.assistant-question { max-width: none; }.assistant-question label { font-size: 14px; font-weight: 800; }.assistant-question > div { display: flex; gap: 10px; }.assistant-question input { margin: 0; min-width: 0; }.assistant-question button { flex: 0 0 auto; margin: 0; }.assistant-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }.assistant-suggestions a { background: #f4f2ff; border: 1px solid #e2ddff; border-radius: 999px; color: #5345c5; font-size: 12px; font-weight: 750; padding: 8px 11px; }.assistant-suggestions a:hover { background: #eae6ff; text-decoration: none; }.assistant-answer { background: #f8f9fc; border: 1px solid #e4e7ef; border-radius: 14px; padding: 20px; }.assistant-answer h2 { font-size: 22px; margin: 5px 0 7px; }.assistant-answer > p { color: var(--muted); margin: 0; }.assistant-result-list { display: grid; gap: 8px; margin-top: 16px; }.assistant-result-list a { align-items: center; background: #fff; border: 1px solid #e3e7ef; border-radius: 11px; color: var(--ink); display: grid; gap: 3px 14px; grid-template-columns: minmax(0,1fr) auto; padding: 13px 14px; }.assistant-result-list a:hover { border-color: var(--brand); text-decoration: none; }.assistant-result-list strong { overflow-wrap: anywhere; }.assistant-result-list span { color: var(--muted); font-size: 13px; grid-column: 1; overflow-wrap: anywhere; }.assistant-result-list b { color: var(--brand); font-size: 12px; grid-column: 2; grid-row: 1 / span 2; }.assistant-primary { display: inline-flex; margin-top: 16px; }.assistant-safety { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 18px 2px 0; }

/* Smart Assistant: compact, action-first screen for field teams. */
.assistant-page-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 18px; }
.assistant-page-heading h1 { color: #124c3d; font-size: clamp(32px, 4vw, 43px); letter-spacing: -.045em; line-height: 1.08; margin: 0 0 7px; }
.assistant-page-heading h1 span { display: inline-block; font-size: .58em; transform: rotate(-8deg); }
.assistant-page-heading p { color: #526a65; font-size: 15px; margin: 0; }
.assistant-online-status { align-items: center; background: #fff; border: 1px solid #d7eee4; border-radius: 999px; color: #324845; display: inline-flex; flex: 0 0 auto; font-size: 12px; font-weight: 800; gap: 7px; padding: 9px 13px; }
.assistant-online-status i { background: #25ae68; border-radius: 50%; height: 8px; width: 8px; }
.assistant-shell { border-color: #d7e9e3; padding: 28px; }
.assistant-customer-context { align-items: center; background: #edf8f6; border: 1px solid #b9e5dc; border-radius: 12px; color: #176e63; display: flex; flex-wrap: wrap; gap: 6px 9px; margin-top: 14px; padding: 10px 12px; }
.assistant-customer-context span { color: #58736e; font-size: 12px; font-weight: 750; }
.assistant-customer-context strong { color: #164c46; font-size: 14px; }
.assistant-customer-context small { color: #58736e; font-size: 12px; }
.assistant-customer-context a { background: #fff; border: 1px solid #9eddd2; border-radius: 8px; color: #087b70; font-size: 12px; font-weight: 800; margin-left: auto; padding: 7px 9px; }
.assistant-customer-context a:hover { background: #dff5ef; text-decoration: none; }
.assistant-question > div { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) 52px; }
.assistant-question .assistant-mic { background: #edf8f6; border: 1px solid #a8ddd6; border-radius: 11px; color: #087b70; min-height: 50px; min-width: 52px; }
.assistant-question > div button[type="submit"] { background: linear-gradient(90deg, #087f78, #07916f); border-radius: 11px; box-shadow: 0 10px 20px rgba(8,127,120,.17); grid-column: 1 / -1; min-height: 50px; width: 100%; }
.assistant-question > div button[type="submit"]:hover { background: linear-gradient(90deg, #066b65, #087f78); }
.assistant-voice-controls { box-sizing: border-box; color: #5d6979; display: grid; font-size: 12px; font-weight: 650; gap: 7px; margin-top: 10px; max-width: 100%; width: 100%; }
.assistant-voice-controls > span { display: block; }
.assistant-voice-controls label { align-items: center; box-sizing: border-box; display: grid; font-size: 12px; gap: 6px; grid-template-columns: minmax(0, 1fr) minmax(150px, 210px); max-width: 100%; min-width: 0; width: 100%; }
.assistant-voice-controls select { background: #f7fbfa; border: 1px solid #c9e6df; border-radius: 8px; box-sizing: border-box; color: #176e63; font: inherit; font-weight: 750; margin: 0; max-width: 100%; min-height: 38px; padding: 5px 28px 5px 9px; width: 100%; }
.assistant-question .assistant-mic.is-listening { animation: assistantMicPulse 1.1s ease-in-out infinite; background: #087f78; border-color: #087f78; color: #fff; }
@keyframes assistantMicPulse { 50% { box-shadow: 0 0 0 8px rgba(8,127,120,.16); transform: scale(1.03); } }
.assistant-voice-status.is-idle { display: none; }
.assistant-voice-status:not(.is-idle) { background: #f2fbf8; border: 1px solid #bfe6da; border-radius: 9px; color: #176e63; margin-top: 11px; padding: 8px 10px; }
.assistant-voice-help { margin-top: 12px; }
.assistant-voice-help summary { color: #637285; font-size: 12px; }
.assistant-quick-actions { border-top: 1px solid #edf0f3; margin-top: 24px; padding-top: 22px; }
.assistant-quick-actions > .eyebrow { color: #087f78; display: block; margin-bottom: 11px; }
.assistant-quick-actions > div { display: grid; gap: 11px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.assistant-quick-actions a { align-items: center; background: #fff; border: 1px solid #e2e9e8; border-radius: 13px; color: #27374a; display: grid; gap: 9px; justify-items: start; min-height: 108px; padding: 14px; }
.assistant-quick-actions a:hover { border-color: #9fd8c8; box-shadow: 0 10px 20px rgba(17,112,82,.1); text-decoration: none; transform: translateY(-2px); }
.assistant-quick-actions a b { align-items: center; background: #e8f7f1; border-radius: 50%; color: #087f78; display: inline-flex; font-size: 20px; height: 38px; justify-content: center; width: 38px; }
.assistant-quick-actions a:nth-child(2) b { background: #fff5df; color: #a66b08; }
.assistant-quick-actions a:nth-child(3) b { background: #edf3ff; color: #2c6fbc; }
.assistant-quick-actions a:nth-child(4) b { background: #f1efff; color: #5b45d7; }
.assistant-quick-actions a strong { font-size: 13px; line-height: 1.3; }
.assistant-new-enquiry { align-items: center; background: #087f78; border-radius: 10px; color: #fff; display: inline-flex; font-size: 14px; font-weight: 800; margin-top: 15px; padding: 11px 14px; }.assistant-new-enquiry:hover { background: #066b65; color: #fff; text-decoration: none; }.assistant-command-help { background: #fffdf7; border: 1px solid #f0dfaf; border-radius: 12px; color: var(--ink); margin: 16px 0 18px; padding: 0 14px; }.assistant-command-help summary { cursor: pointer; font-size: 14px; font-weight: 800; padding: 13px 4px; }.assistant-command-help > div { border-top: 1px solid #f3e7c5; padding: 9px 4px 5px; }.assistant-command-help p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0 0 9px; }.assistant-command-help p b { color: var(--ink); }
.existing-customer-check { background: #f2fbf8; border: 1px solid #9bddca; border-radius: 12px; margin: -2px 0 12px; padding: 13px; }.existing-customer-heading { align-items: center; color: #116e57; display: flex; font-size: 14px; justify-content: space-between; }.existing-customer-heading button { background: transparent; border: 0; color: #47685f; font-size: 21px; margin: 0; min-height: 28px; padding: 0 5px; width: auto; }.existing-customer-check p { margin: 9px 0 5px; }.existing-customer-check ol { display: grid; gap: 7px; margin: 7px 0 13px; padding-left: 21px; }.existing-customer-check li { display: grid; gap: 2px; font-size: 13px; }.existing-customer-check li span { color: var(--muted); font-size: 12px; }.existing-customer-actions { display: flex; flex-wrap: wrap; gap: 8px; }.existing-customer-actions button,.existing-customer-actions a { align-items: center; display: inline-flex; font-size: 12px; margin: 0; min-height: 38px; padding: 8px 10px; width: auto; }
.assistant-existing-customer { background: #fffdf5; border: 1px solid #e9d48c; border-radius: 11px; margin: 4px 0 18px; padding: 13px; }.assistant-existing-customer > strong { color: #8b6505; }.assistant-existing-customer p { margin: 7px 0; }.assistant-existing-customer ol { margin: 7px 0 10px; padding-left: 21px; }.assistant-existing-customer li { font-size: 13px; margin: 4px 0; }.assistant-existing-customer small { color: var(--muted); }
.assistant-duplicate-warning { background: #fff5f2; border: 1px solid #f1b4a3; border-radius: 11px; display: grid; gap: 8px; margin: 4px 0 18px; padding: 13px; }.assistant-duplicate-warning > strong { color: #a63f22; }.assistant-duplicate-warning p, .assistant-duplicate-warning small { margin: 0; }.assistant-duplicate-warning small { color: #755448; }.assistant-duplicate-warning .secondary-button { justify-self: start; }
.customer-profile-page { max-width: 900px; }.customer-profile-head { align-items: end; display: flex; gap: 18px; justify-content: space-between; margin: 14px 0 22px; }.customer-profile-head h1 { margin: 4px 0; }.customer-profile-head p { color: var(--muted); margin: 0; }.customer-enquiry-list { display: grid; gap: 10px; }.customer-enquiry-list a { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); display: flex; justify-content: space-between; padding: 14px; }.customer-enquiry-list a:hover { border-color: var(--brand); text-decoration: none; }.customer-enquiry-list div { display: grid; gap: 4px; }.customer-enquiry-list span { color: var(--muted); font-size: 13px; }.customer-enquiry-list b { color: var(--brand); font-size: 13px; }@media(max-width:600px){.customer-profile-head{align-items:flex-start;flex-direction:column;}.customer-profile-head .action-link{width:100%;}}
@media (max-width: 560px) { .assistant-shell { border-radius: 0; border-left: 0; border-right: 0; margin: 0 -16px; padding: 18px 16px; }.assistant-question > div { display: grid; }.assistant-question button { width: 100%; }.assistant-answer { padding: 16px; }.assistant-result-list a { padding: 12px; } }
@media (max-width: 560px) { .assistant-customer-context { align-items: flex-start; }.assistant-customer-context a { margin-left: 0; width: 100%; text-align: center; } }
.assistant-question .assistant-mic { background: #edf8f6; border: 1px solid #a8ddd6; color: #087b70; font-size: 18px; min-width: 48px; padding: 0; }.assistant-question .assistant-mic:disabled { opacity: .6; }.assistant-voice-status { color: var(--muted); display: block; font-size: 12px; line-height: 1.45; margin-top: 8px; }
.assistant-mic-help { background: #fff9e9; border: 1px solid #f0d28a; border-radius: 10px; color: #744d00; margin-top: 10px; padding: 12px; }.assistant-mic-help strong { display: block; font-size: 13px; }.assistant-mic-help p { font-size: 12px; line-height: 1.5; margin: 5px 0 10px; }.assistant-mic-help button { font-size: 12px; margin: 0; min-height: 36px; padding: 0 11px; }
.assistant-diagnostic-toggle { background: transparent; color: #516070; font-size: 12px; font-weight: 700; margin: 10px 0 0; min-height: 30px; padding: 0; text-decoration: underline; }.assistant-diagnostic { background: #f7f8fb; border-radius: 8px; color: #516070; font-size: 12px; line-height: 1.45; margin-top: 7px; padding: 9px 11px; }
.assistant-enquiry { background: #f3fbf9; border: 1px solid #b9e6dd; border-radius: 14px; margin-top: 18px; padding: 20px; }.assistant-enquiry h2 { font-size: 21px; margin: 4px 0 6px; }.assistant-enquiry > p { color: var(--muted); margin: 0 0 16px; }.assistant-enquiry form { display: grid; gap: 13px; max-width: 560px; }.assistant-enquiry label { display: grid; font-size: 13px; font-weight: 800; gap: 6px; }.assistant-enquiry input { margin: 0; }.assistant-enquiry button { margin: 4px 0 0; width: 100%; }.assistant-enquiry small { color: #42625d; display: block; font-size: 12px; line-height: 1.45; margin-top: 13px; }
.assistant-guided-progress { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }.assistant-guided-progress span { background: #e8eeed; border-radius: 999px; color: #60736f; font-size: 12px; font-weight: 800; padding: 7px 10px; }.assistant-guided-progress span.done { background: #cceee6; color: #126d61; }.assistant-guided-enquiry form { margin-top: 14px; }
.assistant-answer-guided { background: linear-gradient(145deg, #f2fbf8, #fff); border-color: #bde6dd; margin: 18px auto 0; max-width: 680px; padding: 24px; }.assistant-answer-guided .eyebrow { color: #087b70; }.assistant-answer-guided .assistant-guided-progress { border-top: 1px solid #d9ebe7; margin: 19px 0 0; padding-top: 18px; }.assistant-guided-progress span.active { background: #087f78; box-shadow: 0 5px 12px rgba(8,127,120,.18); color: #fff; }.assistant-guided-toolbar { align-items: center; border-bottom: 1px solid #edf0f4; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 12px; gap: 10px 16px; margin: 16px 0; padding-bottom: 14px; }.assistant-guided-toolbar a { color: #a63f22; font-weight: 800; }.assistant-review-button { margin: 18px 0 0; max-width: none; }.assistant-review-button button { width: 100%; }
.assistant-ready-review { background: #f2fbf8; border: 1px solid #bde6dd; border-radius: 13px; display: grid; gap: 8px; margin: 0 auto; max-width: 680px; padding: 18px; }.assistant-ready-review label { color: #096e63; }.assistant-ready-review p { color: var(--muted); font-size: 13px; margin: 0; }.assistant-ready-review button { margin: 4px 0 0; width: 100%; }
.assistant-date-choice { background: #f6fbff; border: 1px solid #c8deef; border-radius: 13px; margin: 0 auto; max-width: 680px; padding: 18px; }.assistant-date-choice > div:first-of-type { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(126px, auto) !important; width: 100%; }.assistant-date-choice input { box-sizing: border-box; min-height: 48px; min-width: 0; width: 100%; }.assistant-date-choice > div:first-of-type > button[type="submit"] { min-height: 48px; min-width: 126px; padding-left: 16px; padding-right: 16px; width: auto; }.assistant-date-shortcuts { box-sizing: border-box; display: flex !important; gap: 9px; margin-top: 12px; width: 100%; }.assistant-date-shortcuts a { background: #fff; border: 1px solid #bfd8ed; border-radius: 9px; box-sizing: border-box; color: #176c9e; font-size: 13px; font-weight: 800; min-width: 0; padding: 9px 13px; white-space: nowrap; }.assistant-date-shortcuts a:hover { background: #e9f5ff; text-decoration: none; }.assistant-date-choice small { color: var(--muted); display: block; font-size: 12px; margin-top: 10px; }
.assistant-voice-field { display: flex; gap: 8px; }.assistant-voice-field input { min-width: 0; width: 100%; }.assistant-voice-field button { background: #fff; border: 1px solid #99d8cf; color: #087b70; flex: 0 0 44px; font-size: 17px; margin: 0; min-height: 44px; padding: 0; width: 44px; }
.assistant-question > div { align-items: stretch; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) 52px auto; }.assistant-question .assistant-mic { align-items: center; display: inline-flex; justify-content: center; min-height: 48px; }.assistant-question .assistant-mic svg,.assistant-voice-field button svg { fill: none; height: 22px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 22px; }.assistant-workflow-note { background: #edf8f5; border: 1px solid #b9e5dc; border-radius: 10px; color: #176e63; font-size: 13px; margin: 14px 0 0; padding: 11px 13px; }.assistant-quick-tools { align-items: center; border-bottom: 1px solid #edf0f4; display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 17px 0 16px; padding-bottom: 16px; }.assistant-new-enquiry { margin: 0; min-height: 42px; padding: 9px 13px; }.assistant-suggestions { margin: 0; }.assistant-suggestions a { padding: 7px 10px; }.assistant-voice-help { color: #5d6979; font-size: 12px; margin-top: 10px; }.assistant-voice-help summary { cursor: pointer; font-weight: 750; width: fit-content; }.assistant-voice-help[open] summary { color: #087b70; }.assistant-voice-help .assistant-mic-help { margin-bottom: 8px; }.assistant-answer { margin-top: 18px; }.assistant-command-help { margin-top: 0; }.assistant-voice-field button { align-items: center; display: inline-flex; justify-content: center; }.assistant-voice-field button svg { height: 19px; width: 19px; }
.assistant-share-confirmation { background: #f1fbf8; border: 1px solid #a9ddd3; border-radius: 14px; display: grid; gap: 12px; margin-top: 17px; padding: 18px; }.assistant-share-confirmation .eyebrow { color: #087b70; }.assistant-share-confirmation h3 { font-size: 21px; margin: -4px 0 0; }.assistant-share-confirmation dl { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }.assistant-share-confirmation dl div { background: #fff; border: 1px solid #d7ebe6; border-radius: 9px; min-width: 0; padding: 10px; }.assistant-share-confirmation dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.assistant-share-confirmation dd { color: var(--ink); font-size: 14px; font-weight: 800; margin: 4px 0 0; overflow-wrap: anywhere; }.assistant-share-confirmation p { color: #42625d; font-size: 13px; line-height: 1.45; margin: 0; }.assistant-share-confirmation form { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }.assistant-share-confirmation form button,.assistant-share-confirmation form a { margin: 0; min-height: 43px; width: auto; }.assistant-share-confirmation form a { align-items: center; display: inline-flex; justify-content: center; padding: 0 15px; }.assistant-share-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }.assistant-share-actions .assistant-share-confirm { background: var(--brand); border-radius: 9px; color: #fff; display: inline-flex; font-weight: 800; justify-content: center; min-height: 43px; padding: 0 17px; }.assistant-share-actions .assistant-share-confirm:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }.assistant-share-actions .secondary-button { align-items: center; display: inline-flex; justify-content: center; min-height: 43px; padding: 0 15px; }
.assistant-share-actions form { margin: 0; }.assistant-share-actions form button { margin: 0; min-height: 43px; }.assistant-share-error { color: #a43636 !important; font-weight: 700; }
@media (max-width: 560px) { .assistant-question > div { grid-template-columns: minmax(0, 1fr) 50px; }.assistant-question > div button[type="submit"] { grid-column: 1 / -1; width: 100%; }.assistant-quick-tools { align-items: stretch; flex-direction: column; }.assistant-new-enquiry { justify-content: center; width: 100%; }.assistant-suggestions { display: grid; grid-template-columns: 1fr 1fr; }.assistant-suggestions a { align-items: center; display: flex; justify-content: center; min-height: 38px; text-align: center; } }
@media (max-width: 700px) { .assistant-voice-controls label { align-items: stretch; grid-template-columns: 1fr; }.assistant-voice-controls select { min-height: 40px; } }
@media (max-width: 560px) { .assistant-page .page-heading { margin-bottom: 12px; }.assistant-page .page-heading h1 { font-size: 27px; }.assistant-page .page-heading p { font-size: 14px; }.assistant-answer-guided { border-radius: 14px; padding: 18px 16px; }.assistant-guided-progress { gap: 7px; }.assistant-guided-progress span { font-size: 11px; padding: 7px 9px; }.assistant-guided-toolbar { align-items: flex-start; flex-direction: column; gap: 6px; }.assistant-question input { font-size: 16px; }.assistant-share-confirmation { padding: 15px; }.assistant-share-confirmation dl { grid-template-columns: 1fr; }.assistant-share-confirmation form { display: grid; grid-template-columns: 1fr; }.assistant-share-confirmation form button,.assistant-share-confirmation form a { width: 100%; }.assistant-share-actions { display: grid; grid-template-columns: 1fr; }.assistant-share-actions .assistant-share-confirm,.assistant-share-actions .secondary-button { width: 100%; } }
@media (max-width: 560px) { .assistant-date-choice > div:first-of-type { grid-template-columns: 1fr !important; }.assistant-date-choice > div:first-of-type > button[type="submit"] { width: 100%; }.assistant-date-shortcuts { display: grid !important; grid-template-columns: minmax(0, 1fr); }.assistant-date-shortcuts a { text-align: center; width: 100%; } }
/* Guided enquiry date shortcuts must remain two full-width touch targets on a
   narrow phone. This deliberately overrides the general assistant grid. */
@media (max-width: 560px) { .assistant-page .assistant-date-choice .assistant-date-shortcuts { display: block !important; overflow: visible !important; width: 100% !important; }.assistant-page .assistant-date-choice .assistant-date-shortcuts a { display: block !important; margin: 0 0 9px !important; min-height: 44px; padding: 12px 14px !important; text-align: center !important; white-space: normal !important; width: 100% !important; }.assistant-page .assistant-date-choice .assistant-date-shortcuts a:last-child { margin-bottom: 0 !important; } }
.assistant-enquiry-review { max-width: 680px; }.assistant-review-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 16px 0 20px; }.assistant-review-grid div { background: #fff; border: 1px solid #cce8e2; border-radius: 10px; display: grid; gap: 4px; padding: 12px; }.assistant-review-grid span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }.assistant-review-grid strong { overflow-wrap: anywhere; }.assistant-review-grid a { color: #087b70; font-size: 12px; font-weight: 800; justify-self: start; margin-top: 4px; }.assistant-review-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }.assistant-review-actions form { margin: 0; max-width: none; }.assistant-review-actions .secondary-button { align-items: center; display: inline-flex; min-height: 44px; padding: 0 14px; }.assistant-review-actions button { margin: 0; min-height: 44px; width: auto; }
.assistant-enquiry-saved { background: #fff; border: 1px solid #c5e8da; border-radius: 18px; box-shadow: 0 16px 40px rgba(30,41,59,.06); margin: 42px auto; max-width: 680px; padding: 34px; text-align: center; }.assistant-enquiry-saved h1 { font-size: 29px; margin: 9px 0 8px; }.assistant-enquiry-saved > p { color: var(--muted); margin: 0; }.assistant-saved-check { align-items: center; background: #dff7e9; border: 1px solid #9cddba; border-radius: 50%; color: #107246; display: inline-flex; font-size: 25px; font-weight: 900; height: 56px; justify-content: center; width: 56px; }.assistant-saved-details { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin: 24px 0; text-align: left; }.assistant-saved-details div { background: #f6fbf9; border: 1px solid #d8eee7; border-radius: 10px; display: grid; gap: 5px; padding: 13px; }.assistant-saved-details span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.assistant-saved-details strong { overflow-wrap: anywhere; }.assistant-saved-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }.assistant-saved-actions a { align-items: center; display: inline-flex; justify-content: center; min-height: 44px; padding: 0 14px; }.assistant-saved-actions .secondary-button { background: #f1f3f8; color: #344054; }
@media (max-width: 560px) { .assistant-review-grid { grid-template-columns: 1fr; }.assistant-review-actions, .assistant-review-actions form, .assistant-review-actions a, .assistant-review-actions button { width: 100%; }.assistant-review-actions .secondary-button { justify-content: center; } }

/* The voice controls are a direct child of the assistant form, so they must
   explicitly opt out of the generic input/mic/submit grid above. */
.assistant-question > .assistant-voice-controls { align-items: stretch; display: grid; gap: 7px; grid-template-columns: minmax(0, 1fr); max-width: 100%; width: 100%; }
.assistant-question > .assistant-voice-controls > span { grid-column: 1; }
.assistant-question > .assistant-voice-controls > label { grid-column: 1; grid-template-columns: minmax(0, 1fr) minmax(150px, 210px); }
@media (max-width: 700px) { .assistant-question > .assistant-voice-controls > label { grid-template-columns: minmax(0, 1fr); } }

/* Shared secondary actions: compact, clear and consistent across the app. */
.secondary-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d6e1e8;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    color: #40516a;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    line-height: 1.15;
    min-height: 40px;
    padding: 0 14px;
    text-align: center;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}
.secondary-button:hover {
    background: #f1fbf8;
    border-color: #92d7c4;
    box-shadow: 0 6px 15px rgba(7, 127, 120, .10);
    color: #087a72;
    text-decoration: none;
    transform: translateY(-1px);
}
.secondary-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(8, 127, 120, .18);
    outline: 0;
}
.secondary-button.action-link { align-self: flex-start; white-space: nowrap; }
.more-invoice-actions { width: 100%; }
.finance-actions > .payment-disclosure { flex: 1 1 auto; }
.finance-actions > .payment-disclosure > summary { white-space: nowrap; }
.more-invoice-actions > .action-link { align-items: center; display: flex; justify-content: center; margin-top: 8px; text-align: center; width: 100%; }
.invoice-outstanding-amount { color: #a83a22; }
.recent-payment-list { border-top: 1px solid var(--line); }
.recent-payment-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: minmax(130px,.7fr) minmax(170px,1fr) minmax(180px,1fr) minmax(180px,1fr) auto; padding: 15px 0; }
.recent-payment-row:last-child { border-bottom: 0; }
.recent-payment-row > div { display: grid; gap: 4px; min-width: 0; }
.recent-payment-row strong { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.recent-payment-row span:not(.status) { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.recent-payment-amount > strong { color: #087f67; font-size: 20px; letter-spacing: -.03em; }
.recent-payment-amount .status { justify-self: start; }
.recent-payment-row > .action-link { min-height: 40px; padding: 9px 13px; white-space: nowrap; }
@media (max-width: 900px) { .recent-payment-row { grid-template-columns: repeat(2,minmax(0,1fr)); }.recent-payment-row > .action-link { grid-column: 1 / -1; text-align: center; } }
@media (max-width: 620px) {
    .recent-payments-card { padding: 16px !important; }
    .recent-payments-card .section-heading { margin-bottom: 10px; }
    .recent-payments-card .section-heading h2 { font-size: 24px; }
    .recent-payment-row {
        gap: 10px 12px;
        grid-template-areas:
            "amount amount"
            "customer invoice"
            "audit action";
        grid-template-columns: minmax(0,1fr) auto;
        padding: 13px 0;
    }
    .recent-payment-amount { align-items: center; display: flex !important; gap: 10px !important; grid-area: amount; }
    .recent-payment-amount > strong { font-size: 19px; }
    .recent-payment-customer { grid-area: customer; }
    .recent-payment-invoice { grid-area: invoice; text-align: right; }
    .recent-payment-audit { grid-area: audit; }
    .recent-payment-row > .action-link { align-self: center; grid-area: action; min-height: 34px; padding: 7px 10px; }
}
.more-invoice-actions > summary {
    align-items: center;
    background: #fff;
    border: 1px solid #d6e1e8;
    border-radius: 10px;
    color: #40516a;
    cursor: pointer;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    list-style: none;
    min-height: 40px;
    padding: 0 14px;
}
.more-invoice-actions > summary::-webkit-details-marker { display: none; }
.more-invoice-actions[open] > summary { border-color: #aab8c7; margin-bottom: 8px; }
.more-invoice-actions > details { margin-top: 8px; }

/* Insurance is its own operational desk: financial and sales work remain out
   of this focused renewal queue. */
.insurance-page .page-heading { margin-bottom: 18px; }
.insurance-page .tractor-queue-tabs { margin: 0 0 16px; }
.insurance-filter-disclosure { border: 1px solid #dfe7ee; border-radius: 11px; margin: 0 0 16px; overflow: hidden; }
.insurance-filter-disclosure summary { align-items: center; background: #fff; cursor: pointer; display: flex; gap: 10px; justify-content: space-between; list-style: none; min-height: 44px; padding: 0 14px; }
.insurance-filter-disclosure summary::-webkit-details-marker { display: none; }
.insurance-filter-disclosure summary::after { color: #087f78; content: '+'; font-size: 20px; font-weight: 500; line-height: 1; order: 3; }
.insurance-filter-disclosure[open] summary { border-bottom: 1px solid #e5ebf0; }
.insurance-filter-disclosure[open] summary::after { content: '−'; }
.insurance-filter-disclosure summary span { color: #33445a; font-size: 12px; font-weight: 850; }
.insurance-filter-disclosure summary small { color: #748196; font-size: 11px; margin-left: auto; }
.insurance-filter-disclosure .report-filter { background: #fbfcfe; margin: 0; padding: 14px; }
.insurance-due-badge { border-radius: 999px; display: inline-flex; font-size: 10px; font-weight: 850; margin-top: 5px; padding: 3px 7px; }
.insurance-due-badge.is-overdue { background: #fff0ef; color: #c23e36; }
.insurance-due-badge.is-today { background: #fff5dc; color: #9a6700; }
.insurance-due-badge.is-upcoming { background: #eaf8f1; color: #16704d; }
.latest-remark-panel { background: #f5fbf9; border: 1px solid #d5ebe3; border-radius: 12px; margin: 13px 0 18px; padding: 12px 14px; }
.latest-remark-panel > span { color: #087f78; display: block; font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.latest-remark-panel p { color: #3f5168; font-size: 13px; line-height: 1.5; margin: 5px 0 0; overflow-wrap: anywhere; }
.latest-remark-panel { background: #f0fbf8; border: 1px solid #aee8d6; border-left: 4px solid var(--brand); border-radius: 10px; display: grid; gap: 4px; margin: 16px 0; padding: 12px 14px; }
.latest-remark-panel > span { color: #087f73; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.latest-remark-panel p { color: var(--ink); font-weight: 700; line-height: 1.45; margin: 0; }
.renewal-heading-meta { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.renewal-heading-meta .back-link { margin-bottom: 0; }
.insurance-renewal-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1280px; }
.insurance-policy-document-card { display: grid; gap: 8px; max-width: 920px; scroll-margin-top: 24px; }
.insurance-policy-document-card h2 { margin: 0; }
.insurance-policy-document-card .muted { margin: 0; }
.insurance-owner-summary { align-items: center; background: #f7fbfa; border: 1px solid #d6efe6; border-radius: 10px; display: flex; gap: 10px; justify-content: space-between; margin-top: 4px; padding: 11px 12px; }.insurance-owner-summary span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.insurance-owner-summary strong { overflow-wrap: anywhere; }
.insurance-details-panel { display: grid; gap: 18px; margin: 20px 0; scroll-margin-top: 24px; }
.insurance-policy-document-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.insurance-policy-document-history { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.insurance-header-actions { align-items: center; display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
@media (max-width: 760px) { .insurance-renewal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.insurance-header-actions { justify-content: flex-start; width: 100%; }.insurance-header-actions .action-link,.insurance-header-actions .customer-file-whatsapp { flex: 1 1 132px; } }
@media (max-width: 620px) {
    .insurance-filter-disclosure summary small { display: none; }
    .insurance-page .insurance-table,
    .insurance-page .insurance-table tbody,
    .insurance-page .insurance-table tr,
    .insurance-page .insurance-table td { display: block; min-width: 0; width: 100%; }
    .insurance-page .insurance-table thead { display: none; }
    .insurance-page .crm-table-wrap { border: 0; overflow: visible; }
    .insurance-page .insurance-table tr { background: #fff; border: 1px solid #e1e8ee; border-radius: 13px; box-shadow: 0 7px 18px rgba(26,42,64,.035); margin: 10px 0; padding: 8px 14px; }
    .insurance-page .insurance-table td { align-items: center; border: 0; display: grid; gap: 9px; grid-template-columns: minmax(106px,.6fr) minmax(0,1fr); padding: 9px 0; }
    .insurance-page .insurance-table td::before { color: #78869a; content: attr(data-label); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
    .insurance-page .insurance-table td[data-label="Customer"] { display: block; padding-bottom: 11px; }
    .insurance-page .insurance-table td[data-label="Customer"]::before,
    .insurance-page .insurance-table td[data-label=""]::before { display: none; }
    .insurance-page .insurance-table td[data-label=""] { display: block; padding-top: 12px; }
    .insurance-page .insurance-table td[data-label=""] .action-link,
    .insurance-page .insurance-table td[data-label=""] .secondary-button { width: 100%; }
    .insurance-page .insurance-table .inline-form { display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) auto; }
}

/* CRM quick action: keep the last saved remark visible without making the
   mobile drawer wider than the device viewport. */
.quick-latest-remark {
    background: #f5fbf9;
    border: 1px solid #d5ebe3;
    border-radius: 12px;
    padding: 12px 14px;
}
.quick-latest-remark > span {
    color: #087f78;
    display: block;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.quick-latest-remark p {
    color: #3f5168;
    font-size: 13px;
    line-height: 1.5;
    margin: 5px 0 0;
    overflow-wrap: anywhere;
}

body.drawer-open { overflow-x: hidden; }
.customer-directory-actions { align-items:center; display:flex; flex-wrap:wrap; gap:10px; }.customer-directory-actions > * { margin:0; }.crm-intake-stage { background:#f2f8f7; border:1px solid #cfe8e2; border-radius:11px; display:grid; gap:3px; padding:12px 14px; }.crm-intake-stage span { color:#6d7b8f; font-size:10px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }.crm-intake-stage strong { color:#087f78; font-size:14px; }
.drawer.customer-create-drawer { display:flex; flex-direction:column; gap:0; max-width:580px; overflow:hidden; padding:0; width:min(580px,calc(100vw - 24px)); }
.customer-create-head { align-items:flex-start; background:#fff; border-bottom:1px solid #e6ecf1; margin:0; padding:25px 28px 20px; position:sticky; top:0; z-index:2; }
.customer-create-head h2 { color:#18243a; font-size:27px; letter-spacing:-.04em; margin:3px 0 3px; }.customer-create-head p { color:#758299; font-size:13px; margin:0; }
.customer-create-close { align-items:center; border-radius:50%; display:inline-flex; font-size:25px; height:42px; justify-content:center; min-height:42px; padding:0; width:42px; }
.customer-create-note { align-items:flex-start; background:#f1f8f6; border:1px solid #cce7df; border-radius:12px; display:flex; gap:10px; margin:16px 28px 0; padding:11px 14px; }
.customer-create-note > span { align-items:center; background:#d9f0ea; border-radius:50%; color:#087f78; display:inline-flex; flex:0 0 auto; font-size:11px; font-weight:900; height:22px; justify-content:center; width:22px; }.customer-create-note p { color:#52647a; font-size:12px; line-height:1.5; margin:1px 0 0; }
.customer-create-form { display:flex; flex:1; flex-direction:column; margin:0; min-height:0; overflow-y:auto; padding:17px 28px 0; }.customer-create-fields { display:grid; gap:14px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.customer-create-field { margin:0; min-width:0; }.customer-create-field--wide { grid-column:1 / -1; }.customer-create-field > span { align-items:center; display:flex; gap:7px; justify-content:space-between; }
.customer-create-field b,.customer-create-field em { font-size:9px; font-style:normal; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }.customer-create-field b { color:#087f78; }.customer-create-field em { color:#8a96a8; }
.customer-create-field input { box-sizing:border-box; min-height:48px; width:100%; }.customer-phone-input { align-items:center; border:1px solid #d5dee8; border-radius:10px; display:grid; grid-template-columns:auto minmax(0,1fr); margin-top:6px; overflow:hidden; }.customer-phone-input:focus-within { border-color:#43bfa3; box-shadow:0 0 0 3px rgba(67,191,163,.13); }.customer-phone-input strong { border-right:1px solid #e2e8ee; color:#53637a; font-size:13px; padding:0 12px; }.customer-phone-input input { border:0; border-radius:0; box-shadow:none; margin:0; }.customer-phone-input input:focus { box-shadow:none; }
.customer-create-actions { background:#fff; border-top:1px solid #e7edf2; bottom:0; display:grid; gap:10px; grid-template-columns:minmax(120px,.7fr) minmax(180px,1.3fr); margin:18px -28px 0; padding:14px 28px max(16px,env(safe-area-inset-bottom)); position:sticky; z-index:2; }.customer-create-actions button { margin:0; width:100%; }
body.drawer-open .workspace-assistant-shortcut { display: none; }

@media (max-width: 620px) {
    .customer-directory-actions { display:grid; grid-template-columns:1fr; width:100%; }.customer-directory-actions > * { width:100%; }
    .drawer.customer-create-drawer { border-radius:0; height:100dvh; inset:0; max-width:none; width:100%; }.customer-create-head { padding:17px 18px 14px; }.customer-create-head h2 { font-size:23px; }.customer-create-head p { font-size:12px; }.customer-create-note { margin:14px 16px 0; }.customer-create-form { padding:17px 16px 0; }.customer-create-fields { gap:15px; grid-template-columns:1fr; }.customer-create-field--wide { grid-column:auto; }.customer-create-actions { grid-template-columns:1fr 1.35fr; margin:22px -16px 0; padding:13px 16px max(14px,env(safe-area-inset-bottom)); }
    .crm-page .drawer,
    .drawer.crm-quick-drawer {
        box-sizing: border-box;
        inset: 0;
        left: 0;
        max-width: none;
        padding: 18px 16px max(22px, env(safe-area-inset-bottom));
        right: 0;
        width: auto;
    }
    .crm-page .drawer > *,
    .drawer.crm-quick-drawer > * { max-width: 100%; min-width: 0; }
    .crm-page .drawer .drawer-head { top: -18px; }
    .quick-drawer-head { align-items: flex-start; gap: 10px; }
    .quick-drawer-head > div { min-width: 0; }
    .quick-drawer-head h2,
    .quick-drawer-head .muted { overflow-wrap: anywhere; }
    .quick-customer-context,
    .quick-action-grid { grid-template-columns: 1fr; width: 100%; }
}

/* V1 finish layer: shared visual rules for every signed-in JANVIXO screen.
   Page-specific layouts stay in their own modules; these rules only make the
   shared surface, controls, data lists and feedback states feel consistent. */
.app-main { background: linear-gradient(145deg, #f8fafc 0%, #f5f8fb 54%, #f8fbfa 100%); }
.content-wrap > main { animation: janvixo-page-enter .22s ease-out both; }
@keyframes janvixo-page-enter { from { opacity: .72; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.page-heading,
.customer-directory-heading,
.workspace-settings-heading,
.account-heading,
.support-heading {
    position: relative;
}
.page-heading .eyebrow,
.customer-directory-heading .eyebrow,
.workspace-settings-heading .eyebrow,
.account-heading .eyebrow,
.support-heading .eyebrow,
.section-heading .eyebrow {
    color: #087f78;
    font-weight: 900;
    letter-spacing: .11em;
}
.page-heading h1,
.customer-directory-heading h1,
.workspace-settings-heading h1,
.support-heading h1 {
    color: #18243a;
}
.page-heading > :last-child:not(:first-child),
.customer-directory-heading > .action-link {
    align-self: flex-end;
}

.card,
.customer-directory-card,
.crm-directory-card,
.dashboard-quick-actions,
.dashboard-routine-card,
.dashboard-insights-grid > .card,
.billing-page .invoice-card {
    border-color: #e0e7ef;
    box-shadow: 0 12px 30px rgba(20, 37, 58, .045);
}
.card:hover,
.customer-directory-card:hover,
.crm-directory-card:hover {
    border-color: #d4e0e7;
}
.section-heading h2,
.customer-directory-toolbar h2 {
    color: #1c2940;
    letter-spacing: -.035em;
}
.section-heading p,
.customer-directory-toolbar p,
.muted {
    color: #6c7a90;
}

label { color: #3a4a63; font-size: 12px; font-weight: 800; letter-spacing: .005em; }
label > input,
label > select,
label > textarea { margin-top: 6px; }
input::placeholder,
textarea::placeholder { color: #98a4b5; opacity: 1; }
textarea { border: 1px solid #d5dee8; border-radius: 10px; font: inherit; min-height: 96px; padding: 11px; resize: vertical; width: 100%; }
textarea:focus { border-color: #43bfa3; box-shadow: 0 0 0 3px rgba(67,191,163,.13); outline: 0; }

button,
.action-link:not(.secondary-button) {
    border-radius: 11px;
    font-weight: 850;
    letter-spacing: -.01em;
    min-height: 43px;
}
button:disabled,
.action-link[aria-disabled="true"] { box-shadow: none; cursor: not-allowed; opacity: .52; transform: none; }
.secondary-button,
.secondary-button.action-link {
    background: #fff;
    border-color: #d9e3eb;
    color: #40516a;
    font-weight: 800;
}
.secondary-button:hover,
.secondary-button.action-link:hover { background: #f2fbf8; border-color: #8dd6c1; color: #087b73; }

.crm-table-wrap,
.billing-page .invoice-table-wrap,
.report-table-wrap { border: 1px solid #e4e9ef; border-radius: 12px; overflow: auto; }
.crm-table { border-collapse: separate; border-spacing: 0; min-width: 680px; width: 100%; }
.crm-table th { background: #f8fafc; color: #748196; font-size: 10px; font-weight: 900; letter-spacing: .08em; padding: 13px 15px; text-transform: uppercase; }
.crm-table td { border-top: 1px solid #edf0f4; color: #45556d; padding: 14px 15px; vertical-align: middle; }
.crm-table tbody tr { transition: background .16s ease; }
.crm-table tbody tr:hover { background: #fbfefc; }
.crm-table td strong { color: #25334a; }
.crm-table td > span { color: #738198; display: block; font-size: 12px; margin-top: 2px; }

.pagination { align-items: center; border-top: 1px solid #edf1f5; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 20px; padding-top: 17px; }
.pagination > span { color: #6e7d92; font-size: 12px; font-weight: 800; }
.empty-workspace,
.customer-directory-empty { background: linear-gradient(135deg, #fbfefd, #f7fafc); border: 1px dashed #cbd8df; border-radius: 14px; padding: 30px 22px; text-align: center; }
.empty-workspace h2,
.customer-directory-empty h2 { color: #27364d; font-size: 19px; margin: 0 0 5px; }
.empty-workspace p,
.customer-directory-empty p { color: #6d7b8f; margin: 0 auto; max-width: 480px; }

.toast { border-radius: 12px; box-shadow: 0 15px 36px rgba(23,32,51,.18); font-weight: 750; max-width: min(440px, calc(100vw - 32px)); }
.record-quick-info > *,
.customer-file-metrics > *,
.metric { border-radius: 13px; }

@media (max-width: 760px) {
    .service-jobs-page { gap: 14px; margin-top: -8px; }
    .service-jobs-heading { gap: 14px; }
    .service-jobs-heading p { font-size: 14px; line-height: 1.5; }
    .service-job-filter-card { padding: 14px; }
    .service-job-filters { grid-template-columns: 1fr; }
    .service-job-filter-actions { display: grid; grid-template-columns: 1fr auto; }
    .service-job-filter-actions button { width: 100%; }
    .service-job-filter-actions a { align-items: center; border: 1px solid #d9e3ea; border-radius: 10px; display: flex; justify-content: center; min-height: 44px; padding: 0 14px; }
    .service-job-results-heading { padding: 0; }
    .service-job-list { gap: 10px; }
    .service-job-item { align-items: stretch; gap: 14px; grid-template-columns: 1fr; padding: 16px; }
    .service-job-item-main { align-items: center; }
    .service-job-identity h3 { font-size: 17px; }
    .service-job-meta { gap: 10px; grid-template-columns: 1fr 1fr; }
    .service-job-meta div { background: #f8fafb; border-radius: 9px; padding: 9px 10px; }
    .service-job-meta div:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .service-job-open { min-height: 44px; width: 100%; }
    .service-job-pagination { justify-content: space-between; }
    .service-job-page .job-summary article { grid-template-columns: minmax(82px,auto) minmax(0,1fr); align-items: baseline; column-gap: 12px; }
    .service-job-page .job-summary article span,.service-job-page .job-summary article strong { display: block; }
    .service-job-page .job-summary article strong { line-height: 1.35; }
    .service-job-page .input-optional { display: inline; margin-left: 4px; }
    .job-action-disclosure > summary { align-items: center; background: #f2f8f6; border: 1px solid #cfe5df; border-radius: 10px; display: flex; justify-content: center; min-height: 44px; width: 100%; }
    .job-action-disclosure[open] > summary { margin-bottom: 14px; }
    .content-wrap { padding-top: 28px; }
    .page-heading,
    .customer-directory-heading,
    .workspace-settings-heading,
    .support-heading { gap: 14px; margin-bottom: 21px; }
    .page-heading h1,
    .customer-directory-heading h1,
    .workspace-settings-heading h1,
    .support-heading h1 { font-size: clamp(29px, 8.5vw, 36px); }
    .page-heading > :last-child:not(:first-child),
    .customer-directory-heading > .action-link { align-self: stretch; width: 100%; }
    .card,
    .customer-directory-card,
    .crm-directory-card { border-radius: 15px; padding: 18px; }
    .crm-table-wrap { margin-inline: -2px; }
    .crm-table { min-width: 610px; }
    .crm-table th,
    .crm-table td { padding-left: 12px; padding-right: 12px; }
    .pagination { align-items: stretch; display: grid; grid-template-columns: 1fr auto 1fr; }
    .pagination > :first-child { justify-self: start; }
    .pagination > :last-child { justify-self: end; }
    .pagination .action-link { min-height: 40px; }
}

/* Mobile dashboard: keep daily work visible without changing the floating assistant. */
@media (max-width: 600px) {
    .operations-dashboard { gap: 14px; }
    .operations-dashboard .dashboard-quick-actions { border-radius: 16px; padding: 16px; }
    .operations-dashboard .dashboard-quick-actions .section-heading { justify-content: flex-start; margin-bottom: 12px; text-align: left; }
    .operations-dashboard .dashboard-quick-actions .section-heading h2 { font-size: 23px; margin: 5px 0 0; }
    .operations-dashboard .dashboard-action-tiles { gap: 9px; }
    .operations-dashboard .dashboard-action-tiles a { align-content: center; gap: 3px 10px; grid-template-columns: 34px minmax(0,1fr); grid-template-rows: auto auto; min-height: 82px; padding: 11px; }
    .operations-dashboard .dashboard-action-tiles b { font-size: 17px; grid-row: 1 / span 2; height: 34px; width: 34px; }
    .operations-dashboard .dashboard-action-tiles strong { align-self: end; font-size: 13px; line-height: 1.18; margin: 0; }
    .operations-dashboard .dashboard-action-tiles span { align-self: start; font-size: 10px; line-height: 1.25; }
    .operations-dashboard .dashboard-action-tiles .dashboard-insurance-action { grid-column: 1 / -1; min-height: 68px; }
    .operations-dashboard .followup-action-card { border-radius: 16px; padding: 17px; }
    .operations-dashboard .followup-action-card > .section-heading { margin-bottom: 10px; }
    .operations-dashboard .followup-action-card > .section-heading h2 { font-size: 25px; }
    .operations-dashboard .reminder-tabs { gap: 0; margin: 12px 0 14px; }
    .operations-dashboard .reminder-tabs a { flex: 1; font-size: 12px; padding: 10px 5px; text-align: center; }
}

@media (max-width: 460px) {
    .content-wrap { padding-bottom: 94px; }
    .page-heading p,
    .customer-directory-heading p { font-size: 14px; }
    button,
    .action-link:not(.secondary-button),
    .secondary-button { min-height: 44px; }
    .pagination { grid-template-columns: 1fr 1fr; }
    .pagination > span { grid-column: 1 / -1; grid-row: 1; text-align: center; }
    .pagination > :first-child { grid-column: 1; grid-row: 2; }
    .pagination > :last-child { grid-column: 2; grid-row: 2; }
}

/* Finance centre: the invoice builder is a deliberate, one-column phone flow.
   Tables may scroll inside their own wrapper; the page itself never widens. */
@media (max-width: 620px) {
    .billing-page {
        overflow-x: clip;
        /* Keep the last invoice controls clear of the fixed Smart Assistant shortcut. */
        padding-bottom: 104px;
        padding-inline: 14px;
    }

    .billing-page .finance-heading {
        align-items: stretch;
        gap: 14px;
        margin-bottom: 18px;
    }

    .billing-page .finance-heading h1 { font-size: 30px; }
    .billing-page .finance-heading .primary-invoice-action { min-height: 46px; width: 100%; }

    .billing-page .finance-metrics {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 16px;
    }

    .billing-page .finance-metric {
        gap: 4px;
        min-height: 112px;
        padding: 14px;
    }

    .billing-page .finance-metric strong { font-size: 20px; }
    .billing-page .finance-metric small { font-size: 10px; }

    .billing-page .invoice-composer,
    .billing-page .invoice-composer > summary,
    .billing-page .invoice-composer form,
    .billing-page .invoice-customer-panel,
    .billing-page .invoice-form-section,
    .billing-page .dashboard-grid,
    .billing-page .customer-picker,
    .billing-page .table-wrap { min-width: 0; width: 100%; }

    .billing-page .invoice-composer > summary { padding: 16px; }
    .billing-page .invoice-composer > summary b { font-size: 16px; }
    .billing-page .invoice-composer form { gap: 18px; padding: 14px; }
    .billing-page .invoice-customer-panel { margin-bottom: 0; padding: 14px; }
    .billing-page .invoice-form-section { margin-top: 18px; padding-top: 18px; }

    .billing-page .customer-mode { gap: 9px; }
    .billing-page .customer-mode-button { min-height: 62px; padding: 10px; }
    .billing-page .customer-mode-button strong { font-size: 14px; }
    .billing-page .customer-picker input,
    .billing-page #new-customer-fields input,
    .billing-page .invoice-form-section input,
    .billing-page .invoice-form-section select,
    .billing-page .invoice-form-section textarea { max-width: 100%; min-width: 0; width: 100%; }

    .billing-page .table-wrap { border: 1px solid #e3eaf0; border-radius: 12px; }
    .billing-page .invoice-items { min-width: 580px; }
    .billing-page .invoice-items th { padding-top: 12px; }

    .billing-page .member-actions .secondary-button,
    .billing-page .invoice-form-section > button { min-height: 46px; width: 100%; }

    .billing-page .invoice-summary {
        display: grid;
        gap: 10px 12px;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
        margin: 16px 0;
    }

    .billing-page .invoice-summary span { text-align: left; }
    .billing-page .invoice-summary .invoice-grand-total { grid-column: 1 / -1; }
    .billing-page .invoice-summary .invoice-grand-total strong { font-size: 24px; }

    .billing-page .invoice-history-card { padding: 16px; }
    .billing-page .crm-filter-form { grid-template-columns: 1fr; }
    .billing-page .filter-actions { grid-template-columns: 1fr 1fr; }
    .billing-page .filter-actions > * { min-height: 44px; width: 100%; }
}

/* V1 finishing pass: shared actions, lists and narrow-screen layouts.
   These rules intentionally sit at the end of the stylesheet so every existing
   module inherits the same spacing and button behaviour without duplicating
   page-specific CSS. */
.page-heading > :last-child:not(:first-child) { flex: 0 0 auto; }
.card > .section-heading:first-child,
.card > .support-section-heading:first-child,
.card > .members-section-heading:first-child { margin-bottom: 18px; }

.action-link,
.secondary-button,
button {
    max-width: 100%;
}
.secondary-button,
.secondary-button.action-link {
    color: #3d4d63;
    letter-spacing: -.01em;
}
.secondary-button > span,
.action-link > span,
button > span {
    min-width: 0;
}

.data-row,
.followup-row,
.support-conversation-row,
.members-row {
    min-width: 0;
}
.data-row > div:first-child,
.followup-summary,
.support-conversation-copy,
.members-person {
    min-width: 0;
}
.data-row > div:first-child > p,
.followup-summary p,
.support-conversation-copy p,
.members-person span {
    overflow-wrap: anywhere;
}
.pagination .action-link,
.pagination .secondary-button {
    min-height: 38px;
}

@media (max-width: 760px) {
    .page-heading { align-items: stretch; gap: 14px; }
    .page-heading > :last-child:not(:first-child) { align-self: flex-start; }
    .page-heading > .action-link,
    .page-heading > .secondary-button { width: 100%; }
    .card { padding: 18px; }
    .data-row { align-items: flex-start; flex-direction: column; gap: 12px; }
    .data-row > .member-actions,
    .data-row > .member-actions form,
    .data-row > .member-actions button { width: 100%; }
    .data-row > .member-actions { align-items: stretch; justify-content: stretch; }
    .data-row > .status { align-self: flex-start; }
    .controlled-recovery-grid { grid-template-columns: 1fr; }
    .controlled-recovery-form { padding: 16px; }
    .controlled-recovery-form button { align-self: stretch; min-width: 0; width: 100%; }
    .pagination { align-items: stretch; gap: 10px; }
    .pagination > a { flex: 1 1 0; }
    .pagination > span { align-self: center; flex: 1 0 100%; text-align: center; }
}

@media (max-width: 420px) {
    .content-wrap { width: min(calc(100% - 24px), 1320px); }
    .page-heading h1 { font-size: 30px; }
    .card { border-radius: 14px; padding: 16px; }
    .secondary-button,
    .secondary-button.action-link,
    button,
    .action-link:not(.secondary-button) { min-height: 42px; }
}

/* JANVIXO V1 — shared interface consistency layer.
   This final, small layer deliberately reuses the existing page classes instead
   of introducing one-off variants for CRM, finance, workspace and admin pages. */
:root {
    --jx-surface: #ffffff;
    --jx-surface-soft: #f9fbfd;
    --jx-border: #dfe6ee;
    --jx-shadow: 0 12px 30px rgba(20, 35, 55, .055);
    --jx-radius: 16px;
    --jx-radius-sm: 11px;
    --jx-teal: #087f78;
    --jx-teal-dark: #066b66;
    --jx-purple: #5b4bdb;
}

.app-main,.content-wrap,main,.page-heading,.section-heading,.data-row,.metric,.card { min-width: 0; }
.content-wrap { width: min(calc(100% - 64px), 1320px); padding-bottom: 88px; }
.page-heading { align-items: end; border-bottom: 1px solid var(--jx-border); margin-bottom: 28px; padding-bottom: 22px; }
.page-heading h1 { font-size: clamp(31px, 3.5vw, 46px); letter-spacing: -.052em; line-height: 1.04; margin: 5px 0 9px; }
.page-heading p { color: #64748b; margin: 0; max-width: 700px; }
.eyebrow { color: var(--jx-teal); font-size: 11px; font-weight: 850; letter-spacing: .115em; }

.card,.customer-file-card,.members-section,.access-section,.support-card { background: var(--jx-surface); border-color: var(--jx-border); border-radius: var(--jx-radius); box-shadow: var(--jx-shadow); }
.card { padding: 23px; }
.section-heading { align-items: flex-start; gap: 16px; }
.section-heading h2,.card h2 { color: var(--ink); letter-spacing: -.035em; }
.muted,.section-heading p,.card > p { color: #66758a; }

button,.action-link:not(.secondary-button) {
    align-items: center;
    background: linear-gradient(135deg, #0b9188, var(--jx-teal));
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(8,127,120,.14);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    line-height: 1.2;
    min-height: 42px;
    padding: 0 15px;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
button:hover,.action-link:not(.secondary-button):hover { background: linear-gradient(135deg, #087f78, var(--jx-teal-dark)); box-shadow: 0 8px 19px rgba(8,127,120,.19); color: #fff; text-decoration: none; transform: translateY(-1px); }
button:focus-visible,.action-link:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { box-shadow: 0 0 0 3px rgba(91,75,219,.17); outline: 0; }
button.danger-button { background: #b42318; box-shadow: 0 5px 14px rgba(180,35,24,.14); }
button.danger-button:hover { background: #912018; }
.secondary-button,.secondary-button.action-link { border-radius: 10px; font-size: 13px; font-weight: 800; min-height: 42px; padding: 0 14px; }
.logout-button { background: transparent; box-shadow: none; color: #aeb9cf; justify-content: flex-start; transform: none; }
.logout-button:hover { background: #1b263b; box-shadow: none; color: #fff; transform: none; }
.mobile-nav-close { box-shadow: none; }
.mobile-nav-close:hover { box-shadow: none; transform: none; }
.customer-mode-button { box-shadow: none; color: var(--ink); }
.customer-mode-button:hover { box-shadow: 0 4px 12px rgba(81,66,210,.10); color: var(--ink); transform: none; }
.warning-button { box-shadow: none; }

/* Compact desktop utility bar: useful context without consuming dashboard space. */
.workspace-utility-bar { background: rgba(255,255,255,.94); height: 52px; justify-content: space-between; padding: 0 32px; }
.workspace-utility-date,.workspace-utility-actions { align-items: center; display: flex; gap: 11px; }
.workspace-utility-date span { color: #7b8798; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.workspace-utility-date strong { color: #3d4d63; font-size: 13px; font-weight: 800; }
.workspace-utility-status { align-items: center; background: #effbf5; border: 1px solid #cdebdc; border-radius: 999px; color: #176b46; display: inline-flex; font-size: 11px; font-weight: 800; gap: 7px; padding: 7px 10px; }
.workspace-utility-status i { background: #20ae6a; border-radius: 50%; height: 7px; width: 7px; }
@media (max-width: 700px) { .workspace-utility-date,.workspace-utility-status { display: none; } }

input:not([type="checkbox"]):not([type="radio"]),select,textarea { background: #fff; border-color: #d5dee8; border-radius: 10px; color: var(--ink); min-height: 43px; }
input:not([type="checkbox"]):not([type="radio"]):focus,select:focus,textarea:focus { border-color: #43bfa3; box-shadow: 0 0 0 3px rgba(67,191,163,.13); outline: 0; }
textarea { min-height: 104px; padding-top: 11px; }
label { color: #3e4d63; font-size: 13px; font-weight: 760; }

.metric,.finance-metric { background: linear-gradient(145deg, #fff, #fbfdff); border-color: var(--jx-border); border-radius: 14px; box-shadow: 0 5px 18px rgba(20,35,55,.035); }
.finance-metric { --finance-accent:#5b4bdb; --finance-border:#dcd8ff; --finance-soft:#f8f7ff; --finance-orb:rgba(91,75,219,.10); background:linear-gradient(145deg,var(--finance-soft),#fff 67%); border-color:var(--finance-border); border-top:4px solid var(--finance-accent); overflow:hidden; position:relative; }
.finance-metric::after { background:var(--finance-orb); border-radius:50%; content:""; height:72px; pointer-events:none; position:absolute; right:-25px; top:-29px; width:72px; }
.finance-metric > * { position:relative; z-index:1; }
.finance-metric-open { --finance-accent:#2877c9; --finance-border:#c9e0f7; --finance-soft:#f4f9ff; --finance-orb:rgba(40,119,201,.11); }
.finance-metric-pending { --finance-accent:#b87808; --finance-border:#f3d79b; --finance-soft:#fffaf0; --finance-orb:rgba(184,120,8,.10); }
.finance-metric-overdue { --finance-accent:#c4372d; --finance-border:#f2c7c2; --finance-soft:#fff7f6; --finance-orb:rgba(196,55,45,.09); }
.finance-metric-collected { --finance-accent:#078179; --finance-border:#bce9e1; --finance-soft:#f2fcf9; --finance-orb:rgba(7,129,121,.10); }
.finance-metric-open strong { color:#2468ae; }.finance-metric-pending strong { color:#9a6100; }.finance-metric-overdue strong { color:#b42318; }.finance-metric-collected strong { color:#08756e; }
.report-metric { --report-accent:#5b4bdb; --report-border:#dcd8ff; --report-soft:#f8f7ff; --report-orb:rgba(91,75,219,.10); background:linear-gradient(145deg,var(--report-soft),#fff 67%); border-color:var(--report-border); border-top:4px solid var(--report-accent); overflow:hidden; position:relative; }
.report-metric::after { background:var(--report-orb); border-radius:50%; content:""; height:68px; pointer-events:none; position:absolute; right:-23px; top:-28px; width:68px; }
.report-metric > * { position:relative; z-index:1; }
.report-metric-enquiries { --report-accent:#2877c9; --report-border:#c9e0f7; --report-soft:#f4f9ff; --report-orb:rgba(40,119,201,.11); }
.report-metric-pending { --report-accent:#b87808; --report-border:#f3d79b; --report-soft:#fffaf0; --report-orb:rgba(184,120,8,.10); }
.report-metric-invoices { --report-accent:#6849d8; --report-border:#ded4fc; --report-soft:#f8f6ff; --report-orb:rgba(104,73,216,.10); }
.report-metric-collected { --report-accent:#078179; --report-border:#bce9e1; --report-soft:#f2fcf9; --report-orb:rgba(7,129,121,.10); }
.report-metric-insurance-total { --report-accent:#168276; --report-border:#b9e9df; --report-soft:#f1fcf9; --report-orb:rgba(22,130,118,.10); }
.report-metric-insurance-today { --report-accent:#3b78c7; --report-border:#c8def5; --report-soft:#f3f8ff; --report-orb:rgba(59,120,199,.11); }
.report-metric-insurance-overdue { --report-accent:#c0392b; --report-border:#f2c5c0; --report-soft:#fff5f4; --report-orb:rgba(192,57,43,.10); }
.report-metric-insurance-upcoming { --report-accent:#6a50d6; --report-border:#ddd5fb; --report-soft:#f8f6ff; --report-orb:rgba(106,80,214,.10); }
.report-metric-enquiries strong { color:#2468ae; }.report-metric-pending strong { color:#9a6100; }.report-metric-invoices strong { color:#573bbd; }.report-metric-collected strong { color:#08756e; }
.report-metric-insurance-total strong { color:#08756e; }.report-metric-insurance-today strong { color:#215f9f; }.report-metric-insurance-overdue strong { color:#a52a1f; }.report-metric-insurance-upcoming strong { color:#573bbd; }
.metric span,.finance-metric > span { color: #69778c; }
.metric strong,.finance-metric strong { color: var(--ink); }
.status { border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .01em; padding: 5px 9px; }
.data-list { min-width: 0; }
.data-row { gap: 16px; padding: 16px 0; }
.data-row > div { min-width: 0; }
.data-row strong { overflow-wrap: anywhere; }
.data-row p { color: #66758a; }
.pagination { border-top: 1px solid var(--jx-border); flex-wrap: wrap; justify-content: space-between; padding-top: 16px; }

.empty-workspace,.finance-empty,.members-empty,.access-empty { background: var(--jx-surface-soft); border: 1px dashed #cbd8e5; border-radius: 14px; padding: 24px; }
.empty-workspace p,.finance-empty p,.members-empty p,.access-empty p { color: #68778c; }
.table-wrap,.crm-table-wrap { -webkit-overflow-scrolling: touch; max-width: 100%; overscroll-behavior-inline: contain; }
.crm-table,.finance-table { border-collapse: separate; border-spacing: 0; }
.crm-table th,.finance-table th { background: #f8fafc; }
.crm-table th:first-child,.finance-table th:first-child { border-radius: 8px 0 0 8px; }
.crm-table th:last-child,.finance-table th:last-child { border-radius: 0 8px 8px 0; }

@media (max-width: 760px) {
    .content-wrap { width: min(calc(100% - 32px), 1320px); padding-bottom: 108px; padding-top: 28px; }
    .page-heading { align-items: flex-start; gap: 15px; margin-bottom: 22px; padding-bottom: 18px; }
    .page-heading h1 { font-size: 31px; }
    .card { border-radius: 14px; padding: 18px; }
    .section-heading { flex-direction: column; }
    .section-heading > .action-link,.page-heading > .action-link,.page-heading .action-link { width: 100%; }
    .metric-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .metric,.finance-metric { min-height: 108px; padding: 14px; }
    .metric strong,.finance-metric strong { font-size: 23px; }
    .data-row { align-items: flex-start; flex-direction: column; gap: 10px; }
    .data-row > :last-child:not(:first-child) { max-width: 100%; }
    .data-row form,.data-row form button,.data-row .action-link { max-width: 100%; }
    .pagination { align-items: stretch; gap: 10px; }
    .pagination .action-link,.pagination .secondary-button { flex: 1; }
}
@media (max-width: 430px) {
    .content-wrap { width: min(calc(100% - 24px), 1320px); }
    .metric-grid { grid-template-columns: 1fr; }
    .quick-links,.customer-file-actions,.contact-actions { grid-template-columns: 1fr !important; }
    .quick-links > *,.customer-file-actions > *,.contact-actions > * { grid-column: auto !important; width: 100% !important; }
}

/* Customer master directory: customer identity is intentionally separate from
   the day-to-day vehicle-enquiry queues. */
.customer-directory-page { margin: 0 auto; max-width: 1160px; }.customer-directory-heading { align-items: flex-end; border-bottom: 1px solid #e2e8ee; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 25px; padding-bottom: 22px; }.customer-directory-heading h1 { font-size: clamp(34px,4vw,48px); letter-spacing: -.055em; margin: 1px 0 7px; }.customer-directory-heading p { margin: 0; max-width: 620px; }.customer-directory-card { background: #fff; border: 1px solid #e1e8ee; border-radius: 18px; box-shadow: 0 15px 34px rgba(21,38,61,.045); padding: 25px; }.customer-directory-toolbar { align-items: flex-start; display: flex; justify-content: space-between; }.customer-directory-toolbar h2 { font-size: 22px; letter-spacing: -.03em; margin: 0 0 5px; }.customer-directory-toolbar p { font-size: 13px; margin: 0; }.customer-directory-toolbar > strong { align-items: center; background: #edf8f5; border-radius: 999px; color: #087f78; display: inline-flex; font-size: 12px; font-weight: 900; height: 30px; justify-content: center; min-width: 30px; }.customer-directory-search { align-items: center; display: flex; gap: 11px; margin: 20px 0 12px; max-width: 680px; }.customer-directory-search label { align-items: center; background: #f8fafc; border: 1px solid #dbe4ec; border-radius: 11px; display: grid; gap: 9px; grid-template-columns: auto minmax(0,1fr) auto; margin: 0; padding: 5px 5px 5px 12px; width: 100%; }.customer-directory-search label > span { color: #718095; font-size: 19px; }.customer-directory-search input { background: transparent; border: 0; box-shadow: none; margin: 0; min-width: 0; padding: 0; }.customer-directory-search input:focus { box-shadow: none; }.customer-directory-search button { font-size: 12px; margin: 0; min-height: 38px; padding: 0 15px; width: auto; }.customer-directory-search > a { color: #087f78; font-size: 12px; font-weight: 850; }.customer-directory-list { border-top: 1px solid #e8edf2; }.customer-directory-list article { align-items: center; border-bottom: 1px solid #e8edf2; display: grid; gap: 14px; grid-template-columns: 42px minmax(180px,1.8fr) minmax(90px,.65fr) minmax(80px,.55fr) minmax(110px,.85fr) auto; padding: 15px 2px; }.customer-directory-avatar { align-items: center; background: linear-gradient(135deg,#604ed8,#168d84); border-radius: 50%; color: #fff; display: inline-flex; font-size: 13px; font-weight: 900; height: 42px; justify-content: center; width: 42px; }.customer-directory-person { min-width: 0; }.customer-directory-person strong { color: #26364a; display: block; font-size: 14px; }.customer-directory-person span { color: #748196; display: block; font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.customer-directory-stat { display: grid; gap: 1px; }.customer-directory-stat strong { color: #394a60; font-size: 13px; }.customer-directory-stat span { color: #7b8799; font-size: 10px; font-weight: 750; }.customer-directory-list .secondary-button { min-height: 38px; padding: 0 11px; }.customer-directory-empty { background: #fbfcfe; border: 1px dashed #d6e0e9; border-radius: 13px; margin-top: 17px; padding: 36px 24px; text-align: center; }.customer-directory-empty > span { color: #087f78; font-size: 26px; }.customer-directory-empty h2 { font-size: 18px; margin: 7px 0 4px; }.customer-directory-empty p { font-size: 13px; margin: 0 auto; max-width: 520px; }
@media (max-width: 760px) { .customer-directory-heading { align-items: stretch; display: grid; }.customer-directory-heading .action-link { justify-self: start; }.customer-directory-card { padding: 18px; }.customer-directory-search { align-items: stretch; flex-direction: column; }.customer-directory-search > a { padding-left: 4px; }.customer-directory-search label { grid-template-columns: auto minmax(0,1fr) auto; }.customer-directory-search input { min-width: 0; width: 100%; }.customer-directory-list article { align-items: start; grid-template-columns: 42px minmax(0,1fr) minmax(0,1fr); }.customer-directory-person { grid-column: 2 / -1; }.customer-directory-list article > .customer-directory-stat { grid-column: auto; }.customer-directory-list article > .customer-directory-stat:nth-child(3) { grid-column: 2; }.customer-directory-list article > .customer-directory-stat:nth-child(4) { grid-column: 3; }.customer-directory-list article > .customer-directory-stat:nth-child(5) { grid-column: 2 / -1; }.customer-directory-list .secondary-button { grid-column: 1 / -1; width: 100%; } }
.customer-profile-edit { border-top:1px solid #e7edf2; margin-top:17px; padding-top:13px; }.customer-profile-edit summary { color:#087f78; cursor:pointer; font-size:13px; font-weight:850; }.customer-profile-edit form { display:grid; gap:11px; margin-top:14px; }.customer-profile-edit label { color:#35465c; display:grid; font-size:12px; font-weight:800; gap:5px; }.customer-profile-edit label small { color:#738096; font-weight:600; }.customer-profile-edit input { font-size:14px; min-height:41px; padding:8px 10px; }.customer-profile-edit p { color:#738096; font-size:11px; line-height:1.45; margin:0; }.customer-profile-edit button { font-size:12px; min-height:40px; padding:0 13px; width:100%; }

/* Keep desktop navigation stable while long CRM pages scroll independently. */
@media (min-width: 761px) {
    .saas-shell { display: block; }
    .sidebar { bottom: 0; left: 0; position: fixed; top: 0; z-index: 60; }
    .side-nav { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; }
    .app-main { margin-left: 248px; min-height: 100vh; width: calc(100% - 248px); }
}

/* Customer-file document vault: files remain in private storage and are served
   only after workspace permission is checked. */
.customer-documents-card .customer-file-card-head { margin-bottom: 10px; }
.customer-documents-card .customer-file-card-head > strong { align-items: center; background: #edf8f5; border-radius: 999px; color: #087f78; display: inline-flex; font-size: 12px; height: 28px; justify-content: center; min-width: 28px; }
.customer-document-list { display: grid; }
.customer-document-list article { align-items: center; border-top: 1px solid #edf0f4; display: grid; gap: 9px; grid-template-columns: 36px minmax(0, 1fr) auto auto; padding: 11px 0; }
.customer-document-list article > div { min-width: 0; }
.customer-document-list strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-document-list p { color: #738096; font-size: 11px; margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-document-file-icon { align-items: center; background: #eef1ff; border-radius: 9px; color: #5546da; display: inline-flex; font-size: 10px; font-weight: 900; height: 36px; justify-content: center; width: 36px; }
.customer-document-list .secondary-button { min-height: 34px; padding: 0 10px; }
.customer-document-actions { align-items: center; display: grid; gap: 2px; justify-items: center; }
.customer-document-download { color: #087f78; font-size: 10px; font-weight: 850; text-decoration: none; }
.customer-document-download:hover { text-decoration: underline; }
.customer-document-remove { background: transparent; border: 0; color: #b54747; cursor: pointer; font-size: 11px; font-weight: 800; padding: 8px 0; }
.customer-document-remove:hover { color: #8c2f2f; text-decoration: underline; }
.customer-document-upload { border-top: 1px solid #e9edf2; margin-top: 10px; padding-top: 12px; }
.customer-document-upload summary { color: #087f78; cursor: pointer; font-size: 13px; font-weight: 850; }
.customer-document-upload form { display: grid; gap: 11px; margin-top: 14px; max-width: none; }
.customer-document-upload label { color: #3c4b62; display: grid; font-size: 12px; font-weight: 800; gap: 5px; }
.customer-document-upload input,.customer-document-upload select { min-height: 40px; }
.customer-document-upload small { color: #738096; font-size: 11px; font-weight: 600; }
.customer-document-upload button { min-height: 40px; }
@media (max-width: 620px) { .customer-document-list article { align-items: start; grid-template-columns: 36px minmax(0, 1fr); }.customer-document-actions { grid-column: 1 / 2; width: 100%; }.customer-document-list .secondary-button { width: 100%; }.customer-document-list form { grid-column: 2; grid-row: 2; justify-self: end; }.customer-document-remove { padding: 8px 0; }.customer-document-list p { white-space: normal; } }

/* Customer File: one clear home for a customer and every separate vehicle enquiry. */
.customer-file-page { display: grid; gap: 18px; }
.customer-file-breadcrumb { align-items: center; color: #718096; display: flex; font-size: 12px; font-weight: 750; gap: 8px; }
.customer-file-breadcrumb a { color: #087f78; }
.customer-file-hero { align-items: center; background: linear-gradient(135deg,#fff 0%,#f4fbf8 100%); border: 1px solid #dce9e5; border-radius: 18px; box-shadow: 0 13px 30px rgba(26,71,58,.06); display: flex; gap: 24px; justify-content: space-between; padding: 24px 26px; }
.customer-file-identity { align-items: center; display: flex; gap: 17px; min-width: 0; }
.customer-file-avatar { align-items: center; background: linear-gradient(145deg,#6554df,#4538b8); border: 4px solid #e7e4ff; border-radius: 50%; box-shadow: 0 8px 18px rgba(73,59,184,.18); color: #fff; display: inline-flex; flex: 0 0 auto; font-size: 22px; font-weight: 900; height: 70px; justify-content: center; width: 70px; }
.customer-file-title { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; }.customer-file-title h1 { font-size: 27px; letter-spacing: -.04em; margin: 0; }.customer-file-state { background: #dcf7e9; border-radius: 99px; color: #14724c; font-size: 11px; font-weight: 850; padding: 4px 8px; }.customer-file-identity p { color: #53647b; font-size: 13px; margin: 3px 0 0; }.customer-file-identity small { color: #8a97aa; display: inline-block; font-size: 11px; font-weight: 750; margin-top: 5px; }
.customer-file-actions { align-items: center; display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }.customer-file-actions > .action-link { min-height: 40px; }.customer-file-whatsapp { align-items: center; background: #e9f9ef; border: 1px solid #9adcb4; border-radius: 10px; color: #167847; display: inline-flex; font-size: 12px; font-weight: 850; justify-content: center; min-height: 40px; padding: 0 14px; }.customer-file-whatsapp:hover { background: #dff5e7; color: #126a3d; text-decoration: none; }
.customer-file-tabs { border-bottom: 1px solid #dfe7eb; display: flex; gap: 24px; overflow-x: auto; padding: 0 4px; }.customer-file-tabs a { border-bottom: 3px solid transparent; color: #6c7a91; flex: 0 0 auto; font-size: 12px; font-weight: 850; padding: 11px 1px; }.customer-file-tabs a:hover { color: #087f78; text-decoration: none; }.customer-file-tabs a.is-current { border-bottom-color: #087f78; color: #087f78; }
.customer-file-metrics { display: grid; gap: 13px; grid-template-columns: repeat(4,minmax(0,1fr)); }.customer-file-metrics article { align-items: center; background: #fff; border: 1px solid #e1e8ee; border-radius: 14px; display: flex; gap: 12px; min-width: 0; padding: 16px; }.customer-metric-icon { align-items: center; border-radius: 10px; display: inline-flex; flex: 0 0 auto; font-size: 18px; height: 38px; justify-content: center; width: 38px; }.customer-metric-purple { background: #eeeaff; color: #5b4bdb; }.customer-metric-blue { background: #e6f2ff; color: #2875ca; }.customer-metric-green { background: #e4f8ee; color: #128353; }.customer-metric-orange { background: #fff1df; color: #c46a0a; }.customer-file-metrics small { color: #738198; display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; }.customer-file-metrics strong { color: #172033; display: block; font-size: 23px; line-height: 1.15; margin-top: 2px; }.customer-file-metrics p { color: #7a879b; font-size: 11px; margin: 1px 0 0; }
.customer-file-metrics--empty article { gap: 9px; padding: 11px 13px; }.customer-file-metrics--empty .customer-metric-icon { font-size: 14px; height: 30px; width: 30px; }.customer-file-metrics--empty strong { font-size: 18px; }.customer-file-metrics--empty p { display: none; }
.assistant-health-metrics { display:grid; gap:12px; grid-template-columns:repeat(4,minmax(0,1fr)); margin:16px 0 20px; }.assistant-health-metrics article { background:#f5fbf9; border:1px solid #d8ebe4; border-radius:12px; padding:14px; }.assistant-health-metrics small { color:#688075; display:block; font-size:11px; font-weight:800; text-transform:uppercase; }.assistant-health-metrics strong { color:#087f78; display:block; font-size:25px; line-height:1.1; margin-top:6px; }.assistant-health-types { border-top:1px solid #e6edf0; padding-top:16px; }.assistant-health-types h3 { font-size:15px; margin:0 0 8px; } @media (max-width:760px) { .assistant-health-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.customer-file-grid { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0,1.65fr) minmax(280px,.8fr); }.customer-file-card { background: #fff; border: 1px solid #e1e8ee; border-radius: 16px; padding: 20px; }.customer-file-card h2 { font-size: 19px; letter-spacing: -.025em; margin: 4px 0 5px; }.customer-file-card p { color: #708096; font-size: 12px; margin: 0; }.customer-file-card-head { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 10px; }.customer-file-card-head > strong { align-items: center; background: #f0edff; border-radius: 999px; color: #5b4bdb; display: inline-flex; font-size: 12px; font-weight: 900; height: 28px; justify-content: center; width: 28px; }
@media (min-width: 821px) { .customer-file-grid--empty-enquiries { grid-template-columns: 1fr; }.customer-file-grid--empty-enquiries .customer-file-side { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.customer-file-section-note { background: #f5fbf9; border: 1px solid #d3ece4; border-radius: 11px; display: grid; gap: 3px; margin: 14px 0 3px; padding: 11px 12px; }.customer-file-section-note strong { color: #176e63; font-size: 12px; }.customer-file-section-note span { color: #637a75; font-size: 11px; line-height: 1.45; }
.customer-enquiry-file-list { display: grid; }.customer-file-empty-state { align-items: flex-start; background: #f7fbfa; border: 1px dashed #bddfd8; border-radius: 12px; display: grid; gap: 7px; margin-top: 12px; padding: 18px; }.customer-file-empty-state strong { color: #233249; font-size: 14px; }.customer-file-empty-state p { max-width: 480px; }.customer-file-empty-state .action-link { justify-self: start; margin-top: 4px; }.customer-enquiry-file-list article { align-items: center; border-top: 1px solid #e8edf1; display: grid; gap: 12px; grid-template-columns: minmax(170px,1fr) 118px auto auto; padding: 15px 0; }.customer-enquiry-file-main { align-items: center; display: flex; gap: 10px; min-width: 0; }.customer-enquiry-icon { align-items: center; background: #f1fbf8; border-radius: 9px; color: #087f78; display: inline-flex; flex: 0 0 auto; height: 34px; justify-content: center; width: 34px; }.customer-enquiry-icon svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 18px; }.customer-enquiry-file-main strong,.customer-enquiry-file-next strong { color: #233249; display: block; font-size: 13px; overflow-wrap: anywhere; }.customer-enquiry-file-main p { font-size: 11px; margin-top: 2px; }.customer-enquiry-file-next small { color: #8a98aa; display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; }.customer-enquiry-file-next strong { font-size: 11px; margin-top: 2px; }.customer-stage { border-radius: 99px; font-size: 10px; font-weight: 850; padding: 5px 8px; text-align: center; white-space: nowrap; }.customer-stage-lead,.customer-stage-contacted,.customer-stage-demo,.customer-stage-qualified { background: #fff1d4; color: #9b6300; }.customer-stage-booking,.customer-stage-customer { background: #e9e7ff; color: #5644c5; }.customer-stage-delivered { background: #dff6e9; color: #137048; }.customer-stage-lost { background: #fee8e7; color: #ad2a24; }.customer-enquiry-file-list .secondary-button { min-height: 34px; padding: 0 10px; }
.customer-enquiry-file-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 7px 0 0; }.customer-enquiry-file-meta div { align-items: baseline; display: flex; gap: 4px; min-width: 0; }.customer-enquiry-file-meta dt { color: #8a98aa; font-size: 9px; font-weight: 850; text-transform: uppercase; }.customer-enquiry-file-meta dd { color: #53647b; font-size: 10px; font-weight: 750; margin: 0; overflow-wrap: anywhere; }
.customer-file-side { display: grid; gap: 18px; }.customer-next-action { align-items: flex-start; background: #f1fbf8; border: 1px solid #c6eadf; border-radius: 12px; display: flex; gap: 10px; margin-top: 14px; padding: 13px; }.customer-next-action > span { align-items: center; background: #d8f4e8; border-radius: 8px; color: #087f78; display: inline-flex; flex: 0 0 auto; height: 31px; justify-content: center; width: 31px; }.customer-next-action strong { color: #203147; display: block; font-size: 13px; }.customer-next-action p { font-size: 11px; margin: 3px 0 7px; }.customer-next-action a { color: #087f78; font-size: 11px; font-weight: 850; }.customer-file-info dl { display: grid; gap: 0; margin: 13px 0 0; }.customer-file-info dl div { border-top: 1px solid #e9eef2; display: grid; gap: 3px; padding: 10px 0; }.customer-file-info dt { color: #8a98aa; font-size: 10px; font-weight: 800; text-transform: uppercase; }.customer-file-info dd { color: #29384d; font-size: 12px; font-weight: 750; margin: 0; overflow-wrap: anywhere; }
@media (max-width: 820px) { .customer-file-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.customer-file-grid { grid-template-columns: 1fr; }.customer-file-side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .customer-file-page { gap: 14px; }.customer-file-hero { align-items: stretch; flex-direction: column; padding: 18px; }.customer-file-avatar { font-size: 18px; height: 57px; width: 57px; }.customer-file-title h1 { font-size: 23px; }.customer-file-actions { display: grid; grid-template-columns: 1fr 1fr; }.customer-file-actions > .action-link:last-child { grid-column: 1 / -1; }.customer-file-actions > * { width: 100%; }.customer-file-tabs { gap: 18px; }.customer-file-metrics { gap: 9px; }.customer-file-metrics article { padding: 12px; }.customer-metric-icon { font-size: 15px; height: 32px; width: 32px; }.customer-file-metrics strong { font-size: 19px; }.customer-file-metrics p { display: none; }.customer-file-card { padding: 16px; }.customer-file-side { grid-template-columns: 1fr; }.customer-enquiry-file-list article { align-items: start; grid-template-columns: minmax(0,1fr) auto; }.customer-enquiry-file-next { grid-column: 1; }.customer-stage { grid-column: 2; grid-row: 2; }.customer-enquiry-file-list .secondary-button { grid-column: 1 / -1; width: 100%; }.customer-enquiry-file-meta { gap: 4px 8px; }.customer-enquiry-file-meta div { width: 100%; }.customer-file-breadcrumb { font-size: 11px; } }

/* Customer 360: independent operational, finance and activity blocks. */
.customer-operations-card { scroll-margin-top: 80px; }.customer-operations-list,.customer-finance-list,.customer-timeline-list { display: grid; margin-top: 14px; }.customer-operations-list article { align-items: center; border-top: 1px solid #e8edf1; display: grid; gap: 14px; grid-template-columns: minmax(150px,1fr) minmax(280px,1.7fr) auto; padding: 14px 0; }.customer-operations-list strong { color:#233249; font-size:13px; }.customer-operations-list p { font-size:11px; margin-top:3px; }.customer-operations-list dl { display:grid; gap:9px; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; }.customer-operations-list dt { color:#8a98aa; font-size:10px; font-weight:850; text-transform:uppercase; }.customer-operations-list dd { color:#33445a; font-size:11px; font-weight:750; margin:3px 0 0; overflow-wrap:anywhere; }.customer-file-lower-grid { align-items:start; display:grid; gap:18px; grid-template-columns:repeat(2,minmax(0,1fr)); }.customer-finance-card,.customer-timeline-card { scroll-margin-top:80px; }.customer-finance-metrics { display:grid; gap:8px; grid-template-columns:repeat(3,minmax(0,1fr)); margin:15px 0; }.customer-finance-metrics > div { background:#f7fafc; border:1px solid #e5edf0; border-radius:11px; padding:11px; }.customer-finance-metrics small { color:#7b8aa0; display:block; font-size:10px; font-weight:850; text-transform:uppercase; }.customer-finance-metrics strong { color:#203047; display:block; font-size:15px; margin-top:4px; overflow-wrap:anywhere; }.customer-finance-outstanding { background:#fff7e6 !important; border-color:#f4d991 !important; }.customer-finance-outstanding strong { color:#a36100; }.customer-finance-outstanding span { color:#9a6a18; display:block; font-size:10px; font-weight:750; margin-top:3px; }.customer-finance-list article { align-items:center; border-top:1px solid #e8edf1; display:grid; gap:9px; grid-template-columns:minmax(0,1fr) auto auto; padding:11px 0; }.customer-finance-list strong { color:#26374b; font-size:12px; }.customer-finance-list p { font-size:10px; margin-top:3px; }.customer-finance-list a { color:#087f78; font-size:11px; font-weight:850; }.customer-timeline-list article { align-items:flex-start; border-top:1px solid #e8edf1; display:flex; gap:10px; padding:12px 0; }.customer-timeline-list article > span { align-items:center; background:#e1f6ed; border-radius:50%; color:#087f78; display:inline-flex; flex:0 0 auto; font-size:15px; height:25px; justify-content:center; width:25px; }.customer-timeline-list strong { color:#26364b; display:block; font-size:12px; line-height:1.4; }.customer-timeline-list p { font-size:10px; line-height:1.45; margin-top:3px; }
@media (max-width:820px) { .customer-file-lower-grid { grid-template-columns:1fr; }.customer-operations-list article { grid-template-columns:minmax(130px,1fr) minmax(0,1.5fr); }.customer-operations-list .secondary-button { grid-column:1 / -1; width:100%; } }
@media (max-width:620px) { .customer-operations-list article { grid-template-columns:1fr; }.customer-operations-list dl { grid-template-columns:repeat(2,minmax(0,1fr)); }.customer-finance-metrics { grid-template-columns:1fr; }.customer-finance-list article { align-items:start; grid-template-columns:minmax(0,1fr) auto; }.customer-finance-list a { grid-column:1 / -1; }.customer-file-lower-grid { gap:14px; } }

/* Keep direct Customer 360 navigation below the fixed workspace header. */
.customer-file-info { scroll-margin-top: 80px; }
.dashboard-insurance-pipeline-card .eyebrow { color: #087f78; }
.dashboard-insurance-pipeline-card .pipeline-chart i em { background: linear-gradient(90deg,#0aa69b,#087f78); }

/* Notifications are an always-available utility, not a sidebar destination. */
.workspace-utility-bar { align-items: center; border-bottom: 1px solid rgba(218,226,234,.85); display: flex; height: 54px; justify-content: flex-end; padding: 0 32px; }
.notification-bell { align-items: center; background: #e8f8f2; border: 1px solid #a7dfcd; border-radius: 10px; box-shadow: 0 3px 10px rgba(7,127,120,.10); color: #087a72; display: inline-flex; height: 36px; justify-content: center; position: relative; transition: background .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease,transform .16s ease; width: 38px; }
.notification-bell:hover { background: #d8f3e9; border-color: #64c6ab; box-shadow: 0 7px 17px rgba(7,127,120,.16); color: #056e68; text-decoration: none; transform: translateY(-1px); }
.notification-bell .nav-icon { color: currentColor; height: 19px; width: 19px; }
.notification-bell .nav-icon svg { height: 19px; width: 19px; }
.notification-bell b { align-items: center; background: #dc2626; border: 2px solid #fff; border-radius: 99px; color: #fff; display: inline-flex; font-size: 9px; font-weight: 900; justify-content: center; line-height: 1; min-height: 18px; min-width: 18px; padding: 2px 4px; position: absolute; right: -7px; top: -7px; }
.mobile-notification-bell { display: none; }
@media (max-width: 700px) { .workspace-utility-bar { display: none; }.mobile-notification-bell { display: inline-flex; flex: 0 0 auto; height: 38px; width: 38px; }.mobile-notification-bell b { right: -5px; top: -5px; } }
@media (max-width: 560px) { .secondary-button { min-height: 38px; padding: 0 12px; } }
@media (max-width: 560px) { .assistant-enquiry-saved { border-left: 0; border-radius: 0; border-right: 0; margin: 0 -16px; padding: 28px 16px; }.assistant-saved-details { grid-template-columns: 1fr; }.assistant-saved-actions { display: grid; }.assistant-saved-actions a { width: 100%; } }

.queue-list-note { border-top: 1px solid #e7edf1; color: #728097; font-size: 11px; line-height: 1.45; margin: 4px 0 0; padding-top: 11px; }

/* Desktop utility header: workspace identity and account actions, without empty chrome. */
@media (min-width: 701px) {
    .workspace-utility-bar { background: rgba(255,255,255,.97); height: 64px; justify-content: space-between; padding: 0 32px; position: sticky; top: 0; z-index: 60; }
    .workspace-header-identity { align-items: center; color: #1d2a40; display: inline-flex; gap: 10px; min-width: 0; text-decoration: none; }
    .workspace-header-identity:hover { color: #087f78; text-decoration: none; }
    .workspace-header-initial { align-items: center; background: linear-gradient(145deg,#e7f8f1,#d8f3e8); border: 1px solid #b7e5d5; border-radius: 10px; color: #087f78; display: inline-flex; flex: 0 0 auto; font-size: 14px; font-weight: 900; height: 35px; justify-content: center; width: 35px; }
    .workspace-header-identity small { color: #8490a1; display: block; font-size: 9px; font-weight: 850; letter-spacing: .085em; line-height: 1.15; text-transform: uppercase; }
    .workspace-header-identity strong { display: block; font-size: 13px; line-height: 1.35; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .workspace-utility-actions { gap: 12px; }
    .workspace-utility-date { border-right: 1px solid #e5ebf0; gap: 8px; padding-right: 14px; }
    .workspace-header-profile { align-items: center; background: #effaf6; border: 1px solid #b9e6d7; border-radius: 50%; color: #087f78; display: inline-flex; height: 37px; justify-content: center; position: relative; text-decoration: none; width: 37px; }
    .workspace-header-profile span { align-items: center; background: #087f78; border-radius: 50%; color: #fff; display: inline-flex; font-size: 11px; font-weight: 900; height: 27px; justify-content: center; width: 27px; }
    .workspace-header-profile i { background: #21ad70; border: 2px solid #fff; border-radius: 50%; bottom: 0; height: 10px; position: absolute; right: 0; width: 10px; }
    .workspace-header-profile:hover { background: #dff5eb; text-decoration: none; transform: translateY(-1px); }
}

/* Keep the everyday assistant screen simple even after workflow-specific styles. */
.assistant-page .assistant-question > div { grid-template-columns: minmax(0, 1fr) 52px; }
.assistant-page .assistant-question > div button[type="submit"] { background: linear-gradient(90deg, #087f78, #07916f); grid-column: 1 / -1; width: 100%; }
.assistant-page .assistant-quick-actions > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.assistant-page .assistant-quick-actions .assistant-new-enquiry { align-items: center; background: #fff; border: 1px solid #e2e9e8; color: #27374a; display: grid; justify-content: start; margin: 0; min-height: 108px; padding: 14px; width: auto; }
.assistant-page .assistant-quick-actions .assistant-new-enquiry:hover { background: #fff; color: #27374a; }
@media (max-width: 560px) {
    .assistant-page .assistant-page-heading { align-items: flex-start; gap: 11px; }
    .assistant-page .assistant-page-heading h1 { font-size: 29px; }
    .assistant-page .assistant-online-status { font-size: 11px; padding: 7px 10px; }
    .assistant-page .assistant-shell { margin: 0 -14px; padding: 20px 14px 26px; }
    .assistant-page .assistant-question > div { grid-template-columns: minmax(0, 1fr) 48px; }
    .assistant-page .assistant-question .assistant-mic { min-width: 48px; }
    .assistant-page .assistant-quick-actions { margin-top: 20px; padding-top: 19px; }
    .assistant-page .assistant-quick-actions > div { gap: 9px; grid-template-columns: 1fr 1fr; }
    .assistant-page .assistant-quick-actions a,
    .assistant-page .assistant-quick-actions .assistant-new-enquiry { min-height: 96px; padding: 12px; }
    .assistant-page .assistant-quick-actions a strong { font-size: 12px; }
    .assistant-page .assistant-command-help { margin-bottom: 0; }
}

/* Public JANVIXO marketing homepage */
.marketing-home { display: grid; gap: 0; }.marketing-home h1,.marketing-home h2,.marketing-home h3,.marketing-home p { margin: 0; }.marketing-home { color: #172033; }.home-hero { align-items: center; display: grid; gap: 52px; grid-template-columns: minmax(0,.92fr) minmax(460px,1.08fr); min-height: 620px; padding: 62px 0 80px; }.marketing-eyebrow { align-items: center; color: var(--brand); display: inline-flex; font-size: 12px; font-weight: 850; gap: 8px; letter-spacing: .08em; text-transform: uppercase; }.marketing-eyebrow i { background: #7b6ff0; border-radius: 99px; box-shadow: 0 0 0 5px #eeecff; height: 7px; width: 7px; }.home-hero h1 { font-size: clamp(44px,5.3vw,70px); letter-spacing: -.065em; line-height: .98; margin: 18px 0 21px; }.home-hero h1 em { color: var(--brand); font-style: normal; }.home-hero-copy > p { font-size: 18px; line-height: 1.62; max-width: 590px; }.home-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 29px 0 22px; }.home-primary,.home-secondary { align-items: center; border-radius: 10px; display: inline-flex; font-size: 14px; font-weight: 800; gap: 14px; justify-content: center; min-height: 48px; padding: 0 19px; }.home-primary { background: var(--brand); box-shadow: 0 11px 24px rgba(91,75,219,.25); color: #fff; }.home-primary:hover { background: var(--brand-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }.home-primary span { font-size: 19px; line-height: 1; }.home-secondary { background: #fff; border: 1px solid #dfe2ec; color: #344054; }.home-secondary:hover { background: #f8f8fb; color: #172033; text-decoration: none; }.home-trust { color: #667085; display: flex; flex-wrap: wrap; font-size: 12px; font-weight: 700; gap: 12px 18px; }.home-trust span { white-space: nowrap; }.home-preview { min-width: 0; position: relative; }.preview-glow { background: #d9d5ff; border-radius: 50%; filter: blur(58px); height: 210px; opacity: .55; position: absolute; right: 2%; top: 13%; width: 210px; z-index: -1; }.preview-window { background: #fff; border: 1px solid #dfe3ed; border-radius: 17px; box-shadow: 0 28px 70px rgba(32,39,67,.16); overflow: hidden; transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); }.preview-top { align-items: center; border-bottom: 1px solid #e8ebf1; color: #172033; display: flex; font-size: 10px; font-weight: 850; gap: 7px; height: 45px; padding: 0 15px; }.preview-top .preview-mark { align-items: center; background: var(--brand); border-radius: 5px; color: white; display: inline-flex; height: 18px; justify-content: center; width: 18px; }.preview-top i { background: #eef0f5; border-radius: 99px; height: 7px; margin-left: auto; width: 72px; }.preview-top b { background: #f5f4ff; border-radius: 5px; color: var(--brand); padding: 4px 7px; }.preview-top strong { align-items: center; background: #dae7ff; border-radius: 50%; color: #2b5d95; display: inline-flex; height: 22px; justify-content: center; width: 22px; }.preview-body { display: grid; grid-template-columns: 140px 1fr; min-height: 385px; }.preview-body aside { background: #181c2c; color: #aeb6cb; display: grid; align-content: start; gap: 5px; padding: 19px 12px; }.preview-body aside small { color: #737e9a; font-size: 7px; font-weight: 800; letter-spacing: .08em; }.preview-body aside b { color: #fff; font-size: 10px; margin: 2px 0 15px; }.preview-body aside a { border-radius: 5px; color: #bdc5d9; font-size: 9px; font-weight: 700; padding: 7px; }.preview-body aside a.active { background: #30364e; color: #fff; }.preview-body > section { background: #f7f8fc; padding: 23px 20px; }.preview-title { align-items: start; display: flex; justify-content: space-between; }.preview-title small { color: var(--brand); font-size: 8px; font-weight: 850; letter-spacing: .07em; }.preview-title h2 { font-size: 21px; letter-spacing: -.05em; margin-top: 3px; }.preview-title button { font-size: 9px; min-height: 27px; padding: 0 9px; }.preview-metrics { display: grid; gap: 8px; grid-template-columns: repeat(3,1fr); margin: 18px 0; }.preview-metrics > div { background: #fff; border: 1px solid #e4e7ef; border-radius: 8px; padding: 10px; }.preview-metrics small { color: #737b8c; display: block; font-size: 7px; font-weight: 850; }.preview-metrics b { display: block; font-size: 17px; letter-spacing: -.04em; margin: 4px 0; }.preview-metrics span { color: #667085; font-size: 7px; font-weight: 700; }.preview-metrics .green { color: #168250; }.preview-metrics .amber { color: #ad6b06; }.preview-queue { background: #fff; border: 1px solid #e4e7ef; border-radius: 8px; padding: 12px; }.preview-queue > div { align-items: baseline; display: flex; justify-content: space-between; margin-bottom: 7px; }.preview-queue > div b { font-size: 10px; }.preview-queue > div small { color: #7b8392; font-size: 7px; }.preview-queue p { align-items: center; border-top: 1px solid #eef0f5; color: #172033; display: grid; font-size: 8px; gap: 3px 7px; grid-template-columns: 7px 1fr auto; margin: 0; padding: 9px 0; }.preview-queue p i { background: #f4bd45; border-radius: 50%; height: 6px; width: 6px; }.preview-queue p strong { font-size: 8px; }.preview-queue p span { color: #7b8392; grid-column: 2; }.preview-queue p em { background: #fff2d6; border-radius: 99px; color: #a86400; font-size: 7px; font-style: normal; font-weight: 800; grid-column: 3; grid-row: 1 / span 2; padding: 3px 5px; }.home-proof { border-bottom: 1px solid #e4e7ef; border-top: 1px solid #e4e7ef; display: grid; grid-template-columns: repeat(3,1fr); margin: 0 calc((100vw - 100%) / -2); padding: 25px max(20px, calc((100vw - 1050px) / 2)); }.home-proof > div { border-left: 1px solid #e4e7ef; display: grid; gap: 2px; padding: 0 26px; }.home-proof > div:first-child { border-left: 0; }.home-proof b { font-size: 15px; }.home-proof span { color: var(--muted); font-size: 12px; }.home-section { padding: 100px 0; }.marketing-section-heading { max-width: 650px; }.marketing-section-heading h2 { font-size: clamp(30px,3.6vw,46px); letter-spacing: -.052em; line-height: 1.05; margin: 13px 0; }.marketing-section-heading > p { font-size: 17px; line-height: 1.6; }.industry-grid { display: grid; gap: 14px; grid-template-columns: repeat(4,1fr); margin-top: 38px; }.industry-grid article { background: #fff; border: 1px solid #e1e5ed; border-radius: 15px; min-height: 254px; padding: 20px; transition: box-shadow .2s,transform .2s; }.industry-grid article:hover { box-shadow: 0 16px 30px rgba(28,37,63,.09); transform: translateY(-3px); }.industry-icon { align-items: center; border-radius: 10px; display: inline-flex; font-size: 21px; height: 43px; justify-content: center; margin-bottom: 38px; width: 43px; }.industry-icon.car { background: #e7f0ff; }.industry-icon.shield { background: #eeeaff; }.industry-icon.health { background: #e4f9ed; color: #168250; font-size: 25px; }.industry-icon.event { background: #fff1db; }.industry-grid h3,.feature-grid h3,.steps-grid h3 { font-size: 17px; letter-spacing: -.025em; margin-bottom: 8px; }.industry-grid p,.feature-grid p,.steps-grid p { font-size: 13px; line-height: 1.6; }.industry-grid small { color: var(--brand); display: block; font-size: 10px; font-weight: 800; line-height: 1.5; margin-top: 14px; }.home-features { background: #171b2b; box-shadow: 0 0 0 100vmax #171b2b; clip-path: inset(0 -100vmax); color: #fff; }.home-features .marketing-eyebrow { color: #a99fff; }.home-features .marketing-eyebrow i { background: #b7afff; box-shadow: 0 0 0 5px #2e3148; }.home-features .marketing-section-heading h2 { max-width: 640px; }.feature-grid { display: grid; gap: 12px; grid-template-columns: repeat(3,1fr); margin-top: 36px; }.feature-grid article { background: #21263a; border: 1px solid #323850; border-radius: 13px; min-height: 202px; padding: 21px; }.feature-grid article > span { align-items: center; background: #343950; border-radius: 8px; color: #bfb8ff; display: inline-flex; font-size: 22px; height: 38px; justify-content: center; margin-bottom: 28px; width: 38px; }.feature-grid h3 { color: #fff; }.feature-grid p { color: #b9c0d1; }.home-steps { padding-bottom: 88px; }.steps-grid { display: grid; gap: 16px; grid-template-columns: repeat(3,1fr); margin-top: 37px; }.steps-grid article { border-top: 1px solid #dce1ea; padding: 21px 6px 0; }.steps-grid b { color: var(--brand); font-size: 13px; letter-spacing: .08em; }.steps-grid h3 { margin-top: 21px; }.home-cta { align-items: center; background: linear-gradient(120deg,#5b4bdb,#7869ed); border-radius: 19px; color: #fff; display: flex; gap: 28px; justify-content: space-between; margin: 0 0 88px; overflow: hidden; padding: 45px 52px; position: relative; }.home-cta:after { border: 50px solid rgba(255,255,255,.10); border-radius: 50%; content: ''; height: 210px; position: absolute; right: -80px; top: -125px; width: 210px; }.home-cta .marketing-eyebrow { color: #e9e7ff; }.home-cta .marketing-eyebrow i { background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.18); }.home-cta h2 { font-size: clamp(26px,3vw,38px); letter-spacing: -.045em; line-height: 1.08; margin: 13px 0 8px; max-width: 670px; }.home-cta p { color: #e7e5ff; }.home-cta .home-primary { background: #fff; color: #4335b8; flex: 0 0 auto; position: relative; z-index: 1; }.home-cta .home-primary:hover { background: #f2f0ff; }.home-footer { align-items: center; border-top: 1px solid #e2e6ee; display: grid; gap: 12px 24px; grid-template-columns: 1fr auto; padding: 26px 0 0; }.home-footer p { font-size: 12px; grid-row: 2; margin: 0; }.home-footer > div { display: flex; gap: 18px; }.home-footer > div a { color: #667085; font-size: 12px; font-weight: 700; }
@media (max-width: 860px) { .home-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }.home-hero-copy { max-width: 680px; }.home-preview { margin: 5px auto 0; max-width: 640px; width: 100%; }.industry-grid { grid-template-columns: repeat(2,1fr); }.feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .marketing-home { overflow: hidden; }.home-hero { gap: 34px; padding: 28px 0 54px; }.home-hero h1 { font-size: 45px; }.home-hero-copy > p { font-size: 16px; }.home-hero-actions { display: grid; grid-template-columns: 1fr; }.home-primary,.home-secondary { width: 100%; }.home-trust { display: grid; gap: 8px; }.preview-window { border-radius: 12px; transform: none; }.preview-body { grid-template-columns: 92px 1fr; min-height: 282px; }.preview-body aside { padding: 13px 8px; }.preview-body aside a { font-size: 7px; padding: 6px 4px; }.preview-body > section { padding: 15px 11px; }.preview-title h2 { font-size: 15px; }.preview-metrics { gap: 5px; margin: 13px 0; }.preview-metrics > div { padding: 7px; }.preview-metrics b { font-size: 13px; }.preview-queue { padding: 8px; }.preview-queue p { font-size: 7px; padding: 7px 0; }.home-proof { grid-template-columns: 1fr; margin: 0 -14px; padding: 18px 14px; }.home-proof > div { border-left: 0; border-top: 1px solid #e4e7ef; padding: 13px 6px; }.home-proof > div:first-child { border-top: 0; }.home-section { padding: 66px 0; }.marketing-section-heading h2 { font-size: 32px; }.marketing-section-heading > p { font-size: 15px; }.industry-grid,.feature-grid,.steps-grid { grid-template-columns: 1fr; margin-top: 25px; }.industry-grid article { min-height: auto; }.industry-icon { margin-bottom: 23px; }.feature-grid article { min-height: auto; }.feature-grid article > span { margin-bottom: 20px; }.home-cta { align-items: stretch; flex-direction: column; margin-bottom: 55px; padding: 31px 24px; }.home-footer { grid-template-columns: 1fr; padding-bottom: 8px; }.home-footer p { grid-row: auto; }.home-footer > div { flex-wrap: wrap; } }

/* Public PWA install panel: Android opens the browser install prompt; iPhone shows Safari steps. */
.home-phone-install { align-items: center; background: radial-gradient(circle at 93% 15%,#e0faf1 0,rgba(224,250,241,0) 27%),linear-gradient(118deg,#f8fffc,#f4f3ff); border: 1px solid #d5eee5; border-radius: 20px; display: grid; gap: 22px 36px; grid-template-columns: minmax(0,1fr) minmax(390px,.96fr); margin: 0 0 56px; padding: 30px 34px; }.home-phone-install-copy h2 { font-size: clamp(25px,2.8vw,36px); letter-spacing: -.045em; line-height: 1.08; margin: 11px 0 9px; }.home-phone-install-copy p { color: #5f6c84; font-size: 15px; line-height: 1.55; max-width: 545px; }.home-install-actions { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }.home-install-button { align-items: center; background: #fff; border: 1px solid #d9e4e5; border-radius: 13px; color: #1d2a43; cursor: pointer; display: flex; font: inherit; gap: 11px; min-height: 74px; padding: 12px 14px; text-align: left; transition: box-shadow .2s,transform .2s,border-color .2s; }.home-install-button:hover { border-color: #82d6c1; box-shadow: 0 12px 24px rgba(19,107,92,.12); transform: translateY(-2px); }.home-install-button:disabled { cursor: default; opacity: .65; transform: none; }.home-install-button strong,.home-install-button small { display: block; }.home-install-button strong { font-size: 14px; font-weight: 850; }.home-install-button small { color: #6d7890; font-size: 11px; font-weight: 650; line-height: 1.35; margin-top: 3px; }.home-install-android { background: linear-gradient(135deg,#078c80,#14a28e); border-color: #078c80; color: #fff; }.home-install-android small { color: rgba(255,255,255,.78); }.home-install-icon { align-items: center; background: rgba(255,255,255,.18); border-radius: 10px; display: inline-flex; font-size: 25px; font-weight: 750; height: 39px; justify-content: center; line-height: 1; width: 39px; }.home-install-ios .home-install-icon { background: #e8faf4; color: #078c80; }.home-ios-install-guide { background: rgba(255,255,255,.7); border: 1px dashed #b8ddd1; border-radius: 12px; color: #4d5d70; font-size: 13px; grid-column: 1 / -1; padding: 14px 16px; }.home-ios-install-guide strong { color: #15243d; }.home-ios-install-guide ol { display: flex; flex-wrap: wrap; gap: 5px 25px; margin: 8px 0 0; padding-left: 19px; }.home-install-status { color: #167a69; font-size: 12px; font-weight: 700; grid-column: 1 / -1; margin: -8px 0 0; min-height: 17px; }.home-install-status:empty { display: none; }
@media (max-width: 760px) { .home-phone-install { grid-template-columns: 1fr; margin-bottom: 38px; padding: 25px 22px; }.home-install-actions { grid-template-columns: 1fr; }.home-install-button { min-height: 64px; }.home-ios-install-guide ol { display: block; }.home-ios-install-guide li + li { margin-top: 5px; } }
.drawer-backdrop { background: rgba(23,32,51,.45); inset: 0; position: fixed; z-index: 900; }
.drawer-open { overflow: hidden !important; }
.drawer.crm-quick-drawer {
    block-size: 100dvh;
    box-sizing: border-box;
    inset: 0;
    max-block-size: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: fixed;
    width: 100vw;
    -webkit-overflow-scrolling: touch;
}
.drawer { background: white; box-shadow: -12px 0 36px rgba(20,32,51,.2); display: grid; gap: 18px; height: 100dvh; overflow-y: auto; padding: 24px; position: fixed; right: 0; top: 0; width: min(520px, 100vw); z-index: 1000; }
.drawer[hidden], .drawer-backdrop[hidden] { display: none !important; }
.drawer-head { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 14px; }.drawer-head h2 { margin: 0; }.drawer form { max-width: none; }.secondary-button { background: #f1f3f8; color: #344054; }.secondary-button:hover { background: #e5e8f0; }.drawer hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.quick-contact-actions,.quick-action-grid { display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }.quick-contact-actions .action-link,.quick-action-grid .action-link,.quick-action-grid button { align-items: center; display: inline-flex; justify-content: center; min-height: 44px; padding: 0 10px; text-align: center; }.quick-action-grid button { margin: 0; width: 100%; }.customer-identity-card { align-items: center; background: linear-gradient(135deg, #f0fbf7 0%, #ffffff 100%); border: 1px solid #bfeadd; border-radius: 16px; display: flex; gap: 13px; min-width: 0; padding: 14px; }.customer-identity-card__marker { align-items: center; background: linear-gradient(135deg, #0c9388, #5646df); border-radius: 14px; color: #fff; display: inline-flex; flex: 0 0 44px; font-size: 17px; font-weight: 850; height: 44px; justify-content: center; }.customer-identity-card__content { display: grid; gap: 2px; min-width: 0; }.customer-identity-card__content > span { color: #087f78; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }.customer-identity-card__content strong,.customer-identity-card__content h1 { color: var(--ink); font-size: 20px; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }.customer-identity-card__content p { color: var(--muted); font-size: 13px; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }.customer-identity-card__village { color: #526179 !important; font-weight: 700; }.customer-identity-card--page { margin: -6px 0 12px; padding: 17px 18px; }.customer-identity-card--page .customer-identity-card__marker { border-radius: 16px; flex-basis: 52px; font-size: 20px; height: 52px; }.customer-identity-card--page .customer-identity-card__content h1 { font-size: clamp(28px, 4vw, 42px); }.customer-identity-actions { display: flex; justify-content: flex-end; margin: -4px 0 12px; }.customer-identity-actions .quick-urgent-reminder { min-height: 40px; }.quick-urgent-reminder { background: #fff8e8; border-color: #f1c66a; color: #8a5700; }.quick-urgent-reminder:hover { background: #fff0cc; color: #744800; text-decoration: none; }.quick-customer-context { background: #f7f8fc; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; padding: 13px; }.quick-customer-context div { display: grid; gap: 3px; }.quick-customer-context span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.quick-customer-context strong { font-size: 14px; overflow-wrap: anywhere; }.customer-operation-context { margin: 0 0 22px; }.customer-operation-context > div:first-child { background: #effaf5; border: 1px solid #bfeadd; border-radius: 10px; padding: 10px 12px; }.customer-operation-context > div:nth-child(2) { background: #f4f2ff; border: 1px solid #ddd7ff; border-radius: 10px; padding: 10px 12px; }.customer-operation-context > div:first-child strong { color: #16794e; }.customer-operation-context > div:nth-child(2) strong { color: #5145cc; }.quick-quote-result { background: #ecf9f0; border: 1px solid #9fdfb2; border-radius: 13px; display: grid; gap: 13px; padding: 15px; }.quick-quote-result .eyebrow { color: #167448; }.quick-quote-result h3 { color: #17643b; margin: 3px 0; }.quick-quote-result p { font-size: 12px; margin: 0; }.quick-next-action { border-top: 1px solid var(--line); display: grid; gap: 15px; padding-top: 20px; }.quick-next-action > div { display: grid; gap: 4px; }.quick-next-action h3 { margin: 0; }.quick-next-action p { font-size: 12px; margin: 0; }.is-disabled { cursor: not-allowed; opacity: .45; pointer-events: none; }.form-success { background: #eaf9ef; border: 1px solid #a7e4bb; border-radius: 9px; color: #17643b; font-size: 13px; font-weight: 700; margin: 0; padding: 10px 12px; }.crm-quick-drawer h3 { font-size: 16px; margin: 0 0 10px; }.crm-quick-drawer section { border-top: 1px solid var(--line); padding-top: 18px; }.crm-quick-drawer .customer-identity-card { border-top: 1px solid #bfeadd; padding-top: 14px; }.crm-quick-drawer .quick-quote-result { border-top: 1px solid #9fdfb2; padding-top: 15px; }
.quick-action-grid--single { grid-template-columns: 1fr; }
.sales-quotation-action { display: flex; justify-content: flex-end; }
.sales-quotation-action button { background: #effaf7; border: 1px solid #9edfd2; border-radius: 999px; box-shadow: 0 3px 9px rgba(11,143,135,.08); color: #087f78; font-size: 13px; font-weight: 850; gap: 8px; min-height: 40px; padding: 0 16px; width: auto; }
.sales-quotation-action button:hover { background: #e1f7f1; border-color: #70cdbd; color: #066e68; transform: translateY(-1px); }
.sales-quotation-action__icon { align-items: center; background: #0b9288; border-radius: 50%; color: #fff; display: inline-flex; height: 25px; justify-content: center; width: 25px; }
.sales-quotation-action__icon svg { fill: none; height: 15px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 15px; }
@media (max-width:620px) { .sales-quotation-action button { min-height: 42px; } }
.crm-detail { width: min(600px, 100vw); }.detail-summary { background: #f7f8fc; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; padding: 16px; }.detail-summary div { display: grid; gap: 3px; }.detail-summary span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.detail-summary strong { font-size: 14px; overflow-wrap: anywhere; }.detail-section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }.detail-section h3 { font-size: 16px; margin-bottom: 12px; }
/* Sales and customer operations share one familiar status-card pattern. */
.customer-operation-context { background: #f7f8fc; border-color: var(--line); }
.customer-operation-context > div { min-width: 0; padding: 0; }
.customer-operation-context > div:first-child,
.customer-operation-context > div:nth-child(2) { background: transparent; border: 0; border-radius: 0; }
.customer-operation-context > div:first-child strong,
.customer-operation-context > div:nth-child(2) strong { color: var(--ink); }
@media (min-width: 621px) { body.drawer-open .app-main { padding-right: 540px; transition: padding-right .2s ease; } body.drawer-open .content-wrap { width: min(100% - 48px, 1120px); } }
/* CRM quick actions are a focused workspace, not a narrow side panel. */
@media (min-width: 621px) {
    body.drawer-open .app-main { padding-right: 0; }
    /* A modal drawer must visually block the whole application, including the
       fixed sidebar, so users do not mistake background navigation as active. */
    .drawer-backdrop { left: 0; }
    .drawer.crm-quick-drawer {
        left: 248px;
        padding: 30px 48px;
        right: 0;
        width: auto;
    }
    /* Keep focused work readable on wide desktops while the workspace itself
       still fills the available area beside the fixed sidebar. */
    .drawer.crm-quick-drawer > * {
        margin-inline: auto;
        max-width: 1120px;
        width: 100%;
    }
}
.contact-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }.contact-actions form { max-width: none; }.contact-actions .action-link, .contact-actions button { min-height: 36px; padding: 0 11px; font-size: 12px; }
.contact-main { min-width: 0; width: 100%; }.contact-actions-inline { justify-content: flex-start; margin-top: 13px; }
.directory-tools { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }.directory-tools .list-filter { margin: 0; }.directory-tools button { min-height: 42px; }
.platform-announcement-stack { display: grid; gap: 10px; margin: 0 0 22px; }.platform-announcement { align-items: flex-start; border: 1px solid #c7d7fe; border-radius: 12px; color: #163970; display: flex; flex-direction: column; gap: 4px; padding: 15px 18px; background: #edf4ff; }.platform-announcement strong { font-size: 15px; }.platform-announcement span { color: inherit; line-height: 1.45; }.platform-announcement.tone-success { background: #ecfdf3; border-color: #b7ebc8; color: #12633d; }.platform-announcement.tone-warning { background: #fff9e9; border-color: #f2d38a; color: #8a5a00; }.platform-announcement.tone-urgent { background: #fff0ef; border-color: #f5b6b0; color: #a42b24; }
.reminder-contact-preview { background: #f7f8fc; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 3px; padding: 13px; }.reminder-contact-preview span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.reminder-contact-preview strong { overflow-wrap: anywhere; }.reminder-contact-preview p { font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.customer-reminder-page { margin: 0 auto; max-width: 760px; }.customer-reminder-card { display: grid; gap: 22px; margin: 0; padding: 24px; }.customer-reminder-form { display: grid; gap: 17px; margin: 0; max-width: none; }.customer-reminder-form label { color: #334155; font-size: 13px; font-weight: 800; }.customer-reminder-form input { margin-top: 6px; min-height: 47px; }.customer-reminder-form small { color: var(--muted); display: block; font-size: 11px; font-weight: 600; line-height: 1.4; margin-top: 5px; }.customer-reminder-note { align-items: flex-start; background: #effaf6; border: 1px solid #c6ebdc; border-radius: 12px; color: #35645a; display: flex; gap: 10px; padding: 12px 13px; }.customer-reminder-note span { color: #087f78; font-weight: 900; }.customer-reminder-note p { font-size: 12px; line-height: 1.45; margin: 0; }.customer-reminder-actions { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; padding-top: 18px; }.customer-reminder-actions .action-link,.customer-reminder-actions button { min-height: 44px; }.customer-reminder-shortcut { align-items: center; display: flex; gap: 18px; justify-content: space-between; max-width: 760px; }.customer-reminder-shortcut h2 { font-size: 19px; margin: 3px 0 4px; }.customer-reminder-shortcut p { font-size: 13px; margin: 0; }

/* Notifications: keep reminder creation quick without changing Assistant behaviour. */
.notification-page { max-width: 1040px; }
.notification-page-heading { margin-bottom: 12px; padding-bottom: 12px; }
.notification-page-heading h1 { margin-top: 0; }
.notification-phone-alert { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 11px; display: flex; gap: 8px; margin: -3px 0 12px; min-height: 42px; padding: 8px 11px; }
.notification-phone-alert strong { color: #536176; font-size: 12px; }
.notification-phone-alert a { font-size: 12px; font-weight: 850; margin-left: auto; }
.notification-phone-alert-enable { align-items: center; background: #087f78; border-radius: 8px; color: #fff; display: inline-flex; min-height: 32px; padding: 0 11px; }
.notification-phone-alert-enable:hover { color: #fff; text-decoration: none; }
.notification-compose-card { padding: 21px 23px; }
.notification-compose-card > .section-heading:first-child { margin-bottom: 10px; }
.notification-compose-card .section-heading h2 { font-size: 22px; margin: 4px 0 3px; }
.notification-compose-card .section-heading p { font-size: 12px; margin: 0; }
.notification-reminder-form { align-items: end; gap: 13px 14px; grid-template-columns: minmax(0,1fr) minmax(250px,.72fr); }
.notification-reminder-form .notification-note-field { grid-column: 1 / -1; }
.notification-reminder-form textarea { min-height: 76px; }
.notification-reminder-form button { justify-self: start; min-width: 190px; }
.notification-reminders-card { padding: 20px 23px; }
.notification-reminders-card > .section-heading:first-child { margin-bottom: 12px; }
.notification-reminders-card h2 { font-size: 22px; margin: 0; }
.notification-reminders-card--empty { align-items: center; display: flex; justify-content: space-between; }
.notification-reminders-card--empty > .section-heading:first-child { margin: 0; }
.notification-empty-state { color: var(--muted); font-size: 13px; margin: 0; }
.notification-team-card { padding: 21px 23px; }
.notification-team-card h2 { font-size: 22px; margin: 4px 0; }
.notification-team-card > p { font-size: 12px; margin: 0 0 14px; }
.notification-team-form { align-items: end; display: grid; gap: 13px 14px; grid-template-columns: minmax(220px,.7fr) minmax(300px,1fr) auto; margin: 0; max-width: none; }
.notification-team-form textarea { min-height: 47px; }
.notification-team-form button { min-width: 130px; }
.notification-inbox-card { padding: 20px 23px; }
.notification-inbox-card > h2 { font-size: 22px; margin: 0 0 13px; }
.notification-inbox-list { display: grid; }
.notification-inbox-item { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; padding: 14px 0; }
.notification-inbox-item:first-child { border-top: 0; padding-top: 0; }
.notification-inbox-copy { min-width: 0; }
.notification-inbox-copy strong { color: var(--ink); display: block; font-size: 15px; overflow-wrap: anywhere; }
.notification-inbox-copy p { color: #66758a; font-size: 13px; line-height: 1.45; margin: 4px 0 0; overflow-wrap: anywhere; }
.notification-inbox-copy time { color: var(--muted); display: block; font-size: 11px; margin-top: 5px; }
.notification-inbox-actions { align-items: center; display: flex; flex: 0 0 auto; gap: 8px; }
.notification-inbox-actions form { margin: 0; }
.notification-inbox-actions .action-link,.notification-inbox-actions button { font-size: 12px; min-height: 38px; padding: 0 12px; }
.notification-read-history { border-top: 1px solid var(--line); margin-top: 3px; padding-top: 11px; }
.notification-read-history > summary { color: #536176; cursor: pointer; font-size: 13px; font-weight: 850; list-style: none; padding: 3px 0 8px; }
.notification-read-history > summary::-webkit-details-marker { display: none; }
.notification-read-history > summary:before { content: '▸'; display: inline-block; margin-right: 7px; transition: transform .15s ease; }
.notification-read-history[open] > summary:before { transform: rotate(90deg); }
.notification-read-history > summary span { background: #edf1f7; border-radius: 999px; color: #66758a; display: inline-flex; font-size: 10px; justify-content: center; margin-left: 4px; min-width: 20px; padding: 3px 6px; }
.notification-read-history .notification-inbox-list { padding-top: 4px; }
.notification-inbox-item.is-read { gap: 10px; opacity: .78; padding: 10px 0; }
.notification-inbox-item.is-read .notification-inbox-copy strong { font-size: 13px; }
.notification-inbox-item.is-read .notification-inbox-copy p { font-size: 12px; }
.notification-history-link { flex: 0 0 auto; font-size: 11px; font-weight: 800; }

@media (max-width: 620px) {
    .notification-page-heading { margin-bottom: 8px; padding-bottom: 8px; }
    .notification-page-heading h1 { font-size: 31px; margin: 0; }
    .notification-page-heading p { font-size: 13px; }
    .notification-compose-card { padding: 15px 16px; }
    .notification-compose-card > .section-heading:first-child { margin-bottom: 8px; }
    .notification-compose-card .section-heading h2 { font-size: 21px; }
    .notification-compose-card .section-heading p { font-size: 11px; }
    .notification-reminder-form { gap: 10px; grid-template-columns: 1fr; }
    .notification-reminder-form .notification-note-field { grid-column: auto; }
    .notification-reminder-form input { min-height: 46px; }
    .notification-reminder-form textarea { min-height: 68px; }
    .notification-reminder-form button { justify-self: stretch; min-width: 0; width: 100%; }
    .notification-reminders-card { padding: 15px 16px; }
    .notification-reminders-card h2 { font-size: 20px; }
    .notification-reminders-card--empty { gap: 8px; }
    .notification-empty-state { font-size: 12px; }
    .notification-team-card { padding: 16px; }
    .notification-team-form { grid-template-columns: 1fr; }
    .notification-team-form button { width: 100%; }
    .notification-inbox-card { padding: 15px 16px; }
    .notification-inbox-card > h2 { font-size: 20px; margin-bottom: 10px; }
    .notification-inbox-item { align-items: flex-start; flex-direction: column; gap: 9px; padding: 12px 0; }
    .notification-inbox-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
    .notification-inbox-actions form,.notification-inbox-actions button,.notification-inbox-actions .action-link { width: 100%; }
    .notification-inbox-actions .action-link { justify-content: center; }
    .notification-inbox-actions > form:only-child { grid-column: 1 / -1; }
    .notification-inbox-item.is-read { align-items: flex-start; flex-direction: row; }
}
.crm-directory-card .section-heading { align-items: flex-start; display: flex; gap: 18px; justify-content: space-between; }.crm-filter-form { align-items: end; display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr auto; max-width: none; margin: 22px 0; }.filter-actions { align-items: center; display: flex; gap: 12px; min-height: 42px; }.filter-actions a { font-size: 13px; font-weight: 700; }.crm-table-wrap { overflow-x: auto; }.crm-table { border-collapse: collapse; min-width: 760px; width: 100%; }.crm-table th { color: var(--muted); font-size: 11px; letter-spacing: .05em; padding: 0 12px 10px; text-align: left; text-transform: uppercase; }.crm-table td { border-top: 1px solid var(--line); color: #475467; font-size: 13px; padding: 14px 12px; vertical-align: middle; }.crm-table td:first-child { color: var(--ink); min-width: 220px; }.crm-table td strong, .crm-table td span { display: block; }.crm-table td span:not(.status) { color: var(--muted); font-size: 12px; margin-top: 3px; }.back-link { color: var(--muted); display: inline-block; font-size: 13px; font-weight: 700; margin-bottom: 14px; }.detail-layout { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); }.detail-primary { display: grid; gap: 20px; }.detail-sidebar { display: grid; gap: 20px; position: sticky; top: 18px; }.profile-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }.profile-grid div { background: #f8f9fc; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 4px; padding: 13px; }.profile-grid span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.profile-grid strong { overflow-wrap: anywhere; }.profile-notes { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }.profile-notes p { margin: 6px 0 0; }.activity-timeline { list-style: none; margin: 0; padding: 0; }.activity-timeline li { display: grid; gap: 12px; grid-template-columns: 14px 1fr; margin: 0; padding: 0 0 20px; position: relative; }.activity-timeline li:before { background: var(--line); bottom: 0; content: ''; left: 6px; position: absolute; top: 12px; width: 2px; }.activity-timeline li:last-child:before { display: none; }.timeline-dot { background: var(--brand); border: 3px solid #e7e3ff; border-radius: 50%; height: 14px; margin-top: 3px; position: relative; width: 14px; z-index: 1; }.activity-timeline p { font-size: 12px; margin: 3px 0 0; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }.crm-simple-search { grid-template-columns: minmax(280px, 720px) auto; margin: 18px 0 20px; }.crm-simple-search > label { margin: 0; }.crm-directory-heading h2 { font-size: 22px; letter-spacing: -.025em; }.crm-directory-heading .muted { font-size: 13px; }.crm-table td:last-child { text-align: right; white-space: nowrap; }.crm-table td:last-child .action-link, .crm-table td:last-child button { min-height: 36px; padding: 0 13px; }
.record-quick-info { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0; max-width: 920px; }.record-quick-info article { background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 5px; padding: 15px; }.record-quick-info span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.record-quick-info strong { overflow-wrap: anywhere; }.simple-detail-layout { grid-template-columns: minmax(0, 760px); }.daily-update-card { max-width: 760px; }.daily-update-card form, .full-record-form form { max-width: 720px; }.daily-update-card textarea { min-height: 116px; }.full-record-form { max-width: 980px; }.form-section { border-bottom: 1px solid var(--line); margin-bottom: 22px; padding-bottom: 22px; }.form-section:last-of-type { border-bottom: 0; }.form-section h2 { margin-top: 0; }.owner-record-controls { max-width: 980px; }.owner-control-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }.owner-control-grid form { margin: 0; }
.payment-followup-summary { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0; max-width: 980px; }.payment-followup-summary article { background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 5px; min-width: 0; padding: 14px; }.payment-followup-summary__amount { background: #effaf6 !important; border-color: #bce9d7 !important; }.payment-followup-summary span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.payment-followup-summary strong { color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }.payment-followup-summary__amount strong { color: #087f78; }.payment-followup-summary__amount strong { color: #087f78; }.payment-followup-summary small { color: var(--muted); font-size: 11px; line-height: 1.35; }.payment-followup-actions { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0; }.payment-followup-actions > * { align-items: center; display: flex; justify-content: center; min-height: 42px; text-align: center; }.payment-followup-actions__payment { background: #108f86; color: #fff; }.payment-followup-actions__payment:hover { background: #087f78; color: #fff; }
.operation-header-meta { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 14px; font-weight: 700; gap: 0; margin: 4px 0 0; }.operation-header-meta strong { color: #16794e; }.operation-header-meta > * { align-items: center; display: inline-flex; }.operation-header-meta > * + *:before { background: #cbd5e1; border-radius: 50%; content: ''; height: 4px; margin: 0 9px; width: 4px; }
.crm-detail-page .page-heading { margin-bottom: 18px; }.crm-detail-page .quick-links { gap: 8px; }.crm-detail-page .quick-links .secondary-button { min-height: 42px; padding: 8px 14px; }
@media (max-width: 620px) { .operation-header-meta { font-size: 12px; line-height: 1.45; margin-top: 5px; }.operation-header-meta > * + *:before { margin: 0 7px; }.crm-detail-page .page-heading { gap: 10px; margin-bottom: 16px; }.crm-detail-page .quick-links { gap: 8px; }.crm-detail-page .quick-links .secondary-button { flex: 1 1 0; font-size: 12px; min-height: 42px; padding: 8px; text-align: center; } }
.reminder-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 18px; margin: 18px 0; }.reminder-tabs a { border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; font-weight: 750; padding: 0 2px 10px; }.reminder-tabs a.active { border-bottom-color: var(--brand); color: var(--brand); }.followup-list { display: grid; }.followup-row { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 18px; justify-content: space-between; padding: 15px 0; }.followup-row:first-child { border-top: 0; }.followup-summary p { font-size: 13px; margin: 4px 0 0; }.followup-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }.followup-actions form { display: block; max-width: none; }.followup-actions button, .followup-actions .action-link { font-size: 12px; min-height: 36px; padding: 0 10px; }.reschedule { position: relative; }.reschedule summary { color: var(--brand); cursor: pointer; font-size: 12px; font-weight: 750; list-style: none; }.reschedule summary::-webkit-details-marker { display: none; }.reschedule form { background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgba(20,32,51,.14); display: grid; gap: 8px; padding: 10px; position: absolute; right: 0; top: 25px; width: 250px; z-index: 5; }
.followup-action-card.queue-loading { opacity: .58; pointer-events: none; }.followup-action-card.queue-enter { animation: queue-enter .2s ease-out; }@keyframes queue-enter { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.operations-dashboard > .followup-action-card { background: #fff; border: 1px solid var(--line); border-left-width: 4px; border-radius: 16px; padding: 21px; scroll-margin-top: 116px; }.operations-dashboard > .followup-action-card .section-heading { margin-bottom: 0; }.operations-dashboard > .followup-action-card .section-heading h2 { font-size: 26px; letter-spacing: -.035em; margin: 5px 0 6px; }.operations-dashboard > .followup-action-card > .dashboard-trio-grid { align-items: start; }.operations-dashboard > .followup-action-card .card { border-radius: 13px; box-shadow: none; padding: 17px; }.operations-dashboard > .followup-action-card .card h2 { font-size: 21px; margin: 5px 0 7px; }.operations-dashboard > .followup-action-card .metric { margin: 13px 0; min-height: 0; padding: 13px 14px; }.operations-dashboard > .followup-action-card .metric strong { font-size: 31px; }.operations-dashboard > .followup-action-card .followup-row { gap: 12px; padding: 13px 0; }.operations-dashboard > .followup-action-card .followup-row .action-link { font-size: 12px; min-height: 38px; padding: 0 11px; }
.dashboard-module-empty{align-items:flex-start;background:linear-gradient(105deg,#f7fbfa,#faf9ff);border:1px solid #dfe9e6;border-radius:16px;display:flex;gap:14px;padding:22px}.dashboard-module-empty>span{align-items:center;background:#e8f7f1;border-radius:11px;color:#087f78;display:inline-flex;flex:0 0 42px;font-size:19px;height:42px;justify-content:center}.dashboard-module-empty h2{font-size:18px;margin:0 0 5px}.dashboard-module-empty p{color:#65758a;font-size:12px;line-height:1.5;margin:0}.dashboard-module-empty .action-link{display:inline-flex;margin-top:12px}
.dashboard-queue-grid { align-items: start; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }.dashboard-queue-grid.queue-count-1 { grid-template-columns: minmax(0, 1fr); }.dashboard-queue-grid.queue-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dashboard-queue-grid.queue-count-1 .metric { max-width: 230px; }.dashboard-queue-grid.queue-count-1 .followup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }.dashboard-queue-grid.queue-count-1 .followup-list { max-width: none; }
.dashboard-work-queue { --queue-accent:#2877c9; --queue-border:#c9e0f7; --queue-soft:#f4f9ff; --queue-orb:rgba(40,119,201,.10); background:linear-gradient(145deg,var(--queue-soft),#fff 68%); border-color:var(--queue-border); border-top:4px solid var(--queue-accent); overflow:hidden; position:relative; }
.dashboard-work-queue::after { background:var(--queue-orb); border-radius:50%; content:""; height:82px; pointer-events:none; position:absolute; right:-28px; top:-32px; width:82px; }
.dashboard-work-queue > * { position:relative; z-index:1; }
.work-queue-sales { --queue-accent:#2877c9; --queue-border:#c9e0f7; --queue-soft:#f4f9ff; --queue-orb:rgba(40,119,201,.11); }
.work-queue-collections { --queue-accent:#b87808; --queue-border:#f3d79b; --queue-soft:#fffaf0; --queue-orb:rgba(184,120,8,.10); }
.work-queue-insurance { --queue-accent:#087f78; --queue-border:#bce9e1; --queue-soft:#f2fcf9; --queue-orb:rgba(8,127,120,.10); }
.dashboard-work-queue > .metric { background:color-mix(in srgb, var(--queue-soft) 76%, #fff); border-color:var(--queue-border); border-top-color:var(--queue-accent); min-height:0; }
.dashboard-work-queue > .metric strong { color:var(--queue-accent); }
.dashboard-work-queue-link,.dashboard-work-queue-link:visited,.dashboard-work-queue-link:hover,.dashboard-work-queue-link:focus,.dashboard-work-queue-link * { text-decoration:none !important; }
.dashboard-work-queue-link { transition:box-shadow .18s ease,transform .18s ease; }
.dashboard-work-queue-link:hover { box-shadow:0 14px 28px rgba(20,32,51,.11) !important; color:var(--ink); transform:translateY(-2px); }
.dashboard-work-queue-link:focus-visible { outline:3px solid color-mix(in srgb,var(--queue-accent) 35%,#fff); outline-offset:3px; }
.dashboard-work-queue-link h2 { margin:0 !important; }
.dashboard-work-queue-link .metric { margin:15px 0 0 !important; }
.queue-overdue { border-left: 4px solid #b42318; }.queue-today { border-left: 4px solid #c58512; }.queue-upcoming { border-left: 4px solid #3478c9; }.success-button { background: #16794c; }.success-button:hover { background: #11643f; }.warning-button { background: #fff3d6; color: #9a650b; }.warning-button:hover { background: #f9e6b5; }
@media (max-width: 620px) { .page-heading { flex-direction: column; }.quick-links { width: 100%; }.quick-links button, .quick-links a { flex: 1; }.contact-actions { justify-content: flex-start; width: 100%; }.contact-actions .action-link, .contact-actions form, .contact-actions button { flex: 1; }.contact-actions form button { width: 100%; }.detail-summary { grid-template-columns: 1fr; }.drawer { padding: 18px; } }
@media (max-width: 620px) { .customer-reminder-card { padding: 18px; }.customer-reminder-actions { align-items: stretch; flex-direction: column-reverse; }.customer-reminder-actions .action-link,.customer-reminder-actions button { justify-content: center; width: 100%; }.customer-reminder-shortcut { align-items: stretch; flex-direction: column; }.customer-reminder-shortcut .action-link { justify-content: center; width: 100%; } }
@media (max-width: 760px) { .dashboard-command-centre { padding: 20px; }.dashboard-command-head { flex-direction: column; gap: 11px; }.dashboard-live-status { align-self: flex-start; }.dashboard-action-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }.dashboard-action-tiles a { min-height: 122px; }.dashboard-assistant-form { grid-template-columns: 1fr; }.dashboard-assistant-form button { width: 100%; } }
@media (max-width: 400px) { .dashboard-action-tiles { grid-template-columns: 1fr; }.dashboard-command-head h1 { font-size: 30px; } }
@media (max-width: 620px) { .app-main .content-wrap { padding-bottom: 112px; }.operations-dashboard > .followup-action-card { border-radius: 14px; padding: 17px; scroll-margin-top: 132px; }.operations-dashboard > .followup-action-card .section-heading h2 { font-size: 24px; }.operations-dashboard > .followup-action-card .card { padding: 15px; }.operations-dashboard > .followup-action-card .card h2 { font-size: 20px; }.operations-dashboard > .followup-action-card .metric { margin: 11px 0; padding: 12px 13px; }.operations-dashboard > .followup-action-card .followup-row { padding: 12px 0; }.push-enable { bottom: 16px; font-size: 12px; padding: 10px 14px; } }
@media (max-width: 620px) { .dashboard-queue-grid, .dashboard-queue-grid.queue-count-2 { grid-template-columns: 1fr; }.dashboard-queue-grid.queue-count-1 .metric { max-width: none; }.dashboard-queue-grid.queue-count-1 .followup-row { display: flex; flex-direction: column; }.dashboard-queue-grid .followup-row .action-link { width: 100%; } }
@media (max-width: 620px) { .customer-identity-card--page { align-items: flex-start; margin: -4px 0 18px; padding: 14px; }.customer-identity-card--page .operation-header-meta { margin: 10px 0 0; width: 100%; }.customer-identity-card--page .customer-identity-card__marker { flex-basis: 44px; height: 44px; }.customer-identity-card--page .customer-identity-card__content h1 { font-size: 29px; } }
@media (max-width: 420px) { .quick-contact-actions,.quick-action-grid,.quick-customer-context { grid-template-columns: 1fr; } }

/* JANVIXO V1 interface audit: one clear visual language for daily work. */
@media (min-width: 701px) {
    .app-main .content-wrap { width: min(100% - 72px, 1320px); }
    body.drawer-open .content-wrap { width: min(100% - 72px, 1320px); }
    .workspace-assistant-shortcut { bottom: 26px; display: inline-flex; right: 28px; }
}
.side-nav a.is-current { background: #292e41; box-shadow: inset 3px 0 0 #35c482; color: #fff; }
.operations-dashboard,.crm-page,.assistant-page { margin: 0 auto; max-width: 1320px; }
.operations-dashboard { gap: 18px; }
.dashboard-command-centre { box-shadow: 0 14px 32px rgba(17, 104, 80, .07); padding: clamp(22px, 3vw, 32px); }
.dashboard-command-head h1 { max-width: 760px; }
.dashboard-command-head p { font-size: 15px; line-height: 1.55; }
.dashboard-user-profile { align-items: center; background: rgba(255,255,255,.88); border: 1px solid #d9ece5; border-radius: 14px; display: flex; flex: 0 0 auto; gap: 10px; padding: 10px 12px; position: relative; }
.dashboard-user-profile > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; padding-right: 11px; }
.dashboard-user-profile strong { font-size: 13px; max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-user-profile small { color: var(--muted); font-size: 11px; font-weight: 700; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-user-profile > i { background: #20a66a; border: 2px solid #fff; border-radius: 50%; bottom: 10px; height: 10px; position: absolute; right: 10px; width: 10px; }
.dashboard-avatar { align-items: center; background: linear-gradient(135deg,#5b45e0,#16877f); border-radius: 11px; color: #fff; display: inline-flex; flex: 0 0 38px; font-size: 15px; font-weight: 900; height: 38px; justify-content: center; width: 38px; }
.dashboard-assistant-form { max-width: 880px; }
.dashboard-quick-actions,.dashboard-snapshot { box-shadow: 0 8px 24px rgba(22, 35, 58, .035); }
.dashboard-quick-actions .section-heading h2,.dashboard-snapshot .section-heading h2 { font-size: 20px; margin-top: 4px; }
.dashboard-action-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dashboard-action-tiles a { min-height: 124px; }
.dashboard-action-tiles b { align-items: center; background: #e8f7f1; border: 1px solid #bfe7d8; border-radius: 11px; color: #087f78; display: inline-flex; font-size: 21px; height: 38px; justify-content: center; width: 38px; }
.dashboard-action-tiles a:nth-child(2) b { background: #fff5df; border-color: #f2d796; color: #a66b08; }
.dashboard-action-tiles a:nth-child(3) b { background: #edf3ff; border-color: #cbdcff; color: #2c6fbc; }
.operations-dashboard > .followup-action-card { box-shadow: 0 10px 28px rgba(22, 35, 58, .035); }
.dashboard-queue-grid.queue-count-1 .metric { max-width: 100%; }
.dashboard-queue-grid.queue-count-1 .card { display: grid; gap: 6px; grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr); }
.dashboard-queue-grid.queue-count-1 .card > .metric { align-self: stretch; margin: 0; }
.dashboard-queue-grid.queue-count-1 .card > .followup-list { align-self: center; }
.dashboard-insights-grid { align-items: stretch; display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-insights-grid > .card { margin: 0; min-width: 0; }
.dashboard-insights-grid .section-heading { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.dashboard-insights-grid .section-heading > a { color: #087f78; font-size: 12px; font-weight: 850; white-space: nowrap; }
.dashboard-insights-grid h2 { font-size: 22px; margin: 5px 0 6px; }
.dashboard-pipeline-card { padding: 23px; }
.pipeline-chart { display: grid; gap: 15px; margin-top: 22px; }
.pipeline-chart > div { display: grid; gap: 7px; }
.pipeline-chart span { align-items: center; display: flex; justify-content: space-between; gap: 12px; }
.pipeline-chart b { color: #4b5568; font-size: 12px; }
.pipeline-chart strong { color: var(--ink); font-size: 14px; }
.pipeline-chart i { background: #edf1f5; border-radius: 99px; display: block; height: 9px; overflow: hidden; }
.pipeline-chart em { background: linear-gradient(90deg,#087f78,#37b789); border-radius: inherit; display: block; height: 100%; min-width: 9px; }
.dashboard-revenue-total { color: #087f78; font-size: 20px; letter-spacing: -.04em; white-space: nowrap; }

/* A single recorded month is a status, not a chart. Keep the headline total once
   and replace the otherwise oversized bar with a compact period indicator. */
.dashboard-revenue-card .revenue-chart:has(> div:only-child) {
    align-items: center;
    background: #f2fcf9;
    border: 1px solid #c7ece1;
    border-radius: 12px;
    height: auto;
    margin-top: 12px;
    padding: 10px 14px;
}
.dashboard-revenue-card .revenue-chart:has(> div:only-child) > div {
    align-items: center;
    flex-direction: row;
    height: auto;
    justify-content: flex-start;
    min-height: 0;
}
.dashboard-revenue-card .revenue-chart:has(> div:only-child) i,
.dashboard-revenue-card .revenue-chart:has(> div:only-child) strong { display: none; }
.dashboard-revenue-card .revenue-chart:has(> div:only-child) small {
    color: #087f78;
    font-size: 12px;
    font-weight: 800;
}
.dashboard-revenue-card .revenue-chart:has(> div:only-child) small::before {
    color: #69778c;
    content: "Recorded in ";
    font-weight: 700;
}

/* Owner command centre: distinguish capacity, data, revenue and urgent work. */
.owner-command-metrics .metric {
    --owner-metric-accent: #3679d5;
    --owner-metric-soft: #edf5ff;
    background: linear-gradient(135deg, var(--owner-metric-soft), #fff 72%);
    border-color: color-mix(in srgb, var(--owner-metric-accent) 26%, #dfe7f0);
    border-top: 4px solid var(--owner-metric-accent);
    position: relative;
}
.owner-command-metrics .metric strong { color: var(--owner-metric-accent); }
.owner-command-metrics .metric::after {
    background: var(--owner-metric-accent);
    border-radius: 99px;
    content: '';
    height: 8px;
    opacity: .14;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 8px;
}
.owner-command-metrics .owner-metric-workspaces { --owner-metric-accent: #3679d5; --owner-metric-soft: #edf5ff; }
.owner-command-metrics .owner-metric-records { --owner-metric-accent: #6247d9; --owner-metric-soft: #f3f0ff; }
.owner-command-metrics .owner-metric-revenue { --owner-metric-accent: #087f78; --owner-metric-soft: #edfbf7; }
.owner-command-metrics .owner-metric-overdue { --owner-metric-accent: #c62828; --owner-metric-soft: #fff2f2; }

/* Dashboard home: action-first layout inspired by field-sales workflows. */
.dashboard-command-centre { background: radial-gradient(circle at 88% 14%, rgba(102, 219, 174, .18), transparent 28%), linear-gradient(135deg, #f4fffb 0%, #fff 68%); border-color: #c6eadb; overflow: hidden; position: relative; }
.dashboard-command-centre:after { border: 1px solid rgba(21, 133, 106, .09); border-radius: 50%; content: ''; height: 250px; pointer-events: none; position: absolute; right: -118px; top: -150px; width: 250px; }
.dashboard-command-head,.dashboard-assistant-form,.dashboard-assistant-link { position: relative; z-index: 1; }
.dashboard-command-head h1 { color: #124c3d; font-size: clamp(32px, 3.3vw, 43px); line-height: 1.08; }
.dashboard-command-head h1 span { display: inline-block; font-size: .57em; margin-left: 4px; transform: rotate(-9deg); }
.dashboard-command-head p { color: #314c48; font-size: 15px; }
.dashboard-live-controls { align-items: center; display: flex; gap: 10px; position: relative; z-index: 1; }
.dashboard-live-controls > span { align-items: center; background: #f8fffb; border: 1px solid #cdebdc; border-radius: 999px; box-shadow: 0 4px 12px rgba(12,111,80,.06); color: #17634f; display: inline-flex; font-size: 12px; font-weight: 800; gap: 7px; padding: 8px 12px; }
.dashboard-live-controls > span i { background: #25ae68; border-radius: 50%; height: 8px; width: 8px; }
.dashboard-live-controls > a { align-items: center; background: #f5fff9; border: 1px solid #cee9dd; border-radius: 13px; color: #087f78; display: inline-flex; font-size: 20px; height: 42px; justify-content: center; width: 42px; }
.dashboard-live-controls > a:hover { background: #e7f8f0; text-decoration: none; }
.dashboard-assistant-form { grid-template-columns: auto minmax(0, 1fr) auto; margin-top: 25px; padding: 8px; }
.dashboard-assistant-form > span { align-items: center; background: #eaf9f3; border-radius: 10px; color: #087f78; display: inline-flex; font-size: 18px; justify-content: center; width: 42px; }
.dashboard-assistant-form input { font-size: 15px; padding-left: 4px; }
.dashboard-assistant-mic { align-items: center; background: #eaf7f0; border-radius: 10px; color: #087f78; display: inline-flex; font-size: 20px; justify-content: center; min-width: 46px; }
.dashboard-assistant-mic svg { fill: none; height: 22px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 22px; }
.dashboard-assistant-mic:hover { background: #dff4e9; color: #066b65; text-decoration: none; }
.dashboard-assistant-form button { align-items: center; border-radius: 10px; display: inline-flex; gap: 10px; grid-column: 1 / -1; justify-content: center; margin-top: 2px; min-width: 0; width: 100%; }
.dashboard-assistant-form button b { font-size: 19px; line-height: 1; }
.dashboard-assistant-link { margin-left: 5px; }
.dashboard-quick-actions,.dashboard-snapshot,.dashboard-routine-card { background: #fff; border: 1px solid #e4e9ed; border-radius: 18px; padding: 23px; }
.dashboard-quick-actions .section-heading { align-items: center; display: flex; justify-content: space-between; }
.dashboard-action-help { color: #788498; font-size: 12px; font-weight: 700; }
.dashboard-action-tiles { gap: 14px; }
.dashboard-action-tiles a { align-content: start; background: linear-gradient(160deg, #fff 0%, #fcfdfd 100%); border-radius: 16px; box-shadow: 0 6px 14px rgba(24, 35, 58, .035); gap: 9px; min-height: 150px; padding: 18px; }
.dashboard-action-tiles a:hover { box-shadow: 0 16px 28px rgba(17, 112, 82, .12); transform: translateY(-4px); }
.dashboard-action-tiles b { border-radius: 50%; font-size: 19px; height: 42px; width: 42px; }
.dashboard-action-tiles strong { font-size: 15px; margin-top: 2px; }
.dashboard-action-tiles span { font-size: 12px; }
.dashboard-routine-card { box-shadow: 0 10px 25px rgba(22, 35, 58, .035); padding: 0; overflow: hidden; }
.dashboard-routine-card header { align-items: center; border-bottom: 1px solid #eef1f4; display: flex; justify-content: space-between; padding: 17px 21px; }
.dashboard-routine-card header > div { align-items: center; display: flex; gap: 9px; }
.dashboard-routine-card header > div > span { align-items: center; background: #e7f8f0; border-radius: 9px; color: #087f78; display: inline-flex; font-size: 18px; height: 30px; justify-content: center; width: 30px; }
.dashboard-routine-card header strong { color: #27374a; font-size: 15px; }
.dashboard-routine-card header a { color: #087f78; font-size: 12px; font-weight: 850; }
.dashboard-routine-list { display: grid; }
.dashboard-routine-list a { align-items: center; color: #27374a; display: grid; gap: 12px; grid-template-columns: 35px minmax(0, 1fr) auto; padding: 14px 21px; transition: background .16s ease; }
.dashboard-routine-list a + a { border-top: 1px solid #eef1f4; }
.dashboard-routine-list a:hover { background: #f6fcf9; text-decoration: none; }
.dashboard-routine-list b { align-items: center; background: #eff8f5; border-radius: 9px; color: #087f78; display: inline-flex; font-size: 16px; height: 35px; justify-content: center; width: 35px; }
.dashboard-routine-list span { display: grid; gap: 2px; min-width: 0; }
.dashboard-routine-list span strong { font-size: 14px; }
.dashboard-routine-list span small { color: #778398; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-routine-list em { background: #eff9f4; border-radius: 999px; color: #087f78; font-size: 12px; font-style: normal; font-weight: 850; padding: 8px 11px; }

.crm-page .page-heading { align-items: flex-end; border-bottom: 1px solid #e5e9f0; margin-bottom: 22px; padding-bottom: 22px; }
.crm-page .page-heading h1 { font-size: clamp(31px, 3.2vw, 42px); letter-spacing: -.045em; }
.crm-page .page-heading p { max-width: 640px; }
.crm-directory-card { box-shadow: 0 12px 32px rgba(22, 35, 58, .045); padding: 26px; }
.crm-directory-card .section-heading { margin-bottom: 0; }
.crm-directory-heading h2 { font-size: 24px; }
.crm-simple-search { background: #f8fafc; border: 1px solid #e4e9f0; border-radius: 13px; margin: 20px 0; padding: 12px; }
.crm-simple-search input { background: #fff; }
.crm-table th { padding-bottom: 12px; }
.crm-table td { padding-bottom: 16px; padding-top: 16px; }
.crm-table tr:hover td { background: #fbfcfe; }
.crm-table td:first-child strong { font-size: 14px; }
.crm-table .secondary-button { border: 1px solid #dfe5ee; }

.assistant-page { max-width: 1120px; }
.assistant-quotation-page { max-width: 1120px; }
.assistant-quotation-page .page-heading { align-items: end; border-bottom: 1px solid #e5e9f0; margin-bottom: 22px; padding-bottom: 20px; }
.assistant-quotation-customer { align-items: center; background: linear-gradient(135deg, #f4fffb, #fff); border-color: #cce9df; display: grid; gap: 3px 18px; grid-template-columns: auto minmax(0, 1fr); padding: 18px 21px; }
.assistant-quotation-customer .eyebrow { grid-column: 1 / -1; }
.assistant-quotation-customer strong { font-size: 20px; }
.assistant-quotation-builder { box-shadow: 0 14px 34px rgba(22, 35, 58, .05); padding: 28px; }
.assistant-quotation-builder form { max-width: none; }
.assistant-quotation-builder .section-heading { border-bottom: 1px solid #e8ebf0; margin-bottom: 20px; padding-bottom: 16px; }
.assistant-quotation-builder .section-heading h2 { font-size: 24px; }
.assistant-quotation-builder .quotation-section-choice { min-height: 84px; padding: 15px; }
.assistant-quotation-builder .quotation-section-choice:focus,
.assistant-quotation-builder .quotation-section-choice:focus-visible,
.assistant-quotation-builder .quotation-section-choice.is-selected { background: #f3f1ff; border-color: var(--brand); color: var(--ink) !important; }
.assistant-quotation-builder .quotation-section-choice.is-selected > span { background: var(--brand); color: #fff; }
.assistant-quotation-builder .quotation-section-choice.is-selected small { color: var(--muted); }
.assistant-quotation-builder .simple-item-picker { background: #f7fbf9; border-color: #cde7dd; margin-top: 10px; padding: 13px; }
.assistant-quotation-builder .simple-item-picker-head { align-items: center; }
.assistant-quotation-builder .simple-item-picker-head h3 { font-size: 19px; margin: 0; }
.assistant-quotation-builder .simple-item-picker-head button { min-height: 38px; padding: 8px 12px; }
.assistant-quotation-builder .simple-catalog-items { margin-top: 10px; }
.assistant-quotation-builder .quotation-selected-section { background: #fbfcfe; }
.assistant-quotation-builder .invoice-summary { background: #f5fbf8; border-color: #cfe9df; }

/* Quotation builder: compact, task-first controls without changing quotation behaviour. */
.assistant-quotation-builder .simple-manual-item { align-items: center; display: grid; grid-template-columns: auto minmax(0,1fr); margin: 12px 0; padding: 13px 14px; }
.assistant-quotation-builder .simple-manual-item > strong { white-space: nowrap; }
.assistant-quotation-builder .simple-manual-item > div { grid-template-columns: minmax(0,1fr) 140px auto; }
.assistant-quotation-builder .simple-selected-items { margin-top: 14px; padding-top: 14px; }
.assistant-quotation-builder .simple-selected-items h3 { font-size: 18px; margin-bottom: 9px; }
.assistant-quotation-builder .simple-flat-discount { align-items: center; display: grid; grid-template-columns: minmax(0,1fr) 210px; margin-top: 12px; padding: 11px 13px; }
.assistant-quotation-builder .simple-flat-discount-label { color: var(--ink); font-weight: 800; }
.assistant-quotation-builder .simple-flat-discount-label small { color: var(--muted); font-size: 12px; }
.assistant-quotation-builder .simple-selected-items:has([data-assistant-lines] > .muted:only-child) { border: 0; margin-top: 8px; padding: 0; }
.assistant-quotation-builder .simple-selected-items [data-assistant-lines] > .muted:only-child { background: #f8fafc; border: 1px dashed #dfe5ee; border-radius: 12px; margin: 0; padding: 11px 13px; }
.assistant-quotation-builder .invoice-summary { margin-top: 12px; padding: 13px; }
.assistant-quotation-builder .invoice-summary span { min-height: 0; }
.assistant-quotation-builder .invoice-grand-total { padding: 10px 12px; }
.assistant-quotation-builder .quotation-customer-note { margin-top: 12px; }
.assistant-quotation-builder .quotation-customer-note textarea { min-height: 92px; }

body:has(.assistant-page) .workspace-assistant-shortcut { display: none; }

/* Compact, task-first Smart Assistant layout. */
.assistant-heading-line { align-items: center; display: flex; gap: 12px; }
.assistant-heading-line .assistant-online-status { padding: 6px 10px; }
.assistant-question button[type="submit"]:disabled { box-shadow: none; cursor: not-allowed; opacity: .48; }
.assistant-command-help { border: 0; }
.assistant-command-help summary { color: #526277; font-size: 12px; font-weight: 800; padding: 8px 0; }

@media (max-width: 560px) {
    .assistant-page-heading { margin-bottom: 10px !important; }
    .assistant-page-heading > div { width: 100%; }
    .assistant-heading-line { justify-content: space-between; }
    .assistant-page .assistant-page-heading h1 { font-size: 26px; margin-bottom: 4px; }
    .assistant-page .assistant-page-heading p { font-size: 13px; }
    .assistant-page .assistant-online-status { font-size: 10px; padding: 5px 8px; }
    .assistant-page .assistant-online-status i { height: 7px; width: 7px; }
    .assistant-page .assistant-shell { padding-top: 16px; }
    .assistant-page .assistant-question label { font-size: 13px; }
    .assistant-page .assistant-question > div { gap: 8px; }
    .assistant-page .assistant-question > div button[type="submit"] { min-height: 46px; }
    .assistant-page .assistant-voice-controls { margin-top: 8px; }
    .assistant-page .assistant-voice-controls label { align-items: center; display: flex; gap: 9px; justify-content: flex-start; }
    .assistant-page .assistant-voice-controls label > span { flex: 0 0 auto; font-size: 11px; }
    .assistant-page .assistant-voice-controls select { min-height: 34px; width: min(180px, 60vw); }
    .assistant-page .assistant-voice-help { margin-top: 7px; }
    .assistant-page .assistant-quick-actions { margin-top: 14px; padding-top: 14px; }
    .assistant-page .assistant-quick-actions > .eyebrow { margin-bottom: 8px; }
    .assistant-page .assistant-quick-actions > div { gap: 8px; }
    .assistant-page .assistant-quick-actions a,
    .assistant-page .assistant-quick-actions .assistant-new-enquiry { gap: 6px; min-height: 78px; padding: 10px; }
    .assistant-page .assistant-quick-actions a b { font-size: 17px; height: 31px; width: 31px; }
    .assistant-page .assistant-command-help summary { padding: 9px 0 3px; }
}
@media (max-width: 760px) {
    .app-main .content-wrap { width: min(100% - 28px, 1320px); }
    .operations-dashboard,.crm-page,.assistant-page { max-width: none; }
    .dashboard-command-centre { border-radius: 16px; }
    .dashboard-command-centre:after { height: 180px; right: -95px; top: -104px; width: 180px; }
    .dashboard-command-head h1 { font-size: 36px; }
    .dashboard-assistant-form { grid-template-columns: auto minmax(0, 1fr) auto; }
    .dashboard-live-controls { align-self: flex-start; }
    .dashboard-action-help { display: none; }
    .dashboard-user-profile { width: 100%; }
    .dashboard-user-profile > span:nth-child(2) { flex: 1; }
    .dashboard-action-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-queue-grid.queue-count-1 .card { display: block; }
    .dashboard-queue-grid.queue-count-1 .card > .metric { margin: 11px 0; }
    .dashboard-insights-grid { grid-template-columns: 1fr; }
    .crm-page .page-heading { align-items: stretch; padding-bottom: 18px; }
    .crm-directory-card { padding: 18px; }
    .crm-simple-search { grid-template-columns: 1fr; padding: 10px; }
    .assistant-quotation-page .page-heading { align-items: stretch; }
    .assistant-quotation-customer { grid-template-columns: 1fr; }
    .assistant-quotation-builder { padding: 19px; }
    .assistant-quotation-builder .section-heading h2 { font-size: 21px; }
}

@media (max-width: 620px) {
    html,body,.saas-shell,.app-main,.operations-dashboard { max-width: 100%; overflow-x: clip; }
    .operations-dashboard { touch-action: pan-y; }
    .dashboard-command-centre,
    .dashboard-command-head,
    .dashboard-command-head > div,
    .dashboard-assistant-form,
    .dashboard-assistant-form input,
    .dashboard-live-controls { max-width: 100%; min-width: 0; }
    .dashboard-command-centre { width: 100%; }
    .dashboard-command-head h1 { font-size: clamp(29px, 9vw, 36px); overflow-wrap: anywhere; }
    .dashboard-command-head p { font-size: 14px; }
    .dashboard-live-controls > a { flex: 0 0 42px; }
    .dashboard-assistant-form { gap: 7px; padding: 7px; width: 100%; }
    .dashboard-assistant-form > span { width: 38px; }
    .dashboard-assistant-mic { min-width: 42px; }
    .dashboard-assistant-form input { width: 100%; }
    .mobile-topbar { background: #fff; box-shadow: 0 3px 14px rgba(17, 32, 51, .08); }
    .workspace-assistant-shortcut { bottom: 18px; border-radius: 50%; min-height: 58px; min-width: 58px; padding: 0; right: 16px; }
    .workspace-assistant-shortcut > span { background: transparent; font-size: 23px; height: auto; width: auto; }
    .workspace-assistant-shortcut b { display: none; }
    .operations-dashboard > .followup-action-card { padding: 15px; }
    .operations-dashboard > .followup-action-card .section-heading h2 { font-size: 22px; line-height: 1.15; }
    .operations-dashboard > .followup-action-card .section-heading p { font-size: 13px; line-height: 1.45; }
    .reminder-tabs { margin: 14px 0; }
    .operations-dashboard > .followup-action-card .card { padding: 15px; }
    .operations-dashboard > .followup-action-card .card h2 { font-size: 19px; }
    .operations-dashboard > .followup-action-card .metric { align-items: center; display: flex; justify-content: space-between; margin: 12px 0 8px; min-height: 68px; padding: 10px 13px; }
    .operations-dashboard > .followup-action-card .metric strong { font-size: 29px; margin: 0; }
    .operations-dashboard > .followup-action-card .metric small { font-size: 12px; text-align: right; }
    .dashboard-queue-grid.queue-count-1 .followup-row,.dashboard-queue-grid .followup-row { align-items: center; display: flex; flex-direction: row; gap: 10px; padding: 13px 0; }
    .dashboard-queue-grid .followup-summary { min-width: 0; }
    .dashboard-queue-grid .followup-summary strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dashboard-queue-grid .followup-summary p { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dashboard-queue-grid .followup-summary small { color: #68758a; font-size: 12px; }
    .dashboard-queue-grid .followup-row .action-link { flex: 0 0 auto; font-size: 11px; min-height: 34px; padding: 0 10px; width: auto; }
    .saas-shell,.app-main,.app-main .content-wrap,.operations-dashboard,.operations-dashboard > *,.dashboard-queue-grid,.dashboard-queue-grid > * { max-width: 100%; min-width: 0; }
    .dashboard-queue-grid .followup-row,.dashboard-queue-grid .followup-summary { max-width: 100%; min-width: 0; }
}
@media (max-width: 420px) {
    .dashboard-action-tiles { grid-template-columns: 1fr; }
    .assistant-quotation-builder { padding: 16px; }
    .assistant-quotation-page .page-heading { margin-bottom: 14px; padding-bottom: 14px; }
    .assistant-quotation-page .page-heading p { margin-top: 5px; }
    .assistant-quotation-builder .section-heading { margin-bottom: 12px; padding-bottom: 11px; }
    .assistant-quotation-builder .quotation-section-choice { min-height: 68px; padding: 11px 13px; }
    .assistant-quotation-builder .simple-manual-item { align-items: stretch; gap: 9px; grid-template-columns: 1fr; margin: 10px 0; padding: 12px; }
    .assistant-quotation-builder .simple-manual-item > div { gap: 8px; grid-template-columns: minmax(0,1fr) 102px; }
    .assistant-quotation-builder .simple-manual-item input:first-child { grid-column: 1 / -1; }
    .assistant-quotation-builder .simple-manual-item button { min-width: 102px; width: auto; }
    .assistant-quotation-builder .simple-selected-items { margin-top: 10px; padding-top: 11px; }
    .assistant-quotation-builder .simple-flat-discount { gap: 10px; grid-template-columns: minmax(0,1fr) 150px; margin-top: 10px; }
    .assistant-quotation-builder .invoice-summary { gap: 8px; margin-top: 10px; padding: 10px; }
    .assistant-quotation-builder .invoice-grand-total { padding: 8px 10px; }
    .assistant-quotation-builder .quotation-customer-note textarea { min-height: 78px; }
}

/* Keep quotation amounts readable on narrow screens, including large vehicle totals. */
@media (max-width: 600px) {
    [data-simple-quotation] .invoice-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    [data-simple-quotation] .invoice-summary span { min-width: 0; }
    [data-simple-quotation] .invoice-summary [data-simple-discount-row],
    [data-simple-quotation] .invoice-summary [data-assistant-discount-row] { grid-column: 1 / -1; }
    [data-simple-quotation] .invoice-summary .invoice-grand-total { grid-column: 1 / -1; text-align: right; }
    [data-simple-quotation] .invoice-summary .invoice-grand-total strong { overflow-wrap: anywhere; }
}

/* Mobile header: keep account, alerts and navigation visible without workspace-label clutter. */
@media (max-width: 700px) {
    .mobile-topbar { min-height: 74px; padding: 12px 18px; }
    .mobile-topbar .brand-image { flex: 1 1 auto; min-width: 0; }
    .mobile-topbar .brand-image img { height: 39px; max-width: min(212px, 48vw); }
    .mobile-topbar .brand-image:after { font-size: 6px; letter-spacing: .07em; }
    .mobile-topbar-actions { flex: 0 0 auto; gap: 8px; }
    .mobile-profile-shortcut { align-items: center; background: linear-gradient(145deg,#edf9f5,#dff5ee); border: 1px solid #bce8d9; border-radius: 13px; color: #087f78; display: inline-flex; height: 40px; justify-content: center; position: relative; text-decoration: none; width: 40px; }
    .mobile-profile-shortcut span { align-items: center; background: #087f78; border-radius: 50%; color: #fff; display: inline-flex; font-size: 12px; font-weight: 850; height: 28px; justify-content: center; letter-spacing: -.02em; width: 28px; }
    .mobile-profile-shortcut i { background: #22ad71; border: 2px solid #f5fffb; border-radius: 50%; bottom: 3px; height: 9px; position: absolute; right: 3px; width: 9px; }
    .mobile-profile-shortcut:focus-visible { outline: 3px solid rgba(8,127,120,.25); outline-offset: 2px; }
}

/* Voice preferences are deliberately a small stacked field. Keeping it in one
   column prevents the label/select pair from escaping the assistant card on
   small PWA screens and at narrow desktop window sizes. */
.assistant-page .assistant-question > .assistant-voice-controls {
  display: grid !important;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 14px;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.assistant-page .assistant-question > .assistant-voice-controls > span {
  min-width: 0;
}

.assistant-page .assistant-question > .assistant-voice-controls > label {
  align-items: start;
  display: grid !important;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) !important;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  width: min(100%, 260px) !important;
}

.assistant-page .assistant-question > .assistant-voice-controls > label > span {
  white-space: normal;
}

.assistant-page .assistant-question > .assistant-voice-controls select {
  min-width: 0;
  width: 100%;
}

@media (min-width: 421px) and (max-width: 760px) {
    .dashboard-action-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
    .dashboard-action-tiles a { min-height: 118px; padding: 14px; }
    .dashboard-action-tiles a:first-child { grid-column: 1 / -1; min-height: 104px; }
}
@media (max-width: 620px) {
    .crm-page { overflow-x: hidden; }
    .crm-page .page-heading { gap: 16px; margin-bottom: 20px; }
    .crm-page .page-heading h1 { font-size: 30px; }
    .crm-page .quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
    .crm-page .quick-links > * { align-self: stretch; min-width: 0; width: 100%; }
    .crm-page .quick-links > *:last-child { grid-column: 1 / -1; }
    .crm-page .section-heading { display: grid; gap: 14px; }
    .crm-page .section-heading h2 { margin-bottom: 5px; }
    .crm-page .list-filter { margin: 0; max-width: none; }
    .crm-page .directory-tools { display: grid; grid-template-columns: 1fr; }
    .crm-page .directory-tools button { min-height: 46px; width: 100%; }
    .crm-page .card { padding: 18px; }
    .crm-page .data-list { gap: 0; }
    .crm-page .contact-list-row { gap: 0; padding: 17px 0; width: 100%; }
    .crm-page .contact-main { overflow: hidden; }
    .crm-page .contact-main > strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
    .crm-page .contact-main p { overflow-wrap: anywhere; }
    .crm-page .contact-actions-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
    .crm-page .contact-actions-inline .action-link, .crm-page .contact-actions-inline form, .crm-page .contact-actions-inline form button { min-height: 42px; width: 100%; }
    .crm-page .contact-actions-inline .action-link { padding: 0 8px; }
    .crm-page .drawer { gap: 16px; height: 100dvh; inset: 0; left: 0; max-width: none; padding: 16px; right: 0; width: auto; }
    .crm-page .drawer-head { background: white; position: sticky; top: -16px; z-index: 1; }
    .crm-page .drawer-head .secondary-button { min-height: 40px; }
    .crm-page .detail-section { margin-top: 16px; padding-top: 16px; }
    .crm-directory-card .section-heading { align-items: stretch; flex-direction: column; }.crm-directory-card .section-heading .action-link { width: 100%; }
    .record-quick-info, .owner-control-grid { grid-template-columns: 1fr; }.record-quick-info { margin: 16px 0; }.payment-followup-summary { grid-template-columns: 1fr 1fr; margin: 16px 0; }.payment-followup-actions { grid-template-columns: 1fr 1fr; }.payment-followup-actions__payment { grid-column: 1 / -1; }.daily-update-card, .full-record-form, .owner-record-controls { max-width: none; }
    .crm-filter-form, .crm-simple-search { grid-template-columns: 1fr; }.filter-actions { display: grid; grid-template-columns: 1fr 1fr; }.filter-actions button, .filter-actions a { align-items: center; display: flex; justify-content: center; min-height: 42px; }.detail-layout { grid-template-columns: 1fr; }.detail-sidebar { position: static; }.profile-grid { grid-template-columns: 1fr; }
    .reminder-tabs { gap: 12px; overflow-x: auto; }.reminder-tabs a { white-space: nowrap; }.followup-row { align-items: stretch; flex-direction: column; }.followup-actions { justify-content: flex-start; }.followup-actions > * { flex: 1; }.followup-actions button, .followup-actions .action-link { width: 100%; }.reschedule form { left: 0; right: auto; width: min(280px, 80vw); }
    .report-filter { grid-template-columns: 1fr; }
    .landing-url { flex-direction: column; }.landing-url button, .landing-url a { width: 100%; }
}

/* The base button definition appears earlier in this legacy stylesheet. Keep this
   final override here so every secondary link/button receives the same treatment. */
.secondary-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d6e1e8;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    color: #40516a;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    line-height: 1.15;
    min-height: 40px;
    padding: 0 14px;
    text-align: center;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}
.secondary-button:hover { background: #f1fbf8; border-color: #92d7c4; box-shadow: 0 6px 15px rgba(7,127,120,.10); color: #087a72; text-decoration: none; transform: translateY(-1px); }
.secondary-button:focus-visible { box-shadow: 0 0 0 3px rgba(8,127,120,.18); outline: 0; }
.secondary-button.action-link { align-self: flex-start; white-space: nowrap; }

/* A sales invoice must be readable on a phone without horizontal table scrolling. */
@media (max-width: 620px) {
    .billing-page .table-wrap:has(.invoice-items) { overflow: visible; }
    .billing-page .invoice-items,
    .billing-page .invoice-items tbody,
    .billing-page .invoice-items tr,
    .billing-page .invoice-items td { display: block; min-width: 0; width: 100%; }
    .billing-page .invoice-items { border-collapse: separate; }
    .billing-page .invoice-items thead { display: none; }
    .billing-page .invoice-items tr {
        background: #fbfcfe;
        border: 1px solid #dfe7ef;
        border-radius: 13px;
        display: grid;
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0;
        padding: 14px;
    }
    .billing-page .invoice-items td { border: 0; padding: 0; }
    .billing-page .invoice-items td:first-child { grid-column: 1 / -1; }
    .billing-page .invoice-items td::before {
        color: #65758b;
        content: attr(data-mobile-label);
        display: block;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .07em;
        margin: 0 0 6px;
        text-transform: uppercase;
    }
    .billing-page .invoice-items td:first-child::before { content: 'Item or service'; }
    .billing-page .invoice-items td:nth-child(2)::before { content: 'Qty'; }
    .billing-page .invoice-items td:nth-child(3)::before { content: 'Rate'; }
    .billing-page .invoice-items td:nth-child(4)::before { content: 'GST %'; }
    .billing-page .invoice-items td:nth-child(5)::before { content: 'Amount'; }
    .billing-page .invoice-items td:last-child { grid-column: 1 / -1; }
    .billing-page .invoice-items td:last-child::before { display: none; }
    .billing-page .invoice-items .line-total { color: #17233a; display: block; font-size: 18px; line-height: 1.25; min-height: 0; padding: 0; }
    .billing-page .invoice-items tbody tr:only-child .remove-line { display: none; }
    .billing-page .invoice-items .remove-line { font-size: 0; min-height: 42px; width: 100%; }
    .billing-page .invoice-items .remove-line::after { content: 'Remove item'; font-size: 13px; }

    /* The register is an invoice card list on a phone, never a clipped desktop table. */
    .billing-page .finance-table-wrap { border: 0; overflow: visible; }
    .billing-page .finance-table,
    .billing-page .finance-table tbody,
    .billing-page .finance-table tr,
    .billing-page .finance-table td { display: block; min-width: 0; width: 100%; }
    .billing-page .finance-table thead { display: none; }
    .billing-page .finance-table tr {
        background: #fff;
        border: 1px solid #dfe7ef;
        border-radius: 13px;
        box-shadow: 0 5px 16px rgba(26,42,64,.035);
        column-gap: 14px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 12px 0;
        padding: 15px;
        row-gap: 15px;
    }
    .billing-page .finance-table td {
        align-items: start;
        border: 0;
        display: block;
        padding: 0;
    }
    .billing-page .finance-table td::before {
        color: #65758b;
        content: attr(data-mobile-label);
        display: block;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .07em;
        margin-bottom: 5px;
        text-transform: uppercase;
    }
    .billing-page .finance-table td:nth-child(1)::before { content: 'Invoice'; }
    .billing-page .finance-table td:nth-child(2)::before { content: 'Customer'; }
    .billing-page .finance-table td:nth-child(3)::before { content: 'Assigned to'; }
    .billing-page .finance-table td:nth-child(4)::before { content: 'Due date'; }
    .billing-page .finance-table td:nth-child(5)::before { content: 'Payment बाकी'; }
    .billing-page .finance-table td:nth-child(6)::before { content: 'Status'; }
    .billing-page .finance-table td:last-child { border-top: 1px solid #e8edf2; display: block; grid-column: 1 / -1; padding-top: 12px; }
    .billing-page .finance-table td:last-child::before { display: none; }
    .billing-page .finance-table td strong,
    .billing-page .finance-table td span { line-height: 1.3; overflow-wrap: anywhere; }
    .billing-page .finance-table td span:not(.status) { font-size: 11px; }
    .billing-page .finance-actions { display: grid; gap: 8px; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); min-width: 0; width: 100%; }
    .billing-page .finance-actions > .action-link,
    .billing-page .finance-actions > .invoice-whatsapp-form,
    .billing-page .finance-actions > details { min-width: 0; width: 100%; }
    .billing-page .finance-actions > .invoice-whatsapp-form button { width: 100%; }
    .billing-page .finance-actions > .more-invoice-actions { grid-column: 1 / -1; }
    .billing-page .invoice-history-card { padding-bottom: 170px; }
}

/* A daily queue needs the action date to be readable on a phone.  Keep the
   action compact, but allow its context to wrap instead of truncating it. */
@media (max-width: 620px) {
    .operations-dashboard > .followup-action-card .followup-row,
    .dashboard-queue-grid.queue-count-1 .followup-row,
    .dashboard-queue-grid .followup-row {
        align-items: start;
        display: grid;
        gap: 7px 10px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 15px 0;
    }

    .dashboard-queue-grid .followup-summary {
        min-width: 0;
    }

    .dashboard-queue-grid .followup-summary p {
        line-height: 1.42;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .dashboard-queue-grid .followup-summary small {
        display: block;
        margin-top: 4px;
    }

    .dashboard-queue-grid .followup-row .action-link {
        align-self: center;
        font-size: 11px;
        min-height: 36px;
        padding: 0 11px;
        white-space: nowrap;
        width: auto;
    }

    /* Keep daily shortcuts glanceable. A phone should not need four full-screen
       cards before the user reaches the actual work queue. */
    .dashboard-quick-actions { padding: 18px; }
    .dashboard-quick-actions .section-heading { margin-bottom: 12px; }
    .dashboard-quick-actions .section-heading h2 { font-size: 19px; }
    .dashboard-action-help { display: none; }
    .dashboard-action-tiles {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-action-tiles a,
    .dashboard-action-tiles a:first-child {
        gap: 6px;
        grid-column: auto;
        min-height: 116px;
        padding: 13px;
    }
    .dashboard-action-tiles b { font-size: 18px; height: 38px; width: 38px; }
    .dashboard-action-tiles strong { font-size: 14px; line-height: 1.22; }
    .dashboard-action-tiles span { font-size: 11px; line-height: 1.35; }

    /* Revenue becomes a compact horizontal comparison list on a phone. */
    .dashboard-revenue-card .revenue-chart {
        align-items: stretch;
        display: grid;
        gap: 10px;
        height: auto;
        padding-top: 10px;
    }
    .dashboard-revenue-card .revenue-chart > div {
        align-items: center;
        display: grid;
        flex: none;
        gap: 6px 10px;
        grid-template-areas: "month amount" "bar bar";
        grid-template-columns: minmax(0, 1fr) auto;
        height: auto;
        justify-content: stretch;
        min-width: 0;
    }
    .dashboard-revenue-card .revenue-chart i {
        grid-area: bar;
        height: 9px !important;
        justify-self: start;
        min-height: 9px;
        width: var(--revenue-value);
    }
    .dashboard-revenue-card .revenue-chart strong { font-size: 15px; grid-area: amount; }
    .dashboard-revenue-card .revenue-chart small { font-size: 12px; grid-area: month; }
    /* A one-month chart repeats the same total and adds no decision value. */
    .dashboard-revenue-card .revenue-chart:has(> div:only-child) { display: none; }

    /* Pipeline and collection cards use tighter editorial spacing on mobile. */
    .dashboard-insights-grid { gap: 14px; }
    .dashboard-insights-grid > .card { padding: 18px; }
    .dashboard-insights-grid .section-heading {
        gap: 6px;
        margin-bottom: 12px !important;
    }
    .dashboard-insights-grid h2 { font-size: 20px; margin: 2px 0 3px; }
    .dashboard-insights-grid .section-heading p { line-height: 1.4; }
    .dashboard-insights-grid .section-heading > a { margin-top: 2px; }
    .dashboard-pipeline-card .pipeline-chart { gap: 11px; margin-top: 14px; }
    .dashboard-pipeline-card .pipeline-chart > div { gap: 5px; }
    .dashboard-revenue-total { display: block; margin: 0 0 8px; }
}

/* Mobile work queues: keep the time range obvious and the queue cards compact. */
@media (max-width: 620px) {
    .operations-dashboard > #followup-action-queue { padding: 15px 14px; }

    .operations-dashboard .reminder-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .operations-dashboard .reminder-tabs a {
        min-width: 0;
        width: 100%;
    }

    .reminder-tabs {
        background: #f3f5fb;
        border: 1px solid #dfe5f0;
        border-radius: 12px;
        display: grid;
        gap: 4px;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, .6fr) minmax(0, 1fr);
        margin: 14px 0 12px;
        overflow: visible;
        padding: 4px;
    }

    .reminder-tabs a {
        align-items: center;
        border: 0 !important;
        border-radius: 8px;
        display: flex;
        font-size: 12px;
        justify-content: center;
        line-height: 1.15;
        min-height: 38px;
        padding: 0 5px;
        text-align: center;
        white-space: normal;
    }

    .reminder-tabs a.active {
        background: #fff;
        box-shadow: 0 2px 6px rgba(26, 42, 70, .1);
        color: var(--brand);
    }

    .dashboard-queue-grid { gap: 12px; }

    .operations-dashboard > .followup-action-card .dashboard-work-queue {
        min-height: 0;
        padding: 14px 15px;
    }

    .operations-dashboard > .followup-action-card .dashboard-work-queue h2 {
        font-size: 18px;
        line-height: 1.2;
    }

    .operations-dashboard > .followup-action-card .dashboard-work-queue .metric {
        margin: 10px 0 0 !important;
        min-height: 60px;
        padding: 8px 12px;
    }

    .operations-dashboard > .followup-action-card .dashboard-work-queue .metric strong { font-size: 28px; }
    .operations-dashboard > .followup-action-card .dashboard-work-queue .metric small { font-size: 12px; }
}

/* CRM queues: three clear choices on a phone, without horizontal clipping. */
@media (max-width: 700px) {
    .crm-page .tractor-queue-tabs {
        background: #f3f5fb;
        border: 1px solid #dfe5f0;
        border-radius: 12px;
        display: grid;
        gap: 4px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 14px 0 16px;
        overflow: visible;
        padding: 4px;
    }

    .crm-page .tractor-queue-tabs a {
        align-items: center;
        border: 0 !important;
        border-radius: 8px;
        display: flex;
        flex: 1 1 0;
        font-size: 11px;
        justify-content: center;
        line-height: 1.15;
        min-height: 42px;
        min-width: 0;
        padding: 0 4px;
        text-align: center;
        white-space: normal;
    }

    .crm-page .tractor-queue-tabs a.active {
        background: #fff;
        box-shadow: 0 2px 6px rgba(26, 42, 70, .1);
        color: var(--brand);
    }
}
/* Keep the per-customer reminder with the identity it belongs to. */
.customer-identity-card__actions { display: flex; margin-left: auto; }
.customer-identity-card__actions .quick-urgent-reminder { align-items: center; background: #fff5e8; border-color: #f4b05a; color: #9a4a00; display: inline-flex; gap: 7px; justify-content: center; min-height: 40px; white-space: nowrap; }
.customer-identity-card__actions .quick-urgent-reminder:hover { background: #ffe8c9; border-color: #e88a24; color: #793800; text-decoration: none; }
.customer-identity-card__actions .quick-urgent-reminder span { font-size: 16px; line-height: 1; }

/* JANVIXO calendar: the native Android/PWA picker stays open on some devices,
   so every selected date closes this lightweight in-page calendar immediately. */
.janvixo-date-picker { position: relative; width: 100%; }
.janvixo-date-picker > input[type="hidden"] { display: none; }
.janvixo-date-picker__control {
    align-items: center; background: #fff; border: 1px solid #d7e1ee; border-radius: 12px; color: #17233d; cursor: pointer; display: flex; font: inherit; font-weight: 700; gap: 10px; justify-content: space-between; min-height: 52px; padding: 0 16px; text-align: left; width: 100%;
}
.janvixo-date-picker__control:hover, .janvixo-date-picker.is-open .janvixo-date-picker__control { border-color: #20b88a; box-shadow: 0 0 0 3px rgba(32, 184, 138, .12); }
.janvixo-date-picker__icon { align-items: center; color: #087f76; display: inline-flex; height: 21px; justify-content: center; line-height: 1; width: 21px; }
.janvixo-date-picker__icon svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 20px; }
.janvixo-date-picker__calendar { background: #fff; border: 1px solid #d7e1ee; border-radius: 14px; box-shadow: 0 18px 35px rgba(23, 35, 61, .18); left: 0; padding: 12px; position: absolute; top: calc(100% + 7px); width: min(320px, 100%); z-index: 80; }
.janvixo-date-picker__heading { align-items: center; display: grid; grid-template-columns: 34px 1fr 34px; margin-bottom: 10px; text-align: center; }
.janvixo-date-picker__heading button { background: #edf9f6; border: 0; border-radius: 8px; color: #087f76; cursor: pointer; font-size: 24px; height: 32px; line-height: 1; }
.janvixo-date-picker__weekdays, .janvixo-date-picker__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.janvixo-date-picker__weekdays { color: #7b879d; font-size: 11px; font-weight: 800; margin-bottom: 4px; text-align: center; }
.janvixo-date-picker__days button { background: transparent; border: 0; border-radius: 8px; color: #26344e; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; height: 34px; }
.janvixo-date-picker__days button:hover { background: #edf9f6; color: #087f76; }
.janvixo-date-picker__days button.is-selected { background: #088f82; color: #fff; }
.janvixo-date-picker__days button:disabled { color: #c5cbd7; cursor: not-allowed; }
.janvixo-date-picker--datetime { align-items: stretch; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) 180px; }
.janvixo-date-picker--datetime > input[type="hidden"] { grid-column: 1 / -1; }
.janvixo-date-picker__time { align-items: center; background: #fff; border: 1px solid #d7e1ee; border-radius: 12px; color: #17233d; display: grid; font: inherit; font-weight: 800; gap: 1px; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) minmax(0,1.25fr); min-height: 52px; overflow: hidden; padding: 4px; width: 100%; }
.janvixo-date-picker__time select { appearance: none; background: transparent; border: 0; color: #17233d; font: inherit; font-weight: 800; min-width: 0; padding: 9px 2px; text-align: center; width: 100%; }
.janvixo-date-picker__time select:focus { background: #edf9f6; border-radius: 8px; outline: 2px solid #20b88a; outline-offset: -2px; }
.janvixo-clock-button { background: transparent; border: 0; border-top: 1px solid #e3e9f1; border-radius: 0; color: #087f76; font-size: 12px; grid-column: 1 / -1; margin: 0; min-height: 34px; padding: 7px 4px 3px; width: 100%; }
.janvixo-clock-panel { background: #f7f8f1; border: 1px solid #d5dccf; border-radius: 22px; box-shadow: 0 24px 55px rgba(23,35,61,.28); left: 50%; max-width: calc(100vw - 28px); padding: 18px; position: fixed; top: 50%; transform: translate(-50%,-50%); width: 310px; z-index: 2400; }
.janvixo-clock-panel__heading { color: #536071; display: block; font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.janvixo-clock-panel__value { color: #17233d; display: block; font-size: 31px; letter-spacing: .04em; margin-bottom: 14px; text-align: center; }
.janvixo-clock-face { background: #eef0e7; border-radius: 50%; height: 238px; margin: 0 auto 16px; position: relative; width: 238px; }
.janvixo-clock-face button { align-items: center; background: transparent; border: 0; border-radius: 50%; color: #26344e; display: flex; font-size: 14px; height: 38px; justify-content: center; left: calc(50% + 88px * sin(calc(var(--clock-index) * 30deg)) - 19px); margin: 0; padding: 0; position: absolute; top: calc(50% - 88px * cos(calc(var(--clock-index) * 30deg)) - 19px); width: 38px; }
.janvixo-clock-face button.is-selected { background: #16823f; color: #fff; }
.janvixo-clock-face::after { background: #16823f; border-radius: 50%; content: ''; height: 8px; left: calc(50% - 4px); position: absolute; top: calc(50% - 4px); width: 8px; }
.janvixo-clock-panel__actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.janvixo-clock-panel__actions button { margin: 0; min-height: 44px; width: 100%; }
@media (max-width: 640px) {
    .janvixo-date-picker__calendar { width: 100%; }
    .janvixo-date-picker--datetime { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .customer-identity-card--page,
    .customer-identity-card--drawer { flex-wrap: wrap; }
    .customer-identity-card__actions { flex: 0 0 100%; margin-left: 0; }
    .customer-identity-card__actions .quick-urgent-reminder { justify-content: center; width: 100%; }

    /* CRM quick actions should feel like a compact mobile toolbar, not three forms. */
    .crm-quick-drawer .customer-identity-card__actions.insurance-detail-contact-actions {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }
    .crm-quick-drawer .customer-identity-card__actions.insurance-detail-contact-actions .action-link,
    .crm-quick-drawer .customer-identity-card__actions.insurance-detail-contact-actions .quick-urgent-reminder {
        border-radius: 10px;
        font-size: 11px;
        gap: 4px;
        grid-column: auto;
        min-height: 38px;
        padding: 0 5px;
        width: auto;
    }
    .crm-quick-drawer .insurance-contact-icon,
    .crm-quick-drawer .insurance-contact-icon svg {
        flex-basis: 16px;
        height: 16px;
        width: 16px;
    }
}
.safe-payment-disclosure { padding: 0; }
.safe-payment-disclosure > summary { color: var(--brand); cursor: pointer; font-size: 15px; font-weight: 850; list-style: none; padding: 20px 22px; }
.safe-payment-disclosure > summary::-webkit-details-marker { display: none; }
.safe-payment-disclosure > summary::after { content: '+'; float: right; font-size: 22px; line-height: 1; }
.safe-payment-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.safe-payment-disclosure[open] > summary::after { content: '−'; }
.safe-payment-disclosure__body { padding: 20px 22px 22px; }
.delivery-status-grid.is-cancelling { align-items: start; }
.delivery-status-grid.is-cancelling select { min-height: 46px; }
.delivery-status-grid .booking-cancel-reason textarea { min-height: 78px; }
.delivery-payment-section { display: grid; gap: 14px; }
.delivery-invoice-fields { background: #f8fbfa; border: 1px solid #d7eae5; border-radius: 12px; display: grid; gap: 14px; padding: 16px; }
.daily-update-card .delivery-invoice-fields textarea { min-height: 72px; }
@media (max-width: 700px) {
    .delivery-status-grid .booking-cancel-reason textarea { min-height: 72px; }
    .delivery-invoice-fields { padding: 13px; }
}
.payment-followup-actions > .safe-payment-disclosure { border: 1px solid #0d8a82; border-radius: 10px; display: block; margin: 0; min-width: 0; padding: 0; }
.payment-followup-actions > .safe-payment-disclosure > summary { align-items: center; color: #fff; display: flex; justify-content: center; min-height: 42px; padding: 0 14px; }
.payment-followup-actions > .safe-payment-disclosure > summary::after { margin-left: 8px; }
.payment-followup-actions > .safe-payment-disclosure[open] { background: #fff; color: var(--ink); grid-column: 1 / -1; text-align: left; }
.payment-followup-actions > .safe-payment-disclosure[open] > summary { background: #108f86; color: #fff; }
.collection-primary-actions { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin: 0 0 14px; max-width: 980px; padding: 14px 16px; }
.collection-primary-actions > div:first-child { display: grid; gap: 3px; }.collection-primary-actions > div:first-child strong { color: #35465c; font-size: 12px; }
.collection-primary-actions .payment-followup-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; margin: 0; }
.collection-primary-actions .collection-pdf-action,.collection-primary-actions .payment-followup-actions__payment { border-radius: 999px; min-height: 40px; width: auto; }
.collection-primary-actions .collection-pdf-action { background: #f7f9fc; border-color: #ccd8e4; color: #40516a; font-size: 12px; font-weight: 850; gap: 8px; padding: 0 15px; }
.collection-primary-actions .payment-followup-actions__payment { background: #0b9288; border-color: #0b9288; box-shadow: 0 4px 12px rgba(11,146,136,.16); }
.collection-primary-actions .payment-followup-actions__payment > summary { border-radius: 999px; font-size: 12px; min-height: 40px; padding: 0 16px; }
.collection-payment-icon { align-items: center; background: rgba(255,255,255,.2); border-radius: 50%; display: inline-flex; font-size: 14px; font-weight: 900; height: 25px; justify-content: center; margin-right: 8px; width: 25px; }
.collection-primary-actions .payment-followup-actions__payment[open] { border-radius: 14px; flex: 1 0 100%; width: min(100%,520px); }
.collection-primary-actions .payment-followup-actions__payment[open] > summary { border-radius: 13px 13px 0 0; }
.collection-action-icon { align-items: center; background: #e8eef5; border-radius: 50%; display: inline-flex; height: 25px; justify-content: center; width: 25px; }.collection-action-icon svg { fill: none; height: 15px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 15px; }
@media (max-width:620px) { .collection-primary-actions { align-items: stretch; flex-direction: column; }.collection-primary-actions .payment-followup-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }.collection-primary-actions .collection-pdf-action,.collection-primary-actions .payment-followup-actions__payment { grid-column: auto; width: 100%; }.collection-primary-actions .collection-pdf-action { padding: 0 10px; }.collection-primary-actions .payment-followup-actions__payment > summary { padding: 0 10px; }.collection-primary-actions .payment-followup-actions__payment[open] { grid-column: 1 / -1; } }
.trash-protection-status { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }

/* Digital showroom owner console. Public catalogue styling stays isolated. */
.showroom-admin-page { display: grid; gap: 22px; }
.showroom-admin-page > [id],.showroom-admin-page .showroom-admin-columns[id] { scroll-margin-top: 92px; }
.showroom-admin-page .page-heading .back-link { display: block; margin-bottom: 9px; width: max-content; }
.showroom-admin-nav { align-items: center; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); display: flex; gap: 6px; overflow-x: auto; padding: 7px; position: sticky; scrollbar-width: none; top: 10px; z-index: 8; }
.showroom-admin-nav::-webkit-scrollbar { display: none; }
.showroom-admin-nav a { border-radius: 9px; color: #526078; flex: 0 0 auto; font-size: 12px; font-weight: 800; padding: 9px 12px; text-decoration: none; }
.showroom-admin-nav a:hover,.showroom-admin-nav a:focus-visible { background: #e9f7f3; color: #087f78; }
.showroom-admin-summary { display: grid; gap: 14px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.showroom-admin-summary article { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); display: grid; gap: 7px; padding: 18px; }
.showroom-admin-summary span { color: var(--muted); font-size: 13px; font-weight: 750; }
.showroom-admin-summary strong { color: var(--ink); font-size: 24px; }
.showroom-admin-card { display: grid; gap: 20px; padding: 24px; }
.showroom-admin-card h2 { margin: 0; }
.showroom-profile-form,.showroom-model-create,.showroom-model-edit { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.showroom-profile-form label,.showroom-model-create label,.showroom-model-edit label,.showroom-photo-upload label { color: var(--ink); display: grid; font-weight: 750; gap: 7px; }
.showroom-offer-preview { aspect-ratio: 16/7; border-radius: 14px; max-width: 520px; object-fit: cover; width: 100%; }
.showroom-product-selection { border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 8px; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; padding: 14px; }
.showroom-product-selection legend { color: var(--ink); font-size: 13px; font-weight: 850; padding: 0 6px; }
.showroom-product-selection label { align-items: center; background: #f8fafb; border: 1px solid #e5ebef; border-radius: 10px; cursor: pointer; display: flex; font-size: 13px; gap: 9px; min-height: 44px; padding: 9px 11px; }
.showroom-product-selection input { flex: 0 0 auto; height: 18px; margin: 0; width: 18px; }
.showroom-form-wide { grid-column: 1/-1; }
.showroom-form-actions { align-items: center; display: flex; gap: 10px; justify-content: flex-end; }
.showroom-admin-columns { display: grid; gap: 20px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.showroom-inline-create { align-items: end; display: grid; gap: 10px; grid-template-columns: 1fr auto; }
.showroom-admin-list { display: grid; gap: 10px; }
.showroom-admin-list form { align-items: center; display: grid; gap: 8px; grid-template-columns: minmax(130px,1fr) 82px 110px auto; }
.showroom-model-admin-grid { display: grid; gap: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.showroom-model-admin-grid > a { background: #fff; border: 1px solid var(--line); border-radius: 14px; color: inherit; display: grid; overflow: hidden; text-decoration: none; }
.showroom-model-admin-grid img,.showroom-photo-placeholder { aspect-ratio: 16/10; background: #edf4f3; display: grid; object-fit: cover; place-items: center; width: 100%; }
.showroom-model-admin-grid a > div { display: grid; gap: 4px; padding: 14px; }
.showroom-model-admin-grid span,.showroom-model-admin-grid small { color: var(--muted); }
.showroom-photo-upload { align-items: end; display: grid; gap: 12px; grid-template-columns: 1fr auto; }
.showroom-photo-admin-grid { display: grid; gap: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.showroom-photo-admin-grid article { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.showroom-photo-admin-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.showroom-photo-admin-grid article > div { align-items: center; display: flex; gap: 8px; justify-content: space-between; padding: 10px; }
.showroom-qr-grid { display: grid; gap: 14px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.showroom-qr-grid article { align-items: center; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 12px; grid-template-columns: 92px minmax(0,1fr); padding: 12px; }
.showroom-qr-grid img { background: #fff; height: 92px; object-fit: contain; width: 92px; }
.showroom-qr-grid article > div { display: grid; gap: 5px; min-width: 0; }
.showroom-qr-grid small { color: var(--muted); overflow-wrap: anywhere; }
.showroom-qr-grid .action-link { min-height: 36px; padding: 8px 10px; }
.showroom-qr-actions { display: grid; gap: 6px; grid-template-columns: 1fr; margin-top: 3px; }
.showroom-qr-actions .action-link { font-size: .78rem; min-width: 0; width: 100%; }
@media (max-width: 900px) {
    .showroom-admin-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .showroom-admin-columns { grid-template-columns: 1fr; }
    .showroom-model-admin-grid,.showroom-photo-admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .showroom-qr-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .showroom-qr-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .showroom-admin-page { gap: 16px; }
    .showroom-admin-page .page-heading .back-link { margin-bottom: 8px; }
    .showroom-admin-nav { border-left: 0; border-radius: 0; border-right: 0; margin-left: -14px; margin-right: -14px; padding: 7px 14px; top: 72px; }
    .showroom-admin-nav a { padding: 8px 10px; }
    .showroom-admin-card { padding: 18px; }
    .showroom-profile-form,.showroom-model-create,.showroom-model-edit { grid-template-columns: 1fr; }
    .showroom-form-wide { grid-column: auto; }
    .showroom-form-actions { align-items: stretch; flex-direction: column; }
    .showroom-admin-list form { grid-template-columns: 1fr 76px; }
    .showroom-admin-list form select,.showroom-admin-list form button { width: 100%; }
    .showroom-model-admin-grid,.showroom-photo-admin-grid { grid-template-columns: 1fr; }
    .showroom-qr-grid { grid-template-columns: 1fr; }
    .showroom-photo-upload { grid-template-columns: 1fr; }
    .showroom-product-selection { grid-template-columns: 1fr; padding: 11px; }
    .showroom-admin-summary { gap: 10px; }
    .showroom-admin-summary article { padding: 15px; }
}

@media (min-width: 701px) {
    .crm-page { margin-top: -24px; }
    .crm-page .tractor-queue-tabs { margin: 0 0 14px; }
    .crm-page .crm-directory-card { padding: 20px 24px; }
    .crm-page .crm-directory-heading { align-items: center; margin-bottom: 14px; }
    .crm-page .crm-directory-heading h2 { margin: 0; }
    .crm-page .crm-simple-search { margin: 0 0 14px; padding: 9px; }
    .crm-page.crm-payment-queue .crm-directory-card > .crm-filter-form {
        margin: 0 0 14px;
    }
    .crm-page.crm-payment-queue .crm-payment-heading {
        margin-bottom: 12px;
    }
    .crm-page.crm-payment-queue .crm-payment-heading h2 {
        margin: 0;
    }
    .crm-page .crm-table th { padding-bottom: 8px; }
    .crm-page .crm-table td { padding-bottom: 12px; padding-top: 12px; }
}

/* Compact CRM queues on phones without changing queue behaviour. */
@media (max-width: 700px) {
    .crm-page {
        margin-top: -24px;
    }
    .crm-page .tractor-queue-tabs {
        margin-bottom: 10px;
    }
    .crm-page .crm-directory-card {
        padding: 13px;
    }
    .crm-page.crm-payment-queue .crm-payment-heading {
        margin-bottom: 7px;
    }
    .crm-page.crm-payment-queue .crm-payment-heading h2 {
        font-size: 25px;
        line-height: 1.08;
    }
    .crm-page.crm-payment-queue .crm-filter-form > label {
        font-size: 12px;
        gap: 5px;
    }
    .crm-page .crm-directory-card .crm-filter-form,
    .crm-page .crm-simple-search {
        margin-bottom: 10px;
    }
    .crm-page .crm-table tbody {
        gap: 7px;
    }
    .crm-page .crm-table tbody tr {
        padding: 9px 10px;
        row-gap: 6px;
    }
    .crm-page .tractor-queue-tabs {
        gap: 2px;
        margin: 12px 0 14px;
        padding: 3px;
    }
    .crm-page .tractor-queue-tabs a {
        font-size: 10px;
        letter-spacing: -.01em;
        min-height: 38px;
        padding: 7px 4px;
        white-space: nowrap;
    }
    .crm-page .crm-directory-card {
        border-radius: 16px;
        padding: 16px;
    }
    .crm-page .crm-directory-heading {
        align-items: stretch;
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 14px;
        width: 100%;
    }
    .crm-page .crm-directory-heading h2 {
        font-size: 27px;
        line-height: 1.08;
    }
    .crm-page.crm-operations-queue .crm-directory-heading .muted {
        display: none;
    }
    .crm-page.crm-operations-queue .crm-directory-heading {
        margin-bottom: 8px;
    }
    .crm-page.crm-operations-queue .crm-directory-heading h2 {
        margin: 0;
    }
    .crm-page .crm-directory-heading .quick-links,
    .crm-page .crm-directory-heading .quick-links button {
        display: block;
        max-width: none;
        width: 100% !important;
    }
    .crm-page .crm-directory-heading .quick-links button {
        min-height: 44px;
    }
    .crm-page .crm-directory-heading > .crm-add-enquiry-action {
        align-self: stretch;
        display: grid !important;
        flex: none !important;
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-self: stretch;
        margin: 0;
        max-width: none;
        min-width: 0;
        inline-size: 100% !important;
    }
    .crm-page .crm-directory-heading > .crm-add-enquiry-action > button {
        box-sizing: border-box;
        display: flex !important;
        inline-size: 100% !important;
        justify-content: center;
        max-inline-size: none !important;
        min-inline-size: 100% !important;
    }
    .crm-page .crm-simple-search {
        background: transparent;
        border: 0;
        border-radius: 0;
        gap: 9px;
        margin: 0 0 14px;
        padding: 0;
    }
    .crm-page .crm-simple-search input {
        min-height: 44px;
    }
    .crm-page .crm-simple-search .filter-actions {
        display: grid;
        gap: 9px;
        grid-template-columns: 1fr 1fr;
    }
    .crm-page .crm-simple-search .filter-actions > button,
    .crm-page .crm-simple-search .filter-actions > a {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-height: 42px;
        width: 100%;
    }
    .crm-page .crm-simple-search .filter-actions > a {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 10px;
        color: #475467;
        text-decoration: none;
    }
    .crm-page .crm-table tbody {
        gap: 10px;
    }
    .crm-page .crm-table tbody tr {
        border-radius: 14px;
        column-gap: 10px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 11px 12px;
        row-gap: 8px;
    }
    .crm-page .crm-table td {
        min-width: 0;
    }
    .crm-page .crm-table td:first-child {
        align-self: center;
        grid-column: 1 / 3;
        grid-row: 1;
        padding-bottom: 0;
    }
    .crm-page .crm-table td:first-child strong {
        font-size: 15px;
        line-height: 1.25;
    }
    .crm-page .crm-table td:first-child span:not(.status) {
        font-size: 11px;
        margin-top: 1px;
    }
    .crm-page .crm-table td:nth-child(2),
    .crm-page .crm-table td:nth-child(3),
    .crm-page .crm-table td:nth-child(4) {
        grid-row: 2;
    }
    .crm-page .crm-table td:nth-child(2) { grid-column: 1; }
    .crm-page .crm-table td:nth-child(3) { grid-column: 2; }
    .crm-page .crm-table td:nth-child(4) { grid-column: 3; }
    .crm-page .crm-table td:not(:first-child):not(:last-child)::before {
        font-size: 9px;
        letter-spacing: .045em;
        margin-bottom: 2px;
    }
    .crm-page:not(.crm-payment-queue) .crm-table td:nth-child(3)::before {
        content: 'Assigned to';
    }
    .crm-page.crm-payment-queue .crm-table td:nth-child(4)::before {
        content: 'Assigned to';
    }
    .crm-page .crm-table .status-pill {
        display: inline-flex;
        min-width: 0;
        padding: 6px 10px;
        width: auto;
    }
    .crm-page .crm-table .status {
        box-sizing: border-box;
        font-size: 11px;
        max-width: 100%;
        overflow: hidden;
        padding: 5px 8px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .crm-page .crm-table td:last-child .action-link,
    .crm-page .crm-table td:last-child .btn {
        min-height: 36px;
        padding: 7px 10px;
    }
    .crm-page .crm-table td:last-child {
        align-self: center;
        grid-column: 3;
        grid-row: 1;
    }
    .crm-page.crm-payment-queue .crm-table td:nth-child(3) span {
        display: none;
    }
    /* Final compact spacing shared by all three CRM queues. */
    .crm-page .tractor-queue-tabs { margin-bottom: 10px; }
    .crm-page .crm-directory-card { padding: 13px; }
    .crm-page .crm-directory-card .crm-filter-form,
    .crm-page .crm-simple-search { margin-bottom: 10px; }
    .crm-page .crm-table tbody { gap: 7px; }
    .crm-page .crm-table tbody tr { padding: 9px 10px; row-gap: 6px; }
}

@media (max-width:620px) {
    .crm-detail-page .page-heading {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    .quick-customer-context {
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px 12px;
    }
    .quick-customer-context div { gap: 2px; }
    .quick-customer-context strong {
        font-size: 13px;
        line-height: 1.25;
    }
    .customer-operation-context { margin-bottom: 12px; }
    .customer-file-lower-grid { gap: 10px; }
    .customer-finance-card,
    .customer-timeline-card { padding: 13px; }
    .customer-finance-card .customer-file-card-head,
    .customer-timeline-card .customer-file-card-head { margin-bottom: 8px; }
    .customer-finance-card .customer-file-card-head h2,
    .customer-timeline-card .customer-file-card-head h2 { font-size: 18px; }
    .customer-finance-metrics {
        gap: 6px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 8px 0 10px;
    }
    .customer-finance-metrics > div {
        border-radius: 9px;
        min-width: 0;
        padding: 8px 6px;
    }
    .customer-finance-metrics small { font-size: 8px; }
    .customer-finance-metrics strong { font-size: 12px; margin-top: 3px; }
    .customer-finance-outstanding span { font-size: 8px; line-height: 1.25; }
    .customer-finance-list,
    .customer-timeline-list { margin-top: 6px; }
    #enquiries.customer-file-card,
    #profile.customer-file-card { padding: 13px; }
    #enquiries .customer-file-card-head { margin-bottom: 4px; }
    #enquiries .customer-enquiry-file-list article {
        gap: 8px;
        padding: 11px 0;
    }
    #enquiries .customer-enquiry-file-main { gap: 8px; }
    #enquiries .customer-enquiry-icon { height: 30px; width: 30px; }
    #enquiries .customer-enquiry-file-next small { font-size: 9px; }
    #enquiries .customer-enquiry-file-list .secondary-button { min-height: 38px; }
    #profile.customer-file-info dl { margin-top: 8px; }
}

/* Product-led feature page visuals. */
.feature-product-overview {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 22px 55px rgba(16,37,64,.12);
    margin: 28px 0 24px;
    overflow: hidden;
    padding: 12px;
}
.feature-product-overview img {
    border-radius: 18px;
    display: block;
    height: auto;
    width: 100%;
}
.feature-product-overview figcaption {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 8px 4px;
    text-align: center;
}
.feature-ui-demo {
    background: #f7f9fd;
    border: 1px solid #e1e7f0;
    border-radius: 18px;
    margin-top: 20px;
    overflow: hidden;
    padding: 16px;
}
.feature-ui-demo * { box-sizing: border-box; }
.demo-title { align-items: center; display: flex; font-weight: 850; justify-content: space-between; margin-bottom: 12px; }
.demo-title b { background: #daf5ec; border-radius: 999px; color: #0b7c6f; font-size: 11px; padding: 6px 9px; }
.demo-fields { display: grid; gap: 8px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.demo-fields i {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    color: #8792a7;
    font-size: 12px;
    font-style: normal;
    padding: 11px;
}
.demo-action { background: var(--teal); border-radius: 10px; color: #fff; font-size: 12px; font-weight: 850; margin-top: 10px; padding: 10px; text-align: center; }
.demo-assistant {
    background: linear-gradient(145deg,#f0fffb,#f4f1ff);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
}
.demo-assistant-question {
    align-items: center;
    background: #fff;
    border: 1px solid #cde8e2;
    border-radius: 12px;
    color: var(--ink);
    display: flex;
    font-size: 12px;
    font-weight: 750;
    gap: 10px;
    justify-content: space-between;
    padding: 13px;
}
.demo-assistant-question i {
    align-items: center;
    background: var(--teal-soft);
    border-radius: 9px;
    display: flex;
    font-style: normal;
    height: 32px;
    justify-content: center;
    width: 32px;
}
.demo-assistant-question i svg {
    fill: none;
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 15px;
}
.demo-assistant-result {
    background: var(--brand-navy);
    border-radius: 12px;
    color: #fff;
    display: grid;
    gap: 4px;
    padding: 13px;
}
.demo-assistant-result small { color: #72e5d5; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.demo-assistant-result strong { font-size: 13px; }
.demo-assistant-result span { color: #bec7dc; font-size: 10px; line-height: 1.45; }
.demo-assistant-result b { color: #aaa1ff; font-size: 10px; margin-top: 5px; }
.demo-tabs { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 10px; }
.demo-tabs > * { color: var(--muted); font-size: 11px; padding: 8px; text-align: center; }
.demo-tabs b { background: #fff; border-radius: 9px; color: var(--purple); }
.demo-row { align-items: center; background: #fff; border: 1px solid #e2e7ef; border-radius: 12px; display: grid; gap: 10px; grid-template-columns: 34px 1fr auto; margin-top: 8px; padding: 10px; }
.demo-row i { align-items: center; background: #e2f7f2; border-radius: 9px; color: var(--teal); display: flex; font-size: 10px; font-style: normal; font-weight: 900; height: 34px; justify-content: center; }
.demo-row p { display: grid; gap: 2px; margin: 0; }
.demo-row strong { font-size: 12px; }
.demo-row small { color: var(--muted); font-size: 10px; }
.demo-row em { background: #edf0ff; border-radius: 8px; color: var(--purple); font-size: 10px; font-style: normal; font-weight: 850; padding: 7px 9px; }
.demo-pipeline { display: grid; gap: 7px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.demo-pipeline span { background: #fff; border: 1px solid #dde4ee; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 800; padding: 12px 7px; text-align: center; }
.demo-pipeline span.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.demo-payment { align-items: stretch; display: grid; gap: 9px; grid-template-columns: 1fr 1fr auto; }
.demo-payment > div { background: #fff; border: 1px solid #e1e7f0; border-radius: 12px; display: grid; gap: 3px; padding: 12px; }
.demo-payment small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.demo-payment strong { color: var(--ink); font-size: 18px; }
.demo-payment span { color: var(--muted); font-size: 10px; }
.demo-payment > b { align-items: center; background: var(--teal); border-radius: 12px; color: #fff; display: flex; font-size: 11px; padding: 12px; text-align: center; }
.demo-team { display: grid; gap: 8px; }
.demo-team > div { align-items: center; background: #fff; border: 1px solid #e1e7f0; border-radius: 12px; display: grid; gap: 10px; grid-template-columns: 38px 1fr auto; padding: 10px; }
.demo-team i { align-items: center; background: linear-gradient(135deg,var(--teal),var(--purple)); border-radius: 50%; color: #fff; display: flex; font-size: 10px; font-style: normal; font-weight: 900; height: 38px; justify-content: center; }
.demo-team p { display: grid; margin: 0; }
.demo-team p strong { font-size: 12px; }
.demo-team p small { color: var(--muted); font-size: 10px; }
.demo-team b { color: var(--teal); font-size: 10px; }
.demo-showroom { display: grid; gap: 9px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.demo-vehicle { background: #fff; border: 1px solid #e1e7f0; border-radius: 13px; display: grid; gap: 5px; padding: 12px; text-align: center; }
.demo-vehicle i { background: linear-gradient(145deg,#edf4fb,#e8e5ff); border-radius: 10px; font-size: 34px; font-style: normal; padding: 16px 4px; }
.demo-vehicle strong { font-size: 11px; }
.demo-vehicle small { color: var(--teal); font-size: 9px; font-weight: 800; }

@media (max-width:700px) {
    .feature-product-overview { border-radius: 18px; margin: 18px 0; padding: 6px; }
    .feature-product-overview figcaption { font-size: 11px; line-height: 1.45; }
    .feature-ui-demo { margin-top: 16px; padding: 11px; }
    .demo-payment { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .demo-assistant { grid-template-columns: 1fr; }
    .demo-payment > b { grid-column: 1 / -1; justify-content: center; }
    .demo-pipeline { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .demo-showroom { gap: 6px; }
    .demo-vehicle { padding: 7px; }
    .demo-vehicle i { font-size: 26px; padding: 12px 2px; }
}

/* Employee management: concise controls and directory, without onboarding copy. */
.members-page .members-heading { margin-bottom: 12px; }
.members-page .members-heading h1 { margin: 0; }
.members-page .members-summary {
    grid-template-columns: repeat(3, max-content);
    margin-bottom: 16px;
    padding: 12px 15px;
}
.members-page .members-section { margin-bottom: 18px; }
.members-page .members-section-heading { margin-bottom: 8px; }
.members-page .members-section-heading h2 { margin: 0; }
.members-page .members-create-card,
.members-page .members-existing-card,
.members-page .members-directory-card { padding: 16px; }
.members-page .members-onboarding-grid h3 { margin: 0 0 10px; }

@media (min-width:621px) {
    .content-wrap > .members-page { margin-top: -30px; }
    .members-page .members-heading { padding-bottom: 10px; }
}

@media (max-width:700px) {
    .members-page .members-heading { padding-bottom: 8px; }
    .members-page .members-heading h1 { font-size: 32px; }
    .members-page .members-summary {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 11px;
    }
    .members-page .members-summary > div:nth-of-type(3) { grid-column: auto; }
    .members-page .members-summary-icon { display: none; }
    .members-page .members-onboarding-grid { gap: 10px; }
    .members-page .members-create-card,
    .members-page .members-existing-card,
    .members-page .members-directory-card { padding: 13px; }
    .members-page .members-create-form { gap: 9px; }
    .members-page .members-directory-toolbar { gap: 8px; margin-bottom: 10px; }
    .members-page .members-row { padding: 10px 2px; }
}

@media (min-width:621px) {
    /* Detail screens should begin close to the desktop header, without the
       generic page breathing room used by the rest of the app. */
    .content-wrap > .crm-operations-detail,
    .content-wrap > .crm-collection-task {
        margin-top: -30px;
    }
    .crm-operations-detail .page-heading,
    .crm-collection-task .page-heading {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    .crm-operations-detail .customer-identity-card--page,
    .crm-collection-task .customer-identity-card--page {
        margin: 0 0 10px;
        padding: 12px 16px;
    }
    .crm-operations-detail .customer-identity-card--page .customer-identity-card__marker,
    .crm-collection-task .customer-identity-card--page .customer-identity-card__marker {
        border-radius: 14px;
        flex-basis: 44px;
        height: 44px;
    }
    .crm-operations-detail .customer-identity-card--page .customer-identity-card__content h1,
    .crm-collection-task .customer-identity-card--page .customer-identity-card__content h1 {
        font-size: 30px;
    }
    .crm-operations-detail .customer-operation-context {
        margin-bottom: 14px;
        padding: 10px 14px;
    }
    .crm-collection-task .payment-followup-summary {
        margin: 10px 0 14px;
        max-width: none;
    }
    .crm-collection-task .payment-followup-summary article { padding: 11px 12px; }
}

/* Reports keep the controls prominent without reading like a marketing page. */
.reports-page .page-heading { margin-bottom: 14px; }
.reports-page .report-tabs { margin: 0 0 14px; }
.reports-page .report-actions { margin-bottom: 12px; }
.reports-page .report-filter { max-width: none; }
.reports-page > .card { margin-bottom: 14px; }

@media (min-width:621px) {
    .content-wrap > .reports-page { margin-top: -30px; }
    .reports-page .page-heading {
        margin-bottom: 8px;
        padding-bottom: 10px;
    }
    .reports-page .page-heading h1 { margin-bottom: 0; }
    .reports-page .report-tabs { margin-bottom: 10px; }
}

@media (max-width:620px) {
    .reports-page .page-heading {
        margin-bottom: 10px;
        padding-bottom: 4px;
    }
    .reports-page .page-heading h1 {
        font-size: 32px;
        margin: 0;
    }
    .reports-page .report-tabs {
        gap: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
        margin-bottom: 10px;
    }
    .reports-page .report-tabs a {
        flex: 1;
        font-size: 12px;
        padding: 10px 5px;
        text-align: center;
    }
    .reports-page .report-actions {
        display: grid !important;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        margin-bottom: 10px;
    }
    .reports-page .report-actions > * {
        grid-column: auto !important;
        min-height: 42px;
        width: 100% !important;
    }
    .reports-page .report-actions > :only-child {
        grid-column: 1 / -1 !important;
    }
    .reports-page > .card {
        margin-bottom: 10px;
        padding: 13px;
    }
    .reports-page .report-filter {
        gap: 9px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .reports-page .report-filter label {
        font-size: 12px;
        min-width: 0;
    }
    .reports-page .report-filter label:nth-of-type(n+3),
    .reports-page .report-filter button {
        grid-column: 1 / -1;
    }
    .reports-page .report-filter input,
    .reports-page .report-filter select {
        font-size: 14px;
        min-height: 46px;
        padding: 0 11px;
    }
    .reports-page .report-filter button { min-height: 44px; }
    .reports-page .report-metrics { gap: 8px; }
    .reports-page .report-metric {
        min-height: 0;
        padding: 14px;
    }
    .reports-page .report-metric small { display: none; }
    .reports-page .report-insurance-summary .section-heading { margin-bottom: 8px; }
    .reports-page .report-insurance-summary .section-heading h2 {
        font-size: 20px;
        margin: 0;
    }
    .reports-page .report-insurance-summary .report-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Global workspace network feedback. Kept in the shared layout so every query,
   link and save action has the same production behaviour. */
.app-network-progress {
    background: rgba(15, 157, 145, .16);
    height: 3px;
    left: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity .15s ease;
    z-index: 5000;
}
.app-network-progress::after {
    animation: janvixo-progress 1.15s ease-in-out infinite;
    background: linear-gradient(90deg, var(--teal), var(--purple));
    content: '';
    height: 100%;
    left: -38%;
    position: absolute;
    width: 38%;
}
.app-network-progress.is-active { opacity: 1; }
@keyframes janvixo-progress { to { left: 100%; } }
.app-network-status {
    align-items: center;
    background: #fff;
    border: 1px solid #cde8e2;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(16, 30, 54, .18);
    display: grid;
    gap: 1px 10px;
    grid-template-columns: 26px auto;
    left: 50%;
    max-width: calc(100vw - 28px);
    opacity: 0;
    padding: 10px 16px 10px 11px;
    pointer-events: none;
    position: fixed;
    top: 14px;
    transform: translate(-50%, -16px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 4999;
}
.app-network-status.is-active { opacity: 1; transform: translate(-50%, 0); }
.app-network-status.is-slow { border-color: #f0c56b; }
.app-network-status strong { color: var(--ink); font-size: 13px; grid-column: 2; }
.app-network-status small { color: var(--muted); font-size: 10px; grid-column: 2; white-space: nowrap; }
.app-network-spinner {
    animation: janvixo-spin .75s linear infinite;
    border: 3px solid #d9f2ed;
    border-radius: 50%;
    border-top-color: var(--teal);
    grid-row: 1 / 3;
    height: 22px;
    width: 22px;
}
@keyframes janvixo-spin { to { transform: rotate(360deg); } }
.app-offline-banner {
    align-items: center;
    background: #7b2e20;
    bottom: 14px;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(45, 18, 13, .28);
    color: #fff;
    display: none;
    gap: 4px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    left: 50%;
    max-width: 540px;
    padding: 12px 13px 12px 16px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    z-index: 5001;
}
.app-offline-banner.is-active { display: grid; }
.app-offline-banner.is-request-failed { background: #8a3d18; }
.app-offline-banner.is-attention { animation: janvixo-offline-attention .35s ease 2; }
.app-offline-banner strong { font-size: 13px; }
.app-offline-banner span { color: #ffe7df; font-size: 11px; grid-column: 1; }
.app-offline-banner button {
    background: #fff;
    border: 0;
    border-radius: 9px;
    color: #762719;
    grid-column: 2;
    grid-row: 1 / 3;
    min-height: 38px;
    padding: 0 15px;
}
@keyframes janvixo-offline-attention { 50% { transform: translateX(-50%) scale(1.02); } }
button.is-submitting { cursor: wait; opacity: .72; }
@media (max-width: 620px) {
    .app-network-status { top: 9px; }
    .app-network-status small { max-width: 245px; overflow: hidden; text-overflow: ellipsis; }
    .app-offline-banner { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .app-network-progress::after,
    .app-network-spinner,
    .app-offline-banner.is-attention { animation-duration: 1.8s; }
}

/* Final mobile insurance cascade: intentionally below every shared queue rule. */
@media (max-width: 700px) {
    main.insurance-page .insurance-work-tabs {
        display: grid !important;
        gap: 2px !important;
        grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    }
    main.insurance-page .insurance-work-tabs a { min-width: 0 !important; width: 100% !important; }
    main.insurance-page .insurance-table tbody { display: grid !important; gap: 9px !important; }
    main.insurance-page .insurance-table tbody tr {
        display: grid !important;
        gap: 8px 12px !important;
        grid-template-columns: minmax(0,1fr) auto !important;
        padding: 13px 14px !important;
    }
    main.insurance-page .insurance-table tbody td {
        display: block !important;
        grid-column: auto !important;
        padding: 0 !important;
        width: auto !important;
    }
    main.insurance-page .insurance-table td[data-label="Customer"] { grid-column: 1 !important; grid-row: 1 !important; }
    main.insurance-page .insurance-table td[data-label="Policy"] { border-top: 1px solid #edf1f4 !important; grid-column: 1 / -1 !important; grid-row: 2 !important; padding-top: 9px !important; }
    main.insurance-page .insurance-table td[data-label="Next follow-up"] { grid-column: 1 !important; grid-row: 3 !important; }
    main.insurance-page .insurance-table td[data-label="Insurance owner"] { grid-column: 2 !important; grid-row: 3 !important; }
    main.insurance-page .insurance-table td[data-label=""] { align-self: center !important; grid-column: 2 !important; grid-row: 1 !important; padding: 0 !important; }
    main.insurance-page .insurance-table td[data-label=""] .action-link,
    main.insurance-page .insurance-table td[data-label=""] .secondary-button { width: auto !important; }
    main.insurance-page .insurance-due-badge { display: inline-flex !important; width: fit-content !important; }
    main.insurance-page .insurance-queue-search .filter-actions { display: grid; grid-template-columns: 1fr; }
    main.insurance-page .insurance-queue-search .filter-actions button,
    main.insurance-page .insurance-queue-search .filter-actions a { width: 100%; }
}

/* Public brand cascade: final authority after legacy marketing rules. */
.topbar .nav-cta,
.marketing-home .home-primary,
.marketing-page .home-primary {
    background: linear-gradient(135deg,var(--teal),var(--purple));
    box-shadow: 0 11px 24px rgba(37,71,132,.22);
}
.topbar .nav-cta:hover,
.marketing-home .home-primary:hover,
.marketing-page .home-primary:hover {
    background: linear-gradient(135deg,var(--teal-dark),#4937c8);
    color: #fff;
}
.marketing-home .marketing-eyebrow,
.marketing-page .marketing-eyebrow { color: var(--teal); }
.marketing-home .marketing-eyebrow i,
.marketing-page .marketing-eyebrow i { background: var(--purple); box-shadow: 0 0 0 5px var(--purple-soft); }
.marketing-home .home-hero h1 em {
    background: linear-gradient(100deg,var(--teal) 0%,var(--purple) 72%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.marketing-home .home-cta { background: linear-gradient(120deg,var(--teal-dark),var(--purple)); }
.marketing-home .home-cta .home-primary { background: #fff; box-shadow: none; color: #4335b8; }
.marketing-home .home-features .marketing-eyebrow { color: #72e5d5; }
.marketing-home .home-features .marketing-eyebrow i { background: #9b91ff; box-shadow: 0 0 0 5px #2e3148; }

/* Insurance mobile workspace uses the same simple hierarchy as Sales Leads. */
@media (max-width: 700px) {
    main.insurance-page { display: flex; flex-direction: column; gap: 0; margin-top: 0; }
    main.insurance-page > .page-heading { display: none; }
    main.insurance-page > .insurance-work-tabs:not(.tractor-queue-tabs) { grid-template-columns: repeat(2,minmax(0,1fr)) !important; margin: 0 0 14px; order: 1; }
    main.insurance-page > .crm-directory-card { background: #fff; border: 1px solid #dce5eb; border-radius: 16px; box-shadow: 0 8px 22px rgba(25,45,72,.05); order: 2; padding: 16px; }
    main.insurance-page .insurance-queue-heading { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: 14px; }
    main.insurance-page .insurance-queue-heading h2 { font-size: 28px; letter-spacing: -.04em; }
    main.insurance-page .insurance-queue-heading .muted { display: none; }
    main.insurance-page .insurance-queue-heading .insurance-utility-action { background: var(--teal); border-color: var(--teal); color: #fff; font-size: 14px; justify-content: center; min-height: 46px; width: 100%; }
    main.insurance-page .crm-directory-card > .tractor-queue-tabs { grid-template-columns: repeat(3,minmax(0,1fr)) !important; margin: 0 0 14px; }
    main.insurance-page form.insurance-queue-search { background: transparent; border: 0; display: grid; gap: 8px; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 0 12px; padding: 0; }
    main.insurance-page form.insurance-queue-search > label { grid-column: 1 / -1; }
    main.insurance-page form.insurance-queue-search .filter-actions { display: grid; gap: 8px; grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); }
    main.insurance-page form.insurance-queue-search .filter-actions > button,
    main.insurance-page form.insurance-queue-search .filter-actions > a { min-height: 44px; width: 100%; }
    main.insurance-page form.insurance-queue-search .filter-actions > a { align-items: center; border: 1px solid #dce5eb; border-radius: 11px; color: #44516a; display: flex; font-weight: 800; justify-content: center; }
}

/* Compact create action for the Insurance Leads daily queue. */
main.insurance-page > .insurance-context-action {
    align-self: flex-end;
    background: #effaf7;
    border: 1px solid #9edfd2;
    border-radius: 999px;
    box-shadow: 0 3px 9px rgba(11,143,135,.08);
    color: #08756f;
    font-size: 12px;
    font-weight: 850;
    gap: 7px;
    margin: 8px 2px 12px 0;
    min-height: 40px;
    padding: 4px 12px 4px 5px;
    width: auto;
}
main.insurance-page > .insurance-context-action:hover { background: #e3f7f2; border-color: #6bcaba; color: #075f5a; text-decoration: none; }
@media (max-width: 700px) {
    main.insurance-page > .insurance-context-action { order: 1; }
    main.insurance-page > .insurance-work-tabs:not(.tractor-queue-tabs) { order: 2; }
    main.insurance-leads-page > #add-lead { order: 3; }
    main.insurance-page > .crm-directory-card { order: 4; }
    main.insurance-page .insurance-add-icon { font-size: 17px; height: 28px; width: 28px; }
}

@media (max-width: 700px) {
    main.insurance-page { margin-top: -24px; }
}

/* Compact two-row renewal cards for fast mobile scanning. */
@media (max-width: 700px) {
    main.insurance-renewals-page .insurance-table tbody tr {
        gap: 6px 10px !important;
        padding: 11px 13px !important;
    }
    main.insurance-renewals-page .insurance-table td[data-label="Policy"] {
        border-top: 1px solid #edf1f4 !important;
        grid-column: 1 !important;
        grid-row: 2 !important;
        padding-top: 8px !important;
    }
    main.insurance-renewals-page .insurance-table td[data-label="Next follow-up"] {
        border-top: 1px solid #edf1f4;
        grid-column: 2 !important;
        grid-row: 2 !important;
        padding-top: 8px !important;
        text-align: right;
    }
    main.insurance-renewals-page .insurance-table td[data-label="Next follow-up"]::before { text-align: right; }
    main.insurance-renewals-page .insurance-table td[data-label="Next follow-up"] .insurance-due-badge { font-size: 10px; margin-top: 4px; padding: 3px 7px; }
    main.insurance-renewals-page .insurance-table td[data-label=""] .action-link { min-height: 38px; padding: 0 11px; }
}

.inventory-reorder-form { align-items: center; display: flex; gap: 7px; min-width: 154px; }
.inventory-reorder-form input { margin: 0; min-height: 38px; padding: 7px 9px; width: 88px; }
.inventory-reorder-form button { min-height: 38px; padding: 6px 10px; width: auto; }
.inventory-product-picker { border: 1px solid #dce5eb; border-radius: 13px; display: grid; gap: 11px; margin: 0; min-width: 0; padding: 13px 14px 14px; }
.inventory-product-picker legend { color: #334158; font-size: 13px; font-weight: 850; padding: 0 6px; }
.inventory-product-picker label { display: grid; gap: 6px; }
.inventory-product-picker small { color: #718096; font-size: 11px; }
.inventory-product-query-row { align-items: stretch; display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) auto; }
.inventory-product-query-row input { min-width: 0; }
.inventory-product-query-row button { white-space: nowrap; width: auto; }
.inventory-barcode-scanner { background: #101826; border-radius: 12px; display: grid; gap: 9px; overflow: hidden; padding: 10px; }
.inventory-barcode-scanner[hidden] { display: none; }
.inventory-barcode-scanner video { aspect-ratio: 16/9; background: #000; border-radius: 8px; object-fit: cover; width: 100%; }
.inventory-barcode-scanner div { align-items: center; color: #fff; display: flex; font-size: 12px; gap: 10px; justify-content: space-between; }
.inventory-barcode-scanner button { flex: 0 0 auto; min-height: 38px; width: auto; }
@media (max-width: 700px) {
    .inventory-reorder-form { justify-content: flex-end; margin-left: auto; }
    .inventory-product-picker { padding: 11px; }
    .inventory-product-query-row { grid-template-columns: 1fr; }
    .inventory-product-query-row button { width: 100%; }
    .inventory-barcode-scanner div { align-items: stretch; flex-direction: column; }
    .inventory-barcode-scanner button { width: 100%; }
}
.sales-order-create-page{max-width:1200px}.sales-order-create-page .page-heading{align-items:flex-end}.sales-order-create-page .inventory-stock-in-form{gap:0;overflow:visible;padding:0}.sales-order-create-page .inventory-stock-in-form>section{display:grid;gap:16px;padding:24px 28px}.sales-order-create-page .inventory-stock-in-form>section:first-child .product-form-grid{grid-template-columns:minmax(280px,1.5fr) minmax(180px,.75fr) minmax(180px,.75fr)}.sales-order-create-page .sales-order-customer-field{grid-column:auto}.sales-order-products{background:#fbfcfd;border-top:1px solid #e4eaef}.sales-order-section-heading,.sales-order-line-heading{align-items:center;display:flex;gap:12px;justify-content:space-between}.sales-order-section-heading h2{font-size:21px;margin:0}.sales-order-section-heading p{color:#748096;font-size:13px;margin:4px 0 0}.sales-order-section-heading .secondary-button{min-height:42px;padding:9px 16px}.sales-order-line{background:#fff;border:1px solid #dce5eb;border-radius:14px;box-shadow:0 4px 14px rgba(23,34,56,.035);display:grid;gap:14px;margin-top:14px;padding:15px 16px 17px}.sales-order-line-heading{border-bottom:1px solid #edf1f4;padding-bottom:10px}.sales-order-line-heading strong{color:#26344a;font-size:13px}.sales-order-remove{background:#fff4f2;border:1px solid #f0d0cc;border-radius:8px;color:#a63d36;font-size:11px;font-weight:800;min-height:32px;padding:5px 10px}.sales-order-line-grid{align-items:end;display:grid;gap:12px;grid-template-columns:minmax(250px,2.2fr) minmax(170px,1.25fr) minmax(100px,.65fr) minmax(125px,.8fr) minmax(125px,.85fr)}.sales-order-line-grid label{color:#526078;display:grid;font-size:12px;font-weight:850;gap:6px}.sales-order-line-grid input,.sales-order-line-grid select{background:#fff;border:1px solid #d7e1e8;border-radius:10px;min-height:44px;padding:9px 11px;width:100%}.sales-order-line-grid small,.sales-order-create-page label>small{color:#7b8798;font-size:11px;font-weight:600}.sales-order-line-grid .field-error,.sales-order-create-page .field-error,.sales-order-line-grid .is-low{color:#b33f37}.sales-order-line-total{background:#f3f8f7;border-radius:10px;display:grid;gap:3px;min-height:67px;padding:10px 12px;text-align:right}.sales-order-line-total strong{color:#087f78;font-size:18px}.sales-order-line-total span{color:#748096;font-size:11px}.sales-order-totals{align-items:center;background:#edf8f5;border:1px solid #cce9e1;border-radius:12px;display:flex;gap:24px;justify-content:flex-end;margin-top:16px;padding:14px 16px}.sales-order-totals span{color:#637086;font-size:12px}.sales-order-totals strong{color:#172238;margin-left:6px}.sales-order-grand-total{border-left:1px solid #b9ddd4;padding-left:24px}.sales-order-grand-total strong{color:#087f78;font-size:19px}.sales-order-note{display:grid;gap:7px;margin:22px 28px}.sales-order-note textarea{background:#fff;border:1px solid #d7e1e8;border-radius:10px;padding:11px 12px;resize:vertical;width:100%}.sales-order-create-page .inventory-stock-in-form>footer{background:#f8fafb;padding:16px 28px}
.commerce-search-field{position:relative;z-index:3}.commerce-search-field:focus-within{z-index:30}.commerce-search-results{background:#fff;border:1px solid #cbd8e2;border-radius:10px;box-shadow:0 14px 32px rgba(18,32,52,.18);left:0;max-height:min(280px,42vh);overflow-y:auto;overscroll-behavior:contain;padding:5px;position:absolute;right:0;top:calc(100% + 4px);z-index:50}.commerce-search-results[hidden]{display:none}.commerce-search-results button{background:#fff;border:0;border-radius:8px;color:#172238;display:block;font-size:13px;font-weight:700;line-height:1.35;min-height:44px;padding:10px 11px;text-align:left;width:100%}.commerce-search-results button:hover,.commerce-search-results button:focus,.commerce-search-results button.is-active{background:#eef8f5;color:#087f78}.commerce-search-empty{color:#748096;display:block;font-size:13px;padding:12px}
@media(max-width:700px){.commerce-search-field{scroll-margin-bottom:280px}.commerce-search-results{border-radius:12px;box-shadow:0 18px 42px rgba(18,32,52,.24);max-height:min(240px,32dvh);z-index:120}.commerce-search-results button{font-size:14px;min-height:48px;padding:12px}.smart-search-results{left:0;right:0}}
.inventory-stock-in-page.sales-order-create-page{max-width:none;min-width:0;width:100%}.sales-order-create-page form.inventory-stock-in-form{max-width:none;width:100%}
.purchase-order-line-grid{grid-template-columns:minmax(320px,2.4fr) minmax(120px,.7fr) minmax(150px,.9fr) minmax(150px,.9fr)}.purchase-order-empty{display:grid;gap:9px;max-width:620px}.purchase-order-empty h2,.purchase-order-empty p{margin:0}.purchase-order-empty p{color:#66758b}.purchase-order-empty .action-link{justify-self:start;margin-top:8px}@media(max-width:800px){.purchase-order-line-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.purchase-order-line-grid{grid-template-columns:1fr}}
@media(max-width:1050px){.sales-order-line-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.sales-order-product-field{grid-column:span 2}.sales-order-line-total{text-align:left}}
@media(max-width:800px){.sales-order-create-page .inventory-stock-in-form>section:first-child .product-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-order-customer-field{grid-column:1/-1}.sales-order-line-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-order-product-field{grid-column:1/-1}}
@media(max-width:600px){.sales-order-create-page .page-heading{align-items:flex-start}.sales-order-create-page .page-heading .secondary-button{display:none}.sales-order-create-page .inventory-stock-in-form>section{padding:18px 14px}.sales-order-create-page .inventory-stock-in-form>section:first-child .product-form-grid{grid-template-columns:1fr}.sales-order-customer-field{grid-column:auto}.sales-order-section-heading{align-items:stretch;flex-direction:column}.sales-order-section-heading button{justify-content:center;width:100%}.sales-order-line{padding:14px 12px}.sales-order-line-grid{grid-template-columns:1fr}.sales-order-product-field{grid-column:auto}.sales-order-line-total{text-align:left}.sales-order-totals{align-items:stretch;display:grid;gap:8px}.sales-order-totals span{display:flex;justify-content:space-between}.sales-order-grand-total{border-left:0;border-top:1px solid #b9ddd4;padding-left:0;padding-top:10px}.sales-order-note{margin:18px 14px}.sales-order-create-page .inventory-stock-in-form>footer{padding:14px}}

/* Final payment-toolbar colours: intentionally last so shared secondary-button
   rules cannot turn these high-frequency mobile actions white. */
.crm-collection-task .customer-identity-card__actions .insurance-call-action,
.crm-collection-task .customer-identity-card__actions .insurance-call-action:visited {
    background: linear-gradient(135deg, #2f6bd2, #2457b8);
    border-color: #2457b8;
    color: #fff;
}
.crm-collection-task .customer-identity-card__actions .insurance-whatsapp-action,
.crm-collection-task .customer-identity-card__actions .insurance-whatsapp-action:visited {
    background: linear-gradient(135deg, #20a75f, #16864b);
    border-color: #16864b;
    color: #fff;
}
.crm-collection-task .customer-identity-card__actions .insurance-call-action:hover,
.crm-collection-task .customer-identity-card__actions .insurance-call-action:focus-visible {
    background: #1c4698;
    border-color: #1c4698;
    color: #fff;
}
.crm-collection-task .customer-identity-card__actions .insurance-whatsapp-action:hover,
.crm-collection-task .customer-identity-card__actions .insurance-whatsapp-action:focus-visible {
    background: #106d3c;
    border-color: #106d3c;
    color: #fff;
}

/* The CRM hash route opens this drawer, not the collection-task page. */
.crm-quick-drawer .customer-identity-card__actions .insurance-call-action,
.crm-quick-drawer .customer-identity-card__actions .insurance-call-action:visited {
    background: linear-gradient(135deg, #2f6bd2, #2457b8);
    border-color: #2457b8;
    color: #fff;
}
.crm-quick-drawer .customer-identity-card__actions .insurance-whatsapp-action,
.crm-quick-drawer .customer-identity-card__actions .insurance-whatsapp-action:visited {
    background: linear-gradient(135deg, #20a75f, #16864b);
    border-color: #16864b;
    color: #fff;
}
.crm-quick-drawer .customer-identity-card__actions .insurance-call-action:hover,
.crm-quick-drawer .customer-identity-card__actions .insurance-call-action:focus-visible {
    background: #1c4698;
    border-color: #1c4698;
    color: #fff;
}
.crm-quick-drawer .customer-identity-card__actions .insurance-whatsapp-action:hover,
.crm-quick-drawer .customer-identity-card__actions .insurance-whatsapp-action:focus-visible {
    background: #106d3c;
    border-color: #106d3c;
    color: #fff;
}
.crm-quick-drawer > .latest-remark {
    margin: 10px 0;
    width: 100%;
}
.crm-collection-task > .collection-latest-remark {
    margin: 10px 0 14px;
    max-width: 980px;
    width: 100%;
}
.crm-customer-operations > .operations-latest-remark {
    margin: 10px 0 14px;
    width: 100%;
}

/* Payment summary uses restrained semantic tints: attention, schedule and total. */
.crm-collection-task .payment-followup-summary__amount {
    background: #fff8e8 !important;
    border-color: #f2d18b !important;
}
.crm-collection-task .payment-followup-summary__amount strong { color: #9a5b00; }
.crm-collection-task .payment-followup-summary .is-due {
    background: #fffaf0;
    border-color: #ecd9ae;
}
.crm-collection-task .payment-followup-summary .is-overdue {
    background: #fff1f0;
    border-color: #efbbb7;
}
.crm-collection-task .payment-followup-summary .is-overdue strong { color: #b42318; }
.crm-collection-task .payment-followup-summary .is-followup {
    background: #eef6ff;
    border-color: #bdd6f4;
}
.crm-collection-task .payment-followup-summary .is-followup strong { color: #2457a7; }
.crm-collection-task .payment-followup-summary .is-invoice-total {
    background: #f5f2ff;
    border-color: #d5caf5;
}
.crm-collection-task .payment-followup-summary .is-invoice-total strong { color: #5941a9; }

/* Safe no-code landing builder */
.landing-builder-page{display:grid;gap:20px;margin:0 auto;max-width:1500px;padding:28px 30px 70px}.landing-builder-status{align-items:center;background:#eaf8f4;border:1px solid #b8e5d8;border-radius:14px;display:flex;gap:12px;justify-content:space-between;padding:14px 18px}.landing-builder-status span{color:var(--muted);font-size:13px}.landing-builder-form{align-items:start;display:grid;gap:20px;grid-template-columns:minmax(280px,360px) minmax(0,1fr)}.landing-builder-sidebar{display:grid;gap:18px;position:sticky;top:96px}.landing-builder-sidebar>.card,.landing-builder-canvas{padding:22px}.landing-builder-sidebar h2,.landing-builder-canvas h2{font-size:20px;margin:0 0 16px}.landing-style-grid,.landing-thank-editor{display:grid;gap:14px;grid-template-columns:1fr 1fr}.landing-style-grid label,.landing-thank-editor label,.landing-section-fields label{display:grid;font-size:13px;font-weight:800;gap:7px}.landing-style-grid input[type=color]{height:46px;padding:4px}.landing-thank-editor{grid-template-columns:1fr}.landing-section-list{display:grid;gap:12px}.landing-section-editor{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.landing-section-editor.is-dragging{opacity:.5}.landing-section-editor>header{align-items:center;display:grid;gap:10px;grid-template-columns:38px minmax(0,1fr) auto auto;padding:14px}.landing-drag,.landing-expand{background:#f4f7f8;border:1px solid var(--line);border-radius:9px;color:var(--ink);cursor:pointer;min-height:38px;padding:0 12px}.landing-drag{cursor:grab;font-size:18px;padding:0}.landing-section-toggle{align-items:center;display:flex;font-size:12px;gap:7px}.landing-section-toggle input{height:18px;margin:0;width:18px}.landing-section-fields{border-top:1px solid var(--line);display:none;gap:14px;grid-template-columns:1fr 1fr;padding:16px}.landing-section-editor.is-open .landing-section-fields{display:grid}.landing-section-fields .is-wide{grid-column:1/-1}.landing-builder-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.landing-builder-actions button{min-width:150px}
@media(max-width:980px){.landing-builder-form{grid-template-columns:1fr}.landing-builder-sidebar{grid-template-columns:1fr 1fr;position:static}.landing-builder-status{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){.landing-builder-page{gap:14px;padding:16px 14px 80px}.landing-builder-sidebar{grid-template-columns:1fr}.landing-builder-sidebar>.card,.landing-builder-canvas{padding:17px}.landing-style-grid{grid-template-columns:1fr 1fr}.landing-section-editor>header{grid-template-columns:34px minmax(0,1fr) auto}.landing-section-toggle{grid-column:2}.landing-expand{grid-column:3;grid-row:1/3}.landing-section-fields{grid-template-columns:1fr;padding:14px}.landing-section-fields .is-wide{grid-column:auto}.landing-builder-actions{background:#fff;border-top:1px solid var(--line);bottom:0;margin:18px -17px -17px;padding:12px 17px;position:sticky;z-index:4}.landing-builder-actions button{flex:1;min-width:0}.landing-builder-status span{line-height:1.45}}
.landing-builder-page .back-link{display:block;margin-bottom:12px}.landing-builder-form{max-width:none;width:100%}
.landing-builder-banner{border:1px solid var(--line);border-radius:12px;grid-column:1/-1;height:170px;object-fit:cover;width:100%}.showroom-setup-guide{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.showroom-setup-guide article{background:#fff;border:1px solid var(--line);border-radius:15px;display:grid;gap:7px;padding:17px}.showroom-setup-guide span{color:#087f78;font-size:10px;font-weight:900;letter-spacing:.1em}.showroom-setup-guide strong{font-size:15px}.showroom-setup-guide p,.showroom-catalogue-heading p{color:var(--muted);font-size:13px;line-height:1.5;margin:0}.showroom-catalogue-heading{display:grid;gap:7px;padding:8px 2px 0}.showroom-catalogue-heading h2{margin:0}.showroom-admin-card .eyebrow,.showroom-catalogue-heading .eyebrow{margin-bottom:2px}
@media(max-width:800px){.showroom-setup-guide{grid-template-columns:1fr}.showroom-setup-guide article{padding:15px}.landing-builder-banner{height:130px}}
.showroom-admin-card>.showroom-profile-form{max-width:none;width:100%}.showroom-look-settings{border:1px solid #cfe1df;border-radius:15px;margin:6px 0 0;padding:18px}.showroom-look-settings legend{font-size:16px;font-weight:900;padding:0 8px}.showroom-look-settings legend span{color:#087f78;font-size:10px;letter-spacing:.1em;margin-right:8px}.showroom-look-settings>p{color:var(--muted);font-size:13px;line-height:1.5;margin:0 0 16px}.showroom-look-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.showroom-section-switches{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px}.showroom-section-switches>label{align-items:flex-start;background:#f7fafb;border:1px solid var(--line);border-radius:12px;display:flex;gap:11px;padding:13px}.showroom-section-switches input{flex:0 0 auto;height:18px;margin-top:2px;width:18px}.showroom-section-switches span{display:grid;gap:3px}.showroom-section-switches small{color:var(--muted);font-size:12px;font-weight:500;line-height:1.4}
@media(max-width:800px){.showroom-look-settings{padding:15px}.showroom-look-grid,.showroom-section-switches{grid-template-columns:1fr}}
.showroom-colour-choice>span{align-items:center;display:flex;font-size:12px;gap:8px}.showroom-colour-choice>span input{height:17px;margin:0;width:17px}.showroom-colour-choice>input[type=color]{padding:5px}
.showroom-tool-panel{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow-soft);scroll-margin-top:95px}.showroom-tool-panel>summary{align-items:center;cursor:pointer;display:grid;gap:14px;grid-template-columns:110px minmax(0,1fr) auto;list-style:none;min-height:82px;padding:16px 20px}.showroom-tool-panel>summary::-webkit-details-marker{display:none}.showroom-tool-panel>summary>span{color:#087f78;font-size:10px;font-weight:900;letter-spacing:.1em}.showroom-tool-panel>summary>div{display:grid;gap:4px}.showroom-tool-panel>summary strong{font-size:15px}.showroom-tool-panel>summary small{color:var(--muted);font-size:12px;line-height:1.4}.showroom-tool-panel>summary>b{border:1px solid #d9e4e8;border-radius:9px;color:#526078;font-size:11px;padding:8px 11px}.showroom-tool-panel[open]>summary{border-bottom:1px solid var(--line)}.showroom-tool-panel[open]>summary>b{background:#e9f7f3;border-color:#bce4d8;color:#087f78}.showroom-tool-panel[open]>summary>b:after{content:' section'}.showroom-tool-panel>.showroom-admin-card{border:0;border-radius:0;box-shadow:none;margin:0}.showroom-tool-panel-body{display:grid;gap:20px;padding:20px}.showroom-tool-panel-body>.showroom-admin-columns{margin:0}
@media(max-width:700px){.showroom-tool-panel>summary{gap:8px;grid-template-columns:1fr auto;padding:14px}.showroom-tool-panel>summary>span{grid-column:1/-1}.showroom-tool-panel>summary small{font-size:11px}.showroom-tool-panel>summary>b{grid-column:2;grid-row:2}.showroom-tool-panel-body{padding:14px}.showroom-tool-panel-body>.showroom-admin-columns{grid-template-columns:1fr}}
.showroom-tool-panel[open]>summary>b{font-size:0}.showroom-tool-panel[open]>summary>b:after{content:'Close';font-size:11px}
.showroom-copy-settings{border:1px solid #dce6eb;border-radius:14px}.showroom-copy-settings>summary{align-items:center;cursor:pointer;display:flex;justify-content:space-between;list-style:none;padding:15px 17px}.showroom-copy-settings>summary::-webkit-details-marker{display:none}.showroom-copy-settings>summary>span{display:grid;gap:3px}.showroom-copy-settings>summary small{color:var(--muted);font-size:11px;font-weight:550}.showroom-copy-settings>summary>b{color:#087f78;font-size:11px}.showroom-copy-settings[open]>summary{border-bottom:1px solid var(--line)}.showroom-copy-settings[open]>summary>b{font-size:0}.showroom-copy-settings[open]>summary>b:after{content:'Close';font-size:11px}.showroom-copy-grid{display:grid;gap:20px;padding:18px}.showroom-copy-grid>section{display:grid;gap:13px}.showroom-copy-grid>section+section{border-top:1px solid var(--line);padding-top:18px}.showroom-copy-grid h3{font-size:16px;margin:0}.showroom-copy-grid p{color:var(--muted);font-size:11px;margin:0}.showroom-copy-two,.showroom-copy-three{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.showroom-copy-three{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:700px){.showroom-copy-grid{padding:14px}.showroom-copy-two,.showroom-copy-three{grid-template-columns:1fr}}
.showroom-offer-products-only{max-width:none;width:100%}.showroom-offer-products-only .showroom-product-selection{width:100%}
.showroom-domain-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}.showroom-domain-options .notice{margin:0}.showroom-domain-options p{margin:8px 0 4px;overflow-wrap:anywhere}@media(max-width:760px){.showroom-domain-options{grid-template-columns:1fr}}
