:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#182734;background:#f3f6f7;font-size:14px;line-height:1.45;--ink:#182734;--muted:#566979;--line:#dce6e9;--nav:#142432;--accent:#167568;--accent-dark:#105a51;--paper:#fff}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}a{color:inherit;text-decoration:none}
button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}.loading{margin:3rem;color:var(--muted)}h1,h2,h3,p{margin:0}
.btn{border:1px solid transparent;border-radius:8px;padding:9px 13px;font-weight:650;min-height:38px;background:var(--paper);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.btn:hover{background:#eff5f5}.btn.primary{background:var(--accent);color:white}.btn.primary:hover{background:var(--accent-dark)}.btn.outline{border-color:#cddce0}.btn.danger{color:#982b36;border-color:#efc5ca}.btn.small{min-height:32px;padding:5px 9px}.btn.quiet{background:transparent;color:var(--accent);padding-inline:6px}.btn.quiet:hover{background:#e9f5f2}
.brand{display:flex;align-items:center;gap:11px;font-size:19px;font-weight:730;letter-spacing:-.45px}.brand-mark{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:9px;background:#61d5ba;color:#12382f;font-weight:850;font-size:16px;letter-spacing:-1px}.brand.dark{color:#182734}
.auth{min-height:100svh;display:grid;grid-template-columns:minmax(355px,1fr) minmax(410px,.91fr);background:#fff}.auth-aside{display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;min-height:100%;padding:42px 54px;background:#132737;color:#f3faf9}.auth-aside:after{content:"";position:absolute;border:1px solid #99e6d3aa;border-radius:50%;width:46vw;height:46vw;bottom:-28vw;right:-10vw;box-shadow:0 0 0 64px #6bcdb716,0 0 0 126px #6bcdb713,0 0 0 186px #6bcdb709;pointer-events:none}.auth-aside h2{font-weight:620;font-size:clamp(36px,5vw,76px);line-height:1.05;max-width:680px;letter-spacing:-.065em;z-index:1}.auth-aside h2 span{display:block;color:#8ae2cc}.auth-aside .aside-bottom{color:#b7cbd1;z-index:1}.auth-main{margin:auto;width:min(100%,520px);padding:42px 54px}.auth-main .brand{display:none}.auth-main h1{font-size:36px;line-height:1.12;letter-spacing:-1px;margin-bottom:12px}.auth-main>p{color:var(--muted);margin-bottom:28px}.auth-main form{display:grid;gap:14px}.auth-main .btn{width:100%;margin-top:3px}.auth-main .subaction{margin-top:16px}
.shell{min-height:100svh;display:grid;grid-template-columns:233px minmax(0,1fr)}.side{display:flex;flex-direction:column;gap:25px;background:var(--nav);color:#f0f8f8;padding:27px 17px 16px;min-height:100svh;position:sticky;top:0;align-self:start;height:100svh}.side .brand{padding-left:8px}.nav{display:grid;gap:5px}.nav-label{font-size:11px;letter-spacing:.085em;text-transform:uppercase;color:#9eb2bf;padding:2px 11px 8px;font-weight:700}.nav button{display:flex;align-items:center;gap:10px;text-align:left;color:#d5e4e9;background:transparent;border:0;border-radius:7px;padding:11px;width:100%;font-weight:650}.nav button:hover{background:#233845}.nav button[aria-current=page]{background:#263e4a;color:#a0f0d8}.nav-symbol{width:21px;text-align:center;font-size:17px;font-weight:400}.profile{margin-top:auto;padding:13px 5px 5px;border-top:1px solid #314655;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px}.profile strong{overflow-wrap:anywhere}.profile button{color:#d5e4e9;background:none;border:0;padding:3px 0;text-align:left;font-size:12px}.profile button:hover{color:white;text-decoration:underline}.avatar{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;flex:none;background:#deefeb;color:#165a50;font-weight:750;font-size:12px}.profile .avatar{background:#304a57;color:#bbf2e1}
.work{min-width:0}.bar{height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:11px;background:white;padding:0 35px;color:var(--muted);font-size:13px}.bar strong{color:var(--ink);font-weight:650}.bar .sep{color:#84949c}.page{max-width:1440px;margin:0 auto;padding:34px 35px 48px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}.page-heading h1{font-size:36px;letter-spacing:-1.35px;line-height:1.13;font-weight:720}.page-heading p{margin-top:7px;color:var(--muted)}.panel{background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden}.filters{display:flex;gap:12px;align-items:center;padding:16px 19px;border-bottom:1px solid var(--line)}.filters label{margin:0}.search{flex:1;max-width:430px;position:relative}.search:before{content:"";position:absolute;left:13px;top:11px;border:1.6px solid #667d88;border-radius:50%;width:10px;height:10px;pointer-events:none}.search:after{content:"";height:1.6px;width:6px;background:#667d88;position:absolute;left:23px;top:23px;transform:rotate(45deg);pointer-events:none}.search input{padding-left:35px}.filters select{min-width:157px}.filter-info{margin-left:auto;color:var(--muted);white-space:nowrap;font-size:13px}
.field{display:grid;gap:6px;color:#314653;font-weight:650;font-size:13px}.field input,.field select,input,select{min-width:0;width:100%;padding:9px 12px;border-radius:8px;border:1px solid #cfdbde;color:var(--ink);background:#fff;font-weight:400;min-height:38px}.field input:focus,.field select:focus,input:focus,select:focus{outline:2px solid #7acbb9;outline-offset:0;border-color:#4fae99}input::placeholder{color:#657885}
table{width:100%;border-collapse:collapse;text-align:left}thead{background:#f7fafb}th{font-size:11px;text-transform:uppercase;letter-spacing:.055em;color:#526873;font-weight:750;padding:11px 19px;white-space:nowrap}td{padding:9px 19px;border-top:1px solid #e6edef;vertical-align:middle;overflow-wrap:anywhere}tr:hover td{background:#fafdfc}.employee{display:flex;align-items:center;gap:10px;min-width:150px}.employee strong{color:#243444;font-weight:700}.sub{font-size:12px;color:var(--muted);display:block;margin-top:2px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 9px;white-space:nowrap;font-size:12px;font-weight:680;color:#3a5260;background:#eef3f5}.badge:before{content:"";width:6px;height:6px;border-radius:50%;background:#637a85}.badge.active{background:#e5f5ed;color:#226647}.badge.active:before{background:#2e9564}.badge.disabled{background:#f7eceb;color:#8b514b}.badge.disabled:before{background:#b9685b}.right{text-align:right}.table-note{padding:25px;color:var(--muted)}.pager{border-top:1px solid var(--line);display:flex;gap:9px;align-items:center;justify-content:space-between;padding:12px 18px;color:var(--muted);font-size:13px}.pager div{display:flex;gap:6px}.alert{color:#852734;background:#fff0f1;border:1px solid #f3cdd1;border-radius:8px;padding:10px 13px;margin:0 0 12px;overflow-wrap:anywhere}.success{color:#205d40;background:#e8f6ed;border:1px solid #c2e2cf;border-radius:8px;padding:10px 13px;margin-bottom:12px}
dialog{width:min(610px,calc(100vw - 24px));max-height:calc(100svh - 30px);border:1px solid #cbdde1;border-radius:14px;padding:0;color:var(--ink);box-shadow:0 22px 90px #11293538}dialog::backdrop{background:#13263575}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 24px 15px;border-bottom:1px solid var(--line);gap:12px}.dialog-head h2{font-size:22px;letter-spacing:-.45px}.dialog-body{padding:20px 24px;display:grid;gap:16px}.dialog-body form{display:grid;gap:12px}.dialog-actions,.actions{display:flex;flex-wrap:wrap;gap:8px}.dialog-body h3{font-size:15px}.section{border-top:1px solid var(--line);padding-top:14px;display:grid;gap:10px}.details-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.role-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #e6edef}.role-row:last-child{border:0}.secret{display:block;padding:12px;background:#eef5f5;border-radius:8px;overflow-wrap:anywhere;user-select:all}.nowrap{white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.shell{grid-template-columns:189px minmax(0,1fr)}.side{padding-inline:12px}.page,.bar{padding-inline:21px}td,th{padding-inline:13px}.auth-aside{padding:32px}.auth-aside h2{font-size:4.8vw}.auth-main{padding:32px}}
@media(max-width:680px){.shell{display:block}.side{position:static;height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;padding:13px 14px 8px;gap:8px}.side .brand{padding:0}.nav{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px;grid-row:2}.nav-label{display:none}.nav button{width:auto;padding:7px 9px}.profile{grid-column:2;grid-row:1;margin:0;border:0;padding:0;font-size:12px}.profile .avatar{display:none}.bar{display:none}.page{padding:20px 13px 30px}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:10px;margin-bottom:14px}.page-heading h1{font-size:28px}.page-heading p{font-size:13px}.filters{align-items:stretch;padding:11px;flex-wrap:wrap;gap:8px}.search{flex:1 0 100%;max-width:none}.filter-info{align-self:center}.panel table,.panel tbody,.panel tr,.panel td{display:block}.panel thead{display:none}.panel tr{padding:10px 12px;border-top:1px solid var(--line)}.panel tr:first-child{border-top:0}.panel td{border:0;padding:4px 0}.panel td[data-label]:before{content:attr(data-label) " · ";font-size:12px;color:var(--muted)}.panel .right{text-align:left}.pager{padding:9px}.auth{display:flex;min-height:100svh}.auth-aside{display:none}.auth-main{padding:26px}.auth-main .brand{display:flex;margin-bottom:24px}.auth-main h1{font-size:29px}.dialog-head,.dialog-body{padding-inline:15px}.details-grid{grid-template-columns:1fr}}

.role-details{font-size:12px;margin-top:5px;color:var(--muted)}.role-details summary{cursor:pointer;color:var(--accent)}.role-details ul{padding-left:15px;margin:4px 0 0}

@media(max-width:790px){
  .panel .staff-table,.panel .staff-table tbody{display:block;width:100%}
  .panel .staff-table thead{display:none}
  .panel .staff-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 10px;padding:7px 10px}
  .panel .staff-table td{padding:0;min-width:0}
  .staff-table td:nth-child(1){grid-area:1/1}
  .staff-table td:nth-child(2){grid-area:2/1;font-size:12px}
  .staff-table td:nth-child(3){grid-area:3/1;font-size:12px;color:var(--muted)}
  .staff-table td:nth-child(4){grid-area:1/2;justify-self:end;align-self:center}
  .staff-table td:nth-child(5){grid-area:2/2/span 2;justify-self:end;align-self:end}
  .staff-table td.empty-contact{display:none}
  .staff-table .employee{gap:8px;min-width:0}
  .staff-table .employee .avatar{width:29px;height:29px;border-radius:8px}
  .staff-table .badge{padding:2px 7px}
  .staff-table .btn{min-height:44px;min-width:76px}
}

.directory-toolbar{margin-bottom:14px}.directory-block,.directory-profile{margin-bottom:14px}.directory-profile,.directory-block>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px}.directory-block>header h2,.directory-profile h2{font-size:19px}.directory-block>header{border-bottom:1px solid var(--line)}.directory-record{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 16px;padding:11px 18px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.directory-record:last-child{border-bottom:0}.directory-record>.actions{justify-content:flex-end}.directory-sub{margin-top:7px;font-size:13px}.directory-sub>summary{cursor:pointer;color:var(--accent);font-weight:650}.directory-sub>.directory-record{padding:8px 0}.directory-block>.directory-sub{margin:0;padding:11px 18px}.directory-sub>.btn{margin-top:7px}.directory-diff{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}.directory-values{display:grid;grid-template-columns:minmax(75px,130px) minmax(0,1fr);gap:3px 8px;margin:5px 0;color:var(--muted);overflow-wrap:anywhere}.directory-values dt{font-weight:650}.directory-values dd{margin:0}.directory-filters select{font-size:14px}.directory-record .directory-record>.actions{max-width:250px}
@media(max-width:900px){.directory-record{grid-template-columns:minmax(0,1fr)}.directory-record>.actions{justify-content:flex-start}}
@media(max-width:680px){.side .profile{max-width:min(44vw,185px)}.directory-profile,.directory-block>header{align-items:start;flex-wrap:wrap;padding:10px 12px}.directory-record,.directory-block>.directory-sub{padding:9px 12px}.directory-filters select{min-width:108px}.directory-filters .field{flex:1}.directory-filters .filter-info{width:100%}.directory-diff{grid-template-columns:1fr}.panel .directory-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:8px 10px}.panel .directory-table td{padding:0;min-width:0}.directory-table td:nth-child(1){grid-area:1/1}.directory-table td:nth-child(2){grid-area:2/1}.directory-table td:nth-child(3){grid-area:3/1}.directory-table td:nth-child(4){grid-area:1/2;justify-self:end}.directory-table td:nth-child(5){grid-area:2/2/span 2;align-self:end;justify-self:end}.directory-table .btn{min-height:44px}}

.catalog-selector{min-width:0;margin:0 0 8px;border:1px solid var(--line);border-radius:8px;display:grid;gap:8px}
.catalog-selector legend{font-weight:650}
.catalog-checks{display:grid;gap:7px;max-height:225px;overflow:auto}
.catalog-checks label{display:flex;align-items:center;gap:8px}
.catalog-checks input{width:18px;min-height:18px}
.catalog-diff{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.catalog-diff pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}
.catalog-filters .field{flex:0 1 190px}
.catalog-filters .search{min-width:170px}
.catalog-filters{flex-wrap:wrap}
.catalog-filter-fields{display:flex;flex:1 1 440px;flex-wrap:wrap;gap:8px}
.catalog-mobile-nav,.catalog-product-filters .catalog-filter-toggle{display:none}
@media(max-width:680px){
  .catalog-diff{grid-template-columns:1fr}
  .catalog-filters .field{flex:1 1 110px}
  .catalog-filters .search{min-width:0}
  .catalog-filters .filter-info{width:auto}
  .catalog-nav{display:none}
  .catalog-mobile-nav{display:block;margin-bottom:10px}
  .catalog-mobile-nav select{min-height:44px}
  .catalog-filter-fields{flex:1 0 100%}
  .catalog-filter-fields[data-expanded="false"]{display:none}
  .catalog-product-filters .catalog-filter-toggle{display:inline-flex;min-height:44px}
}

.pricing-toolbar,.pricing-draft{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:11px 16px;margin-bottom:12px}
.pricing-toolbar .field{flex:1 1 310px;max-width:430px}
.pricing-draft{align-items:center}
.pricing-table td{vertical-align:top}
.pricing-table .sub{display:block}
.pricing-audit{white-space:pre-wrap;overflow-wrap:anywhere}
.dialog-body [hidden]{display:none}
@media(max-width:680px){
  .pricing-toolbar,.pricing-draft{flex-wrap:wrap;padding:10px 12px}
  .pricing-toolbar select{min-height:44px}
  .pricing-table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  .pricing-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 8px;padding:8px 10px;border-bottom:1px solid var(--line)}
  .pricing-table td{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere}
  .pricing-table td:first-child{grid-column:1/-1}
  .pricing-table td:first-child::before,.pricing-table td[data-label="Действия"]::before{content:none}
  .pricing-table td:not(:first-child):not([data-label="Действия"])::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px}
  .pricing-table .btn{min-height:44px}
}

.stock-correction-check{width:auto;min-height:0;vertical-align:middle;margin-right:5px}

/* Shared workspace navigation, focus and responsive workflow controls. */
:root{--focus:#07594d}
:where(button,a[href],input,select,textarea,summary,[tabindex]):focus-visible{
  outline:2px solid var(--focus);outline-offset:2px;box-shadow:0 0 0 1px #fff
}
:where(.side,.auth-aside) :where(button,a[href],[tabindex]):focus-visible{outline-color:#a0f0d8;box-shadow:none}
input:focus-visible,select:focus-visible,textarea:focus-visible,
.field input:focus-visible,.field select:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
#workspace-title:focus{outline:none}
.skip-link{position:fixed;inset-block-start:8px;inset-inline-start:8px;z-index:5;padding:10px 14px;background:#fff;color:var(--ink);transform:translateY(-150%)}
.skip-link:focus{transform:none}
.auth{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.auth-main{min-width:0;width:min(100%,520px);padding-inline:clamp(20px,5vw,54px)}
.auth-aside{min-width:0;padding-inline:clamp(24px,4vw,54px)}
.auth-aside h2{font-size:clamp(32px,4.4vw,76px);overflow-wrap:anywhere}
.work,.page,.directory-block{min-width:0}
.side{overflow-y:auto}
.workflow{display:flex;flex-wrap:wrap;gap:8px 14px;list-style:none;padding:0;margin:0 0 12px;color:var(--muted);font-size:13px}
.workflow li{padding:5px 8px;border-radius:6px}
.workflow [aria-current=step]{background:#def2ed;color:#124c42;font-weight:700}
.workflow-summary{display:flex;flex-wrap:wrap;gap:8px 18px;padding:12px 18px}
.workflow-summary p{margin:0}
.import-choices{padding:5px 12px}
.import-choice{display:flex;width:100%;text-align:left;justify-content:space-between;padding:11px 8px;min-height:44px}
.import-choice+.import-choice{border-top:1px solid var(--line);border-radius:0}
.import-choice:focus-visible{outline-offset:-2px}
.table-note,.sub{overflow-wrap:anywhere}
.pricing-table td{font-variant-numeric:tabular-nums}
dialog{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
@media(max-width:790px){
  .auth{display:flex;min-height:100svh}.auth-aside{display:none}
  .auth-main .brand{display:flex;margin-bottom:24px}
}
@media(max-width:680px),(max-height:510px) and (pointer:coarse){
  .page{padding-inline:max(13px,env(safe-area-inset-left)) max(13px,env(safe-area-inset-right));padding-bottom:max(30px,env(safe-area-inset-bottom))}
  .side{overflow:visible;height:auto}
  .nav button,.page .btn,dialog .btn.btn,.auth .btn{min-height:44px}
  .filters .field{min-width:0}
}

@media(max-width:680px){
  #pricing .pricing-table td:is([data-label="Действует сегодня"],[data-label="Перед вступлением"],[data-label="Предлагаемая"]),
  #pricing .pricing-table[aria-label="Строки прайса"] td:is([data-label="Действует"],[data-label="В файле"],[data-label="Изменение"]){
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:baseline
  }
  #pricing .pricing-table td:is([data-label="Действует сегодня"],[data-label="Перед вступлением"],[data-label="Предлагаемая"]):before,
  #pricing .pricing-table[aria-label="Строки прайса"] td:is([data-label="Действует"],[data-label="В файле"],[data-label="Изменение"]):before{
    content:attr(data-label);font-weight:650
  }
}

[data-registration-fields] fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
  min-width: 0;
}

[data-registration-fields] legend {
  font-weight: 650;
  margin-bottom: .35rem;
}
