/* Archive only; original manager button/dialog/table tokens. */
.product-history-overview{display:flex;justify-content:space-between;gap:20px;padding:18px;border:1px solid var(--paper-line);border-radius:12px;margin-bottom:18px;background:var(--paper)}
.product-history-overview strong,.product-history-overview small{display:block}.product-history-overview small{color:var(--text-mid);margin:5px 0}
.product-history-notice{padding:12px 14px;background:var(--paper-dim);border-radius:8px;font-size:var(--fs-secondary);line-height:1.6;color:var(--text-mid)}
.product-history-event{border-left:3px solid var(--amber);padding:14px 18px;margin:14px 0;background:var(--paper);border-radius:0 10px 10px 0}
.product-history-event header{display:flex;justify-content:space-between;gap:12px}.product-history-event time{font-size:var(--fs-secondary);color:var(--text-mid)}
.product-history-event p{font-size:var(--fs-secondary);line-height:1.6;margin:9px 0}.product-history-actor{font-weight:650}.product-history-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:var(--fs-secondary)}
.product-history-event summary{font-size:var(--fs-secondary);font-weight:600;cursor:pointer}.product-history-event td{overflow-wrap:anywhere}.product-history-pagination{display:flex;gap:14px;align-items:center;justify-content:flex-end;margin-top:20px}
@media(max-width:600px){.product-history-overview,.product-history-event header{flex-direction:column}.product-history-pagination{justify-content:space-between;gap:6px}}
.product-trash-page .btn-danger{background:var(--red-bg);color:var(--red)}
.product-trash-page .btn-danger:hover{background:var(--danger-soft)}
.product-trash-page td:last-child .btn{margin:3px 0}
.warehouse-document .archive-row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
/* Number, date and partner share a row and wrap by the space they get (zoom and side menu included); the actions stay together. */
.warehouse-document summary{display:flex;flex-wrap:wrap;align-items:center;column-gap:14px;row-gap:8px}.warehouse-document summary>span{flex:1 1 150px;min-width:0;overflow-wrap:anywhere}.warehouse-document summary>.archive-row-actions{flex:0 1 auto;margin-left:auto}
.warehouse-document .archive-status{display:inline-block;margin-left:8px;font-size:var(--fs-secondary);color:var(--text-dim)}
.warehouse-document[data-cancelled="true"] .archive-status{color:var(--red)}
.archive-dialog .archive-line-input{width:100px;max-width:100%;padding:8px;border:1px solid var(--paper-line);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit}
.archive-dialog .archive-add-row{display:flex;gap:8px;align-items:center;margin:14px 0}
.archive-dialog .archive-add-row select{flex:1;min-width:0;padding:9px;border:1px solid var(--paper-line);border-radius:var(--radius-sm);font:inherit}
.archive-dialog .archive-history-entry{padding:14px 0;border-bottom:1px solid var(--paper-line)}
.archive-dialog .archive-history-entry summary{cursor:pointer;font-weight:400;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}.archive-dialog .archive-history-entry summary b{font-weight:650}.archive-dialog .archive-history-entry summary span{color:var(--text-muted);font-size:var(--fs-secondary)}
.archive-dialog .archive-history-head{margin:0 0 6px;color:var(--text-muted);font-size:var(--fs-secondary)}
.archive-dialog .archive-history-reason{margin:10px 0 0;color:var(--text-2)}
.archive-dialog .archive-history-changes{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}
.archive-dialog .archive-history-changes li{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;padding:8px 12px;border-radius:8px;background:var(--surface-2)}
.archive-dialog .archive-history-changes li span{flex:1 1 180px;min-width:0;color:var(--text-2)}.archive-dialog .archive-history-changes s{color:var(--text-muted)}.archive-dialog .archive-history-changes b{font-weight:650}
.archive-dialog .archive-history-changes b::before{content:'→ ';font-weight:400;color:var(--text-muted)}
.archive-dialog .archive-history-stock{margin:10px 0 0;font-size:var(--fs-secondary);color:var(--text-2)}
.archive-dialog .archive-history-full{margin-top:10px}.archive-dialog .archive-history-full>summary{font-size:var(--fs-secondary);color:var(--accent-text)}
.archive-dialog .archive-history-meta{display:flex;flex-wrap:wrap;gap:4px 18px;margin:8px 0;font-size:var(--fs-secondary);color:var(--text-muted)}.archive-dialog .archive-history-meta b{font-weight:600;color:var(--text)}
.archive-dialog .archive-history-entry td small{display:block;color:var(--text-muted);font-size:var(--fs-secondary)}
.archive-dialog .archive-history-entry h4{margin:16px 0 8px}
@media(max-width:700px){.archive-dialog .archive-add-row{flex-wrap:wrap}.archive-dialog .archive-add-row select{flex-basis:100%}}
.product-import-entry{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:0 0 14px}
.product-import-rules{margin:8px 0 14px;padding-left:20px}
.product-import-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.product-import-counts div{display:flex;flex-direction:column;padding:10px 12px;border:1px solid var(--paper-line);border-radius:var(--radius-sm);background:var(--surface)}
.product-import-counts strong{font-size:1.5rem}
.product-import-hint{margin:8px 0;padding:8px 12px;border-left:3px solid var(--paper-line)}
.product-import-group{margin:12px 0}.product-import-group summary{cursor:pointer;font-weight:650;padding:6px 0}
.product-import-reason{padding:8px 0;border-bottom:1px solid var(--paper-line)}.product-import-reason small,.product-import-note{display:block;color:var(--ink-muted,inherit)}
@media(max-width:700px){.product-import-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.product-import-loaded{justify-content:space-between;padding:12px 14px;border:1px solid var(--paper-line);border-radius:var(--radius-sm);background:var(--surface)}
.product-import-loaded small{display:block;margin-top:4px}.product-import-actions{display:flex;flex-wrap:wrap;gap:8px}
.product-import-warning{border-left-color:var(--danger,#b42318);font-weight:600}
.product-import-agree{display:flex;gap:10px;align-items:center;margin:12px 0;font-weight:600;cursor:pointer}.product-import-agree input{width:18px;height:18px;flex:none}
/* Excel load into a warehouse with history (Windows centre): keep or erase, after the PIN (owner, 01.11.2026). */
.product-import-history{margin:0 0 14px}
.manager-dialog .product-import-option{display:flex;font-size:var(--fs-body,1rem);font-weight:500;color:inherit;gap:10px;align-items:flex-start;margin:8px 0;padding:10px 12px;border:1px solid var(--paper-line);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer}
.product-import-option input{width:18px;height:18px;flex:none;margin-top:3px}.product-import-option strong{display:block;font-weight:700}.manager-dialog .product-import-option small{display:block;margin-top:3px;font-size:var(--fs-secondary,.9rem);line-height:1.4;color:var(--ink-muted,inherit)}
.product-import-option:has(input:checked){border-color:var(--danger,#b42318)}
.product-import-option.is-disabled{cursor:not-allowed}.product-import-option.is-disabled strong{color:var(--ink-muted,inherit)}.manager-dialog .product-import-option .product-import-blocked{color:var(--danger,#b42318);font-weight:650}
.product-import-word{max-width:320px}

/* Owner 08.11.2026 — „Архив“ Б: kind chips, period, worker, search; days; one row per document with its kind colour,
   who, the change in the stock and the value; the opened document in labelled fields. */
.arc-panel{--arc-del:#1E7A3D;--arc-del-bg:#E6F4EA;--arc-iss:#B4461A;--arc-iss-bg:#FDEBE3;--arc-inv:#5B3FB0;--arc-inv-bg:#EFE9FB}
.arc-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.arc-search{flex:1 1 320px;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid var(--paper-line);border-radius:var(--radius-md,10px);background:var(--surface-2);color:var(--text-muted)}
.arc-search svg{width:18px;height:18px;flex:0 0 auto}.arc-search input{flex:1;min-width:0;border:0;background:transparent;font:inherit;color:var(--text);outline:none;min-height:42px}
.arc-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft,rgba(194,86,12,.15))}
.arc-bar select{min-height:44px;flex:0 1 220px}
.arc-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.arc-chip{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 14px;border:1px solid var(--paper-line);border-radius:999px;background:var(--surface);color:var(--text);font:inherit;font-weight:650;cursor:pointer}
.arc-chip em{font-style:normal;font-weight:700;color:var(--text-muted)}
.arc-chip.is-on{background:var(--ink,#1C1F2A);border-color:var(--ink,#1C1F2A);color:var(--surface)}.arc-chip.is-on em{color:var(--surface);opacity:.75}
.arc-chip:focus-visible{outline:3px solid var(--info-solid);outline-offset:2px}
.arc-dot{width:9px;height:9px;border-radius:50%;display:inline-block}
.arc-dot-arc-t-del{background:var(--arc-del)}.arc-dot-arc-t-iss{background:var(--arc-iss)}.arc-dot-arc-t-inv{background:var(--arc-inv)}
.arc-hint,.arc-none{margin:6px 2px 0;font-size:var(--fs-secondary);color:var(--text-muted)}
.arc-day{margin-top:18px}.arc-day[hidden]{display:none}
.arc-day h3{display:flex;align-items:baseline;gap:12px;margin:0 4px 8px;font-size:var(--fs-body,15px)}.arc-day h3 small{font-weight:400;font-size:var(--fs-secondary);color:var(--text-muted)}
.arc-list{display:grid;gap:8px}
.warehouse-document.arc-doc{margin:0;border:1px solid var(--paper-line);border-radius:14px;background:var(--surface);padding:0}
.warehouse-document.arc-doc[hidden]{display:none}
.warehouse-document.arc-doc[open]{box-shadow:0 4px 14px rgba(0,0,0,.06)}
.warehouse-document.arc-doc>summary{display:grid;grid-template-columns:44px minmax(0,1.5fr) minmax(0,1.1fr) minmax(120px,170px) auto;gap:14px;align-items:center;padding:11px 14px;cursor:pointer;list-style:none}
.warehouse-document.arc-doc>summary::-webkit-details-marker{display:none}
.warehouse-document.arc-doc>summary>span{flex:none;min-width:0}
.arc-mark{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-weight:800;font-size:var(--fs-body,15px)}
.arc-t-del .arc-mark{background:var(--arc-del-bg);color:var(--arc-del)}.arc-t-iss .arc-mark{background:var(--arc-iss-bg);color:var(--arc-iss)}.arc-t-inv .arc-mark{background:var(--arc-inv-bg);color:var(--arc-inv)}.arc-t-x .arc-mark{background:var(--surface-3);color:var(--text-muted)}
.arc-title b{font-size:var(--fs-body,15px)}.arc-title small,.arc-who small,.arc-effect small{display:block;margin-top:3px;font-size:var(--fs-secondary);color:var(--text-muted);overflow-wrap:anywhere}
.arc-who{font-size:var(--fs-secondary);color:var(--text-2);overflow-wrap:anywhere}
.arc-effect{text-align:right}.arc-effect b{font-size:var(--fs-body,15px);font-variant-numeric:tabular-nums}
.arc-plus{color:var(--arc-del)}.arc-minus{color:var(--arc-iss)}.arc-zero{color:var(--text-muted)}
.arc-tag{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:999px;font-size:var(--fs-label);font-weight:700;vertical-align:2px}
.arc-tag-blue{background:var(--info-soft);color:var(--info)}.arc-tag-grey{background:var(--surface-3);color:var(--text-muted)}.arc-tag-amber{background:var(--warn-soft);color:var(--warn)}
.arc-t-x{opacity:.7}.arc-t-x .arc-title b{text-decoration:line-through}
.arc-detail{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;padding:12px 14px 14px;border-top:1px solid var(--paper-line)}
.arc-meta{display:grid;gap:10px;align-content:start}.arc-meta small{display:block;font-size:var(--fs-label);text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.arc-meta b{font-size:var(--fs-secondary);overflow-wrap:anywhere}
.arc-note{margin:0;padding:8px 10px;border:1px solid var(--paper-line);border-radius:10px;background:var(--surface-2);font-size:var(--fs-secondary);line-height:1.5}
.arc-detail td small{display:block;color:var(--text-muted);font-size:var(--fs-secondary)}
.arc-panel .product-import-loaded{border:1px solid var(--info-border);border-left:4px solid var(--info-solid);background:var(--info-soft)}
@media(max-width:900px){.warehouse-document.arc-doc>summary{grid-template-columns:40px minmax(0,1fr) auto}.arc-who{grid-column:2/-1}.arc-effect{grid-column:2/3;text-align:left}.warehouse-document.arc-doc>summary>.archive-row-actions{grid-column:3;grid-row:1}.arc-detail{grid-template-columns:1fr}}
.arc-bar>.smart-select{flex:0 1 230px;width:auto}
.arc-search svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.warehouse-document.arc-doc .arc-detail{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;padding:14px 16px 16px;margin:0}
.warehouse-document.arc-doc .arc-detail td.arc-plus{color:var(--arc-del);font-weight:650}.warehouse-document.arc-doc .arc-detail td.arc-minus{color:var(--arc-iss);font-weight:650}.warehouse-document.arc-doc .arc-detail td.arc-zero{color:var(--text-muted)}
@media(max-width:900px){.warehouse-document.arc-doc .arc-detail{grid-template-columns:1fr}.arc-bar>.smart-select{flex:1 1 200px}}
.warehouse-document.arc-doc .arc-detail th,.warehouse-document.arc-doc .arc-detail td{padding:9px 10px}.warehouse-document.arc-doc .arc-detail td:first-child{min-width:150px}

/* Owner 09.11.2026 — Кошче and История на изтриванията as the documents tab: days, rows with a coloured icon, the time kept
   whole, the buttons on the right; the Excel strip quiet at the end. */
.trash-row{display:grid;grid-template-columns:44px minmax(0,1.2fr) minmax(0,1.6fr) max-content max-content;gap:14px;align-items:center;padding:10px 14px;border:1px solid var(--paper-line);border-radius:14px;background:var(--surface)}
.trash-row .arc-mark svg{fill:none;stroke:currentColor;stroke-width:2}
.trash-name{min-width:0}.trash-name b{display:block;overflow-wrap:anywhere}.trash-name small{display:block;margin-top:2px;font-size:var(--fs-secondary);color:var(--text-muted)}
.trash-why{min-width:0;font-size:var(--fs-secondary);color:var(--text-2);overflow-wrap:anywhere}
.trash-when{font-size:var(--fs-secondary);color:var(--text-muted);white-space:nowrap}
.trash-actions{display:flex;gap:6px;flex-wrap:nowrap;justify-content:flex-end}
.trash-tag{display:inline-block;margin-right:4px;padding:2px 8px;border-radius:999px;font-size:var(--fs-label);font-weight:700;white-space:nowrap}
.trash-tag.tg-red{background:var(--arc-iss-bg,#FDEBE3);color:var(--arc-iss,#B4461A)}.trash-tag.tg-green{background:var(--arc-del-bg,#E6F4EA);color:var(--arc-del,#1E7A3D)}.trash-tag.tg-grey{background:var(--surface-3);color:var(--text-muted)}
.trash-empty{margin-top:14px;padding:22px;border:1px dashed var(--paper-line);border-radius:14px;color:var(--text-muted);text-align:center}
.warehouse-panel>.product-import-entry{margin:18px 0 0;padding:10px 14px;border:1px dashed var(--paper-line);border-radius:12px;background:transparent}
.warehouse-panel>.product-import-entry small{font-size:var(--fs-secondary)}
@media(max-width:900px){.trash-row{grid-template-columns:40px minmax(0,1fr)}.trash-why,.trash-when,.trash-actions{grid-column:2}.trash-actions{justify-content:flex-start;flex-wrap:wrap}}
.trash-row .arc-mark{width:44px;height:44px;border-radius:12px;display:grid;place-items:center}
.trash-row .arc-mark.arc-t-iss{background:var(--arc-iss-bg,#FDEBE3);color:var(--arc-iss,#B4461A)}
.trash-row .arc-mark.arc-t-del{background:var(--arc-del-bg,#E6F4EA);color:var(--arc-del,#1E7A3D)}
.trash-row .arc-mark.arc-t-x{background:var(--surface-3);color:var(--text-muted)}
.product-trash-page .trash-row,.arc-panel .trash-row{grid-template-columns:44px minmax(0,1.5fr) minmax(0,1fr) max-content max-content}
.trash-name .nowrap{white-space:nowrap}
/* Design review 11.11.2026. On a phone the buttons of a document took the third column and left the title 40 px
   (the name of the document broken in three lines): they go on their own line under the row. On a wide window the worker and the invoice get the room
   that stood empty next to them. */
@media(max-width:600px){
  .warehouse-document.arc-doc>summary{grid-template-columns:40px minmax(0,1fr);row-gap:8px}
  .arc-who,.arc-effect{grid-column:2/-1}
  .warehouse-document.arc-doc>summary>.archive-row-actions{grid-column:2/-1;grid-row:auto;justify-self:start}
}
@media(min-width:901px){.warehouse-document.arc-doc>summary{grid-template-columns:44px minmax(0,1.2fr) minmax(0,1.7fr) minmax(110px,150px) auto}}
/* The three filters stay on one line in a small laptop window; the search is white like every other search field. */
.arc-search{flex:1 1 220px;background:var(--surface)}
