.cost-workspace{display:grid;gap:16px;max-width:1250px;margin:auto;color:var(--text,#25243c);direction:rtl}.cost-workspace h1{font-size:22px;margin:0 0 6px}.cost-workspace header>p,.cost-help{color:var(--muted,#738096);font-size:12px;line-height:1.9;margin:0}.cost-card{background:var(--card,#fff);border:1px solid var(--line,#e3e7f0);border-radius:16px;padding:20px;min-width:0;box-shadow:0 4px 16px #28346104}
.cost-workspace label{display:grid;gap:7px;font-size:12px;color:var(--muted,#738096);min-width:0}.cost-workspace input,.cost-workspace select{box-sizing:border-box;width:100%;height:42px;border:1px solid var(--line,#dfe3ee);border-radius:9px;background:var(--card,#fff);color:var(--text,#25243c);padding:8px 12px;font:inherit}.cost-workspace input[readonly]{background:var(--bg,#f7f8fc);color:var(--muted,#738096)}.cost-workspace button,.cost-review button{border:1px solid var(--line,#dfe3ee);border-radius:9px;background:var(--card,#fff);color:inherit;padding:10px 14px;font:inherit;font-size:12px;cursor:pointer;min-height:40px}.cost-workspace button.cost-primary,.cost-review button.cost-primary{background:var(--primary,#3214dc);color:white;border-color:transparent}.cost-workspace button:disabled,.cost-review button:disabled{opacity:.5;cursor:not-allowed}.cost-workspace :focus-visible,.cost-review :focus-visible{outline:2px solid var(--primary,#3214dc);outline-offset:2px}.cost-workspace [hidden]{display:none!important}
.cost-scan{display:flex;gap:12px;align-items:end}.cost-scan label{flex:1}.cost-scan button{min-height:42px}.cost-product{display:grid;grid-template-columns:minmax(200px,1fr) 2fr;gap:22px;align-items:center}.cost-product h2{font-size:18px;line-height:1.8;margin:6px 0}.cost-product small{color:var(--muted,#738096)}.cost-product bdi{display:inline-block;background:var(--bg,#f5f6fb);padding:4px 10px;border-radius:6px}.cost-product dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}.cost-product dt{font-size:11px;color:var(--muted,#738096);margin-bottom:5px}.cost-product dd{font-size:13px;font-weight:600;margin:0;overflow-wrap:anywhere}
.cost-types{display:flex;gap:8px;margin-bottom:12px}.cost-types button{flex:1;max-width:180px}.cost-types button[aria-pressed=true]{background:var(--primary,#3214dc);color:white;border-color:transparent}.cost-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.cost-notes{grid-column:span 2}.cost-row{border:1px solid var(--line,#e3e7f0);border-radius:12px;padding:16px;margin:16px 0;min-width:0}.cost-row legend{font-size:12px;padding:0 8px;color:var(--muted,#738096)}.cost-row>[data-remove]{margin-top:10px;color:#ad3146;background:transparent;min-height:30px;padding:5px 10px}.cost-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line,#e3e7f0);font-size:13px}.cost-workspace [data-accessory]{margin-top:18px}.cost-workspace output{display:block;margin:10px 0;font-size:12px}.cost-workspace [data-add]{color:var(--primary,#3214dc);background:#eeebff}
.cost-success,.cost-error{border-radius:10px;padding:13px 16px;line-height:1.9;font-size:13px;margin:0}.cost-success{background:#e4f5eb;color:#19734c}.cost-error{background:#fff0f1;color:#ad3146}.cost-history summary{cursor:pointer;font-size:13px;font-weight:600}.cost-history-scroll{overflow:auto;margin-top:14px}.cost-history table{width:100%;text-align:right;border-collapse:collapse;font-size:12px}.cost-history th,.cost-history td{padding:10px;border-bottom:1px solid var(--line,#e3e7f0)}.cost-history th{color:var(--muted,#738096);font-size:11px}.cost-empty,.cost-history>p{padding:12px;color:var(--muted,#738096);font-size:12px}
.cost-review{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:85vh;overflow:auto;border:1px solid var(--line,#e3e7f0);border-radius:16px;padding:24px;background:var(--card,#fff);color:var(--text,#25243c);direction:rtl;font-family:inherit}.cost-review::backdrop{background:#18223865}.cost-review h2{font-size:20px;margin:0 0 12px}.cost-review p{font-size:13px;line-height:1.9}.cost-review ul{list-style:none;padding:0}.cost-review li{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line,#e3e7f0);padding:10px 0;font-size:12px}.cost-review footer{display:flex;justify-content:flex-end;gap:10px}.cost-review [role=alert]{color:#ad3146}
@media(max-width:1000px){.cost-product{grid-template-columns:1fr}.cost-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.cost-card{padding:14px}.cost-scan,.cost-footer{flex-direction:column;align-items:stretch}.cost-product dl{grid-template-columns:repeat(2,minmax(0,1fr))}.cost-fields{grid-template-columns:1fr}.cost-notes{grid-column:auto}.cost-workspace h1{font-size:19px}}
