﻿/* =====================================================================================
   MobileApp additions on top of the GST theme (gst.min.css = the GST project's own CSS).
   Only things the GST project does not have: loading bar, skeleton rows, the bill screen parts
   for phones / IMEI / EMI, the printed invoice and receipt. Colours and sizes use the GST tokens.
   ===================================================================================== */

/* loading bar at the top while the page talks to the server */
.app-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100050; background: var(--sky); box-shadow: 0 0 8px rgba(34, 184, 230, .6); opacity: 0; transition: width .4s ease, opacity .3s; pointer-events: none; }
.app-progress.is-on { opacity: 1; width: 72%; transition: width 8s cubic-bezier(.1, .7, .1, 1), opacity .2s; }
.app-progress.is-done { width: 100%; opacity: 0; transition: width .2s, opacity .4s .2s; }

/* skeleton rows while a list loads */
.mc-skel-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line-2); }
.mc-skel-row:last-child { border-bottom: 0; }
.mc-skel { display: inline-block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2), #f8fbfd, var(--line-2)); background-size: 200% 100%; animation: mcSkel 1.2s infinite; }
@keyframes mcSkel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* a button that is working (no double tap) */
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); border-top-color: #fff; animation: mcspin .7s linear infinite; }
.btn-light.is-busy::after, .btn-outline-primary.is-busy::after { border-color: var(--brand-100); border-top-color: var(--brand); }
@keyframes mcspin { to { transform: rotate(360deg); } }

/* list: whole row opens the record */
.mc-lv__table tr.is-click { cursor: pointer; }
.mc-lv__table tr.is-click:hover td { background: var(--soft); }
.mc-card-row[data-href] { cursor: pointer; }
.mc-lv__tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mc-lv__tools .form-control, .mc-lv__tools .select2-container { min-width: 140px; width: auto !important; }
.mc-lv__tools input[type=date].form-control { width: 150px !important; }
@media (max-width: 767px) { .mc-lv__tools { width: 100%; } .mc-lv__tools > * { flex: 1 1 140px; } }
.mc-lv .mc-empty .btn { margin-top: 12px; }

/* key-value lines (detail pages, bill summary) */
.mc-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; margin: 0; }
.mc-kv dt { color: var(--muted); font-weight: 500; }
.mc-kv dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.mc-kv dd.is-big { font-size: 18px; font-weight: 800; }
.mc-kv .mc-kv__line { grid-column: 1 / -1; border-top: 1px dashed var(--line); margin: 2px 0; }

/* ---------------------------------------------------------------- bill screens (New sale / New purchase): GST mc-doc2 layout + item finder */
.mc-find { position: relative; }
.mc-find__box { display: flex; gap: 8px; }
.mc-find__input { position: relative; flex: 1 1 auto; }
.mc-find__input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--brand); pointer-events: none; }
.mc-find__input .form-control { height: 48px; padding-left: 42px; font-size: 15px; border: 1.5px solid var(--brand-200); background: var(--brand-50); border-radius: 12px; }
.mc-find__input .form-control:focus { background: var(--card); border-color: var(--brand); }
.mc-find__scan { height: 48px; min-width: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; }
.mc-find__scan i { font-size: 20px; }
.mc-find__panel { position: absolute; left: 0; right: 0; top: 54px; z-index: 40; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); max-height: 360px; overflow: auto; padding: 6px; }
.mc-find__grp { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px 4px; }
.mc-find__item { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 10px; color: var(--text); cursor: pointer; }
.mc-find__item:hover, .mc-find__item.is-active { background: var(--brand-50); }
.mc-find__item > i { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 17px; flex: 0 0 34px; }
.mc-find__item > span { flex: 1 1 auto; min-width: 0; }
.mc-find__item b { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-find__item small { display: block; color: var(--muted); font-size: 12px; }
.mc-find__item em { font-style: normal; font-weight: 700; color: var(--ink); font-size: 13.5px; white-space: nowrap; }
.mc-find__item.is-out em { color: var(--red); }
.mc-find__empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.mc-find__hint { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.mc-find__hint i { color: var(--brand); }

/* the items of the bill */
.mc-items { margin-top: 14px; }
.mc-items table { width: 100%; border-collapse: separate; border-spacing: 0; }
.mc-items th { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 9px 8px; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.mc-items th:first-child { border-left: 1px solid var(--line); border-radius: 10px 0 0 0; } .mc-items th:last-child { border-right: 1px solid var(--line); border-radius: 0 10px 0 0; }
.mc-items td { padding: 10px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-size: 13.5px; }
.mc-items td.num, .mc-items th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mc-items .form-control { height: 38px; font-size: 14px; }
.mc-items .mc-items__qty { width: 76px; text-align: center; }
.mc-items .mc-items__rate { width: 118px; text-align: right; }
.mc-items .mc-items__imei { min-width: 150px; }
.mc-items .input-group .form-control, .mc-items .input-group .btn { height: 38px; }
.mc-items .input-group .btn { border: 1px solid var(--input); border-left: 0; color: var(--brand); padding: 0 10px; }
.mc-items__name b { display: block; color: var(--ink); font-weight: 600; }
.mc-items__name small { display: block; color: var(--muted); font-size: 12px; }
.mc-items__x { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--red); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer; }
.mc-items__x:hover { background: var(--red-50); border-color: #fecaca; }
.mc-items__empty { text-align: center; padding: 26px 10px 18px; color: var(--muted); border: 1px dashed var(--input); border-radius: 12px; background: var(--soft); }
.mc-items__empty i { display: block; font-size: 28px; color: var(--brand); margin-bottom: 4px; }
.mc-items__empty b { display: block; color: var(--ink); font-size: 14px; }
.mc-imei-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.mc-imei-chips .mc-chip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; display: inline-flex; align-items: center; gap: 4px; }
.mc-imei-chips .mc-chip button { border: 0; background: none; padding: 0; line-height: 1; color: inherit; cursor: pointer; font-size: 14px; }
.mc-imei-count { font-size: 12px; color: var(--muted); margin-top: 4px; }
.mc-imei-count.is-full { color: var(--green); font-weight: 600; }
@media (max-width: 767px) {
    .mc-items thead { display: none; }
    .mc-items table, .mc-items tbody, .mc-items tr, .mc-items td { display: block; width: 100%; }
    .mc-items tr { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px 46px 6px 12px; margin-bottom: 10px; background: var(--card); }
    .mc-items td { border: 0; padding: 3px 0; }
    .mc-items td[data-l]::before { content: attr(data-l); display: inline-block; min-width: 72px; color: var(--muted); font-size: 12px; }
    .mc-items td.num { text-align: left; }
    .mc-items td.mc-items__act { position: absolute; top: 8px; right: 8px; width: auto; padding: 0; }
    .mc-items .mc-items__qty, .mc-items .mc-items__rate { display: inline-block; width: 110px; }
    .mc-items .mc-items__imei { display: inline-block; width: calc(100% - 76px); min-width: 0; }
    /* V2.7 phone bill line: name, IMEI (full width), then Qty | Price | Amount in ONE row */
    .mc-items tr:not(.mc-items__sub) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 8px; align-items: end; padding: 10px 12px 12px; }
    .mc-items tr:not(.mc-items__sub) > td { width: auto; min-width: 0; padding: 0; }
    .mc-items td.mc-items__name { grid-column: 1 / -1; padding-right: 44px; }
    .mc-items td[data-l="IMEI"] { grid-column: 1 / -1; order: 1; }
    .mc-items td[data-l="IMEI"]:has(> .text-muted:only-child) { display: none; }
    .mc-items td[data-l="Qty"] { grid-column: 1; order: 2; }
    .mc-items td[data-l="Price"], .mc-items td[data-l="Rate"] { grid-column: 2; order: 3; }
    .mc-items td[data-l="Amount"] { grid-column: 3; order: 4; text-align: right; padding-bottom: 9px; }
    .mc-items td[data-l]::before { display: block; min-width: 0; font-size: 11px; font-weight: 600; letter-spacing: .02em; margin-bottom: 3px; }
    .mc-items td[data-l="Amount"]::before { text-align: right; }
    .mc-items tr td[data-l="IMEI"]::before { display: none; }
    .mc-items td[data-l="Amount"] b { font-size: 15px; white-space: nowrap; }
    .mc-items .form-control { height: 42px; font-size: 16px; }
    .mc-items .mc-items__rate { width: 100%; }
    .mc-items .mc-items__imei, .s-imei { width: 100%; min-width: 0 !important; }
    .s-imei .form-control { height: 42px !important; }
    .s-imei__scan { top: 4px !important; height: 34px !important; }
    .mc-items .mc-items__qty { width: 52px; }
    .mc-items .mc-qty .mc-items__qty { width: 40px; }
    .mc-items .mc-imeis { width: 100%; justify-content: center; min-height: 40px; }
    .mc-items td.mc-items__act { top: 6px; right: 6px; }
}
/* − qty + stepper: phones only (desktop keeps the plain box) */
.mc-qty { display: inline-flex; align-items: stretch; }
.mc-qty__b { display: none; }
@media (max-width: 767px) {
    .mc-qty { border: 1px solid var(--input); border-radius: 10px; overflow: hidden; background: var(--card); height: 42px; }
    .mc-qty .form-control { border: 0 !important; border-radius: 0 !important; height: 40px !important; padding: 0 2px; text-align: center; box-shadow: none !important; background: transparent; }
    .mc-qty__b { display: inline-flex; align-items: center; justify-content: center; width: 36px; border: 0; background: var(--soft); color: var(--brand-600); font-size: 20px; font-weight: 700; line-height: 1; padding: 0; }
    .mc-qty__b:active { background: var(--brand-50); }
}

/* customer card on the bill */
.mc-cust { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--brand-200); background: var(--brand-50); border-radius: 12px; }
.mc-cust b { display: block; color: var(--ink); }
.mc-cust small { color: var(--muted); }
.mc-cust > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }

/* payment choice: big touch buttons (GST segmented look) */
.mc-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mc-pay input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mc-pay label { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 10px 6px; min-height: 64px; border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--card); color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; text-align: center; transition: border-color .12s, background .12s; }
.mc-pay label i { font-size: 21px; color: var(--faint); }
.mc-pay label small { font-weight: 500; font-size: 11px; color: var(--faint); }
.mc-pay input:checked + label { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.mc-pay input:checked + label i { color: var(--brand); }
.mc-pay input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 1px; }
.mc-pay--4 { grid-template-columns: repeat(4, 1fr); }
.mc-pay--2 { grid-template-columns: repeat(2, 1fr); }
.mc-pay--row label { flex-direction: row; min-height: 48px; gap: 8px; }
@media (max-width: 400px) { .mc-pay--4 { grid-template-columns: repeat(2, 1fr); } }

/* EMI plan box */
.mc-emi-big { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--navy); color: #dce7f0; }
.mc-emi-big b { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.mc-emi-big small { color: #b8cadb; }
.mc-refs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 767px) { .mc-refs { grid-template-columns: 1fr; } }
.mc-ref { border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 2px; background: var(--soft); }
.mc-ref h4 { font-size: 13.5px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.mc-ref h4 i { color: var(--brand); }

/* status timeline (loan / settlement) */
.mc-steps { display: flex; gap: 0; margin: 4px 0 14px; }
.mc-steps > div { flex: 1 1 0; text-align: center; font-size: 11.5px; color: var(--faint); position: relative; padding-top: 22px; }
.mc-steps > div::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--line); z-index: 1; }
.mc-steps > div::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.mc-steps > div:first-child::after { display: none; }
.mc-steps > div.is-done { color: var(--ink); font-weight: 600; }
.mc-steps > div.is-done::before, .mc-steps > div.is-done::after { background: var(--brand); }

/* rules page */
.mc-rule { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.mc-rule:last-child { border-bottom: 0; }
.mc-rule__text b { display: block; color: var(--ink); font-size: 14px; }
.mc-rule__text small { color: var(--muted); font-size: 12.5px; }
.mc-rule__ctl { flex: 0 0 auto; }
.mc-rule__ctl .form-control { width: 140px; }
.mc-rule.is-changed { background: var(--amber-50); }

/* dashboard extras */
.mc-bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 6px 2px 0; }
.mc-bars__col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.mc-bars__bar { width: 100%; max-width: 38px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--sky), var(--brand)); min-height: 3px; position: relative; }
.mc-bars__bar.is-zero { background: var(--line); }
.mc-bars__col small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.mc-bars__col b { font-size: 11px; color: var(--ink); white-space: nowrap; }

/* sign-in / sign-up pages: GST login look */
.mc-auth__pw { position: relative; }
.mc-auth__pw .form-control { padding-right: 46px; }
.mc-auth__pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: 19px; width: 36px; height: 36px; border-radius: 8px; }
.mc-auth__pw button:hover { background: var(--soft); color: var(--ink); }

/* printed invoice / receipt (A4 / A5 and 80 mm thermal) */
.doc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; max-width: 820px; margin: 0 auto 16px; color: #111827; }
.doc__head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 12px; }
.doc__shop b { font-size: 20px; color: var(--ink); display: block; }
.doc__shop small { display: block; color: #4b5563; font-size: 12.5px; }
.doc__title { text-align: right; }
.doc__title h2 { font-size: 18px; margin: 0; letter-spacing: .04em; }
.doc table { width: 100%; font-size: 13px; }
.doc th { background: #f3f6f9; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 7px 8px; }
.doc td { padding: 7px 8px; border-bottom: 1px solid #edf1f5; }
.doc .num { text-align: right; font-variant-numeric: tabular-nums; }
.doc__foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.doc__sign { text-align: right; padding-top: 34px; font-size: 12.5px; color: #4b5563; }
.mc-stamp { display: inline-block; border: 2px solid var(--red); color: var(--red); padding: 2px 10px; border-radius: 6px; font-weight: 800; letter-spacing: .08em; transform: rotate(-6deg); }
@media print {
    body { background: #fff !important; }
    .mc-top, .mc-drawer, .mc-backdrop, .mc-bottom-nav, .mc-no-print, .mc-toasts, .app-progress, .mc-page-head__actions { display: none !important; }
    .mc-main { padding: 0 !important; }
    .doc { border: 0; padding: 0; max-width: none; }
    body.print-80 .doc { width: 72mm; font-size: 11px; }
}

/* skip link: only for keyboard users (a modal giving the focus back must not show it) */
.mc-skip:focus:not(:focus-visible) { top: -80px !important; outline: 0 !important; }

/* bill screens on phones: one column in working order (items, customer, payment, plan, total) */
@media (max-width: 991px) {
    .mc-doc2--flow .mc-doc2__main, .mc-doc2--flow .mc-doc2__side { display: contents; }
    .mc-doc2--flow .mc-doc2__grid > * , .mc-doc2--flow .mc-doc2__grid .mc-sec, .mc-doc2--flow .mc-doc2__grid .mc-sum { margin: 0; }
    .mc-doc2--flow .mc-doc2__grid { gap: 14px; }
    .o-1 { order: 1; } .o-2 { order: 2; } .o-3 { order: 3; } .o-4 { order: 4; } .o-5 { order: 5; } .o-6 { order: 6; }
}
@media (max-width: 575px) { .mc-emi-big { flex-direction: column; align-items: flex-start; } .mc-emi-big small.text-right { text-align: left !important; } }

/* New purchase: IMEIs per line (optional, up to the quantity) */
.mc-imeis { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 9px; border: 1px dashed var(--brand-200); background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.mc-imeis.is-full { border-style: solid; border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.mc-imeis i { font-size: 16px; }
.mc-items tr.mc-items__sub td { background: var(--soft); padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
.mc-imei-box { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-imei-box .input-group { flex: 1 1 260px; }
.mc-imei-box textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.mc-imei-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mc-imei-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 9px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--ink); }
.mc-imei-chip button { border: 0; background: none; color: var(--faint); width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.mc-imei-chip button:hover { background: var(--red-50); color: var(--red); }
.mc-imei-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.mc-find__add { display: flex; align-items: center; gap: 11px; width: 100%; border: 1px dashed var(--brand-200); background: var(--brand-50); text-align: left; padding: 10px; border-radius: 10px; color: var(--brand-700); font-weight: 700; cursor: pointer; margin-top: 4px; }
.mc-find__add i { font-size: 18px; }
@media (max-width: 767px) {
    .mc-items tr.mc-items__sub { display: block; border: 0; padding: 0; margin: -12px 0 12px; background: none; }
    .mc-items tr.mc-items__sub td { display: block; border-radius: 0 0 12px 12px; border: 1px solid var(--line); border-top: 0; }
}
.mc-fmodal .mc-switch-row { justify-content: space-between; margin-bottom: 0; }
@media (min-width: 992px) { .mc-page-head__actions { flex-wrap: nowrap; } }
@media (max-width: 767px) { .mc-page-head__actions .select2-container { flex: 1 1 auto; width: auto !important; min-width: 0; } }

/* status chip colours (the GST base .mc-chip rule comes later in its sheet and painted every chip blue) */
.mc-chip.mc-chip--green, .mc-chip.mc-chip--ok { background: var(--green-50); color: var(--green); }
.mc-chip.mc-chip--red, .mc-chip.mc-chip--bad { background: var(--red-50); color: var(--red); }
.mc-chip.mc-chip--amber, .mc-chip.mc-chip--warn { background: var(--amber-50); color: var(--amber); }
.mc-chip.mc-chip--teal { background: var(--teal-50, #e6f6f4); color: var(--teal, #0f766e); }
.mc-chip.mc-chip--violet { background: var(--violet-50); color: var(--violet); }
.mc-chip.mc-chip--orange { background: #fff1e6; color: #c2410c; }
.mc-chip.mc-chip--grey { background: var(--soft); color: var(--muted); }
html.mc-dark .mc-chip.mc-chip--green { color: #6fd7a6; } html.mc-dark .mc-chip.mc-chip--red { color: #ff9c9c; }
.mc-card-row__title .mc-sub { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-card-row__title b { display: block; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) {
    .mc-page-head__actions { width: 100%; }
    .mc-page-head__actions > .btn, .mc-page-head__actions > a.btn { flex: 1 1 0; justify-content: center; }
    .mc-page-head__actions .btn span { display: inline !important; }
    /* V3.0: 3 or more header buttons (e.g. Customers: Set area / Import from Excel / New customer) wrap two per row instead of being cut off */
    .mc-page-head__actions { flex-wrap: wrap; }
    .mc-page-head__actions > .btn, .mc-page-head__actions > a.btn { flex: 1 1 calc(50% - 6px); min-width: 0; white-space: nowrap; }
    /* card buttons (Call / WhatsApp / Sale): a little less padding so the words fit at 390px */
    .mc-card-row__acts .btn { padding-left: 4px; padding-right: 4px; font-size: 12.5px; }
}
@media (max-width: 767px) { .mc-find__hint { display: none; } }

/* list filter bar on phones: dates two per row, drop-downs full width */
@media (max-width: 767px) {
    .mc-lv .mc-lv__tools { flex-wrap: wrap; width: 100%; gap: 8px; }
    .mc-lv .mc-lv__tools input[type=date] { flex: 1 1 calc(50% - 4px); width: auto !important; min-width: 0; }
    .mc-lv .mc-lv__tools .select2-container { flex: 1 1 100%; width: 100% !important; }
}
.mc-banner--ok { background: var(--green-50); color: #14532d; border-color: #bbf7d0; }

/* qty / rate boxes line up under their right-aligned headings (sale and purchase lines) */
.mc-items td.num .form-control { display: inline-block; vertical-align: middle; }
.mc-items th.mc-items__c, .mc-items td.mc-items__c { text-align: center; }
/* Select2 "clear" x sits on the right, next to the arrow (GST css put it on the left) */
.select2-container--default .select2-selection--single .select2-selection__clear { float: none; position: absolute; right: 30px; top: 50%; transform: translateY(-50%); margin: 0; font-size: 18px; color: var(--faint); line-height: 1; }
.select2-container--default .select2-selection--single .select2-selection__clear:hover { color: var(--red); }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding-right: 48px; }

/* ---------- in-app help panel (top bar (i), F1 or ?) ---------- */
.mc-help-btn i { font-size: 20px; color: var(--brand); }
.mc-help-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .38); z-index: 1060; opacity: 0; pointer-events: none; transition: opacity .18s; }
.mc-help { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100vw; z-index: 1061; background: var(--card); box-shadow: -12px 0 40px rgba(15, 23, 42, .18);
    display: flex; flex-direction: column; transform: translateX(105%); transition: transform .22s ease; outline: none; }
body.mc-help-open .mc-help { transform: none; }
body.mc-help-open .mc-help-back { opacity: 1; pointer-events: auto; }
body.mc-help-open { overflow: hidden; }
.mc-help__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--line); }
.mc-help__ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; flex: 0 0 36px; }
.mc-help__ttl { flex: 1 1 auto; min-width: 0; }
.mc-help__ttl small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mc-help__ttl b { display: block; font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-help__lang { border: 1.5px solid var(--brand-200); background: var(--card); color: var(--brand-700); border-radius: 10px; height: 36px; padding: 0 10px; font-weight: 700; font-size: 13px; white-space: nowrap; cursor: pointer; }
.mc-help__lang:hover { background: var(--brand-50); }
.mc-help__x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 19px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mc-help__x:hover { background: var(--soft); color: var(--ink); }
.mc-help__search { position: relative; padding: 12px 16px 6px; }
.mc-help__search i { position: absolute; left: 29px; top: 50%; transform: translateY(-30%); color: var(--faint); }
.mc-help__search input { width: 100%; height: 40px; border: 1px solid var(--input); border-radius: 10px; padding: 0 12px 0 36px; font-size: 14px; background: var(--card); color: var(--text); }
.mc-help__search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.mc-help__body { flex: 1 1 auto; overflow-y: auto; padding: 6px 16px 16px; font-size: 13.5px; color: var(--text); line-height: 1.55; }
.mc-help__sec { padding: 12px 0 4px; border-bottom: 1px dashed var(--line); }
.mc-help__sec:last-child { border-bottom: 0; }
.mc-help__sec h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.mc-help__sec h4 i { color: var(--brand); font-size: 17px; }
.mc-help__sec p { margin: 0 0 8px; }
.mc-help__sec ol, .mc-help__sec ul { margin: 0 0 8px; padding-left: 20px; }
.mc-help__sec li { margin-bottom: 5px; }
.mc-help__sec li::marker { color: var(--brand); font-weight: 700; }
.mc-help__sec b { color: var(--ink); }
.mc-help__rel { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.mc-help__rel button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 8px 5px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
.mc-help__rel button:hover { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-700); }
.mc-help__hits { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.mc-help__hits button { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.mc-help__hits button:hover { border-color: var(--brand-200); background: var(--brand-50); }
.mc-help__hits b { display: block; color: var(--ink); font-size: 13.5px; }
.mc-help__hits small { display: block; color: var(--muted); font-size: 12px; }
.mc-help__backlink, .mc-help__open { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; border: 0; background: none; padding: 0; color: var(--brand-700); font-weight: 700; font-size: 12.5px; cursor: pointer; text-decoration: none; }
.mc-help__open { float: right; }
.mc-help__empty { color: var(--muted); padding: 18px 0; text-align: center; }
.mc-help__foot { border-top: 1px solid var(--line); padding: 9px 16px; font-size: 11.5px; color: var(--faint); background: var(--soft); }
.mc-help[lang="gu"] .mc-help__body { font-size: 14px; line-height: 1.65; }
@media (max-width: 575px) { .mc-help { width: 100vw; } .mc-help__foot { display: none; } }
@media (prefers-reduced-motion: reduce) { .mc-help, .mc-help-back { transition: none; } }

/* message under a field that needs fixing (App.fieldError) */
.mc-field-error { display: flex; align-items: flex-start; gap: 4px; margin-top: 5px; color: var(--red); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.mc-field-error i { font-size: 14px; margin-top: 1px; }
.form-control.is-invalid, .is-invalid + .select2 .select2-selection { border-color: var(--red) !important; box-shadow: 0 0 0 3px var(--red-50) !important; }

/* calendar (flatpickr) in the GST look; dates read dd-mm-yyyy */
.flatpickr-calendar { font-family: inherit; border-radius: 12px; box-shadow: var(--sh-3); border: 1px solid var(--line); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--brand); border-color: var(--brand); }
.flatpickr-day.today { border-color: var(--brand-200); }
.flatpickr-day:hover { background: var(--brand-50); }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 700; }
input.flatpickr-input[readonly] { background: var(--card); cursor: text; }

/* phone: summary pills and filter chips wrap instead of being cut off at the edge */
@media (max-width: 767px) {
    .mc-lv__stats { flex-wrap: wrap; overflow: visible; }
    .mc-lv__chips { flex-wrap: wrap; overflow: visible; }
    /* one back arrow is enough: the top bar has it */
    .mc-page-head__title > .mc-back { display: none; }
}
/* bill / purchase screens on a phone: no bottom menu under the save bar (more room to work) */
@media (max-width: 767px) {
    body.mc-entry .mc-bottom-nav { display: none !important; }
    body.mc-entry .mc-doc2__bar { bottom: calc(8px + env(safe-area-inset-bottom)) !important; }
    body.mc-entry { padding-bottom: 0; }
}

/* ---------- my shortcuts (pinned menu items, max 10) ---------- */
.mc-pins { margin: 4px 0 10px; padding: 8px; border: 1px solid var(--brand-200); border-radius: 12px; background: var(--brand-50); }
.mc-pins__head { display: flex; align-items: center; gap: 6px; padding: 2px 6px 6px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-700); }
.mc-pins__head em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.mc-pins__item { display: flex; align-items: center; border-radius: 9px; }
.mc-pins__item:hover, .mc-pins__item.active { background: var(--card); }
.mc-pins__item a { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 8px; color: var(--ink); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.mc-pins__item a i { color: var(--brand); font-size: 17px; }
.mc-pins__item a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-pins__item button { flex: 0 0 30px; width: 30px; height: 30px; border: 0; background: none; color: var(--faint); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; }
.mc-pins__item button:hover { color: var(--red); background: var(--red-50); }
.mc-nav-item { position: relative; }
.mc-nav-item .mc-pin { margin-left: auto; flex: 0 0 28px; width: 28px; height: 28px; border: 0; background: none; border-radius: 7px; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; opacity: 0; transition: opacity .12s; }
.mc-nav-item:hover .mc-pin, .mc-nav-item .mc-pin:focus-visible, .mc-nav-item .mc-pin.is-on { opacity: 1; }
/* V2.5 small pill after a menu name ("Smart insights") */
.mc-nav-item .mc-nav-pill { flex: 0 0 auto; margin-left: 6px; display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 800; line-height: 16px; color: #fff; background: linear-gradient(135deg, #7c3aed, #c026d3); }
.mc-nav-item .mc-nav-pill i { font-size: 10px; margin: 0; width: auto; }
.mc-nav-item .mc-nav-pill + .mc-pin { margin-left: auto; }
.mc-nav-item .mc-pin.is-on { color: var(--brand); }
.mc-nav-item .mc-pin:hover { background: var(--brand-50); color: var(--brand); }
@media (hover: none) { .mc-nav-item .mc-pin { opacity: .55; } .mc-nav-item .mc-pin.is-on { opacity: 1; } }

/* V2.6 financial year chooser: top bar pill (desktop/tablet), account menu item (all sizes), old-year banner */
.mc-top .mc-hdr-btn.mc-fy-btn { width: auto !important; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font-weight: 700; font-size: 13px; white-space: nowrap; }
.mc-top .mc-hdr-btn.mc-fy-btn i { font-size: 16px; }
.mc-top .mc-hdr-btn.mc-fy-btn.is-past { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
@media (max-width: 991px) { .mc-top .mc-hdr-btn.mc-fy-btn { display: none !important; } }
.mc-fy-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mc-fy-banner > span { flex: 1 1 260px; min-width: 0; }
.mc-fy-list { display: grid; gap: 8px; }
.mc-fy-opt { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.mc-fy-opt:hover { background: var(--soft); }
.mc-fy-opt input { width: 18px; height: 18px; flex: 0 0 18px; }
.mc-fy-opt span { display: flex; flex-direction: column; }
.mc-fy-opt small { color: var(--muted, #64748b); font-size: 12.5px; }
.mc-fy-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }

/* phone top bar: menu, logo, search, bell, help, + and the account all fit (shop name shows in the menu) */
@media (max-width: 440px) {
    .mc-top .mc-brand .mc-brand__text { display: none; }
    .mc-top .mc-hdr-btn, .mc-top .mc-new-btn { width: 40px !important; height: 40px; min-width: 40px; }
    .mc-top__actions { gap: 6px; }
}

/* V2.7 large text + dark mode switches in the account menu */
.mc-theme-item { display: flex !important; align-items: center; }
.mc-tswitch { margin-left: auto; position: relative; width: 34px; height: 20px; flex: 0 0 34px; border-radius: 999px; background: var(--input, #cbd8e3); transition: background .15s; }
.mc-tswitch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.mc-theme-item.is-on .mc-tswitch { background: var(--brand); }
.mc-theme-item.is-on .mc-tswitch::after { transform: translateX(14px); }

/* V2.7 calculator icon next to a total: "How is this worked out?" */
.mc-calc { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; margin-left: 6px; vertical-align: middle;
    border: 1px solid var(--brand-100, #d2eef9); border-radius: 8px; background: var(--brand-50, #e8f6fc); color: var(--brand-600, #0b6a8f); font-size: 14px; line-height: 1; cursor: pointer; }
.mc-calc:hover, .mc-calc:focus-visible { background: var(--brand-100, #d2eef9); color: var(--brand-700, #075e7d); }
.mc-calc::before, .mc-calc::after { content: none !important; display: none !important; }
.mc-kpi .mc-calc, .mc-mini .mc-calc { display: inline-flex !important; position: static !important; width: 30px !important; height: 30px !important; min-width: 30px; margin: 0 0 0 8px !important;
    padding: 0 !important; border-radius: 9px !important; font-size: 15px !important; font-weight: 400; flex: 0 0 auto; vertical-align: middle; box-shadow: none !important; }
.mc-kpi .mc-calc i, .mc-mini .mc-calc i { margin: 0 !important; width: auto !important; font-size: 15px !important; color: inherit !important; background: none !important; }
.mc-kpi__value .mc-calc-wrap, .mc-mini b.mc-calc-wrap { display: inline-flex; align-items: center; }
@media (pointer: coarse) { .mc-calc { min-width: 32px; min-height: 32px; } }
.mc-calc__what { margin: 0 0 10px; color: var(--text); }
.mc-calc__t { width: 100%; border-collapse: collapse; font-size: 14px; }
.mc-calc__t td { padding: 7px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.mc-calc__t td small { display: block; color: var(--muted); font-size: 12px; }
.mc-calc__s { width: 18px; color: var(--muted); font-weight: 700; text-align: center; }
.mc-calc__tot td { border-bottom: 0; border-top: 2px solid var(--ink, #0b2540); font-weight: 800; color: var(--ink); }
.mc-calc__p, .mc-calc__n { margin-top: 10px; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.mc-calc__p i, .mc-calc__n i { margin-top: 1px; }
@media print { .mc-calc { display: none !important; } }
/* V2.9 report total boxes: label text + calculator icon on one line; the label no longer clips the icon (it used to be cut off
   by the label's overflow: hidden and sit too low); the text alone shortens with "..." when space is tight */
.mc-stat__label.mc-stat__label--calc { display: flex; align-items: center; gap: 6px; overflow: visible; white-space: normal; min-height: 26px; }
.mc-stat__label--calc > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-stat__label--calc .mc-calc { flex: 0 0 auto; width: 26px; height: 26px; min-width: 26px; margin: 0; border-radius: 50%; font-size: 13px; position: static; }
.mc-stat__label--calc .mc-calc i { margin: 0; line-height: 1; }
@media (pointer: coarse) { .mc-stat__label--calc .mc-calc { width: 30px; height: 30px; min-width: 30px; min-height: 30px; } }
@media (max-width: 575px) { .mc-stat--calc .mc-stat__ico { display: none; } .mc-stat--calc .mc-stat__label { margin-right: 0; } }
.mc-calc-row { display: flex; align-items: center; gap: 0; }
.mc-kpi__value.mc-calc-wrap { display: flex; align-items: center; }
.mc-calc-row > b, .mc-calc-row > span { white-space: nowrap; min-width: 0; }
.mc-mini .mc-calc { width: 26px !important; height: 26px !important; min-width: 26px !important; min-height: 26px !important; margin-left: 6px !important; font-size: 13px !important; }
.mc-mini .mc-calc i { font-size: 13px !important; }
.mc-kpi .mc-kpi__label .mc-calc { width: 26px !important; height: 26px !important; min-width: 26px !important; min-height: 26px !important; margin-left: 6px !important; font-size: 13px !important; vertical-align: -6px; }
.mc-kpi .mc-kpi__label .mc-calc i { font-size: 13px !important; }
.mc-stat__label .mc-calc { width: 24px; height: 24px; min-width: 24px; min-height: 24px; margin-left: 6px; font-size: 13px; vertical-align: -6px; }
html.mc-dark .mc-calc { background: var(--brand-100) !important; border-color: var(--brand-200) !important; color: #7fd4f2 !important; }
html.mc-dark .mc-calc:hover { background: var(--brand-200) !important; }
html.mc-dark .mc-calc__tot td { border-top-color: var(--ink); }
html.mc-dark .mc-qty { border-color: var(--input); background: var(--soft); }
html.mc-dark .mc-qty__b { background: var(--brand-50); color: #7fd4f2; }
html.mc-dark .mc-tswitch { background: #2c4558; }
html.mc-dark .mc-theme-item.is-on .mc-tswitch { background: var(--sky, #22b8e6); }
/* V2.7 dark mode: bills, receipts and their previews stay printed-paper light (white sheet, dark text) */
html.mc-dark #doc, html.mc-dark .mc-bill, html.mc-dark .doc, html.mc-dark .bd-pick__img, html.mc-dark .bd-full, html.mc-dark .pb-doc {
    color-scheme: light;
    --ink: #0B2540; --text: #22384D; --muted: #5B7389; --faint: #8AA0B4; --line: #E3EBF1; --line-2: #EEF3F7; --input: #CBD8E3;
    --soft: #F7FAFC; --bg: #FFFFFF; --card: #FFFFFF; --brand-50: #E8F6FC; --brand-100: #D2EEF9; --brand-200: #B4E1F2; --brand-700: #075E7D;
    --green-50: #E7F6EF; --amber-50: #FFF6E0; --red-50: #FDECEC; --violet-50: #F0EDFF; --teal-50: #E5F7F5;
    color: #22384D;
}
html.mc-dark #doc table, html.mc-dark .mc-bill table, html.mc-dark .doc table, html.mc-dark .bd-pick__img table, html.mc-dark .bd-full table { color: #22384D; }

/* ---------------------------------------------------------------- V2.8 error handling (app.js): toast action / reference no.,
   offline bar and "something went wrong - Reload" bar. Bottom on phones (above the bottom nav), top-centre on desktop. */
.mc-toast-i__ref { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; }
.mc-toast-i__act { display: inline-flex; align-items: center; margin-top: 8px; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line);
    background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.mc-toast-i__act:hover { border-color: var(--sky); }
.mc-errbar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 100020; display: flex; align-items: center; gap: 10px;
    padding: 10px 10px 10px 14px; border-radius: 14px; box-shadow: 0 10px 30px rgba(14, 42, 63, .22); font-size: 14px; font-weight: 600; color: #FFFFFF; background: #0E2A3F; }
.mc-errbar[hidden] { display: none; }
.mc-errbar > i { font-size: 20px; flex: 0 0 auto; }
.mc-errbar > span { flex: 1 1 auto; line-height: 1.35; }
.mc-errbar--warning { background: #7A4A00; }
.mc-errbar--danger { background: #9F2620; }
.mc-errbar__btn { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: #FFFFFF; color: #0E2A3F; font: inherit; font-weight: 800; cursor: pointer; }
.mc-errbar__x { flex: 0 0 auto; width: 40px; height: 40px; border: 0; background: transparent; color: #FFFFFF; font-size: 22px; line-height: 1; cursor: pointer; opacity: .85; }
.mc-errbar__btn:focus-visible, .mc-errbar__x:focus-visible { outline: 3px solid #22B8E6; outline-offset: 2px; }
@media (min-width: 992px) { .mc-errbar { left: 50%; right: auto; transform: translateX(-50%); bottom: auto; top: calc(var(--top-h, 64px) + 12px); max-width: 640px; width: calc(100% - 48px); } }
@media print { .mc-errbar { display: none !important; } }

/* V2.9 dashboard filter: Today / This month / Last 3 months / This year / Dates + the chosen dates and the financial year */
.db-range { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 0 0 14px; }
.db-range__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; max-width: 100%; }
.db-range__chips::-webkit-scrollbar { display: none; }
.db-range__chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.db-range__chip:hover { border-color: var(--brand-100, #d2eef9); background: var(--brand-50, #e8f6fc); }
.db-range__chip.is-on { background: var(--brand-600, #0b6a8f); border-color: var(--brand-600, #0b6a8f); color: #fff; }
.db-range__chip:focus-visible, .db-range__fy:focus-visible { outline: 3px solid var(--a11y-ring, #0B7FA8); outline-offset: 2px; }
.db-range__info { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.db-range__span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.db-range__fy { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.db-when { font-weight: 600; color: var(--muted); }
.db-now { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--soft, #f2f6f9); color: var(--muted); font-size: 10.5px; font-weight: 700;
    letter-spacing: .02em; text-transform: uppercase; line-height: 18px; vertical-align: 1px; }
.mc-bars.db-bars--many { gap: 2px; }
.mc-bars.db-bars--many .mc-bars__col small { font-size: 9.5px; }
@media (max-width: 767px) {
    .db-range { margin-bottom: 12px; }
    .db-range__chips { width: 100%; }
    .db-range__info { width: 100%; justify-content: space-between; margin-left: 0; }
    .mc-bars.db-bars--many .mc-bars__col small { display: none; }
    .mc-bars.db-bars--many .mc-bars__col:nth-child(4n+1) small { display: block; }
}
html.mc-dark .db-range__chip, html.mc-dark .db-range__fy { background: var(--card); color: var(--ink); border-color: var(--line); }
html.mc-dark .db-range__chip.is-on { background: #22B8E6; border-color: #22B8E6; color: #0c1a23; }
html.mc-dark .db-now { background: rgba(255,255,255,.08); }
@media print { .db-range { display: none !important; } }

/* ---- V3.0 swipe actions on phone list cards (Scripts/app/swipe.js) ---- */
.mc-sw { position: relative; overflow: hidden; }
.mc-card-row.mc-sw { padding: 0; }
.mc-sw__front { position: relative; z-index: 1; padding: 12px 46px 12px 14px; background: var(--card); transition: transform .22s ease; touch-action: pan-y; }
.mc-sw__acts { position: absolute; top: 0; bottom: 0; display: flex; align-items: stretch; z-index: 0; }
.mc-sw__acts--l2r { right: 0; }
.mc-sw__acts--r2l { left: 0; }
.mc-sw__act { min-width: 72px; padding: 0 8px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 700; color: #fff !important; text-decoration: none !important; cursor: pointer; }
.mc-sw__act i { font-size: 20px; line-height: 1; }
.mc-sw__act--green { background: #15803d; } .mc-sw__act--wa { background: #128c4b; } .mc-sw__act--blue { background: #0b6fa0; }
.mc-sw__act--amber { background: #b45309; } .mc-sw__act--violet { background: #6d28d9; } .mc-sw__act--red { background: #b91c1c; } .mc-sw__act--grey { background: #475569; }
.mc-sw__more { position: absolute; top: 8px; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }
.mc-sw__more:hover, .mc-sw__more:focus-visible { background: var(--soft); color: var(--ink); }
.mc-sw__menu .btn { margin-bottom: 8px; min-height: 46px; font-weight: 600; }
.mc-sw__menu .btn i { font-size: 18px; margin-right: 6px; vertical-align: -3px; }
@media (prefers-reduced-motion: reduce) { .mc-sw__front { transition: none; } }
@media print { .mc-sw__acts, .mc-sw__more { display: none !important; } .mc-sw__front { transform: none !important; } }
html.mc-dark .mc-sw__front { background: var(--card); }

/* ---- V3.0 recent customers in the customer pickers ---- */
.mc-recent__head { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
