/* Margi v0.15 · Reports viewer and print document are isolated from personal preferences. */
.report-dialog{box-sizing:border-box;width:min(1180px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--margi-control-line);border-radius:var(--margi-radius)!important;background:var(--margi-sidebar-surface);color:var(--margi-text);box-shadow:none;overflow:hidden}
.report-dialog::backdrop{background:rgba(37,36,36,.36)}
.report-dialog-head,.report-dialog-actions{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;border-color:transparent!important;background:#FFFEFB!important;color:#252424}
.report-dialog-head{border-bottom:1px solid transparent}.report-dialog-head h2{margin:0}.report-dialog-head .utility-dialog-close{flex:0 0 44px;width:44px;height:44px;border-radius:var(--margi-radius)!important}
#monthlyReportBody{box-sizing:border-box;max-height:calc(100dvh - 176px);padding:22px;overflow:auto;overscroll-behavior:contain}
.report-dialog-actions{position:sticky;bottom:0;border-top:1px solid transparent}.report-dialog-actions>span{font:500 11px/1.4 var(--margi-font-ui),sans-serif}.report-dialog-actions>div{display:flex;gap:10px}.report-dialog-actions .semantic-button{min-height:44px;border-radius:var(--margi-radius)!important}

.monthly-report{box-sizing:border-box;width:min(100%,900px);margin:0 auto;padding:34px;border:0;border-radius:var(--margi-radius);background:#FFFEFB!important;color:#252424!important;font-family:"Roboto",Arial,sans-serif;box-shadow:none}
.monthly-report *{box-sizing:border-box}.monthly-report-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:24px;border-bottom:1px solid transparent}.monthly-report-kicker{color:#252424;font:700 9px/1.3 "Roboto",Arial,sans-serif;letter-spacing:.12em}.monthly-report-header h1{margin:12px 0 5px;color:#252424;font:600 clamp(34px,5vw,50px)/1.02 "Playfair Display",Georgia,serif;letter-spacing:-.035em}.monthly-report-header p{margin:0;color:#252424;font-size:13px}.monthly-report-mark img{display:block;width:92px;height:auto;max-height:46px;object-fit:contain;object-position:right top}
.monthly-report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:22px 0}.monthly-report-summary>div{min-height:104px;padding:15px;border:0;border-radius:12px;color:#252424}.monthly-report-summary .tone-lightblue{background:#D7EAE8}.monthly-report-summary .tone-blue{background:#84A1FF}.monthly-report-summary .tone-lime{background:#EAF261}.monthly-report-summary .tone-orange{background:#FD683E}.monthly-report-summary small{display:block;margin-bottom:13px;color:#252424;font:700 9px/1.25 "Roboto",Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase}.monthly-report-summary strong{color:#252424;font:600 clamp(20px,2.6vw,28px)/1.05 "Playfair Display",Georgia,serif;font-variant-numeric:lining-nums proportional-nums;font-feature-settings:"lnum" 1,"pnum" 1;overflow-wrap:anywhere}
.monthly-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.monthly-report-section{min-width:0;padding:18px;border:1px solid transparent;border-radius:12px;background:#FFFEFB;color:#252424}.monthly-report-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}.monthly-report-section h2{margin:0;font:650 14px/1.3 "Roboto",Arial,sans-serif}.monthly-report-section-head>span{font-size:9px}.monthly-report-bars{display:grid;gap:12px}.monthly-report-bars>div>div{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:0;border:0;font-size:11px}.monthly-report-bars span{min-width:0;overflow-wrap:anywhere}.monthly-report-bars strong{flex:0 0 auto;font-variant-numeric:lining-nums proportional-nums}.monthly-report-bars i{display:block;height:7px;margin-top:6px;border:1px solid #252424;border-radius:999px;background:transparent;overflow:hidden}.monthly-report-bars b{display:block;height:100%;border-radius:inherit;background:#84A1FF}.monthly-report-tasks b{background:#EAF261}.monthly-report-bars p{margin:0;font-size:11px}
.monthly-report-detail{margin-top:12px;padding:0;overflow:hidden}.monthly-report-detail .monthly-report-section-head{padding:18px 18px 0}.monthly-report-detail table{width:100%;table-layout:fixed;border-collapse:collapse;background:#FFFEFB;color:#252424}.monthly-report-detail th,.monthly-report-detail td{min-width:0;padding:11px 10px;border-bottom:1px solid transparent;text-align:left;vertical-align:top;overflow-wrap:anywhere}.monthly-report-detail th{background:#F8F7F4;color:#252424;font:700 9px/1.25 "Roboto",Arial,sans-serif;letter-spacing:.04em;text-transform:uppercase}.monthly-report-detail td{font:500 10px/1.45 "Roboto",Arial,sans-serif}.monthly-report-detail :is(th,td):nth-child(1){width:13%}.monthly-report-detail :is(th,td):nth-child(2){width:16%}.monthly-report-detail :is(th,td):nth-child(3){width:33%}.monthly-report-detail :is(th,td):nth-child(4){width:26%}.monthly-report-detail :is(th,td):nth-child(5){width:12%;text-align:right;white-space:nowrap}.monthly-report-empty{padding:42px;text-align:center;font-size:11px}.monthly-report-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:14px;border-top:1px solid transparent;color:#252424;font-size:9px}.monthly-report-footer strong{color:#252424}

@media(max-width:760px){.report-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.report-dialog-head,.report-dialog-actions{padding:12px}.report-dialog-actions{align-items:stretch;flex-direction:column}.report-dialog-actions>div{display:grid;grid-template-columns:1fr 1fr}.report-dialog-actions .semantic-button{width:100%}#monthlyReportBody{max-height:calc(100dvh - 190px);padding:7px;overflow-x:hidden}.monthly-report{width:100%;padding:18px;border-radius:var(--margi-radius)}.monthly-report-header{gap:12px}.monthly-report-header h1{font-size:30px}.monthly-report-mark img{width:72px}.monthly-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.monthly-report-grid{grid-template-columns:1fr}.monthly-report-detail{overflow:hidden}.monthly-report-detail table{min-width:0;table-layout:fixed}.monthly-report-detail th,.monthly-report-detail td{padding:7px 4px;font-size:8px;line-height:1.35}.monthly-report-detail :is(th,td):nth-child(1){width:15%}.monthly-report-detail :is(th,td):nth-child(2){width:17%}.monthly-report-detail :is(th,td):nth-child(3){width:29%}.monthly-report-detail :is(th,td):nth-child(4){width:25%}.monthly-report-detail :is(th,td):nth-child(5){width:14%;white-space:normal}}

@page{size:A4 portrait;margin:14mm}
@media print{
  html,body{width:auto!important;height:auto!important;background:#FFFEFB!important;color:#252424!important}
  body>*{visibility:hidden!important}
  #monthlyReportModal,#monthlyReportModal *{visibility:visible!important}
  #monthlyReportModal{position:absolute!important;inset:0!important;display:block!important;width:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#FFFEFB!important;box-shadow:none!important;overflow:visible!important}
  .report-dialog-head,.report-dialog-actions{display:none!important}
  #monthlyReportBody{position:static!important;width:100%!important;max-height:none!important;padding:0!important;overflow:visible!important}
  .monthly-report{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#FFFEFB!important;color:#252424!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .monthly-report *{color:#252424!important}
  .monthly-report-header{break-inside:avoid}.monthly-report-header h1{font-size:30px}.monthly-report-mark img{width:82px}
  .monthly-report-summary{gap:7px;margin:17px 0;break-inside:avoid}.monthly-report-summary>div{min-height:78px;padding:11px}.monthly-report-summary strong{font-size:18px}
  .monthly-report-grid{gap:9px}.monthly-report-section{padding:12px;break-inside:avoid}.monthly-report-detail{margin-top:9px;padding:0;break-inside:auto;overflow:visible!important}.monthly-report-detail .monthly-report-section-head{padding:12px 12px 0}
  .monthly-report-detail table{min-width:0!important;table-layout:fixed}.monthly-report-detail thead{display:table-header-group}.monthly-report-detail tr{break-inside:avoid;page-break-inside:avoid}.monthly-report-detail th,.monthly-report-detail td{padding:7px 6px}
  .monthly-report-footer{break-inside:avoid}
}
