/*! Bondie CRM – ukázka aplikace. © 2026 Bondie, všechna práva vyhrazena. Kopírování, úpravy a další použití kódu nebo jeho částí bez písemného souhlasu autora jsou zakázány. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
   src: url(../fonts/inter/inter-latin-ext.woff2) format("woff2");
   unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
   src: url(../fonts/inter/inter-latin.woff2) format("woff2");
   unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
   --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f6f7f9; --surface-3: #eceff3;
   --border: #e4e7ec; --border-strong: #cfd4dc;
   --text: #14161a; --text-2: #4b5260; --muted: #5f6673;   
   --accent: #0f766e; --accent-hover: #0b5f58; --accent-soft: #e3f2f0; --accent-text: #0b5f58;
   --good: #0e7a3a; --good-soft: #e3f4e8; --bad: #c0352f; --bad-soft: #fbe8e6;
   --warn: #9a6200; --warn-soft: #fdf1d8; --info: #1f62b5; --info-soft: #e6f0fc;
   --side-bg: #0e1a2e; --side-text: #b9c3d3; --side-muted: #6f7d93; --side-active: #ffffff; --side-hover: #16253d;
   --radius: 12px; --radius-sm: 8px;
   --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
   --sidebar-w: 236px; --topbar-h: 56px;
   --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body[data-shell="v2"] { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px;
   line-height: 1.5; -webkit-font-smoothing: antialiased; }
body[data-shell="v2"] a { color: var(--accent-text); }
body[data-shell="v2"] h1, body[data-shell="v2"] h2, body[data-shell="v2"] h3, body[data-shell="v2"] h4 { color: var(--text); font-weight: 600; }
body[data-shell="v2"] .text-muted { color: var(--muted) !important; }
.bondie-zero { color: var(--border-strong); }
body[data-shell="v2"] :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--side-bg); color: var(--side-text);
   display: flex; flex-direction: column; z-index: 1030; overflow-y: auto; }
.app-brand { display: flex; align-items: center; gap: 10px; height: var(--topbar-h); padding: 0 20px; color: #fff !important;
   font-weight: 700; font-size: 17px; letter-spacing: .2px; text-decoration: none !important; flex: 0 0 auto; }
.app-brand-mark { width: 36px; height: 24px; flex: 0 0 auto; display: block; }   
.app-nav { list-style: none; margin: 0; padding: 8px 10px 20px; }
.app-nav-section { margin: 18px 10px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
   color: var(--side-muted); }
.app-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--side-text) !important;
   text-decoration: none !important; font-weight: 500; }
.app-nav a .fa { width: 18px; text-align: center; font-size: 15px; opacity: .85; }
.app-nav a:hover { background: var(--side-hover); color: #fff !important; }
.app-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--side-active) !important; font-weight: 600;
   box-shadow: inset 3px 0 0 #2dd4bf; }
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 1020; height: var(--topbar-h); background: var(--surface);
   border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.app-topbar-title { font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.app-icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 8px;
   color: var(--text-2) !important; background: transparent; border: 0; text-decoration: none !important; position: relative; }
.app-icon-btn:hover { background: var(--surface-2); color: var(--text) !important; }
.app-icon-btn .fa { font-size: 17px; }
.app-menu-toggle { display: none; }
.app-user { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; color: var(--text-2); white-space: nowrap; }
.app-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text);
   display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.app-topbar .bondie-notif-count { position: absolute; top: 3px; right: 2px; font-size: 10px; padding: 2px 5px; border-radius: 10px; }
.app-topbar .dropdown-menu { border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow); min-width: 340px; }
.app-search { position: relative; flex: 1 1 auto; max-width: 440px; margin-left: 12px; }
.app-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.app-search-input { width: 100%; height: 36px; padding: 0 34px 0 32px; border: 1px solid var(--border); border-radius: 8px;
   background: var(--surface-2); color: var(--text); font-size: 14px; }
.app-search-input:focus { background: var(--surface); border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.app-search-input::-webkit-search-cancel-button { display: none; }
.app-search-kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 11px/1 inherit; padding: 3px 6px;
   color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: none; }
.app-search-input:focus ~ .app-search-kbd { display: none; }
.app-search-results { position: fixed; width: 460px; max-width: calc(100vw - 16px); max-height: min(70vh, 520px); overflow-y: auto;
   background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; z-index: 1060; }
.app-search-group { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px 4px; }
.app-search-item { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 6px; color: var(--text) !important;
   text-decoration: none !important; }
.app-search-item .fa { width: 16px; margin-top: 3px; text-align: center; color: var(--muted); }
.app-search-item small { display: block; color: var(--muted); }
.app-search-item.is-active { background: var(--surface-2); }
.app-search-item.is-active .fa { color: var(--accent-text); }
.app-search-main { font-weight: 500; }
.app-search-item mark { padding: 0; background: var(--accent-soft); color: inherit; border-radius: 2px; }
.app-search-more, .app-search-empty { padding: 6px 10px 8px 36px; font-size: 12px; color: var(--muted); }
.app-search-empty { padding-left: 10px; font-size: 13px; }
@media (max-width: 991.98px) { .app-topbar-title { display: none; } .app-search { margin-left: 0; } }
@media (max-width: 575px) {
   .app-search-kbd, .bondie-lang { display: none; }
   .app-search-results { left: 8px !important; right: 8px; width: auto; min-width: 0 !important; }
}
.bondie-setting-group { color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; margin-bottom: 4px; }
.bondie-setting { display: flex; gap: 24px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border); }
.bondie-setting-group + .bondie-setting { border-top: 0; }
.bondie-setting-text { flex: 1 1 auto; min-width: 0; }
.bondie-setting-label { font-weight: 600; }
.bondie-setting-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.bondie-setting-control { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 50%; }
.bondie-setting-history { margin-top: 8px; padding: 8px 10px; background: var(--surface-2); border-radius: var(--radius-sm); }
@media (max-width: 575px) { .bondie-setting { flex-direction: column; gap: 8px; } .bondie-setting-control { max-width: none; justify-content: flex-start; } }
.bondie-mini-table tbody tr.is-clickable { cursor: pointer; }
.bondie-mini-table tbody tr.is-clickable:hover { background: var(--surface-2); }
.bt-choose .card { margin: 0 0 14px; }
.bondie-select-col { width: 34px; text-align: center; vertical-align: middle !important; }
.bondie-select-col input { width: 16px; height: 16px; cursor: pointer; }
.bondie-table-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; margin-bottom: 8px;
   background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.bondie-table-bulk:not([hidden]) { position: sticky; top: calc(var(--topbar-h) + 4px); z-index: 5; }
.bondie-queues { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bondie-queues-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bondie-queues-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bondie-queue { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
   background: var(--surface); color: var(--text) !important; text-decoration: none !important; font-size: 14px; }
.bondie-queue strong { min-width: 22px; text-align: center; padding: 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.bondie-queue:hover { border-color: var(--accent); }
.bondie-queue.is-empty { color: var(--muted); border-style: dashed; }   
.bondie-queue.is-empty strong { background: var(--surface-2); color: var(--muted); }
.bondie-drawer-back { flex: 0 0 auto; width: 34px; height: 34px; margin-right: 4px; border: 1px solid var(--border); border-radius: 8px;
   background: var(--surface); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; }
.bondie-drawer-back:hover { background: var(--surface-2); color: var(--text); }
#perm-matrix td, #perm-matrix th { white-space: normal; }
.bondie-module-off-B [data-module="B"], .bondie-module-off-S [data-module="S"], .bondie-module-off-U [data-module="U"], .bondie-module-off-D [data-module="D"], .bondie-module-off-C [data-module="C"],
.bondie-module-off-P [data-module="P"], .bondie-module-off-W [data-module="W"],
.bondie-cannot-money [data-perm~="money"], .bondie-cannot-money [data-pay], .bondie-cannot-money .bondie-paid-form,
.bondie-cannot-money #sender, .bondie-cannot-handover .bondie-table-bulk [data-bulk], .bondie-cannot-money .bondie-drawer [data-act="post"],
.bondie-cannot-money .bondie-drawer [data-act="choose"], .bondie-cannot-money .bondie-drawer [data-act="confirm-out"],
.bondie-cannot-money .bondie-drawer [data-act="sent"], .bondie-cannot-money .bondie-drawer [data-act="execute"],
.bondie-cannot-sales [data-perm~="sales"], .bondie-cannot-bonds [data-perm~="bonds"], .bondie-cannot-bonds .bondie-owner-form,
.bondie-cannot-handover [data-perm~="handover"], .bondie-cannot-handover .bondie-drawer [data-act="print"], .bondie-cannot-handover .bondie-drawer [data-act="deliver"],
.bondie-cannot-documents [data-perm~="documents"], .bondie-cannot-documents .bondie-upload { display: none !important; }
.bondie-perm-note { display: none; }
.bondie-cannot-money .bondie-perm-note[data-need~="money"], .bondie-cannot-sales .bondie-perm-note[data-need~="sales"],
.bondie-cannot-bonds .bondie-perm-note[data-need~="bonds"], .bondie-cannot-handover .bondie-perm-note[data-need~="handover"] { display: block; }
body[data-shell="v2"] .bondie-environment { border-bottom: 1px solid; padding: 8px 24px; }
.app-content { padding: 24px 28px 40px; width: 100%; max-width: 1680px; }
.app-footer { margin-top: auto; padding: 16px 28px; color: var(--muted); font-size: 12px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.page-head-text { flex: 1 1 420px; min-width: 0; }
.page-note { margin: 6px 0 0; color: var(--text-2); max-width: 900px; }
.page-note b, .page-note strong { color: var(--text); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.note { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
   padding: 10px 14px; color: var(--text-2); }
.note b, .note strong { color: var(--text); }
.hint { color: var(--muted); font-size: 12.5px; }
body[data-shell="v2"] .card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
body[data-shell="v2"] .card-header { background: transparent; border-bottom: 1px solid var(--border); padding: 14px 18px; }
body[data-shell="v2"] .card-header h2, body[data-shell="v2"] .card-header h4 { font-size: 15px; margin: 0; }
body[data-shell="v2"] .card-body { padding: 16px 18px; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 12px; }
.pills-divider { width: 1px; height: 22px; margin: 0 3px; background: var(--border-strong); }   
.status-filter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   
.pill.is-empty:not([aria-pressed="true"]) { border-style: dashed; color: var(--muted); }   
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.pill-dot.dot-success { background: var(--good); } .pill-dot.dot-warning { background: #d99a00; } .pill-dot.dot-danger { background: var(--bad); }
.pill-dot.dot-info, .pill-dot.dot-primary { background: var(--info); }
.pill[aria-pressed="true"] .pill-dot { box-shadow: 0 0 0 2px #fff; }
.pill.is-empty .pill-count { background: transparent; }
.bondie-segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-3); margin: 0 0 12px; }
.bondie-segmented button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.bondie-segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.bondie-segmented button small { color: var(--muted); margin-left: 4px; }
.page-actions .bondie-segmented { margin: 0; }
.bondie-filters-line.is-compact .bondie-filters label, .bondie-filters-line.is-compact .form-group > label {
   position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bondie-filters-line.is-compact { align-items: center; margin-bottom: 8px; }
.bondie-filters-line.is-compact .bondie-filters, .bondie-filters-line.is-compact .form-group { margin-bottom: 0; align-items: center; }
body[data-shell="v2"] .bondie-filters-line.is-compact .form-control { min-height: 34px; height: 34px; font-size: 14px; padding-top: 4px; padding-bottom: 4px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 7px; font-size: 13px; border-radius: 999px; border: 1px solid var(--border);
   background: var(--surface); color: var(--text-2); font-weight: 500; cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill .pill-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; background: var(--surface-3); color: var(--text-2);
   font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill[aria-pressed="true"] .pill-count { background: rgba(0, 0, 0, .18); color: #fff; }
.pill.tone-bad .pill-count { background: var(--bad-soft); color: var(--bad); }
.pill.tone-warn .pill-count { background: var(--warn-soft); color: var(--warn); }
.pill[aria-pressed="true"].tone-bad .pill-count, .pill[aria-pressed="true"].tone-warn .pill-count { background: rgba(0, 0, 0, .18); color: #fff; }
.filters-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.filters-row .form-group { margin: 0; min-width: 220px; flex: 0 1 280px; }
.filters-row label { font-size: 12px; color: var(--muted); margin-bottom: 3px; font-weight: 500; }
body[data-shell="v2"] .btn { border-radius: 10px; font-weight: 600; font-size: 14px; padding: .5rem 1rem; }
body[data-shell="v2"] .btn-sm { padding: .3rem .7rem; font-size: 13px; border-radius: 8px; }
body[data-shell="v2"] .btn-primary, body[data-shell="v2"] .btn-add, body[data-shell="v2"] .btn-success {
   background: var(--accent); border-color: var(--accent); color: #fff; }
body[data-shell="v2"] .btn-primary:hover, body[data-shell="v2"] .btn-add:hover, body[data-shell="v2"] .btn-success:hover {
   background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
body[data-shell="v2"] .btn-outline-secondary { color: var(--text-2); border-color: var(--border-strong); background: var(--surface); }
body[data-shell="v2"] .btn-outline-secondary:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
body[data-shell="v2"] .form-control { border-radius: 10px; border-color: var(--border-strong); min-height: 40px; color: var(--text); }
body[data-shell="v2"] input[type="file"].form-control:not(.form-control-sm) { height: 40px; padding-top: 4px; padding-bottom: 4px; }
body[data-shell="v2"] .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
body[data-shell="v2"] label { font-weight: 500; color: var(--text-2); }
body[data-shell="v2"] .bondie-fieldset { border-color: var(--border); border-radius: var(--radius); }
body[data-shell="v2"] .bondie-price { background: var(--accent-soft); border-left-color: var(--accent); border-radius: var(--radius-sm); }
body[data-shell="v2"] .badge { font-weight: 600; font-size: 12px; padding: 4px 9px; border-radius: 999px; letter-spacing: .1px; }
body[data-shell="v2"] .badge-danger { background: var(--bad-soft); color: var(--bad); }
body[data-shell="v2"] .badge-warning { background: var(--warn-soft); color: var(--warn); }
body[data-shell="v2"] .badge-primary, body[data-shell="v2"] .badge-info { background: var(--info-soft); color: var(--info); }
body[data-shell="v2"] .badge-success { background: var(--good-soft); color: var(--good); }
body[data-shell="v2"] .badge-secondary { background: var(--surface-3); color: var(--text-2); }
body[data-shell="v2"] .alert { border-radius: var(--radius-sm); border: 1px solid transparent; border-left-width: 3px; }
body[data-shell="v2"] .alert-success { background: var(--good-soft); border-color: #b9e2c6; border-left-color: var(--good); color: #0b4f27; }
body[data-shell="v2"] .alert-danger { background: var(--bad-soft); border-color: #f2c4c0; border-left-color: var(--bad); color: #7d1f1b; }
body[data-shell="v2"] .alert-warning { background: var(--warn-soft); border-color: #f1d9a3; border-left-color: var(--warn); color: #5c3b00; }
body[data-shell="v2"] .alert-info { background: var(--info-soft); border-color: #c4d9f5; border-left-color: var(--info); color: #173f73; }
body[data-shell="v2"] .table { color: var(--text); margin-bottom: 0; }
body[data-shell="v2"] .table thead th { background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600;
   border-top: 0; border-bottom: 1px solid var(--border); white-space: nowrap; }   
body[data-shell="v2"] .table td { border-top: 1px solid var(--border); vertical-align: middle; white-space: nowrap;
   max-width: 280px; overflow: hidden; text-overflow: ellipsis; }   
body[data-shell="v2"] .bondie-facts td { white-space: normal; max-width: none; }
body[data-shell="v2"] .table-bordered, body[data-shell="v2"] .table-bordered td, body[data-shell="v2"] .table-bordered th { border-left: 0; border-right: 0; }
body[data-shell="v2"] .table-striped tbody tr:nth-of-type(odd) { background: transparent; }
body[data-shell="v2"] .table-hover tbody tr:hover { background: #f7faf9; }
body[data-shell="v2"] .table-responsive { border: 1px solid var(--border); border-radius: var(--radius); }
body[data-shell="v2"] tr[data-row][tabindex] { cursor: pointer; }
body[data-shell="v2"] .bondie-table-total th, body[data-shell="v2"] .bondie-table-total td { background: var(--surface-2); border-top: 2px solid var(--border);
   font-weight: 600; white-space: nowrap; }   
body[data-shell="v2"] .bondie-drawer { background: var(--bg); }
body[data-shell="v2"] .bondie-drawer-header { background: var(--surface); border-bottom: 1px solid var(--border); }
body[data-shell="v2"] .bondie-drawer-header h2 { font-size: 18px; }
.bondie-panel-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.bondie-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bondie-kpis > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.bondie-kpis span { display: block; font-size: 12px; color: var(--muted); }
.bondie-kpis strong { display: block; font-size: 19px; margin: 2px 0; letter-spacing: -.2px; }
.bondie-kpis small { color: var(--muted); }
.bondie-kpis .is-bad strong { color: var(--bad); } .bondie-kpis .is-warn strong { color: var(--warn); } .bondie-kpis .is-good strong { color: var(--good); }
.bondie-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bondie-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.bondie-tabs button { border: 0; background: transparent; padding: 9px 14px; color: var(--text-2); font-weight: 500;
   border-bottom: 2px solid transparent; margin-bottom: -1px; }
.bondie-tabs button.active { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 600; }
body[data-shell="v2"] .bondie-facts { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
body[data-shell="v2"] .bondie-facts th { color: var(--muted); font-weight: 500; }
@media (max-width: 991.98px) {
   .app-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
   body.app-menu-open .app-sidebar { transform: none; }
   .app-main { margin-left: 0; }
   .app-menu-toggle { display: inline-flex; }
   .app-content { padding: 16px; }
   .app-user-name { display: none; }
}
@media print {
   .app-sidebar, .app-topbar, .bondie-environment, .page-actions, .pills { display: none !important; }
   .app-main { margin: 0; }
}
body[data-shell="v2"] .card { margin-bottom: 16px; }
body[data-shell="v2"] .card-title, body[data-shell="v2"] .custom_title { margin: 0 !important; }
body[data-shell="v2"] .card-header h4 { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.4; }
body[data-shell="v2"] .card-header .btn { margin: 0; }
body[data-shell="v2"] .content > .row, body[data-shell="v2"] section.content > .row { margin-bottom: 0; }
body[data-shell="v2"] .card:has(> .card-header[aria-controls^="bondie-help-"]) { box-shadow: none; background: transparent;
   border-style: dashed; }
body[data-shell="v2"] .card-header[aria-controls^="bondie-help-"] { border-bottom: 0; padding: 10px 16px; }
body[data-shell="v2"] .card-header[aria-controls^="bondie-help-"] h4 { font-weight: 500; color: var(--text-2); font-size: 14px; }
body[data-shell="v2"] .card-header[aria-controls^="bondie-help-"][aria-expanded="true"] { border-bottom: 1px solid var(--border); }
body[data-shell="v2"] .bondie-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-bottom: 12px; }
body[data-shell="v2"] .bondie-filters .form-group { margin-bottom: 0; min-width: 160px; }
body[data-shell="v2"] .bondie-filters label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
@media (max-width: 575px) { body[data-shell="v2"] .bondie-filters .form-group { flex: 1 1 100%; } }
body[data-shell="v2"] .bondie-tab-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px;
   background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 600; text-align: center; }
.bondie-search-select { position: relative; }
.bondie-search-list { position: absolute; z-index: 1060; left: 0; right: 0; top: calc(100% + 2px); max-height: 300px; overflow-y: auto;
   margin: 0; padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
   box-shadow: 0 8px 24px rgba(15, 23, 42, .12); }
.bondie-search-list li { padding: 6px 12px; cursor: pointer; line-height: 1.3; }
.bondie-search-list li small { display: block; color: var(--muted); font-size: 12px; }
.bondie-search-list li[aria-selected="true"] { background: var(--surface-2); color: var(--accent-text); }
.bondie-search-list li.bondie-search-none { cursor: default; color: var(--muted); font-size: 13px; }
.bondie-search-list li[aria-disabled="true"] { cursor: not-allowed; color: var(--muted); opacity: .6; }   
.bondie-field-picker { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
.bondie-field-picker .form-group { flex: 1 1 22rem; min-width: 0; margin-bottom: 0; }
.bondie-field-picker .bondie-search-list { max-height: 420px; }
body[data-shell="v2"] .bondie-filters-line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin-bottom: 4px; }
body[data-shell="v2"] .bondie-filters-line .bondie-filters { margin-bottom: 8px; }
body[data-shell="v2"] .pill small { color: var(--muted); margin-left: 4px; }
body[data-shell="v2"] .pill[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
.bondie-dialog { border: 0; padding: 0; border-radius: var(--radius); width: min(520px, calc(100vw - 32px)); color: var(--text);
   background: var(--surface); box-shadow: 0 24px 48px rgba(15, 23, 42, .25); }
.bondie-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.bondie-dialog .modal-header, .bondie-dialog .modal-footer { border-color: var(--border); }
#tree1, #tree2 { padding-left: 18px; } #tree1 ul, #tree2 ul { padding-left: 18px; color: var(--muted); }
body.bondie-hints-off .form-text.text-muted,
body.bondie-hints-off .page-note,
body.bondie-hints-off .bondie-help-card,
body.bondie-hints-off .bondie-drawer-body p.small.text-muted,
body.bondie-hints-off .bondie-chart-note,
body.bondie-hints-off .bondie-hint { display: none !important; }
.bondie-hints-toggle.is-on { color: var(--accent-text); }
.bondie-hints-toggle.is-on .fa { color: #d97706; }
.bondie-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bondie-payouts-mini td:first-child { white-space: normal; }
.bondie-payouts-mini tbody tr { cursor: pointer; }
body[data-shell="v2"] .payout-recipients td:first-child { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 767px) {
   body[data-shell="v2"] .card-body table.table:not(.bondie-facts) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
   body[data-shell="v2"] .card-body table.table select { min-width: 110px; }
}
@media (min-width: 768px) {
   body[data-shell="v2"] .bondie-table > .table-responsive { max-height: calc(100vh - 96px); overflow: auto; }
   body[data-shell="v2"] .bondie-table td { max-width: 220px; }
   body[data-shell="v2"] .bondie-table thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--border); }
   body[data-shell="v2"] .bondie-table tfoot th, body[data-shell="v2"] .bondie-table tfoot td { position: sticky; bottom: 0; z-index: 1; }
}
@media (min-width: 768px) and (max-width: 1440px) {   
   body[data-shell="v2"] .bondie-table th, body[data-shell="v2"] .bondie-table td { padding-left: 8px; padding-right: 8px; }
   body[data-shell="v2"] .bondie-table td { max-width: 170px; }
}
.bondie-cell-sub { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.bondie-table-toolbar .bondie-table-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bondie-table-toolbar .bondie-table-filters[hidden] { display: none; }
.bondie-table-toolbar .bondie-table-filters .bondie-filters { margin: 0; align-items: center; gap: 8px; }
.bondie-table-toolbar .bondie-table-filters .form-group { margin: 0; min-width: 0; }
.bondie-table-toolbar .bondie-table-filters label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bondie-table-toolbar .bondie-table-filters .form-control { width: auto; max-width: 210px; }
.bondie-table-toolbar .bondie-table-filters .bondie-search-select .form-control { width: 230px; }
.bondie-table-toolbar:has(.bondie-table-filters:not([hidden])) input[type=search] { max-width: 210px; }
.bondie-table-toolbar .bondie-table-filters .btn-link { padding: 0 4px; }
.bondie-table-toolbar .bondie-table-filters .form-check { margin: 0 4px; white-space: nowrap; }
#cal-filters #issue { max-width: 320px; }
body[data-shell="v2"] .bondie-table-toolbar .form-control { min-height: 34px; height: 34px; font-size: 14px; padding-top: 4px; padding-bottom: 4px; }
@media (max-width: 575px) {
   .bondie-table-toolbar .bondie-table-filters, .bondie-table-toolbar .bondie-table-filters .form-group { flex: 1 1 100%; }
   .bondie-table-toolbar .bondie-table-filters .form-control, .bondie-table-toolbar .bondie-table-filters .bondie-search-select .form-control { width: 100%; max-width: none; }
}
.page-head h1 .page-help { font-size: 13px; font-weight: 500; letter-spacing: 0; margin-left: 12px; vertical-align: middle;
   color: var(--accent-text); white-space: nowrap; text-decoration: none; }
.page-head h1 .page-help:hover { text-decoration: underline; }
.page-note .page-note-more { display: none; }
.page-note.is-open .page-note-more { display: inline; }
.page-note-toggle { border: 0; background: none; padding: 0 2px; color: var(--accent-text); font-size: inherit; cursor: pointer; white-space: nowrap; }
.page-note-toggle:hover { text-decoration: underline; }
.bondie-table-pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; font-size: 13px; }
.bondie-table-pager .bondie-table-range { color: var(--muted, #6b7280); }
.bondie-levels { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin-bottom: 18px; }
.bondie-levels dt { margin: 0; }
.bondie-levels dd { margin: 0; color: var(--muted, #6b7280); font-size: 14px; }
.bondie-tour { position: fixed; z-index: 1100; width: min(380px, calc(100vw - 24px)); background: var(--surface); color: var(--text);
   border-radius: var(--radius); box-shadow: 0 18px 40px rgba(15, 23, 42, .28); padding: 14px 16px 12px; border-top: 4px solid var(--accent); }
.bondie-tour.is-docked { right: 16px; bottom: 16px; left: auto !important; top: auto !important; }
@media (max-width: 639px) { .bondie-tour.is-docked { right: 12px; left: 12px !important; bottom: 12px; width: auto; } }
.bondie-tour-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.bondie-tour-head .bondie-tour-count { margin-left: auto; white-space: nowrap; }
.bondie-tour-head .close { font-size: 20px; line-height: 1; margin-left: 4px; }
.bondie-tour-progress { height: 3px; background: var(--surface-3); border-radius: 2px; margin-bottom: 10px; }
.bondie-tour-progress span { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .2s; }
.bondie-tour h3 { font-size: 16px; margin: 0 0 6px; }
.bondie-tour-text { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.bondie-tour-actions { display: flex; align-items: center; gap: 6px; }
.bondie-tour-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 2px 0 10px; }
.bondie-tour .bondie-tour-links .btn-link { padding: 0; border: 0; font-size: 13px; font-weight: 500; min-height: 0; }
.bondie-tour .bondie-tour-links .bondie-tour-skip { color: var(--muted); font-weight: 400; }
.bondie-tour-spot { position: fixed; z-index: 1090; border-radius: 10px; pointer-events: none; display: none;
   box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(15, 23, 42, .35); transition: all .15s; }
body.bondie-touring .bondie-drawer-root { z-index: 1080; }
.bondie-law-ref { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 2px; padding: 0; vertical-align: 1px;
   border: 1px solid var(--accent); border-radius: 50%; background: var(--accent-soft); color: var(--accent-text);
   font-size: 11px; font-weight: 700; line-height: 1; cursor: pointer; }
.bondie-law-ref:hover { background: var(--accent); color: #fff; }
.bondie-law-ref.is-static { cursor: default; }
.bondie-law-pop { position: fixed; z-index: 1200; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
   box-shadow: 0 18px 40px rgba(15, 23, 42, .25); padding: 12px 14px; font-size: 13px; }
.bondie-law-pop .bondie-law-close { position: absolute; top: 6px; right: 10px; }
.bondie-law-head { color: var(--muted); margin-bottom: 6px; padding-right: 20px; }
.bondie-law-head strong { color: var(--text); }
.bondie-law-card blockquote { margin: 0 0 8px; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--surface-2);
   font-style: italic; color: var(--text-2); }
.bondie-law-meaning { margin-bottom: 6px; }
.bondie-law-src { margin: 0; font-size: 12px; color: var(--muted); }
.bondie-dialog-wide { width: min(680px, calc(100vw - 32px)); }
.bondie-explain { font-size: 14px; }
.bondie-explain ul, .bondie-explain ol { padding-left: 20px; }
.bondie-checklist { list-style: none; padding-left: 0 !important; }
.bondie-checklist li { position: relative; padding-left: 26px; margin-bottom: 4px; }
.bondie-checklist li::before { content: "☐"; position: absolute; left: 4px; color: var(--accent); }
.bondie-explain-docs { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 12px; margin: 10px 0; }
.bondie-explain-docs ul { margin: 4px 0 0; }
a.bondie-why { font-size: 12px; margin-left: 6px; white-space: nowrap; }
.bondie-guide-start { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
   background: linear-gradient(135deg, var(--accent) 0%, #115e59 100%); color: #fff; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 26px; }
.bondie-guide-start h2 { color: #fff !important; font-size: 22px; margin: 2px 0 4px; }
.bondie-guide-start p { margin: 0; opacity: .9; }
.bondie-guide-start small { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; opacity: .85; }
.bondie-guide-start > .btn, .bondie-guide-start > .btn:hover { background: #fff; color: var(--accent-text); border: 0; font-weight: 600; }
.bondie-guide-start.is-going { background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 14px 20px; }
.bondie-guide-start.is-going h2 { color: var(--text) !important; font-size: 17px; }
.bondie-guide-start.is-going small { color: var(--good); opacity: 1; }
.bondie-guide-start.is-going .btn { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); font-size: 14px; padding: 6px 12px; }
.bondie-guide-h { font-size: 18px; margin: 0 0 2px; }
.bondie-flow-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px 4px; margin: 10px 0 14px; }
.bondie-flow-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); margin-bottom: 8px; }
.bondie-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }   
.bondie-flow li { position: relative; }
.bondie-flow li:not(:last-child)::after { content: "›"; position: absolute; right: -9px; top: 22px; color: var(--muted); font-size: 18px; }
.bondie-flow .bondie-situation { height: calc(100% - 8px); }
@media (max-width: 1199px) { .bondie-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bondie-flow li::after { display: none; } }
@media (max-width: 639px) { .bondie-flow { grid-template-columns: 1fr; } }
.bondie-flow-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
   color: #fff; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.bondie-situation.is-done .bondie-flow-n { background: var(--good); }
.bondie-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1199px) { .bondie-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .bondie-groups { grid-template-columns: 1fr; } }
.bondie-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.bondie-group h3 { font-size: 14px; margin: 0 0 10px; color: var(--text-2); }
.bondie-group h3 .fa { color: var(--accent); margin-right: 4px; }
.bondie-situation { display: block; width: 100%; text-align: left; background: var(--surface-2); border: 1px solid transparent;
   border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 8px; color: var(--text); cursor: pointer; }
.bondie-situation:hover { border-color: var(--accent); background: var(--accent-soft); }
.bondie-situation strong { display: block; font-size: 14px; }
.bondie-situation small { display: block; color: var(--muted); font-size: 12px; }
.bondie-situation.is-done strong::after { content: " ✓"; color: var(--good); }
.bondie-situation .badge { font-weight: 500; margin-top: 4px; }
.bondie-guide-progress { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; margin: 6px 0; }
.bondie-guide-progress span { display: block; height: 100%; background: var(--accent); }
.bondie-laws li { margin-bottom: 4px; }
.bondie-panel-actions .bondie-why, .bondie-tour-text .bondie-why { align-self: center; }
.bondie-data-now { border-radius: var(--radius-sm); padding: 10px 12px; border-left: 4px solid var(--good); background: var(--good-soft); }
.bondie-data-now.is-other { border-left-color: var(--warn); background: var(--warn-soft); }
#guide-data details > summary { cursor: pointer; }
.bondie-situation { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.bondie-laws { font-size: 13px; padding-left: 18px; }
.bondie-guide-start.is-going { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.bondie-guide-start.is-going h2 { color: var(--text) !important; }
.bondie-guide-start.is-going small { color: var(--accent-text); opacity: 1; }
.bondie-guide-start.is-going > .btn, .bondie-guide-start.is-going > .btn:hover { background: var(--accent); color: #fff; }
.bondie-guide-start-text { flex: 1 1 360px; }
.bondie-start-progress { margin-top: 10px; max-width: 520px; }
.bondie-start-progress small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted) !important; }
.bondie-start-progress .bondie-guide-progress span { background: linear-gradient(90deg, var(--accent), #2dd4bf); }
.bondie-situation.is-done { background: var(--good-soft); }
.bondie-situation.is-done strong::after { content: " ✓"; color: var(--good); }
.bondie-group h3 small { font-weight: 400; margin-left: 4px; }
.bondie-tour-done { text-align: left; }
.bondie-tour-medal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin: 4px 0 8px;
   background: var(--good-soft); color: var(--good); font-size: 20px; animation: bondie-pop .4s ease-out; }
.bondie-tour-progress-lg { height: 6px; }
.bondie-tour-progress-lg span { background: linear-gradient(90deg, var(--accent), #2dd4bf); }
@keyframes bondie-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bondie-tour-medal { animation: none; } }
.app-nav-guide { margin-bottom: 8px; }
.app-nav-guide a { background: linear-gradient(135deg, rgba(45, 212, 191, .16), rgba(45, 212, 191, .06));
   border: 1px solid rgba(45, 212, 191, .28); color: #e6fffb !important; }
.app-nav-guide a:hover { background: rgba(45, 212, 191, .22); }
.app-nav-guide a .fa { color: #2dd4bf; opacity: 1; }
.app-nav-badge:empty { display: none; }
.app-nav-badge { margin-left: auto; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: #2dd4bf; color: #0e1a2e; }
.bondie-start-progress .btn-link { border: 0; background: none; padding: 0; font-size: 12px; color: var(--accent-text); text-decoration: underline; vertical-align: baseline; }
.bondie-flow-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.bondie-flow-head > div { flex: 1 1 420px; }
.bondie-flow-wrap { border-color: rgba(15, 118, 110, .35); box-shadow: 0 0 0 3px var(--accent-soft); }
.bondie-flow-label .badge { font-weight: 600; letter-spacing: 0; text-transform: none; background: var(--accent); }
.bondie-tour-head.is-draggable { cursor: move; user-select: none; touch-action: none; }
.bondie-tour-actions .btn-link { padding-left: 4px; padding-right: 4px; }
.bondie-tour .bondie-tour-end { color: var(--text-2) !important; border-color: var(--border-strong); background: transparent; }
.bondie-tour .bondie-tour-end:hover { color: var(--bad) !important; border-color: var(--bad); background: var(--bad-soft); }
.bondie-guide-overall { flex-direction: column; align-items: flex-end; gap: 4px; min-width: 200px; }
.bondie-guide-overall .bondie-guide-progress { width: 200px; margin: 0; height: 6px; }
.bondie-guide-overall small { color: var(--muted); }
.bondie-guide-overall .btn-link { font-size: 12px; border: 0; padding: 0; }
.bondie-gsec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.bondie-gsec-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bondie-gsec-n { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px;
   background: var(--accent-soft); color: var(--accent-text); }
.bondie-gsec-title { flex: 1 1 320px; min-width: 0; }
.bondie-gsec-title h2 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bondie-gsec-title h2 small, .bondie-gsec-title h2 .badge { font-size: 12px; font-weight: 500; }
.bondie-gsec-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.bondie-gsec.is-first { border-left: 4px solid var(--accent); }
.bondie-gsec.is-first .bondie-gsec-n { background: var(--accent); color: #fff; }
.bondie-gsec.is-first.is-done { border-left-color: var(--good); }
.bondie-gsec.is-first.is-done .bondie-gsec-n { background: var(--good-soft); color: var(--good); }
.bondie-gsec .bondie-flow { margin-top: 16px; }
.bondie-gsec .bondie-groups { margin-top: 14px; }
.bondie-step-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; height: 100%; text-align: left;
   background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); cursor: pointer; }
.bondie-step-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.bondie-step-card strong { font-size: 14px; line-height: 1.3; }
.bondie-step-card.is-done { background: var(--good-soft); }
.bondie-step-card.is-done .bondie-flow-n { background: var(--good); }
.bondie-step-card.is-other strong { color: var(--text-2); font-weight: 600; }
.bondie-who { font-size: 12px; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; background: var(--surface); }
.bondie-flow li:not(:last-child)::after { top: 50%; transform: translateY(-50%); }
.bondie-gsec .bondie-group { border: 0; padding: 0; background: none; }
.bondie-gsec .bondie-group h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px; }
.bondie-group ul { list-style: none; padding: 0; margin: 0; }
.bondie-sit-link { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 5px 0 5px 18px; position: relative;
   color: var(--accent-text); font-size: 14px; cursor: pointer; line-height: 1.35; }
.bondie-sit-link::before { content: "›"; position: absolute; left: 4px; color: var(--muted); }
.bondie-sit-link:hover { text-decoration: underline; }
.bondie-sit-link.is-done { color: var(--text-2); }
.bondie-sit-link.is-done::before { content: "✓"; color: var(--good); left: 0; }
.bondie-gmore { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.bondie-gmore > summary { cursor: pointer; padding: 12px 18px; font-weight: 600; color: var(--text-2); list-style-position: inside; }
.bondie-gmore > summary .fa { color: var(--muted); margin-right: 6px; }
.bondie-gmore > summary small { font-weight: 400; }
.bondie-gmore[open] > summary { border-bottom: 1px solid var(--border); }
.bondie-gmore > div { padding: 14px 18px; }
.bondie-gsec.is-first { background: linear-gradient(135deg, var(--accent) 0%, #115e59 100%); border: 0; color: #fff; padding: 22px 24px; }
.bondie-gsec.is-first .bondie-gsec-title h2 { color: #fff !important; font-size: 20px; }
.bondie-gsec.is-first .bondie-gsec-title p { color: rgba(255, 255, 255, .88); }
.bondie-gsec.is-first .bondie-gsec-n { background: #fff; color: var(--accent-text); }
.bondie-gsec.is-first #story, .bondie-gsec.is-first #story:hover { background: #fff; color: var(--accent-text); border: 0; font-weight: 600; }
.bondie-gsec.is-first.is-done { background: var(--accent-soft); color: var(--text); border: 1px solid rgba(15, 118, 110, .25); padding: 18px 20px; }
.bondie-gsec.is-first.is-done .bondie-gsec-title h2 { color: var(--text) !important; font-size: 18px; }
.bondie-gsec.is-first.is-done .bondie-gsec-title p { color: var(--good); }
.bondie-gsec.is-first.is-done .bondie-gsec-n { background: var(--good); color: #fff; }
.bondie-gsec.is-first.is-done #story { background: transparent; color: var(--text-2); border: 1px solid var(--border-strong); font-weight: 400; }
.bondie-group ul li + li { margin-top: 8px; }
.bondie-group .bondie-step-card { min-height: 46px; justify-content: center; }
.bondie-group .bondie-step-card.is-done strong { color: var(--good); }
.bondie-role-admin span.bondie-admin-only { display: inline !important; }
.bondie-role-admin .bondie-not-admin { display: none !important; }
.bondie-guide-overall { flex-direction: row; align-items: center; gap: 14px; }
.bondie-guide-overall > div { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bondie-proc li { margin-bottom: 6px; }
.bondie-proc-actions { white-space: nowrap; font-size: 13px; margin-left: 4px; }
body[data-shell="v2"] .bondie-environment { display: flex; align-items: baseline; padding: 4px 24px; font-size: 13px; border-bottom: 1px solid #f0d68a; gap: 8px; }
body[data-shell="v2"] .bondie-environment-development,
body[data-shell="v2"] .bondie-environment-demo { background: #fff8e1; color: #5c4600; }
.bondie-environment-icon { font-size: 14px; color: #c08a1a; }
body[data-shell="v2"] .bondie-environment > span { flex: 1 1 0; min-width: 0; }   
body[data-shell="v2"] .bondie-environment .btn { padding: 1px 10px; font-size: 12px; background: transparent; border-color: #d9b35a; color: #5c4600; }
body[data-shell="v2"] .bondie-environment .btn:hover { background: #fff; }
.bondie-role-admin .bondie-environment span.bondie-admin-only { display: inline !important; }
.bondie-lang .dropdown-menu { min-width: 0; width: max-content; }
.bondie-lang .dropdown-item { font-size: 14px; }
.bondie-lang .dropdown-item.active { background: var(--surface-2); color: var(--accent-text); }
.bondie-lang .dropdown-item .fa-check { width: 14px; }
.bondie-lang .dropdown-item.disabled { padding-left: calc(1.5rem + 18px); color: var(--muted); }
body[data-shell="v2"] .btn-primary, body[data-shell="v2"] .btn-success, body[data-shell="v2"] .btn-add { box-shadow: 0 4px 14px rgba(15, 118, 110, .22); }
body[data-shell="v2"] .btn-link { font-weight: 500; }
.app-sidebar { background: radial-gradient(420px 320px at 0% 0%, rgba(45, 212, 191, .12), transparent 70%),
   radial-gradient(420px 420px at 100% 100%, rgba(31, 98, 181, .22), transparent 70%), var(--side-bg); }
.app-brand-mark { filter: drop-shadow(0 6px 14px rgba(15, 118, 110, .45)); }
body[data-shell="v2"] .bondie-table > .table-responsive { background: var(--surface); box-shadow: var(--shadow); }
body[data-shell="v2"] .bondie-table td { padding: 10px 9px; }
body[data-shell="v2"] .bondie-table thead th { padding: 9px 9px; }
body[data-shell="v2"] .bondie-table tbody tr:hover { background: #f4f8f7; }
body[data-shell="v2"] .bondie-table tbody tr.bondie-row-clickable:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
body[data-shell="v2"] .bondie-table td.text-right, body[data-shell="v2"] .bondie-table th.text-right,
body[data-shell="v2"] .bondie-kpis strong, body[data-shell="v2"] .bondie-facts td { font-variant-numeric: tabular-nums; }
.bondie-cell-main { font-weight: 600; color: var(--text); }
.bondie-avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%;
   background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 700; letter-spacing: .02em;
   vertical-align: middle; flex: 0 0 auto; }
body[data-shell="v2"] .bondie-table td .badge { background: none; color: var(--text-2); font-size: 13px; font-weight: 500;
   padding: 0 0 0 14px; position: relative; border-radius: 0; }
body[data-shell="v2"] .bondie-table td .badge::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px;
   margin-top: -4px; border-radius: 50%; background: var(--muted); }
body[data-shell="v2"] .bondie-table td .badge-success::before { background: var(--good); }
body[data-shell="v2"] .bondie-table td .badge-warning::before { background: #d99a00; }
body[data-shell="v2"] .bondie-table td .badge-danger::before { background: var(--bad); }
body[data-shell="v2"] .bondie-table td .badge-danger { color: var(--bad); }
body[data-shell="v2"] .bondie-table td .badge-info::before, body[data-shell="v2"] .bondie-table td .badge-primary::before { background: var(--info); }
.pill { box-shadow: 0 1px 1px rgba(16, 24, 40, .03); }
body[data-shell="v2"] .bondie-drawer-header { gap: 12px; padding: 14px 20px; justify-content: flex-start; }
.bondie-drawer-heading { flex: 1; min-width: 0; }
.bondie-drawer-heading h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bondie-drawer-kind { display: block; font-size: 12px; font-weight: 600; color: var(--accent-text); line-height: 1.2; margin-bottom: 1px; }
.bondie-drawer-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px;
   background: var(--accent-soft); color: var(--accent-text); font-size: 18px; }
.bondie-drawer-icon.is-avatar { border-radius: 50%; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.bondie-drawer-icon[hidden] { display: none; }
body[data-shell="v2"] .bondie-drawer-body { padding: 18px 20px 28px; }
body[data-shell="v2"] .bondie-drawer-body h3 { font-size: 14px; font-weight: 700; color: var(--text); margin: 22px 0 8px; }
body[data-shell="v2"] .bondie-kpis { gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
   box-shadow: var(--shadow); overflow: hidden; }
body[data-shell="v2"] .bondie-kpis > div { border: 0; border-radius: 0; background: none; padding: 10px 14px; box-shadow: inset 1px 0 0 var(--border); }
body[data-shell="v2"] .bondie-kpis > div:first-child { box-shadow: none; }
body[data-shell="v2"] .bondie-kpis strong { font-size: 18px; font-weight: 700; margin: 0; }
body[data-shell="v2"] .bondie-kpis span, body[data-shell="v2"] .bondie-kpis small { font-size: 12px; }
body[data-shell="v2"] .bondie-kpis .is-good strong { color: var(--text); }   
body[data-shell="v2"] .bondie-panel-actions { align-items: center; }
.btn-outline-danger { color: var(--bad); border-color: var(--bad); }
.btn-outline-primary { color: var(--accent-text); border-color: var(--accent); }
.btn-outline-primary:hover, .btn-outline-primary:focus { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn-outline-danger:hover, .btn-outline-danger[aria-pressed="true"] { color: #fff; background: var(--bad); border-color: var(--bad); }
body[data-shell="v2"] .bondie-panel-actions .btn-outline-danger { margin-left: auto; border-color: transparent; background: none; }
body[data-shell="v2"] .bondie-panel-actions .btn-outline-danger:hover { background: var(--bad-soft); color: var(--bad); }
body[data-shell="v2"] .bondie-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 0; border-radius: 10px;
   background: var(--surface-3); margin-bottom: 14px; }
body[data-shell="v2"] .bondie-tabs button { border: 0; margin: 0; padding: 6px 14px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); }
body[data-shell="v2"] .bondie-tabs button:hover { color: var(--text); }
body[data-shell="v2"] .bondie-tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
body[data-shell="v2"] .bondie-facts { box-shadow: var(--shadow); overflow: hidden; }
body[data-shell="v2"] .bondie-facts th, body[data-shell="v2"] .bondie-facts td { padding: 9px 14px; border-top: 1px solid #eef0f3; }
body[data-shell="v2"] .bondie-facts tr:first-child th, body[data-shell="v2"] .bondie-facts tr:first-child td { border-top: 0; }
body[data-shell="v2"] .bondie-facts th { width: 38%; font-size: 13px; color: var(--muted); font-weight: 500; background: none; }
body[data-shell="v2"] .bondie-facts td { color: var(--text); }
body[data-shell="v2"] .bondie-drawer-body > div > .table:not(.bondie-facts), body[data-shell="v2"] .bondie-drawer-body > .table:not(.bondie-facts) {
   background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
   border-collapse: separate; border-spacing: 0; }
.bondie-panel-head .bondie-more { margin-left: auto; }
.bondie-more .dropdown-menu { min-width: 250px; border-radius: var(--radius); border-color: var(--border); box-shadow: 0 12px 32px rgba(16, 24, 40, .14); }
.bondie-more .dropdown-item { font-size: 14px; padding: 7px 14px; }
.bondie-more .dropdown-item .fa { width: 18px; color: var(--muted); }
.bondie-more .dropdown-item.text-danger .fa { color: var(--bad); }
.bondie-more .dropdown-header { font-size: 12px; color: var(--muted); padding: 8px 14px 4px; }
.bondie-stepper { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; margin: 4px 0 16px; padding: 0; }
.bondie-stepper li { position: relative; text-align: center; padding-top: 30px; font-size: 13px; color: var(--muted); }
.bondie-stepper li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--border-strong); }
.bondie-stepper li:first-child::before { display: none; }
.bondie-stepper li.is-done::before, .bondie-stepper li.is-current::before { background: var(--accent); }
.bondie-step-dot { position: absolute; top: 0; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; z-index: 1;
   display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); font-size: 11px; color: #fff; }
.bondie-stepper li.is-done .bondie-step-dot { background: var(--accent); border-color: var(--accent); }
.bondie-stepper li.is-current .bondie-step-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.bondie-stepper li.is-current .bondie-step-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.bondie-stepper li.is-canceled::before { background: var(--border-strong); }
.bondie-stepper li.is-canceled .bondie-step-dot { background: var(--bad); border-color: var(--bad); }
.bondie-stepper li.is-canceled b { color: var(--bad); }
.bondie-stepper b { display: block; font-weight: 600; color: var(--text-2); }
.bondie-stepper li.is-done b, .bondie-stepper li.is-current b { color: var(--text); }
.bondie-stepper small { display: block; font-size: 12px; }
.bondie-next { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; background: var(--surface);
   border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.bondie-next-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
   background: var(--accent-soft); color: var(--accent-text); }
.bondie-next.is-late .bondie-next-icon { background: var(--bad-soft); color: var(--bad); }
.bondie-next.is-done .bondie-next-icon { background: var(--surface-3); color: var(--muted); }
.bondie-next-body { min-width: 0; }
.bondie-next-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.bondie-next.is-late .bondie-next-label { color: var(--bad); }
.bondie-next-label .bondie-why { font-size: 11.5px; margin-left: 0; }
.bondie-next-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.bondie-next-text { margin: 2px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.bondie-next-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
body[data-shell="v2"] .bondie-next-actions .btn { padding: 5px 12px; font-size: 13px; min-height: 0; white-space: nowrap; }
@media (max-width: 640px) { .bondie-next { grid-template-columns: 32px 1fr; } .bondie-next-actions { grid-column: 2; justify-content: flex-start; } }
.bondie-next.is-stacked { grid-template-columns: 32px 1fr; }
.bondie-next.is-stacked .bondie-next-actions { grid-column: 2; justify-content: flex-start; }
.bondie-next-actions { max-width: 100%; }
.bondie-head-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
body[data-shell="v2"] .bondie-head-right .btn { padding: 5px 12px; font-size: 13.5px; min-height: 0; }
.bondie-panel-head .bondie-head-right .bondie-more { margin-left: 0; }
@media (max-width: 575px) { .bondie-stepper li { font-size: 11px; } .bondie-stepper small { display: none; } }
.bondie-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.bondie-timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.bondie-timeline > li { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 6px 0 12px; position: relative; }
.bondie-timeline > li::before { content: ""; position: absolute; left: 87px; top: 11px; width: 12px; height: 12px; border-radius: 50%;
   background: var(--surface); border: 2px solid var(--accent); }
.bondie-timeline-when { font-size: 13px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.bondie-timeline-when span { display: block; color: var(--muted); font-size: 12px; }
.bondie-timeline-what { min-width: 0; overflow-wrap: anywhere; }
.bondie-timeline-what strong { display: block; font-size: 14px; }
.bondie-timeline-what ul { margin: 2px 0 2px; padding-left: 16px; font-size: 13px; color: var(--text-2); }
.bondie-timeline-what small { color: var(--muted); }
.bondie-doc-missing { grid-template-columns: 32px 1fr; align-items: start; }
.bondie-doc-missing ul { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 8px; }
.bondie-doc-missing li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.bondie-doc-missing li:first-child { border-top: 0; padding-top: 0; }
body[data-shell="v2"] .bondie-doc-missing li .btn { padding: 5px 12px; font-size: 13px; min-height: 0; white-space: nowrap; }
.bondie-doc-print { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.bondie-tab-count.is-bad { background: var(--bad-soft); color: var(--bad); }
.bondie-flag { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #f2c4c0; background: var(--bad-soft); color: var(--bad);
   border-radius: 999px; padding: 2px 10px 2px 3px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bondie-flag span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bad); color: #fff;
   font-size: 12px; font-weight: 800; }
.bondie-flag:hover { border-color: var(--bad); }
.bondie-audit { margin-top: 18px; }
.bondie-audit summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); }
.bondie-audit[open] summary { margin-bottom: 10px; }
.late-mark { color: var(--bad); margin-left: 5px; font-size: 12.5px; }
.bondie-contact-item { padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.bondie-contact-item:first-child { border-top: 0; }
.bondie-contact-form { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px 8px; }
body[data-shell="v2"] .text-muted { color: var(--muted) !important; }
body[data-shell="v2"] .text-success { color: var(--good) !important; }
body[data-shell="v2"] .text-danger { color: var(--bad) !important; }
body[data-shell="v2"] .text-warning { color: var(--warn) !important; }
body[data-shell="v2"] .btn-link { color: var(--info); }
body[data-shell="v2"] p a:not(.btn), body[data-shell="v2"] li a:not(.btn), body[data-shell="v2"] td a:not(.btn),
body[data-shell="v2"] .page-note a:not(.btn), body[data-shell="v2"] small a:not(.btn), body[data-shell="v2"] dd a:not(.btn),
body[data-shell="v2"] .bondie-panel-head span a { text-decoration: underline; text-underline-offset: 2px; }
body[data-shell="v2"] .app-nav a, body[data-shell="v2"] .dropdown-item { text-decoration: none; }
body[data-shell="v2"] .bondie-why { text-decoration: underline dotted; text-underline-offset: 2px; }   
.bondie-section + .bondie-section { margin-top: 1.75rem; }
.bondie-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem;
   margin-bottom: .6rem; }
.bondie-section-head h3 { margin: 0; font-size: .95rem; font-weight: 600; }
.bondie-section-head span { color: var(--muted); font-size: .85rem; }
.bondie-section .table-responsive { margin-bottom: .6rem; }
.bondie-section .table { margin-bottom: 0; }
.audit-filters { flex-wrap: wrap; }
.audit-customer { min-width: 320px; }
.audit-charts { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.audit-charts > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.audit-charts h3 { font-size: .85rem; font-weight: 600; color: var(--text-2); margin: 0 0 8px; }
.audit-days { display: flex; align-items: flex-end; gap: 4px; height: 110px; }
.audit-days > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.audit-days i { width: 100%; max-width: 28px; background: var(--accent); border-radius: 4px 4px 0 0; }
.audit-days small { font-size: 10px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.audit-bar { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 8px; width: 100%; background: none; border: 0;
   padding: 3px 0; font-size: .82rem; text-align: left; color: var(--text); cursor: pointer; }
.audit-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-bar i { height: 8px; background: var(--accent-soft); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--accent); }
.audit-bar:hover span { text-decoration: underline; }
.audit-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.audit-list li + li { border-top: 1px solid var(--border); }
.audit-row { display: grid; grid-template-columns: 110px 1fr 200px auto; gap: 12px; align-items: center; width: 100%; padding: 10px 14px;
   background: none; border: 0; text-align: left; color: var(--text); }
.audit-row:hover { background: var(--surface-2); }
.audit-when { font-size: .82rem; color: var(--muted); } .audit-when b { display: block; color: var(--text); font-weight: 600; }
.audit-what small { display: block; margin-top: 3px; }
.audit-who { font-size: .85rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-chip { display: inline-block; font-size: 11px; padding: 1px 7px; margin: 0 4px 2px 0; border-radius: 10px; background: var(--surface-3); color: var(--text-2); }
.audit-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; background: var(--surface); }
.audit-card-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.audit-case-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; font-size: 1.05rem; }
.audit-case-lane { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.audit-case-lane.is-customer { border-left: 4px solid var(--accent); }
.audit-lane-title { display: block; font-weight: 600; margin-bottom: 6px; }
.audit-lane-title small { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 900px) { .audit-charts { grid-template-columns: 1fr; } .audit-row { grid-template-columns: 1fr auto; } .audit-when, .audit-who { grid-column: 1; } }
.app-user-menu .app-user { background: none; border: 0; display: inline-flex; align-items: center; gap: 6px; color: inherit; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.app-user-menu .app-user:hover { background: var(--surface-2); }
.bondie-view-as { background: var(--warn-soft); border-color: #f1dcae; }
.audit-pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; margin: 12px 0; }
.audit-pager small { margin-right: auto; }
.bondie-info { color: var(--accent); cursor: help; margin-left: 4px; }
.bondie-info:focus-visible { outline: 2px solid var(--accent); border-radius: 50%; }
body[data-shell="v2"] .bondie-email-body { white-space: pre-wrap; font-family: inherit; font-size: .9rem; background: var(--surface);
   border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; }
body[data-shell="v2"] .bondie-hash { word-break: break-all; font-size: .7rem; }   
body[data-shell="v2"] .bondie-trace { white-space: pre-wrap; word-break: break-word; font-size: .75rem; max-height: 16rem; overflow: auto; }
body[data-shell="v2"] .bondie-drawer .d-flex.flex-wrap > .btn { white-space: nowrap; }
.app-topbar-title { display: none; }                       
.app-search { margin-left: 0; max-width: 520px; }
.app-context { display: flex; align-items: center; gap: 6px; min-width: 0; }
.app-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; font-size: 12.5px;
   font-weight: 600; white-space: nowrap; border: 1px solid transparent; line-height: 1; }
button.app-chip { cursor: pointer; }
.app-chip-env { background: #fff4d6; color: #7a5500; border-color: #f0d68a; }
.app-chip-as { background: #e6f0fc; color: #1f4f8f; border-color: #bcd3f1; }
.app-chip-as strong { font-weight: 700; }
.app-chip-x { border: 0; background: transparent; color: inherit; font-size: 16px; line-height: 1; padding: 0 0 0 2px; cursor: pointer; }
.app-env-menu { padding: 12px 14px; font-size: 13px; max-width: 360px; white-space: normal; }
.bondie-role-admin .app-env-menu span.bondie-admin-only { display: inline !important; }
.app-user-menu .app-user { padding: 3px 8px 3px 3px; border: 1px solid var(--border) !important; border-radius: 22px; }
.app-user-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.app-user-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.app-user-role { font-size: 11px; color: var(--muted); }
#bondie-user-menu { min-width: 240px; }
#bondie-user-menu .dropdown-item small { color: var(--muted); }
.app-topbar .bondie-notif-count { top: 2px; right: 1px; min-width: 18px; line-height: 12px; border: 2px solid var(--surface); }
@media (max-width: 991.98px) {
   .app-user-text { display: none; }
   .app-user-menu .app-user { border: 0 !important; padding: 0; }
}
@media (max-width: 575px) {                                 
   .app-topbar { gap: 4px; padding: 0 10px; }
   .app-search { flex: 0 0 36px; }
   .app-search-input { padding-right: 0; color: transparent; cursor: pointer; }
   .app-search-input::placeholder { color: transparent; }
   .app-search-kbd { display: none; }
   .app-search:focus-within { position: absolute; left: 8px; right: 8px; flex: none; max-width: none; z-index: 5; }
   .app-search:focus-within .app-search-input { color: var(--text); cursor: text; padding-right: 10px; }
   .app-search:focus-within .app-search-input::placeholder { color: var(--muted); }
   .app-chip-as { font-size: 0; gap: 0; padding: 0 8px; }      
   .app-chip-as .fa, .app-chip-as .app-chip-x { font-size: 15px; }
   .app-chip-env { padding: 0 8px; }
}
@media print { .app-context { display: none !important; } }
#bondie-notifications > .app-icon-btn { padding: 0 14px 0 9px; }      
.app-topbar .bondie-notif-count { top: 1px; right: 0; height: 17px; min-width: 17px; padding: 0 4px; font-size: 10px; line-height: 13px; }
.app-env-menu { right: auto; left: 0; }
.bondie-skip { position: absolute; left: 8px; top: -48px; z-index: 2000; padding: 8px 14px; border-radius: 8px;
   background: var(--surface, #fff); color: var(--ink, #14161a); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); transition: top .15s; }
.bondie-skip:focus { top: 8px; }
.app-content:focus { outline: none; }
@media print {
   @page { size: A4 landscape; margin: 12mm; }
   .bondie-skip, .bondie-table-toolbar, .bondie-table-bulk, .bondie-table-pager, .bondie-drawer, .bondie-queues,
   .bondie-filter, .bondie-why, .page-note-toggle, .app-footer, .bondie-select-col, th .fa, th::after { display: none !important; }
   .page-note-more { display: inline !important; }
   .table-responsive { overflow: visible !important; }
   body, .app-content { background: #fff !important; }
   table { font-size: 10px; } th, td { padding: 3px 5px !important; }
   tr, .card { break-inside: avoid; }
   a { color: inherit !important; text-decoration: none !important; }
}
.bondie-alerts.bondie-alerts-open { max-height: 420px; overflow-y: auto; }
.bondie-alerts .bondie-alerts-more { padding: 8px 0 0; }
body:not(.bondie-module-off-U) .bondie-bez-U{display:none}
code { color: #a0154f; }
body.lg-page[data-shell="v2"] { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: #fff;
   background: radial-gradient(900px 500px at 85% 0%, rgba(45, 212, 191, .16), transparent 60%),
               radial-gradient(700px 500px at 0% 100%, rgba(31, 98, 181, .25), transparent 60%), var(--side-bg); }
.lg-page .i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.lg-top, .lg-foot { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lg-top { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.lg-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 700; font-size: 19px; text-decoration: none !important; }
.lg-brand .app-brand-mark { width: 39px; height: 26px; }   
.lg-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 16px 40px; }
.lg-head { text-align: center; margin-bottom: 22px; }
.lg-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #2dd4bf; }
body.lg-page[data-shell="v2"] .lg-head h1 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.01em; margin: 8px 0 0; }
.lg-card { width: 100%; max-width: 400px; background: var(--surface); color: var(--text); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.lg-form { padding: 28px 30px 24px; }
.lg-form .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.lg-form label { font-weight: 600; font-size: 13px; color: var(--text-2); }
.lg-form .form-control { height: 46px; border-radius: 10px; }
.lg-form .btn-primary { width: 100%; height: 48px; border-radius: 10px; font-weight: 600; font-size: 16px; margin-top: 6px; }
.lg-ask { margin: 0; background: var(--surface-2); border-top: 1px solid var(--border); padding: 16px 30px 18px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.lg-ask b { color: var(--text); }
.lg-ask a { font-weight: 600; }
.lg-hint { margin-top: 18px; font-size: 13.5px; color: var(--side-text); text-align: center; max-width: 400px; }
.lg-foot { padding-bottom: 20px; font-size: 13px; color: var(--side-muted); text-align: center; }
body.lg-page .lg-foot a { color: inherit; text-decoration: underline; }
.lg-foot a[hidden] { display: none; }
.lg-back { display: inline-flex; align-items: center; gap: 8px; color: var(--side-text) !important; font-size: 14px; text-decoration: none !important; }
.lg-back:hover { color: #fff !important; }
.lg-env { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 20px; font-size: 13px; font-weight: 600;
   background: rgba(253, 241, 216, .12); color: #fcd34d; border: 1px solid rgba(252, 211, 77, .35); }
.lg-env::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lg-env[hidden] { display: none; }
@media (max-width: 520px) { .lg-top { padding: 0 16px; } .lg-form, .lg-ask { padding-left: 20px; padding-right: 20px; } .lg-back-long { display: none; } }
.vzor-zneni { width: 100%; margin-bottom: 8px; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.vzor-zneni th, .vzor-zneni td { padding: 8px 10px; vertical-align: middle; border-top: 1px solid var(--border); }
.vzor-zneni thead th { font-size: 12px; font-weight: 600; color: var(--muted); border-top: 0; white-space: nowrap; }
.vzor-zneni tbody th { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.vzor-zneni td { overflow-wrap: anywhere; }
.vzor-zneni .vzor-zneni-uroven-1 th { padding-left: 28px; }
.vzor-zneni .vzor-zneni-uroven-2 th { padding-left: 48px; font-weight: 500; }
.vzor-zneni .vzor-zneni-uroven-1 th::before, .vzor-zneni .vzor-zneni-uroven-2 th::before { content: "└ "; color: var(--muted); }
.vzor-zneni .vzor-zneni-dedi th, .vzor-zneni .vzor-zneni-dedi td { background: var(--surface-2); color: var(--text-2); }
.vzor-zneni .vzor-akce { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.vzor-zneni .vzor-akce .btn { white-space: nowrap; }
.vzor-tiskne { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.vzor-tiskne .form-group { flex: 1 1 16rem; margin: 0; min-width: 0; }
.vzor-tiskne-vysledek { flex: 2 1 18rem; min-width: 0; overflow-wrap: anywhere; }
.vzor-editor-rozsah { font-size: 14px; margin: 0 0 8px; padding: 6px 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
   .vzor-zneni thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
   .vzor-zneni, .vzor-zneni tbody, .vzor-zneni tr, .vzor-zneni th, .vzor-zneni td { display: block; width: 100%; }
   .vzor-zneni tr { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; padding: 4px 0; }
   .vzor-zneni th, .vzor-zneni td { border-top: 0; padding: 4px 10px; }
   .vzor-zneni .vzor-zneni-uroven-1 th { padding-left: 18px; }
   .vzor-zneni .vzor-zneni-uroven-2 th { padding-left: 28px; }
   .vzor-zneni .vzor-akce { justify-content: flex-start; }
}
