
.dsm-public-report{max-width:1250px;margin:35px auto;padding:0 18px;font-family:inherit;color:#1d2327}
.dsm-public-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.dsm-public-head h1{margin:0 0 6px;font-size:30px;line-height:1.2}
.dsm-public-head p{margin:0;color:#646970;font-size:14px}
.dsm-public-actions{display:flex;gap:8px;align-items:center}
.dsm-print-button,.dsm-public-admin-link{display:inline-block;padding:10px 15px;border:1px solid #2271b1;border-radius:5px;text-decoration:none;background:#2271b1;color:#fff;cursor:pointer;font-weight:600}
.dsm-print-button{background:#fff;color:#2271b1}
.dsm-public-filter{display:flex;align-items:center;gap:9px;padding:14px 16px;background:#fff;border:1px solid #c3c4c7;border-radius:7px;margin-bottom:18px}
.dsm-public-filter label{font-weight:600}
.dsm-public-month-picker{display:flex;align-items:center;gap:5px;height:38px;padding:0 9px;border:1px solid #8c8f94;border-radius:5px;background:#fff}
.dsm-public-month-picker input{height:34px;border:0;background:transparent;padding:0;box-shadow:none}
.dsm-calendar-dot{width:20px;height:20px;color:#2271b1;display:flex}
.dsm-calendar-dot .dsm-svg-icon{width:18px;height:18px}
.dsm-public-filter button{height:38px;padding:0 16px;border:1px solid #2271b1;border-radius:5px;background:#2271b1;color:#fff;cursor:pointer;font-weight:600}

.dsm-public-cards{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:12px;margin-bottom:22px}
.dsm-public-cards>div{background:#fff;border:1px solid #c3c4c7;border-radius:8px;padding:14px 15px;box-shadow:0 2px 5px rgba(0,0,0,.04)}
.dsm-public-card-top{display:flex;align-items:center;gap:8px;color:#646970;font-size:11px;text-transform:uppercase;letter-spacing:.04em;font-weight:600}
.dsm-public-icon{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:7px;background:#f0f6fc;color:#2271b1}
.dsm-svg-icon{width:17px;height:17px}
.dsm-public-cards strong{display:inline-block;margin-top:8px;font-size:26px;line-height:1;font-variant-numeric:tabular-nums}
.dsm-public-cards .returned strong{color:#d63638}
.dsm-public-cards .delivered strong{color:#008a20}
.dsm-public-cards .rate{border-color:#2271b1;background:#f0f6fc}
.dsm-public-cards .rate strong{color:#2271b1}
.dsm-public-unit{font-size:17px;font-weight:700;margin-left:2px}
.dsm-public-trend{font-size:11px;font-weight:700;margin-top:8px}
.dsm-public-trend small{color:#646970;font-weight:500}
.dsm-public-trend.trend-good{color:#008a20}
.dsm-public-trend.trend-good:before{content:"▲";margin-right:3px}
.dsm-public-trend.trend-bad{color:#d63638}
.dsm-public-trend.trend-bad:before{content:"▼";margin-right:3px}
.dsm-public-trend.trend-neutral{color:#646970}
.dsm-public-progress{height:6px;background:#e7e9ec;border-radius:999px;overflow:hidden;margin-top:10px}
.dsm-public-progress span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#d63638 0 59%,#FFFF00 60% 79%,#00a32a 80% 100%);transition:width .7s ease}

.dsm-public-chart-wrap{background:#fff;border:1px solid #c3c4c7;border-radius:8px;overflow:hidden;margin-bottom:18px}
.dsm-public-chart-canvas{padding:18px}
.dsm-public-table-wrap{background:#fff;border:1px solid #c3c4c7;border-radius:8px;overflow:hidden}
.dsm-public-table-title{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:2px solid #4d5156}
.dsm-public-table-title h2{margin:0;font-size:18px}
.dsm-public-table-title span{color:#646970;font-size:12px}
.dsm-public-table-scroll{max-height:680px;overflow:auto}
.dsm-public-table{width:100%;min-width:1000px;border-collapse:collapse;border-spacing:0;border:1px solid #4d5156}
.dsm-public-table th,.dsm-public-table td{padding:10px 11px;border:1px solid #8c8f94;text-align:left;white-space:nowrap}
.dsm-public-table thead th{position:sticky;top:0;z-index:5;background:#f3f4f5;font-weight:700;border-top:2px solid #4d5156;border-bottom:2px solid #4d5156}
.dsm-public-table tbody tr:nth-child(even) td{background:#fafafa}
.dsm-public-table tbody tr:hover td{background:#eef6ff}
.dsm-public-table .returned{background:#fff8f8}
.dsm-public-table .delivered{background:#f7fcf8}
.dsm-public-table td.returned{color:#b32d2e;font-weight:600}
.dsm-public-table td.delivered{color:#087b25;font-weight:600}
.dsm-public-table .rate-cell{text-align:center;font-weight:700}
.dsm-public-table .rate-cell.red{background:#FF0000!important;color:#fff}
.dsm-public-table .rate-cell.yellow{background:#FFFF00!important;color:#222}
.dsm-public-table .rate-cell.green{background:#00B050!important;color:#fff}
.dsm-public-table tfoot th,.dsm-public-table tfoot td{background:#eaf2fb;font-weight:700;border-top:3px solid #4d5156;border-bottom:3px solid #4d5156}
.dsm-public-table tfoot .rate-cell.red{background:#FF0000!important;color:#fff}
.dsm-public-table tfoot .rate-cell.yellow{background:#FFFF00!important}
.dsm-public-table tfoot .rate-cell.green{background:#00B050!important;color:#fff}
.dsm-public-table .empty{text-align:center;padding:45px;color:#646970}
.dsm-empty-svg{display:block;margin:0 auto 9px;color:#2271b1}
.dsm-empty-svg .dsm-svg-icon{width:44px;height:44px;opacity:.45}
.dsm-public-table .empty strong,.dsm-public-table .empty small{display:block}
.dsm-public-table .empty strong{font-size:15px;color:#1d2327}
.dsm-public-table .empty small{margin-top:5px}
.dsm-public-footer{margin-top:18px;text-align:center;color:#646970;font-size:13px}

.dsm-public-table th.amount,.dsm-public-table td.amount{background:#f5f9ff;color:#1d4ed8;font-weight:700;text-align:right}
.dsm-public-table td.amount.is-manual{background:#fff8e6;color:#b45309}
.dsm-public-table tfoot th.amount{background:#eaf2fb}

@media(max-width:900px){
 .dsm-public-head{align-items:flex-start;flex-direction:column}
 .dsm-public-cards{grid-template-columns:repeat(2,minmax(130px,1fr))}
 .dsm-public-actions{width:100%}
}
@media(max-width:600px){
 .dsm-public-filter{align-items:stretch;flex-wrap:wrap}
 .dsm-public-month-picker{flex:1;min-width:170px}
 .dsm-public-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media print{
	@page{size:A4 landscape;margin:8mm}
	html,body{width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
	*{-webkit-print-color-adjust:exact;print-color-adjust:exact}
	body{background:#fff!important}
	#wpadminbar,.site-header,.site-footer,header,footer,nav,.dsm-public-actions,.dsm-public-filter{display:none!important}
	.dsm-public-report{max-width:none;margin:0;padding:0;color:#000}
	.dsm-public-head{margin-bottom:10px}
	.dsm-public-head h1{font-size:22px}
	.dsm-public-cards{grid-template-columns:repeat(6,1fr);gap:6px}
	.dsm-public-cards>div{box-shadow:none;padding:8px;border:1px solid #555}
	.dsm-public-chart-wrap{display:none}
	.dsm-public-report{width:100%!important;overflow:visible!important}
	.dsm-public-table-wrap{border:1px solid #000;overflow:visible!important}
	.dsm-public-table-scroll{max-height:none;overflow:visible}
	.dsm-public-table{width:100%!important;min-width:0!important;table-layout:auto;font-size:10px}
	.dsm-public-table th,.dsm-public-table td{padding:4px 5px;border:1px solid #555;white-space:normal;word-break:break-word}
	.dsm-public-table thead{display:table-header-group}
	.dsm-public-table tr{page-break-inside:avoid;break-inside:avoid}
	.dsm-public-table .amount{white-space:nowrap}
	.dsm-public-table thead th{position:static}
	.dsm-public-table .rate-cell.red{background:#FF0000!important;color:#fff!important}
	.dsm-public-table .rate-cell.yellow{background:#FFFF00!important;color:#000!important}
	.dsm-public-table .rate-cell.green{background:#00B050!important;color:#fff!important}
	.dsm-public-footer{margin-top:8px}
}
