/* ==========================================================================
   Portal de Lotéricas - Caixa Pré-Pagos
   Sistema visual do portal. Carregado depois do bootstrap e do font-awesome.
   1. Tokens
   2. Base
   3. Shell (barra lateral, topo, área de conteúdo)
   4. Componentes (card, botão, campo, tabela, aviso, badge, aba, chip)
   5. Feedback (toast, modal, estado vazio)
   6. Compatibilidade com as classes do template antigo
   7. Responsivo
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --nav: #0068ab;              /* azul do logo da Caixa Pré-Pagos */
    --nav-line: rgba(255,255,255,.22);
    --canvas: #eef2f7;
    --card: #fff;
    --line: #dfe6ef;
    --line-2: #edf1f6;
    --ink: #0f2035;
    --ink-2: #51637a;
    --ink-3: #8194a9;
    --blue: #0068ab;
    --blue-d: #00527f;
    --blue-s: #e7f1f9;
    --orange: #f39250;
    --orange-s: #fef2e8;
    --red: #c2372c;
    --red-s: #fdeeec;
    --red-d: #8e2a21;
    --green: #1c7a4f;
    --green-s: #e7f4ec;
    --amber: #b8790a;
    --amber-s: #fdf4e3;
    --cyan: #4a9fd4;
    --r: 10px;
    --r-s: 8px;
    --sb-w: 236px;
    --sh: 0 1px 2px rgba(15,32,53,.05), 0 6px 18px rgba(15,32,53,.05);
}

/* 2. Base ---------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 400 14px/1.5 "Nunito Sans", "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-wrap: pretty;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
svg { display: block; flex: none; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.r { display: flex; align-items: center; gap: 10px; }
.rb { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.col-stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sec-t {
    font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-3);
}
.hint { font-size: 12px; color: var(--ink-3); }

/* 3. Shell --------------------------------------------------------------- */
.sb {
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--sb-w);
    background: var(--nav); display: flex; flex-direction: column; z-index: 30;
}

.sb-brand {
    background: #0068ab; /* mesmo azul do arquivo logo.png, o encaixe é invisível */
    padding: 22px 18px;
    display: flex; align-items: center;
}

.sb-brand img { width: 158px; height: auto; display: block; }

.sb-nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; overflow-y: auto; }

.sb-item {
    display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 12px;
    border-radius: 8px; color: rgba(255,255,255,.88); font-size: 14px; font-weight: 600;
}

.sb-item:hover { background: rgba(255,255,255,.15); color: #fff; }

.sb-item.on {
    background: #fff; color: #0f2035; font-weight: 800;
    box-shadow: inset 3px 0 0 var(--orange);
}

.sb-foot {
    margin-top: auto; padding: 16px 18px; border-top: 1px solid var(--nav-line);
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,.75); font-size: 13px; font-weight: 600;
}

.sb-foot a { color: inherit; }
.sb-foot a:hover { color: #fff; }

.main { margin-left: var(--sb-w); min-height: 100vh; display: flex; flex-direction: column; }

.tb {
    position: sticky; top: 0; z-index: 20;
    min-height: 84px; background: #fff; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 12px 26px;
}

.tb-crumb { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.tb-title { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.tb-right { display: flex; align-items: center; gap: 14px; }

.tb-user { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); }

.av {
    width: 36px; height: 36px; border-radius: 9px; background: var(--nav); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 12.5px;
}

.tb-uname { font-size: 13.5px; font-weight: 800; }
.tb-urole { font-size: 11.5px; color: var(--ink-3); }

.pg { padding: 24px 26px 32px; display: flex; flex-direction: column; gap: 18px; }
.pg > .container, .pg > section > .container { max-width: none; padding-left: 0; padding-right: 0; }

/* 4. Componentes --------------------------------------------------------- */
/* display e flex-direction são reset de propósito: o .card do bootstrap vem
   como flex em coluna, o que quebrava as barras de filtro em linha. */
.card {
    display: block; flex-direction: row; margin-bottom: 0;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--sh);
}

.card-h {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line-2);
    flex-wrap: wrap;
}

.card-t { font-size: 15.5px; font-weight: 800; }
.card-s { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.card-b { padding: 18px 20px; }

.kpi { padding: 17px 18px 15px; }
.kpi-l { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.kpi-ic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.kpi-v { font-size: 34px; font-weight: 800; line-height: 1.05; margin-top: 12px; letter-spacing: -.02em; }
.kpi-f { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }

/* sem qualificar por elemento: button.btn teria especificidade maior que
   .btn-o e .btn-s, e anularia a borda e a altura das variantes */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 15px; border-radius: var(--r-s);
    border: 1px solid transparent; font-size: 13.5px; font-weight: 800;
    white-space: nowrap; cursor: pointer; font-family: inherit; text-decoration: none;
}

.btn-p, a.btn-p { background: var(--blue); color: #fff; }
.btn-p:hover, a.btn-p:hover { background: var(--blue-d); color: #fff; }
.btn-o, a.btn-o { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-o:hover, a.btn-o:hover { border-color: #bcd0e2; background: #fbfcfe; color: var(--ink); }
.btn-d, a.btn-d { background: var(--red); color: #fff; }
.btn-d:hover, a.btn-d:hover { background: var(--red-d); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-p:disabled:hover { background: var(--blue); }
.btn-o:disabled:hover { border-color: var(--line); background: #fff; }
.btn-w, a.btn-w { background: var(--orange); color: #fff; }
.btn-s { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-l { height: 44px; padding: 0 18px; font-size: 14px; }

.btn-gh, a.btn-gh {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px;
    color: var(--blue); font-weight: 800; font-size: 13px; background: none; border: 0; cursor: pointer;
}

.ibtn, a.ibtn {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
    background: #fff; color: var(--ink-2);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

.ibtn:hover, a.ibtn:hover { color: var(--blue); border-color: #bcd6e8; background: var(--blue-s); }
.ibtn.dg:hover, a.ibtn.dg:hover { color: var(--red); border-color: #eec3be; background: var(--red-s); }

.bdg {
    display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
    border-radius: 6px; font-size: 11.5px; font-weight: 800; white-space: nowrap;
}

.bdg-b { background: var(--blue-s); color: var(--blue-d); }
.bdg-c { background: #e9f4fb; color: #215f85; }
.bdg-g { background: var(--green-s); color: var(--green); }
.bdg-a { background: var(--amber-s); color: var(--amber); }
.bdg-r { background: var(--red-s); color: var(--red); }
.bdg-n { background: #edf1f6; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* input sem type também entra: várias views declaram só <input id=... /> */
.inp,
.pg .form-control,
.pg input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.pg select, .pg textarea {
    width: 100%; height: 42px; border: 1px solid var(--line); border-radius: var(--r-s);
    padding: 0 12px; background: #fff; color: var(--ink); font-size: 14px;
    font-family: inherit; box-shadow: none;
}

.pg textarea { height: auto; min-height: 92px; padding: 10px 12px; line-height: 1.5; }
.pg select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238194a9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.4 9.6 12 15.2l5.6-5.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center; }

.pg .form-control:focus, .pg input:focus, .pg select:focus, .pg textarea:focus {
    outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,104,171,.12);
}

.pg input::placeholder, .pg textarea::placeholder { color: var(--ink-3); }
.inp.ph { color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.inp.bad, .pg .input-validation-error { border-color: var(--red); background: #fffafa; }

.bad-msg, .pg .text-danger, .pg .field-validation-error {
    display: block; font-size: 12.5px; color: var(--red); font-weight: 700; margin-top: 5px;
}

.pg .validation-summary-errors ul { margin: 0; padding-left: 18px; }

.ck {
    width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #c3d0de; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: #fff;
    flex: none; cursor: pointer;
}

.ck.on { background: var(--blue); border-color: var(--blue); }
.ck svg { opacity: 0; }
.ck.on svg { opacity: 1; }

.sw {
    width: 40px; height: 22px; border-radius: 99px; background: #cbd6e2; padding: 2px;
    display: inline-flex; align-items: center; flex: none; cursor: pointer;
    border: 0; transition: background .15s ease;
}

.sw > i { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,32,53,.28); display: block; }
.sw.on { background: var(--green); justify-content: flex-end; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }

.tbl th {
    text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; color: var(--ink-3); padding: 11px 16px;
    background: #f7f9fc; border-bottom: 1px solid var(--line); white-space: nowrap;
}

.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafcfe; }
.t-name { font-weight: 800; font-size: 13.5px; }
.t-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.t-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.t-act { display: flex; gap: 6px; justify-content: flex-end; }

.prog { height: 6px; border-radius: 99px; background: #e7edf4; overflow: hidden; display: block; }
.prog > i { display: block; height: 100%; border-radius: 99px; }

.alert-p {
    display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px;
    border-radius: var(--r); border: 1px solid #f2cfcb; background: var(--red-s);
    box-shadow: inset 4px 0 0 var(--red); flex-wrap: wrap;
}

.alert-ic {
    width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: #fff;
    display: flex; align-items: center; justify-content: center; flex: none;
}

.alert-t { font-size: 14.5px; font-weight: 800; color: var(--red-d); }
.alert-x { font-size: 13px; color: #96473e; margin-top: 3px; }
.alert-p.ok { border-color: #c6e3d2; background: var(--green-s); box-shadow: inset 4px 0 0 var(--green); }
.alert-p.ok .alert-ic { background: var(--green); }
.alert-p.ok .alert-t { color: #14603d; }
.alert-p.ok .alert-x { color: #2f6b4f; }
.alert-p.wr { border-color: #f0dcb4; background: var(--amber-s); box-shadow: inset 4px 0 0 var(--amber); }
.alert-p.wr .alert-ic { background: var(--amber); }
.alert-p.wr .alert-t { color: #8a5a07; }
.alert-p.wr .alert-x { color: #7a5615; }
.alert-p.nf { border-color: #c9dcea; background: var(--blue-s); box-shadow: inset 4px 0 0 var(--blue); }
.alert-p.nf .alert-ic { background: var(--blue); }
.alert-p.nf .alert-t { color: var(--blue-d); }
.alert-p.nf .alert-x { color: #3a6683; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
    height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line);
    background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-2);
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
}

.chip:hover { color: var(--ink); border-color: #bcd0e2; }
.chip.on, .chip.on:hover { background: var(--nav); border-color: var(--nav); color: #fff; }
.chip-n { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: #eef2f7; color: var(--ink-2); }
.chip.on .chip-n { background: rgba(255,255,255,.2); color: #fff; }

.pag { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.pag-n { display: flex; gap: 4px; flex-wrap: wrap; }

/* 5. Feedback ------------------------------------------------------------ */
#toasts { position: fixed; bottom: 26px; right: 26px; z-index: 1080; display: flex; flex-direction: column; gap: 10px; }

.toast-p {
    display: flex; gap: 12px; width: 400px; max-width: calc(100vw - 40px); padding: 14px 15px;
    border-radius: var(--r); background: #fff; border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(15,32,53,.14); position: relative; overflow: hidden;
    animation: toast-in .18s ease-out;
}

@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.toast-p:before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); }
.toast-p.ok:before { background: var(--green); }
.toast-p.er:before { background: var(--red); }
.toast-p.wr:before { background: var(--amber); }
.toast-ic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.toast-p.ok .toast-ic { background: var(--green-s); color: var(--green); }
.toast-p.er .toast-ic { background: var(--red-s); color: var(--red); }
.toast-p.wr .toast-ic { background: var(--amber-s); color: var(--amber); }
.toast-p.nf .toast-ic { background: var(--blue-s); color: var(--blue); }
.toast-t { font-size: 13.5px; font-weight: 800; line-height: 1.35; }
.toast-x { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.toast-x-btn { position: absolute; top: 8px; right: 8px; color: var(--ink-3); background: none; border: 0; cursor: pointer; padding: 4px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 46px 24px; }
.empty-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-s); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.empty-t { font-size: 15px; font-weight: 800; }
.empty-x { font-size: 13px; color: var(--ink-2); max-width: 400px; }

/* 6. Compatibilidade com o template antigo -------------------------------- */
/* As telas que ainda não foram reescritas usam estas classes. */
.breadcrumb-option { padding: 0; margin-bottom: 4px; }
.breadcrumb-option .container { max-width: none; padding: 0; }
.breadcrumb__text h4 { font-size: 15.5px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.breadcrumb__text h4::first-letter { text-transform: uppercase; }
.breadcrumb__links { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.breadcrumb__links a { color: var(--ink-3); font-weight: 700; }
.breadcrumb__links a:after { content: " / "; color: var(--line); }
.breadcrumb__links span { color: var(--ink-2); font-weight: 700; }

.contact__form {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--sh); padding: 18px 20px; margin-bottom: 18px;
}

.pg .form-group { margin-bottom: 14px; }
.pg .control-label, .pg label {
    display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}

.site-btn, .site-btn-orange, .continue__btn a, .update__btn a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 15px; border-radius: var(--r-s); border: 1px solid transparent;
    font-size: 13.5px; font-weight: 800; white-space: nowrap; cursor: pointer;
    font-family: inherit; background: var(--blue); color: #fff;
}

.site-btn:hover, .continue__btn a:hover, .update__btn a:hover { background: var(--blue-d); color: #fff; }
.site-btn-orange { background: #fff; color: var(--ink); border-color: var(--line); }
.site-btn-orange:hover { background: #fbfcfe; color: var(--ink); border-color: #bcd0e2; }

.continue__btn, .update__btn { display: inline-flex; gap: 10px; margin: 0 0 0 10px; }
.continue__btn:first-child, .update__btn:first-child { margin-left: 0; }
.new__btn.update__btn a { background: var(--blue); color: #fff; }

.shopping-cart, .shopping-cart.spad { padding: 0; }

.shopping__cart__table {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--sh); overflow: hidden;
}

.shopping__cart__table table { width: 100%; border-collapse: collapse; }

.shopping__cart__table thead th {
    text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; color: var(--ink-3); padding: 11px 16px;
    background: #f7f9fc; border-bottom: 1px solid var(--line); white-space: nowrap;
}

.shopping__cart__table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.shopping__cart__table tbody tr:hover td { background: #fafcfe; }
.shopping__cart__table tbody a { color: var(--ink-2); }
.shopping__cart__table tbody a:hover { color: var(--blue); }

.pg .nav-tabs { border-bottom: 1px solid var(--line); gap: 4px; }

.pg .nav-tabs .nav-link {
    height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px;
    font-size: 13.5px; font-weight: 800; color: var(--ink-3);
    border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px;
}

.pg .nav-tabs .nav-link.active { color: var(--blue); background: none; border-bottom-color: var(--blue); }

.pg .pagination { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin: 14px 0 0; padding: 0; list-style: none; }
.pg .page-item { list-style: none; }

.pg .page-link, .pgb {
    min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px;
    border: 1px solid var(--line); background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--ink-2);
}

.pg .page-item.active .page-link, .pgb.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.pg .page-item.disabled .page-link { color: #b9c6d4; background: #f7f9fc; }
.pg .page-link:hover { border-color: #bcd0e2; color: var(--blue); }
.padding-right { padding-right: 0; }

/* modal (bootstrap) */
.modal-dialog { max-width: 468px; margin: 7rem auto; }

.modal-content {
    border: 0; border-radius: 12px; box-shadow: 0 24px 60px rgba(15,32,53,.28); overflow: hidden;
}

.modal-header { border-bottom: 0; padding: 20px 20px 0; align-items: flex-start; }
.modal-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.modal-header .close { font-size: 26px; font-weight: 400; color: var(--ink-3); opacity: 1; text-shadow: none; padding: 0 4px; }
.modal-body { padding: 8px 20px 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.modal-footer { border-top: 1px solid var(--line-2); background: #f7f9fc; padding: 14px 20px; gap: 10px; }
.modal-footer > * { margin: 0 !important; }
.mdl-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.mdl-head { display: flex; gap: 13px; padding: 20px 20px 0; align-items: flex-start; }
.mdl-body { padding: 10px 20px 18px 71px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* 7. Responsivo ---------------------------------------------------------- */
/* barra lateral recolhida pelo botão do rodapé (fica salva no navegador) */
body.sb-min { --sb-w: 68px; }
body.sb-min .sb-brand { padding: 18px 10px; justify-content: center; }
body.sb-min .sb-brand img { width: 44px; height: 26px; object-fit: cover; object-position: left; }
body.sb-min .sb-item { justify-content: center; padding: 0; font-size: 0; gap: 0; }
body.sb-min .sb-foot { justify-content: center; padding: 16px 8px; font-size: 0; }
body.sb-min .sb-foot svg { transform: rotate(180deg); }

@media (max-width: 1280px) {
    :root { --sb-w: 68px; }
    .sb-brand { padding: 18px 10px; justify-content: center; }
    .sb-brand img { width: 44px; object-fit: cover; object-position: left; height: 26px; }
    .sb-item { justify-content: center; padding: 0; font-size: 0; gap: 0; }
    .sb-item.on { box-shadow: inset 3px 0 0 var(--orange); }
    .sb-foot { justify-content: center; padding: 16px 8px; font-size: 0; }
    .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .tb { flex-wrap: wrap; }
    .pg { padding: 18px 16px 26px; }
    .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); }
    #toasts { right: 16px; left: 16px; bottom: 16px; }
    .toast-p { width: auto; }
}
