.mg-panel{margin:0 0 24px;padding:24px;border:1px solid #d9dfe5;border-radius:16px;background:var(--panel,#fff);color:var(--text,#243044)}.mg-panel[hidden]{display:none}.mg-heading,.mg-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.mg-heading h2,.mg-panel h2,.mg-dialog h2{margin:0 0 8px;font-size:23px}.mg-heading p,.mg-panel>p{margin:6px 0 16px}.mg-panel label,.mg-dialog label{display:grid;gap:6px;font-size:13px;font-weight:600}.mg-panel input,.mg-panel select,.mg-panel textarea,.mg-dialog input,.mg-dialog select,.mg-dialog textarea{font:inherit;box-sizing:border-box;min-width:0;max-width:100%;width:100%;padding:10px;border:1px solid #cbd2da;border-radius:8px;background:#fff;color:#243044}.mg-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.mg-metric{padding:16px;border:1px solid #e0e4e9;border-radius:12px;display:grid;align-content:start;gap:8px}.mg-metric>span{font-size:12px;color:#4c5b6e}.mg-metric strong{font-size:24px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.mg-metric small,.mg-note{color:#596779;font-size:12px;line-height:1.6}.mg-details{padding:15px 0;border-top:1px solid #dfe4e9}.mg-details summary{cursor:pointer;font-weight:650;padding:6px 0}.mg-details[open] summary{margin-bottom:16px}.mg-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:end;margin:18px 0}.mg-form button{justify-self:start}.mg-wide{grid-column:1/-1}.mg-form .mg-check{display:flex;align-items:center;gap:10px;font-weight:400;line-height:1.5}.mg-check input{width:18px;min-width:18px;height:18px}.mg-list-row,.mg-payment{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #e3e7ec}.mg-list-row>div,.mg-payment>div:first-child{display:grid;gap:5px;min-width:0}.mg-list-row small,.mg-payment small{display:block;color:#596779;line-height:1.5}.mg-list-row select{max-width:240px}.mg-actions,.mg-toolbar,.mg-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mg-dialog{box-sizing:border-box;width:min(960px,94vw);max-height:90vh;border:0;border-radius:16px;padding:25px;color:#243044;background:#fff;box-shadow:0 20px 70px #0004}.mg-dialog::backdrop{background:#14203699}.mg-dialog-head{position:sticky;top:-25px;background:#fff;z-index:1;padding:12px 0}.mg-tabs{border-bottom:1px solid #dfe4e9;padding:12px 0}.mg-tabs .selected{background:#1b2742;color:#fff}.mg-error{color:#a42c2c}.mg-badge{display:block;font-size:12px;color:#385246;margin:6px 0}.mg-order-actions{display:grid;gap:5px}.mg-order-actions button{font-size:12px;padding:8px;min-height:36px}.mg-order-actions small{font-size:11px}.mg-panel progress{width:100%;height:10px;accent-color:#b59045}.mg-panel th,.mg-dialog th{text-align:left}.mg-panel td,.mg-dialog td{font-size:13px;padding:10px}.mg-panel .table-wrap,.mg-dialog .table-wrap{overflow-x:auto}.mg-toolbar{justify-content:space-between;margin:15px 0}.mg-panel button:focus-visible,.mg-dialog button:focus-visible{outline:3px solid #b59045;outline-offset:2px}.mg-dialog textarea{min-height:80px}.mg-payment{flex-wrap:wrap}.mg-payment .mg-actions{margin-left:auto}#mg-goal-progress{margin:15px 0}#mg-report-status{font-size:13px;line-height:1.6;color:#665326}#mg-content{padding-top:4px}.mg-panel button,.mg-dialog button{white-space:normal}
@media(max-width:900px){.mg-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-payment .mg-actions{margin-left:0}.mg-heading{flex-wrap:wrap}}
@media(max-width:520px){.mg-panel{padding:16px;border-radius:12px}.mg-metrics{gap:8px}.mg-metric{padding:12px}.mg-metric strong{font-size:20px}.mg-form{grid-template-columns:1fr}.mg-dialog{padding:16px;width:96vw;max-height:94vh}.mg-dialog-head{top:-16px}.mg-dialog-head h2{font-size:19px}.mg-list-row{align-items:flex-start;flex-direction:column}.mg-list-row select{max-width:100%}.mg-tabs button{flex:1;padding:9px 6px;font-size:12px}.mg-actions{width:100%}.mg-actions button{flex:1;min-width:130px}.mg-heading label{width:100%}}

#dashboardRevenuePeriods,#dashboardFinanceCard,#dashboardProfitCard{display:none!important}
