.sales-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.sales-toolbar .sales-filters{margin-bottom:0}
.automatic-sales-open{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 14px;border-radius:6px;background:#eef6dc;border-color:#9eb778;color:#2b482d;font-size:13px;flex:none;letter-spacing:0}
.automatic-sales-open svg{width:19px;height:19px;flex:none}
.automatic-sales-alert{background:#ffedba;color:#684e08;border-radius:4px;padding:2px 6px;font-size:11px;font-weight:700}
#automatic-sales-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(560px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid var(--line);border-radius:0;background:#fff;color:#20302a;box-shadow:-8px 0 30px #152b2526;overflow:hidden;letter-spacing:0}
#automatic-sales-dialog[open]{display:flex;flex-direction:column}
#automatic-sales-dialog::backdrop{background:#142b251a;backdrop-filter:none}
#automatic-sales-dialog *{min-width:0;letter-spacing:0}
body:has(#automatic-sales-dialog[open]){overflow:hidden}
.automatic-sales-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:24px;flex:none}
.automatic-sales-header h2{font-size:21px;margin:0;line-height:1.3}
.automatic-sales-header p{margin:8px 0 0;font-size:12px;color:var(--muted);line-height:1.5}
#automatic-sales-dialog .automatic-sales-close{display:grid;place-items:center;width:40px;height:40px;min-width:40px;padding:8px;flex:none;border-radius:6px}
.automatic-sales-close svg{width:20px;height:20px}
.automatic-sales-body{padding:0 24px 24px;flex:1;overflow:auto;overscroll-behavior:contain;min-height:0;touch-action:pan-y}
.automatic-sales-table,.card-payment-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed;white-space:normal}
.automatic-sales-table caption,.card-payment-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.automatic-sales-open[aria-expanded="true"]{background:#d9f197;border-color:#6b9142}
.automatic-sales-table thead th:nth-child(n+3){text-align:right}
.automatic-sales-table tbody th,.card-payment-table tbody th{background:transparent;color:#20302a}
.automatic-sales-table th,.automatic-sales-table td{padding:15px 8px;border-bottom:1px solid var(--line);vertical-align:middle;overflow-wrap:anywhere}
.automatic-sales-table thead th{background:#f5f7f4;font-size:11px;color:var(--muted);font-weight:600;text-align:left}
.automatic-sales-table thead th:nth-child(2),.automatic-sales-table td:nth-child(2){text-align:center}
.automatic-sales-table th:first-child{width:29%}.automatic-sales-table th:nth-child(2){width:18%}
.automatic-sales-table tbody th{text-align:left;font-size:13px;font-weight:600}
.automatic-sales-table .amount{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;font-size:12px}
.automatic-sales-table .amount small{font-size:10px}
.automatic-channel-name{display:flex;align-items:center;gap:7px}.automatic-channel-name svg{width:18px;height:18px;flex:none;color:#46623b}
.automatic-glovo{background:#fff8d8}.automatic-glovo svg{color:#a97f0a}
.automatic-sales-status{color:#47663d;font-size:12px;margin:20px 0 12px;line-height:1.5}
.automatic-sales-sync{font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px;margin-top:16px;line-height:1.6}
.automatic-sales-sync summary{font-weight:600;cursor:pointer}
.automatic-sales-warnings{border-left:3px solid #c08e11;background:#fff7dc;padding:12px;margin-top:20px;font-size:13px;line-height:1.6}
.automatic-sales-warnings h3{font-size:14px;margin:0}.automatic-sales-warnings ul{padding-left:18px;margin-bottom:0;overflow-wrap:anywhere}
.automatic-sales-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:18px 24px;border-top:1px solid var(--line);flex:none;font-size:12px;line-height:1.5;color:var(--muted)}
.automatic-sales-footer strong{font-weight:500;font-variant-numeric:tabular-nums}
.day-section.card-payments-section{margin-top:28px;padding:26px 0 0;border:0;border-top:1px solid #cedcd9;border-radius:0;background:transparent}
.card-payments-section *{letter-spacing:0}
.card-payments-section>.panel-head{margin-bottom:18px}
.card-payments-section h2{display:flex;align-items:center;gap:10px}
.card-payments-section h2 svg{color:#2b6a9a;width:24px;height:24px;flex:none}
.card-payments-section .card-payment-add{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:6px;border-color:#c0d8e9;color:#23618d;background:#f1f8fe;font-size:13px}
.card-payment-add svg{width:18px;height:18px;flex:none}
.card-payment-group{margin-top:18px}.card-payment-group h3{background:#eaf4fc;color:#285b80;margin:0;padding:12px 16px;font-size:16px;border-bottom:1px solid #d9e6f0}
.card-payment-table thead{background:#f7f9fa;color:var(--muted);font-size:12px}
.card-payment-table th,.card-payment-table td{padding:13px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.card-payment-table thead th{font-weight:500}.card-payment-table th:first-child{width:36%}.card-payment-table th:nth-child(2){width:15%}.card-payment-table th:nth-child(3){width:29%}
.card-payment-table tbody th{font-weight:600}.card-payment-table tbody{background:#fff}.card-payment-table small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:5px;line-height:1.5}
.card-payment-table .amount{text-align:right;white-space:nowrap;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}.card-payment-table .amount small{display:inline;font-size:10px;color:inherit}
.card-payment-table .card-payment-warning{color:#9c5513}
.card-payment-empty{margin:0;padding:16px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
@media(max-width:900px){.sales-toolbar{align-items:stretch}.sales-toolbar .sales-filters{flex:1}.automatic-sales-open{margin-left:auto}.card-payments-section>.panel-head{align-items:flex-start}}
@media(max-width:600px){.sales-toolbar{gap:12px}.sales-toolbar .sales-filters{flex-basis:100%}.automatic-sales-open{width:100%;margin-left:0}.card-payments-section>.panel-head{flex-direction:column;gap:12px}.card-payments-section .card-payment-add{width:100%}.card-payment-table thead{display:none}.card-payment-table tbody tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);padding:12px 0;gap:10px}.card-payment-table tbody th,.card-payment-table td{border:0;padding:0 10px;width:auto!important}.card-payment-table tbody th{grid-column:1/-1}.card-payment-table td:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);font-weight:400;margin-bottom:4px}.card-payment-table td.amount{grid-column:1/-1;text-align:right}.card-payment-table td.amount:before{display:inline;margin-right:8px}.card-payment-group h3{padding:12px 10px}}
@media(max-width:480px){.automatic-sales-header{padding:20px 16px}.automatic-sales-header h2{font-size:19px}.automatic-sales-body{padding:0 16px 16px}.automatic-sales-footer{padding:16px}.automatic-sales-table thead{display:none}.automatic-sales-table tbody tr{display:grid;grid-template-columns:1fr 1fr;padding:12px 10px;border-bottom:1px solid var(--line);gap:8px}.automatic-sales-table tbody th,.automatic-sales-table td{border:0;padding:0;width:auto!important}.automatic-sales-table tbody th{grid-column:1/-1}.automatic-sales-table td:nth-child(2){grid-column:1/-1;text-align:left;color:var(--muted);font-size:11px}.automatic-sales-table td:nth-child(2):after{content:' commande(s)'}.automatic-sales-table td.amount{font-size:14px;text-align:left}.automatic-sales-table td.amount:before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;margin-bottom:4px}}
@media(max-height:500px){.automatic-sales-header{padding-top:12px;padding-bottom:12px}.automatic-sales-header h2{font-size:18px}.automatic-sales-footer{padding-top:10px;padding-bottom:10px}}
