.sales-reports-r2{display:grid;gap:16px;min-width:0;width:100%;color:#18392d;direction:rtl}
.sales-reports-r2 button,.sales-reports-r2 input,.sales-reports-r2 select{font:inherit}
.sales-reports-r2 button{cursor:pointer}
.sales-reports-r2 button:focus-visible,.sales-reports-r2 a:focus-visible,.sales-reports-r2 input:focus-visible,.sales-reports-r2 select:focus-visible,.sales-reports-r2 summary:focus-visible{outline:3px solid #e6ad48;outline-offset:2px}
.sales-reports-r2__hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border:1px solid #d9e5dc;border-inline-start:5px solid #1f7655;border-radius:14px;background:linear-gradient(110deg,#fff 70%,#eff7f0);min-width:0}
.sales-reports-r2__hero>div{min-width:0}
.sales-reports-r2__hero small,.sales-reports-r2__section-head small{display:block;color:#638074;font-size:.78rem;font-weight:700}
.sales-reports-r2__hero h1{margin:5px 0;color:#174b38;font-size:1.55rem}
.sales-reports-r2__hero p{margin:0;color:#637b70;line-height:1.8}
.sales-reports-r2__invoices,.sales-reports-r2__pagination button,.sales-reports-r2__details button,.sales-reports-r2__error button{border:1px solid #1f7655;border-radius:9px;padding:10px 14px;background:#1f7655;color:#fff;font-weight:700;white-space:nowrap}
.sales-reports-r2 .sales-report-filters-v224{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:12px;margin:0;padding:16px;border:1px solid #dce7df;border-radius:12px;background:#fff;min-width:0}
.sales-reports-r2 .sales-report-filters-v224>label{display:grid;gap:6px;min-width:0;color:#405e50;font-size:.82rem;font-weight:700}
.sales-reports-r2 .sales-report-filters-v224 input,.sales-reports-r2 .sales-report-filters-v224 select{box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #cddbd1;border-radius:8px;background:#fff;color:#18392d}
.sales-reports-r2 .sales-report-filter-actions-v224{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1}
.sales-reports-r2 .sales-report-filter-actions-v224 button{min-height:40px;border:1px solid #c8d9cd;border-radius:8px;padding:8px 12px;background:#fff;color:#214c38;font-weight:700}
.sales-reports-r2 .sales-report-filter-actions-v224 button.primary{border-color:#1f7655;background:#1f7655;color:#fff}
.sales-reports-r2__metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;min-width:0}
.sales-reports-r2__metric{display:grid;gap:7px;min-width:0;min-height:102px;padding:14px;border:1px solid #d7e4da;border-radius:12px;background:#fff;text-align:right;color:#234838;transition:border-color .15s,transform .15s}
.sales-reports-r2__metric:hover{border-color:#78a58a;transform:translateY(-1px)}
.sales-reports-r2__metric span,.sales-reports-r2__metric small{color:#6b8276;font-size:.78rem}
.sales-reports-r2__metric b{overflow-wrap:anywhere;color:#174b38;font-size:1.04rem}
.sales-reports-r2__breakdowns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.sales-reports-r2__breakdowns article{display:grid;gap:10px;min-width:0;padding:16px;border:1px solid #dce7df;border-radius:12px;background:#fff}
.sales-reports-r2__breakdowns article>small{color:#527361;font-weight:800}
.sales-reports-r2__breakdowns article>div,.sales-reports-r2__breakdowns li{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;padding:7px 0;border-top:1px solid #eef2ee}
.sales-reports-r2__breakdowns ul{list-style:none;margin:0;padding:0}
.sales-reports-r2__breakdowns li{flex-wrap:wrap}
.sales-reports-r2__breakdowns b{overflow-wrap:anywhere;color:#214c38}
.sales-reports-r2__context{display:grid;gap:5px;padding:12px 15px;border-inline-start:3px solid #dca542;border-radius:8px;background:#fffaf0;color:#344e40}
.sales-reports-r2__context span{color:#718176;font-size:.82rem;line-height:1.7}
.sales-reports-r2__section{display:grid;gap:12px;min-width:0;padding:16px;border:1px solid #dce7df;border-radius:12px;background:#fff}
.sales-reports-r2__section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0}
.sales-reports-r2__section-head h2{margin:4px 0 0;color:#174b38;font-size:1.1rem}
.sales-reports-r2__count{display:grid;place-items:center;min-width:42px;min-height:34px;padding:4px 10px;border-radius:20px;background:#edf5ef;color:#1f7655;font-weight:800}
.sales-reports-r2__table-wrap{max-width:100%;min-width:0;overflow-x:auto;border:1px solid #e0e9e2;border-radius:9px;overscroll-behavior-inline:contain}
.sales-reports-r2__table,.sales-reports-r2__detail-table{width:100%;min-width:1120px;border-collapse:separate;border-spacing:0;text-align:right}
.sales-reports-r2__table th,.sales-reports-r2__detail-table th{position:sticky;top:0;padding:11px 10px;background:#f0f6f1;color:#355b47;font-size:.78rem;white-space:nowrap}
.sales-reports-r2__table td,.sales-reports-r2__detail-table td{max-width:260px;padding:10px;border-top:1px solid #edf1ed;color:#385447;vertical-align:top;overflow-wrap:anywhere}
.sales-reports-r2__table tbody tr:hover,.sales-reports-r2__detail-table tbody tr:hover{background:#f6faf7}
.sales-reports-r2__table a{color:#176447;font-weight:800;text-decoration-thickness:1px;text-underline-offset:3px}
.sales-reports-r2__empty{display:grid;gap:6px;padding:26px;border:1px dashed #cddbd1;border-radius:10px;background:#f8fbf8;text-align:center;color:#527361}
.sales-reports-r2__empty b{color:#214c38}
.sales-reports-r2__pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;color:#678174;font-size:.83rem}
.sales-reports-r2__pagination>div{display:flex;gap:8px}
.sales-reports-r2__pagination button:disabled{cursor:not-allowed;border-color:#d7e2d9;background:#edf2ee;color:#819286}
.sales-reports-r2__details{display:grid;gap:10px;min-width:0}
.sales-reports-r2__details details{min-width:0;border:1px solid #dce7df;border-radius:12px;background:#fff}
.sales-reports-r2__details summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;cursor:pointer;list-style:none}
.sales-reports-r2__details summary::-webkit-details-marker{display:none}
.sales-reports-r2__details summary span{display:grid;gap:4px}
.sales-reports-r2__details summary small,.sales-reports-r2__details summary i{color:#718579;font-size:.8rem;font-style:normal}
.sales-reports-r2__details .sales-reports-r2__table-wrap{margin:0 12px 12px}
.sales-reports-r2__details button{padding:6px 9px;font-size:.8rem}
.sales-reports-r2__drill{min-width:0;max-width:100%;overflow-x:auto}
.sales-reports-r2__loading,.sales-reports-r2__error{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;min-width:0;padding:20px;border:1px solid #dce7df;border-radius:12px;background:#fff}
.sales-reports-r2__loading>div:nth-child(2){display:grid;gap:5px}
.sales-reports-r2__loading small,.sales-reports-r2__error p{color:#728579}
.sales-reports-r2__spinner{width:24px;height:24px;border:3px solid #d8e7dc;border-top-color:#1f7655;border-radius:50%;animation:sales-reports-r2-spin .8s linear infinite}
.sales-reports-r2__skeleton{display:flex;grid-column:1/-1;gap:8px}
.sales-reports-r2__skeleton i{height:44px;flex:1;border-radius:8px;background:linear-gradient(90deg,#f2f6f2,#e7eee8,#f2f6f2);background-size:200% 100%;animation:sales-reports-r2-shimmer 1.2s ease-in-out infinite}
.sales-reports-r2__error{grid-template-columns:minmax(0,1fr) auto;border-color:#ecd3cc;background:#fff8f5}
.sales-reports-r2__error p{grid-column:1;margin:0}
.sales-reports-r2__error button{grid-column:2;grid-row:1/3;border-color:#a75340;background:#a75340}
@keyframes sales-reports-r2-spin{to{transform:rotate(360deg)}}
@keyframes sales-reports-r2-shimmer{to{background-position:-200% 0}}
@media(max-width:1180px){.sales-reports-r2 .sales-report-filters-v224{grid-template-columns:repeat(3,minmax(0,1fr))}.sales-reports-r2__metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.sales-reports-r2{gap:12px}.sales-reports-r2__hero{align-items:stretch;flex-direction:column;padding:16px}.sales-reports-r2__invoices{align-self:flex-start}.sales-reports-r2 .sales-report-filters-v224{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px}.sales-reports-r2__metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sales-reports-r2__metric{min-height:88px;padding:11px}.sales-reports-r2__breakdowns{grid-template-columns:minmax(0,1fr)}.sales-reports-r2__section{padding:11px}.sales-reports-r2__pagination{align-items:flex-start;flex-direction:column}.sales-reports-r2__error{grid-template-columns:minmax(0,1fr)}.sales-reports-r2__error button{grid-column:1;grid-row:auto;justify-self:start}}
