:root{--bg:#f4f6f8;--panel:#fff;--text:#1b2430;--muted:#667085;--line:#e4e7ec;--accent:#1267d6;--accent-dark:#0b52b0;--soft:#eef4ff;--danger:#b42318;--green:#067647;--amber:#b54708;--radius:14px;--shadow:0 1px 2px rgba(16,24,40,.04),0 2px 8px rgba(16,24,40,.04)}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}button,input,select{font:inherit}.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;gap:24px;align-items:center;padding:18px 28px;background:#fff;border-bottom:1px solid var(--line)}.brand{font-size:22px;font-weight:800}.subtitle{font-size:13px;color:var(--muted);margin-top:2px}.top-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.app-shell{max-width:1600px;margin:0 auto;padding:22px 26px 40px}.tabs{display:flex;gap:6px;margin-bottom:16px}.tab{border:0;background:transparent;padding:10px 15px;border-radius:9px;font-weight:700;color:var(--muted);cursor:pointer}.tab.active{background:#fff;color:var(--text);box-shadow:var(--shadow)}.tab-panel{display:none}.tab-panel.active{display:block}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}.stat{padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.stat span{display:block;color:var(--muted);font-size:13px;margin-bottom:7px}.stat strong{font-size:26px}.controls-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:12px}.filters-card,.languages-card{padding:18px}.card-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.card h2{font-size:17px;margin:0 0 14px}.text-btn{border:0;background:transparent;color:var(--accent);font-weight:700;cursor:pointer;padding:4px 0}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.form-grid label,.search-label{display:flex;flex-direction:column;gap:6px;color:#344054;font-size:12px;font-weight:700}select,input[type=search],input[type=text]{width:100%;border:1px solid #d0d5dd;border-radius:9px;padding:9px 10px;background:#fff;color:var(--text);outline:none}select:focus,input:focus{border-color:#84adff;box-shadow:0 0 0 3px #eef4ff}.search-label{margin-top:10px}.language-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.lang-chip{display:flex;align-items:center;gap:6px;padding:8px;border:1px solid var(--line);border-radius:8px;cursor:pointer;font-size:13px;font-weight:700}.lang-chip input{accent-color:var(--accent)}.selection-summary{margin-top:12px;font-size:13px;color:var(--muted)}.translate-card{margin-top:12px;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:20px}.translate-card h2{margin-bottom:6px}.translate-card p{margin:0;color:var(--muted)}.btn{border:1px solid transparent;border-radius:9px;padding:9px 14px;font-weight:750;cursor:pointer;transition:.15s}.btn.primary{background:var(--accent);color:#fff}.btn.primary:hover{background:var(--accent-dark)}.btn.secondary{background:#fff;border-color:#d0d5dd;color:#344054}.btn.secondary:hover{background:#f9fafb}.btn.large{padding:12px 20px}.btn.tiny{padding:6px 9px;font-size:12px}.btn:disabled{opacity:.45;cursor:not-allowed}.danger-outline{color:var(--danger);background:#fff;border-color:#fecdca}.progress-wrap{margin-top:12px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:12px}.progress-meta{display:flex;justify-content:space-between;font-size:13px;margin-bottom:8px}.progress{height:8px;border-radius:99px;background:#eaecf0;overflow:hidden}.progress-bar{height:100%;width:0;background:var(--accent);transition:width .15s}.table-card{margin-top:12px;overflow:hidden}.table-toolbar{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line)}.table-toolbar h2{margin:0 0 3px}.muted{color:var(--muted);font-size:13px}.pagination{display:flex;align-items:center;gap:10px;font-size:13px}.table-scroll{overflow:auto;max-height:650px}table{border-collapse:separate;border-spacing:0;width:100%;min-width:1100px;font-size:12px}th,td{padding:9px 10px;border-bottom:1px solid #eef0f3;border-right:1px solid #f0f1f3;vertical-align:top;text-align:left}th{position:sticky;top:0;z-index:3;background:#f9fafb;color:#475467;font-weight:800;white-space:nowrap}td.art{font-variant-numeric:tabular-nums;font-weight:700}.status{display:inline-block;border-radius:99px;padding:3px 7px;font-size:11px;font-weight:800}.status.new{background:#ecfdf3;color:var(--green)}.status.changed{background:#fffaeb;color:var(--amber)}.status.baseline,.status.unchanged{background:#f2f4f7;color:#475467}.translation-cell{min-width:260px;max-width:420px}.en-cell{min-width:320px;max-width:500px}.category-cell{min-width:150px;max-width:230px}.hidden{display:none!important}.glossary-tools,.section-tools{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px;margin-bottom:12px}.glossary-tools p,.section-tools p{margin:0}.glossary-scroll{max-height:620px}.glossary-scroll table{min-width:2400px}.glossary-scroll td[contenteditable=true]{background:#fffdf5;outline:none}.glossary-scroll td[contenteditable=true]:focus{box-shadow:inset 0 0 0 2px #84adff}.glossary-pagination{justify-content:flex-end;padding:12px 0}.info-card{padding:24px;max-width:980px}.info-card p{line-height:1.65;color:#475467}.toast{position:fixed;right:22px;bottom:22px;z-index:50;max-width:440px;padding:12px 15px;background:#101828;color:#fff;border-radius:10px;box-shadow:0 10px 30px rgba(16,24,40,.2);font-size:13px}.toast.error{background:#7a271a}@media(max-width:1000px){.stats-grid{grid-template-columns:repeat(2,1fr)}.controls-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:repeat(2,1fr)}.topbar{align-items:flex-start}.language-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:650px){.topbar{position:static;flex-direction:column;padding:16px}.app-shell{padding:14px}.stats-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.language-grid{grid-template-columns:repeat(3,1fr)}.translate-card{align-items:stretch;flex-direction:column}.translate-card .btn{width:100%}.glossary-tools,.section-tools{align-items:flex-start;flex-direction:column}.table-toolbar{align-items:flex-start;gap:12px;flex-direction:column}}

.sync-status{font-size:12px;color:#5f6b7a;margin-top:4px}.sync-status.sync-error{color:#b42318;font-weight:600}
.sync-status{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin:2px 0 6px}.sync-status.loading::before{content:"";width:13px;height:13px;border:2px solid #d0d5dd;border-top-color:var(--accent);border-radius:50%;animation:syncSpin .75s linear infinite;flex:0 0 auto}.sync-status.sync-error{color:var(--danger)}.update-times{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:#475467;margin:4px 0 7px}.update-times strong{color:var(--text);font-weight:700}@keyframes syncSpin{to{transform:rotate(360deg)}}


/* v14: full-page loader + glossary modal UX */
.app-loading-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:rgba(235,238,242,.96);backdrop-filter:grayscale(.25);padding:24px}
.app-loading-overlay.hidden{display:none!important}.app-loading-box{min-width:280px;max-width:440px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 50px rgba(16,24,40,.16);padding:30px 34px}.app-loading-spinner{width:42px;height:42px;margin:0 auto 16px;border:4px solid #d0d5dd;border-top-color:var(--accent);border-radius:50%;animation:syncSpin .8s linear infinite}.app-loading-title{font-size:17px;font-weight:800;margin-bottom:6px}.app-loading-text{font-size:13px;line-height:1.5;color:var(--muted);margin-bottom:0}.app-loading-box .btn{margin-top:18px}.app-loading-overlay.error .app-loading-spinner{display:none}.app-loading-overlay.error .app-loading-title{color:var(--danger)}
.modal-overlay{position:fixed;inset:0;z-index:900;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(16,24,40,.48)}.modal-overlay.hidden{display:none!important}.modal-card{width:min(100%,980px);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(16,24,40,.25);padding:22px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.modal-header h2{margin:0 0 5px;font-size:20px}.modal-header p{margin:0}.modal-close{border:0;background:transparent;font-size:28px;line-height:1;color:#667085;cursor:pointer;padding:0 4px}.glossary-modal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.glossary-modal-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:750;color:#344054}.glossary-modal-field input{width:100%;border:1px solid #d0d5dd;border-radius:9px;padding:9px 10px;background:#fff;outline:none}.glossary-modal-field input:focus{border-color:#84adff;box-shadow:0 0 0 3px #eef4ff}.glossary-modal-field.is-empty input{background:#fffaeb;border-color:#fedf89}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.glossary-scroll td.glossary-missing{background:#fffaeb;color:#93370d}.missing-label{font-size:11px;font-weight:700;color:#b54708}.glossary-actions{white-space:nowrap;display:flex;gap:10px;align-items:center}.glossary-edit-btn{font-size:12px}.glossary-scroll tbody tr:hover td{background-color:#f9fafb}.glossary-scroll tbody tr:hover td.glossary-missing{background:#fff6d6}
@media(max-width:800px){.glossary-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.glossary-modal-grid{grid-template-columns:1fr}.modal-overlay{padding:10px}.modal-card{padding:16px}.modal-actions{flex-direction:column-reverse}.modal-actions .btn{width:100%}}

/* v15: one-click copy for every glossary value */
.glossary-value-wrap{display:flex;align-items:flex-start;gap:7px;min-width:0}.glossary-value{flex:1;min-width:0}.copy-glossary-value{flex:0 0 auto;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d0d5dd;border-radius:6px;background:#fff;color:#667085;cursor:pointer;padding:4px;opacity:.55;transition:.15s}.copy-glossary-value:hover{opacity:1;border-color:#98a2b3;background:#f9fafb;color:#344054}.copy-glossary-value:active{transform:translateY(1px)}.copy-glossary-value svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.glossary-scroll td:hover .copy-glossary-value{opacity:1}

/* v16 UX: glossary filters, dual horizontal scroll and history */
.glossary-table-card{overflow:hidden}.glossary-filter-bar{padding:14px 18px 10px;border-bottom:1px solid var(--line)}.glossary-filter-bar .search-label{margin-top:0}.glossary-language-filter-wrap{margin-top:12px}.glossary-language-filter-wrap .card-title-row{margin-bottom:8px;font-size:12px;color:#344054}.glossary-language-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.lang-chip.compact{padding:6px 8px;font-size:12px}.glossary-top-scroll{overflow-x:auto;overflow-y:hidden;height:16px;border-bottom:1px solid var(--line);background:#f9fafb}.glossary-top-scroll>div{height:1px}.history-scroll{max-height:68vh;margin-top:12px;border:1px solid var(--line);border-radius:12px}.history-scroll table{min-width:2200px}.history-scroll th{top:0}.glossary-scroll{scrollbar-gutter:stable both-edges}
@media(max-width:1000px){.glossary-language-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:650px){.glossary-language-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v17: glossary completeness + explicit language selection controls */
.glossary-filter-heading{align-items:flex-start}
.glossary-filter-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.inline-check{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:#344054;cursor:pointer}
.inline-check input{accent-color:var(--accent)}
@media(max-width:650px){.glossary-filter-heading{flex-direction:column;gap:8px}.glossary-filter-actions{gap:10px}}


/* v22: hromadný zoznam artiklov */
.btn.al-btn{width:auto;margin-top:0}
.article-modal-card{width:min(100%,720px)}
.article-modal-card textarea{width:100%;border:1px solid #d0d5dd;border-radius:9px;padding:9px 10px;background:#fff;color:var(--text);font:inherit;font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums;resize:vertical;outline:none}
.article-modal-card textarea:focus{border-color:var(--accent)}
.al-file-row{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:12px}
.al-col{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#344054;min-width:200px}
.al-summary{margin-top:14px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f9fafb;font-size:14px;line-height:1.5;color:var(--text)}
.al-ok{color:var(--green);font-weight:700}
.al-missing{color:var(--danger);font-weight:700}
.al-missing-wrap{margin-top:14px}
.al-missing-wrap textarea{margin-top:6px}
.al-banner{margin-top:12px;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:var(--soft);border-color:#c7d7fe}
.al-banner-text{display:flex;flex-direction:column;gap:2px}
.al-banner-actions{display:flex;gap:16px;flex-wrap:wrap}
.al-banner.hidden,.al-col.hidden,.al-missing-wrap.hidden{display:none!important}
@media(max-width:520px){.al-file-row{flex-direction:column;align-items:stretch}.al-file-row .btn.al-btn{width:100%}}
.al-title-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.article-modal-card textarea{font-weight:400}
.article-modal-card.al-drop-active{outline:2px dashed var(--accent);outline-offset:-8px;background:var(--soft)}

.edit-cell{min-width:72px;width:72px;white-space:nowrap}

/* v32: repair workflow */
.repair-toolbar{margin-top:12px;padding:12px 16px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.repair-toolbar-actions{margin-left:auto;display:flex;gap:12px;align-items:center}.repair-cell{width:62px;min-width:62px;text-align:center}.repair-row-check{width:16px;height:16px;accent-color:var(--accent)}.repair-modal-card{width:min(100%,760px)}.repair-articles-preview{margin-top:7px;padding:10px 12px;background:#f9fafb;border:1px solid var(--line);border-radius:9px;max-height:120px;overflow:auto;font-size:12px;line-height:1.5}.repair-modal-card textarea{width:100%;border:1px solid #d0d5dd;border-radius:9px;padding:9px 10px;font:inherit;resize:vertical}.repair-table{min-width:1100px}.repair-table td:nth-child(2){max-width:360px;word-break:break-word}@media(max-width:650px){.repair-toolbar-actions{margin-left:0;width:100%}.repair-toolbar-actions .btn{margin-left:auto}}

.bulk-en-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.bulk-en-form label{display:flex;flex-direction:column;gap:6px;font-weight:600}.bulk-en-form input:not([type=checkbox]),.bulk-en-form select{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:7px}.bulk-en-form label.inline-check{flex-direction:row;align-items:center;grid-column:1/-1;font-weight:400}.bulk-en-preview{max-height:300px;overflow:auto;margin-top:14px}.bulk-en-preview table{width:100%;border-collapse:collapse;font-size:13px}.bulk-en-preview th,.bulk-en-preview td{padding:8px;text-align:left;border-bottom:1px solid #ddd;overflow-wrap:anywhere}.bulk-en-preview .bulk-note{margin-bottom:8px}@media(max-width:650px){.bulk-en-form{grid-template-columns:1fr}}


/* v34: dva riadky po dvoch blokoch, spoločná tabuľka a kompaktné jazyky */
.products-control-grid,.products-secondary-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:12px;align-items:stretch}
.products-control-grid>.card,.products-secondary-grid>.card{min-width:0;padding:18px;display:flex;flex-direction:column;gap:8px}
.products-control-grid .card h2,.products-secondary-grid .card h2{margin-bottom:4px}
.products-control-grid .card .muted,.products-secondary-grid .card .muted{line-height:1.5}
.division-level-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0 10px}
.division-level-row label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px}
.products-control-grid .compact-products-langs{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:4px}
.products-control-grid .compact-products-langs .lang-chip{padding:5px 7px;min-width:0;font-size:12px}
.products-control-grid .compact-products-langs .lang-chip input{margin:0}
.select-all-languages{margin-top:10px;align-self:flex-start}
.bulk-article-card .btn{align-self:flex-start;margin-top:auto}
.products-secondary-grid .filters-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.repair-heading{vertical-align:middle}
.repair-heading>span{display:block}
.repair-select-all{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:6px;cursor:pointer;font-weight:500}
.repair-select-all input{accent-color:var(--accent);width:16px;height:16px}
.repair-select-all small{font-size:11px}
.repair-toolbar{position:sticky;top:66px;z-index:8;border-color:#c7d7fe;background:#f8faff}
@media(max-width:1000px){.products-control-grid,.products-secondary-grid{grid-template-columns:1fr}}
@media(max-width:650px){.products-control-grid .compact-products-langs{grid-template-columns:repeat(4,minmax(0,1fr))}.division-level-row{gap:4px}.repair-toolbar{top:0}}

/* v36: jazyky majú pevnú kompaktnú šírku, nevyplňujú prázdny priestor bloku */
.products-control-grid .compact-products-langs{
  display:grid;grid-template-columns:repeat(5,64px);gap:5px 7px;
  width:max-content;max-width:100%;align-content:start;justify-content:start;
}
.products-control-grid .compact-products-langs .lang-chip{
  box-sizing:border-box;width:64px;min-width:0;padding:4px 6px;
  display:flex;align-items:center;gap:5px;font-size:12px;
}
.products-control-grid .compact-products-langs .lang-chip input{margin:0;flex:0 0 auto}
.bulk-article-admin{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.bulk-article-admin h3{font-size:14px;margin:0}
.bulk-article-admin .btn{margin-top:6px}
@media(max-width:470px){.products-control-grid .compact-products-langs{grid-template-columns:repeat(4,64px)}}
@media(max-width:350px){.products-control-grid .compact-products-langs{grid-template-columns:repeat(3,64px)}}

/* v37: najviac 10 kompaktných jazykov na riadok v oboch blokoch.
   Ak pribudnú ďalšie jazyky, automaticky sa zalomia do ďalšieho riadka.
   Na užších obrazovkách sa počet stĺpcov prirodzene zníži. */
.products-control-grid .compact-products-langs{
  display:grid;
  grid-template-columns:repeat(auto-fill,64px);
  width:100%;
  max-width:685px; /* 10 × 64px + 9 × 5px */
  gap:5px;
  align-content:start;
  justify-content:start;
}

/* v38: tri úrovne a voľba všetkých v jednom kompaktnom riadku */
.division-level-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:6px 0 10px}
.division-level-row label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px;cursor:pointer}
.division-level-row .division-select-all{margin-left:5px;font-weight:600}
.division-level-row input[type="checkbox"]{margin:0}

/* v39: missing HZA articles approval */
.al-propose-wrap{margin-top:14px;border:1px solid var(--border,#d0d5dd);border-radius:10px;padding:13px} .al-propose-wrap h3{margin:0 0 7px} .al-propose-rows{max-height:245px;overflow:auto;margin:10px 0;display:grid;gap:5px}.al-propose-row{display:flex;align-items:flex-start;gap:8px;padding:6px 8px;border:1px solid #e6e9ef;border-radius:6px}.al-propose-row span{min-width:0}.al-propose-row small{display:block;color:#667085;overflow-wrap:anywhere}.bulk-article-approvals{margin-top:14px;border-top:1px solid #e6e9ef;padding-top:14px}.bulk-article-approvals .table-scroll{max-height:320px;overflow:auto}.bulk-article-approvals table{width:100%}

.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0;font-size:13px;color:var(--muted,#667085)}.history-pagination .btn{margin-left:6px}.history-scroll td:last-child{position:sticky;right:0;background:var(--surface,#fff);z-index:1}

/* v43: separate admin-originated EN changes from database import changes */
.status.admin{background:#eff6ff;color:#1d4ed8}

/* v44: čitateľnejšie podnadpisy v záložke Informácie */
.info-card h3{font-size:14px;margin:22px 0 8px;color:var(--text);border-top:1px solid var(--line);padding-top:16px}
.info-card h3:first-of-type{margin-top:14px;border-top:none;padding-top:0}
.info-card p{margin:0 0 6px}

.glossary-en-all{display:flex;align-items:center;gap:9px;margin:8px 0 17px;font-size:14px;font-weight:650;cursor:pointer}.glossary-en-all input{width:17px;height:17px}.glossary-modal-field input:disabled{background:#f2f4f7;color:#475467;border-color:#d0d5dd}.glossary-modal-field.is-empty input:disabled{background:#f2f4f7}

.product-language-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}

.status.review{background:#fff1f3;color:#b42318}
.bulk-article-admin .btn + .btn{margin-left:8px}

/* v64: glossary fixed actions + fixed EN, compact icon actions */
.bulk-en-import-help{margin-top:16px!important}
.glossary-scroll th.glossary-actions-col,.glossary-scroll td.glossary-actions-col{position:sticky;left:0;z-index:6;width:76px;min-width:76px;max-width:76px;background:#fff}
.glossary-scroll th.glossary-actions-col{z-index:9;background:#f9fafb}
.glossary-scroll th.glossary-en-col,.glossary-scroll td.glossary-en-col{position:sticky;left:76px;z-index:5;min-width:170px;background:#fff;box-shadow:1px 0 0 #eef0f3}
.glossary-scroll th.glossary-en-col{z-index:8;background:#f9fafb}
.glossary-scroll tbody tr:hover td.glossary-actions-col,.glossary-scroll tbody tr:hover td.glossary-en-col{background:#f9fafb}
.glossary-scroll tbody tr:hover td.glossary-en-col.glossary-missing{background:#fff6d6}
.glossary-actions{display:flex;align-items:center;justify-content:center;gap:12px;white-space:nowrap}
.glossary-icon-btn{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;padding:2px;cursor:pointer;border-radius:5px;color:var(--accent)}
.glossary-icon-btn:hover{background:#f2f4f7}
.glossary-icon-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.glossary-delete-btn{color:#d92d20}
.glossary-en-chip{opacity:.8}
.glossary-en-chip input{cursor:not-allowed}

/* v65: kompaktnejší HZA blok a voliteľné stĺpce produktov */
.bulk-article-card{padding:18px!important}
.bulk-article-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
.bulk-article-column{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.bulk-article-column+.bulk-article-column{border-left:1px solid var(--line);padding-left:22px}
.bulk-article-column h2{width:100%;margin:0 0 8px!important}
.bulk-article-column p{margin:0 0 10px}
.bulk-main-actions{display:flex;gap:8px;flex-wrap:wrap}
.bulk-article-card .btn{margin-top:0;align-self:auto}
.bulk-article-approvals{width:100%;margin-top:16px;padding-top:12px}
.bulk-article-approvals h3{font-size:14px;margin:0}
.bulk-article-admin{margin-top:0;padding-top:0;border-top:0;gap:0}
.bulk-tool-item{width:100%;padding:10px 0 13px}
.bulk-tool-item+.bulk-tool-item{border-top:1px solid var(--line);padding-top:13px}
.bulk-tool-item>strong{display:block;font-size:13px;margin-bottom:3px}
.bulk-tool-item .btn{margin-top:1px}
.table-toolbar-actions{display:flex;align-items:center;gap:12px}
.column-picker-wrap{position:relative}
.column-picker{position:absolute;right:0;top:calc(100% + 7px);z-index:15;width:270px;max-height:420px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgba(16,24,40,.16);padding:10px}
.column-picker-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 8px;border-bottom:1px solid var(--line);font-size:12px}
.column-picker-list{display:grid;gap:2px;padding-top:6px}
.column-picker-item{display:flex;align-items:center;gap:8px;padding:6px;border-radius:6px;font-size:12px;cursor:pointer}
.column-picker-item:hover{background:#f9fafb}
.column-picker-item.locked{color:var(--muted);cursor:default}
.column-picker-item input{margin:0;accent-color:var(--accent)}
@media(max-width:1000px){.bulk-article-columns{grid-template-columns:1fr}.bulk-article-column+.bulk-article-column{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:16px}.table-toolbar-actions{align-items:flex-end}}

/* v66 – kontrola členení a produktov */
.division-check-modal-card{width:min(1220px,96vw);max-height:92vh;overflow:auto}
.division-check-controls{display:flex;align-items:flex-end;gap:12px;margin:6px 0 16px}
.division-check-controls label{display:flex;flex-direction:column;gap:6px;font-weight:600;min-width:300px}
.division-check-controls select{padding:10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff}
.division-check-results{min-height:130px}
.division-check-empty{padding:24px;border:1px dashed var(--line);border-radius:10px;color:#667085;background:#f9fafb}
.division-check-summary{margin:0 0 8px;color:#475467}
.division-check-table-wrap{max-height:58vh;border:1px solid var(--line);border-radius:10px}
.division-check-table{min-width:1100px;width:100%;border-collapse:collapse}
.division-check-table th,.division-check-table td{padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.division-check-table th{position:sticky;top:0;background:#f9fafb;z-index:2}
@media(max-width:650px){.division-check-controls{align-items:stretch;flex-direction:column}.division-check-controls label{min-width:0}.division-check-controls .btn{width:100%}}

/* v70: šírka slovníka podľa skutočne zobrazených jazykov */
.glossary-scroll table{min-width:0;width:100%;table-layout:auto}
.glossary-scroll th.glossary-en-col,.glossary-scroll td.glossary-en-col{width:36%;min-width:170px;max-width:none}
.glossary-scroll th:not(.glossary-actions-col):not(.glossary-en-col),.glossary-scroll td:not(.glossary-actions-col):not(.glossary-en-col){min-width:220px}
.glossary-scroll td{overflow-wrap:anywhere}

/* v75: priame označenie chýbajúceho jazykového prekladu */

/* Slovnik: dva riadky v pozadovanom poradi, bez zmeny ostatnych tlacidiel. */
.glossary-action-grid{display:grid;grid-template-columns:max-content max-content;gap:10px;align-items:center;justify-content:start}
.glossary-action-grid .btn{white-space:nowrap}
@media(max-width:650px){.glossary-action-grid{grid-template-columns:max-content max-content;max-width:100%}.glossary-action-grid .btn{white-space:normal}}

/* v85: central import/export area */
.import-export-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.import-export-item{padding:12px;border:1px solid #dce3ed;border-radius:10px;min-width:0}
.import-export-item .btn{width:100%;max-width:340px}
.import-export-item p,.import-export-bulk p{font-size:12px;line-height:1.5;margin:8px 0 0}
.import-export-bulk{padding-top:14px;margin-top:14px;border-top:1px solid #e1e6ed}
#importFormatHelp .table-scroll{max-width:100%;overflow:auto}
@media(max-width:680px){.import-export-grid{grid-template-columns:1fr}}

/* v86: navigácia a rozdelenie histórie */
.history-type-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.history-type.active{background:#1769dc;color:#fff;border-color:#1769dc}.pagination{display:flex;align-items:center;gap:7px;flex-wrap:wrap}

/* v87: compact import/export next to filters, HZA beneath without stretching filters */
.products-secondary-grid{align-items:start}
.products-secondary-grid>.import-export-compact{display:block;padding:14px 16px;margin:0;min-width:0}
.import-export-compact h2{font-size:16px;margin:0 0 3px}
.import-export-compact .sync-status{font-size:11px;margin:2px 0}
.import-export-compact .update-times{display:flex;flex-wrap:wrap;gap:3px 14px;font-size:10px;margin:3px 0 8px}
.import-export-compact .import-export-grid{gap:7px;margin-top:8px}
.import-export-compact .import-export-item{padding:7px 8px;border-radius:7px}
.import-export-compact .import-export-item .btn{padding:7px 8px;font-size:12px;max-width:none}
.import-export-compact .import-export-item p{font-size:10px;line-height:1.25;margin:5px 0 0}
.import-export-compact .import-export-bulk{margin-top:8px;padding-top:8px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.import-export-compact .import-export-bulk .btn{padding:6px 9px;font-size:12px}
.import-export-compact .import-export-bulk p{font-size:10px;margin:0;flex:1}
.article-list-collapsible{grid-column:1/-1;padding:0!important;display:block!important;overflow:hidden}
.article-list-collapsible>summary{padding:12px 16px;font-size:13px;font-weight:700;cursor:pointer}
.article-list-collapsible>.bulk-article-card{border:0;box-shadow:none;border-top:1px solid var(--line);border-radius:0}
@media(max-width:1000px){.article-list-collapsible{grid-column:1}}

/* v88 – kompaktný Import a Export bez HZA */
.import-export-compact .import-export-intro{font-size:11px;line-height:1.35;margin:1px 0 5px;color:var(--muted,#68778a)}
.import-export-compact .import-export-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.import-export-compact .import-export-item{display:flex;flex-direction:column;gap:5px;justify-content:flex-start;min-width:0;background:#f9fbfe;border:1px solid #e2e8f1;border-radius:9px;padding:9px}
.import-export-compact .import-export-item .btn{min-height:33px;margin:0;padding:7px 8px;font-weight:650;white-space:normal}
.import-export-compact .import-export-item p{margin:0;font-size:11px;line-height:1.35}
.import-export-compact .import-export-bulk{border-top:1px solid #e2e8f1;margin-top:10px;padding-top:10px}
@media(max-width:480px){.import-export-compact .import-export-grid{grid-template-columns:1fr}}

/* v89: column picker below filters, larger import/export typography */
.filters-columns-footer{display:flex;justify-content:flex-end;align-items:center;margin-top:12px}
.filters-columns-footer .column-picker-wrap{position:relative}
.import-export-compact h2{font-size:18px}
.import-export-compact .update-times{font-size:11px}
.import-export-compact .import-export-item .btn{font-size:14px;min-height:37px}
.import-export-compact .import-export-item p{font-size:12px;line-height:1.4}
.import-export-compact .import-export-bulk .btn{font-size:13px}
.import-export-compact .import-export-bulk p{font-size:11px}

/* v90: Stav + Stĺpce side by side, aligned panels and legible import text */
.products-secondary-grid{align-items:stretch}
.products-secondary-grid>.filters-card,.products-secondary-grid>.import-export-compact{height:100%;box-sizing:border-box}
.status-columns-inline{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,0.44fr);gap:10px;align-items:end;min-width:0}
.status-columns-inline>label{min-width:0}
.status-columns-inline>label select{width:100%;max-width:100%}
.status-columns-inline .column-picker-wrap{position:relative;min-width:0}
.status-columns-inline .column-picker-wrap>.btn{width:100%;min-height:38px;white-space:nowrap}
.status-columns-inline .column-picker{right:0;top:calc(100% + 5px);width:min(270px,80vw);z-index:50}
.import-export-compact .import-export-item p{font-size:13px;line-height:1.38}
.import-export-compact .import-export-bulk p{font-size:12px;line-height:1.35}
.import-export-compact .update-times{font-size:12px}
@media(max-width:420px){.status-columns-inline{gap:6px;grid-template-columns:minmax(0,1fr) 95px}}

/* v91: keep the column selector rows horizontal even when nested in .form-grid */
.form-grid .column-picker-list .column-picker-item{
 display:flex;flex-direction:row;justify-content:flex-start;align-items:center;
 gap:9px;width:100%;padding:8px 7px;text-align:left;font-size:13px;
 font-weight:500;white-space:normal;cursor:pointer;
}
.form-grid .column-picker-list .column-picker-item input[type="checkbox"]{
 display:block;flex:0 0 15px;width:15px;height:15px;margin:0;
}
.form-grid .column-picker-list .column-picker-item span{display:inline;flex:1;line-height:1.3}
.form-grid .column-picker-head{font-size:13px}
/* v91: align all explanatory import/export descriptions with buttons */
.import-export-compact .import-export-item p{text-align:center;width:100%;font-size:13px;line-height:1.4}
.import-export-compact .import-export-bulk p{font-size:13px;line-height:1.4}

/* v92: compact translation blocks, language actions next to their headings */
.products-control-grid>.card{gap:5px}
.products-control-grid>.card>h2{margin:0!important;line-height:1.25}
.products-control-grid>.card>p.muted{margin:0!important;line-height:1.4}
.products-control-grid .translation-language-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:6px}
.products-control-grid .translation-language-heading>strong{font-size:14px}
.products-control-grid .language-heading-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.products-control-grid .language-heading-actions .select-all-languages{display:inline-flex;align-items:center;gap:5px;margin:0;font-size:12px;white-space:nowrap;cursor:pointer}
.products-control-grid .compact-products-langs{margin-top:2px}
.products-control-grid .division-level-row{margin:1px 0 5px}
/* v92: show dropdown affordance on the column selector */
.status-columns-inline .column-picker-wrap>.btn{display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;padding:7px 9px}
.status-columns-inline .column-picker-wrap>.btn::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.status-columns-inline .column-picker-wrap>.btn[aria-expanded="true"]::after{transform:rotate(225deg) translateY(-1px)}
/* v92: inset history tabs from card edge */
#historyTab .history-type-tabs{padding:4px 12px 0;margin-bottom:16px}
@media(max-width:720px){.products-control-grid .translation-language-heading{align-items:flex-start}.products-control-grid .language-heading-actions{gap:8px}}


/* v93: unified selector arrows, consistent section titles and improved spacing */
.products-control-grid .card>h2,
.products-secondary-grid .card>h2,
.products-secondary-grid .card-title-row>h2,
.products-secondary-grid .import-export-compact h2 {
  font-size:18px !important;
  line-height:1.35;
  font-weight:750;
}
/* Native select arrows are inconsistently aligned across browsers; draw one uniform chevron. */
.products-secondary-grid .form-grid select {
  -webkit-appearance:none;
  appearance:none;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23344054' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:12px 12px;
  padding-right:37px;
}
.status-columns-inline .column-picker-wrap>.btn {
  font-size:12px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:13px;
  padding:7px 13px;
}
.status-columns-inline .column-picker-wrap>.btn::after {
  box-sizing:border-box;
  width:9px;height:9px;
  flex:0 0 9px;
  border-width:0 2px 2px 0;
  transform:translateY(-2px) rotate(45deg);
}
.status-columns-inline .column-picker-wrap>.btn[aria-expanded="true"]::after {
  transform:translateY(2px) rotate(225deg);
}
/* More deliberate separation between controls and language rows. */
.products-control-grid .translation-language-heading {
  margin-top:14px;
  margin-bottom:10px;
  row-gap:9px;
}
.products-control-grid .translation-language-heading + .language-grid {
  margin-top:0;
}
/* Inset history pagination and empty state from the edge of the card. */
#historyTab #historyList {padding:4px 18px 16px;min-height:115px;}
#historyTab .history-type-tabs{padding:10px 18px 0;margin-bottom:12px;}
#historyTab .history-pagination{margin:6px 0 12px;}
@media(max-width:650px){
  #historyTab #historyList{padding:4px 12px 12px;}
  #historyTab .history-type-tabs{padding:8px 12px 0;}
}

/* v94: match Stĺpce chevron to the native-looking filter select arrows */
.status-columns-inline .column-picker-wrap>.btn::after {
  width:6px;height:6px;flex:0 0 6px;
  border-width:0 1.5px 1.5px 0;
  transform:translateY(-1px) rotate(45deg);
}
.status-columns-inline .column-picker-wrap>.btn[aria-expanded="true"]::after {
  transform:translateY(2px) rotate(225deg);
}

/* v95: format explanation opens as a popup */
.import-format-modal-card{width:min(980px,95vw);padding:20px 24px}.import-format-modal-card .table-scroll{max-height:40vh;overflow:auto}

/* v96: role-specific compact export */
.import-export-compact.export-only{display:flex;flex-direction:column;justify-content:flex-start;gap:12px}
.import-export-compact.export-only .import-export-grid{display:block;max-width:340px;width:100%}
.import-export-compact.export-only .import-export-item.export-only-item{padding:12px;gap:10px}
.import-export-compact.export-only .import-export-item.export-only-item .btn{min-height:39px}
.import-export-compact.export-only .import-export-item.export-only-item p{font-size:13px}
.import-format-modal-card .card-title-row>.top-actions{display:flex;align-items:center;gap:8px}
.import-format-modal-card #importFormatX{position:static;min-width:32px;height:32px;font-size:23px}


/* v97 – consistent glossary actions (admin) */
.glossary-action-grid .btn{
  appearance:none; font:inherit; font-size:14px; font-weight:700;
  min-height:39px; padding:9px 14px; border:1px solid #d0d5dd;
  border-radius:9px; line-height:1.3; text-align:center;
}
.glossary-action-grid .btn.primary{border-color:var(--accent)}

/* v97 – user glossary has no Actions column: EN starts at the actual table edge */
#glossaryTab.glossary-readonly .glossary-scroll th.glossary-en-col,
#glossaryTab.glossary-readonly .glossary-scroll td.glossary-en-col{
  left:0!important;
}
#glossaryTab.glossary-readonly .glossary-scroll{
  scrollbar-gutter:stable;
}
#glossaryTab.glossary-readonly .glossary-scroll th.glossary-en-col,
#glossaryTab.glossary-readonly .glossary-scroll td.glossary-en-col{
  padding-left:15px;
}

/* v97 – one clear, balanced export panel for regular users */
.import-export-compact.export-only{
  justify-content:center; align-items:stretch; gap:12px;
  padding:22px 28px;
}
.import-export-compact.export-only>div:first-child{
  width:100%; text-align:center;
}
.import-export-compact.export-only #importExportTitle{
  text-align:center; margin:0;
}
.import-export-compact.export-only .import-export-grid{
  width:min(100%,440px); max-width:none; margin:0 auto;
}
.import-export-compact.export-only .import-export-item.export-only-item{
  padding:0; border:0; background:transparent;
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.import-export-compact.export-only .import-export-item.export-only-item .btn{
  width:100%; max-width:none; min-height:42px;
  font-size:14px;
}
.import-export-compact.export-only .import-export-item.export-only-item p{
  margin:0; max-width:400px; font-size:13px;
  line-height:1.5; text-align:center;
}
@media(max-width:650px){
  .import-export-compact.export-only{padding:18px;}
}

/* v98 – user export aligned to filters, compact action */
.import-export-compact.export-only{
  justify-content:flex-start;align-items:stretch;gap:14px;
  padding:18px;
}
.import-export-compact.export-only>div:first-child{width:100%;text-align:left;}
.import-export-compact.export-only #importExportTitle{
  text-align:left;margin:0;font-size:17px;line-height:1.35;
}
.import-export-compact.export-only .import-export-grid{
  width:100%;max-width:none;margin:0;
}
.import-export-compact.export-only .import-export-item.export-only-item{
  align-items:flex-start;gap:9px;
}
.import-export-compact.export-only .import-export-item.export-only-item .btn{
  width:auto;min-width:180px;max-width:230px;min-height:38px;
  padding:8px 18px;
}
.import-export-compact.export-only .import-export-item.export-only-item p{
  text-align:left;max-width:100%;
}

/* v99 – compact, readable Excel format previews in all import dialogs */
.import-format-modal-card{width:min(860px,96vw);padding:20px 24px}
#importFormatHelp .table-scroll{max-width:100%;overflow-x:auto;overflow-y:auto}
#importFormatHelp .table-scroll table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
#importFormatHelp .table-scroll th,#importFormatHelp .table-scroll td{min-width:0;width:auto;padding:9px 8px;white-space:normal;overflow-wrap:anywhere;word-break:normal;vertical-align:top;line-height:1.35}
#importFormatHelp .table-scroll th{font-size:12px}
#importFormatHelp .table-scroll td{font-size:12px}
#importFormatHelp .card-title-row>.top-actions{margin-left:auto}
@media(max-width:600px){.import-format-modal-card{width:100%;padding:16px}#importFormatHelp .table-scroll table{min-width:540px}}

/* v100: persistent import feedback and live glossary duplicate check */
.import-result{margin:16px 0;padding:16px 18px;border:1px solid #86caa0;background:#f0fdf4;border-radius:10px;color:#155e37;font-size:15px;line-height:1.5}
.import-result strong{display:block;font-size:17px;margin-bottom:4px}
.import-result p{margin:0}
.import-result.is-error{border-color:#f4a3a3;background:#fff1f2;color:#9f1239}
.glossary-duplicate-warning{margin:10px 0;padding:11px 14px;border:1px solid #fda4af;background:#fff1f2;color:#9f1239;border-radius:8px;font-weight:600}

#importFormatHelp.import-completed #importFormatDescription,
#importFormatHelp.import-completed .table-scroll,
#importFormatHelp.import-completed #importFormatChoose,
#importFormatHelp.import-completed #importFormatHelpText{display:none}

/* v101 – Excel-style multi-article filter */
.article-filter-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:9px}
.article-filter-indicator{font-size:12px;color:#475467;font-weight:650}
.article-filter-modal-card{width:min(720px,100%)}
.article-filter-label{display:block;font-size:13px;font-weight:750;margin:12px 0 7px}
.article-filter-text{width:100%;resize:vertical;min-height:155px;max-height:50vh;border:1px solid #d0d5dd;border-radius:9px;padding:12px;font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;color:#101828;background:#fff}
.article-filter-text:focus{outline:2px solid #84adff;outline-offset:1px}
.article-filter-preview{padding:11px 13px;border:1px solid #d0d5dd;border-radius:9px;background:#f9fafb;font-size:13px;line-height:1.6;overflow-wrap:anywhere}

/* v102 – complete missing-article list in the multi-article filter */
.article-filter-missing-panel{margin-top:12px;padding:12px;border:1px solid #d0d5dd;border-radius:9px;background:#fff}
.article-filter-missing-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.article-filter-missing-actions{display:flex;gap:8px;flex-wrap:wrap}
.article-filter-missing-header strong{font-size:14px}
.article-filter-missing-panel p{margin:6px 0 10px;font-size:12px}
.article-filter-missing-list{max-height:210px;overflow:auto;border:1px solid #e4e7ec;border-radius:7px}
.article-filter-missing-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 10px;font:13px/1.4 ui-monospace,Consolas,monospace}
.article-filter-missing-row+.article-filter-missing-row{border-top:1px solid #eef0f3}
.article-filter-missing-row .btn{padding:4px 10px;min-height:27px;font:12px/1.2 inherit}

/* v103: multiline article lookup in the existing Hľadať field */
.multi-article-search{display:block;width:100%;resize:vertical;min-height:36px;max-height:180px;padding:9px 10px;border:1px solid #d0d5dd;border-radius:9px;background:white;color:var(--text);font:inherit;font-size:13px;line-height:1.4;outline:none}
.multi-article-search:focus{border-color:#84adff;box-shadow:0 0 0 3px #eef4ff}
.search-article-summary{margin-top:7px;font-size:12px;color:#344054}
.search-missing-details{margin-top:9px;border:1px solid #e1e5ed;border-radius:8px;padding:8px 10px;font-size:12px}
.search-missing-details summary{cursor:pointer;font-weight:700;color:#175cd3}
.search-missing-actions{display:flex;flex-wrap:wrap;gap:7px;padding:9px 0}
.search-missing-items{max-height:190px;overflow:auto}
.search-missing-row{display:flex;align-items:center;justify-content:space-between;padding:4px 2px;border-bottom:1px solid #eee;font-variant-numeric:tabular-nums}

/* V104: Slovník – admin review queue and in-product candidate icon */
.candidate-en-cell{display:flex;align-items:flex-start;gap:8px}.candidate-en-cell>span{flex:1;min-width:0}
.candidate-report-btn{flex:0 0 23px;width:23px;height:23px;line-height:18px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#1269e6;cursor:pointer;font-weight:800;font-size:17px}
.candidate-card{padding:17px 18px;margin-bottom:12px}.candidate-heading{align-items:flex-start;margin-bottom:10px}.candidate-heading h2{margin:0 0 5px}.candidate-list{margin-top:12px}
.candidate-table-scroll{overflow:auto;max-height:330px}.candidate-table{min-width:600px;font-size:12px}.candidate-table th,.candidate-table td{padding:9px}
.candidate-modal-card{max-width:720px}.candidate-field{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-weight:700;font-size:13px}.candidate-field input{width:100%;padding:9px;border:1px solid #d0d5dd;border-radius:8px}
.candidate-similar{margin-top:15px;font-size:13px}.candidate-neighbor{padding:7px;border-bottom:1px solid #edf0f3;display:flex;justify-content:space-between;gap:10px}.candidate-neighbor span{color:#667085}

/* v105 – kompaktná evidencia návrhov a vycentrovaná ikona */
.candidate-report-btn{display:inline-flex!important;align-items:center;justify-content:center;padding:0!important;line-height:1!important}
.candidate-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.candidate-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
.candidate-tabs button.active{background:#1269e6;color:white}
#candidateSearch{max-width:410px;margin-top:5px}
tr.candidate-unresolved>td{background:#fff3d9!important}

/* v106 – jasné procesy, kompaktný panel a konzistentné ovládanie */
.candidate-heading-actions .candidate-small-action{padding:7px 10px!important;font-size:12px!important;min-height:32px!important;white-space:nowrap}
.candidate-heading-actions{flex-shrink:0;align-items:center}
.candidate-heading{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.candidate-heading>div:first-child{flex:1;min-width:0}
.candidate-heading h2{white-space:normal;overflow:visible}
#toggleCandidatePanel{min-width:83px}
.processing{position:relative;padding-right:31px!important;cursor:wait!important}
.processing:after{content:"";position:absolute;right:10px;top:calc(50% - 7px);width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:fix-spin .7s linear infinite}
@keyframes fix-spin{to{transform:rotate(360deg)}}
#candidateScanStatus{margin-top:10px;line-height:1.5}
#unusedSafetyNote{margin:8px 0 12px;max-width:900px}
.history-scroll td:last-child{min-width:115px}
@media(max-width:720px){.candidate-heading{flex-direction:column}.candidate-heading-actions{width:100%}}

.unused-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:9px 0}.unused-actions label{display:flex;gap:6px;align-items:center;font-size:12px}.candidate-table th:first-child,.candidate-table td:first-child{width:72px}.candidate-heading button.processing{min-width:135px}.candidate-heading .btn{max-width:100%}

/* v107 – výrazná presná zhoda pri nahlasovaní, kompaktná akcia v histórii */
.candidate-similar-title{font-weight:700;margin-bottom:7px;line-height:1.4}
.candidate-exact-title{display:inline-block;color:#9a3412;background:#ffedd5;border:1px solid #fdba74;border-radius:6px;padding:5px 9px}
.candidate-neighbor.candidate-exact-row{background:#fff7ed;border:1px solid #fdba74;border-radius:7px;padding:8px 10px;margin:6px 0;align-items:flex-start}
.candidate-exact-name{color:#9a3412;font-weight:800}
.history-scroll .history-restore-glossary,.history-scroll .history-restore-update,.history-scroll .history-restore-product{font-size:12px!important;font-weight:600!important;padding:5px 9px!important;min-height:28px!important;white-space:nowrap;border-radius:6px;color:#475467;background:#f8fafc;border:1px solid #d0d5dd}
.history-scroll .history-restore-glossary:hover,.history-scroll .history-restore-update:hover,.history-scroll .history-restore-product:hover{background:#eaf2ff;color:#175cd3}

/* v108 – odkazy podľa jazyka: kompaktné tabuľky */
.links-card{padding:20px 22px;max-width:1180px}
.links-card>h2{margin:0 0 6px;font-size:18px}
.links-intro{margin:0 0 17px}
.links-accordion{border:1px solid #d0d5dd;border-radius:10px;margin:11px 0;overflow:hidden;background:#fff}
.links-accordion>summary{cursor:pointer;list-style:none;padding:14px 17px;font-weight:750;display:flex;justify-content:space-between;align-items:center;gap:14px}
.links-accordion>summary::-webkit-details-marker{display:none}
.links-accordion[open]>summary{border-bottom:1px solid #e4e7ec;background:#f9fafb}
.links-chevron{width:9px;height:9px;border-right:2px solid #667085;border-bottom:2px solid #667085;transform:rotate(45deg);margin-right:4px;flex:none}
.links-accordion[open] .links-chevron{transform:rotate(225deg)}
.links-table-wrap{overflow-x:auto}
.links-table{width:100%;min-width:520px;table-layout:fixed;border-collapse:collapse;font-size:13px}
.links-col-lang{width:65px}.links-col-name{width:33%}.links-col-url{width:auto}
.links-table th,.links-table td{padding:9px 12px;vertical-align:middle;line-height:1.4;overflow-wrap:anywhere}
.links-table th{position:static}
.links-table .links-lang{font-weight:750}
.links-cell{display:flex;align-items:center;gap:7px;min-width:0}
.links-value{min-width:0;overflow-wrap:anywhere}
.links-url{min-width:0;overflow-wrap:anywhere;color:#175cd3;text-decoration:none}
.links-url:hover{text-decoration:underline}
.links-no-url{color:#98a2b3}
.links-copy{margin-left:auto;flex:none;display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;border:1px solid #e4e7ec;border-radius:7px;background:#fff;color:#475467;font-size:16px;cursor:pointer}
.links-copy:hover,.links-copy:focus-visible{background:#eff6ff;border-color:#84adff;color:#175cd3}
@media(max-width:640px){.links-card{padding:14px}.links-col-name{width:39%}.links-table th,.links-table td{padding:8px 7px}}
/* v109: Odkazy */
.links-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.links-toolbar{display:flex;gap:8px;flex-wrap:wrap}
.links-status{font-size:12px;margin:0 0 8px}.links-status:empty{display:none}.links-error{color:#b42318}
.links-col-name{width:30%}.links-col-lang{width:64px}.links-col-edit{width:86px}
.links-edit-row{font-size:12px;padding:6px 10px;white-space:nowrap}
.links-add-row{padding:10px 12px;border-top:1px solid #eaecf0;background:#fafbfc}
.links-add-row .btn{font-size:12px}
.links-edit-card{max-width:560px;width:min(560px,94vw)}
.links-form-grid{display:grid;gap:12px;margin:15px 0}
.links-form-grid label,.links-edit-card>label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600}
.links-form-grid input,.links-form-grid select,.links-edit-card>label input{width:100%;padding:10px;border:1px solid #d0d5dd;border-radius:8px;font:inherit;font-weight:400}
.links-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.links-edit-error{color:#b42318;background:#fff1f0;border:1px solid #fecdca;padding:10px;border-radius:8px;font-size:13px}

/* v110 – compact link category actions */
.links-card{max-width:1180px}
.links-accordion{margin:8px 0;border-radius:9px}
.links-accordion>summary{padding:12px 15px}
.links-bulk-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px 12px;background:#fafbfc;border-bottom:1px solid #eaecf0}
.links-bulk-caption{font-size:12px;color:#667085;margin-right:3px}
.links-bulk-copy{padding:6px 10px;border:1px solid #d0d5dd;background:white;border-radius:7px;font:inherit;font-size:12px;font-weight:600;color:#344054;cursor:pointer;min-height:30px}
.links-bulk-copy:hover{background:#eff6ff;border-color:#84adff}
.links-bulk-copy.links-copied{background:#ecfdf3;border-color:#a6f4c5;color:#027a48}
.links-table th,.links-table td{padding:8px 10px}
.links-col-name{width:34%}
.links-col-lang{width:60px}
.links-col-edit{width:82px}
.links-heading{align-items:center}
@media(max-width:640px){.links-bulk-toolbar{gap:5px}.links-bulk-copy{padding:6px 8px}.links-col-name{width:39%}}

/* v112 – kontrola výrazov, stabilné záložky a konkrétne blokované záznamy */
.candidate-conflicts{border:1px solid #f0a7a7;border-radius:9px;background:#fff7f7;padding:14px;margin:12px 0;color:#842029}
.candidate-conflicts p{margin:8px 0}
.candidate-conflict-list{max-height:240px;overflow:auto;border:1px solid #f3c4c4;border-radius:6px;background:white;margin:10px 0}
.candidate-conflict-row{padding:9px 11px;border-bottom:1px solid #f3dddd;font-size:13px;line-height:1.5}
.candidate-conflict-row:last-child{border-bottom:0}
.candidate-conflict-row div{color:#6b3340;overflow-wrap:anywhere}
.candidate-tabs button{opacity:1!important;visibility:visible!important;white-space:nowrap;cursor:pointer}
.candidate-tabs button.active{background:#1269e6!important;color:#fff!important;border-color:#1269e6!important}
.candidate-tabs button:not(.active){background:#fff!important;color:#344054!important;border:1px solid #cbd5e1!important}
#candidateProcessingOverlay{z-index:1500}

.candidate-override-label{display:flex;align-items:center;gap:8px;margin-top:8px;font-weight:600;color:#7f1d1d;cursor:pointer}
.candidate-override-check{width:16px;height:16px;flex:none}
.candidate-conflict-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}

/* v117: bezpečný import Slovníka – schválenie rozdielov */
.glossary-import-review-card{width:min(1120px,96vw);max-height:92vh;display:flex;flex-direction:column;overflow:hidden}
.glossary-import-review-card .modal-header{flex-shrink:0}
.glossary-import-summary{font-size:14px;margin:10px 0;line-height:1.5}
.glossary-import-conflicts{background:#fff5f3;border:1px solid #ffb5a9;color:#85251d;border-radius:8px;padding:12px;margin:8px 0;max-height:140px;overflow:auto;white-space:pre-wrap}
.glossary-import-toolbar{display:flex;gap:20px;justify-content:space-between;flex-wrap:wrap;align-items:center;margin:10px 0}
.glossary-import-toolbar label{display:flex;align-items:center;gap:8px}
.glossary-import-table-wrap{min-height:80px;overflow:auto;border:1px solid #dce2eb;border-radius:8px;flex:1}
.glossary-import-table{width:100%;border-collapse:collapse;font-size:13px}
.glossary-import-table th,.glossary-import-table td{padding:9px;border-bottom:1px solid #e8ecf2;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.glossary-import-table th{position:sticky;top:0;background:#f1f5f9;z-index:1}
.glossary-import-table td:nth-child(4){color:#657185}
.glossary-import-table td:nth-child(5){font-weight:600}
.glossary-import-progress{margin:12px 0;padding:12px;border-radius:8px;background:#edf5ff;color:#1c4169;font-weight:600}
.glossary-import-progress.error{background:#fff0ee;color:#a1281a}
.glossary-import-review-card .modal-actions{flex-shrink:0}

.glossary-import-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:9px 0;font-size:13px}

/* v118: conflict resolution in Slovník import */
.glossary-import-conflicts{max-height:min(40vh,390px);padding:12px;color:#263442;background:#fff8f4;border-color:#e8b79d;white-space:normal;flex-shrink:0}
.import-conflict-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.import-conflict-scroll{max-height:260px;overflow:auto;border:1px solid #dce2eb;border-radius:7px;background:#fff}
.import-conflict-scroll table{table-layout:fixed;width:100%}
.import-conflict-scroll th:nth-child(1){width:25%}
.import-conflict-scroll th:nth-child(2){width:8%}
.import-conflict-scroll th:nth-child(3){width:30%}
.import-conflict-scroll th:nth-child(4){width:37%}
.conflict-choice{width:100%;min-width:160px;border:1px solid #bbc7d8;border-radius:6px;padding:7px;font-size:13px;background:#fff;color:#202d40}
.import-choice-hint{font-size:11px;color:#4a697f;margin-top:4px}
.glossary-import-review-card{max-height:94vh}
.glossary-import-review-card .glossary-import-table-wrap{min-height:52px}

/* V119: compact product context for each proposed expression */
.candidate-product-examples{display:flex;flex-direction:column;gap:6px;min-width:280px;max-width:620px;white-space:normal;line-height:1.45}
.candidate-product-example{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line,#e5e7eb);padding-bottom:5px}
.candidate-product-code{white-space:nowrap;font-variant-numeric:tabular-nums}
.candidate-name-highlight{background:#fff1a8;color:#302400;border-radius:3px;padding:1px 2px;font-weight:700}
.candidate-table{min-width:850px}
.candidate-table td{vertical-align:top}

/* v123: distinguish administrative actions and review state */
.edit-cell .edit-en-btn{color:#175cd3;font-weight:750}.edit-cell .approve-review-btn{color:#07834d;font-weight:750}.edit-cell .admin-action-divider{color:#98a2b3;padding:0 8px}.status.review{background:#fff4e5;color:#a15c00}

/* v124 – hromadné schvaľovanie produktov */
.approval-toolbar{display:flex;gap:12px;align-items:center;margin:10px 0;padding:12px 15px;flex-wrap:wrap;background:#f4f9ff;border-color:#b8d5f5}
.approval-toolbar #clearApprovalSelection{margin-left:auto}
.approval-row-check{width:15px;height:15px;vertical-align:middle;accent-color:#1769d2;margin-right:5px}
.approval-all-label{display:block;font-size:11px;font-weight:500;white-space:nowrap;margin-top:6px;cursor:pointer}
.approval-all-label input{vertical-align:middle;accent-color:#1769d2}
.approval-progress{border:1px solid #b8d5f5;background:#f4f9ff;padding:9px 14px;border-radius:8px;margin:8px 0;font-size:13px}

/* v125 – kontrola názvov, hromadné schvaľovanie a skryté produkty */
.approval-row-check{margin-left:9px;margin-right:0;vertical-align:middle}
.product-review-filters{display:flex;flex-wrap:wrap;gap:12px;margin:9px 0 5px;font-size:12px}
.product-review-filters label{display:flex;align-items:center;gap:5px;cursor:pointer}
.repeated-word{background:#ffda78;color:#35260a;border-radius:3px;padding:1px 2px}
.suspect-english{background:#ffe2a6;color:#5f3b00;border-bottom:2px solid #d88a15;border-radius:2px}
.remove-product-cell{text-align:center;min-width:62px}.remove-product-head{white-space:nowrap}
.archive-product-btn{border:0;background:transparent;color:#cb2b2b;font-size:22px;font-weight:650;cursor:pointer;padding:3px 8px}
.restore-product-btn{border:1px solid #d0d5dd;border-radius:6px;background:white;color:#1455a0;cursor:pointer;padding:5px 8px}
/* v126: compact context-aware English preservation and review controls */
.retained-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:9px 0}
.retained-form input{min-width:260px;flex:2}.retained-form select{flex:1;min-width:180px}
.retained-list{display:grid;gap:5px;max-height:250px;overflow-y:auto;margin-top:8px}
.retained-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border,#ddd);padding:5px 3px}
.retained-entry small{color:var(--muted,#777);margin-left:10px}.retained-entry button{color:#b42318;font-weight:700;font-size:20px}
.translation-review-actions{display:flex;gap:12px;margin-top:4px;white-space:nowrap;font-size:11px}
.translation-review-actions button{font-size:11px!important;padding:1px!important}
.translation-review-actions button:last-child{color:#bf2929}
.export-div-options{margin-top:8px;display:flex;flex-direction:column;gap:4px;font-size:12px}
.export-div-levels{display:flex;gap:15px}.export-div-options small{color:var(--muted,#777)}

/* v131 compact export options and imported EN quality diagnostics */
.export-div-options.export-div-dropdown{display:block;margin-top:4px;font-size:12px}
.export-div-dropdown>summary{cursor:pointer;color:var(--muted,#667085);font-weight:600;list-style:disclosure-closed}
.export-div-dropdown[open]>summary{list-style:disclosure-open}
.export-div-dropdown .export-div-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:7px 0 2px}
.export-div-dropdown .export-div-levels{gap:8px}
.status.repair{background:#fff1e6;color:#ad5000}
.en-issue-tag{display:inline-block;margin-left:6px;color:#a34f05;font-size:10px;font-weight:700;white-space:nowrap}

/* v139: samostatné členenia a kompaktný export */
#divisionsTab .card{margin-bottom:12px}#catalogBody td{vertical-align:top}#catalogBody .btn{white-space:nowrap}.export-dialog-levels{display:flex;flex-direction:column;gap:12px;margin:16px 0}.export-dialog-levels label{display:flex;align-items:center;gap:8px}#catalogProgress{padding:8px 0}#catalogProposals table{min-width:680px}#catalogBody .catalog-lang-count{white-space:nowrap}#divisionsTab .products-control-grid{display:block}#divisionsTab .products-control-grid>.card{width:100%;max-width:none}

/* v140 – schválený prehľad Produkty: úzky preklad, široké filtre, úzky import */
.products-three-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr) minmax(0,1fr);gap:12px;margin-top:12px;align-items:stretch}
.products-three-columns>.card{min-width:0;padding:16px;display:flex;flex-direction:column;gap:10px;height:100%}
.products-three-columns h2{font-size:16px;margin:0 0 6px}
.products-three-columns .products-lang-card .compact-products-langs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;max-width:none}
.products-three-columns .products-lang-card .compact-products-langs .lang-chip{width:auto;min-width:0;padding:5px;font-size:12px}
.products-three-columns .products-lang-card .language-heading-actions{display:flex;gap:6px;flex-wrap:wrap}
.products-three-columns .products-lang-card .translation-language-heading{display:flex;flex-wrap:wrap;gap:5px}
.products-three-columns .products-lang-card>p{font-size:12px;line-height:1.45}
.products-three-columns .products-filter-card .form-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.products-three-columns .products-filter-card .form-grid>label:nth-child(1),.products-three-columns .products-filter-card .form-grid>label:nth-child(2){grid-column:span 3}
.products-three-columns .products-filter-card .form-grid>label:nth-child(3){grid-column:span 2}
.products-three-columns .products-filter-card .form-grid>.status-columns-inline{grid-column:span 4;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}
.products-three-columns .products-filter-card .form-grid>.status-columns-inline>label{min-width:0}
.products-three-columns .products-filter-card .form-grid select{width:100%;min-width:0}
.products-three-columns .products-filter-card .product-review-filters{display:flex;flex-wrap:wrap;gap:7px}
.products-three-columns .products-io-card{justify-content:flex-start}
.products-three-columns .products-io-card .import-export-grid{display:flex;flex-direction:column;gap:7px}
.products-three-columns .products-io-card .import-export-item{width:100%;display:flex;flex-direction:column;gap:3px}
.products-three-columns .products-io-card .import-export-item .btn{align-self:stretch}
.products-three-columns .products-io-card .import-export-item p{font-size:11px}
.products-three-columns .products-io-card .import-export-bulk{margin-top:8px}
.products-three-columns .products-io-card .import-export-bulk .btn{width:100%}
@media(max-width:1100px){.products-three-columns{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr)}.products-three-columns .products-io-card{grid-column:1/-1}}
@media(max-width:750px){.products-three-columns{grid-template-columns:1fr}.products-three-columns .products-io-card{grid-column:auto}}

/* v140 – Členenia: zjednotené karty, bezpečný náhľad importu */
#divisionsTab{max-width:1450px;margin-inline:auto}
#divisionsTab>.card{margin-bottom:14px;padding:18px 20px}
#divisionsTab>.section-tools{align-items:center;gap:12px}
#divisionsTab>.section-tools>div:first-child{max-width:720px}
#divisionsTab .card-title-row{flex-wrap:wrap;gap:12px}
#divisionsTab .catalog-actions{border-top:1px solid var(--line);padding-top:13px;margin-top:12px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
#divisionsTab #catalogLangChoices{display:grid;grid-template-columns:repeat(8,minmax(0,70px));gap:5px;max-width:100%}
#divisionsTab #catalogLangChoices .lang-chip{padding:5px 7px}
#divisionsTab .catalog-technical-import{padding:13px 20px}
#divisionsTab .catalog-technical-import summary{cursor:pointer;font-weight:700}
#divisionsTab .catalog-technical-import p{margin:10px 0}
#divisionsTab .catalog-import-preview-wrap{max-height:440px;overflow:auto;margin:12px 0}
#divisionsTab .catalog-import-preview-wrap table{min-width:960px}
#divisionsTab .catalog-import-preview-wrap th{background:#f9fafb}
#divisionsTab .catalog-import-preview-wrap td{vertical-align:middle}
#divisionsTab .catalog-rename-choice{max-width:300px;min-width:220px}
#divisionsTab .catalog-import-conflicts{border:1px solid #f1a19b;background:#fff6f4;color:#a33121;padding:10px;border-radius:8px;margin-top:10px}
@media(max-width:900px){#divisionsTab #catalogLangChoices{grid-template-columns:repeat(5,minmax(0,70px))}}

/* v141 – tabuľkový pohľad na členenia podľa schváleného kontrolného nástroja */
#divisionsTab{max-width:1400px;margin:0 auto}
#divisionsTab>.card{margin-bottom:14px}
#divisionsTab>.catalog-head{padding:18px 22px}
#divisionsTab .catalog-head h2{margin:0 0 6px}
#divisionsTab .catalog-head .sync-status{font-size:12px;margin-top:8px}
#divisionsTab .catalog-main-card{padding:0;overflow:hidden}
#divisionsTab .catalog-controls{padding:18px 20px 11px}
#divisionsTab .catalog-controls-title{display:flex;align-items:baseline;gap:12px}
#divisionsTab .catalog-controls-title h2{margin:0 0 12px}
#divisionsTab .catalog-filter-row{display:grid;grid-template-columns:minmax(0,1fr) 170px 150px;gap:12px;align-items:end}
#divisionsTab .catalog-filter-row label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#475467}
#divisionsTab .catalog-filter-row input,#divisionsTab .catalog-filter-row select{height:38px}
#divisionsTab .catalog-bulk{margin-top:12px;border:1px solid #e3e8ef;border-radius:8px;background:#fbfcff}
#divisionsTab .catalog-bulk summary{padding:10px 12px;cursor:pointer;font-weight:700;font-size:12px;color:#344054}
#divisionsTab .catalog-bulk .catalog-actions{margin:0;padding:10px 12px;display:block;border-top:1px solid #e3e8ef}
#divisionsTab .catalog-actions-footer{display:flex;gap:10px;align-items:center;margin-top:9px}
#divisionsTab #catalogLangChoices{grid-template-columns:repeat(8,minmax(0,1fr));max-width:850px}
#divisionsTab .catalog-table-scroll{max-height:630px;overflow:auto;border-top:1px solid #e3e8ef}
#divisionsTab .catalog-data-table{min-width:1120px;font-size:12px;table-layout:fixed;border-collapse:separate;border-spacing:0}
#divisionsTab .catalog-data-table th,#divisionsTab .catalog-data-table td{padding:10px 9px;border-bottom:1px solid #e7ebf0;border-right:1px solid #e9edf2;vertical-align:middle;overflow-wrap:anywhere}
#divisionsTab .catalog-data-table th{background:#edf2f9;color:#30445f;font-size:11px;z-index:3}
#divisionsTab .catalog-data-table thead tr:nth-child(2) th{top:30px;background:#f4f7fb;z-index:3}
#divisionsTab .catalog-data-table thead tr:first-child th{top:0;height:30px}
#divisionsTab .catalog-data-table td{line-height:1.4;min-height:44px}
#divisionsTab .catalog-data-table tbody tr:hover td{background:#f5f9ff}
#divisionsTab .catalog-data-table .catalog-rowno{width:54px;text-align:center;color:#5f6f89;font-variant-numeric:tabular-nums}
#divisionsTab .catalog-data-table .catalog-pick{width:54px}
#divisionsTab .catalog-data-table .catalog-en-col{width:165px}
#divisionsTab .catalog-data-table .catalog-actions-col{width:143px}
#divisionsTab .catalog-data-table td.catalog-current{font-weight:600;color:#192d49}
#divisionsTab .catalog-data-table .catalog-invalid td{background:#fff7f2}
#divisionsTab .catalog-data-warning{border:1px solid #f2be9a;background:#fff8f1;color:#92400e;border-radius:8px;padding:10px 12px;margin:10px 0;font-size:12px}
#divisionsTab .catalog-bottom{display:flex;justify-content:space-between;align-items:center;padding:11px 15px;gap:14px;font-size:12px;color:#667085}
#divisionsTab .catalog-fold{padding:0;overflow:hidden}
#divisionsTab .catalog-fold>summary{list-style:none;cursor:pointer;padding:17px 20px;font-weight:750;font-size:15px}
#divisionsTab .catalog-fold>summary::-webkit-details-marker{display:none}
#divisionsTab .catalog-fold>summary:after{content:'+';float:right;color:#667085;font-size:20px;line-height:16px}
#divisionsTab .catalog-fold[open]>summary:after{content:'−'}
#divisionsTab .catalog-fold[open]>summary{border-bottom:1px solid #e7ebf0}
#divisionsTab .catalog-fold-content{padding:18px 20px}
#divisionsTab .catalog-embedded{padding:0}
#divisionsTab .catalog-embedded h3{margin:10px 0}
@media(max-width:780px){#divisionsTab .catalog-filter-row{grid-template-columns:1fr 1fr}#divisionsTab .catalog-search-label{grid-column:1/-1}#divisionsTab #catalogLangChoices{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* v142: kompaktna kontrola cleneni, rovnake proporcie ako povodny QA nastroj */
#divisionsTab{max-width:1390px;margin:0 auto}
#divisionsTab>.catalog-head{padding:12px 18px;min-height:0;align-items:center}
#divisionsTab .catalog-head h2{font-size:16px;margin:0 0 3px}
#divisionsTab .catalog-head p{margin:0;font-size:12px}
#divisionsTab .catalog-head .sync-status{margin-top:3px;min-height:0}
#divisionsTab .catalog-head .top-actions{display:flex;align-items:center;gap:8px}
#divisionsTab .catalog-head .top-actions>.btn{min-height:32px;padding:6px 13px;font-size:12px}
#divisionsTab .catalog-controls{padding:12px 15px 10px}
#divisionsTab .catalog-controls-title h2{font-size:15px;margin:0 0 5px}
#divisionsTab .catalog-filter-row{grid-template-columns:minmax(0,1fr) 145px 115px;gap:8px}
#divisionsTab .catalog-filter-row label{font-size:11px;gap:3px}
#divisionsTab .catalog-filter-row input,#divisionsTab .catalog-filter-row select{height:32px;padding:5px 9px;font-size:12px}
#divisionsTab .catalog-bulk{margin-top:8px}
#divisionsTab .catalog-bulk summary{padding:7px 10px;font-size:12px}
#divisionsTab #catalogLangChoices{display:flex;flex-wrap:wrap;gap:5px;max-width:none}
#divisionsTab #catalogLangChoices .lang-chip{display:inline-flex;flex:0 0 auto;align-items:center;gap:4px;min-height:25px;width:auto;padding:3px 7px;font-size:11px;border-radius:5px}
#divisionsTab #catalogLangChoices .lang-chip input{margin:0;width:13px;height:13px}
#divisionsTab .catalog-table-scroll{max-height:640px}
#divisionsTab .catalog-data-table{table-layout:auto;min-width:1080px;font-size:11px}
#divisionsTab .catalog-data-table th,#divisionsTab .catalog-data-table td{padding:7px 8px;overflow-wrap:normal;word-break:normal}
#divisionsTab .catalog-data-table td{line-height:1.35}
#divisionsTab .catalog-data-table .catalog-actions-col{width:120px}
#divisionsTab .catalog-data-table .catalog-en-col{width:155px}
#divisionsTab .catalog-data-table .catalog-rowno{width:50px}
#divisionsTab .catalog-data-table .catalog-pick{width:42px}
#divisionsTab #catalogBody .btn.tiny{padding:4px 7px;font-size:11px}
@media(max-width:900px){#divisionsTab .catalog-filter-row{grid-template-columns:minmax(0,1fr) 110px 105px}}

/* v143: same left edge and width as Produkty / Slovník */
#divisionsTab{max-width:none;margin:0;width:100%;}
#divisionsTab .catalog-main-card{overflow:hidden;}
#divisionsTab .catalog-filter-row{grid-template-columns:minmax(0,1fr) 135px;}
#divisionsTab .catalog-controls{padding:12px 16px 9px;}
#divisionsTab .catalog-table-scroll{overflow:auto;max-height:645px;position:relative;scrollbar-gutter:stable;}
#divisionsTab .catalog-data-table{width:max-content;min-width:100%;table-layout:fixed;font-size:11px;}
#divisionsTab .catalog-data-table th,#divisionsTab .catalog-data-table td{min-width:145px;max-width:235px;padding:8px 9px;white-space:normal;overflow-wrap:break-word;}
#divisionsTab .catalog-data-table .catalog-rowno{min-width:52px;max-width:52px;width:52px;}
#divisionsTab .catalog-data-table .catalog-pick{min-width:52px;max-width:52px;width:52px;}
#divisionsTab .catalog-data-table .catalog-actions-sticky{position:sticky;left:0;z-index:4;min-width:74px;max-width:74px;width:74px;background:#fff;box-shadow:1px 0 0 #e7ebf0;}
#divisionsTab .catalog-data-table thead .catalog-actions-sticky{background:#edf2f9;z-index:8;}
#divisionsTab .catalog-data-table .catalog-en-sticky{position:sticky;left:178px;z-index:4;min-width:200px;max-width:200px;width:200px;background:#fff;box-shadow:2px 0 3px #dfe4ea;}
#divisionsTab .catalog-data-table thead .catalog-en-sticky{background:#edf2f9;z-index:8;}
#divisionsTab .catalog-data-table .catalog-empty{background:#fffaf0;}
#divisionsTab .catalog-data-table tbody tr:hover .catalog-actions-sticky,#divisionsTab .catalog-data-table tbody tr:hover .catalog-en-sticky{background:#f5f9ff;}
#divisionsTab .catalog-data-table .glossary-actions{display:flex;gap:4px;align-items:center;}
#divisionsTab .catalog-data-table .glossary-icon-btn{min-width:26px;width:26px;height:27px;}
#divisionsTab .catalog-data-table .glossary-icon-btn svg{width:16px;height:16px;}
#divisionsTab .catalog-fold-content .catalog-embedded{padding:0;}
/* v143: reduce excess space without shrinking Import / Export */
.products-three-columns{align-items:start;}
.products-three-columns>.card{height:auto;min-height:0;padding:15px;gap:8px;}
.products-three-columns .products-lang-card .compact-products-langs{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;}
.products-three-columns .products-lang-card .compact-products-langs .lang-chip{min-height:28px;padding:4px 8px;}
.products-three-columns .products-filter-card{min-height:0;}
@media(max-width:800px){#divisionsTab .catalog-filter-row{grid-template-columns:1fr;}#divisionsTab .catalog-data-table .catalog-en-sticky{left:178px;}}


/* v144 – schvalene dvojpanelove rozlozenie Produktov */
#productsTab .products-dual-grid{display:grid;grid-template-columns:minmax(310px,1fr) minmax(470px,1.38fr);gap:14px;margin:12px 0;align-items:start}
#productsTab .products-dual-grid>.card{padding:20px;min-width:0;min-height:0;height:auto;display:flex;flex-direction:column;gap:12px}
#productsTab .products-translation-card>h2{margin:0;font-size:17px}
#productsTab .products-translation-card>p.muted{font-size:12px;line-height:1.55;margin:0}
#productsTab .products-translation-card .translation-language-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
#productsTab .products-translation-card .language-heading-actions{display:flex;gap:12px;flex-wrap:wrap}
#productsTab .products-translation-card .select-all-languages{font-size:12px;display:inline-flex;gap:5px;align-items:center;white-space:nowrap}
#productsTab .products-translation-card .compact-products-langs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 30px;max-width:290px;width:100%;margin-top:4px}
#productsTab .products-translation-card .compact-products-langs .lang-chip{border:0;background:transparent;box-shadow:none;padding:3px 0;width:auto;min-width:0;display:flex;align-items:center;gap:9px;font-size:13px;white-space:nowrap}
#productsTab .products-translation-card .compact-products-langs .lang-chip input{width:16px;height:16px;margin:0;flex-shrink:0}
#productsTab .filters-card>.card-title-row{margin-bottom:0}
#productsTab .filters-card .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;align-items:end}
#productsTab .filters-card .form-grid>label:nth-child(3){grid-column:1/-1}
#productsTab .filters-card .form-grid>.status-columns-inline{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
#productsTab .filters-card .form-grid select{width:100%;min-width:0}
#productsTab .filters-card .filters-clear-line{text-align:right;margin:-3px 0 -5px}
#productsTab .filters-card .filters-clear-line button{font-size:12px}
#productsTab .filters-card .search-label{margin-top:2px}
#productsTab .filters-card .product-review-filters{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:0}
#productsTab .filters-card .product-review-filters label{font-size:12px}
#productsTab .import-export-compact{margin:0 0 12px;padding:18px 20px;display:flex;flex-direction:column;gap:12px}
#productsTab .import-export-compact .import-export-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}
#productsTab .import-export-compact .import-export-item{border:1px solid var(--line);border-radius:10px;padding:12px;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:7px}
#productsTab .import-export-compact .import-export-item .btn{align-self:stretch}
#productsTab .import-export-compact .import-export-item p{margin:0;font-size:12px;line-height:1.5}
#productsTab .import-export-compact .import-export-bulk{padding-top:12px;border-top:1px solid var(--line)}
@media(max-width:1050px){#productsTab .products-dual-grid{grid-template-columns:1fr}#productsTab .import-export-compact .import-export-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){#productsTab .import-export-compact .import-export-grid{grid-template-columns:1fr}}

/* v144 – vsetky urovne WEB2/WEB3/WEB4 v jednom riadku; pevne EN stlpce */
#divisionsTab .catalog-data-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;table-layout:fixed}
#divisionsTab .catalog-data-table th,#divisionsTab .catalog-data-table td{min-width:156px;width:156px;max-width:200px;padding:8px 9px;white-space:normal;overflow-wrap:break-word}
#divisionsTab .catalog-data-table th{position:sticky;top:0;z-index:3}
#divisionsTab .catalog-data-table .catalog-actions-sticky{position:sticky;left:0;min-width:72px;width:72px;max-width:72px;z-index:7;background:#fff}
#divisionsTab .catalog-data-table .catalog-pick-sticky{position:sticky;left:72px;min-width:42px;width:42px;max-width:42px;text-align:center;z-index:7;background:#fff}
#divisionsTab .catalog-data-table .catalog-en-sticky{position:sticky;min-width:170px;width:170px;max-width:170px;z-index:6;background:#fff;box-shadow:1px 0 0 #dfe4ea}
#divisionsTab .catalog-data-table .catalog-en-1{left:114px}
#divisionsTab .catalog-data-table .catalog-en-2{left:284px}
#divisionsTab .catalog-data-table .catalog-en-3{left:454px}
#divisionsTab .catalog-data-table thead .catalog-actions-sticky,#divisionsTab .catalog-data-table thead .catalog-pick-sticky,#divisionsTab .catalog-data-table thead .catalog-en-sticky{z-index:10;background:#edf2f9}
#divisionsTab .catalog-data-table tbody tr:hover .catalog-actions-sticky,#divisionsTab .catalog-data-table tbody tr:hover .catalog-pick-sticky,#divisionsTab .catalog-data-table tbody tr:hover .catalog-en-sticky{background:#f5f9ff}
#divisionsTab .catalog-table-scroll{max-height:645px;overflow:auto;position:relative}
#divisionsTab .catalog-filter-row{grid-template-columns:minmax(0,1fr) 160px}

#divisionsTab .ai-connect-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin:12px 0}
#divisionsTab .ai-connect-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px}
#divisionsTab .ai-connect-grid input{width:100%;padding:9px;border:1px solid var(--line);border-radius:8px}
#divisionsTab .ai-bridge-result{white-space:pre-wrap;font-size:12px;line-height:1.55;margin-top:12px;max-height:440px;overflow:auto}
#divisionsTab .catalog-data-table.catalog-one-level .catalog-en-sticky{left:114px}
@media(max-width:700px){#divisionsTab .ai-connect-grid{grid-template-columns:1fr}}

#divisionsTab .catalog-data-table.catalog-readonly .catalog-en-1{left:0}
#divisionsTab .catalog-data-table.catalog-readonly .catalog-en-2{left:170px}
#divisionsTab .catalog-data-table.catalog-readonly .catalog-en-3{left:340px}
#divisionsTab .catalog-data-table.catalog-readonly.catalog-one-level .catalog-en-sticky{left:0}

/* v145 – kompaktne rozlozenie Produktov, 58 % pracovny stlpec / 42 % import */
#productsTab .products-workspace{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(330px,1fr);gap:14px;align-items:start;margin:12px 0}
#productsTab .products-left-stack,#productsTab .products-right-stack{min-width:0}
#productsTab .products-dual-grid{display:flex;flex-direction:column;gap:14px;margin:0}
#productsTab .products-dual-grid>.card{width:100%;padding:18px 20px}
#productsTab .products-translation-card .compact-products-langs{grid-template-columns:repeat(5,minmax(0,1fr));max-width:100%;gap:13px 12px}
#productsTab .products-translation-card .compact-products-langs .lang-chip{font-size:12px;gap:7px}
#productsTab .import-export-compact{margin:0;gap:14px;padding:18px 20px}
#productsTab .import-export-compact .import-export-grid{display:flex;flex-direction:column;gap:12px}
#productsTab .import-export-compact .import-export-item{width:100%}
#productsTab .import-export-compact .import-export-bulk{display:flex;flex-direction:column;align-items:stretch;gap:8px}
#productsTab .filters-card .form-grid>label:nth-child(3){grid-column:auto}
#productsTab .filters-card .form-grid>.status-columns-inline{grid-column:1/-1}
@media(max-width:1020px){#productsTab .products-workspace{grid-template-columns:1fr}#productsTab .products-translation-card .compact-products-langs{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:540px){#productsTab .products-translation-card .compact-products-langs{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* v145 – editacia celej cesty clenenia vo vsetkych jazykoch */
#divisionsTab .catalog-edit-card{width:min(1160px,97vw);max-height:92vh}
#divisionsTab .catalog-edit-level{padding:14px 0 20px;border-bottom:1px solid #e7ebf0}
#divisionsTab .catalog-edit-level h3{font-size:15px;margin:0 0 14px}
#divisionsTab .catalog-edit-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#divisionsTab .catalog-level-selector{display:flex;flex-direction:column;gap:8px;margin:0 0 12px}
#divisionsTab .catalog-level-options{display:flex;gap:20px;flex-wrap:wrap}
#divisionsTab .catalog-level-options label{display:flex;gap:6px;align-items:center;font-size:13px}
@media(max-width:700px){#divisionsTab .catalog-edit-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#divisionsTab .catalog-edit-fields{grid-template-columns:1fr}}


/* v146 – zarovnane karty v dvojstlpcovom rozlozeni Produktov */
#productsTab .products-workspace{
  grid-template-columns:minmax(0,1.38fr) minmax(330px,1fr);
  align-items:stretch;
}
#productsTab .products-left-stack{display:flex;flex-direction:column;min-width:0}
#productsTab .products-right-stack{display:flex;flex-direction:column;min-width:0}
#productsTab .products-right-stack>.import-export-compact{
  width:100%;height:100%;min-height:100%;
  display:flex;flex-direction:column;justify-content:space-between;
  align-items:stretch;text-align:left;
}
#productsTab .products-right-stack>.import-export-compact>div:first-child{
  width:100%;margin:0;text-align:left;align-self:stretch;
}
#productsTab .products-right-stack #importExportTitle{
  text-align:left;margin:0 0 8px 0;
}
#productsTab .products-right-stack #databaseSyncStatus,
#productsTab .products-right-stack #importUpdateTimes{text-align:left}
#productsTab .filters-card .form-grid>.status-columns-inline{
  display:grid;
  grid-template-columns:minmax(190px,48%) max-content;
  justify-content:start;align-items:end;gap:12px;
}
#productsTab .filters-card .status-columns-inline>label{min-width:0}
#productsTab .filters-card .status-columns-inline .column-picker-wrap{justify-self:start}
@media(max-width:1020px){
  #productsTab .products-workspace{grid-template-columns:1fr;align-items:start}
  #productsTab .products-right-stack>.import-export-compact{height:auto;min-height:0;justify-content:flex-start}
}
@media(max-width:480px){
  #productsTab .filters-card .form-grid>.status-columns-inline{grid-template-columns:minmax(130px,1fr) auto}
}


/* v147 – Preklad produktov across full width; Filters + Import/Export below.
   No fixed heights, no space-between; cards follow their content. */
#productsTab .products-workspace{
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:stretch;
  margin:12px 0;
  min-width:0;
}
#productsTab .products-workspace>.products-translation-card{
  width:100%;min-width:0;height:auto;min-height:0;
  padding:18px 20px;display:flex;flex-direction:column;gap:12px;
}
#productsTab .products-workspace>.products-translation-card .compact-products-langs{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  max-width:none;width:100%;gap:13px 18px;
}
#productsTab .products-bottom-grid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;align-items:start;min-width:0;
}
#productsTab .products-bottom-grid>.filters-card,
#productsTab .products-bottom-grid>.import-export-compact{
  box-sizing:border-box;width:100%;min-width:0;
  height:auto;min-height:0;margin:0;padding:18px 20px;
  display:flex;flex-direction:column;justify-content:flex-start;
  align-items:stretch;gap:12px;text-align:left;
}
#productsTab .products-bottom-grid>.import-export-compact>div:first-child{
  width:100%;margin:0;text-align:left;
}
#productsTab .products-bottom-grid #importExportTitle{
  text-align:left;margin:0 0 5px;
}
#productsTab .products-bottom-grid .import-export-grid{
  display:flex;flex-direction:column;gap:10px;margin:0;width:100%;
}
#productsTab .products-bottom-grid .import-export-item{
  width:100%;margin:0;display:flex;flex-direction:column;gap:5px;
}
#productsTab .products-bottom-grid .import-export-item .btn{width:100%;align-self:stretch}
#productsTab .products-bottom-grid .import-export-bulk{
  margin-top:8px;padding-top:12px;display:flex;flex-direction:column;
  align-items:stretch;gap:7px;
}
#productsTab .products-bottom-grid .import-export-bulk .btn{width:100%}
#productsTab .products-bottom-grid .import-export-bulk p{flex:unset}
#productsTab .products-bottom-grid .filters-card .form-grid>.status-columns-inline{
  grid-template-columns:minmax(140px,50%) max-content;
  justify-content:start;
}
/* The complete heading must remain on a single line, while the column stays compact. */
#divisionsTab .catalog-data-table .catalog-pick-sticky{
  min-width:68px;width:68px;max-width:68px;
  left:72px;white-space:nowrap;overflow-wrap:normal;word-break:normal;
  text-align:center;
}
#divisionsTab .catalog-data-table .catalog-en-1{left:140px}
#divisionsTab .catalog-data-table .catalog-en-2{left:310px}
#divisionsTab .catalog-data-table .catalog-en-3{left:480px}
#divisionsTab .catalog-data-table.catalog-one-level:not(.catalog-readonly) .catalog-en-sticky{left:140px}
#divisionsTab .catalog-data-table.catalog-readonly.catalog-one-level .catalog-en-sticky{left:0}
@media(max-width:900px){
  #productsTab .products-bottom-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  #productsTab .products-workspace>.products-translation-card .compact-products-langs{
    grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 12px;
  }
  #productsTab .products-bottom-grid .filters-card .form-grid>.status-columns-inline{
    grid-template-columns:minmax(120px,1fr) max-content;
  }
}


/* v148 – Variante 2 approved: filters and translation on left, compact import/export on right. */
#productsTab .products-workspace{
  display:grid;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);
  align-items:start;column-gap:14px;margin:12px 0;
}
#productsTab .products-workspace>.products-left-stack{
  display:flex;flex-direction:column;gap:14px;min-width:0;
}
#productsTab .products-left-stack>.filters-card,
#productsTab .products-left-stack>.products-translation-card,
#productsTab .products-workspace>.import-export-compact{
  box-sizing:border-box;width:100%;height:auto;min-height:0;margin:0;
  padding:18px 20px;display:flex;flex-direction:column;
  justify-content:flex-start;align-items:stretch;gap:12px;text-align:left;
}
#productsTab .products-left-stack .filters-card>.card-title-row{align-items:center;margin:0;gap:12px}
#productsTab .products-left-stack .filters-card>.card-title-row h2{margin:0}
#productsTab .products-left-stack .filters-card>.card-title-row .text-btn{flex:0 0 auto;white-space:nowrap;font-size:12px}
#productsTab .products-left-stack .filters-card>.form-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
#productsTab .products-left-stack .filters-card>.form-grid>label:nth-child(3){grid-column:auto}
#productsTab .products-left-stack .product-filter-second-row{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);
  align-items:end;gap:12px;min-width:0;
}
#productsTab .products-left-stack .product-filter-second-row>label{min-width:0}
#productsTab .products-left-stack .product-filter-second-row>.status-columns-inline{
  min-width:0;display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:10px;align-items:end;
}
#productsTab .products-left-stack .product-filter-second-row .column-picker-wrap>.btn{
  min-height:38px;width:auto;white-space:nowrap;
}
#productsTab .products-left-stack .product-filter-search-row{
  display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);
  gap:16px;align-items:center;min-width:0;
}
#productsTab .products-left-stack .product-filter-search-row>.search-label{min-width:0;margin:0}
#productsTab .products-left-stack .product-filter-search-row .multi-article-search{min-width:0;width:100%}
#productsTab .products-left-stack .product-filter-search-row>.product-review-filters{
  display:flex;flex-direction:column;gap:12px;min-width:0;margin:0;
}
#productsTab .products-left-stack .product-filter-search-row>.product-review-filters label{line-height:1.4}
#productsTab .products-left-stack>.products-translation-card .compact-products-langs{
  grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:none;
  gap:13px 17px;margin:0;
}
#productsTab .products-left-stack>.products-translation-card .compact-products-langs .lang-chip{
  width:auto;padding:3px 0;min-width:0;
}
#productsTab .products-left-stack>.products-translation-card .translation-language-heading{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
#productsTab .products-workspace>.import-export-compact .import-export-grid{
  display:flex;flex-direction:column;gap:12px;margin:0;width:100%;
}
#productsTab .products-workspace>.import-export-compact .import-export-item{
  width:100%;margin:0;display:flex;flex-direction:column;gap:7px;
}
#productsTab .products-workspace>.import-export-compact .import-export-item>.btn{width:100%}
#productsTab .products-workspace>.import-export-compact .import-export-bulk{
  width:100%;margin:0;padding-top:12px;display:flex;flex-direction:column;
  gap:7px;align-items:stretch;
}
#productsTab .products-workspace>.import-export-compact .import-export-bulk>.btn{width:100%}
#productsTab .products-workspace>.import-export-compact #importExportTitle{text-align:left}
@media(max-width:980px){
  #productsTab .products-workspace{grid-template-columns:1fr}
  #productsTab .products-left-stack>.products-translation-card .compact-products-langs{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:600px){
  #productsTab .products-left-stack .product-filter-search-row{grid-template-columns:1fr}
  #productsTab .products-left-stack .product-filter-second-row{grid-template-columns:1fr}
  #productsTab .products-left-stack>.products-translation-card .compact-products-langs{grid-template-columns:repeat(3,minmax(0,1fr))}
}


/* v149 – approved layout refinement. All sizing scoped to the Products workspace. */
#productsTab .products-workspace{
  grid-template-columns:minmax(0,1.75fr) minmax(320px,1fr);
  align-items:stretch;
}
#productsTab .products-workspace>.products-left-stack{height:100%}
#productsTab .products-left-stack>.filters-card>.filters-clear-line{
  display:flex;justify-content:flex-end;align-items:center;
  width:100%;margin:0;padding:0;
}
#productsTab .products-left-stack>.filters-card>.card-title-row{justify-content:flex-start}
#productsTab .products-left-stack>.filters-card>.filters-clear-line .text-btn{
  white-space:nowrap;min-height:26px;
}
/* Language chips fill only the space needed, not five huge equal-width columns. */
#productsTab .products-left-stack>.products-translation-card .compact-products-langs{
  display:grid;grid-template-columns:repeat(5,78px);
  width:max-content;max-width:100%;
  justify-content:start;align-content:start;
  column-gap:13px;row-gap:13px;
}
#productsTab .products-left-stack>.products-translation-card .compact-products-langs .lang-chip{
  width:78px;min-width:0;max-width:78px;
  display:flex;align-items:center;justify-content:flex-start;
  padding:4px 3px;gap:7px;
}
#productsTab .products-left-stack>.products-translation-card .compact-products-langs .lang-chip input{
  margin:0;flex:0 0 auto;
}
/* Right card aligned to the bottom of the left stack; distribute height through
   functional cards instead of inserting a large empty band. */
#productsTab .products-workspace>.import-export-compact{
  min-height:100%;height:100%;
  display:flex;flex-direction:column;align-items:stretch;
  justify-content:flex-start;gap:14px;
}
#productsTab .products-workspace>.import-export-compact .import-export-grid{
  display:flex;flex:1 1 auto;flex-direction:column;gap:12px;
}
#productsTab .products-workspace>.import-export-compact .import-export-item{
  display:flex;flex:1 1 0;flex-direction:column;
  justify-content:center;align-items:stretch;
  min-height:88px;gap:6px;
}
#productsTab .products-workspace>.import-export-compact .import-export-bulk{
  flex:0 0 auto;margin-top:0;
  padding-top:12px;gap:7px;
}
@media(max-width:980px){
  #productsTab .products-workspace{grid-template-columns:1fr;align-items:start}
  #productsTab .products-workspace>.import-export-compact{min-height:0;height:auto}
  #productsTab .products-workspace>.import-export-compact .import-export-grid{flex:0 0 auto}
  #productsTab .products-workspace>.import-export-compact .import-export-item{flex:none;min-height:0}
}
@media(max-width:600px){
  #productsTab .products-left-stack>.products-translation-card .compact-products-langs{
    grid-template-columns:repeat(3,78px);column-gap:12px;
  }
}

/* v153: jednotne písmo Členenie 1–3 a Stav vo filtroch Produktov */
#productsTab #filterC1,#productsTab #filterC2,#productsTab #filterC3,#productsTab #filterStatus{font-family:inherit!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;}

/* v153: viditeľné stránkovanie aj pod dlhšou produktovou tabuľkou */
.product-bottom-pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;padding:11px 16px;border-top:1px solid var(--line);font-size:13px}

/* v154 – C3 and Stav labels sit in a dynamically moved row, outside form-grid.
   Match the original C1/C2 label typography and native select appearance. */
#productsTab .products-left-stack .product-filter-second-row > label,
#productsTab .products-left-stack .product-filter-second-row .status-columns-inline > label {
  display:flex;flex-direction:column;gap:6px;
  color:#344054;font-family:inherit;font-size:12px;font-weight:700;
}
#productsTab .products-left-stack .product-filter-second-row select {
  font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;
  color:var(--text);background-color:#fff;
}

/* v156: language selection and macro catalogue */
.catalog-language-panel{margin-top:12px;padding:12px}
.catalog-language-panel .card-title-row{margin-bottom:10px}
#macroTab .catalog-data-table{min-width:100%;width:max-content;font-size:12px}
#macroTab .catalog-data-table th,#macroTab .catalog-data-table td{min-width:155px;max-width:240px;padding:8px 10px;border-bottom:1px solid #e7ebf0;border-right:1px solid #e9edf2}
#macroTab .catalog-data-table th{background:#edf2f9}

/* Fix Prekladac v157: jednotny UI system pre vsetky zalozky.
   Font: Inter, fallback system UI. Typograficky raster 12/13/14/17/22 px.
   Rozostupy: 6/8/12/16/20/24 px. Jazykovy panel: 8 stlpcov, maximalne 2 riadky na PC.
   Vsetky upravy rozlozenia pridavat sem, nie ako individualne inline styly. */
:root{
  --ui-font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --ui-text:13px;--ui-label:12px;--ui-heading:17px;--ui-title:22px;
  --ui-gap-xs:6px;--ui-gap-sm:8px;--ui-gap-md:12px;--ui-gap-lg:16px;
  --ui-border:#e1e6ee;--ui-muted:#667085;
}
body,button,input,select,textarea,table{font-family:var(--ui-font)}
.tab-panel .card h2{font-size:var(--ui-heading);line-height:1.35}
.tab-panel .muted,.tab-panel .sync-status{font-size:var(--ui-text)}
.tab-panel .card-title-row strong{font-size:13px}
#divisionsTab .catalog-language-panel,#macroTab .catalog-language-panel{margin-top:12px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
#divisionsTab .catalog-language-panel .card-title-row,#macroTab .catalog-language-panel .card-title-row{margin:0 0 8px;min-height:24px;gap:16px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
#divisionsTab .glossary-filter-actions,#macroTab .glossary-filter-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
#divisionsTab .glossary-filter-actions .text-btn,#macroTab .glossary-filter-actions .text-btn{white-space:nowrap}
#divisionsTab .glossary-filter-actions .inline-check,#macroTab .glossary-filter-actions .inline-check{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;font-weight:600;margin:0}
#catalogVisibleLanguages,#macroLanguages{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;align-items:stretch}
#catalogVisibleLanguages .lang-chip,#macroLanguages .lang-chip{min-width:0;min-height:36px;display:flex;align-items:center;gap:7px;padding:6px 9px;font-size:12px;font-weight:600;white-space:nowrap}
#catalogVisibleLanguages .lang-chip input,#macroLanguages .lang-chip input{flex:0 0 auto;margin:0}
#divisionsTab .catalog-controls{padding:16px 18px 12px}
#macroTab .macro-main-card{padding:0;overflow:hidden}
#macroTab .catalog-controls{padding:16px 18px 12px}
#macroTab .catalog-controls-title{display:flex;align-items:baseline;gap:10px}
#macroTab .catalog-controls-title h2{margin:0;font-size:14px}
#macroTab .macro-filter-row{margin-top:8px}
#macroTab .macro-filter-row .search-label{margin:0;font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:5px}
#macroTab .macro-filter-row input{height:34px;padding:6px 9px;font-size:13px}
#macroTab .macro-table-scroll{overflow:auto;position:relative;max-height:645px;border-top:1px solid var(--ui-border)}
#macroTab .catalog-bottom{padding:10px 18px;display:flex;justify-content:space-between;align-items:center}
#macroTab .catalog-data-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;table-layout:fixed;font-size:12px}
#macroTab .catalog-data-table th,#macroTab .catalog-data-table td{box-sizing:border-box;width:170px;min-width:170px;max-width:170px;padding:8px 9px;overflow-wrap:break-word;white-space:normal;vertical-align:middle}
#macroTab .catalog-data-table th{position:sticky;top:0;z-index:4;background:#edf2f9}
#macroTab .catalog-data-table .macro-actions-sticky{position:sticky;left:0;width:72px;min-width:72px;max-width:72px;z-index:9;background:#fff}
#macroTab .catalog-data-table .macro-en-sticky{position:sticky;left:72px;z-index:8;background:#fff;box-shadow:2px 0 3px #dfe4ea}
#macroTab .catalog-data-table.catalog-readonly .macro-en-sticky{left:0}
#macroTab .catalog-data-table thead .macro-actions-sticky,#macroTab .catalog-data-table thead .macro-en-sticky{z-index:12;background:#edf2f9}
#macroTab .catalog-data-table tbody tr:hover .macro-actions-sticky,#macroTab .catalog-data-table tbody tr:hover .macro-en-sticky{background:#f5f9ff}
/* Po odstraneni 'Vybrat' je jediny pred EN stlpcami 72px Akcie. */
#divisionsTab .catalog-data-table .catalog-pick-sticky,#divisionsTab .catalog-data-table .catalog-pick{display:none!important}
#divisionsTab .catalog-data-table .catalog-actions-sticky{position:sticky;left:0!important;box-sizing:border-box;width:72px!important;min-width:72px!important;max-width:72px!important;z-index:9!important;background:#fff;box-shadow:1px 0 0 #e1e6ee}
#divisionsTab .catalog-data-table .catalog-en-sticky{position:sticky;box-sizing:border-box;width:170px!important;min-width:170px!important;max-width:170px!important;z-index:8!important;background:#fff;box-shadow:2px 0 3px #dfe4ea}
#divisionsTab .catalog-data-table .catalog-en-1{left:72px!important}
#divisionsTab .catalog-data-table .catalog-en-2{left:242px!important}
#divisionsTab .catalog-data-table .catalog-en-3{left:412px!important}
#divisionsTab .catalog-data-table.catalog-one-level .catalog-en-sticky{left:72px!important}
#divisionsTab .catalog-data-table.catalog-readonly .catalog-en-1{left:0!important}
#divisionsTab .catalog-data-table.catalog-readonly .catalog-en-2{left:170px!important}
#divisionsTab .catalog-data-table.catalog-readonly .catalog-en-3{left:340px!important}
#divisionsTab .catalog-data-table.catalog-readonly.catalog-one-level .catalog-en-sticky{left:0!important}
#divisionsTab .catalog-data-table thead .catalog-actions-sticky,#divisionsTab .catalog-data-table thead .catalog-en-sticky{z-index:12!important;background:#edf2f9!important}
#divisionsTab .catalog-data-table tbody tr:hover .catalog-actions-sticky,#divisionsTab .catalog-data-table tbody tr:hover .catalog-en-sticky{background:#f5f9ff}
@media(max-width:950px){#catalogVisibleLanguages,#macroLanguages{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:620px){#catalogVisibleLanguages,#macroLanguages{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v158: rovnake ovladanie vyberu jazykov ako v Slovniku. */
#divisionsTab .glossary-filter-actions .text-btn,
#macroTab .glossary-filter-actions .text-btn{
  font-size:12px!important;
  font-weight:700;
  line-height:1.4;
  padding:4px 0;
}
#divisionsTab .glossary-filter-actions,
#macroTab .glossary-filter-actions{gap:14px}

/* v159 – jednotný dizajnový štandard: Inter, 12/13/17/22px, raster 6/8/12/16px */
.language-export-card{width:min(560px,calc(100vw - 32px));max-width:560px;padding:20px 22px}
.language-export-card h2{font-size:17px;font-weight:750;line-height:1.35;margin:0 0 12px}
.language-export-card .muted{font-size:13px;line-height:1.45;margin:0 0 16px}
.export-language-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.export-language-toolbar strong{font-size:12px}
.export-language-toolbar .glossary-filter-actions{display:flex;gap:14px;align-items:center}
.export-language-toolbar .text-btn{font-size:12px;font-weight:700;line-height:1.4}
.export-language-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.export-language-grid .lang-chip{font-size:12px;font-weight:600;padding:7px 9px;min-width:0;min-height:34px;gap:7px}
.export-language-grid .lang-chip input{margin:0}
.language-export-card .modal-actions{margin-top:16px}
@media(max-width:560px){.export-language-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.language-export-card{padding:16px}}
/* Makromenu: kazda uroven ma vlastne pozadie, bez zmeny prekladov ani ich poradia */
#macroTab .catalog-data-table tbody tr.macro-kind-main td{background:#e8f4fc!important;color:#0068a8;font-weight:700}
#macroTab .catalog-data-table tbody tr.macro-kind-sub td{background:#f1f3f5!important;color:#20252b;font-weight:700}
#macroTab .catalog-data-table tbody tr.macro-kind-item td{background:#fff!important;color:#20252b;font-weight:400}
#macroTab .catalog-data-table tbody tr.macro-kind-main .macro-en-sticky{background:#e8f4fc!important}
#macroTab .catalog-data-table tbody tr.macro-kind-sub .macro-en-sticky{background:#f1f3f5!important}
#macroTab .catalog-data-table tbody tr.macro-kind-item .macro-en-sticky{background:#fff!important}
#macroTab .catalog-data-table tbody tr td.macro-actions-sticky{font-weight:400}


/* v160 unified buttons and macro layout */
.data-actions-grid{display:grid;grid-template-columns:repeat(4,max-content);gap:10px;align-items:center;justify-content:start}
.data-actions-grid .btn{white-space:nowrap;min-height:36px}
#divisionsTab .data-actions-grid,#macroTab .data-actions-grid{grid-template-columns:repeat(2,max-content)}
#macroTab .macro-filter-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);gap:12px;align-items:end}
#macroTab .catalog-bottom .pagination,#divisionsTab .catalog-bottom .pagination{gap:8px}
#macroTab .catalog-data-table tbody tr.macro-kind-main td{background:#e8f4fc!important;color:#0068a8;font-weight:700}
#macroTab .catalog-data-table tbody tr.macro-kind-sub td{background:#fff!important;color:#20252b;font-weight:700}
#macroTab .catalog-data-table tbody tr.macro-kind-item td{background:#fff!important;color:#20252b;font-weight:400}
#macroTab .catalog-data-table tbody tr.macro-kind-main .macro-en-sticky{background:#e8f4fc!important}
#macroTab .catalog-data-table tbody tr.macro-kind-sub .macro-en-sticky,#macroTab .catalog-data-table tbody tr.macro-kind-item .macro-en-sticky{background:#fff!important}
#macroTab .glossary-modal-card{width:min(980px,96vw)}
#macroTab .section-tools .muted,#glossaryTab .section-tools .muted,#divisionsTab .section-tools .muted{max-width:860px}
@media(max-width:900px){.data-actions-grid{grid-template-columns:repeat(2,max-content)}#macroTab .macro-filter-row{grid-template-columns:1fr}}
@media(max-width:650px){.data-actions-grid,.glossary-action-grid{grid-template-columns:1fr}.data-actions-grid .btn,.glossary-action-grid .btn{width:100%}}


/* v161: spoločný kompaktný štandard pre administráciu; Produkty bez zmien.
   Inter | 12px popisky | 13px text | 17px podnadpis | 22px titul;
   medzery 6/8/12/16px. */
#divisionsTab .data-actions-grid,
#macroTab .data-actions-grid {
  display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;
}
#divisionsTab .data-actions-grid .btn,
#macroTab .data-actions-grid .btn {
  min-height:32px!important;padding:6px 12px!important;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;
  font-size:12px!important;font-weight:700;line-height:1.35;
  border-radius:8px;white-space:nowrap;
}
/* Slovník: vrátiť pôvodnú organizáciu a rozmery akčných tlačidiel */
#glossaryTab .glossary-action-grid{
  display:grid!important;grid-template-columns:max-content max-content;
  gap:10px;align-items:center;justify-content:start;
}
#glossaryTab .glossary-action-grid .btn{
  min-height:39px!important;padding:9px 14px!important;
  font-size:14px!important;font-weight:700!important;
  line-height:1.3;border-radius:9px;
}
#macroTab .macro-filter-row{
  display:grid!important;
  grid-template-columns:minmax(0,1.65fr) minmax(180px,.85fr)!important;
  gap:12px;align-items:end;margin-top:12px;
}
#macroTab .macro-filter-row label {
  display:flex;flex-direction:column;gap:5px;
  min-width:0;margin:0;font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  color:#344054;font-size:12px;font-weight:700;line-height:1.4;
}
#macroTab .macro-filter-row input,
#macroTab .macro-filter-row select{
  height:34px!important;min-height:34px!important;
  padding:6px 10px!important;font-size:13px!important;
  border-radius:8px;line-height:1.4;
}
#macroTab .macro-filter-row .catalog-search-label {min-width:0}
#macroTab .macro-filter-row .catalog-level-label {min-width:180px}
#macroTab .catalog-data-table tbody tr.macro-kind-sub td,
#macroTab .catalog-data-table tbody tr.macro-kind-sub .macro-en-sticky{
  background:#fff!important;color:#20252b;font-weight:700;
}
/* Modal importu Členení: prehľadná šesťstĺpcová ukážka bez orezania */
#catalogImportFormatModal .import-format-modal-card{
  width:min(980px,calc(100vw - 32px))!important;
  max-width:980px!important;padding:22px 24px!important;
}
#catalogImportFormatModal .card-title-row{
  align-items:center;gap:16px;margin-bottom:14px;
}
#catalogImportFormatModal .card-title-row h2{
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:20px!important;line-height:1.3;margin:0;
}
#catalogImportFormatModal p.muted{font-size:13px;line-height:1.55;margin:12px 0;}
#catalogImportFormatModal .table-scroll{overflow:auto;max-width:100%;border:1px solid #e4e8ef;border-radius:8px}
#catalogImportFormatModal .table-scroll table{
  table-layout:fixed!important;min-width:720px!important;width:100%!important;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:12px!important;
}
#catalogImportFormatModal th,#catalogImportFormatModal td{
  min-width:0!important;width:16.6667%!important;
  max-width:none!important;white-space:normal!important;
  overflow-wrap:anywhere!important;padding:10px 9px!important;
  line-height:1.4;
}
#catalogImportFormatModal th{background:#eef3f9;color:#30445f}
#catalogImportFormatModal td{background:#fff}
#catalogImportFormatModal #catalogImportFormatChoose{
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  min-height:36px;font-size:13px;padding:8px 14px;
}
@media(max-width:850px){
  #macroTab .macro-filter-row{grid-template-columns:1fr!important}
  #macroTab .macro-filter-row .catalog-level-label{min-width:0}
  #glossaryTab .glossary-action-grid{grid-template-columns:max-content max-content!important}
}
@media(max-width:650px){
 #glossaryTab .glossary-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #glossaryTab .glossary-action-grid .btn{white-space:normal!important;font-size:12px!important}
}

/* v162 visual standards: Inter 12/13/17/22, spacing 6/8/12/16 */
#macroTab .macro-filter-row{display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(180px,.85fr)!important;gap:12px!important;align-items:end!important}
#macroTab .macro-filter-row label{font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;font-size:12px!important;font-weight:700!important;line-height:18px!important;gap:6px!important}
#macroTab .macro-filter-row input,#macroTab .macro-filter-row select{box-sizing:border-box!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:7px 10px!important;font-size:13px!important;line-height:20px!important;font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;}
#macroTab #macroPageInfo{font-size:12px!important;font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#667085;line-height:1.45}
#divisionsTab .catalog-fold{margin:12px 0!important}
#divisionsTab .catalog-data-warning{background:#f7faff!important;border:1px solid #dce9fb!important;color:#475467!important;font-size:12px!important}
#divisionsTab .glossary-filter-actions,#macroTab .glossary-filter-actions{gap:14px!important}
#bulkGlossaryModal .glossary-filter-actions .text-btn{font-size:12px!important;font-weight:700!important;line-height:1.4!important;padding:4px 0!important}
#bulkGlossaryModal .glossary-filter-actions{gap:14px!important}
#bulkGlossaryModal #bulkGlossaryPreview{margin-top:12px;min-height:0;padding:0 0 8px;font-size:12px;color:#667085;border:none}
#divisionsTab .data-top-scroll,#macroTab .data-top-scroll{overflow-x:auto;overflow-y:hidden;height:16px;border-top:1px solid #e4e9f0;border-bottom:1px solid #e4e9f0;background:#f9fafb;scrollbar-width:thin}
#divisionsTab .data-top-scroll>div,#macroTab .data-top-scroll>div{height:1px}
#divisionsTab .catalog-table-scroll,#macroTab .macro-table-scroll{border-top:none!important}
@media(max-width:850px){#macroTab .macro-filter-row{grid-template-columns:1fr!important}}

/* v163 – spoločný Inter štandard a nemenné tlačidlá Slovníka z v162 */
#macroTab .catalog-data-table .macro-actions-sticky{width:80px!important;min-width:80px!important;max-width:80px!important;padding:5px!important;}
#macroTab .catalog-data-table .macro-en-sticky{left:80px!important;}
#macroTab .catalog-data-table.catalog-readonly .macro-en-sticky{left:0!important;}
#macroTab .macro-action-grid{display:grid;grid-template-columns:repeat(2,24px);grid-template-rows:repeat(2,23px);gap:2px;justify-content:center;align-items:center;}
#macroTab .macro-action-grid button{width:24px!important;height:23px!important;min-width:24px!important;min-height:23px!important;padding:0!important;display:grid;place-items:center;font-size:17px;line-height:1;border:none;background:transparent;cursor:pointer;color:#1768be;}
#macroTab .macro-action-grid .macro-delete-btn{color:#dc2626!important;font-size:19px;}
#macroTab .macro-action-grid .macro-bold-btn{font-size:14px;color:#344054;}
#macroTab .macro-action-grid .macro-bold-btn.active{color:#1263ad;background:#e8f4fc;border-radius:4px;}
#macroTab .catalog-data-table tbody tr.macro-manual-bold td:not(.macro-actions-sticky){font-weight:750!important;}
#macroTab .macro-move-card{width:min(580px,calc(100vw - 32px));font-family:Inter,system-ui,sans-serif;}
#macroTab #macroMoveTarget{height:38px;font-size:13px;margin-top:6px;}
#macroTab .data-actions-grid .btn{font-size:12px!important;min-height:32px!important;padding:6px 12px!important;}
#glossaryTab .glossary-action-grid{display:grid!important;grid-template-columns:max-content max-content!important;gap:10px!important;}
@media(max-width:650px){#glossaryTab .glossary-action-grid{grid-template-columns:max-content max-content!important;}}

/* Tri vrchné tlačidlá Makromenu po pridaní riadka. Slovník bez zmeny. */
#macroTab .section-tools .data-actions-grid{display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:flex-end!important;align-items:center!important;}
#macroTab .section-tools .data-actions-grid .btn{min-height:32px!important;white-space:nowrap!important;}

/* v164: drag handle, unchanged glossary 2×2 buttons and dimensions */
#macroTab [data-macro-move]{cursor:grab;touch-action:none;user-select:none}
#macroTab [data-macro-move]:active{cursor:grabbing}
#macroTab tr.macro-dragging{opacity:.4}
#macroTab tr.macro-drop-target td{box-shadow:inset 0 3px 0 #1684d5}
.catalog-add-parents{display:grid;grid-template-columns:1fr 2fr;gap:12px;margin-bottom:16px}
.catalog-add-parents select{min-height:36px;font-size:13px}
@media(max-width:650px){.catalog-add-parents{grid-template-columns:1fr}}

/* v167: jasne zamknuté jazykové polia Usera */
#glossaryModal .glossary-modal-field.is-locked input:disabled{background:#eef1f5!important;color:#64748b!important;border-color:#cbd5e1!important;opacity:1;cursor:not-allowed}
#glossaryModal .glossary-modal-field.is-locked span{color:#64748b}

/* v172: import Makromenu – okno formátu a náhľad bez zásahu do ostatných panelov */
#macroTab .macro-import-format-card{width:min(900px,calc(100vw - 24px));font-family:Inter,ui-sans-serif,system-ui,sans-serif}
#macroTab .macro-import-review-card{width:min(1100px,calc(100vw - 24px));font-family:Inter,ui-sans-serif,system-ui,sans-serif}
#macroTab .macro-import-format-card h2,#macroTab .macro-import-review-card h2{font-size:20px}
#macroTab .macro-import-example table{min-width:0;width:100%;table-layout:fixed}
#macroTab .macro-import-example th,#macroTab .macro-import-example td{font-size:12px;white-space:normal;overflow-wrap:anywhere}
#macroTab .macro-import-review-scroll{max-height:55vh;overflow:auto}
#macroTab .macro-import-review-scroll table{min-width:680px;font-size:12px}
#macroTab .macro-import-review-scroll td{vertical-align:top}
#macroTab .macro-import-assign{min-height:34px;font-size:12px;padding:6px 8px;max-width:420px}
#macroTab .macro-import-review-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:10px;font-size:12px}
#macroTab #macroImportReviewProgress{margin-top:10px;min-height:18px}

/* v174: číslo aktuálne nasadenej verzie pri názve aplikácie */
.topbar .brand .app-version-label{display:inline-block;vertical-align:baseline;margin-left:7px;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:12px;font-weight:700;color:#667085;letter-spacing:0;white-space:nowrap}

/* v175: umiestnenie nového riadka Makromenu */
#macroAddPlacement{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 16px;padding:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}
#macroAddPlacement.hidden{display:none!important}
#macroAddPlacement .glossary-modal-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-family:Inter,system-ui,sans-serif;font-size:12px;font-weight:700}
#macroAddPlacement select{width:100%;height:36px;min-height:36px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:6px 10px;font-family:Inter,system-ui,sans-serif;font-size:13px;font-weight:400;color:#1f2937}
@media(max-width:700px){#macroAddPlacement{grid-template-columns:1fr}}

/* v176: výber hlavnej kategórie, podkategórie a umiestnenia */
#macroAddPlacement{grid-template-columns:repeat(3,minmax(0,1fr))}
#macroAddSubcategory:disabled{background:#f2f4f7;color:#667085}
@media(max-width:900px){#macroAddPlacement{grid-template-columns:1fr 1fr}}
@media(max-width:700px){#macroAddPlacement{grid-template-columns:1fr}}

/* v178: jednotná typografia a ovládanie v CELEJ aplikácii, schválené výnimky zachované */
:root{--ui-font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--ui-label:12px;--ui-body:13px;--ui-heading:17px;--ui-title:22px;--ui-gap-xs:6px;--ui-gap-sm:8px;--ui-gap-md:12px;--ui-gap-lg:16px}
body,button,input,select,textarea,table,th,td,.modal-card,.info-card,.table-scroll,.card{font-family:var(--ui-font)!important}
body{font-size:var(--ui-body)}
.card h2,.section-tools h2,.glossary-tools h2{font-size:var(--ui-heading)}
.topbar .brand{font-size:var(--ui-title)}
.form-grid label,.search-label,.catalog-search-label,.catalog-level-label,.glossary-modal-field,.history-filter-panel label{font-size:var(--ui-label)}
table,th,td{font-size:var(--ui-label)}
.info-card p,.section-tools p,.glossary-tools p{font-size:var(--ui-body)}
/* Schválená výnimka: tlačidlá Slovníka presne 2×2 */
#glossaryTab .glossary-action-grid{display:grid!important;grid-template-columns:max-content max-content!important;gap:10px!important}
#glossaryTab .glossary-action-grid .btn{min-height:39px!important;font-size:14px!important;padding:9px 14px!important}
/* Rovnaká výška a písmo filtrov Makromenu */
#macroTab #macroSearch,#macroTab #macroGroupFilter{height:34px!important;min-height:34px!important;font-size:13px!important;padding:6px 10px!important;line-height:1.4!important}
#macroTab .macro-filter-row label{font-size:12px!important;line-height:1.4!important}
#historyTab .history-filter-panel{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(190px,.6fr);gap:12px;padding:0 18px 12px}
#historyTab .history-filter-panel label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#344054}
#historyTab .history-filter-panel input,#historyTab .history-filter-panel select{height:36px;font-size:13px;padding:7px 10px;border:1px solid #d0d5dd;border-radius:8px;background:#fff}
#historyTab .history-top-scroll{height:15px;overflow-x:auto;overflow-y:hidden;border:1px solid #e4e7ec;border-radius:7px 7px 0 0;background:#f9fafb}
#historyTab .history-top-scroll>div{height:1px}
#historyTab .history-scroll{max-height:64vh;margin-top:0!important;border-radius:0 0 8px 8px;overflow:auto}
#historyTab .history-compact-table{min-width:1000px!important;width:100%!important;table-layout:fixed}
#historyTab .history-compact-table th,#historyTab .history-compact-table td{min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere;padding:10px;line-height:1.5}
#historyTab .history-compact-table th:nth-child(1){width:125px}
#historyTab .history-compact-table th:nth-child(2){width:105px}
#historyTab .history-compact-table th:nth-child(3){width:190px}
#historyTab .history-compact-table th:nth-child(4){width:220px}
#historyTab .history-compact-table th:last-child{width:85px}
#historyTab .history-compact-table td:last-child{position:static!important;background:inherit!important}
#historyTab .history-change-row{display:grid;grid-template-columns:minmax(34px,max-content) minmax(100px,1fr) 18px minmax(100px,1fr);gap:8px;align-items:start;margin-bottom:5px}
#historyTab .history-change-row strong{color:#344054;font-size:12px}
#historyTab .history-icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;font:700 21px var(--ui-font);background:#fff;border:1px solid #cbd5e1;border-radius:8px;color:#1769dc;cursor:pointer}
#historyTab .history-icon-button:hover{background:#eff6ff}
#historyTab .history-icon-button:disabled{color:#98a2b3;background:#f2f4f7;cursor:not-allowed}
#historyTab .history-restored{color:#667085;font-size:12px;font-weight:700;white-space:nowrap}
#historyTab .history-pagination{padding:8px 0;font-size:12px}
#historyTab .history-type-tabs{gap:8px}
@media(max-width:700px){#historyTab .history-filter-panel{grid-template-columns:1fr}#glossaryTab .glossary-action-grid{grid-template-columns:max-content max-content!important}}

/* v179: kompaktná história Makromenu; jeden zmenený jazyk na stĺpec. */
#historyTab .macro-history-table{
  table-layout:fixed!important;width:max-content!important;
  min-width:100%!important;border-collapse:separate;border-spacing:0;
}
#historyTab .macro-history-table th,
#historyTab .macro-history-table td{
  width:182px!important;min-width:182px!important;max-width:182px!important;
  padding:7px 9px!important;line-height:1.4!important;
  font-size:12px!important;vertical-align:top;
}
#historyTab .macro-history-table th:nth-child(1),
#historyTab .macro-history-table td:nth-child(1){width:125px!important;min-width:125px!important;max-width:125px!important}
#historyTab .macro-history-table th:nth-child(2),
#historyTab .macro-history-table td:nth-child(2){width:100px!important;min-width:100px!important;max-width:100px!important}
#historyTab .macro-history-table th:nth-child(3),
#historyTab .macro-history-table td:nth-child(3){width:190px!important;min-width:190px!important;max-width:190px!important}
#historyTab .macro-history-table th.history-macro-en,
#historyTab .macro-history-table td.history-macro-en{
 width:205px!important;min-width:205px!important;max-width:205px!important;
 position:sticky!important;left:0;z-index:3;background:#fff!important;
 border-right:2px solid #dce4ee;
}
#historyTab .macro-history-table th.history-macro-en{background:#eef2f7!important;z-index:5}
#historyTab .history-macro-value{display:flex;gap:5px;align-items:flex-start;flex-wrap:wrap}
#historyTab .history-macro-value>span:first-child,#historyTab .history-macro-value>span:last-child{
 flex:1 1 65px;min-width:0;overflow-wrap:anywhere;
}
#historyTab .history-macro-arrow{color:#667085;flex:0 0 auto}
#historyTab .macro-history-table .history-change-row{margin-bottom:3px;gap:4px;grid-template-columns:minmax(50px,auto) minmax(0,1fr) 12px minmax(0,1fr)}

/* v180 — Slovník: stále rovnaká šírka Akcie/EN, aj bez ďalších jazykov. */
#glossaryTab .glossary-scroll table#glossaryTable{width:max-content!important;min-width:0!important;table-layout:fixed!important}
#glossaryTab .glossary-scroll th.glossary-actions-col,#glossaryTab .glossary-scroll td.glossary-actions-col{width:76px!important;min-width:76px!important;max-width:76px!important;left:0!important}
#glossaryTab .glossary-scroll th.glossary-en-col,#glossaryTab .glossary-scroll td.glossary-en-col{width:220px!important;min-width:220px!important;max-width:220px!important;left:76px!important;box-sizing:border-box}
#glossaryTab .glossary-scroll th:not(.glossary-actions-col):not(.glossary-en-col),#glossaryTab .glossary-scroll td:not(.glossary-actions-col):not(.glossary-en-col){width:220px!important;min-width:220px!important;max-width:220px!important}
#glossaryTab #glossaryMissingTranslationOnly:disabled{cursor:not-allowed}
#glossaryTab .glossary-filter-actions label{font:700 12px Inter,ui-sans-serif,system-ui,sans-serif}

/* v180 — História: schválené kompaktné usporiadanie vo všetkých štyroch typoch. */
#historyTab .history-v180-table{width:100%!important;min-width:1000px!important;table-layout:fixed!important;border-collapse:collapse}
#historyTab .history-v180-table th,#historyTab .history-v180-table td{padding:9px 10px!important;vertical-align:middle!important;font:400 12px/1.45 Inter,ui-sans-serif,system-ui,sans-serif!important;overflow-wrap:anywhere}
#historyTab .history-v180-table th{font-weight:700!important;background:#f8fafc!important}
#historyTab .history-v180-table th:nth-child(1){width:136px!important}
#historyTab .history-v180-table th:nth-child(2){width:98px!important}
#historyTab .history-v180-table th:nth-child(3){width:23%!important}
#historyTab .history-v180-table th:nth-child(4){width:15%!important}
#historyTab .history-v180-table th:nth-child(5){width:19%!important}
#historyTab .history-v180-table th:nth-child(6){width:19%!important}
#historyTab .history-v180-table th:nth-child(7){width:94px!important}
#historyTab .history-v180-table .history-entity{font-weight:600!important}
#historyTab .history-v180-table .history-old-value{color:#667085}
#historyTab .history-row-actions{display:flex;gap:6px;align-items:center;justify-content:center}
#historyTab .history-icon-button{height:30px!important;width:30px!important;min-width:30px!important;padding:0!important;font-size:18px!important}
#historyTab .history-view-button svg{width:17px;height:17px}
#historyTab .history-detail-panel{border:1px solid #d0d5dd;border-radius:10px;padding:14px 16px;margin-top:12px;background:#fff;font-family:Inter,ui-sans-serif,system-ui,sans-serif}
#historyTab .history-detail-title{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}
#historyTab .history-detail-close{border:0;background:transparent;color:#667085;cursor:pointer;font-size:21px;line-height:1}
#historyTab .history-detail-actor{color:#667085;font-size:12px;margin:6px 0 12px}
#historyTab .history-detail-table-wrap{overflow:auto}
#historyTab .history-detail-table{width:100%;min-width:580px;border-collapse:collapse;font:400 12px/1.5 Inter,ui-sans-serif,system-ui,sans-serif}
#historyTab .history-detail-table th,#historyTab .history-detail-table td{text-align:left;padding:8px 10px;border-bottom:1px solid #e4e7ec;vertical-align:top;overflow-wrap:anywhere}
#historyTab .history-detail-table th{font-weight:700;background:#f8fafc}
#historyTab .history-restore-glossary,#historyTab .history-restore-update,#historyTab .history-restore-product,#historyTab .history-restore-archived{font-size:18px!important;padding:0!important}

/* v181 test: existing Inter typography and spacing */
.ai-test-head{padding:18px;margin-bottom:12px}.ai-test-head h2{font-size:17px;margin-bottom:8px}.ai-test-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:14px 0}.ai-test-controls label{font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:6px;min-width:170px;flex:1}.ai-test-controls .btn{margin-bottom:0}.ai-test-results{overflow-x:auto;max-height:620px;overflow-y:auto}.ai-test-results table{min-width:850px}.ai-test-results td{vertical-align:top}.ai-test-options{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}.ai-test-variant{display:block;padding:9px;border:1px solid #e4e7ec;border-radius:8px;margin-bottom:8px}.ai-test-variant textarea{width:100%;min-height:48px;border:1px solid #d0d5dd;border-radius:8px;padding:8px;font:inherit}.ai-test-feedback{padding:8px 0;color:#475467;font-size:12px}.ai-test-evidence{display:block;max-width:280px;white-space:normal;overflow-wrap:anywhere}#agentMessage,#seoMessage,#ahrefsResult{margin:8px 0;white-space:pre-wrap}
