@media screen {
  :root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color:#172c40; background:#f5f7fb; }
  body { background: radial-gradient(circle at 88% -8%, #e6efff 0, transparent 31%), #f5f7fb; }
  button,select,input,textarea { font:inherit; }
  button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible { outline:3px solid #6aabff; outline-offset:2px; }
  .shell { grid-template-columns:258px minmax(0,1fr); }
  .side { position:sticky; top:0; height:100vh; overflow:auto; padding:22px 15px 20px; gap:21px; background:linear-gradient(175deg,#0b2036 0%,#112d49 63%,#133b58 100%); box-shadow:8px 0 26px #16283d12; }
  .brand { padding:4px 8px 8px; }
  .brand img { width:100%; max-height:91px; object-fit:contain; border-radius:13px; padding:8px; background:#fff; }
  .side section label { padding:0 15px; margin-bottom:10px; color:#8ca9c1; font-size:12px; letter-spacing:.12em; }
  .side button { display:flex; align-items:center; gap:12px; width:100%; min-height:43px; padding:10px 13px; color:#c6d6e5; font-size:14px; font-weight:570; border-radius:10px; transition:background .16s ease,color .16s ease,transform .16s ease; }
  .side button:hover { background:#ffffff17; transform:translateX(2px); }
  .side button.active { color:#fff; background:#2867ce; box-shadow:0 8px 18px #06162d35; }
  .nav-icon { display:inline-flex; align-items:center; justify-content:center; width:21px; height:21px; flex:none; font-size:18px; font-weight:500; }
  .nav-divider { margin:17px 13px 10px; padding-top:17px; border-top:1px solid #ffffff1c; color:#90afc4; letter-spacing:.12em; font-size:12px; font-weight:700; }
  .bilan-nav-row { display:grid; grid-template-columns:minmax(0,1fr) 32px; gap:2px; align-items:center; }
  .side .bilan-toggle { justify-content:center; width:32px; min-height:38px; padding:0; color:#aac1d3; font-size:20px; transition:transform .18s ease; }
  .side .bilan-toggle:hover { transform:none; }
  .side .bilan-toggle[aria-expanded="false"] { transform:rotate(-90deg); }
  .bilan-subnav[hidden] { display:none; }
  .note-subnav { margin:2px 0 8px 24px; border-color:#50708c; }
  .side .note-subnav button { min-height:32px; padding:7px 10px 7px 13px; font-size:13px; color:#aac1d3; }
  .side .note-subnav button.active { color:#fff; background:#254b70; box-shadow:none; }
  .nav-notes { margin:3px 0 9px 24px; }
  .nav-notes > summary { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:7px 9px; color:#a8c4d9; cursor:pointer; font-size:12px; font-weight:700; list-style:none; }
  .nav-notes > summary::-webkit-details-marker { display:none; }
  .nav-notes > summary::before { content:"⌄"; margin-right:3px; transition:transform .18s ease; }
  .nav-notes:not([open]) > summary::before { transform:rotate(-90deg); }
  .nav-notes > summary span { margin-left:auto; padding:2px 6px; border-radius:6px; background:#ffffff1b; color:#d5e5ef; font-size:12px; }
  .note-list-menu { max-height:min(48vh,440px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; margin:0 0 0 8px; padding:0 4px 0 8px; }
  .side .note-list-menu button { display:grid; grid-template-columns:72px minmax(0,1fr); align-items:start; gap:7px; min-height:34px; padding:8px 7px; font-size:12px; line-height:1.35; }
  .note-nav-code { white-space:nowrap; font-weight:750; }
  .note-nav-title { min-width:0; overflow-wrap:anywhere; }
  .note-directory { display:grid; grid-template-columns:repeat(auto-fit,minmax(310px,1fr)); gap:8px; padding:16px 20px; }
  .note-directory button { display:grid; grid-template-columns:90px minmax(0,1fr) 46px; align-items:center; gap:10px; width:100%; min-height:56px; border:1px solid #dce7f1; border-radius:10px; background:#fff; padding:10px 12px; color:#203c55; text-align:left; cursor:pointer; }
  .note-directory button:hover,.note-directory button:focus-visible { background:#eef5ff; border-color:#8bb5ee; }
  .note-directory button strong { font-size:13px; white-space:nowrap; }
  .note-directory button span { font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
  .note-directory button em { justify-self:end; font-size:12px; font-style:normal; font-weight:700; color:#59758e; }
  .bilan-directory-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:18px 20px 22px; }
  .bilan-directory-list button { display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-height:112px; padding:18px; border:1px solid #dce7f1; border-radius:12px; background:#fff; text-align:left; color:#203c55; cursor:pointer; }
  .bilan-directory-list button:hover,.bilan-directory-list button:focus-visible { background:#eef5ff; border-color:#8bb5ee; }
  .bilan-directory-list strong { font-size:17px; }
  .bilan-directory-list span { color:#637c91; font-size:14px; }
  .note-page-nav { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin:0 0 14px; }
  .note-page-nav span { color:#657f96; font-size:13px; margin-right:auto; }
  .note-page-heading { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; margin:0 0 16px; }
  .note-page-heading > span { color:#3066ad; font-size:14px; font-weight:800; }
  .note-page-heading h2 { margin:0; flex:1 1 320px; font-size:21px; line-height:1.3; }
  .side .foot { margin-top:auto; border-top:1px solid #ffffff21; padding:18px 13px 4px; color:#a5bdd0; font-size:12px; }
  main { max-width:1740px; padding:28px clamp(22px,3vw,50px) 80px; }
  .top { align-items:flex-start; padding:4px 0 25px; margin-bottom:19px; border-bottom:1px solid #e1e8f0; }
  .eyebrow,.section-kicker { display:block; color:#3b6cba; font-size:12px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
  h1 { font-size:clamp(27px,2.3vw,38px); letter-spacing:-.045em; color:#112941; }
  .subtitle { color:#698095; font-size:14px; line-height:1.5; }
  .context-controls { gap:9px; }
  .context-controls label { color:#536b82; font-size:13px; }
  .context-controls .search { border-radius:10px; background:#fff; min-height:41px; }
  .pill { border-color:#d9e4ed; border-radius:10px; background:#fff; color:#34536d; padding:10px 13px; }
  .panel,.card { border:1px solid #e2eaf2; border-radius:17px; box-shadow:0 5px 22px #17385609,0 1px 3px #17385605; }
  .panel-head { background:#fff; border-color:#e9eef4; }
  .panel-head h2 { color:#19334b; font-size:17px; letter-spacing:-.02em; }
  .cards { gap:16px; margin-bottom:21px; }
  .card { padding:21px 22px; position:relative; overflow:hidden; }
  .card::before { content:""; display:block; width:29px; height:3px; background:#4676d9; border-radius:2px; margin-bottom:17px; }
  .card:nth-child(2)::before { background:#52b2ad; }
  .card:nth-child(3)::before { background:#d7a45c; }
  .card:nth-child(4)::before { background:#7693dd; }
  .card span { min-height:0; font-size:13px; font-weight:650; color:#60768a; }
  .card strong { font-size:clamp(21px,1.75vw,29px); margin:10px 0; color:#132d43; }
  .card em { font-size:12px; line-height:1.45; }
  .action { min-height:39px; padding:10px 15px; background:#2765cf; border-radius:10px; font-weight:650; box-shadow:0 3px 8px #2765cf19; }
  .action:hover { background:#1955b9; }
  .action.secondary,.export-bar .secondary { background:#fff; color:#245591; border:1px solid #d1dfed; box-shadow:none; }
  .action.secondary:hover,.export-bar .secondary:hover { background:#eef5ff; }
  .export-bar { margin:0 0 19px; align-items:center; }
  .export-bar .action { min-height:39px; font-size:13px; }
  .tabs button { border-radius:9px; padding:9px 14px; font-weight:650; }
  .tabs button.active { background:#2460c3; border-color:#2460c3; }
  th { background:#f0f5fa; color:#4c6980; font-size:12px; }
  tbody tr:hover { background:#f5f9fe; }
  tr.total,.table-wrap tbody tr.flow-group { background:#ebf3fb; }
  .note { background:#f8fafc; color:#5c7387; }
  .check { margin:0; border:1px solid #cbe8da; background:#effaf4; color:#1e6746; border-radius:11px; }
  .check.warn { background:#fff7ee; border-color:#f1dec2; color:#8b5925; }
  .dashboard-lead,.report-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 27px; background:#132f50; color:#fff; border-radius:18px; margin-bottom:20px; box-shadow:0 12px 28px #17385221; }
  .dashboard-lead h2,.report-heading h2 { margin:5px 0 5px; font-size:clamp(20px,2vw,27px); letter-spacing:-.03em; }
  .dashboard-lead p,.report-heading p { margin:0; color:#c6d8e9; font-size:14px; }
  .dashboard-lead .section-kicker,.report-heading .section-kicker { color:#91c9ff; }
  .dashboard-lead-actions,.report-actions { display:flex; gap:9px; flex-wrap:wrap; }
  .dashboard-lead .action.secondary { background:#ffffff1d; border-color:#ffffff50; color:#fff; }
  .dashboard-lead .action.secondary:hover { background:#ffffff2c; }
  .overview-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
  .executive-dashboard { display:grid; gap:18px; }
  .executive-dashboard .dashboard-lead,.executive-dashboard .overview-checks { margin:0; }
  .executive-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
  .executive-card { min-width:0; display:flex; flex-direction:column; align-items:flex-start; padding:18px; border:1px solid #e0e9f2; border-radius:15px; background:#fff; box-shadow:0 4px 18px #1738560b; }
  .executive-card::before { content:""; width:27px; height:3px; margin-bottom:14px; border-radius:5px; background:#4386d9; }
  .executive-card:nth-child(4n + 2)::before { background:#2fa995; }
  .executive-card:nth-child(4n + 3)::before { background:#dca252; }
  .executive-card span { min-height:37px; color:#61788d; font-size:13px; font-weight:700; }
  .executive-card strong { margin:7px 0 1px; max-width:100%; overflow-wrap:anywhere; font-size:clamp(21px,2vw,30px); color:#18334a; font-variant-numeric:tabular-nums; }
  .executive-card strong.neg { color:#aa4c4c; }
  .executive-card small { color:#758ca0; }
  .executive-card em { margin-top:12px; padding:5px 9px; border-radius:7px; background:#edf4fb; color:#3366a0; font-size:12px; font-style:normal; font-weight:700; }
  .executive-card button { margin-top:13px; padding:0; border:0; background:none; color:#2765b7; font-size:12px; font-weight:750; text-align:left; cursor:pointer; }
  .executive-panel { min-width:0; border:1px solid #e0e9f2; border-radius:15px; background:#fff; padding:20px; box-shadow:0 4px 18px #17385609; }
  .executive-panel h3 { margin:0 0 16px; color:#1d3b56; font-size:18px; }
  .executive-scroll { max-width:100%; overflow-x:auto; }
  .executive-table { width:100%; border-collapse:collapse; min-width:660px; font-size:13px; }
  .executive-table th,.executive-table td { padding:11px 12px; border-bottom:1px solid #e9eff5; }
  .executive-table thead th { text-align:left; }
  .executive-table thead th:nth-child(2),.executive-table thead th:nth-child(3) { text-align:right; }
  .executive-table tbody th { width:38%; color:#254058; text-align:left; font-weight:700; }
  .executive-table tbody th small { display:block; margin-top:4px; color:#6e8497; font-size:11px; font-weight:400; }
  .executive-table .num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .executive-table td:last-child { color:#58718a; }
  .executive-analysis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
  .executive-analysis ul { margin:0; padding-left:19px; color:#4c667b; line-height:1.55; font-size:13px; }
  .executive-analysis li + li { margin-top:9px; }
  .executive-analysis p,.executive-empty { margin:0; color:#6b8295; font-size:13px; line-height:1.5; }
  .executive-charts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .executive-bar + .executive-bar { margin-top:15px; }
  .executive-bar > div { display:flex; justify-content:space-between; gap:10px; margin-bottom:6px; color:#577086; font-size:12px; }
  .executive-bar strong { color:#23445f; text-align:right; font-variant-numeric:tabular-nums; }
  .executive-track { display:block; height:8px; overflow:hidden; border-radius:9px; background:#e8f0f8; }
  .executive-track > span { display:block; height:100%; border-radius:9px; background:#3d84d4; }
  .executive-bar:nth-of-type(3n) .executive-track > span { background:#2eab9a; }
  .executive-bar:nth-of-type(3n + 1) .executive-track > span { background:#e2a552; }
  .report-heading { background:#fff; color:#15334a; border:1px solid #e0e9f2; box-shadow:0 5px 22px #17385609; }
  .report-heading .section-kicker { color:#3c6dba; }
  .report-heading p { color:#667c90; }
  .report-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
  .report-list { padding:4px 22px 14px; }
  .report-list > div { display:flex; justify-content:space-between; align-items:baseline; gap:15px; padding:15px 0; border-bottom:1px solid #edf1f6; font-size:14px; }
  .report-list > div:last-child { border:0; }
  .report-list span { color:#61778b; }
  .report-list strong { color:#1b3d58; text-align:right; font-variant-numeric:tabular-nums; }
  .report-actions { margin-top:18px; }
  .report-section-title { font-size:18px; color:#19364f; margin:25px 0 13px; }
  .report-catalog { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .report-catalog button { display:flex; flex-direction:column; align-items:flex-start; gap:6px; text-align:left; padding:17px 20px; border:1px solid #dfe9f3; border-radius:13px; background:#fff; color:#183c5d; }
  .report-catalog button:hover { background:#eff6ff; border-color:#a8c7f1; }
  .report-catalog strong { font-size:15px; }
  .report-catalog span { font-size:13px; color:#627c91; }
  .insight-intro { display:flex; justify-content:space-between; gap:20px; padding:27px 30px; color:#fff; background:linear-gradient(120deg,#112d50,#245db0); border-radius:18px; margin-bottom:20px; overflow:hidden; }
  .insight-intro .section-kicker { color:#acd5ff; }
  .insight-intro h2 { margin:6px 0 8px; font-size:clamp(25px,2.8vw,35px); letter-spacing:-.04em; }
  .insight-intro p { color:#d8e7f5; line-height:1.6; margin:0; max-width:620px; font-size:14px; }
  .insight-mark { display:flex; width:74px; height:74px; flex:none; justify-content:center; align-items:center; border:1px solid #ffffff54; border-radius:21px; background:#ffffff20; font-size:38px; }
  .analysis-tabs { margin-bottom:17px; }
  .insight-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
  .insight-card { border:1px solid #e0e9f2; border-radius:16px; padding:21px 23px; background:#fff; box-shadow:0 5px 20px #17385608; }
  .insight-card.warn { border-left:4px solid #d58b42; }
  .insight-card.good { border-left:4px solid #3aa882; }
  .insight-card.info { border-left:4px solid #4678d4; }
  .insight-label { color:#5f7d96; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.09em; }
  .insight-card h3 { margin:8px 0; font-size:18px; color:#18344c; }
  .insight-card p { color:#526b81; line-height:1.55; font-size:14px; }
  .text-link { padding:2px 0; border:0; background:none; color:#245db6; font-weight:700; font-size:14px; }
  .text-link:hover { text-decoration:underline; }
  .analysis-footnote { margin-top:19px; padding:14px 17px; color:#5c7488; background:#edf3f9; border-radius:11px; font-size:13px; line-height:1.5; }
  .note-picker,.note-fold { margin:0 0 14px; border:1px solid #dee8f2; border-radius:14px; background:#fff; box-shadow:0 4px 17px #17385608; overflow:hidden; }
  .note-picker > summary,.note-fold > summary { cursor:pointer; list-style:none; color:#1b3a55; }
  .note-picker > summary::-webkit-details-marker,.note-fold > summary::-webkit-details-marker { display:none; }
  .note-picker > summary { display:grid; grid-template-columns:minmax(0,1fr) auto 22px; align-items:center; gap:5px 13px; padding:16px 20px; }
  .note-picker-heading { grid-column:1/-1; color:#6b8194; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
  .note-picker > summary strong { min-width:0; line-height:1.4; font-size:15px; }
  .note-picker > summary .badge { margin:0; white-space:nowrap; }
  .note-fold > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:53px; padding:14px 20px; font-size:15px; font-weight:750; line-height:1.45; }
  .note-fold-chevron { display:inline-block; color:#4773ad; font-size:19px; font-weight:500; transition:transform .18s ease; }
  .note-picker[open] > summary .note-fold-chevron,.note-fold[open] > summary .note-fold-chevron { transform:rotate(180deg); }
  .note-picker[open] > summary,.note-fold[open] > summary { border-bottom:1px solid #e5edf4; }
  .note-picker-list { max-height:360px; overflow:auto; padding:6px 10px 10px; }
  .note-picker-list button { display:grid; grid-template-columns:86px minmax(0,1fr) 56px; align-items:center; gap:14px; width:100%; min-height:45px; padding:9px 12px; text-align:left; color:#25435d; border:0; border-radius:8px; background:transparent; }
  .note-picker-list button:hover { background:#f0f6ff; }
  .note-picker-list button.active { background:#eaf3ff; color:#174fa4; }
  .note-picker-code { font-weight:800; font-size:13px; white-space:nowrap; }
  .note-picker-title { min-width:0; font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
  .note-picker-status { justify-self:end; min-width:42px; padding:4px 6px; border-radius:6px; background:#eef3f7; text-align:center; color:#516b80; font-size:12px; font-weight:800; white-space:nowrap; }
  .note-picker-list button.active .note-picker-status { background:#d4e7ff; color:#174fa4; }
  .note-fold-content > .panel { margin:0!important; border:0; border-radius:0; box-shadow:none; }
  .note-fold-content .panel-head h2 { display:none; }
  .note-fold-content .panel-head { justify-content:flex-end; padding:13px 20px; }
  .note-fold-content .panel-head:has(> h2:only-child) { display:none; }
  .note-fold-content .note-editor .panel-head { gap:9px; }
  .note-fold-content .badge { margin:0; }
  .note-fold-content .table-wrap { max-width:100%; }
  .note-fold-content .table-wrap tbody td:first-child { text-align:left; }
  .note-r4 table { table-layout:fixed; min-width:650px; }
  .note-r4 th:first-child,.note-r4 td:first-child { width:92px; text-align:center!important; }
  .note-r4 th:nth-child(2),.note-r4 td:nth-child(2) { text-align:left!important; width:auto; }
  .note-r4 th:nth-child(3),.note-r4 td:nth-child(3),.note-r4 th:nth-child(4),.note-r4 td:nth-child(4) { width:58px; text-align:center!important; }
  .legacy-note-text { padding:18px 21px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; color:#27435a; font-size:14px; }
}
@media screen and (max-width:1050px) {
  .executive-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .executive-analysis { grid-template-columns:1fr; }
  .shell { grid-template-columns:215px minmax(0,1fr); }
  .side { padding-inline:10px; }
  .top { flex-direction:column; }
  .context-controls { justify-content:flex-start; width:100%; }
}
@media screen and (max-width:700px) {
  .executive-cards,.executive-charts { grid-template-columns:1fr; }
  .shell { display:block; }
  .side { display:none; }
  main { padding:16px 14px 45px; }
  .top { padding:0 0 18px; margin-bottom:16px; }
  .mobile-brand { width:118px; max-height:75px; object-fit:contain; margin-bottom:12px; }
  .mobile-nav { min-height:45px; border-radius:11px; margin-bottom:15px; }
  .context-controls { gap:7px; }
  .context-controls select { width:min(100%,225px); }
  .context-controls #refresh-data { flex-basis:100%; justify-content:center; }
  .dashboard-lead,.report-heading,.insight-intro { flex-direction:column; align-items:flex-start; padding:20px; }
  .dashboard-lead-actions { width:100%; }
  .dashboard-lead-actions .action { flex:1; justify-content:center; font-size:13px; }
  .cards,.overview-checks,.report-grid,.report-catalog,.insight-grid { grid-template-columns:1fr; }
  .card span { font-size:14px; }
  .insight-mark { display:none; }
  .note-picker > summary,.note-fold > summary { padding:13px 15px; }
  .note-picker-list button { grid-template-columns:77px minmax(0,1fr) 48px; gap:8px; padding-inline:8px; }
  .note-picker-title { font-size:13px; }
  .note-directory { grid-template-columns:1fr; padding:12px; }
  .bilan-directory-list { grid-template-columns:1fr; padding:12px; }
  .note-directory button { grid-template-columns:76px minmax(0,1fr) 38px; padding:9px; }
}
@media print {
  .note-picker { display:none!important; }
  .note-fold:not([open]) > .note-fold-content { display:block!important; }
  .note-fold > summary { font-weight:700; margin:12px 0 4px; }
}

#refresh-data[hidden]{display:none!important}

.company-create-form{padding:0 22px 22px}.company-create-form .id-grid{padding:16px 0}.company-create-form .search{width:100%;min-width:0}.company-optional{margin:12px 0 20px}.company-optional summary{cursor:pointer;font-weight:600;padding:12px 0}.required-mark{color:#b42318}

.activity-search-control{display:grid;gap:7px;min-width:0}.activity-search-control .search{width:100%;min-width:0}.activity-search-status{font-size:12px;color:#64748b;min-height:0}.activity-search-status:empty{display:none}.activity-search-input:disabled{background:#f1f5f9;color:#64748b}

.phone-controls{display:grid;grid-template-columns:minmax(150px,1fr) minmax(130px,1fr);gap:8px;min-width:0}.phone-controls .search{width:100%;min-width:0}@media(max-width:600px){.phone-controls{grid-template-columns:1fr}}

.activity-total-heading{display:block;margin-top:8px;font-size:11px;font-weight:500}.activity-total-heading strong{display:block;font-size:15px;margin-top:3px}.activity-dropdown{position:relative;min-width:0}.activity-dropdown-trigger{width:100%;text-align:left;white-space:normal;display:flex;align-items:center;justify-content:space-between;gap:8px}.activity-dropdown-panel{position:absolute;z-index:100;top:calc(100% + 5px);left:0;min-width:100%;width:min(450px,80vw);padding:10px;border:1px solid #b8c9d8;border-radius:10px;background:#fff;box-shadow:0 12px 28px #10243824}.activity-dropdown-panel[hidden]{display:none!important}.activity-dropdown-results{max-height:240px;overflow:auto;margin-top:8px}.activity-dropdown-option{display:block;width:100%;padding:9px;border:0;background:#fff;color:#12354b;text-align:left;cursor:pointer;border-radius:5px;font-size:13px}.activity-dropdown-option:hover,.activity-dropdown-option:focus{background:#e9f3ff}.activity-dropdown-option[aria-selected=true]{background:#dcecff;font-weight:600}.activity-source-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none}.activity-dropdown-empty{padding:12px;font-size:13px;color:#64748b}

.cover-centered dl dt,.cover-centered dl dd{text-align:center;align-self:center}

@media print{#content,#content *{color:#000!important;background-color:#fff!important;border-color:#000!important;box-shadow:none!important;text-shadow:none!important}#content svg{filter:grayscale(1)}#content img{filter:grayscale(1)}}

.cover-secondary .deposit-admin-header { max-width:none; margin:0 0 28px; text-align:left; }
.cover-secondary .deposit-admin-header > div { grid-template-columns:180px minmax(0,1fr); gap:12px; padding:8px 0; border:0; align-items:start; }
.cover-secondary .deposit-admin-header dt,.cover-secondary .deposit-admin-header dd { text-align:left; margin:0; }
.cover-secondary dl dt,.cover-secondary dl dd { text-align:left; overflow-wrap:anywhere; }
@media(max-width:600px) { .cover-secondary .deposit-admin-header > div { grid-template-columns:1fr; gap:4px; } }

.cover-secondary dl > div { grid-template-columns:180px minmax(0,1fr); gap:12px; align-items:start; }
@media(max-width:600px) { .cover-secondary dl > div { grid-template-columns:1fr; gap:4px; } }

/* Consistent label/control alignment for the three identification sheets. */
.id-code-fields { align-items:stretch; }
.id-code-fields label,.id-grid label { justify-content:flex-end; }
.id-code-fields .identity-entry,.id-grid .identity-entry { text-align:left; }
.id-code-fields input[type=date],.id-grid input[type=date],
.id-code-fields input[type=number],.id-grid input[type=number] { text-align:center; }
.id-code { text-align:center; }
.id-subpanel table { table-layout:auto; }
.id-subpanel th { text-align:center; vertical-align:middle; }
.id-subpanel input { text-align:left; }
.id-subpanel input[data-key=code],.id-subpanel input[data-key=share],.id-subpanel input[data-key=capital],.id-subpanel input[data-key=amount] { text-align:center; }

.note12-rates{display:flex;gap:16px;align-items:flex-start;justify-content:space-between}.note12-rates p{margin:8px 0;max-width:80ch}.note12-add{display:block;margin-top:10px}.note12-rate-source{display:block;margin-top:6px;font-size:12px;line-height:1.5;white-space:normal}@media(max-width:700px){.note12-rates{display:block}}
#content tr.note12-total>td{background:#e5e7eb!important;color:#111827;font-weight:700}#content tr.note12-total .num{font-weight:700}#content tr.note12-total .note12-add{background:#fff;color:#111827;border-color:#9ca3af}

/* Settings: grouped controls, readable labels and direct section navigation. */
@media screen {
 .settings-page { max-width:1160px; margin:0 auto; }
 .settings-summary { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 22px; margin-bottom:16px; border:1px solid #cadbed; border-left:4px solid #2867ce; border-radius:12px; background:#edf4ff; }
 .settings-summary div { display:flex; flex-direction:column; gap:5px; min-width:0; }
 .settings-summary strong { font-size:18px; overflow-wrap:anywhere; }
 .settings-summary span { color:#476581; font-size:14px; }
 .settings-index { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
 .settings-index a { padding:10px 13px; border:1px solid #d3dfed; border-radius:8px; background:#fff; color:#244f7a; font-size:14px; font-weight:600; text-decoration:none; }
 .settings-index a:hover { border-color:#2867ce; background:#edf4ff; }
 .settings-index a:focus-visible { outline:3px solid #6aabff; outline-offset:2px; }
 .settings-sections { display:grid; gap:20px; }
 .settings-section,.settings-account-section { scroll-margin-top:20px; min-width:0; }
 .settings-page .panel { margin:0 !important; }
 .settings-page .panel-head { padding:18px 22px; background:#f8fafd; border-bottom:1px solid #e1e9f2; }
 .settings-page .panel-head h2 { font-size:18px; }
 .settings-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; padding:22px; }
 .settings-fields label { display:flex; flex-direction:column; gap:9px; color:#314f69; font-size:14px; font-weight:600; min-width:0; }
 .settings-page .search { max-width:100%; min-width:0; width:100%; box-sizing:border-box; min-height:44px; font-size:14px; }
 .settings-fields small { font-size:14px; line-height:1.5; font-weight:400; color:#5b7288; }
 .settings-field-action { display:flex; align-items:flex-end; }
 .settings-page .action { min-height:44px; font-size:14px; justify-content:center; white-space:normal; line-height:1.4; }
 .settings-subsection { border-top:1px solid #e1e9f2; padding:20px 22px; }
 .settings-subsection h3 { margin:0 0 12px; font-size:16px; color:#244865; }
 .settings-subsection p { font-size:14px; line-height:1.6; color:#526b82; margin:0 0 16px; }
 .settings-subsection .settings-fields { padding:0; }
 .settings-create,.settings-history { border-top:1px solid #e1e9f2; }
 .settings-create > summary,.settings-history > summary { padding:18px 22px; cursor:pointer; color:#244f7a; font-size:14px; font-weight:700; }
 .settings-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:22px; gap:14px; }
 .settings-links button { display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:8px; padding:18px; border:1px solid #d4e0ed; background:#fff; border-radius:10px; color:#234865; cursor:pointer; min-width:0; }
 .settings-links button:hover { background:#edf4ff; border-color:#84abe4; }
 .settings-links strong { font-size:16px; }
 .settings-links span { font-size:14px; line-height:1.5; color:#5b7288; }
 .settings-save-status { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:14px; padding:22px; font-size:14px; }
 .settings-actions { display:flex; gap:12px; flex-wrap:wrap; }
 .settings-import { position:relative; cursor:pointer; }
 .settings-import input { position:absolute; opacity:0; width:1px; height:1px; bottom:0; left:50%; }
 .settings-import:focus-within { outline:3px solid #6aabff; outline-offset:2px; }
 .settings-history ul { padding:0 22px 18px; margin:0; list-style:none; }
 .settings-history li { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:12px 0; border-top:1px solid #e1e9f2; font-size:14px; overflow-wrap:anywhere; }
 .settings-history li span { color:#5b7288; }
 .settings-page .note { font-size:14px; line-height:1.65; overflow-wrap:anywhere; }
 .settings-page .settings-content { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:end; }
 .settings-page .settings-content label,.settings-page .profile-form label { font-size:14px; min-width:0; }
 .settings-page .settings-content input[type=email] { min-width:0; }
 .settings-page .settings-content [role=status] { grid-column:1/-1; }
 .settings-page .company-create-form .id-grid label { font-size:14px; }
 @media(max-width:700px) {
  .settings-fields,.settings-links,.settings-page .settings-content { grid-template-columns:1fr; padding:18px; gap:16px; }
  .settings-summary { align-items:flex-start; flex-direction:column; padding:18px; }
  .settings-summary .settings-framework { display:none; }
  .settings-index { gap:7px; }
  .settings-index a { flex:1 1 140px; text-align:center; }
  .settings-page .panel-head,.settings-subsection,.settings-save-status { padding:18px; }
  .settings-actions { flex-direction:column; align-items:stretch; }
  .settings-field-action .action { width:100%; }
 }
}

@media screen {
 .notes-search-bar { padding:18px 20px; border-bottom:1px solid #dce7f1; display:flex; flex-direction:column; gap:10px; }
 .notes-search-bar label { font-size:14px; font-weight:700; color:#244865; }
 .notes-search-bar > div { display:flex; gap:10px; }
 .notes-search-bar .search { flex:1; min-width:0; width:100%; min-height:44px; font-size:14px; }
 .notes-search-bar [role=status] { font-size:14px; color:#59758e; }
 .note-directory button[hidden],#notes-search-empty[hidden] { display:none !important; }
 @media(max-width:600px){ .note-directory { grid-template-columns:1fr; } .notes-search-bar > div { flex-wrap:wrap; } }
}

.cover-secondary dl > div.cover-close-line { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 14px; }
.cover-close-line dt { flex:0 1 auto; min-width:0; }
.cover-close-line dd { flex:0 0 auto; max-width:100%; white-space:nowrap; margin:0; font-variant-numeric:tabular-nums; }

.company-framework-field { grid-column:1/-1; }
.company-framework-field small { font-size:14px; line-height:1.5; color:#5b7288; }

.company-currencies { margin:0 22px 22px; padding:18px; border:1px solid #d5e2ef; border-radius:10px; min-width:0; }
.company-currencies legend { font-size:16px; font-weight:700; color:#244865; padding:0 6px; }
.company-currencies p { font-size:14px; line-height:1.6; color:#526b82; margin:0 0 16px; }
.company-currencies > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.company-currencies label { display:flex; align-items:center; gap:10px; font-size:14px; line-height:1.5; min-width:0; }
.company-currencies input { width:18px; height:18px; flex:none; }
@media(max-width:650px){ .company-currencies > div { grid-template-columns:1fr; } }

.context-controls #company-select[hidden] { display:none !important; }
.active-company-name { max-width:320px; font-size:14px; font-weight:700; color:#244865; overflow-wrap:anywhere; }

.sycebnl-reference .settings-fields{padding:16px 20px}
.sycebnl-reference .table-wrap{max-height:none}
.sycebnl-reference table{table-layout:fixed;width:100%}
.sycebnl-reference th:first-child{width:100px}
.sycebnl-reference th:nth-child(2){width:32%}
.sycebnl-reference td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.sycebnl-formula{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.6}
.sycebnl-reference [hidden]{display:none!important}

/* Keep dashboard values complete and aligned as their content changes. */
@media screen {
 .executive-dashboard,.executive-dashboard > *, .dashboard-lead > div { min-width:0; max-width:100%; }
 .executive-dashboard :is(h2,h3,p,li,.check,.note,.section-kicker) { overflow-wrap:anywhere; }
 .executive-card > * { min-width:0; max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; }
 .executive-card > strong { display:block; width:100%; min-height:36px; line-height:1.25; }
 .executive-card > span { width:100%; line-height:1.45; }
 .executive-card > em { display:block; width:100%; line-height:1.5; margin-top:auto; }
 .executive-card > button { width:100%; white-space:normal; }
 .executive-card > small { margin-bottom:12px; line-height:1.5; }
 .executive-bar > div { align-items:flex-start; flex-wrap:wrap; }
 .executive-bar > div > span { flex:1 1 100px; min-width:0; overflow-wrap:anywhere; }
 .executive-bar strong { display:block; flex:0 1 65%; min-width:0; max-width:100%; overflow-wrap:anywhere; line-height:1.5; }
 .executive-table { table-layout:fixed; }
 .executive-table th:first-child { width:34%; }
 .executive-table th:nth-child(2),.executive-table th:nth-child(3) { width:22%; }
 .executive-table td,.executive-table th { vertical-align:top; overflow-wrap:anywhere; }
 .executive-table .num { white-space:normal; }
 .executive-table [data-dashboard-fit] { display:block; width:100%; min-width:0; overflow-wrap:anywhere; line-height:1.5; }
 @supports (grid-template-rows:subgrid) {
  .executive-card { display:grid; grid-row:span 6; grid-template-rows:subgrid; align-items:start; row-gap:0; }
  .executive-card > em { margin-top:12px; }
 }
}

.sycebnl-statement .sycebnl-rule{display:block;font-size:10px;line-height:1.5;color:#63798b;font-weight:400;overflow-wrap:anywhere;margin-top:3px}
.sycebnl-statement td{vertical-align:top}
.sycebnl-statement .entry{min-width:90px;width:100%;box-sizing:border-box}
.sycebnl-statement .search{min-width:110px;max-width:100%;box-sizing:border-box}
.sycebnl-statement .table-wrap{max-height:none}
.sycebnl-statement .settings-fields{padding:18px 20px}
.sycebnl-statement textarea{width:100%;min-width:0;box-sizing:border-box}
.sycebnl-statement .settings-fields label{min-width:0}
.sycebnl-statement .table-wrap table{min-width:720px}
@media print{.sycebnl-rule,.sycebnl-statement button{display:none!important}.sycebnl-statement table{min-width:0!important}.sycebnl-statement .entry{min-width:0}.sycebnl-statement{break-before:page}}

.company-delete{border-top:1px solid #e3b9b9;padding-top:1rem}.company-delete p{max-width:70ch;line-height:1.5}.action.danger{background:#a32727;border-color:#a32727;color:#fff}.action.danger:hover{background:#821c1c}.action.danger:focus-visible{outline:3px solid #e39e9e;outline-offset:3px}

@media screen {
  #content .note.balance-import-error { color:#b42318; background:#fff1f0; border:1px solid #f5c2bd; border-left:4px solid #b42318; padding:14px 16px; font-weight:600; line-height:1.6; overflow-wrap:anywhere; }
}

.sycebnl-correspondence-reference>summary{padding:18px 22px;cursor:pointer;font-size:16px;font-weight:700;color:#244f7a}.sycebnl-correspondence-reference .table-wrap{max-height:480px;overflow:auto}
.subscription-preview { padding:22px; color:#20344c; }
.subscription-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.subscription-heading h3 { margin:6px 0 0; font-size:22px; }
.subscription-preview p { line-height:1.6; }
.subscription-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:22px 0; }
.subscription-facts > div { border:1px solid #dce5ee; background:#f5f8fc; border-radius:12px; padding:18px; min-width:0; }
.subscription-facts span,.subscription-facts strong,.subscription-facts small { display:block; overflow-wrap:anywhere; }
.subscription-facts strong { margin:8px 0; font-size:24px; }
.subscription-facts small,.subscription-methods small { color:#617084; line-height:1.5; }
.subscription-steps { display:flex; flex-wrap:wrap; gap:12px 35px; padding-left:24px; margin:20px 0 24px; }
.subscription-preview summary { cursor:pointer; font-weight:600; }
.subscription-demo-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.subscription-demo-tabs button { padding:10px 14px; border:1px solid #cad5e2; border-radius:8px; background:white; color:#20344c; cursor:pointer; font:inherit; }
.subscription-demo-tabs button[aria-pressed=true] { color:white; background:#203b60; border-color:#203b60; }
.subscription-status { padding:16px; border-radius:10px; border-left:4px solid #b57716; background:#fff7e8; }
.subscription-status p { margin:6px 0 0; }
.subscription-status[data-subscription-status=active] { border-color:#268665; background:#eef8f3; }
.subscription-status[data-subscription-status=expired] { border-color:#c74c4c; background:#fff1f1; }
.subscription-methods { display:grid; gap:8px; margin:20px 0; }
.subscription-methods > span { font-weight:600; }
.subscription-preview button:disabled { opacity:.6; cursor:not-allowed; }
.subscription-disclaimer { color:#617084; font-size:13px; border-top:1px solid #dce5ee; padding-top:16px; margin:22px 0 0; }
.subscription-compact { margin:22px 0; border:1px solid #dce5ee; border-radius:12px; background:#fff; }
@media(max-width:680px) { .subscription-preview { padding:16px; } .subscription-facts { grid-template-columns:1fr; } .subscription-heading { align-items:flex-start; } .subscription-steps { display:block; } .subscription-steps li { margin-bottom:10px; } }

.export-obligations{padding:20px;margin:0 0 20px;border:1px solid #d55757;border-left:5px solid #bd3030;border-radius:12px;background:#fff4f4;color:#812626}.export-obligations h2{font-size:19px;margin:0 0 10px}.export-obligations ul{padding-left:22px}.export-obligations li{padding:7px 0}.export-obligations li span{margin-right:12px}.export-required-field,.export-required-field:focus{border-color:#dc2626!important;outline:3px solid #dc2626!important;outline-offset:2px;background:#fee2e2!important;color:#7f1d1d!important;box-shadow:inset 0 0 0 1px #dc2626!important}

.export-warnings{padding:20px;margin:0 0 20px;border:1px solid #d69e36;border-left:5px solid #b77710;border-radius:12px;background:#fff8e7;color:#744909}.export-warnings h2{font-size:19px;margin:0 0 10px}.export-warnings ul{padding-left:22px}.export-warnings li{padding:7px 0}.export-warnings li span{margin-right:12px}
.subscription-invoices{margin-top:24px;border-top:1px solid var(--line,#dce3eb);padding-top:20px}.subscription-invoice{margin-top:12px;padding:14px;border:1px solid #dce3eb;border-radius:10px}.subscription-invoice summary{cursor:pointer;font-weight:600;overflow-wrap:anywhere}.subscription-invoice dl>div{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr);gap:16px;padding:8px 0;border-bottom:1px solid #e7edf3}.subscription-invoice dt{font-weight:600}.subscription-invoice dd{margin:0;overflow-wrap:anywhere}.subscription-invoices [data-invoice-message]{color:#8b450c;overflow-wrap:anywhere}@media(max-width:600px){.subscription-invoice dl>div{grid-template-columns:1fr;gap:4px}}
.system-offers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;margin:14px 0 24px}.system-offer,.system-payment,.system-admin form{padding:18px;border:1px solid #dce3eb;border-radius:12px;background:#fff;min-width:0;overflow-wrap:anywhere}.system-offer h4{margin:8px 0 14px}.system-offer form,.system-admin form{display:grid;gap:12px}.system-offer label,.system-admin label{display:grid;gap:6px}.system-instructions{white-space:pre-wrap;padding:12px;background:#f2f6fb;border-radius:8px}.system-admin form{margin:14px 0}.system-admin .system-enable{display:flex;align-items:center;gap:8px}.system-admin summary{cursor:pointer;font-weight:600;margin:18px 0}.system-admin textarea{width:100%;min-height:90px;resize:vertical}.system-payment{margin:12px 0}.system-subscriptions [data-system-message]{color:#8b450c;overflow-wrap:anywhere}.system-subscriptions .search{width:100%;min-width:0}
