:root {
    --bn-blue: #0d4f98;
    --bn-blue-dark: #08396f;
    --bn-sky: #2c92e5;
    --bn-gold: #efbf00;
    --bn-orange: #f29b18;
    --bn-commerciale:#f5e65d;
    --bn-prodotto:#f4e6f7;
    --bn-clienti:#f4e6f7;
    --bn-lime: #8fd246;
    --bn-red: #d92d20;
    --bn-ink: #182230;
    --bn-muted: #667085;
    --bn-line: #d8e0e8;
    --bn-soft: #f4f7fa;
    --bn-white: #fff;
    --bn-shadow: 0 18px 50px rgba(13, 79, 152, .14);
    --bn-heading-font: "Roboto", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; color: #111827; background: var(--bn-white); font: 16px/1.15 var(--bn-heading-font); }
a { color: var(--bn-blue); }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 14px; background: white; color: var(--bn-blue); }
.skip-link:focus { top: 12px; }

.site-header { background: var(--bn-white); border-bottom: 1px solid #9299a2; }
.top-line { background: var(--bn-blue); color: white; font-size: 12px; }
.top-line-inner, .account-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 32px; }
.account-bar form { margin: 0; }
.account-bar button { border: 0; padding: 0; color: white; background: transparent; font-weight: 800; cursor: pointer; }
.account-role { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.35); text-transform: uppercase; font-weight: 800; }
.brand-panel { min-height: 178px; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 24px 0 18px; }
.brand-logo { display: block; width: min(520px, 52vw); color: var(--bn-blue); text-decoration: none; }
.brand-logo img { display: block; width: 100%; height: auto; }

.main-navigation { background: linear-gradient(#f5f5f5, #b9bdc3); border-bottom: 1px solid #8b929a; box-shadow: inset 0 1px rgba(255,255,255,.75); }
.navigation-inner { position: relative; }
.admin-menu { display: flex; justify-content: center; min-height: 38px; }
.menu-group { position: relative; }
.menu-group summary, .menu-link { min-height: 38px; display: flex; align-items: center; border-left: 1px solid rgba(0,0,0,.16); padding: 7px 16px; color: #17202b; text-decoration: none; font-size: 12px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.admin-menu > .menu-group > summary, .admin-menu > .menu-link { border-radius: 8px; }
.menu-group summary { cursor: pointer; list-style: none; }
.menu-group summary::-webkit-details-marker { display: none; }
.menu-group summary::after { content: ""; margin-left: 8px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.menu-group-accent summary { background: rgba(242,155,24,.16); }
.menu-commercial summary { background: linear-gradient(135deg, var(--bn-orange), var(--bn-gold)); }
.menu-group:hover summary, .menu-group[open] summary, .menu-group.active summary, .menu-link:hover, .menu-link.active { color: var(--bn-blue); background: rgba(255,255,255,.62); }
.menu-commercial:hover summary, .menu-commercial[open] summary, .menu-commercial.active summary { background: linear-gradient(135deg, var(--bn-orange), var(--bn-gold)); }
.submenu { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 220px; display: none; border: 1px solid #afb7c0; background: white; box-shadow: var(--bn-shadow); }
.menu-group[open] > .submenu { display: grid; }
.submenu .menu-link { min-height: 42px; border: 0; border-bottom: 1px solid #edf0f3; padding: 9px 14px; text-transform: none; }
.menu-link.is-disabled { justify-content: space-between; gap: 12px; color: #7b8794; cursor: default; }
.menu-link.is-disabled small { color: var(--bn-orange); font-size: 9px; text-transform: uppercase; }
.menu-home { font-size: 19px; padding-inline: 15px; }
.menu-toggle { display: none; width: 100%; min-height: 42px; border: 0; background: transparent; color: var(--bn-blue-dark); font-weight: 900; text-align: left; }
/* pulsanti gialli */
.menu-yellow {background-color: var(--bn-gold);}

main.wrap { min-height: calc(100vh - 260px); padding-block: 32px 54px; }
h1, h2, h3 { color: var(--bn-blue-dark); line-height: 1.2; }
h1 { margin: 0 0 22px; font-size: clamp(26px, 3vw, 34px); }
h2 { margin: 30px 0 14px; font-size: 21px; }
h3 { font-size: 16px; }
.panel-grid, .stats-grid, .attention-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.panel, .stat-card, .attention-card, .technical-step, .timeline-item, .commercial-manager { border: 1px solid var(--bn-line); border-radius: 10px; background: white; box-shadow: 0 8px 24px rgba(31,42,55,.05); }
.panel, .attention-card { padding: 20px; }
.panel h2, .attention-card h3 { margin-top: 0; }
.stat-card { position: relative; overflow: hidden; padding: 18px; }
.stat-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--bn-sky); }
.stat-label, th, dt { color: var(--bn-muted); font-size: 11px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.stat-value { margin-top: 5px; color: var(--bn-blue-dark); font-size: 28px; font-weight: 900; }
.muted, .small-muted { color: var(--bn-muted); }
.small-muted { font-size: 12px; }
.text-link { color: var(--bn-blue); text-decoration: none; font-weight: 800; }
.text-link:hover { color: var(--bn-sky); text-decoration: underline; }

.table-wrap { overflow: auto; border: 1px solid var(--bn-line); border-radius: 10px; background: white; box-shadow: 0 8px 24px rgba(31,42,55,.04); }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e8edf3; text-align: left; vertical-align: top; }
th { background: var(--bn-gold); color: #17202b; }
tbody tr:hover { background: #f7fbff; }
tbody tr:last-child td { border-bottom: 0; }
.pagination-wrap { margin-top: 18px; }

.table-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 10px; }
.table-controls label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.table-controls select { width: auto; min-width: 72px; height: 42px; padding: 6px 28px 6px 10px; border-radius: 8px; }
.table-search { margin-left: auto !important; }
.table-search input[type="search"] { width: 205px; height: 50px; padding: 8px 12px; border: 1px solid #b4b2b2; border-radius: 10px; background: #f8f8f8; font-size: 18px; }
.table-search input[type="search"]:focus { border-color: #e69a00; outline: 0; box-shadow: 0 0 5px #ffcf00; }
.table-sort-button { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; gap: 7px; padding: 5px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: center; }
.table-sort-button:hover, .table-sort-button:focus-visible { background: rgba(255, 255, 255, .38); color: inherit; box-shadow: none; transform: none; }
.table-sort-icon { min-width: 12px; font-size: 10px; opacity: .7; }
.table-local-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 18px; color: var(--bn-muted); font-size: 13px; }
.table-page-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.table-page-buttons button { min-width: 34px; padding: 7px 10px; border-radius: 4px; }
.table-page-buttons button[aria-current="page"] { background: var(--bn-gold); color: #17202b; }
.table-status { width: 100%; color: var(--bn-muted); font-size: 13px; text-align: right; }
.table-local-pagination[hidden], .pagination-wrap[hidden] { display: none !important; }

@media (max-width: 700px) {
    .table-controls, .table-local-pagination { align-items: stretch; flex-direction: column; }
    .table-controls label, .table-search input[type="search"] { width: 100%; }
    .table-search { margin-left: 0 !important; }
}
dl { margin: 0; }
dt { margin-top: 10px; }
dd { margin: 3px 0 0; overflow-wrap: anywhere; }

.detail-page { display: grid; gap: 22px; }
.detail-page > h1, .detail-page > h2 { margin-bottom: -8px; }
.detail-page-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.detail-page .panel {
    border: 2px solid #000;
    border-radius: 25px;
    background: #ffd966;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}
.detail-page .panel h2 {
    color: var(--bn-blue-dark);
    text-transform: uppercase;
    font-size: x-large;
    font-weight: 900;
}
.detail-page .panel dl { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr); gap: 0 20px; }
.detail-page .panel dt, .detail-page .panel dd { margin: 0; padding: 10px 0; border-bottom: 1px solid rgba(8,57,111,.16); }
.detail-page .panel dt { color: var(--bn-blue-dark); }
.detail-page .status-update-form { margin-top: 14px; }
.detail-page .status-update-form select { flex: 1 1 220px; }

.form-panel { max-width: none; }
.form-panel, .filter-panel { width: 100%; border: 2px solid #000; border-radius: 25px; background: #ffd966; padding: 40px; box-shadow: 0 8px 25px rgba(0,0,0,.08); }
.form-grid, .filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 30px; }
.form-section-title {
    color: var(--bn-blue-dark);
    text-transform: uppercase;
    grid-column: 1 / -1;
    margin-top: 10px;
    font-weight: 900;
    font-size: x-large;
}
.form-field-wide { grid-column: span 2; }
.form-field label { display: block; margin-bottom: 6px; color: #111827; font-size: 16px; font-weight: 800; }
.form-field input:not([type="checkbox"]), main form select, .form-field textarea { width: 100%; min-height: 40px; border: 2px solid #000; border-radius: 9px; background: #fff; padding: 0 10px; font-size: 14px; transition: .25s; }
main form select {
    height: 40px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 25px;
    color: #000;
    cursor: pointer;
}
.form-field textarea { min-height: 80px; padding-block: 8px; resize: vertical; }
.form-field input:focus, main form select:focus, .form-field textarea:focus { outline: none; border-color: #39c7f3; box-shadow: none; background: #fff; }
.form-field input:disabled, main form select:disabled, .form-field textarea:disabled { background: #f3f3f3; color: #999; cursor: not-allowed; }
.form-actions, .filter-actions { margin-top: 12px; }
.action-row, .status-update-form, .filter-actions, .quick-actions, .timeline-title, .technical-summary, .timeline-meta, .commercial-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-actions button, .action-row button, .status-update-form button, .filter-actions button, .button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 15px; padding: 0 16px; color: #fff; background: var(--bn-blue); font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: .5px; text-align: center; text-decoration: none; cursor: pointer; transition: .3s; }
.form-panel .form-actions button, .filter-panel .filter-actions button, .filter-panel .form-actions button { width: 100%; }
.form-actions button:hover, .action-row button:hover, .status-update-form button:hover, .filter-actions button:hover, .button:hover { background: #08b5e2; text-decoration: none; }
.filter-panel { margin-bottom: 18px; }
.quick-actions a { min-height: 40px; display: inline-flex; align-items: center; border: 1px solid rgba(44,146,229,.35); border-radius: 7px; padding: 9px 13px; background: white; color: var(--bn-blue); text-decoration: none; font-weight: 800; }
.quick-actions a:hover { background: #eaf5ff; }

.alert { margin: 0 0 20px; border: 1px solid; border-radius: 8px; padding: 12px 15px; font-weight: 700; }
.alert-success { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.alert-error { border-color: #fecdca; background: #fef3f2; color: #b42318; }
.alert-warning { border-color: #fedf89; background: #fffaeb; color: #93370d; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge-success { background:#dcfae6;color:#067647}.badge-warning{background:#fff2c7;color:#93370d}.badge-danger{background:#fee4e2;color:#b42318}.badge-muted{background:#eef2f6;color:#52616f}.badge-info{background:#dff0ff;color:var(--bn-blue)}.badge-dark{background:var(--bn-blue-dark);color:white}

.timeline, .technical-details, .commercial-network, .commercial-managers { display: grid; gap: 12px; }
.timeline-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; border-left-width: 4px; padding: 12px; }
.timeline-item.completed{border-left-color:#12b76a}.timeline-item.running{border-left-color:var(--bn-orange)}.timeline-item.pending{border-left-color:var(--bn-gold)}.timeline-item.failed{border-left-color:#f04438}.timeline-item.skipped{border-left-color:#98a2b3}
.timeline-marker { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #edf6ff; color: var(--bn-blue); font-weight: 900; }
.timeline-content { min-width: 0; }.timeline-title,.technical-summary{font-weight:800}.timeline-meta{margin-top:6px;color:var(--bn-muted);font-size:12px}.timeline-message{margin-top:8px}.technical-step{padding:12px}.technical-summary{cursor:pointer}
.json-preview { max-width:100%;overflow:auto;border-radius:8px;padding:12px;background:#111827;color:#e5e7eb;font:12px/1.5 Menlo,monospace; }
.commercial-managers { margin-top: 16px; }.commercial-manager{padding:14px}.commercial-branch h2,.commercial-manager h3{margin:0}.commercial-node-header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.site-footer { border-top: 1px solid var(--bn-line); padding: 22px 0; background: white; color: var(--bn-muted); font-size: 12px; text-align: center; }

@media (max-width: 900px) {
    .wrap { width: min(100% - 24px, 1180px); }
    .brand-panel { min-height: 92px; }
    .menu-toggle { display: block; }
    .admin-menu { display: none; padding-bottom: 10px; }
    .admin-menu.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .menu-group, .menu-home { min-width: 0; }
    .menu-group summary, .menu-link { justify-content: space-between; border: 1px solid rgba(0,0,0,.12); white-space: normal; }
    .submenu { position: static; min-width: 0; box-shadow: none; }
    .menu-home { justify-content: center; }
}

@media (max-width: 560px) {
    .top-line-inner { align-items: flex-start; padding-block: 7px; }
    .top-line-inner > span { display: none; }
    .account-bar { width: 100%; justify-content: space-between; }
    .account-role { display: none; }
    .admin-menu.is-open { grid-template-columns: 1fr; }
    .brand-logo { width: min(280px, 72vw); }
    main.wrap { padding-top: 24px; }
    .panel { padding: 16px; }
    .form-panel, .filter-panel { padding: 25px; }
    .form-grid, .filter-grid { grid-template-columns: 1fr; gap: 20px; }
    .form-field label { font-size: 15px; }
    .form-field input:not([type="checkbox"]), main form select, .form-field textarea { min-height: 40px; height: 40px; font-size: 14px; }
    .form-actions button, .action-row button, .status-update-form button, .filter-actions button, .button { min-height: 40px; font-size: 16px; }
    .form-field-wide { grid-column: auto; }
    .detail-page-actions { align-items: stretch; flex-direction: column-reverse; }
    .detail-page-actions .button { justify-content: center; display: inline-flex; align-items: center; }
    .detail-page .panel { padding: 22px; }
    .detail-page .panel dl { grid-template-columns: 1fr; }
    .detail-page .panel dt { padding-bottom: 2px; border-bottom: 0; }
    .detail-page .panel dd { padding-top: 2px; }
}

/* Tema admin ispirato alle regole visuali del gestionale Si Coupon. */
:root {
    --bn-blue: #0b61b7;
    --bn-blue-dark: #0b61b7;
    --bn-sky: #428bca;
    --bn-gold: #ffcf00;
    --bn-orange: #ffa200;
    --bn-ink: #272727;
    --bn-muted: #807e7e;
    --bn-line: #cccccc;
    --bn-soft: #f8f8f8;
    --bn-shadow: 0 5px 12px rgba(0, 0, 0, .16);
    --bn-heading-font: Arial, "Open Sans", sans-serif;
}

html { background: var(--bn-blue); }
body { color: var(--bn-ink); background: var(--bn-white); font: 14px/20px Arial, "Open Sans", sans-serif; }
.wrap { width: min(1200px, calc(100% - 30px)); }

.site-header { border-bottom: 0; background: #fff; }
.top-line { min-height: 20px; background: #2f68ad; font-size: 11px; }
.top-line-inner, .account-bar { min-height: 20px; }
.brand-panel {
    width: 100%;
    min-height: 133px;
    padding: 14px max(15px, calc((100% - 1200px) / 2));
    background: linear-gradient(180deg, #80d0eb 0%, #337ab7 100%);
}
.brand-logo { width: auto; height: 105px; }
.brand-logo img { width: auto; height: 100%; max-width: 330px; object-fit: contain; }
.brand-administration { margin-left: auto; flex-shrink: 0; }
.brand-administration summary { background: #ffa200; border: 1px solid #ccc; }
.brand-administration .submenu { position: absolute; left: auto; right: 0; text-align: left; }

.main-navigation { border-bottom: 1px solid #ccc; background: #fff; box-shadow: none; }
.admin-menu { justify-content: flex-start; min-height: 40px; }
.menu-group summary, .menu-link {
    min-height: 40px;
    border-color: #ccc;
    border-radius: 0 !important;
    padding: 10px 15px;
    color: #333;
    font-size: 14px;
    line-height: 20px;
    font-weight: 900;
}
.admin-menu > .menu-group > summary, .admin-menu > .menu-link { border-radius: 0; }
.admin-menu > .menu-group summary { background: rgba(255, 230, 230, .84); }
.admin-menu > .menu-commercial summary { background: #fffc00; }
.admin-menu > .menu-group-accent summary { background: #ffa200; }
.admin-menu > .menu-group:nth-of-type(4n) summary { background: #a8f9e5; }
.menu-group:hover summary, .menu-group[open] summary, .menu-group.active summary,
.menu-commercial:hover summary, .menu-commercial[open] summary, .menu-commercial.active summary,
.menu-link:hover, .menu-link.active { color: #333; background: #eee !important; text-decoration: none; }
.submenu { min-width: 230px; border-color: #ccc; box-shadow: var(--bn-shadow); }
.submenu .menu-link { min-height: 35px; border-bottom-color: #ccc; padding: 7px 10px; font-size: 13px; font-weight: 600; }
.menu-home { background: #a8f9e5; }

main.wrap { min-height: calc(100vh - 369px); padding-block: 30px 50px; background: #fff; }
body::before {
    content: "";
    position: fixed;
    inset: 20px 0 0;
    z-index: -1;
    background: linear-gradient(#80d0eb 0 133px, #fff 133px 438px, var(--bn-blue) 438px);
}
h1, h2, h3 { color: var(--bn-sky); font-family: Arial, "Open Sans", sans-serif; }
h1 { margin: 10px 0 20px; font-size: 30px; line-height: 33px; font-weight: 900; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { font-size: 15px; line-height: 20px; }

.panel, .stat-card, .attention-card, .technical-step, .timeline-item, .commercial-manager,
.table-wrap { border-color: #eaeaea; border-radius: 0; box-shadow: none; }
.panel { padding: 25px; }
.stat-card::before { background: var(--bn-sky); }
.stat-label, th, dt { color: #333; font-size: 12px; }
.stat-value { color: var(--bn-sky); }

.table-wrap { border-radius: 0; }
.table-wrap table { font-size: 14px; }
th, td { border-color: #ddd; padding: 8px 5px; }
th { background: var(--bn-gold); color: #333; text-align: center; }
tbody tr:hover { background: rgba(66, 139, 202, .09); }

.form-panel, .filter-panel, .detail-page .panel {
    border: 1px solid #eaeaea;
    border-radius: 0 0 10px 10px;
    background: #fff;
    padding: 28px 25px 20px;
    box-shadow: none;
}
.form-field label { color: #807e7e; font-size: 15px; font-weight: 700; }
.form-field input:not([type="checkbox"]), main form select, .form-field textarea {
    min-height: 50px;
    border: 1px solid #b4b2b2;
    border-radius: 10px;
    background: #f8f8f8;
    padding: 8px;
    color: #3d3d3d;
    font-size: 18px;
    font-weight: 400;
}
main form select { height: 50px; }
.form-field textarea { min-height: 100px; }
.form-field input:focus, main form select:focus, .form-field textarea:focus {
    border: 2px solid #e69a00;
    background: #fff;
    box-shadow: 0 0 8px #ffcf00;
}
.form-actions button, .action-row button, .status-update-form button, .filter-actions button, .button {
    min-height: 40px;
    border-radius: 10px;
    padding: 8px 15px;
    background: var(--bn-sky);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}
.form-actions button:hover, .action-row button:hover, .status-update-form button:hover,
.filter-actions button:hover, .button:hover { background: #1100cf; color: #fff; }
.text-link:hover { color: #1100cf; }

.site-footer {
    min-height: 109px;
    border-top: 50px solid #fff;
    padding: 20px 0;
    background: var(--bn-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .brand-panel { min-height: 110px; padding-inline: 15px; }
    .brand-logo { height: 82px; }
    .main-navigation { padding-block: 0; }
    .menu-toggle { min-height: 42px; padding: 10px 15px; color: #333; background: #fffc00; }
    .admin-menu.is-open { padding: 10px 0; }
    .menu-group summary, .menu-link { border-color: #ccc; }
    main.wrap { min-height: calc(100vh - 330px); }
}

@media (max-width: 560px) {
    .wrap { width: min(100% - 20px, 1200px); }
    .brand-panel { width: 100%; flex-wrap: wrap; gap: 12px; }
    .brand-logo { height: 70px; }
    .brand-logo img { max-width: 230px; }
    .form-panel, .filter-panel, .detail-page .panel { padding: 20px 15px; }
    .form-field input:not([type="checkbox"]), main form select, .form-field textarea {
        min-height: 48px;
        height: auto;
        font-size: 16px;
    }
}

/* Navigation includes only the features currently available in Condomini App. */
.app-menu { display: flex; justify-content: center; min-height: 38px; }
.app-menu .menu-link { border-radius: 8px; }
.condomini-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.condomini-heading h1 { margin-top: 0; }
.condomini-heading p { margin-bottom: 0; }
.condomini-empty { padding: 40px 20px; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.form-actions button:disabled, .form-actions button:disabled:hover { background: #e5e7eb; color: #666; cursor: not-allowed; }
@media (max-width: 600px) {
    .top-line-inner, .account-bar { flex-wrap: wrap; padding-block: 6px; }
    .account-bar span { overflow-wrap: anywhere; }
}

/* App navigation: the four management sections retain their yellow in every state. */
.app-menu { flex-wrap: wrap; align-items: flex-start; }
.app-menu > .app-menu-yellow > summary,
.app-menu > .app-menu-yellow:hover > summary,
.app-menu > .app-menu-yellow[open] > summary,
.app-menu > .app-menu-yellow.active > summary { background: #fffc00 !important; color: #17202b; border-radius: 8px; }
.app-menu summary:focus-visible, .app-menu a:focus-visible { outline: 3px solid #0d4f98; outline-offset: -3px; }
.app-menu > .menu-group:last-child > .submenu { left: auto; right: 0; }
@media (max-width: 900px) {
    .app-menu { flex-direction: column; align-items: stretch; }
    .app-menu > .menu-group > .submenu { position: static; width: 100%; }
}
