/* AN1: dense ERP rows, three clear decisions, theme tokens only. */
.an-workspace{max-width:1200px;margin:auto;display:grid;gap:12px;color:var(--ink)}
.an-heading{display:flex;gap:12px;align-items:center;justify-content:space-between}
.an-heading h1{font-size:22px;font-weight:600;margin:4px 0}
.an-heading .mut,.an-section .mut{font-size:12px}
.an-search{display:flex;align-items:end;gap:8px;max-width:760px}
.an-query{display:grid;gap:4px;flex:1;min-width:0;font-size:12px}
.an-search input{width:100%}
.an-section{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px;margin:12px 0;min-width:0}
.an-section h2{font-size:16px;font-weight:600;margin:0 0 4px;display:flex;align-items:center;gap:8px}
.an-section h2 .an-count{font-size:12px;padding:1px 6px;border-radius:8px;background:var(--acc-bg);color:var(--acc)}
.an-table{border-collapse:collapse;width:100%;table-layout:fixed;margin-top:8px;font-size:12px;font-variant-numeric:tabular-nums}
.an-table th,.an-table td{padding:4px 6px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.an-table th{background:var(--surface-2);font-weight:600;color:var(--mut)}
.an-table tbody tr:nth-child(even){background:transparent}
.an-table tbody tr:hover{background:var(--row-hover)}
.an-table th:first-child,.an-table td:first-child{width:24px;text-align:center}
.an-table .an-center{text-align:center}.an-table .an-money{text-align:right}
.an-table .an-action{width:145px;overflow:visible;text-align:right}
.an-name{font-weight:600;color:var(--ink)}
.an-badge{display:inline-block;border-radius:8px;padding:1px 6px;font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.an-full{background:var(--ok-bg);color:var(--ok)}
.an-diff{background:var(--acc-bg);color:var(--acc)}
.an-unverified{border:1px solid var(--line);color:var(--mut)}
.an-table .btn{font-size:11px;padding:3px 6px;white-space:nowrap}
.an-source{color:var(--acc)}
.an-import-result{white-space:pre-wrap;font-size:13px}
.an-review-choices{display:flex;gap:8px;flex-wrap:wrap}
.an-copy{width:100%;min-height:100px}
.an-upper-search{display:flex;align-items:center;gap:6px;margin:0 0 8px auto;max-width:420px;font-size:12px}
.an-upper-search input{min-width:0;width:100%;padding:5px 8px}
.an-upper-search button{white-space:nowrap}
@media(max-width:700px){
 .an-heading{align-items:start;flex-wrap:wrap}.an-heading h1{font-size:20px}
 .an-workspace{gap:8px}.an-section{padding:8px}.an-search button,.an-heading button{min-height:40px}
 .an-table,.an-table tbody{display:block}
 .an-table thead{display:none}.an-table tr{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;padding:8px 0;border-bottom:1px solid var(--line)}
 .an-table td{display:block;padding:2px 0;border:0;white-space:normal;overflow-wrap:anywhere;text-align:left!important}
 .an-table td:before{content:attr(data-label);display:block;font-size:11px;font-weight:400;color:var(--mut)}
 .an-table td:first-child{display:none}.an-table td.an-name{grid-column:1/-1}
 .an-table .an-action{width:auto;grid-column:1/-1}.an-table .an-action:before{display:none}
 .an-table .btn{min-height:40px;font-size:12px}
 .an-upper-search{max-width:none}.an-upper-search button,.an-upper-search input{min-height:40px}
}

.an-table.an-unverified{border:0}.an-table.an-unverified th:last-child{width:270px}.an-table .an-review-choices{display:table-cell;width:270px}.an-review-choices .btn+.btn{margin-left:4px}.an-confirmed .an-action{width:140px}.an-confirmed th:nth-child(5){width:95px}.an-confirmed th:nth-child(6){width:65px}.an-confirmed th:nth-child(2){width:180px}.an-confirmed th:nth-child(9){width:130px}.mx-analog{flex-shrink:0}
@media(max-width:700px){.an-table .an-review-choices{display:flex;width:auto;flex-wrap:wrap;gap:6px}.an-review-choices .btn+.btn{margin-left:0}.an-table.an-unverified{color:var(--ink)}.mx-analog{min-height:40px;min-width:40px}}

.an-name a{color:var(--ink);text-decoration:none;font-weight:600}.an-name a:hover{text-decoration:underline;color:var(--acc)}
@media(max-width:700px){.an-search{display:grid;grid-template-columns:minmax(0,1fr) auto}.an-search button{width:auto;min-width:72px}.an-query{min-width:0}.an-search input{min-width:0}}

#an-help{font-size:12px;color:var(--mut)}#an-help summary{cursor:pointer}#an-help div{max-width:760px;margin-top:8px}
@media(max-width:700px){#an-help summary{min-height:40px;display:flex;align-items:center}}

@media(max-width:700px){.an-table td.an-empty{display:none}.an-table td.an-name:before{display:none}.an-table td[data-label="Проверил"]{grid-column:1/-1}}

@media(max-width:700px){.an-workspace a:not(.btn){min-height:40px;display:inline-flex;align-items:center}#an-help summary{display:list-item;padding:10px 0;box-sizing:border-box}}
