/* ==========================================================================
   CRM pages — page-specific styles on top of the app skin (pages-m2.css).
   Every rule is scoped to its page: body[data-app-page="x"] or a page class.

   Pages and their wrapper (all use the .lp2 kit, each in its own tone):
     /customers      .lp2-customers  violet
     /loyalty        .lp2-loyalty    amber
     /suppliers      .lp2-suppliers  teal
     /crm-sms        .lp2-sms        blue
     /whatsapp-sync  .lp2-wa         emerald
     /crm-wallet     .lp2-wallet     indigo
     /crm-reports    .lp2-crmrep     cyan
   Pop-ups live under <body>, so their rules are scoped with body.lp2-app and
   crm-/cust- class names that only these pages use.
   ========================================================================== */

/* ---- Shared page pieces ------------------------------------------------------ */

:is(.lp2-customers, .lp2-loyalty, .lp2-suppliers, .lp2-sms, .lp2-wa, .lp2-wallet, .lp2-crmrep) .page-header > .crm-head-title {
    flex: 1 1 auto; min-width: 0; flex-shrink: 1 !important;
}
:is(.lp2-customers, .lp2-loyalty, .lp2-suppliers, .lp2-sms, .lp2-wa, .lp2-wallet, .lp2-crmrep) .crm-head-actions {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
:is(.lp2-customers, .lp2-loyalty, .lp2-suppliers, .lp2-sms, .lp2-wa, .lp2-wallet, .lp2-crmrep) .page-sub {
    white-space: normal;
}
/* a labelled outline button in the header (the kit makes outline buttons icon-only) */
:is(.lp2-sms) .page-header .btn-outline.btn-sm.crm-btn-text { width: auto; padding: 0 12px; gap: 6px; font-size: .8rem; }
/* SMS › Send | Wallet: one menu entry, two tabs (CRM._smsTabs) */
:is(.lp2-sms, .lp2-wallet) .sms-tabs { margin: 0 0 12px; flex-wrap: nowrap; }
:is(.lp2-sms, .lp2-wallet) .sms-tabs .pill-tab i { margin-right: 4px; font-size: .8rem; }

.lp2-wa .crm-head-back { display: flex; align-items: center; gap: 10px; }
.lp2-wa .crm-back {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
    display: inline-grid; place-items: center; padding: 0;
    background: #fff; border: 1px solid var(--lp2-line); color: #0f172a; font-size: 1.05rem;
}
.lp2-wa .crm-back:hover { border-color: #94a3b8; }
@media (max-width: 359px) {
    .lp2-wa .page-header .page-sub { display: none; }
}

/* notes: a warm variant for things that need doing */
:is(.lp2-customers, .lp2-loyalty, .lp2-suppliers, .lp2-sms, .lp2-wa, .lp2-wallet) .lp2-note.crm-note-warn {
    background: #fffbeb; border-color: #fde68a; color: #78350f;
}
:is(.lp2-sms, .lp2-wa, .lp2-wallet) .lp2-note.crm-note-warn > i { color: #b45309; }

/* rows with nothing to open */
:is(.lp2-sms, .lp2-wallet) .sx-item.crm-static-row { cursor: default; }
:is(.lp2-sms, .lp2-wallet) .sx-item.crm-static-row:hover { background: transparent; }

/* amounts that are not there yet, small notes under an amount */
:is(.lp2-customers, .lp2-suppliers) .sx-amt.crm-amt-none { color: #94a3b8; font-weight: 700; }
:is(.lp2-customers, .lp2-suppliers, .lp2-loyalty) .crm-row-note,
:is(.lp2-loyalty) .crm-worth { font-size: .68rem; font-weight: 700; color: #475569; white-space: nowrap; }
.lp2-loyalty .crm-pts { font-size: .72em; font-weight: 700; color: #475569; }

/* empty-state buttons (the kit sizes every icon in .sx-empty as the big one) */
.lp2-customers .crm-empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.lp2-suppliers .crm-empty-btn { margin-top: 14px; }
:is(.lp2-customers, .lp2-suppliers) .sx-empty .btn i {
    display: inline; margin: 0; font-size: 1em; opacity: 1; color: inherit;
}

/* On phones the menu button floats bottom-left; room to scroll the last
   controls clear of it. */
@media (max-width: 767px) {
    :is(.lp2-customers, .lp2-loyalty, .lp2-suppliers, .lp2-sms, .lp2-wa, .lp2-wallet, .lp2-crmrep) { padding-bottom: 72px; }
}

/* ---- Tab strips that scroll sideways ------------------------------------------ */
/* CRM.scrollHint() sets .crm-more-right / .crm-more-left; the strip fades on
   that side and a small arrow says there is more. */

:is(.lp2-customers, .lp2-sms, .lp2-wa) .crm-scroll { position: relative; margin: 0 0 12px; }
:is(.lp2-customers, .lp2-sms, .lp2-wa) .crm-scroll > .crm-scroll-x {
    position: relative; display: flex; flex-wrap: nowrap;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
:is(.lp2-customers, .lp2-sms, .lp2-wa) .crm-scroll > .crm-scroll-x::-webkit-scrollbar { display: none; }
:is(.lp2-customers, .lp2-sms, .lp2-wa) .crm-scroll > .crm-scroll-x > * { scroll-snap-align: start; flex: 0 0 auto; }
:is(.lp2-customers, .lp2-sms, .lp2-wa) .crm-scroll.crm-more-right > .crm-scroll-x {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
}
:is(.lp2-customers, .lp2-sms, .lp2-wa) .crm-scroll.crm-more-left > .crm-scroll-x {
    -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent);
            mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent);
}
:is(.lp2-customers, .lp2-sms, .lp2-wa) .crm-scroll.crm-more-left.crm-more-right > .crm-scroll-x {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 44px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 44px), transparent);
}
:is(.lp2-customers, .lp2-sms, .lp2-wa) .crm-scroll::after {
    content: "\F285"; font-family: "bootstrap-icons"; font-size: .7rem; line-height: 1;
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; pointer-events: none;
    background: #fff; color: #334155; border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px -4px rgba(15, 23, 42, .35);
    opacity: 0; transition: opacity .15s ease;
}
:is(.lp2-customers, .lp2-sms, .lp2-wa) .crm-scroll.crm-more-right::after { opacity: 1; }

/* ---- /customers ----------------------------------------------------------------- */

.lp2-customers .crm-seg-tabs { margin: 0; padding: 2px 1px 4px; gap: 6px; }
.lp2-customers .crm-seg-tab { font-size: .8rem; }
.lp2-customers .crm-seg-tab i { font-size: .82rem; }
.lp2-customers .crm-seg-tab:not(.active) i { color: var(--lp2-h3); }

.lp2-customers .crm-list-toolbar {
    display: flex; align-items: center; gap: 10px;
    margin: 0 2px 8px; font-size: .78rem; font-weight: 650; color: #475569;
}
.lp2-customers .crm-select-all,
.lp2-customers .crm-perpage { display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; color: #334155; }
.lp2-customers .crm-select-all input,
.lp2-customers .crm-pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--lp2-h3); cursor: pointer; }
.lp2-customers .crm-showing { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp2-customers .crm-perpage select {
    height: 32px; width: auto; min-width: 58px; padding: 0 24px 0 10px !important; border-radius: 10px !important;
    border: 1px solid var(--lp2-line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16'%3E%3Cpath fill='%23334155' d='M1.6 5.1a.8.8 0 0 1 1.1 0L8 10.3l5.3-5.2a.8.8 0 1 1 1.1 1.1l-5.8 5.8a.8.8 0 0 1-1.1 0L1.6 6.2a.8.8 0 0 1 0-1.1z'/%3E%3C/svg%3E") no-repeat right 8px center;
    font-size: .8rem; font-weight: 700; color: #000;
}

.lp2-customers .crm-bulkbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 12px; margin: 0 0 10px; border-radius: 14px;
    background: color-mix(in srgb, var(--lp2-h3) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--lp2-h3) 24%, #fff);
    font-size: .82rem; color: #1e293b;
}
.lp2-customers .crm-bulkbar-n { flex: 1 1 auto; min-width: 0; }
.lp2-customers .crm-bulkbar-n b { color: #000; font-size: .95rem; }
.lp2-customers .crm-btn-danger { color: #b91c1c !important; border-color: #fecaca !important; background: #fff !important; }
.lp2-customers .crm-btn-danger:hover { background: #fef2f2 !important; }

.lp2-customers .sx-item { gap: 10px; }
/* VIP and Frequent side by side, so a row stays one line tall */
.lp2-customers .lp2-badges { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 3px; }
.lp2-customers .crm-pick { flex: 0 0 auto; display: flex; align-items: center; padding: 8px 0; margin: -8px 0; cursor: pointer; }
.lp2-customers .sx-meta .lp2-tag { margin-right: 2px; }
/* the smallest phones: the tick box leads the row, the letter avatar gives way to the name */
@media (max-width: 359px) {
    .lp2-customers .sx-item .sx-ico { display: none; }
}

/* ---- /loyalty ----------------------------------------------------------------------- */

.lp2-loyalty .crm-panel {
    background: #fff; border: 1px solid var(--lp2-line); border-radius: 18px;
    margin: 0 0 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); overflow: hidden;
}
.lp2-loyalty .crm-panel > summary {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none;
}
.lp2-loyalty .crm-panel > summary::-webkit-details-marker { display: none; }
.lp2-loyalty .crm-panel-ic {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1rem;
    background: color-mix(in srgb, var(--lp2-h3) 12%, #fff); color: var(--lp2-deep);
}
.lp2-loyalty .crm-panel-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lp2-loyalty .crm-panel-t b { font-size: .9rem; font-weight: 800; color: #000; }
.lp2-loyalty .crm-panel-t em {
    font-style: normal; font-size: .76rem; font-weight: 600; color: #475569;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp2-loyalty .crm-panel-go { flex-shrink: 0; display: flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 800; color: var(--lp2-deep); }
.lp2-loyalty .crm-panel-go i { transition: transform .15s ease; }
.lp2-loyalty .crm-panel[open] .crm-panel-go i { transform: rotate(180deg); }
.lp2-loyalty .crm-panel-body {
    display: flex; flex-direction: column; gap: 12px;
    padding: 14px; border-top: 1px solid #eef1f5;
}
.lp2-loyalty .crm-toggle-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; border-radius: 14px; background: #f8fafc; border: 1px solid #eef1f5; cursor: pointer;
}
.lp2-loyalty .crm-toggle-row b { display: block; font-size: .86rem; font-weight: 800; color: #000; }
.lp2-loyalty .crm-toggle-row em { display: block; font-style: normal; font-size: .74rem; font-weight: 600; color: #475569; margin-top: 1px; }
.lp2-loyalty .crm-ly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.lp2-loyalty .crm-ly-grid .input-group { margin: 0; min-width: 0; }
@media (min-width: 1000px) {
    .lp2-loyalty .crm-ly-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lp2-loyalty .crm-panel-save { align-self: flex-start; }

/* ---- /suppliers ---------------------------------------------------------------------- */

/* app.css turns .sup-list into a two-column grid from 760px, where a long
   name widened the first column past the page. One list card here. */
.lp2-suppliers .sup-list { display: flex; grid-template-columns: minmax(0, 1fr); gap: 0; }
/* app.css gives .supplier-card display:flex !important, which beat the inline
   display:none App.filterList sets — the search never hid anyone. */
.lp2-suppliers .sup-list .supplier-card[style*="display: none"] { display: none !important; }
.lp2-suppliers .sx-meta .sx-tag i { color: var(--lp2-h3); }

/* ---- /crm-sms ------------------------------------------------------------------------- */

/* two columns (composer + utilities) only where there is room beside the sidebar */
@media (min-width: 1000px) and (max-width: 1099px) {
    .lp2-sms .sms-layout { grid-template-columns: minmax(0, 1fr); }
    .lp2-sms .sms-layout-side { position: static; }
}
@media (min-width: 1100px) {
    .lp2-sms .sms-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}
.lp2-sms .sms-compose { padding: 16px !important; }
.lp2-sms .sms-step { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .82rem; font-weight: 800; color: #000; }
.lp2-sms .sms-step:not(:first-child) { margin-top: 18px; }
.lp2-sms .sms-step span {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--lp2-h3), var(--lp2-h1));
}
.lp2-sms .sms-aud-pill { border-color: var(--lp2-line); color: #1e293b; }
.lp2-sms .sms-aud-pill i { color: var(--lp2-h3); opacity: 1; }
.lp2-sms .sms-aud-pill b { color: #475569; }
.lp2-sms .sms-aud-pill.active { border-color: var(--lp2-h3); background: color-mix(in srgb, var(--lp2-h3) 8%, #fff); color: #000; }
.lp2-sms .sms-aud-pill.active b { color: var(--lp2-deep); }
.lp2-sms .sms-aud-note {
    display: flex; gap: 8px; margin-top: 10px; padding: 9px 11px; border-radius: 12px;
    background: #eff6ff; border: 1px solid #bfdbfe; font-size: .76rem; line-height: 1.45; color: #1e3a8a;
}
.lp2-sms .sms-aud-note i { color: #1d4ed8; }
.lp2-sms .sms-picker { background: #f8fafc; border-color: var(--lp2-line); }
.lp2-sms .crm-pick-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.lp2-sms .crm-pick-row:hover { background: #fff; }
.lp2-sms .crm-pick-row.on { background: color-mix(in srgb, var(--lp2-h3) 9%, #fff); }
.lp2-sms .crm-pick-row input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--lp2-h3); }
.lp2-sms .crm-pick-body { min-width: 0; }
.lp2-sms .crm-pick-name { font-weight: 750; font-size: .86rem; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp2-sms .crm-pick-sub { font-size: .74rem; color: #475569; font-weight: 600; }
.lp2-sms .crm-pick-empty { padding: 18px 8px; text-align: center; color: #475569; font-size: .82rem; }

.lp2-sms .crm-chip-lbl { margin: 0 0 6px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #334155; }
.lp2-sms .crm-scroll { margin-bottom: 10px; }
.lp2-sms .crm-scroll .sms-chip-row { flex-wrap: nowrap; gap: 6px; padding: 1px 0 3px; }
@media (min-width: 1100px) {
    .lp2-sms .crm-scroll .sms-chip-row { flex-wrap: wrap; }
    .lp2-sms .crm-scroll .sms-chip { flex: 0 1 auto; max-width: 100%; white-space: normal; text-align: left; }
}
.lp2-sms .sms-chip { background: #fff; border-color: var(--lp2-line); color: #1e293b; }
.lp2-sms .sms-chip i { color: var(--lp2-h3); }
.lp2-sms .sms-chip:hover { background: color-mix(in srgb, var(--lp2-h3) 8%, #fff); border-color: var(--lp2-h3); color: #000; }
.lp2-sms .sms-sender-chip.active { background: color-mix(in srgb, var(--lp2-h3) 10%, #fff); border-color: var(--lp2-h3); color: var(--lp2-deep); }
.lp2-sms .sms-sender-chip.active i { color: var(--lp2-deep); }
.lp2-sms .sms-msg { margin-top: 12px; border-color: var(--lp2-line); }
.lp2-sms .sms-msg:focus { border-color: var(--lp2-h3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp2-h3) 18%, transparent); }
.lp2-sms .sms-summary { color: #475569; }
.lp2-sms .sms-summary b { color: #000; }
.lp2-sms .sms-sender-line { color: #475569; }

.lp2-sms .sms-tab-bar { display: flex; width: 100%; margin: 0 0 12px; }
.lp2-sms .sms-tab { flex: 1 1 0; justify-content: center; }
.lp2-sms .doc-tab.active i { color: var(--lp2-h3); }
.lp2-sms .crm-tab-n {
    display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: #e2e8f0; color: #334155; font-size: .64rem; font-weight: 800;
}
.lp2-sms .crm-tab-n.crm-tab-warn { background: #fef3c7; color: #92400e; }
@media (max-width: 440px) {
    .lp2-sms .sms-tab i { display: none; }
    .lp2-sms .sms-tab { padding-left: 6px; padding-right: 6px; }
}
.lp2-sms .crm-hist-search { margin: 0 0 10px; }
.lp2-sms .crm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.lp2-sms .crm-panel-head > span { font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #334155; }
.lp2-sms .crm-block-btn { margin: 0 0 12px; }
.lp2-sms .sms-layout-side .sx-item { align-items: flex-start; }
.lp2-sms .crm-sms-msg {
    margin-top: 5px; font-size: .78rem; line-height: 1.45; color: #334155; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp2-sms .crm-sms-err { margin-top: 4px; font-size: .72rem; font-weight: 650; color: #b91c1c; }
.lp2-sms .crm-row-tools { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.lp2-sms .crm-row-tools .sx-act { padding: 5px 10px; }
.lp2-sms .crm-act-danger { color: #b91c1c !important; }
.lp2-sms .crm-sender-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; font-size: .72rem; font-weight: 700; color: #475569; }
.lp2-sms .crm-sender-badges .badge { font-size: .62rem; }

/* ---- /whatsapp-sync --------------------------------------------------------------------- */

.lp2-wa .crm-menu { position: relative; }
.lp2-wa .crm-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lp2-wa .crm-menu > summary::-webkit-details-marker { display: none; }
.lp2-wa .crm-menu[open] > summary { border-color: #94a3b8; background: #f8fafc; }
.lp2-wa .crm-menu-pop {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
    min-width: 196px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .45);
}
.lp2-wa .crm-menu-pop .crm-menu-item {
    justify-content: flex-start; width: 100%; min-height: 38px; gap: 9px;
    padding: 8px 10px !important; border: 0 !important; border-radius: 10px !important;
    background: transparent !important; box-shadow: none !important;
    color: #0f172a !important; font-size: .84rem; font-weight: 700;
}
.lp2-wa .crm-menu-pop .crm-menu-item:hover { background: #f1f5f9 !important; }
.lp2-wa .crm-menu-pop .crm-menu-item i { color: var(--lp2-h3); }
.lp2-wa .crm-menu-pop .crm-menu-danger,
.lp2-wa .crm-menu-pop .crm-menu-danger i { color: #b91c1c !important; }

.lp2-wa .crm-scroll { margin-bottom: 14px; }
.lp2-wa .wa-tabs {
    margin: 0; padding: 4px; gap: 3px;
    background: #eef2f6; border: 1px solid var(--lp2-line); border-radius: 14px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05);
}
.lp2-wa .wa-tabs .wa-tab { flex: 1 0 auto; padding: 8px 13px; color: #334155; font-size: .82rem; }
.lp2-wa .wa-tabs .wa-tab:hover:not(.active) { background: rgba(255, 255, 255, .7); color: #000; }
.lp2-wa .wa-tabs .wa-tab.active {
    background: #fff; color: #000;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 6px 14px -8px rgba(15, 23, 42, .35);
}
.lp2-wa .wa-tabs .wa-tab.active i { color: var(--lp2-h3); }
.lp2-wa .crm-scroll.crm-more-right::after { right: 4px; }

/* the connect card */
.lp2-wa .wa-hero {
    max-width: 560px; border-radius: 22px; border: 1px solid var(--lp2-line);
    background: radial-gradient(120% 70% at 50% 0%, #dcfce7 0%, #fff 62%);
    box-shadow: 0 22px 44px -30px rgba(4, 90, 66, .55);
}
.lp2-wa .wa-hero-title { color: #000; }
.lp2-wa .wa-hero-sub,
.lp2-wa .wa-hero-note { color: #475569; }
.lp2-wa .wa-hero-note b { color: #000; }

/* chats */
.lp2-wa .wa-chat,
.lp2-wa .wa-bc-list,
.lp2-wa .wa-logs { border-color: var(--lp2-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.lp2-wa .wa-cl-title,
.lp2-wa .wa-conv-name,
.lp2-wa .wa-cm-name { color: #000; }
.lp2-wa .wa-conv-last,
.lp2-wa .wa-conv-time,
.lp2-wa .wa-cm-phone { color: #475569; }
.lp2-wa .wa-conv.active { background: color-mix(in srgb, var(--lp2-h3) 9%, #fff); box-shadow: inset 3px 0 0 var(--lp2-h3); }
.lp2-wa .wa-cm-msgs { background: #f1efe9; }
.lp2-wa .wa-day { display: flex; justify-content: center; margin: 10px 0 6px; }
.lp2-wa .wa-day span {
    padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #e7e2d8;
    font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #334155;
    box-shadow: 0 1px 1px rgba(15, 23, 42, .06);
}
.lp2-wa .wa-cm-crm { background: #f8fafc; color: #475569; }

/* broadcast, catalog, templates */
.lp2-wa .wa-cat-act,
.lp2-wa .wa-tpl { background: #fff; border-color: var(--lp2-line); border-radius: 16px; }
.lp2-wa .wa-cat-act-s,
.lp2-wa .wa-tpl-meta,
.lp2-wa .wa-bc-phone { color: #475569; }
.lp2-wa .wa-bc-modes { background: #eef2f6; border: 1px solid var(--lp2-line); border-radius: 14px; }
.lp2-wa .wa-bc-modes .wa-tab.active { background: #fff; color: #000; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }

/* automations */
.lp2-wa .crm-wa-flows { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.lp2-wa .crm-wa-flow { display: flex; gap: 12px; padding: 13px; border-radius: 16px; background: #fff; border: 1px solid var(--lp2-line); }
.lp2-wa .crm-wa-flow-ic {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1rem;
    background: color-mix(in srgb, var(--lp2-h3) 12%, #fff); color: var(--lp2-deep);
}
.lp2-wa .crm-wa-flow-b { min-width: 0; }
.lp2-wa .crm-wa-flow-t { font-weight: 800; font-size: .88rem; color: #000; }
.lp2-wa .crm-wa-flow-s { font-size: .78rem; line-height: 1.5; color: #475569; margin: 4px 0 8px; }
.lp2-wa .crm-wa-test { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--lp2-line); }
.lp2-wa .crm-wa-test-t { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 800; color: #000; }
.lp2-wa .crm-wa-test-t i { color: var(--lp2-h3); }
.lp2-wa .crm-wa-test-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.lp2-wa .crm-wa-test-row .input-group { flex: 1 1 200px; margin: 0; }

/* ---- /crm-wallet ------------------------------------------------------------------------ */

.lp2-wallet .wallet-tab-bar { display: flex; width: 100%; margin: 0 0 12px; }
.lp2-wallet .wallet-tab { flex: 1 1 0; justify-content: center; }
.lp2-wallet .doc-tab.active i { color: var(--lp2-h3); }
.lp2-wallet .crm-pending { font-weight: 750; color: #92400e; }
/* a pending top-up keeps Pay / Check status in view on every screen */
.lp2-wallet .sx-item.crm-acts-open { flex-wrap: wrap; }
.lp2-wallet .sx-item.crm-acts-open .sx-item-actions {
    display: flex !important; flex-wrap: wrap; order: 4; width: 100%;
    position: static !important; transform: none !important; opacity: 1 !important; pointer-events: auto !important;
    margin: 0 !important; padding: 10px 0 0 52px !important; border: 0 !important; background: none !important;
}

/* ---- /crm-reports ----------------------------------------------------------------------- */

.lp2-crmrep .crm-rep-card {
    max-width: 760px; overflow: hidden;
    background: #fff; border: 1px solid var(--lp2-line); border-radius: 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.lp2-crmrep .crm-rep-top {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; gap: 14px; padding: 18px;
    color: #fff; background: linear-gradient(135deg, var(--lp2-h1) 0%, var(--lp2-h2) 55%, var(--lp2-h3) 100%);
}
.lp2-crmrep .crm-rep-top::after {
    content: ""; position: absolute; z-index: -1; right: -40px; top: -60px;
    width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.lp2-crmrep .crm-rep-ic {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 15px;
    display: grid; place-items: center; font-size: 1.4rem;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24);
}
.lp2-crmrep .crm-rep-t { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.lp2-crmrep .crm-rep-s { margin-top: 2px; font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .88); }
.lp2-crmrep .crm-rep-s b { color: #fff; }
.lp2-crmrep .crm-rep-form { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #eef1f5; }
.lp2-crmrep .crm-rep-form .input-group { margin: 0; }
.lp2-crmrep .crm-rep-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 360px) {
    .lp2-crmrep .crm-rep-dates { grid-template-columns: 1fr; }
}
.lp2-crmrep .crm-rep-list-t { padding: 14px 18px 4px; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #334155; }
.lp2-crmrep .crm-rep-list { list-style: none; margin: 0; padding: 6px 18px 18px; display: grid; gap: 12px; }
@media (min-width: 900px) {
    .lp2-crmrep .crm-rep-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lp2-crmrep .crm-rep-list li { display: flex; align-items: flex-start; gap: 10px; }
.lp2-crmrep .crm-rep-list li > span {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center; font-size: .9rem;
    background: color-mix(in srgb, var(--lp2-h3) 12%, #fff); color: var(--lp2-deep);
}
.lp2-crmrep .crm-rep-list b { display: block; font-size: .86rem; color: #000; }
.lp2-crmrep .crm-rep-list em { display: block; margin-top: 1px; font-style: normal; font-size: .76rem; line-height: 1.45; color: #475569; }

/* ==========================================================================
   Pop-ups (rendered under <body>)
   ========================================================================== */

body.lp2-app .modal .form-stack > .crm-span { grid-column: 1 / -1; }
body.lp2-app .modal .crm-sec { display: flex; align-items: center; gap: 6px; margin: 16px 0 8px; }
body.lp2-app .modal .form-stack > .crm-sec { margin: 4px 0 0; }
body.lp2-app .modal .crm-count {
    display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: #eef2f7; color: #334155; font-size: .64rem; font-weight: 800; letter-spacing: 0;
}
body.lp2-app .modal .crm-none {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px; border-radius: 14px; background: #f8fafc; border: 1px dashed #d5dde8;
    font-size: .8rem; font-weight: 600; color: #475569;
}
body.lp2-app .modal .crm-modal-loading,
body.lp2-app #page-content .crm-modal-loading { text-align: center; padding: 22px; color: #475569; }
body.lp2-app .modal .crm-row-note { font-size: .74rem; font-weight: 650; color: #475569; }

/* headline figures inside a pop-up (customer, supplier) */
body.lp2-app .modal .crm-mstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.lp2-app .modal .crm-mstat { min-width: 0; padding: 10px 12px; border-radius: 14px; background: #f8fafc; border: 1px solid #e7ebf1; }
body.lp2-app .modal .crm-mstat b {
    display: block; font-size: .94rem; font-weight: 800; color: #000; line-height: 1.25;
    overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
body.lp2-app .modal .crm-mstat span { display: block; margin-top: 1px; font-size: .68rem; font-weight: 650; color: #475569; }

/* customer card */
body.lp2-app .modal .crm-profile {
    display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--sx-c, #7c3aed) 12%, #fff) 0%, #fff 72%);
    border: 1px solid color-mix(in srgb, var(--sx-c, #7c3aed) 22%, #fff);
}
body.lp2-app .modal .crm-profile-av {
    flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.05rem; font-weight: 800; color: #fff;
    background: var(--sx-c, #7c3aed); box-shadow: 0 10px 20px -12px var(--sx-c, #7c3aed);
}
body.lp2-app .modal .crm-profile-body { min-width: 0; }
body.lp2-app .modal .crm-profile-name { font-size: 1.05rem; font-weight: 800; color: #000; line-height: 1.25; overflow-wrap: anywhere; }
body.lp2-app .modal .crm-profile-sub { margin-top: 2px; font-size: .8rem; font-weight: 600; color: #475569; }
body.lp2-app .modal .crm-profile-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
body.lp2-app .modal .crm-profile-tags .badge { font-size: .64rem; }
body.lp2-app .modal .crm-profile-tags .lp2-tag {
    display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 6px;
    font-size: .6rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.6;
    color: var(--t, #334155); background: color-mix(in srgb, var(--t, #334155) 9%, #fff);
    border: 1px solid color-mix(in srgb, var(--t, #334155) 22%, #fff);
}
body.lp2-app .modal .crm-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
body.lp2-app .modal .crm-quick-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-width: 0; padding: 10px 4px; border-radius: 14px;
    border: 1px solid #e2e8f0; background: #fff; color: #0f172a;
    font: inherit; font-size: .72rem; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
body.lp2-app .modal .crm-quick-btn i { font-size: 1.1rem; color: #6d28d9; }
body.lp2-app .modal .crm-quick-btn .bi-whatsapp { color: #16a34a; }
body.lp2-app .modal .crm-quick-btn:hover { border-color: #c4b5fd; background: #faf5ff; }
body.lp2-app .modal .crm-orders .data-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
body.lp2-app .modal .crm-orders .badge { font-size: .6rem; text-transform: capitalize; }

/* adding customers */
body.lp2-app .modal .cust-add-q { font-size: .86rem; font-weight: 600; color: #475569; }
body.lp2-app .modal .cust-add-choice {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    padding: 14px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
body.lp2-app .modal .cust-add-choice:hover { border-color: var(--c, #6d28d9); background: color-mix(in srgb, var(--c, #6d28d9) 5%, #fff); }
body.lp2-app .modal .cust-add-choice:active { transform: scale(.99); }
body.lp2-app .modal .cust-add-choice-icon {
    flex: 0 0 44px; height: 44px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.15rem; color: #fff;
    background: var(--c, #6d28d9); box-shadow: 0 8px 16px -10px var(--c, #6d28d9);
}
body.lp2-app .modal .cust-add-choice-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.lp2-app .modal .cust-add-choice-title { font-weight: 800; font-size: .95rem; color: #000; }
body.lp2-app .modal .cust-add-choice-sub { font-size: .8rem; color: #475569; line-height: 1.35; }
body.lp2-app .modal .cust-add-choice-go { flex: 0 0 auto; color: #64748b; }

body.lp2-app .modal .cust-import-intro { font-size: .86rem; line-height: 1.5; color: #334155; }
body.lp2-app .modal .cust-import-intro b { color: #000; }
body.lp2-app .modal .cust-import-drop {
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer;
    padding: 22px 14px; border: 1.5px dashed #cbd5e1; border-radius: 16px; background: #f8fafc;
    transition: border-color .15s ease, background .15s ease;
}
body.lp2-app .modal .cust-import-drop:hover { border-color: #059669; background: #f0fdf4; }
body.lp2-app .modal .cust-import-drop > i { font-size: 1.7rem; color: #059669; }
body.lp2-app .modal .cust-import-drop input { display: none; }
body.lp2-app .modal .cust-import-fname { font-weight: 800; font-size: .92rem; color: #000; overflow-wrap: anywhere; }
body.lp2-app .modal .cust-import-hint,
body.lp2-app .modal .cust-import-note { font-size: .78rem; line-height: 1.5; color: #475569; }
body.lp2-app .modal .cust-import-result { border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; background: #f8fafc; font-size: .86rem; }
body.lp2-app .modal .cust-import-errors { margin: 8px 0 0; padding-left: 18px; max-height: 190px; overflow-y: auto; font-size: .8rem; color: #475569; }
body.lp2-app .modal .cust-import-errors li { margin-bottom: 3px; }
/* the sheet can be wider than a phone: the preview scrolls sideways in its own box */
body.lp2-app .modal .cust-review-scroll { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 14px; }
body.lp2-app .modal .cust-review-table { border-collapse: collapse; font-size: .8rem; min-width: 100%; }
body.lp2-app .modal .cust-review-table th { padding: 8px; vertical-align: top; min-width: 150px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
body.lp2-app .modal .cust-review-table td { padding: 6px 8px; border-top: 1px solid #eef1f5; white-space: nowrap; color: #334155; }
body.lp2-app .modal .cust-review-head { font-weight: 800; font-size: .78rem; color: #000; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.lp2-app .modal .cust-review-field { width: 100%; font-size: .8rem; padding: 6px 8px; }
body.lp2-app .modal .cust-review-field.is-phone { border-color: #059669; font-weight: 800; box-shadow: 0 0 0 2px rgba(5, 150, 105, .15); }
body.lp2-app .modal .cust-review-tally {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px;
    background: linear-gradient(135deg, #ecfdf5, #fff); border: 1px solid #bbf7d0;
}
body.lp2-app .modal .cust-review-tally.empty { background: #f8fafc; border-color: #e2e8f0; }
body.lp2-app .modal .cust-review-tally-big { font-size: 1.8rem; font-weight: 800; line-height: 1; color: #047857; font-variant-numeric: tabular-nums; }
body.lp2-app .modal .cust-review-tally.empty .cust-review-tally-big { color: #64748b; }
body.lp2-app .modal .cust-review-tally-t { font-weight: 800; color: #000; }
body.lp2-app .modal .cust-review-tally-s { font-size: .8rem; color: #475569; }
body.lp2-app .modal .cust-skip-btn { justify-self: start; }

/* loyalty member */
body.lp2-app .modal .crm-ly-bals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.lp2-app .modal .crm-ly-bal {
    min-width: 0; padding: 12px 14px; border-radius: 16px;
    background: color-mix(in srgb, var(--c, #b45309) 7%, #fff);
    border: 1px solid color-mix(in srgb, var(--c, #b45309) 22%, #fff);
}
body.lp2-app .modal .crm-ly-bal span { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--c, #b45309) 78%, #000); }
body.lp2-app .modal .crm-ly-bal b { display: block; margin-top: 2px; font-size: 1.28rem; font-weight: 800; color: #000; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.lp2-app .modal .crm-ly-bal em { display: block; margin-top: 2px; font-style: normal; font-size: .72rem; font-weight: 600; color: #475569; }
body.lp2-app .modal .stmt-table .badge { font-size: .6rem; }
body.lp2-app .modal .crm-td-empty { text-align: center; color: #475569; padding: 16px !important; }

/* message suppliers */
body.lp2-app .modal .crm-to {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
    background: #f0fdfa; border: 1px solid #ccfbf1;
}
body.lp2-app .modal .crm-to > i {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center; background: #0f766e; color: #fff;
}
body.lp2-app .modal .crm-to b { display: block; font-size: .88rem; color: #000; }
body.lp2-app .modal .crm-to span { display: block; font-size: .76rem; font-weight: 600; color: #475569; }
body.lp2-app .modal .crm-chip-lbl { margin: 0 0 6px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #334155; }
body.lp2-app .modal .crm-sender-note { text-align: center; font-size: .76rem; color: #475569; }
body.lp2-app .modal .info-banner.crm-warn { background: #fffbeb; border-color: #fde68a; }
body.lp2-app .modal .info-banner.crm-warn > i { color: #b45309; }

/* ==========================================================================
   Customer birthdays: the Day / Month / Year field (customer forms) and
   CRM → Birthdays (/crm-birthdays, .lp2-bd). assets/js/app/birthdays.js
   ========================================================================== */
.bday-pick { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 132px); gap: 8px; }
.bday-pick select, .bday-pick input { width: 100%; min-width: 0; }
.bday-hint { margin-top: 4px; font-size: .72rem; font-weight: 600; color: #64748b; }

.lp2-bd .bd-card { margin: 14px 0; padding: 16px; background: #fff; border: 1px solid var(--lp2-line, #e6eaf0); border-radius: 18px; }
.lp2-bd .bd-sms-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.lp2-bd .bd-sms-head h2 { margin: 0; font-size: .98rem; font-weight: 800; color: #000; }
.lp2-bd .bd-sms-head p { margin: 3px 0 0; font-size: .78rem; font-weight: 600; color: #64748b; }
.lp2-bd .bd-credit { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 10px; border-radius: 999px; font-size: .76rem; font-weight: 750; }
.lp2-bd .bd-credit.is-ok { background: #ecfdf5; color: #047857; }
.lp2-bd .bd-credit.is-bad { background: #fef2f2; color: #b91c1c; }
.lp2-bd .bd-topup { margin-left: 6px; vertical-align: middle; }
.lp2-bd .bd-msg { margin: 12px 0 0; }
.lp2-bd .bd-msg textarea { resize: vertical; min-height: 76px; }
.lp2-bd .bd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: .74rem; font-weight: 700; color: #64748b; }
.lp2-bd .bd-tags button { height: 28px; padding: 0 9px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; font: inherit; font-size: .74rem; font-weight: 750; color: #334155; cursor: pointer; }
.lp2-bd .bd-tags .bd-reset { border: 0; background: none; color: #047857; text-decoration: underline; }
.lp2-bd .bd-preview { margin-top: 12px; }
.lp2-bd .bd-bubble { max-width: 420px; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #f1f5f9; font-size: .84rem; line-height: 1.45; color: #000; white-space: pre-wrap; overflow-wrap: anywhere; }
.lp2-bd .bd-parts { margin-top: 5px; font-size: .72rem; font-weight: 650; color: #64748b; }
.lp2-bd .bd-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lp2-bd .bd-tabs { margin-bottom: 12px; }
.lp2-bd .bd-tabs em { font-style: normal; font-size: .72rem; font-weight: 800; opacity: .75; margin-left: 2px; }
.lp2-bd .bd-row .sx-ico i { font-size: 1.1rem; }
.lp2-bd .bd-row.is-today .sx-ico { background: #fdf2f8; color: #db2777; border-color: #fbcfe8; }
.lp2-bd .bd-row.is-past { opacity: .78; }
.lp2-bd .bd-today { color: #be185d; }
.lp2-bd .bd-sms-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.lp2-bd .bd-sms-tag.is-ok { background: #ecfdf5; color: #047857; }
.lp2-bd .bd-sms-tag.is-bad { background: #fef2f2; color: #b91c1c; }
.lp2-bd .bd-sms-tag.is-wait { background: #eff6ff; color: #1d4ed8; }
.lp2-bd .bd-sms-tag.is-off { background: #f1f5f9; color: #475569; }
.lp2-bd .bd-missing { margin-top: 14px; }
.lp2-bd .sd-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: #047857; cursor: pointer; text-decoration: underline; }

/* ==========================================================================
   CRM > SMS > Schedule for later (src/api/sms_schedule.php)
   ========================================================================== */
.sms-later-btn { margin-top: 8px; font-weight: 800; }
.sms-later-box { margin-top: 10px; padding: 14px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 10px; }
.sms-later-box[hidden] { display: none; }
.sms-later-box label { font-weight: 800; font-size: .84rem; color: #000; }
.sms-later-box input[type="datetime-local"] { width: 100%; box-sizing: border-box; height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #cbd5e1; font: inherit; color: #000; background: #fff; }
.sms-later-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.sms-later-note { margin: 0; font-size: .76rem; color: #475569; line-height: 1.45; }
.sms-sched-list { display: flex; flex-direction: column; gap: 10px; }
.sms-sched { padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 6px; }
.sms-sched-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sms-sched-h b { font-size: .88rem; color: #000; }
.sms-sched-st { font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #334155; }
.sms-sched-st.is-sch { background: #ede9fe; color: #5b21b6; }
.sms-sched-st.is-run { background: #e0f2fe; color: #075985; }
.sms-sched-st.is-wait { background: #fef3c7; color: #92400e; }
.sms-sched-st.is-ok { background: #dcfce7; color: #166534; }
.sms-sched-st.is-bad { background: #fee2e2; color: #991b1b; }
.sms-sched-m { font-size: .86rem; color: #000; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.sms-sched-f { display: flex; flex-wrap: wrap; gap: 10px; font-size: .74rem; color: #475569; }
.sms-sched-note { font-size: .76rem; color: #92400e; }
.sms-sched-a { display: flex; gap: 6px; justify-content: flex-end; }
.sms-sched-a .sms-sched-x { color: #b91c1c; }
