/* Shared layer-pop-up refresh. Page-specific editor layouts remain in scoped CSS. */
.modal-backdrop {
    padding: clamp(12px, 2.5vw, 28px);
    background: rgba(31, 38, 35, .62);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal {
    width: min(920px, calc(100vw - 36px));
    max-height: min(92vh, 940px);
    border: 1px solid rgba(230, 217, 208, .95);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(50, 31, 21, .28), 0 8px 24px rgba(50, 31, 21, .12);
    scrollbar-color: #c9bcb4 transparent;
    scrollbar-width: thin;
}

.modal > header {
    position: sticky;
    z-index: 4;
    top: 0;
    min-height: 78px;
    align-items: flex-start;
    gap: 18px;
    padding: 21px 24px;
    border-bottom: 1px solid #eee3dc;
    background: linear-gradient(135deg, #fff 45%, #fff7f1);
}

.modal > header > div {
    min-width: 0;
}

.modal > header h2 {
    color: #332f2c;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.modal > header p {
    max-width: 680px;
    margin-top: 6px;
    color: #7d726c;
    font-size: 12px;
    line-height: 1.55;
}

.modal > header button {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    margin: -2px -4px 0 auto;
    padding: 0;
    border: 1px solid #eadfd8;
    border-radius: 11px;
    background: rgba(255, 255, 255, .88);
    color: #766b65;
    font-size: 24px;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.modal > header button:hover {
    border-color: #ddc7ba;
    background: #fff3eb;
    color: #bd5424;
    transform: translateY(-1px);
}

.modal .form-grid {
    gap: 18px;
    padding: 24px;
    background: #fcfaf8;
}

.modal .form-grid label {
    min-width: 0;
    color: #5d5550;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .01em;
}

.modal .form-grid input:not([type="checkbox"]):not([type="radio"]),
.modal .form-grid select,
.modal .form-grid textarea {
    min-height: 44px;
    border-color: #ddd2cb;
    border-radius: 9px;
    background: #fff;
    color: #37322f;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.modal .form-grid input:not([type="checkbox"]):not([type="radio"]):focus,
.modal .form-grid select:focus,
.modal .form-grid textarea:focus {
    border-color: #d37a4d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(211, 122, 77, .14);
}

.modal .form-grid textarea {
    min-height: 110px;
    line-height: 1.6;
}

.modal .form-grid label > small {
    display: block;
    margin-top: 7px;
    color: #8b8079;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
}

.modal > footer {
    position: sticky;
    z-index: 4;
    bottom: 0;
    min-height: 68px;
    align-items: center;
    padding: 13px 24px;
    border-top-color: #eee3dc;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 20px rgba(63, 42, 30, .045);
    backdrop-filter: blur(10px);
}

.modal > footer button {
    min-width: 96px;
    height: 42px;
    border-radius: 9px;
    border-color: #dfd4cd;
    color: #5f5651;
    font-weight: 700;
}

.modal > footer .primary-action {
    border-color: #df672c;
    background: linear-gradient(135deg, #f07b3c, #d95823);
    color: #fff;
    box-shadow: 0 5px 14px rgba(217, 88, 35, .22);
}

.modal .form-error {
    margin: 0 24px 16px;
    padding: 11px 13px;
    border: 1px solid #f1c8c1;
    border-radius: 9px;
    background: #fff3f1;
    font-size: 11px;
    line-height: 1.45;
}

.detail-body,
.customer-detail,
.license-summary {
    line-height: 1.55;
}

/* Product and customer editors follow the same section-card language as Sales. */
.commercial-editor {
    width: min(920px, calc(100vw - 36px));
    max-height: min(92vh, 940px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.commercial-form-body {
    min-height: 0;
    display: grid;
    flex: 1 1 auto;
    gap: 16px;
    overflow-y: auto;
    padding: 22px 26px 28px;
    background: #f6f5f3;
    overscroll-behavior: contain;
}

.commercial-form-section {
    padding: 20px;
    border: 1px solid #e5ddd7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(64, 47, 37, .045);
}

.commercial-section-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0e9e4;
}

.commercial-section-head > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff0e6;
    color: #c75c29;
    font: 800 12px Manrope, sans-serif;
}

.commercial-section-head b,
.commercial-section-head small {
    display: block;
}

.commercial-section-head b {
    color: #413934;
    font-size: 15px;
}

.commercial-section-head small {
    margin-top: 4px;
    color: #8b8079;
    font-size: 11px;
    line-height: 1.45;
}

.commercial-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.commercial-field-grid .span-2,
.commercial-field-grid .wide {
    grid-column: 1 / -1;
}

.commercial-field-grid label,
.commercial-field-grid .address-search-field {
    min-width: 0;
    color: #5d5550;
    font-size: 12px;
    font-weight: 750;
}

.commercial-field-grid label > small {
    display: block;
    margin-top: 7px;
    color: #8b8079;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
}

.commercial-field-grid input:not([type="checkbox"]):not([type="radio"]),
.commercial-field-grid select,
.commercial-field-grid textarea {
    width: 100%;
    min-height: 46px;
    margin-top: 7px;
    padding: 0 13px;
    border: 1px solid #ddd2cb;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #37322f;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.commercial-field-grid textarea {
    min-height: 120px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.6;
}

.commercial-field-grid input:not([type="checkbox"]):not([type="radio"]):focus,
.commercial-field-grid select:focus,
.commercial-field-grid textarea:focus {
    border-color: #d37a4d;
    box-shadow: 0 0 0 3px rgba(211, 122, 77, .14);
}

.commercial-field-grid .check {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #eadfd8;
    border-radius: 10px;
    background: #fffaf6;
    color: #554b45;
}

.commercial-field-grid .check input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #d8642d;
}

.commercial-form-body > .package-builder {
    margin: 0;
    border-color: #e1d3ca;
    background: #fff;
    box-shadow: 0 3px 12px rgba(64, 47, 37, .045);
}

@media (max-width: 760px) {
    .modal-backdrop {
        align-items: end;
        padding: 0;
    }

    .modal {
        width: 100%;
        max-height: 96vh;
        max-height: 96dvh;
        border-width: 1px 0 0;
        border-radius: 18px 18px 0 0;
    }

    .modal > header {
        min-height: 72px;
        padding: 17px 17px 15px;
    }

    .modal > header h2 {
        font-size: 20px;
    }

    .modal > header p {
        font-size: 11px;
    }

    .modal .form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
        padding: 18px 15px 22px;
    }

    .modal .form-grid .wide {
        grid-column: auto;
    }

    .modal .form-grid input:not([type="checkbox"]):not([type="radio"]),
    .modal .form-grid select,
    .modal .form-grid textarea {
        font-size: 16px;
    }

    .modal > footer {
        padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
    }

    .modal > footer button {
        min-width: 0;
        flex: 1 1 0;
        height: 45px;
    }

    .commercial-editor {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
    }

    .commercial-form-body {
        gap: 12px;
        padding: 14px 12px 20px;
        -webkit-overflow-scrolling: touch;
    }

    .commercial-form-section {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .commercial-field-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .commercial-field-grid .span-2,
    .commercial-field-grid .wide {
        grid-column: auto;
    }

    .commercial-field-grid input:not([type="checkbox"]):not([type="radio"]),
    .commercial-field-grid select,
    .commercial-field-grid textarea {
        font-size: 16px;
    }
}
/* Shared sales attachment picker */
.sales-attachment-drop{position:relative;display:flex!important;min-height:104px;align-items:center;justify-content:center;flex-direction:column;gap:6px;border:1.5px dashed #b8c6d9!important;border-radius:14px;background:#f8fafc;color:#263950;cursor:pointer;text-align:center;padding:18px!important;transition:.18s ease}
.sales-attachment-drop:hover{border-color:#f07b2d!important;background:#fffaf6}
.sales-attachment-drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.sales-attachment-drop>span{font-weight:750;color:#d85d0d}.sales-attachment-drop>small{font-size:12px;color:#748399}
.sales-pending-files{display:grid;gap:7px;margin-top:10px}.sales-pending-files>span{display:grid;grid-template-columns:minmax(0,1fr) auto 28px;align-items:center;gap:10px;padding:9px 11px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.sales-pending-files b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.sales-pending-files small{color:#748399}.sales-pending-files button{width:28px;height:28px;border:0;border-radius:8px;background:#f1f5f9;color:#64748b;cursor:pointer;font-size:17px}
.customer-quick-select{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.customer-quick-select>label{min-width:0}.customer-quick-select>button{height:42px;padding:0 13px;border:1px solid #f07b2d;border-radius:9px;background:#fff8f2;color:#cf570c;font-weight:750;cursor:pointer;white-space:nowrap}
.quick-customer-backdrop{z-index:1100;background:rgba(20,31,47,.62)}.quick-customer-editor{width:min(620px,calc(100vw - 28px));max-height:calc(100vh - 32px)}.quick-customer-body{display:grid;gap:16px;padding:20px 24px;overflow:auto}.quick-customer-kind{display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:11px;background:#eef2f7}.quick-customer-kind button{height:38px;border:0;border-radius:8px;background:transparent;color:#64748b;font-weight:750;cursor:pointer}.quick-customer-kind button.active{background:#fff;color:#d85d0d;box-shadow:0 2px 7px rgba(36,49,66,.12)}
.quick-customer-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.quick-customer-grid label{display:grid;gap:6px;font-size:12px;font-weight:750;color:#53647a}.quick-customer-grid .span-2{grid-column:span 2}.quick-customer-grid input,.quick-address-section input{height:42px;border:1px solid #ccd6e2;border-radius:9px;padding:0 11px;background:#fff;color:#1e293b;font:inherit}.quick-duplicate-warning{display:grid;gap:7px;padding:13px;border:1px solid #f4ce88;border-radius:12px;background:#fffbeb}.quick-duplicate-warning>p{margin:0;color:#7c6847;font-size:12px}.quick-duplicate-warning>button{display:grid;grid-template-columns:1fr auto;gap:2px 10px;text-align:left;padding:9px;border:1px solid #ead9b4;border-radius:9px;background:#fff;cursor:pointer}.quick-duplicate-warning span{font-weight:750}.quick-duplicate-warning small{grid-column:1;color:#7a8796}.quick-duplicate-warning em{grid-column:2;grid-row:1/3;align-self:center;color:#d85d0d;font-style:normal;font-weight:700}.quick-address-section{display:grid;gap:9px;padding-top:14px;border-top:1px solid #e6ebf1}.quick-address-section header small{display:block;margin-top:3px;color:#7b8796}.quick-address-section>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.quick-address-section>div button{padding:0 18px;border:0;border-radius:9px;background:#32465e;color:#fff;font-weight:700;cursor:pointer}.quick-address-section>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:620px){.quick-customer-grid{grid-template-columns:1fr}.quick-customer-grid .span-2{grid-column:auto}.quick-customer-body{padding:16px}.customer-quick-select{grid-column:span 2}.quick-duplicate-warning>button{grid-template-columns:1fr}.quick-duplicate-warning em{grid-column:1;grid-row:auto}}

/* Customer editor place search */
.customer-place-search{display:grid;gap:10px;padding:10px 14px;border:1px solid #e2e8e4;border-radius:12px;background:linear-gradient(135deg,#f8faf8,#f1f6f3)}
.customer-place-search .commercial-section-head{margin:0}
.customer-place-search .commercial-section-head>span{background:#fff;border:1px solid #dbe5df;color:#c85827}
.customer-place-search .address-search-box input{height:40px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;font-size:14px}
.customer-place-search .address-search-box input:focus{border:0;box-shadow:none}
.place-autocomplete-field{position:relative;min-width:0}
.autocomplete-spinner{width:15px;height:15px;justify-self:center;border:2px solid rgba(85,108,99,.25);border-top-color:#d35d29;border-radius:50%;animation:quick-address-spin .7s linear infinite}
.place-autocomplete-results{position:absolute;z-index:80;top:calc(100% + 6px);right:0;left:0;max-height:320px;overflow-y:auto;padding:6px;border:1px solid #d9e2de;border-radius:12px;background:#fff;box-shadow:0 16px 36px rgba(35,58,50,.18)}
.place-autocomplete-results>button{display:grid;grid-template-columns:34px minmax(0,1fr) 14px;gap:9px;align-items:center;width:100%;min-height:50px;padding:7px 9px;border:0;border-radius:8px;background:transparent;color:#294239;text-align:left;cursor:pointer}
.place-autocomplete-results>button:hover,.place-autocomplete-results>button:focus-visible{background:#eef5f1;outline:none}
.place-autocomplete-results>button>span:nth-child(2){min-width:0}.place-autocomplete-results b,.place-autocomplete-results small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.place-autocomplete-results b{font-size:12px}.place-autocomplete-results small{margin-top:3px;color:#75867f;font-size:10px;font-weight:500}.place-autocomplete-results em{color:#85948e;font-size:18px;font-style:normal}
.place-suggestion-pin{display:grid;width:32px;height:32px;place-items:center;border-radius:9px;background:#e5f0ea;color:#3f705c;font-size:15px;font-weight:800}
.place-autocomplete-results>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px -1px -1px;padding:8px 10px 3px;border-top:1px solid #edf1ef;color:#84918c;font-size:9px}.place-autocomplete-results>footer b{color:#4285f4;font-size:10px;letter-spacing:-.02em}
.place-autocomplete-field:not(:focus-within) .place-autocomplete-results{display:none}
.quick-place-search .customer-place-search-row{grid-template-columns:minmax(0,1fr);gap:0}.quick-place-search .address-search-field{display:block;min-width:0}
.quick-place-search .address-search-box{min-height:46px;padding:5px 5px 5px 12px;display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #d8e0dc;border-radius:11px;background:#fff;box-shadow:0 2px 8px rgba(39,66,56,.06);transition:.18s}
.quick-place-search .address-search-box:focus-within{border-color:#dc7540;box-shadow:0 0 0 3px rgba(220,117,64,.14),0 5px 14px rgba(39,66,56,.08)}
.quick-place-search .address-search-icon{display:grid;place-items:center;color:#76837e}.quick-place-search .address-search-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.quick-place-search .address-search-button{height:36px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:8px;background:linear-gradient(135deg,#e87435,#c95221);color:#fff;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer;box-shadow:0 4px 10px rgba(201,82,33,.2)}
.quick-place-search .address-search-button:disabled{cursor:not-allowed;opacity:.55;box-shadow:none}.quick-place-search .address-search-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.quick-place-search .address-spinner{width:14px;height:14px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:quick-address-spin .7s linear infinite}@keyframes quick-address-spin{to{transform:rotate(360deg)}}
.customer-search-body{flex:0 0 auto!important;overflow:visible!important;padding:10px 18px!important;background:#f6f5f3;z-index:3;box-shadow:0 5px 14px rgba(48,63,55,.06)}
.customer-place-search-row{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:14px;align-items:center}
.customer-place-inline-label{display:flex;align-items:center;gap:8px;color:#304b40;white-space:nowrap}.customer-place-inline-label>span{width:28px;height:28px;display:grid;place-items:center;border:1px solid #dbe5df;border-radius:8px;background:#fff;color:#c85827;font-size:16px}.customer-place-inline-label>b{display:grid;font-size:12px}.customer-place-inline-label small{color:#87948e;font-size:9px;font-weight:600}
.customer-place-search-row .address-search-field{min-width:0}.customer-place-search-row .address-search-box{min-height:44px}.customer-place-search-row .address-search-button{height:34px;padding:0 12px}
.customer-details-form{display:contents}
.customer-details-form>footer{position:relative;z-index:4;flex:0 0 auto;min-height:68px;display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:13px 24px;border-top:1px solid #eee3dc;background:rgba(255,255,255,.98);box-shadow:0 -8px 20px rgba(63,42,30,.045);backdrop-filter:blur(10px)}
.customer-details-form>footer button{min-width:104px;height:42px;padding:0 17px;border:1px solid #d9d3cf;border-radius:9px;background:#fff;color:#5f5651;font-size:14px;font-weight:700;cursor:pointer}
.customer-details-form>footer button:hover{background:#f7f5f3;border-color:#c9c1bc}.customer-details-form>footer .primary-action{border-color:#df672c;background:linear-gradient(135deg,#f07b3c,#d95823);color:#fff;box-shadow:0 5px 14px rgba(217,88,35,.22)}.customer-details-form>footer .primary-action:hover,.customer-details-form>footer .primary-action:focus-visible{border-color:#c84f1d;background:linear-gradient(135deg,#e56a2d,#c84f1d);color:#fff;box-shadow:0 7px 17px rgba(200,79,29,.3);outline:none;transform:translateY(-1px)}
.customer-place-result{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;align-items:center;padding:14px;border:1px solid #cadbd1;border-radius:12px;background:#fff;box-shadow:0 6px 18px rgba(39,66,56,.08)}
.place-result-pin{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#edf5f0;color:#31594a;font-size:22px}
.customer-place-result>div{display:grid;gap:3px;min-width:0}.customer-place-result small{color:#75847d;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.customer-place-result b{font-size:16px;color:#263b33}.customer-place-result p{margin:0;color:#5e6e67;font-size:13px}.customer-place-result em{color:#84928c;font-size:11px;font-style:normal}
.customer-place-result nav{display:grid;justify-items:end;gap:8px}.customer-place-result nav a{color:#c85827;font-size:11px;font-weight:800}.customer-place-result nav button{min-height:38px;padding:0 14px;white-space:nowrap}.customer-place-result nav .primary-action{border-color:#df672c;background:linear-gradient(135deg,#f07b3c,#d95823);color:#fff;box-shadow:0 5px 14px rgba(217,88,35,.22)}.customer-place-result nav .primary-action:hover,.customer-place-result nav .primary-action:focus-visible{border-color:#c84f1d;background:linear-gradient(135deg,#e56a2d,#c84f1d);color:#fff;outline:none}
.location-applied{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding:10px 12px;border:1px solid #cce2d4;border-radius:10px;background:#f1faf4;color:#285b3d}.location-applied>span{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#d7efdf;font-weight:900}.location-applied>div{display:grid}.location-applied b{font-size:12px}.location-applied small{font-size:10px;color:#63806d}
.customer-organization-label{display:flex;align-items:center;gap:7px}.google-location-applied{position:relative;display:inline-grid;place-items:center;width:21px;height:21px;border:1px solid #dce5e0;border-radius:6px;background:#fff;box-shadow:0 1px 2px rgba(34,55,46,.1)}.google-location-applied b{font:800 13px/1 Arial,sans-serif;color:#4285f4}.google-location-applied i{position:absolute;right:-5px;bottom:-4px;display:grid;place-items:center;width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:#3c9b63;color:#fff;font:900 7px/1 Arial,sans-serif}
.customer-registry-kind{display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:11px;background:#eef2f7}.customer-registry-kind button{height:40px;border:0;border-radius:8px;background:transparent;color:#64748b;font-weight:800;cursor:pointer}.customer-registry-kind button.active{background:#fff;color:#d85d0d;box-shadow:0 2px 7px rgba(36,49,66,.12)}.customer-profile-row{display:grid;grid-template-columns:1fr 1.35fr .8fr;gap:14px}.customer-profile-row label{min-width:0}
@media(max-width:760px){.customer-search-body{padding:8px!important}.customer-place-search{padding:8px}.customer-place-search-row{grid-template-columns:130px minmax(0,1fr);gap:7px}.customer-place-inline-label{gap:5px;white-space:normal}.customer-place-inline-label>span{display:none}.customer-place-inline-label>b{font-size:10px;line-height:1.2}.customer-place-search-row .address-search-box{grid-template-columns:18px minmax(0,1fr) auto;padding:4px 5px 4px 8px}.customer-place-search-row .address-search-button{grid-column:auto!important;width:34px!important;padding:0;justify-content:center}.customer-place-search-row .address-search-button span:not(.address-spinner){display:none}.customer-place-search-row .address-search-button svg{width:16px}.customer-place-result{grid-template-columns:38px minmax(0,1fr)}.customer-place-result nav{grid-column:1/-1;width:100%;grid-template-columns:1fr auto;align-items:center}.customer-place-result nav button{width:auto}.customer-details-form>footer{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.customer-details-form>footer button{flex:1 1 0;min-width:0;height:45px}}
@media(max-width:520px){.quick-place-search .customer-place-search-row{grid-template-columns:1fr}.quick-place-search .customer-place-inline-label>span{display:grid}.quick-place-search .address-search-button{width:auto!important}.quick-place-search .address-search-button span:not(.address-spinner){display:none}}
@media(max-width:680px){.customer-profile-row{grid-template-columns:1fr}.customer-registry-kind{position:sticky;top:0;z-index:2}}
@media(max-width:760px){.customer-editor .customer-place-search-row{grid-template-columns:minmax(0,1fr)}.customer-editor .customer-place-inline-label{display:none}}
.customer-map-panel{margin-top:14px;overflow:hidden;border:1px solid #dfe6e2;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(38,51,47,.07)}.customer-map-panel>header{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 18px;border-bottom:1px solid #e7ece9}.customer-map-panel>header>div:first-child{display:grid}.customer-map-panel header b{font-size:13px}.customer-map-panel header small{margin-top:4px;color:#7c8a84;font-size:10px}.customer-map-canvas{height:520px;min-height:520px}.customer-map-legend{display:flex;align-items:center;gap:16px}.customer-map-legend span{display:flex;align-items:center;gap:6px;color:#596a63;font-size:11px;font-weight:700}.customer-map-legend i{width:12px;height:12px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px rgba(38,51,47,.15)}.customer-map-legend i.customer{background:#d94b4b}.customer-map-legend i.lead{background:#55bde8}.customer-map-info{display:grid;gap:3px;min-width:180px;padding:3px}.customer-map-info b{font-size:13px}.customer-map-info span{color:#596a63;font-size:10px}.customer-map-info small{color:#87948e;font-size:9px}@media(max-width:600px){.customer-map-panel>header{align-items:flex-start;flex-direction:column}.customer-map-canvas{height:420px;min-height:420px}.customer-map-legend{gap:12px}}
.customer-view-switch{display:flex;align-items:center;padding:3px;border:1px solid #d9e2dd;border-radius:9px;background:#f0f4f2;box-shadow:inset 0 1px 2px rgba(38,51,47,.05)}.customer-view-switch button{height:36px;display:flex;align-items:center;gap:6px;border:0;border-radius:6px;padding:0 13px;background:transparent;color:#687771;font-size:12px;font-weight:700;cursor:pointer}.customer-view-switch button:hover{background:#fff;color:#315d50}.customer-view-switch button.active{background:#fff;color:#286c59;box-shadow:0 2px 6px rgba(38,51,47,.16)}.customer-view-switch button>span{font-size:16px}.customer-view-switch b{min-width:19px;padding:2px 5px;border-radius:99px;background:#dfe9e4;color:#4f675e;font-size:9px;text-align:center}.customer-view-switch button.active b{background:#dcefe7;color:#286c59}.customer-refresh-button{height:36px;display:flex;align-items:center;gap:6px;margin-left:auto;border:1px solid #d7e0dc;border-radius:7px;padding:0 12px;background:#fff;color:#52635d;font-size:11px;font-weight:700;cursor:pointer}.customer-refresh-button:hover{border-color:#93b5a8;background:#f7faf8;color:#286c59}.customer-refresh-button:disabled{cursor:wait;opacity:.65}.customer-refresh-button .spinning{animation:customer-refresh-spin .8s linear infinite}@keyframes customer-refresh-spin{to{transform:rotate(360deg)}}@media(max-width:600px){.customer-view-switch button{padding:0 9px}.customer-refresh-button{width:36px;padding:0;justify-content:center}.customer-refresh-label{display:none}}
.customer-map-canvas .gm-style-iw-chr{display:none}.customer-map-canvas .gm-style-iw-d{padding:9px 10px!important;overflow:auto!important}.customer-map-canvas .gm-style-iw-c{padding:0!important}.customer-map-info{gap:2px;min-width:165px;padding:0}
.activity-view-bar{position:relative;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}.activity-view-bar .sales-tabs{flex:0 0 auto;border-bottom:0}.activity-filter-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0;padding:5px 0}.activity-filter-controls summary,.activity-date-filter,.activity-customer-filter,.activity-clear-filters{height:35px;border:1px solid #dbe3df;border-radius:7px;background:#fff;color:#596962;font-size:11px}.activity-filter-controls summary{display:flex;align-items:center;gap:5px;padding:0 10px;font-weight:700;cursor:pointer;list-style:none}.activity-filter-controls summary::-webkit-details-marker{display:none}.activity-filter-controls summary.filtered{border-color:#78a998;background:#edf7f2;color:#286c59}.activity-filter-controls summary b{min-width:18px;padding:2px 5px;border-radius:99px;background:#d6ebe2;font-size:9px;text-align:center}.activity-salesperson-filter{position:relative}.activity-filter-popover{position:absolute;top:41px;right:0;width:240px;max-height:290px;overflow:auto;padding:8px;border:1px solid #d9e2dd;border-radius:9px;background:#fff;box-shadow:0 12px 30px rgba(36,55,47,.18)}.activity-filter-popover header{display:flex;align-items:center;justify-content:space-between;padding:4px 5px 8px;font-size:11px}.activity-filter-popover header button{border:0;background:transparent;color:#2e7465;font-size:10px;cursor:pointer}.activity-filter-popover label{display:flex;align-items:center;gap:8px;padding:8px 6px;border-radius:6px;font-size:11px;cursor:pointer}.activity-filter-popover label:hover{background:#f1f6f3}.activity-filter-popover input{accent-color:#2e7465}.activity-date-filter,.activity-customer-filter{display:flex;align-items:center;gap:6px;padding:0 6px 0 9px;font-weight:700}.activity-date-filter input,.activity-customer-filter select{height:27px;min-width:0;border:0;border-left:1px solid #e3e9e6;background:#fff;padding:0 5px;color:#33453e;outline:0}.activity-date-filter input{width:124px}.activity-customer-filter select{width:145px}.activity-clear-filters{padding:0 9px;border-color:#e4d8d3;color:#9b593e;cursor:pointer}.activity-clear-filters:hover{background:#fff5f0}.activity-filter-controls:has(.activity-date-filter input:not(:placeholder-shown)) .activity-date-filter{border-color:#78a998}@media(max-width:1100px){.activity-view-bar{align-items:stretch;flex-direction:column;gap:0}.activity-filter-controls{justify-content:flex-start;overflow:visible}.activity-salesperson-filter .activity-filter-popover{right:auto;left:0}}@media(max-width:680px){.activity-filter-controls{flex-wrap:wrap}.activity-date-filter,.activity-customer-filter{flex:1 1 180px}.activity-date-filter input,.activity-customer-filter select{flex:1;width:auto}.activity-filter-controls summary{height:35px}}
.activity-date-range{height:35px;display:flex;align-items:center;border:1px solid #dbe3df;border-radius:7px;background:#fff;color:#596962}.activity-date-range.filtered{border-color:#78a998;background:#f5fbf8}.activity-date-range>label{height:100%;display:flex;align-items:center;gap:5px;padding-left:8px;font-size:10px;font-weight:800}.activity-date-range input{width:112px;height:27px;border:0;background:transparent;padding:0 4px;color:#33453e;outline:0}.activity-date-range>i{color:#a0aca7;font-style:normal}@media(max-width:680px){.activity-date-range{width:100%;height:auto;min-height:35px}.activity-date-range>label{flex:1}.activity-date-range input{flex:1;width:auto;min-width:105px}}
.activity-scope-filters{grid-template-columns:minmax(230px,1fr) 140px 150px 180px 180px auto;margin-bottom:15px}.activity-scope-filters>label{min-width:0}.activity-scope-filters input[type=date]{width:100%}.activity-scope-filters select{display:block;width:100%;height:40px;border:1px solid var(--line);border-radius:7px;margin-top:5px;padding:0 8px;background:#fff;color:#33453e;text-overflow:ellipsis}.activity-scope-salesperson{min-width:0;font-size:12px;font-weight:700}.activity-scope-salesperson>span{margin:0}.activity-scope-salesperson details{position:relative}.activity-scope-salesperson summary{height:40px;display:flex;align-items:center;min-width:0;margin-top:5px;padding:0 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#33453e;font-weight:500;cursor:pointer;list-style:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-scope-salesperson summary::-webkit-details-marker{display:none}.activity-scope-salesperson summary::after{content:"⌄";flex:0 0 auto;margin-left:auto;color:#7b8983}.activity-scope-salesperson summary.filtered{border-color:#78a998;background:#f4faf7;color:#286c59}.activity-scope-salesperson .activity-filter-popover{top:45px;right:auto;left:0;z-index:8}.activity-scope-actions{display:flex;align-items:center;gap:6px}.activity-scope-actions button{margin:0}.activity-scope-actions .clear{border:1px solid #dfe5e2;background:#fff;color:#6d7a75;box-shadow:none}@media(max-width:1250px){.activity-scope-filters{grid-template-columns:minmax(210px,1fr) 140px 150px 180px 180px}.activity-scope-actions{grid-column:1/-1;justify-content:flex-end}}@media(max-width:900px){.activity-scope-filters{grid-template-columns:1fr 1fr}.activity-scope-filters>div:first-child{grid-column:1/-1}.activity-scope-actions{grid-column:1/-1}}@media(max-width:700px){.activity-scope-filters{grid-template-columns:1fr}.activity-scope-filters>div:first-child,.activity-scope-actions{grid-column:auto}.activity-scope-actions button{flex:1}.activity-scope-salesperson .activity-filter-popover{width:min(280px,calc(100vw - 70px))}}
.activity-scope-filters .activity-filter-popover{box-sizing:border-box}.activity-scope-filters .activity-filter-popover label{height:32px;display:flex;align-items:center;gap:8px;margin:0;padding:5px 6px}.activity-scope-filters .activity-filter-popover input[type=checkbox]{appearance:auto;flex:0 0 14px;width:14px!important;height:14px!important;min-width:14px;margin:0!important;padding:0;border:0;box-shadow:none}.activity-scope-filters .activity-filter-popover label>span{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500}.activity-scope-filters .activity-filter-popover header{height:32px;box-sizing:border-box}.activity-scope-filters .activity-filter-popover header button{height:24px;padding:0 5px;background:transparent;color:#2e7465;box-shadow:none}
.activity-scope-filters .activity-filter-popover .activity-filter-search{display:block;width:100%;height:31px;box-sizing:border-box;margin:0 0 5px;padding:0 9px;border:1px solid #d9e4df;border-radius:7px;background:#f8fbf9;color:#33453e;font-size:11px;outline:0}.activity-scope-filters .activity-filter-popover .activity-filter-search:focus{border-color:#78a998;background:#fff;box-shadow:0 0 0 2px #dff0e8}.activity-scope-filters .activity-filter-popover .activity-filter-search::placeholder{color:#94a19b}
.activity-scope-actions{min-width:116px;justify-content:flex-end}
.activity-scope-customer{min-width:0;font-size:12px;font-weight:700}.activity-scope-customer>span{margin:0}.activity-scope-customer details{position:relative}.activity-scope-customer summary{height:40px;display:flex;align-items:center;min-width:0;margin-top:5px;padding:0 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#33453e;font-weight:500;cursor:pointer;list-style:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-scope-customer summary::-webkit-details-marker{display:none}.activity-scope-customer summary::after{content:"⌄";flex:0 0 auto;margin-left:auto;color:#7b8983}.activity-scope-customer summary.filtered{border-color:#78a998;background:#f4faf7;color:#286c59}.activity-scope-customer .activity-filter-popover{top:45px;right:auto;left:0;z-index:8;width:260px}.activity-scope-actions{min-width:0}
.activity-scope-filters>label.disabled{opacity:.42}.activity-scope-filters>label.disabled input{cursor:not-allowed;background:#f1f3f2}
.activity-scope-filters{grid-template-columns:minmax(230px,1fr) 140px 150px 180px 180px}.pipeline-scope-filters{grid-template-columns:1fr 180px 180px}
@media(max-width:1250px){.activity-scope-filters{grid-template-columns:minmax(210px,1fr) 140px 150px 180px 180px}}@media(max-width:900px){.activity-scope-filters,.pipeline-scope-filters{grid-template-columns:1fr 1fr}.activity-scope-filters>div:first-child,.pipeline-scope-filters>div:first-child{grid-column:1/-1}}@media(max-width:700px){.activity-scope-filters,.pipeline-scope-filters{grid-template-columns:1fr}.activity-scope-filters>div:first-child,.pipeline-scope-filters>div:first-child{grid-column:auto}}
.stage-dot.hold{background:#9a8d78}.pipeline-column button>span{display:flex;align-items:center;gap:6px}.pipeline-overdue{display:inline-flex;padding:2px 5px;border-radius:99px;background:#fde7e2;color:#b64f40;font-size:8px;font-style:normal;font-weight:800}
.pipeline-closed{margin-top:12px;border:1px solid var(--line);border-radius:10px;background:#fff}.pipeline-closed summary{padding:13px 15px;color:#5d6b66;font-size:12px;font-weight:800;cursor:pointer}.pipeline-closed summary b{margin-left:5px;padding:2px 6px;border-radius:99px;background:#edf1ef}.pipeline-closed>div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 12px 12px}.pipeline-closed>div>button{display:grid;grid-template-columns:auto 1fr auto;gap:5px 8px;align-items:center;border:1px solid #e3e8e5;border-radius:8px;background:#fafbfa;padding:10px;text-align:left;cursor:pointer}.pipeline-closed button>b{font-size:11px}.pipeline-closed button>small{grid-column:2/3;color:#7d8984;font-size:9px}.pipeline-closed button>strong{grid-column:3;grid-row:1/3;font-size:10px}@media(max-width:800px){.pipeline-closed>div{grid-template-columns:1fr}}
.customer-products-cell{display:flex;align-items:center;gap:8px;min-width:180px;max-width:320px}.customer-products-cell>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#41564d;font-size:12px}.customer-products-cell>span.empty{color:#929c97;font-style:italic}.customer-products-cell>button{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;border:1px solid #d9e4de;border-radius:8px;background:#f3f8f5;color:#31594a;font-size:18px;line-height:1;cursor:pointer;transition:.16s}.customer-products-cell>button:hover{border-color:#c85827;background:#fff7f2;color:#c85827;transform:translateY(-1px)}

/* Feedback uses the same note/transcription visual language as Sales Activity. */
.voice-editor .feedback-main{padding:18px!important;border:1px solid #cfddd6!important;border-radius:14px!important;background:#fff!important}.voice-editor .feedback-main>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.voice-editor .feedback-main>header b,.voice-editor .feedback-main>header small{display:block}.voice-editor .feedback-main>header b{color:#244239;font-size:14px}.voice-editor .feedback-main>header small{margin-top:4px;color:#75857f;font-size:11px}.voice-editor .feedback-main>header .speech-actions{display:flex;align-items:center;gap:8px}.voice-editor .feedback-main button{height:40px!important;margin:0!important;border:1px solid #cddbd4!important;border-radius:9px!important;background:#fff!important;color:#416b5a!important;padding:0 13px!important;font-size:11px;font-weight:750}.voice-editor .feedback-main .speech-summary-button{display:inline-flex;align-items:center;gap:7px}.voice-editor .feedback-main .speech-summary-button>span{color:#c9793e;font-size:15px}.voice-editor .feedback-main .speech-summary-button:disabled{cursor:not-allowed;opacity:.48}.voice-editor .feedback-main .speech-microphone-button{width:40px;display:grid;place-items:center;flex:0 0 40px;padding:0!important;border-color:#496f62!important;background:#496f62!important;color:#fff!important}.voice-editor .feedback-main .speech-microphone-button svg{width:19px;height:19px;fill:currentColor}.voice-editor .feedback-main .speech-microphone-button svg path+path{fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:2}.voice-editor .feedback-main .speech-microphone-button.recording{border-color:#bd4c43!important;background:#bd4c43!important;box-shadow:0 0 0 4px rgba(189,76,67,.12)}.voice-editor .feedback-main>textarea{width:100%;min-height:150px!important;box-sizing:border-box;margin-top:12px!important;padding:13px 14px!important;border:1px solid #d5dfdb!important;border-radius:9px!important;background:#fff!important;font-size:14px!important;line-height:1.65!important;resize:vertical}.voice-editor .feedback-main details{display:block;margin-top:12px;padding:12px!important;border:1px solid #d9e3de!important;border-radius:12px!important;background:#f7faf8!important}.voice-editor .feedback-main details>summary{display:block;margin-bottom:10px;color:#52645c;font-size:11px;font-weight:750;cursor:default}.voice-editor .feedback-main details>summary::after{content:" · Read only";color:#82908b;font-weight:500}.voice-editor .feedback-main details:not([open])>:not(summary){display:block!important}.voice-editor .feedback-main .transcript{display:block!important;width:100%;min-height:120px!important;box-sizing:border-box;margin:0!important;padding:13px 14px!important;border:1px solid #d5dfdb!important;border-radius:9px!important;background:linear-gradient(180deg,#f8faf9,#f4f7f5)!important;color:#596963;line-height:1.65;resize:vertical;cursor:default;caret-color:transparent}.voice-editor .feedback-main>small{display:block;margin-top:8px;color:#596963;font-size:10px}
.voice-editor .voice-transcription{margin-top:14px;padding:12px;border:1px solid #cfddd6;border-radius:12px;background:#f7faf8}.voice-editor .voice-transcription>header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;margin-bottom:12px}.voice-editor .voice-transcription .speech-language{display:grid;grid-template-columns:auto minmax(90px,150px);align-items:center;gap:8px;color:#52645c;font-size:10px;font-weight:750}.voice-editor .voice-transcription .speech-language select{width:100%;height:40px;border:1px solid #cddbd4;border-radius:8px;background:#fff;color:#344a41;padding:0 10px}.voice-editor .voice-transcription .speech-actions{display:flex;align-items:center;gap:8px}.voice-editor .voice-transcription>small{display:block;margin-top:8px;color:#596963;font-size:10px}.voice-editor .voice-transcription .transcript{margin:0!important}@media(max-width:680px){.voice-editor .voice-transcription>header{grid-template-columns:minmax(0,1fr) auto;gap:8px}.voice-editor .voice-transcription .speech-language{grid-template-columns:auto minmax(84px,1fr);gap:6px}.voice-editor .voice-transcription .speech-summary-button{height:44px!important}.voice-editor .voice-transcription .speech-microphone-button{width:44px!important;height:44px!important;flex-basis:44px}.voice-editor .feedback-main{padding:14px!important}}
.voice-editor .voice-transcription .speech-title{color:#344f45;font-size:12px;font-weight:800}.voice-editor .voice-transcription .speech-actions .speech-language{display:block;width:120px;min-width:0}.voice-editor .voice-transcription .speech-actions .speech-language select{display:block;min-width:0}@media(max-width:680px){.voice-editor .voice-transcription .speech-actions .speech-language{width:92px}}
body.pipeline-touch-dragging {
    overflow: hidden;
    user-select: none;
}
.activity-view-header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.activity-view-header-actions button{margin-left:0!important}.activity-view-header-actions .activity-history-action{width:38px;height:38px;border:1px solid #d8e3de;border-radius:9px;background:#fff;color:#36715e;font-size:0!important;cursor:pointer}.activity-view-header-actions .activity-history-action::before{content:"";display:block;width:22px;height:22px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.2 5H4.5v10h3v3l3.8-3H15'/%3E%3Ccircle cx='17' cy='8' r='4.5'/%3E%3Cpath d='M17 5.6v2.6l1.8 1.2'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.2 5H4.5v10h3v3l3.8-3H15'/%3E%3Ccircle cx='17' cy='8' r='4.5'/%3E%3Cpath d='M17 5.6v2.6l1.8 1.2'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}.activity-view-header-actions .activity-history-action:hover,.activity-view-header-actions .activity-history-action.active,.activity-view-header-actions .activity-history-action[aria-expanded=true]{background:#dff0e8;border-color:#79a994;color:#245e4d}
.audit-backdrop{z-index:220!important}.sales-editor-dev>footer .activity-editor-tools{margin-right:auto;display:flex;align-items:center;gap:7px}.sales-editor-dev>footer .activity-editor-tools label{display:flex;align-items:center;gap:6px;color:#496358;font-size:11px;font-weight:800}.sales-editor-dev>footer .activity-editor-tools select{height:34px;min-width:145px;border:1px solid #d5e1db;border-radius:7px;background:#fff;color:#31483e;padding:0 8px;font:inherit}.sales-editor-dev>footer .activity-editor-delete{height:38px;margin-right:12px;border:1px solid #e6b8b2;border-radius:9px;background:#fff;color:#b5483a;font-weight:800;padding:0 14px}.sales-editor-dev>footer .activity-editor-delete:hover{background:#fff3f1;border-color:#d8877c}
.activity-owner-team-filters{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:6px}.activity-owner-team-filters button{height:31px;display:flex;align-items:center;justify-content:space-between;gap:6px;border:1px solid #d9e4df;border-radius:7px;padding:0 8px;background:#f8fbf9;color:#52645d;font-size:10px;font-weight:750;cursor:pointer}.activity-owner-team-filters button:hover{border-color:#9dbdaf;background:#f1f8f4}.activity-owner-team-filters button.active{border-color:#65a18a;background:#e5f3ed;color:#23644f}.activity-owner-team-filters small{display:grid;min-width:18px;height:18px;place-items:center;border-radius:9px;background:#e3ebe7;color:#62736c;font-size:9px}.activity-owner-team-filters button.active small{background:#2f7b63;color:#fff}

.activity-view-header-actions .activity-history-action{display:grid!important;place-items:center;border:0!important;border-radius:50%!important;background:transparent!important}.activity-view-header-actions .activity-history-action::before{width:22px;height:22px;margin:0!important;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.2 5H4.5v10h3v3l3.8-3H15'/%3E%3Ccircle cx='17' cy='8' r='4.5'/%3E%3Cpath d='M17 5.6v2.6l1.8 1.2'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.2 5H4.5v10h3v3l3.8-3H15'/%3E%3Ccircle cx='17' cy='8' r='4.5'/%3E%3Cpath d='M17 5.6v2.6l1.8 1.2'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}.activity-view-header-actions .activity-history-action:hover,.activity-view-header-actions .activity-history-action.active,.activity-view-header-actions .activity-history-action[aria-expanded=true]{background:#edf5f1!important;border-color:transparent!important}

/* Activity filters: keep date controls sized for a date, while customer/province/type filters remain usable. */
.activity-scope-filters{grid-template-columns:minmax(120px,1fr) 120px repeat(3,minmax(0,180px)) 138px 138px!important}
.activity-scope-filters>label.activity-scope-type{min-width:0;box-sizing:border-box}
.activity-scope-filters>label.activity-scope-type>span{display:block;margin:0 0 5px;color:#5b6b64;font-size:11px;font-weight:700}
.activity-scope-filters>label.activity-scope-type select{width:100%;min-width:0;box-sizing:border-box;margin:0}
.activity-scope-filters>label.activity-date-scope-filter{width:138px;min-width:0;justify-self:start;box-sizing:border-box}
.activity-scope-filters>label.activity-date-scope-filter input[type=date]{width:100%;min-width:0;box-sizing:border-box;padding-inline:7px}
@media(max-width:1250px){.activity-scope-filters{grid-template-columns:minmax(100px,1fr) 110px repeat(3,minmax(0,165px)) 126px 126px!important}}
@media(max-width:1100px){.activity-scope-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.activity-scope-filters>div:first-child{grid-column:1/-1}}
@media(max-width:900px){.activity-scope-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.activity-scope-filters>label.activity-date-scope-filter{width:138px}}
@media(max-width:700px){.activity-scope-filters{grid-template-columns:minmax(0,1fr)!important}.activity-scope-filters>label.activity-date-scope-filter{width:138px}}
.pipeline-scope-filters{grid-template-columns:minmax(180px,1.2fr) minmax(120px,.75fr) minmax(120px,.8fr) minmax(140px,.9fr) minmax(240px,1.3fr) minmax(300px,1fr)!important;align-items:end}
.pipeline-scope-filters:has(.pipeline-status-placeholder){grid-template-columns:minmax(230px,1.4fr) minmax(130px,.8fr) minmax(140px,.9fr) minmax(140px,.9fr) minmax(300px,1.2fr)!important}
.pipeline-status-placeholder{display:none}
.pipeline-date-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.pipeline-date-range label{min-width:0}
.pipeline-date-range input[type=date]{width:100%;min-width:0;box-sizing:border-box;padding-inline:7px}
@media(max-width:1250px){.pipeline-scope-filters,.pipeline-scope-filters:has(.pipeline-status-placeholder){grid-template-columns:repeat(3,minmax(0,1fr))!important}.pipeline-scope-filters>div:first-child{grid-column:1/-1}.pipeline-date-range{grid-column:span 2}}
@media(max-width:700px){.pipeline-scope-filters,.pipeline-scope-filters:has(.pipeline-status-placeholder){grid-template-columns:minmax(0,1fr)!important}.pipeline-scope-filters>div:first-child,.pipeline-date-range{grid-column:auto}.pipeline-date-range{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pipeline-scope-filters{grid-template-columns:minmax(190px,1.4fr) minmax(110px,.75fr) minmax(130px,.9fr) minmax(130px,.9fr) minmax(230px,1.4fr) minmax(126px,.7fr) minmax(126px,.7fr)!important}
.pipeline-scope-filters .pipeline-status-placeholder{display:none!important}
.pipeline-scope-filters>.pipeline-date-range{display:contents}
.pipeline-scope-filters>label.pipeline-date-disabled{min-width:0}
@media(max-width:1250px){.pipeline-scope-filters{grid-template-columns:repeat(4,minmax(0,1fr))!important}.pipeline-scope-filters>div:first-child{grid-column:span 2}.pipeline-scope-filters>.pipeline-date-range{display:contents}.pipeline-date-range label{width:auto;min-width:0}}
@media(max-width:700px){.pipeline-scope-filters{grid-template-columns:minmax(0,1fr)!important}.pipeline-scope-filters>div:first-child{grid-column:auto}.pipeline-scope-filters>.pipeline-date-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:auto}.pipeline-date-range label{width:auto}}
.pipeline-scope-filters{display:flex!important;flex-wrap:nowrap!important;align-items:end;overflow-x:auto;overflow-y:visible}
.pipeline-scope-filters>div:first-child{flex:1 0 190px;min-width:190px}
.pipeline-scope-filters>.activity-scope-salesperson{flex:0 0 138px;min-width:0}
.pipeline-scope-filters>.pipeline-change-filter{flex:0 0 150px;min-width:0}
.pipeline-scope-filters>.pipeline-product-search{flex:1 0 230px;min-width:230px}
.pipeline-scope-filters>.pipeline-date-range{display:contents}
.pipeline-scope-filters>.pipeline-date-range>label{flex:0 0 132px;width:132px;min-width:0;box-sizing:border-box}
.pipeline-scope-filters>label input[type=date]{width:100%;min-width:0;box-sizing:border-box;padding-inline:7px}
.pipeline-scope-filters{overflow:visible!important}
.pipeline-scope-filters>.pipeline-product-search{position:relative;z-index:1;flex:0 1 300px;min-width:220px;max-width:300px}
.pipeline-scope-filters>.pipeline-product-search:focus-within{z-index:80}
@media(max-width:1000px){.pipeline-scope-filters{flex-wrap:wrap!important}.pipeline-scope-filters>div:first-child{flex:1 0 100%}.pipeline-scope-filters>.pipeline-product-search{flex:1 1 260px;max-width:none}}
.pipeline-scope-filters>.pipeline-product-search{flex-basis:240px;max-width:240px}
@media(max-width:1000px){.pipeline-scope-filters>.pipeline-product-search{flex-basis:210px;max-width:none}}
.read-detail .customer-profile-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 20px}
.customer-profile-grid .profile-half{grid-column:span 2}
.customer-profile-grid .profile-full{grid-column:1/-1}
.customer-profile-grid>div{align-content:start}
.customer-profile-grid b{font-size:13px}
.customer-profile-billing{margin-top:14px;border-top:1px solid #e7eeea}
.customer-profile-billing summary{padding:10px 0;cursor:pointer;color:#537567;font-size:11px;font-weight:700}
.customer-profile-location{margin-top:8px}
.customer-profile-billing[open] summary{margin-bottom:4px}
.customer-profile-billing>.read-field-grid{padding-bottom:12px}
.customer-profile-map{position:relative;margin-top:4px;overflow:hidden;border:1px solid #dbe5df;border-radius:10px;background:#f3f6f4}
.customer-profile-map-canvas{display:block;width:100%;height:155px}
.customer-profile-map>a{position:absolute;right:8px;top:8px;padding:6px 9px;border-radius:6px;background:#fff;color:#2d7156;box-shadow:0 1px 5px #0002;font-size:10px;font-weight:700;text-decoration:none}
.customer-profile-map>a:hover{text-decoration:underline}
@media(max-width:700px){.read-detail .customer-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.customer-profile-grid .profile-half{grid-column:1/-1}.customer-profile-map-canvas{height:140px}}
