/* Backoffice theme v3 — tracking de encomendas em cacifos. Loaded after the base stylesheet; --brand comes from Aparência. */
:root {
  --brand: #1457d9;
  --brand-600: color-mix(in srgb, var(--brand) 86%, #000);
  --brand-50: color-mix(in srgb, var(--brand) 8%, #fff);
  --navy: #0b1f3a; --navy-2: #17325a; --navy-3: #1e3354;
  --teal: #12b5a5;
  --ink: #0b1f3a; --ink-2: #3b4b63; --mut: #5b6b82; --line: #e3e8f0; --bg: #f4f6fa; --surface: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 6px 20px rgba(11, 31, 58, .05);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
html, body { font-family: var(--font); font-size: 14.5px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: 1.75rem; letter-spacing: -.02em; font-weight: 700; }
.mono { font-family: var(--mono); }
a { color: var(--brand); } a:hover { color: var(--brand-600); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 38%, transparent); outline-offset: 1px; }

/* ---------- brand mark ---------- */
.brand-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark svg { flex: 0 0 auto; }
.brand-name { font-weight: 700; font-size: 1.2rem; letter-spacing: -.025em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- app shell (matches the design board "Painel de controlo") ---------- */
body { margin: 0; }
.shell { display: flex; min-height: 100vh; background: var(--bg); }
.side { flex: 0 0 248px; width: 248px; background: var(--navy); color: #b8c4d8; padding: 22px 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { padding: 2px 10px 22px; display: flex; align-items: center; gap: 10px; }
.side-brand img { max-height: 34px; max-width: 190px; object-fit: contain; }
.side-brand .brand-name { font-size: 19px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-title { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7c8ca6; padding: 16px 12px 6px; font-weight: 600; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: #b8c4d8; background: transparent; transition: background .15s, color .15s; }
.side-link:hover { background: var(--navy-3); color: #fff; text-decoration: none; }
.side-link.active { background: var(--navy-2); color: #fff; }
.side-link .icon { flex: 0 0 auto; }
.side-user { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 14px 10px 4px; border-top: 1px solid var(--navy-3); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-3); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: 0 0 auto; }
.side-user-text { min-width: 0; flex: 1; }
.side-user-name { color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-mail { font-size: 12px; color: #8e9db8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user form { margin: 0; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #d3dbe8; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); padding: 0; cursor: pointer; }
.side .icon-btn { width: 34px; height: 34px; background: transparent; border-color: var(--navy-3); color: #b8c4d8; }
.side .icon-btn:hover { background: var(--navy-3); color: #fff; }
.main-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 16px 32px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar-search { flex: 1 1 320px; max-width: 640px; display: flex; align-items: center; gap: 10px; border: 1px solid #d3dbe8; border-radius: 10px; padding: 0 14px; height: 44px; background: #f8fafd; box-sizing: border-box; color: var(--mut); margin: 0; }
.topbar-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; outline: none; color: var(--ink); min-width: 0; }
.topbar-spacer { flex: 1; }
.bell-badge { position: absolute; top: -5px; right: -5px; background: #d92d20; color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-sizing: border-box; padding: 0 4px; }
.menu-btn { display: none; }
.page { padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 24px; }
.page > .container-fluid, .page > div > .container-fluid { padding: 0; }
.page .container-fluid > .col-sm-12 { padding: 0; max-width: 100%; flex: 0 0 100%; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head-row h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; font-weight: 700; }
.page-sub { margin: 6px 0 0; color: var(--mut); font-size: 14.5px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.side-scrim { display: none; }
@media (max-width: 991px) {
  .side { position: fixed; z-index: 60; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; }
  .shell.side-open .side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .shell.side-open .side-scrim { display: block; position: fixed; inset: 0; background: rgba(11, 31, 58, .45); z-index: 50; }
  .menu-btn { display: inline-flex; }
  .topbar, .page { padding-left: 16px; padding-right: 16px; }
}

/* ---------- content ---------- */
.container-fluid { padding: 0; }
.page-head { margin: .2rem 0 1.2rem; } .page-head p { margin: .3rem 0 0; color: var(--mut); }
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); margin-bottom: 1.2rem; }
.card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 650; padding: 1rem 1.3rem; border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 1.3rem; }
.card-footer { background: transparent; border-top: 1px solid var(--line); }
hr { border-top: 1px solid var(--line); }

/* ---------- KPI tiles (dashboard) ---------- */
.card.kpi { border: 0; color: #fff; overflow: hidden; }
.card.kpi.bg-info { background: #e39400 !important; }        /* prontas a levantar  */
.card.kpi.bg-teal { background: var(--brand) !important; }    /* em distribuição     */
.card.kpi.bg-secondary { background: #7a4fe0 !important; }    /* por pagar           */
.card.kpi.bg-primary { background: #d92d20 !important; }      /* atrasadas           */
.kpi-value { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.card.kpi p { font-weight: 500; opacity: .95; margin-bottom: .6rem; }
.dashboard-nav-tabs { border-bottom: 0; margin-bottom: 1rem; gap: 6px; }
.dashboard-nav-tabs .nav-link { border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-weight: 600; font-size: .85rem; }
.dashboard-nav-tabs .nav-link.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- status chips (always colour + label) ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 99px; padding: 4px 12px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip-blue { background: #e6eeff; color: #1747b8; } .chip-amber { background: #fff1d6; color: #7a4e00; }
.chip-green { background: #ddf5ef; color: #0a6b5f; } .chip-red { background: #fde7e7; color: #b42318; }
.chip-purple { background: #efe9fd; color: #5b2fb8; } .chip-grey { background: #e9ecf2; color: #4b586c; }

/* ---------- order head + timeline ---------- */
.order-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: .6rem; }
.order-code { margin: 0; font-size: 1.7rem; font-weight: 500; letter-spacing: -.02em; }
.timeline { list-style: none; margin: .6rem 0 1rem; padding: 0; }
.timeline-item { display: flex; gap: 16px; min-height: 58px; }
.timeline-rail { display: flex; flex-direction: column; align-items: center; width: 26px; flex: 0 0 26px; }
.timeline-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); border: 2px solid var(--teal); box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.timeline-item.is-current .timeline-dot { background: #fff; border-color: #e39400; position: relative; }
.timeline-item.is-current .timeline-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e39400; }
.timeline-line { flex: 1; width: 2px; background: var(--teal); margin: 4px 0; }
.timeline-item.is-current .timeline-line { background: transparent; }
.timeline-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 3px; }
.timeline-head .mono { font-size: .8rem; color: var(--mut); }
.timeline-empty { color: var(--mut); }

/* ---------- door map ---------- */
.door-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin: .4rem 0 .8rem; }
.door-tile { border-radius: 10px; border: 2px solid; padding: 10px 4px; text-align: center; display: flex; flex-direction: column; gap: 3px; font-size: .8rem; font-weight: 500; }
.door-tag { font-family: var(--font); font-size: .68rem; font-weight: 600; }
.door-free { background: #fff; border-color: #b9c5d8; color: #5b6b82; }
.door-occ { background: #dce6f7; border-color: #dce6f7; color: #173c85; }
.door-alert { background: #fde7e7; border-color: #f4a9a3; color: #b42318; }
.door-off { background: #e9ecf2; border-color: #c8cfdb; color: #6b778c; }
.door-legend { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-2); font-size: .82rem; margin-bottom: 1.2rem; }
.door-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid; margin-right: 6px; vertical-align: -1px; }
h3.title { margin: 0 0 .8rem; }

/* ---------- buttons & forms ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: .5rem 1rem; transition: background .15s, box-shadow .15s, border-color .15s; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-600); border-color: var(--brand-600); }
.btn-primary:disabled { opacity: .55; }
.btn-success { background: var(--teal); border-color: var(--teal); color: #04312c; } .btn-success:hover { background: #0e9f91; border-color: #0e9f91; color: #fff; }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); } .btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-secondary, .btn-default { background: #fff; border: 1px solid #d3dbe8; color: var(--ink); } .btn-secondary:hover, .btn-default:hover { background: var(--bg); color: var(--ink); }
.btn-link { color: var(--brand); }
.badge-primary { background: var(--brand); }
.form-control, .custom-select { border: 1px solid #cbd4e3; border-radius: 10px; min-height: 42px; background: #fff; color: var(--ink); }
.form-control:focus, .custom-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.form-control[readonly] { background: #f8fafd; }
label { font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.alert { border-radius: 12px; border: 1px solid transparent; }

/* ---------- tables ---------- */
.table-responsive { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { margin: 0; color: var(--ink); }
.table th, .table td { border-top: 1px solid #e8ecf3; padding: .8rem 1rem; vertical-align: middle; }
.table thead th { border-top: 0; border-bottom: 1px solid var(--line); background: #f8fafd; color: var(--mut); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; white-space: nowrap; }
.table-bordered, .table-bordered th, .table-bordered td { border-left: 0; border-right: 0; } .table-bordered { border: 0; }
.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.table tbody tr:hover { background: var(--brand-50); }
.table th.sorting { cursor: pointer; } .table th.sorting:hover { color: var(--brand); }
.card .table { border-radius: 0; }
.pagination { margin: .9rem 0 0; }
.page-link { border: 1px solid var(--line); color: var(--ink); border-radius: 9px !important; margin: 0 2px; }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-item.disabled .page-link { color: #a3adbd; }
.modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 64px rgba(11, 31, 58, .28); }
.modal-header, .modal-footer { border-color: var(--line); }

/* ---------- guest (login / reset): split layout ---------- */
.guest-shell { min-height: 100vh; display: flex; flex-wrap: wrap; background: #fff; }
.guest-side { flex: 1 1 520px; min-width: 0; background: var(--navy); color: #fff; padding: 56px 64px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.guest-side .brand-name { font-size: 1.5rem; }
.guest-wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.guest-wall i { aspect-ratio: 1 / 1.15; border-radius: 10px; border: 1.5px solid #27406a; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; box-sizing: border-box; }
.guest-wall i.on { background: var(--navy-2); border-color: var(--navy-2); }
.guest-wall i.hit { background: var(--teal); border-color: var(--teal); }
.guest-wall i.dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(18, 181, 165, .22); }
.guest-side h2 { color: #fff; font-size: 2.1rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; max-width: 520px; margin: 34px 0 10px; }
.guest-side p { color: #b8c4d8; font-size: 1rem; line-height: 1.55; max-width: 480px; margin: 0; }
.guest-note { color: #7c8ca6; font-size: .82rem; }
.guest-main-wrap { flex: 1 1 480px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 48px 28px; box-sizing: border-box; background: var(--bg); }
.guest-main { width: 100%; max-width: 420px; }
.guest-main .container, .guest-main .row, .guest-main [class*="col-"] { padding: 0; margin: 0; max-width: 100%; flex: 0 0 100%; }
.guest-main .card { box-shadow: 0 12px 40px rgba(11, 31, 58, .09); padding: .8rem .6rem; }
.guest-main h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.guest-foot { margin-top: 1.2rem; text-align: center; color: var(--mut); font-size: .8rem; }
@media (max-width: 860px) { .guest-side { padding: 28px 24px; } .guest-wall, .guest-side h2, .guest-side p { display: none; } }

/* ---------- branding page ---------- */
.image-box { width: 132px; height: 64px; border: 1px dashed #c4cddc; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: repeating-conic-gradient(#f1f3f8 0 25%, #fff 0 50%) 0 0/14px 14px; }
.image-box img { max-width: 120px; max-height: 54px; object-fit: contain; }
.preview-bar { background: var(--navy); color: #fff; padding: 14px 18px; min-height: 64px; display: flex; align-items: center; border-top: 3px solid var(--brand); }
.preview-bar img { max-height: 34px; } .preview-bar span { font-weight: 700; font-size: 1.1rem; }



/* ---------- dashboard (exact design values) ---------- */
.btn-primary-lg { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: 14px; border-radius: 10px; padding: 12px 18px; }
.btn-primary-lg:hover { background: var(--brand-600); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none !important; }
.kpi-card:hover { border-color: #cdd6e4; color: var(--ink); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.kpi-value { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.kpi-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.kpi-label { color: var(--ink-2); font-weight: 500; } .kpi-delta { font-weight: 600; }
.split { display: flex; flex-wrap: wrap; gap: 16px; }
.panel { flex: 1 1 440px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.panel-flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.panel-head.pad { padding: 18px 22px 0; margin-bottom: 12px; }
.panel-head h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: 0; }
.panel-head a { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.panel-note { font-size: 13px; color: var(--mut); }
.occupancy { display: flex; flex-direction: column; gap: 16px; }
.occ-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; gap: 8px; }
.occ-name { font-weight: 600; } .occ-place { color: #66758c; font-weight: 400; } .occ-count { font-size: 13px; color: var(--ink-2); }
.bar { height: 10px; border-radius: 99px; background: #eaeff6; overflow: hidden; display: flex; } .bar > div { height: 100%; }
.occ-warn { margin-top: 6px; font-size: 12.5px; color: #b42318; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.table-scroll { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 700px; }
.dtable thead tr { background: #f8fafd; color: var(--mut); text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.dtable th { padding: 11px 12px; font-weight: 600; }
.dtable td { padding: 14px 12px; border-top: 1px solid #e8ecf3; }
.dtable .first { padding-left: 22px; } .dtable .last { padding-right: 22px; text-align: right; }
.dtable .muted { color: var(--mut); font-size: 13px; }
.code-link { font-size: 13.5px; font-weight: 500; text-decoration: none; }
.dtable tbody tr:hover { background: var(--brand-50); }

/* ---------- legacy colourful icon images -> neutral line icons (same markup, new look) ---------- */
img[src$="/adicionar_icon.svg"] { content: url(/img/ui/plus.svg); width: 20px !important; height: 20px !important; }
img[src$="/maissemfundo_icon.svg"] { content: url(/img/ui/plus.svg); width: 20px !important; height: 20px !important; }
img[src$="/criacao_armario_icon.svg"] { content: url(/img/ui/plus.svg); width: 20px !important; height: 20px !important; }
img[src$="/filtros_icon.svg"] { content: url(/img/ui/filter.svg); width: 20px !important; height: 20px !important; }
img[src$="/exportar_icon.svg"] { content: url(/img/ui/download.svg); width: 20px !important; height: 20px !important; }
img[src$="/exportar_lista_icon.svg"] { content: url(/img/ui/download.svg); width: 20px !important; height: 20px !important; }
img[src$="/editar_icon.svg"] { content: url(/img/ui/pencil.svg); width: 20px !important; height: 20px !important; }
img[src$="/eliminar_icon.svg"] { content: url(/img/ui/trash.svg); width: 20px !important; height: 20px !important; }
img[src$="/cancelar_icon.svg"] { content: url(/img/ui/arrow-left.svg); width: 20px !important; height: 20px !important; }
img[src$="/vermais_icon.svg"] { content: url(/img/ui/eye.svg); width: 20px !important; height: 20px !important; }
img[src$="/gravar_icon.svg"] { content: url(/img/ui/check.svg); width: 20px !important; height: 20px !important; }
img[src$="/pesquisa_icon.svg"] { content: url(/img/ui/search.svg); width: 20px !important; height: 20px !important; }
img[src$="/previsualizar_template_icon.svg"] { content: url(/img/ui/eye.svg); width: 20px !important; height: 20px !important; }
img[src$="/reenviar_email_icon.svg"] { content: url(/img/ui/mail.svg); width: 20px !important; height: 20px !important; }
img[src$="/email_icon.svg"] { content: url(/img/ui/mail.svg); width: 20px !important; height: 20px !important; }
img[src$="/redefinirpin_template_icon.svg"] { content: url(/img/ui/key.svg); width: 20px !important; height: 20px !important; }
img[src$="/reeniciar_aplicacao_icon.svg"] { content: url(/img/ui/refresh.svg); width: 20px !important; height: 20px !important; }
img[src$="/forceupdate_icon.svg"] { content: url(/img/ui/refresh.svg); width: 20px !important; height: 20px !important; }
img[src$="/temperatura_icon.svg"] { content: url(/img/ui/thermometer.svg); width: 20px !important; height: 20px !important; }
img[src$="/legenda_codigo_icon.svg"] { content: url(/img/ui/info.svg); width: 20px !important; height: 20px !important; }
img[src$="/mudar_estado_icon.svg"] { content: url(/img/ui/refresh.svg); width: 20px !important; height: 20px !important; }
img[src$="/Listagem_icon.svg"] { content: url(/img/ui/list.svg); width: 20px !important; height: 20px !important; }
img[src$="/utilizador_icon.svg"] { content: url(/img/ui/user.svg); width: 20px !important; height: 20px !important; }
img[src$="/perfil_icon.svg"] { content: url(/img/ui/user.svg); width: 20px !important; height: 20px !important; }
img[src$="/operador_icon.svg"] { content: url(/img/ui/user.svg); width: 20px !important; height: 20px !important; }
img[src$="/transportador_icon.svg"] { content: url(/img/ui/user.svg); width: 20px !important; height: 20px !important; }
img[src$="/alertas_icon.svg"] { content: url(/img/ui/info.svg); width: 20px !important; height: 20px !important; }
img[src$="/regras_icon.svg"] { content: url(/img/ui/list.svg); width: 20px !important; height: 20px !important; }
img[src$="/reservas_icon.svg"] { content: url(/img/ui/list.svg); width: 20px !important; height: 20px !important; }
img[src$="/reservas_fundo_icon.svg"] { content: url(/img/ui/list.svg); width: 20px !important; height: 20px !important; }
img[src$="/CsvFile_icon.svg"] { content: url(/img/ui/list.svg); width: 20px !important; height: 20px !important; }
.card-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-actions { position: static !important; display: inline-flex; gap: 10px; float: none !important; }
.card-actions a, .card-actions button, .card-header > a.btn, .card-header > button.btn, .card-header > a, .card-header > button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: 1px solid #d3dbe8; border-radius: 10px; background: #fff; padding: 0 10px; cursor: pointer; text-decoration: none; }
.card-actions a:hover, .card-actions button:hover, .card-header > a:hover, .card-header > button:hover { background: var(--bg); }
.actions-column a, .actions-column button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #d3dbe8; border-radius: 9px; background: #fff; margin-right: 6px; padding: 0; }
.actions-column a:hover { background: var(--bg); }
.actions-column img[src$="_icon.svg"] { width: 18px !important; height: 18px !important; }
.row-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #d3dbe8; border-radius: 9px; background: #fff; color: #3b4b63; margin-right: 6px; }
.row-btn:hover { background: var(--bg); color: var(--brand); }
.btn-outline-lg { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #d3dbe8; background: #fff; color: var(--ink) !important; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.btn-outline-lg:hover { background: var(--bg); } .btn-outline-lg.grow { flex: 1; justify-content: center; }
.btn-primary-lg { border: 0; cursor: pointer; font-family: inherit; height: 44px; padding: 0 18px; }
.btn-primary-lg:disabled, .btn-outline-lg:disabled { opacity: .55; cursor: default; }
.page-link { border: 1px solid var(--line) !important; } .pagination .page-item.active .page-link { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.panel-head h2, .panel-title { text-transform: none !important; }
.panel-title { margin: 0 0 6px; font-size: 17px; font-weight: 650; letter-spacing: 0; } .panel-note-block { margin: 0 0 16px; color: var(--mut); font-size: 13.5px; }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: var(--mut); align-items: center; } .crumbs a { text-decoration: none; } .crumb-current { color: var(--ink); font-weight: 500; }
.split.top { align-items: flex-start; } .panel-wide { flex: 1 1 520px; } .panel-side { flex: 1 1 360px; } .stack { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.stack .panel { flex: 0 0 auto; }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 11px 18px; font-size: 14px; } .kv dt { color: var(--mut); font-weight: 400; } .kv dd { margin: 0; font-weight: 500; text-align: right; }
.kv-flush { border-top: 1px solid #e8ecf3; padding-top: 14px; } .kv-sub { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); font-weight: 600; }
.door-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .door-list li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; } .door-list .muted { color: var(--mut); margin-left: auto; }
.door-map-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.door-here { background: var(--brand); border-color: var(--brand); color: #fff; } .door-ready { background: #fff1d6; border-color: #f5c66b; color: #7a4e00; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; } .tab { height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid #d3dbe8; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tab .mono { font-weight: 400; font-size: 12.5px; opacity: .85; margin-left: 4px; } .tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.board-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.board-door { aspect-ratio: 1 / 1.1; border-radius: 10px; border: 2px solid; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 500; padding: 0; cursor: pointer; background: #fff; }
.board-door.door-free { background: #fff; border-color: #b9c5d8; color: #5b6b82; } .board-door.door-occ { background: #dce6f7; border-color: #dce6f7; color: #173c85; }
.board-door.door-ready { background: #fff1d6; border-color: #f5c66b; color: #7a4e00; } .board-door.door-alert { background: #fde7e7; border-color: #f4a9a3; color: #b42318; }
.board-door.door-off { background: #e9ecf2; border-color: #c8cfdb; color: #6b778c; } .board-door.sel { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.board-tag { font-family: var(--font); font-size: 11px; font-weight: 600; }
.stat-pair { display: flex; gap: 14px; margin: 4px 0 16px; } .stat { flex: 1; background: var(--bg); border-radius: 12px; padding: 14px; } .stat-k { font-size: 12px; color: var(--mut); letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.stat-v { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; } .stat-n { font-size: 12.5px; color: var(--ink-2); } .stat-n.good { color: #0a7f72; font-weight: 600; } .stat-n.bad { color: #b42318; font-weight: 600; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 720px) { .board-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.table.nowrap th, .table.nowrap td { white-space: nowrap; }
.door-legend span { display: inline-flex; align-items: center; }
.btn-row .btn-outline-lg { padding: 0 12px; }
