/* settings.css — Setting > General Setting page (business/forms/business_setting/*).
   Generic pieces (.ui-card, .ui-switch-row, .ui-fields, .ui-linetabs, .ui-savebar) live in ui_kit.css;
   this file only carries what is specific to the settings page. */

/* ---------- Form tab: the per-card "n required" badge (chips themselves = .ui-pick in ui_kit.css) ---------- */
.req-count {
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
    background: var(--custom_color_zircon); color: var(--custom_color_rolling_stone); border: 1px solid var(--custom_color_mercury);
    transition: background .15s, color .15s, border-color .15s;
}
.req-count.is-active { background: var(--custom_color_matisse); border-color: var(--custom_color_matisse); color: #fff; }
/* ---------- Club Profile tab: location panel + map picker ---------- */
.stg-location { padding: 14px; border-radius: 12px; background: var(--custom_color_alice_blue); border: 1px solid var(--custom_color_regent_st_blue); }
.stg-location__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.stg-location__title { font-size: 13px; font-weight: 700; color: var(--custom_color_matisse); margin: 0; }
.stg-location__status { font-size: 11.5px; color: var(--custom_color_rolling_stone); min-height: 16px; margin: 8px 0 0; }
.stg-map { height: 340px; width: 100%; border-radius: 12px; border: 1px solid var(--custom_color_mercury); overflow: hidden; }
.stg-map-empty {
    padding: 18px; border-radius: 12px; text-align: center; font-size: 12px; font-style: italic;
    color: var(--custom_color_rolling_stone); background: var(--custom_color_zircon); border: 1px dashed var(--custom_color_mercury);
}

/* ---------- Notification tab: per-notification channel matrix ---------- */
.stg-notif { border: 1px solid var(--custom_color_mercury); border-radius: 12px; overflow: hidden; }
.stg-notif__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) 72px 72px; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--custom_color_zircon); }
.stg-notif__row--head { border-top: 0; background: var(--custom_color_zircon); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--custom_color_rolling_stone); padding: 8px 14px; }
.stg-notif__label { font-size: 13px; font-weight: 600; color: var(--custom_color_bunker); }
.stg-notif__center { text-align: center; }
.stg-notif__center .form-check { display: inline-block; margin: 0; padding: 0; min-height: 0; }
.stg-notif__center .form-check-input { margin: 0; float: none; }
.stg-notif__wa .form-check { margin: 0; min-height: 0; }
.stg-notif__wa .form-check + .form-check { margin-top: 4px; }
.stg-notif__wa .form-check-label { font-size: 12px; }
.stg-notif__mobile-label { display: none; }
@media (max-width: 767px) {
    .stg-notif__row { grid-template-columns: 1fr; gap: 6px; }
    .stg-notif__row--head { display: none; }
    .stg-notif__center { text-align: left; }
    .stg-notif__mobile-label { display: inline; font-size: 12px; color: var(--custom_color_rolling_stone); margin-left: 8px; vertical-align: middle; }
}

/* ---------- Invoice & TnC: rich-text editor cards ---------- */
.stg-editor .ck-editor__editable { min-height: 180px; }

/* ---------- the tab content wrapper ---------- */
.stg-tab { min-width: 0; }

/* ---------- text actions in a card (Download plugin / Test print) ---------- */
.stg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.stg-textbtn {
    display: inline-flex; align-items: center; gap: 7px; padding: 0; margin: 0; background: none; border: 0;
    font-size: 13px; font-weight: 600; color: var(--custom_color_denim); text-decoration: none; cursor: pointer; line-height: 1.4;
}
.stg-textbtn i { font-size: 12px; }
.stg-textbtn:hover { color: var(--custom_color_matisse); text-decoration: underline; }
.stg-textbtn:disabled { opacity: .45; cursor: not-allowed; text-decoration: none; }

/* ---------- settings navigation (frontend_base/component/setting_tab.html) ---------- */
/* desktop column: keep the classic list, just tidy spacing */
.stg-sidenav { min-height: 100vh; }

/* phone: trigger card + dropdown sheet */
.stg-sheet { padding-top: 3rem; }   /* clears the fixed top navbar, like the old pt-5 */
.stg-sheet .dropdown { position: relative; }
.stg-sheet__trigger {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left;
    background: #fff; border: 1px solid var(--custom_color_mercury); border-radius: 14px;
    box-shadow: 0 6px 18px rgba(12, 27, 61, 0.05); color: var(--custom_color_bunker); cursor: pointer;
}
.stg-sheet__trigger::after { display: none; }   /* MDB's default caret; we draw our own chevron */
.stg-sheet__icon {
    width: 36px; height: 36px; border-radius: 11px; flex: 0 0 36px; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--custom_color_selago); color: var(--custom_color_matisse);
}
.stg-sheet__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.stg-sheet__caption { font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--custom_color_rolling_stone); line-height: 1.2; }
.stg-sheet__current { font-size: 14.5px; font-weight: 700; color: var(--custom_color_bunker); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stg-sheet__chevron { margin-left: auto; color: var(--custom_color_bombay); font-size: 12px; transition: transform .2s; }
.stg-sheet__trigger[aria-expanded="true"] .stg-sheet__chevron { transform: rotate(180deg); }

.stg-sheet__menu {
    min-width: 100%; margin-top: 6px !important; padding: 6px; border-radius: 14px;
    border: 1px solid var(--custom_color_mercury); box-shadow: 0 12px 32px rgba(12, 27, 61, 0.12);
    max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.stg-sheet__menu .sidenav-setting-subheader { font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--custom_color_rolling_stone) !important; padding: 10px 12px 4px; }
.stg-sheet__menu .sidenav-setting-subheader:first-child { padding-top: 6px; }
.stg-sheet__menu .btn-setting {
    display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px;
    font-size: 14px; font-weight: 600; color: var(--custom_color_outer_space);
}
.stg-sheet__menu .btn-setting:hover { background: var(--custom_color_zircon) !important; color: var(--custom_color_bunker) !important; }
.stg-sheet__menu .btn-setting-active { background: var(--custom_color_alice_blue) !important; color: var(--custom_color_v2_dark_navi_blue) !important; }
.stg-sheet__menu .btn-setting-active::after {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; margin-left: auto;
}

/* desktop column: section titles read as labels, not as buttons; a gap before each section;
   child links sit indented under their label */
.stg-sidenav .sidenav-setting-subheader {
    font-family: 'Custom-Font', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
    color: var(--custom_color_bombay) !important; padding: 0 16px 6px; margin-top: 22px; line-height: 1.3;
}
.stg-sidenav .sidenav-setting-subheader:first-child { margin-top: 8px; }
.stg-sidenav .btn-setting { margin: 2px 8px 2px 24px; padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--custom_color_outer_space); }
.stg-sidenav .btn-setting-active { color: var(--custom_color_v2_dark_navi_blue) !important; }

/* ---------- Storage page ---------- */
.stg-table-scroll { overflow-x: auto; }
.stg-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui-table thead th.stg-num { text-align: right; }
.stg-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stg-tier {
    padding: 14px 12px; border-radius: 12px; border: 1.5px solid var(--custom_color_mercury); background: #fff; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.stg-tier.is-current { border-color: var(--custom_color_v2_dark_navi_blue); background: var(--custom_color_alice_blue); }
.stg-tier__name { font-family: 'Custom-Font-Bold', sans-serif; font-size: 14px; color: var(--custom_color_bunker); margin: 0; }
.stg-tier__quota { font-size: 20px; font-weight: 700; color: var(--custom_color_v2_dark_navi_blue); margin: 2px 0 0; letter-spacing: -0.3px; line-height: 1.1; }
.stg-tier__meta { font-size: 11.5px; color: var(--custom_color_rolling_stone); margin: 2px 0 8px; }
@media (max-width: 767px) { .stg-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Mobile App > App Banner gallery (gym_marketing_banner/components/card/banner_grid.html) ---------- */
.mkb-card .media-card__hero--wide { max-height: 260px; }
.mkb-card__body { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.mkb-card__link { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--custom_color_outer_space); }
.mkb-card__link > i { color: var(--custom_color_bombay); font-size: 11px; flex: 0 0 auto; }
.mkb-card__cta { font-weight: 700; white-space: nowrap; }
.mkb-card__url { color: var(--custom_color_matisse); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mkb-card__url:hover { text-decoration: underline; }
.mkb-card__date { font-size: 11px; color: var(--custom_color_rolling_stone); white-space: nowrap; }
.mkb-card__date i { font-size: 10px; margin-right: 4px; color: var(--custom_color_bombay); }

/* App Banner form: live preview of the banner as the member app shows it */
.mkb-preview {
    position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
    background: linear-gradient(160deg, var(--media-accent, #3B507D) 0%, #0C1B3D 100%); transition: aspect-ratio .2s;
}
.mkb-preview--small { aspect-ratio: 21 / 9; }
.mkb-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mkb-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%); }
.mkb-preview__overlay { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; }
.mkb-preview__title { font-family: 'Custom-Font-Bold', sans-serif; font-size: 18px; line-height: 1.2; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.mkb-preview__sub { font-size: 12.5px; opacity: .9; margin: 3px 0 0; min-height: 0; }
.mkb-preview__sub:empty { display: none; }
.mkb-preview__cta { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--custom_color_v2_dark_navi_blue); font-size: 11.5px; font-weight: 700; }

/* ---------- Mobile App > App Announcement (gym_branded_mobileapp/components/card/announcement/preview.html) ---------- */
/* The announcement exactly as the member app's Home draws it (home_offers.dart _OfferCard): one row — emblem disc,
   eyebrow + badge / headline / one line of detail, then the labelled way in with its chevron — over a diagonal wash
   and two faint circles. A palette colour carries white ink; Auto (no colour) is the app's own promo pair, cream with
   brown ink. The form's live preview and the gallery cards share it. */
.bma-preview {
    --bma-bg: #FFF1D6;
    --bma-ink: #7A4E00;
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; color: var(--bma-ink);
    /* palette colour: white ink, so the wash darkens toward the corner rather than fading under the words */
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--bma-bg) 90%, #fff) 0%,
        var(--bma-bg) 50%,
        color-mix(in srgb, var(--bma-bg) 78%, #000) 100%);
}
.bma-preview--auto {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--bma-bg) 65%, #fff) 0%,
        var(--bma-bg) 50%,
        color-mix(in srgb, var(--bma-bg) 84%, var(--bma-ink)) 100%);
}
.bma-preview::before, .bma-preview::after {
    content: ""; position: absolute; border-radius: 50%; pointer-events: none;
    background: color-mix(in srgb, var(--bma-ink) 7%, transparent);
}
.bma-preview::before { width: 92px; height: 92px; right: -20px; bottom: -26px; }
.bma-preview::after { width: 52px; height: 52px; right: 52px; top: -22px; background: color-mix(in srgb, var(--bma-ink) 6%, transparent); }
.bma-preview > * { position: relative; z-index: 1; }
.bma-preview__mark {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; line-height: 1; background: rgba(255,255,255,.55);
}
.bma-preview__text { min-width: 0; flex: 1 1 auto; }
.bma-preview__eyebrow { margin: 0 0 1px; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11px; line-height: 1.45; }
.bma-preview__eyebrow > span:first-child {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 800; letter-spacing: 1.1px; color: color-mix(in srgb, var(--bma-ink) 75%, transparent);
}
.bma-preview__eyebrow > span:empty { display: none; }
.bma-preview__badge {
    flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; font-weight: 700; white-space: nowrap;
    background: color-mix(in srgb, var(--bma-ink) 14%, transparent); color: var(--bma-ink);
}
.bma-preview__title {
    margin: 0; font-family: 'Custom-Font-Bold', sans-serif; font-size: 14px; font-weight: 800; line-height: 1.35; letter-spacing: -.2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.bma-preview__sub {
    margin: 0; font-size: 12px; line-height: 1.35; color: color-mix(in srgb, var(--bma-ink) 75%, transparent);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bma-preview__sub:empty { display: none; }
.bma-preview__cta {
    flex: 0 0 auto; display: inline-flex; align-items: center; padding: 7px 8px 7px 12px; border-radius: 999px;
    background: var(--bma-ink); color: var(--bma-bg); font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.bma-preview__cta::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 9px; margin-left: 6px; }
.bma-preview__cta[hidden] { display: none; }

.bma-card { border-radius: 18px; background: #fff; border: 1px solid var(--custom_color_mercury); padding: 10px; }
.bma-card--link { cursor: pointer; transition: box-shadow .15s ease; }
.bma-card--link:hover { box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.bma-card.is-archived { opacity: .65; }
.bma-card__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 10px 4px 0; font-size: 12px; color: var(--custom_color_outer_space); min-width: 0; }
.bma-card__meta { display: inline-flex; align-items: center; min-width: 0; white-space: nowrap; }
.bma-card__meta > i { color: var(--custom_color_bombay); font-size: 11px; margin-right: 6px; }
.bma-card__foot > .dropdown { margin-left: auto; }
