#a214{color:#51402b;background:#faf7f0;padding:18px;border-radius:16px;max-width:100%;font-size:14px}#a214 header small{color:#98794b;letter-spacing:1px}#a214 h2{margin:5px 0 16px}#a214 nav,#a214-actions,.a214-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}#a214 button{border:1px solid #e1d5c1;background:white;color:#665032;padding:9px 12px;border-radius:10px;cursor:pointer;display:inline-flex;align-items:center;gap:7px}#a214 button.active{background:#e9dcc4;border-color:#b79a68}#a214 svg{color:#a58a59;flex-shrink:0}.a214-filters,.a214-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.a214-filters label{font-size:12px;min-width:0}.a214-filters input,.a214-filters select{width:100%;min-width:0}.a214-cards article{background:white;border:1px solid #e5dac7;border-radius:12px;padding:12px;display:grid;gap:6px}.a214-cards strong{font-size:20px}.a214-table{overflow:auto;background:white;border-radius:10px;margin:12px 0}.a214-table table{width:100%;border-collapse:collapse}.a214-table td,.a214-table th{padding:9px;border-bottom:1px solid #eee4d5;text-align:left;white-space:nowrap}.a214-bar{display:grid;grid-template-columns:1fr auto;gap:5px;margin:10px 0}.a214-bar i{grid-column:1/-1;height:7px;background:#b49a70;border-radius:5px}#modalContent:has(#a214){width:min(1000px,94vw);max-width:94vw}#a214-content h3{margin:16px 0 8px}
.a215-chart,.a215-panel{background:white;border:1px solid #e5dac7;border-radius:12px;padding:14px;margin:12px 0}.a215-chart svg{width:100%;height:auto;display:block}.a215-chart text{fill:#665032}.a215-panel progress{width:100%;accent-color:#a58a59}.a215-panel input{max-width:160px}.a215-full{position:fixed!important;inset:0;z-index:99999;overflow:auto;border-radius:0!important}.a215-chart p{font-size:12px}@media print{.a215-chart svg{width:100%}}

.a216-legend{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:12px;margin-bottom:8px}.a216-legend span{display:inline-flex;align-items:center;gap:6px}.a216-legend i{width:9px;height:9px;border-radius:50%}.a216-scroll{overflow-x:auto}.a215-chart svg{max-height:250px}.a215-chart .a214-table{margin:8px 0 0}.a215-panel{padding:12px}.a215-panel p{margin:8px 0}.a215-panel progress{height:10px;display:block}.a214-cards article{min-width:0}.a214-cards strong{font-size:clamp(15px,2vw,20px)}

/* V217: responsive report, scoped to its own dialog */
#modal:not([hidden]):has(#a214){display:flex!important;align-items:center!important;justify-content:center!important;padding:12px!important;overflow:hidden!important;box-sizing:border-box}
#modal:has(#a214) .modal-card{box-sizing:border-box!important;width:min(1500px,100%)!important;max-width:100%!important;max-height:calc(100dvh - 24px)!important;min-width:0!important;padding:0!important;display:flex!important;flex-direction:column;overflow:hidden!important}
#modal:has(#a214) .modal-card>.floating{position:absolute!important;top:10px!important;right:12px!important;z-index:10!important;float:none!important}
#modal:has(#a214) #modalContent{box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
#a214,#a214 *{box-sizing:border-box}
#a214{width:100%;min-width:0;max-width:100%;padding:16px;overflow-wrap:anywhere}
#a214 header{position:static!important;display:block!important;width:100%;min-width:0;padding:0 44px 0 0;background:transparent;box-shadow:none}
#a214 h2{font-size:clamp(23px,3vw,36px);margin:5px 0 12px}
#a214 nav,#a214 .a214-actions{display:flex;flex-wrap:wrap;min-width:0;max-width:100%}
#a214 button{min-width:0;max-width:100%;white-space:normal}
#a214 .a214-cards,#a214 .a214-filters{grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));min-width:0}
#a214 .a214-cards article,#a214 .a214-filters label,#a214-content,#a214 .a215-panel,#a214 .a215-chart{min-width:0;max-width:100%}
#a214 input,#a214 select{max-width:100%;min-width:0}
#a214 .a214-table{max-width:100%;min-width:0;overflow-x:auto}
#a214 .a214-table table{width:100%;min-width:0!important;table-layout:fixed}
#a214 .a214-table td,#a214 .a214-table th{white-space:normal!important;overflow-wrap:anywhere;padding:9px 6px}
#a214 .a216-scroll{max-width:100%;min-width:0;overflow-x:hidden}
#a214 .a215-chart svg{width:100%;min-width:0!important;max-width:100%;height:auto;max-height:250px}
#modal:has(#a214.a215-full){padding:0!important}
#modal:has(#a214.a215-full) .modal-card{width:100%!important;max-height:100dvh!important;height:100dvh;border-radius:0}
#a214.a215-full{position:static!important;overflow:visible;min-height:100%}
@media(max-width:600px){#modal:not([hidden]):has(#a214){padding:0!important}#modal:has(#a214) .modal-card{width:100%!important;height:100dvh;max-height:100dvh!important;border-radius:0}#a214{padding:12px}#a214 .a214-cards,#a214 .a214-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#a214 nav button{flex:1 1 30%;font-size:11px;padding:8px 5px}#a214 .a214-actions button{flex:1 1 42%;font-size:12px}#a214 .a214-table table,#a214 .a214-table tbody,#a214 .a214-table tr,#a214 .a214-table td{display:block;width:100%}#a214 .a214-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#a214 .a214-table tr{border-bottom:1px solid #e5dac7;padding:8px}#a214 .a214-table td{display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr);gap:8px;border:0;padding:5px}#a214 .a214-table td:before{content:attr(data-label);font-weight:600;color:#98794b}#a214 .a214-table td[colspan]{display:block}#a214 .a215-chart,#a214 .a215-panel{padding:9px}}
@media(max-width:340px){#a214 .a214-cards,#a214 .a214-filters{grid-template-columns:1fr}}
