@font-face{font-family:"Noto Sans Armenian";src:url("/static/vendor/noto-sans-armenian/NotoSansArmenian-Variable.ttf") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
html[lang="en"] body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}html[lang="hy"] body{font-family:"Noto Sans Armenian",Inter,system-ui,sans-serif}
.language-switcher{position:relative}.language-switcher>summary{list-style:none}.language-switcher>summary::-webkit-details-marker{display:none}.language-switcher__trigger{display:flex;align-items:center;gap:.45rem;min-height:40px;padding:.45rem .72rem;border:1px solid rgba(255,255,255,.2);border-radius:10px;cursor:pointer;color:inherit;background:rgba(255,255,255,.07)}.language-switcher__menu{position:absolute;z-index:1300;inset-inline-end:0;inset-block-start:calc(100% + 8px);width:240px;padding:.75rem;background:var(--surface,#fff);color:var(--ink,#17253b);border:1px solid var(--line,#d8e0eb);border-radius:14px;box-shadow:0 16px 42px rgba(15,35,65,.18)}.language-switcher__menu>strong,.language-switcher__menu>small{display:block}.language-switcher__menu>small{margin-block:.2rem .6rem;color:var(--muted,#6b7890)}.language-switcher__menu form{margin:0}.language-switcher__menu button{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:.55rem;width:100%;padding:.62rem .7rem;border:0;border-radius:9px;background:transparent;color:inherit;text-align:start}.language-switcher__menu button:hover,.language-switcher__menu button.is-current{background:var(--surface-soft,#eef5ff);color:var(--primary,#155ec7)}
.localization-page{max-width:1380px;margin-inline:auto;padding:1rem 0 5rem;display:grid;gap:1rem}.localization-hero,.localization-card,.localization-summary article{background:var(--surface,#fff);border:1px solid var(--line,#d9e1ec);box-shadow:0 5px 18px rgba(31,56,91,.04)}.localization-hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.5rem 1.7rem;border-radius:18px;background:linear-gradient(135deg,var(--surface,#fff) 0%,var(--surface-soft,#f4f8ff) 100%)}.localization-hero__copy{min-width:0}.localization-eyebrow,.card-kicker{display:inline-flex;align-items:center;gap:.4rem;color:var(--primary,#1767d2);font-size:.78rem;font-weight:700}.localization-hero h1{margin:.35rem 0 .25rem;color:var(--ink,#17253b);font-size:1.65rem;font-weight:800}.localization-hero p{margin:0;color:var(--muted,#66748a);font-size:.9rem}.localization-hero__meta{display:flex;align-items:center;gap:.75rem;white-space:nowrap}.localization-hero__meta strong,.localization-hero__meta small{display:block}.localization-hero__meta small{margin-top:.2rem;color:var(--muted,#66748a);font-size:.75rem}.localization-hero__icon{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:var(--soft-blue,#e9f1ff);color:var(--primary,#1767d2);font-size:1.5rem}
.localization-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.localization-summary article{display:flex;align-items:center;gap:.7rem;padding:.85rem 1rem;border-radius:14px}.summary-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:11px;font-size:1rem}.summary-icon--blue{background:#e9f1ff;color:#1767d2}.summary-icon--green{background:#e7f8f0;color:#138b69}.summary-icon--amber{background:#fff4d6;color:#b47700}.summary-icon--purple{background:#f0ebff;color:#7250c8}.localization-summary strong,.localization-summary small{display:block}.localization-summary strong{font-size:1rem;color:var(--ink,#17253b)}.localization-summary small{margin-top:.15rem;color:var(--muted,#66748a);font-size:.73rem}
.localization-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr);gap:1rem;align-items:start}.localization-card{padding:1.3rem;border-radius:17px}.localization-card--wide{grid-column:1/-1}.localization-card__header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding-block-end:1rem;margin-block-end:1.1rem;border-block-end:1px solid var(--line,#e2e8f0)}.localization-card__header h2{margin:.22rem 0 .28rem;color:var(--ink,#17253b);font-size:1.05rem;font-weight:800}.localization-card__header p{margin:0;color:var(--muted,#66748a);font-size:.8rem;line-height:1.8}.localization-card__header>i{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:11px;background:var(--soft-blue,#eef5ff);color:var(--primary,#1767d2)}.localization-card--primary{border-block-start:3px solid var(--primary,#1767d2)}.localization-card--catalog{border-block-start:3px solid #15a27b}.form-field{display:grid;gap:.42rem;margin-block-end:1rem}.form-field label,.language-fieldset legend{font-size:.8rem;font-weight:700;color:var(--ink,#263852)}.form-field select,.form-field input,.terminology-form input,.terminology-form select{width:100%;min-height:44px;border:1px solid var(--line,#cbd7e7);border-radius:11px;padding-inline:.8rem;background:var(--surface,#fff);color:var(--ink,#17253b);font:inherit}.form-field select:focus,.form-field input:focus,.terminology-form input:focus,.terminology-form select:focus{outline:3px solid color-mix(in srgb,var(--primary,#1767d2) 12%,transparent);border-color:var(--primary,#1767d2)}.field-hint,.fieldset-hint{margin:0;color:var(--muted,#6b7890);font-size:.75rem;line-height:1.8}.language-fieldset{border:0;padding:0;margin:1.2rem 0}.language-fieldset legend{margin-bottom:.25rem}.language-check-list ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;padding:0;margin:.7rem 0 0;list-style:none}.language-check-list li{margin:0}.language-check-list label{display:flex;align-items:center;gap:.6rem;min-height:46px;padding:.7rem .8rem;border:1px solid var(--line,#d5dfeb);border-radius:11px;background:var(--surface-soft,#fbfcfe);cursor:pointer}.language-check-list label:hover{border-color:color-mix(in srgb,var(--primary,#1767d2) 55%,#fff);background:color-mix(in srgb,var(--primary,#1767d2) 6%,var(--surface,#fff))}.language-check-list input{accent-color:var(--primary,#1767d2)}.localization-card__footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block-start:1rem;border-block-start:1px solid var(--line,#e2e8f0);color:var(--muted,#66748a);font-size:.72rem}.localization-card__footer>span{display:flex;align-items:center;gap:.35rem}.localization-card .btn.btn-primary{min-height:42px;border:0;border-radius:10px;padding:.65rem 1rem;background:var(--primary,#1767d2);color:#fff;font:inherit;font-size:.8rem;font-weight:700;box-shadow:0 5px 12px rgba(23,103,210,.16)}
.catalog-list{display:grid;gap:.65rem}.catalog-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem .85rem;border:1px solid var(--line,#e1e8f1);border-radius:12px;background:var(--surface-soft,#fbfcfe)}.catalog-row__identity{display:flex;align-items:center;gap:.7rem;min-width:0}.catalog-row__flag{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--soft-blue,#edf4ff);color:var(--primary,#1767d2);font-size:.72rem;font-weight:800}.catalog-row__identity strong,.catalog-row__identity small,.catalog-row>div>bdi{display:block}.catalog-row__identity strong{color:var(--ink,#263852);font-size:.85rem}.catalog-row__identity small,.catalog-row>div small{margin-top:.18rem;color:var(--muted,#6b7890);font-size:.7rem}.catalog-row__status{display:flex;align-items:center;gap:.65rem;min-width:190px;justify-content:flex-end}.catalog-row__status>strong{font-size:.78rem;color:var(--primary,#1767d2);min-width:36px;text-align:end}.catalog-progress{width:82px;height:6px;overflow:hidden;border-radius:99px;background:var(--line,#e7edf5)}.catalog-progress span{display:block;height:100%;border-radius:inherit;background:var(--primary,#1767d2)}.status-chip{display:inline-flex;align-items:center;gap:.3rem;padding:.27rem .48rem;border-radius:99px;background:#fff4db;color:#a36d00;font-size:.67rem;white-space:nowrap}.status-chip--active{background:#e6f7ef;color:#118463}.localization-alert{display:flex;align-items:flex-start;gap:.55rem;margin-top:1rem;padding:.75rem .85rem;border-radius:11px;font-size:.75rem;line-height:1.8}.localization-alert--info{background:#eef7ff;color:#245a97}.localization-alert--error{background:#fff0f0;color:#b42318}.field-error{color:#b42318;font-size:.73rem;line-height:1.6}.terminology-form{display:grid;grid-template-columns:1fr 1fr 1.4fr auto;gap:.75rem;align-items:end}.terminology-form .form-field{margin:0}.terminology-list{margin-block-start:1rem;padding-block-start:1rem;border-block-start:1px solid var(--line,#e2e8f0)}.terminology-list .catalog-row>div{display:flex;align-items:center;gap:.75rem}
html[dir="ltr"] .bi-arrow-right::before{transform:scaleX(-1)}html[dir="ltr"] .module-context-bar,html[dir="ltr"] .erp-topbar,html[dir="ltr"] .erp-footer{text-align:left}html[dir="ltr"] input,html[dir="ltr"] textarea,html[dir="ltr"] select{text-align:left}html[dir="ltr"] [data-jdp],html[dir="ltr"] .jalali-date-input{direction:ltr}
@media(max-width:1000px){.localization-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.localization-grid{grid-template-columns:1fr}.localization-card--wide{grid-column:auto}}@media(max-width:650px){.localization-page{padding-inline:.75rem}.localization-hero{align-items:flex-start;flex-direction:column}.localization-hero__meta{width:100%;padding-top:.8rem;border-top:1px solid var(--line,#e2e8f0)}.localization-summary{grid-template-columns:1fr 1fr}.language-check-list ul{grid-template-columns:1fr}.catalog-row{align-items:flex-start;flex-direction:column}.catalog-row__status{width:100%;justify-content:flex-start}.localization-card__footer{align-items:flex-start;flex-direction:column}.localization-card__footer .btn{width:100%}.terminology-form{grid-template-columns:1fr}.language-switcher__trigger span{display:none}.language-switcher__menu{position:fixed;inset-inline:1rem;inset-block-start:72px;width:auto}}

html[dir="ltr"],html[dir="ltr"] body,html[dir="ltr"] .erp-shell{direction:ltr}
html[dir="ltr"] :is(th,td,.dropdown-item){text-align:start}
html[dir="ltr"] input:not([type="email"]):not([type="tel"]):not([type="password"]),html[dir="ltr"] select,html[dir="ltr"] textarea{direction:ltr}
html[dir="ltr"] .crm-context-menu__panel{right:auto;left:max(205px,calc(var(--erp-sidebar) + 18px))}
@media (min-width:1101px){html[lang="en"]{--erp-sidebar:190px}html[lang="hy"]{--erp-sidebar:224px}}
@media (max-width:1100px){html[dir="ltr"] .erp-sidebar{transform:translateX(-105%)}html[dir="ltr"] .erp-shell.is-sidebar-open .erp-sidebar{transform:translateX(0)}}

/* Armenian labels need natural wrapping at the same readable font size. */
html[lang="hy"] .erp-body .module-rail__item {
  min-height: 44px;
  height: auto;
  white-space: normal;
  line-height: 1.55;
}
html[lang="hy"] .module-rail__item > span {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
html[lang="hy"] .erp-body :is(.module-menu-link strong, .module-menu-link small,
    .module-context-group__menu a > span, .module-context-group__menu a > small,
    .crm-context-menu__grid b, .crm-context-menu__grid small) {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
html[lang="hy"] .module-context-group__menu a { align-items: start; row-gap: 4px; }
html[lang="hy"] .module-context-group__menu a > small { margin-top: 0; }
html[lang="hy"] .erp-body .module-context-bar {
  height: auto;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px 12px;
}
html[lang="hy"] .erp-body .module-context-bar__links {
  min-width: 0;
  flex: 1 1 28rem;
  flex-wrap: wrap;
  align-items: stretch;
  overflow: visible;
}
html[lang="hy"] .module-context-group,
html[lang="hy"] .crm-context-menu {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 100%;
  height: auto;
}
html[lang="hy"] .erp-body :is(.module-context-group__trigger, .crm-context-menu > summary) {
  width: 100%;
  min-width: 0;
  height: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
  padding-block: 10px;
}
html[lang="hy"] .module-context-group__trigger > span { min-width: 0; }
html[lang="hy"] .erp-body .module-context-bar__module { flex: 0 1 190px; min-width: 0; }
html[lang="hy"] .module-context-bar__module > div { min-width: 0; }
html[lang="hy"] .module-context-bar__module :is(small, strong) { white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
html[lang="hy"] .erp-body :is(.live-kpi, .pro-kpi-card, .module-tile) {
  height: auto;
  min-width: 0;
}
html[lang="hy"] :is(.live-kpi small, .live-kpi em, .pro-kpi-card__label,
    .pro-kpi-card__hint, .module-tile strong, .module-tile small, .action-feed strong,
    .action-feed small, .page-heading h1, .page-heading p, .page-head h1, .page-head p) {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
@media (min-width: 993px) {
  html[lang="hy"] .erp-topbar { gap: 12px; padding-inline: 18px; }
  html[lang="hy"] .erp-topbar__start { min-width: 0; gap: 10px; }
  html[lang="hy"] .organization-switcher { flex: 0 1 210px; min-width: 150px; }
  html[lang="hy"] .workspace-context { width: 100%; }
  html[lang="hy"] .workspace-context :is(span, strong) { white-space: normal; text-align: start; overflow-wrap: anywhere; line-height: 1.5; }
  html[lang="hy"] .sidebar-toggle { min-width: 140px; }
  html[lang="hy"] .sidebar-toggle > span { white-space: normal; line-height: 1.5; }
  html[lang="hy"] .header-governance { max-width: 150px; white-space: normal; line-height: 1.5; }
  html[lang="hy"] .account-trigger { min-width: 115px; }
}
@media (min-width: 993px) and (max-width: 1450px) {
  html[lang="hy"] .erp-topbar .topbar-live { display: none; }
  html[lang="hy"] .erp-topbar .account-trigger { min-width: 42px; padding-inline: 4px; }
  html[lang="hy"] .erp-topbar .account-copy { display: none; }
  html[lang="hy"] .erp-topbar .product-space-switcher { flex-shrink: 0; }
}
@media (min-width: 993px) and (max-width: 1600px) {
  html[lang="hy"] .erp-body .live-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 701px) {
  html[lang="hy"] .module-context-group__menu {
    width: min(440px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    translate: var(--context-menu-shift, 0px) 0;
  }
}
@media (max-width: 700px) {
  html[lang="hy"] .erp-body .module-context-bar { overflow: visible !important; }
  html[lang="hy"] .erp-body .module-context-bar__links { overflow: visible !important; }
  html[lang="hy"] .module-context-group__menu {
    position: fixed;
    inset-inline: 12px;
    top: 140px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 160px);
  }
}

/* Let headings share space with long actions instead of squeezing their copy. */
html[lang="hy"] .erp-body :is(.page-heading, .page-head) { flex-wrap: wrap; }
html[lang="hy"] .erp-body .page-heading__main,
html[lang="hy"] .erp-body .page-head > div:first-child { flex: 1 1 24rem; min-width: 0; }
html[lang="hy"] .page-heading__main > div { min-width: 0; }
html[lang="hy"] .erp-body :is(.page-heading__actions, .page-actions) {
  flex: 1 1 26rem;
  min-width: 0;
  flex-wrap: wrap;
}
html[lang="hy"] .erp-body :is(.page-heading__actions, .page-actions) > :is(a, button) {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  height: auto;
}
html[lang="hy"] .erp-body :is(.live-dashboard, .dashboard-section, .dashboard-panel) { min-width: 0; }
@media (max-width: 700px) {
  html[lang="hy"] .erp-body :is(.page-heading__main, .page-heading__actions, .page-head > div:first-child, .page-actions) {
    flex-basis: auto;
    width: 100%;
  }
  html[lang="hy"] .erp-body .workspace-context strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
}

@media (max-width: 1100px) {
  html[lang="hy"] .crm-context-menu__panel {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
  }
}

@media (max-width: 700px) {
  html[lang="hy"] .erp-body .erp-topbar { flex-wrap: wrap; height: auto; padding-block: 8px; }
  html[lang="hy"] .erp-body :is(.erp-topbar__start, .erp-topbar__actions) { flex: 1 1 100%; }
  html[lang="hy"] .erp-body .erp-topbar__actions { justify-content: flex-end; }
}

@media (max-width: 700px) {
  html[lang="hy"] .erp-body :is(.erp-topbar, .module-context-bar) { position: relative; top: auto; }
}
