/* NexaPOS gestion commerciale, commune au thème clair et sombre. */
.pc-page{max-width:1500px;margin-inline:auto}.pc-page h2{margin-top:30px}.pc-page .section-title{align-items:flex-start}.pc-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.pc-actions .btn,.pc-page .btn,.pc-form .btn,.pc-detail .btn{min-height:44px;white-space:normal}.pc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px}.pc-card{min-width:0;overflow-wrap:anywhere}.pc-card h3{margin-top:0}.pc-card p{line-height:1.6}.pc-meter{display:flex;gap:20px;flex-wrap:wrap;font-size:1.2rem;font-variant-numeric:tabular-nums}.pc-notice{padding:15px 18px;border:1px solid var(--border,#b8bbcd);border-left:4px solid var(--accent,#6a61cc);border-radius:10px;background:var(--surface2,rgba(110,100,180,.08));line-height:1.65}.pc-notice b{display:block}.pc-form{display:grid;gap:14px;max-width:100%}.pc-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}.pc-form .field,.pc-page .field{min-width:0}.pc-form input,.pc-form select,.pc-form textarea,.pc-page input,.pc-page select{min-height:44px;width:100%;box-sizing:border-box}.pc-form input[type=checkbox]{width:20px;min-height:20px}.pc-form .check{min-height:44px;display:flex;align-items:center;gap:10px}.pc-form textarea{resize:vertical}.pc-form-error{color:var(--danger,#b42332);border:1px solid currentColor;border-radius:8px;padding:12px}.pc-form-error[hidden]{display:none}.pc-purchase-line{border:1px solid var(--border,#b8bbcd);padding:12px;border-radius:8px;margin:0 0 12px;min-width:0}.pc-purchase-line legend{padding:0 5px}.pc-detail{overflow-wrap:anywhere}.pc-detail .table-wrap,.pc-page .table-wrap{max-width:100%;overflow:auto}.pc-detail td,.pc-page td{vertical-align:top}.pc-detail .table-wrap:focus-visible,.pc-page .table-wrap:focus-visible{outline:2px solid var(--accent,#6a61cc);outline-offset:3px}.pc-lines{white-space:pre-line}.pc-config{margin-top:26px}.pc-config summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:700}.pc-page .field:has(#pc-stock-search){max-width:560px}.pc-form select{max-width:100%}
.pc-card{gap:8px;justify-content:flex-start}.pc-card h3{margin:0 0 4px}.pc-card p{margin:0}.pc-card .pc-actions{margin:4px 0 0}.pc-card>.pos-tag{align-self:flex-start}.pc-tags{display:flex;gap:6px;flex-wrap:wrap}
.pc-count-line{min-width:0;border:1px solid var(--border,#b8bbcd);border-radius:10px;padding:14px;margin:0 0 12px}.pc-count-line[hidden],#pc-count-recheck-wrap[hidden]{display:none}.pc-count-line legend{font-weight:700;padding:0 6px;overflow-wrap:anywhere}.pc-count-line .pc-fields{align-items:center;grid-template-columns:1fr minmax(160px,1.2fr) 1fr}.pc-count-line p{margin:4px 0;line-height:1.7}.pc-count-delta,.pc-count-theoretical{font-variant-numeric:tabular-nums}.pc-form .pc-count-line input:disabled{opacity:.6}.pc-preview{border-top:1px solid var(--border,#b8bbcd);padding-top:16px;overflow-wrap:anywhere}.pc-preview h4{margin-bottom:8px}.pc-preview .table-wrap{max-width:100%;overflow:auto}.pc-preview .pc-fields{gap:18px}.pc-preview .pc-fields p{margin:8px 0}.pc-preview h3:focus-visible{outline:2px solid var(--accent,#6a61cc);outline-offset:4px}.pc-readiness{padding:12px 16px;border:1px solid var(--border,#b8bbcd);border-radius:10px;background:var(--surface2,rgba(110,100,180,.08));line-height:1.6;margin:16px 0}.pc-readiness h4{margin-top:0}.pc-readiness li+li{margin-top:10px}.pc-readiness-blocked{border-left:4px solid var(--danger,#b42332)}.pc-form .pc-preview .pos-table{min-width:440px}#pc-count-recheck-wrap{padding:12px;border:1px solid var(--border,#b8bbcd);border-radius:8px}
@media(max-width:640px){.pc-page .section-title{display:block}.pc-grid,.pc-fields{grid-template-columns:1fr}.pc-actions>.btn{flex:1 1 150px}.pc-page .pos-table{font-size:.9rem}.pc-page .pos-table th,.pc-page .pos-table td,.pc-detail .pos-table th,.pc-detail .pos-table td{padding:8px}.pc-page .pos-table td,.pc-detail .pos-table td{grid-column:1/-1;display:flex;justify-content:space-between;gap:16px;overflow-wrap:anywhere}.pc-page .pos-table td::before,.pc-detail .pos-table td::before{content:attr(data-label);font-weight:600;flex-shrink:0;color:var(--muted)}.pc-page td[data-label="Action"]::before,.pc-detail td[data-label="Action"]::before{display:none}.pc-notice{padding:12px}.pc-form{gap:12px}.pc-meter{justify-content:space-between}}
@media(max-width:640px){.pc-count-line .pc-fields{grid-template-columns:1fr}.pc-count-line .pc-fields p{display:flex;justify-content:space-between;gap:12px}.pc-count-line .pc-fields p br{display:none}.pc-preview .pc-fields{grid-template-columns:1fr}.pc-readiness{padding:12px}.pc-page td[data-label="Action"]>.pc-actions{width:100%;margin:0}.pc-page td[data-label="Suggestion"]{flex-wrap:wrap}}
.sheet:has(#pc-count-lines),.sheet:has(#pc-invoice-preview){max-width:760px}.pc-preview .table-wrap:focus-visible{outline:2px solid var(--accent,#6a61cc);outline-offset:3px}
@media(max-width:720px){.pc-form .pc-preview .pos-table{min-width:0}.pc-preview .pos-table tr{display:block}.pc-preview .pos-table td{display:flex;justify-content:space-between;gap:16px;padding:8px;overflow-wrap:anywhere}.pc-preview .pos-table td::before{content:attr(data-label);font-weight:600;flex-shrink:0;color:var(--muted)}}
