.dm-course-badges{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.dm-course-badges>span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:9px;font-size:12px;font-weight:750;line-height:1.4;white-space:normal;overflow-wrap:anywhere}.dm-course-site{background:var(--primary-soft,#eee8ff);color:var(--primary,#6550a2)}.dm-course-level{background:var(--surface-alt,#edf4f5);color:var(--text,#223340)}.dm-course-site svg{width:16px;flex:none}.dm-finance-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px;margin-bottom:18px}.dm-finance-filters .field{flex:1;min-width:140px}.dm-finance-table{overflow-x:auto}.dm-finance-table table{min-width:640px;width:100%}.dm-finance-table td,.dm-finance-table th{padding:13px;text-align:left}.dm-finance-table td small{display:block;margin-top:4px}.dm-finance-note{padding:14px 18px;border-radius:12px;background:var(--surface-alt,#edf4f5);margin:12px 0 18px;line-height:1.6}.dm-expense-form textarea{width:100%}.dm-finance-actions{display:flex;gap:8px;flex-wrap:wrap}.dm-finance-filters input,.dm-finance-filters select{width:100%}.dm-finance-empty{padding:24px}.dm-finance-row-actions{display:flex;gap:5px}.dm-finance-total{font-weight:800;white-space:nowrap}.dm-header-context .topbar-scope-chip{max-width:210px;overflow:hidden}.dm-header-context .topbar-scope-chip strong{overflow:hidden;text-overflow:ellipsis}.dm-secretary-hero+.dm-dashboard-top-actions{flex-wrap:wrap}@media(max-width:600px){.dm-finance-filters .field{min-width:calc(50% - 12px)}.dm-finance-filters .btn{width:100%}.dm-course-badges>span{font-size:12px}.dm-header-context .topbar-scope-chip{max-width:160px}.dm-finance-table td,.dm-finance-table th{padding:10px}}[data-dm-theme=dark] .dm-course-site{background:#30264a;color:#e0d4ff}[data-dm-theme=dark] .dm-course-level,[data-dm-theme=dark] .dm-finance-note{background:#223239;color:#e4eff3}

@media(max-width:600px){.dm-finance-table{overflow:visible}.dm-finance-table table{min-width:0;display:block}.dm-finance-table thead{display:none}.dm-finance-table tbody{display:block;padding:8px}.dm-finance-table tr{display:block;border-bottom:1px solid var(--border,#e2dced);padding:10px 0}.dm-finance-table tr:last-child{border-bottom:0}.dm-finance-table td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:8px;padding:7px 8px;overflow-wrap:anywhere;white-space:normal}.dm-finance-table td:before{content:attr(data-label);font-size:11px;color:var(--muted,#766e85);font-weight:650}.dm-finance-table td small{grid-column:2}.dm-finance-table td strong{min-width:0}.dm-finance-table td[colspan]{display:block}.dm-finance-table td[colspan]:before{display:none}.dm-finance-table .dm-finance-total{white-space:normal}}
/* V264: readable school and location hierarchy, consistent cash controls. */
.school-chip-school-copy{min-width:0}.school-chip-school-copy strong{overflow-wrap:anywhere;line-height:1.35}.secretary-location-context.multi{align-items:flex-start}.secretary-location-context.multi>div{min-width:0;flex:1}.secretary-location-context.multi strong{display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.45}.dm-sidebar-site{display:block;padding:6px 8px;border-radius:8px;background:rgba(255,255,255,.07);overflow-wrap:anywhere}.dm-daily-cash{margin-bottom:20px}.dm-daily-cash>.kpi-grid{padding:0 16px}.dm-daily-cash>.dm-finance-note{margin:12px 16px 16px}.dm-daily-cash .dm-finance-filters{margin-bottom:4px;border:0;box-shadow:none}.dm-finance-filters label{display:block;margin-bottom:6px}.hero-actions,.panel-head .actions{flex-wrap:wrap}.money-row .grow{min-width:0}.payment-list-meta{overflow-wrap:anywhere}.staff-location-check small{line-height:1.5}@media(max-width:600px){.dm-daily-cash .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dm-daily-cash .kpi:first-child{grid-column:1/-1}.cash-grid>.panel{min-width:0}.money-row-right{flex-shrink:0;max-width:45%}.panel-head .actions{gap:8px}}[data-dm-theme=dark] .dm-daily-cash{background:var(--surface,#19212e);color:var(--text,#eef2ff)}
/* Contrast verified in both themes. */
.dm-course-site{color:#5043ba}.dm-chat-sound.btn-ghost,.dm-chat-sound.btn-ghost span{color:#39245f!important}[data-dm-theme=dark] .dm-chat-sound.btn-ghost,[data-dm-theme=dark] .dm-chat-sound.btn-ghost span{color:#efe9ff!important}.dm-expense-form .field[hidden]{display:none!important}.dm-balance-analysis .panel-head{flex-wrap:wrap;gap:14px}.dm-balance-analysis .kpi .kpi-value{overflow-wrap:anywhere;font-size:clamp(17px,2.2vw,28px)}
.school-chip .school-chip-school-copy>strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35!important;font-size:15px!important}.dm-balance-analysis .kpi-value{white-space:normal!important;overflow-wrap:anywhere}.dm-daily-cash .kpi-grid .kpi{min-width:0}
.dm-balance-analysis .kpi>.value{white-space:normal!important;overflow-wrap:anywhere;font-size:clamp(17px,2vw,25px)!important;line-height:1.35}.dm-daily-cash .kpi>.value{white-space:normal;overflow-wrap:anywhere}
html[data-dm-theme=dark] body.dm-chat-page #app #content .dm-chat-toolbar-actions>.dm-chat-sound{background:#30264a!important;color:#f0eaff!important}html[data-dm-theme=dark] body.dm-chat-page #app #content .dm-chat-toolbar-actions>.dm-chat-sound span{background:transparent!important;color:#f0eaff!important}html:not([data-dm-theme=dark]) body.dm-chat-page #app #content .dm-chat-toolbar-actions>.dm-chat-sound span{color:#39245f!important}@media(max-width:600px){.dm-finance-table td{height:auto!important;min-height:0;align-items:start}.dm-finance-table td small{position:static!important;float:none;line-height:1.5}}
/* Sound controls also appear in the assistance mailbox. */
html[data-dm-theme] body #app #content button.btn.dm-chat-sound[aria-pressed=true]{background:#5036a3!important;border-color:#5036a3!important;color:#fff!important}html[data-dm-theme] body #app #content button.btn.dm-chat-sound[aria-pressed=true] span{color:#fff!important;background:transparent!important}
.dm-comparison-euro{display:block;white-space:nowrap}.dm-comparison-percent{display:block;font-size:13px;font-weight:650;line-height:1.5;margin-top:6px}.dm-balance-analysis>.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}@media(max-width:600px){.dm-balance-analysis>.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dm-balance-analysis>.kpi-grid>.kpi:last-child{grid-column:1/-1}}
/* V6.360: readable month and method selectors on phones. */
@media(max-width:700px){
 html body #app .dm-daily-cash > .dm-finance-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}
 html body #app .dm-daily-cash > .dm-finance-filters > .field{min-width:0!important;width:100%!important}
 html body #app .dm-daily-cash > .dm-finance-filters > .field:nth-child(3){grid-column:1 / -1}
 html body #app .dm-daily-cash > .dm-finance-filters > .btn{width:100%!important;min-width:0!important}
}
/* V265: main-school logo beside each enabled location. */
.secretary-location-context.multi .dm-sidebar-site{display:flex;align-items:center;gap:9px;padding:9px}.dm-sidebar-site .dm-sidebar-site-logo{flex:none;width:34px!important;height:34px!important;border-radius:9px;background:#fff;padding:3px}.dm-sidebar-site .dm-sidebar-site-name{font-size:12px;line-height:1.45;font-weight:650;letter-spacing:0;text-transform:none;color:inherit;min-width:0}.dm-sidebar-site-logo img{width:100%;height:100%;object-fit:contain}
