:root {
  --blue-950:#061d39; --blue-900:#082f5b; --blue-800:#0c467d; --blue-700:#12629c;
  --blue-100:#e9f3fb; --blue-50:#f5faff;
  --green-700:#087b58; --green-600:#0a9b70; --green-500:#21bd84; --green-100:#e8f8f1;
  --white:#fff; --text:#10263d; --muted:#66798e; --line:#d8e4ef;
  --danger:#b42318; --danger-soft:#fff1ef; --success:#076f4d; --success-soft:#e8f8f1;
  --shadow:0 24px 72px rgba(6,29,57,.15); --radius-xl:28px; --radius-lg:18px; --radius-md:13px;
}
*{box-sizing:border-box} html{min-height:100%;scroll-behavior:smooth} body{margin:0;min-height:100vh;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:linear-gradient(145deg,#f7fbfe 0%,#eaf4fb 52%,#f7fbfe 100%)}
button,input{font:inherit}button{cursor:pointer}.page-shell{min-height:100vh}.topbar{min-height:70px;display:flex;align-items:center;justify-content:space-between;padding:10px clamp(16px,4vw,62px);background:rgba(255,255,255,.88);border-bottom:1px solid var(--line);backdrop-filter:blur(14px);position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:10px;color:var(--blue-900);font-weight:900;font-size:21px;letter-spacing:-.035em}.brand-mark{width:38px;height:38px;display:grid;place-items:center;color:#fff;border-radius:12px;background:linear-gradient(145deg,var(--blue-900),var(--green-600));box-shadow:0 10px 23px rgba(8,47,91,.22)}.status{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px;font-weight:750}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--green-500);box-shadow:0 0 0 5px rgba(33,189,132,.1)}
.auth-layout{width:min(1260px,calc(100% - 36px));margin:30px auto 48px;display:grid;grid-template-columns:minmax(0,.84fr) minmax(520px,1.16fr);gap:28px;align-items:start}.intro-panel{position:sticky;top:96px;min-height:720px;overflow:hidden;padding:clamp(36px,5vw,58px);border-radius:var(--radius-xl);color:#fff;background:radial-gradient(circle at 12% 14%,rgba(33,189,132,.22),transparent 25%),radial-gradient(circle at 90% 84%,rgba(18,98,156,.34),transparent 34%),linear-gradient(150deg,var(--blue-950),var(--blue-900) 65%,var(--blue-800));box-shadow:var(--shadow)}.intro-panel:after{content:"";position:absolute;width:300px;height:300px;right:-170px;top:-120px;border:1px solid rgba(255,255,255,.1);border-radius:50%;box-shadow:0 0 0 45px rgba(33,189,132,.04),0 0 0 95px rgba(33,189,132,.025)}.intro-content{position:relative;z-index:1}.eyebrow,.section-kicker{color:var(--green-500);font-weight:850;letter-spacing:.13em;text-transform:uppercase;font-size:11px}.intro-panel h1{max-width:600px;margin:15px 0 17px;font-size:clamp(42px,5.2vw,70px);line-height:.97;letter-spacing:-.055em}.intro-panel p{max-width:600px;color:rgba(255,255,255,.8);font-size:17px;line-height:1.7}.feature-list{display:grid;gap:12px;margin-top:34px}.feature-list div{display:grid;grid-template-columns:35px 1fr;gap:12px;padding:13px;border:1px solid rgba(255,255,255,.11);border-radius:14px;background:rgba(255,255,255,.055)}.feature-list strong{color:var(--green-500);font-size:11px;letter-spacing:.1em}.feature-list span{color:rgba(255,255,255,.85);font-size:14px;line-height:1.5}
.auth-card{padding:13px;border:1px solid rgba(255,255,255,.98);border-radius:var(--radius-xl);background:rgba(255,255,255,.97);box-shadow:var(--shadow)}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;border:1px solid var(--line);border-radius:15px;background:var(--blue-50)}.tab{min-height:46px;border:0;border-radius:11px;background:transparent;color:var(--muted);font-weight:850}.tab.active{color:var(--blue-900);background:#fff;box-shadow:0 7px 18px rgba(8,47,91,.09)}.form-panel{display:none;padding:26px 12px 14px}.form-panel.active{display:block}.form-heading h2{margin:7px 0 6px;color:var(--blue-950);font-size:clamp(27px,3vw,33px);letter-spacing:-.045em}.form-heading p{margin:0 0 20px;color:var(--muted);font-size:14px;line-height:1.55}.form-note{margin:0 0 17px;padding:10px 12px;border:1px solid #d2e8dd;border-radius:12px;background:var(--green-100);color:#246b56;font-size:12px;line-height:1.45}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-panel label,.combo-field>label{display:grid;gap:7px;margin-bottom:13px;color:var(--blue-900);font-size:13px;font-weight:820}.form-panel input{width:100%;min-height:49px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-md);outline:none;color:var(--text);background:#fff;transition:border-color .18s,box-shadow .18s,background .18s}.form-panel input:focus{border-color:rgba(18,98,156,.74);background:var(--blue-50);box-shadow:0 0 0 4px rgba(18,98,156,.1)}.form-panel input::placeholder{color:#96a8ba}.field-hint{display:block;margin-top:-3px;color:#8090a2;font-size:11px;font-weight:500;line-height:1.45}.primary-btn{width:100%;min-height:51px;border:0;border-radius:14px;color:#fff;background:linear-gradient(135deg,var(--blue-900),var(--blue-700) 63%,var(--green-600));font-weight:880;box-shadow:0 13px 26px rgba(8,47,91,.18);transition:transform .18s,box-shadow .18s,filter .18s}.primary-btn:hover{transform:translateY(-1px);box-shadow:0 17px 30px rgba(8,47,91,.23);filter:brightness(1.03)}.primary-btn:disabled{opacity:.6;cursor:wait;transform:none}.message{min-height:22px;margin-top:11px;font-size:13px;line-height:1.45}.message.success,.message.error{padding:11px 12px;border-radius:11px}.message.success{color:var(--success);background:var(--success-soft)}.message.error{color:var(--danger);background:var(--danger-soft)}.message.loading{color:var(--muted)}
.combo-field{position:relative}.combo-wrap{position:relative}.combo-wrap input{padding-right:48px}.combo-toggle{position:absolute;right:4px;top:4px;width:41px;height:41px;border:0;border-radius:10px;background:var(--blue-50);color:var(--blue-800);font-size:22px}.combo-options{position:absolute;left:0;right:0;top:76px;z-index:30;display:none;max-height:255px;overflow:auto;padding:6px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 18px 38px rgba(6,29,57,.16)}.combo-options.open{display:grid;gap:2px}.combo-option{border:0;border-radius:9px;background:#fff;padding:10px 11px;text-align:left;color:var(--text);font-size:13px}.combo-option:hover{background:var(--blue-50);color:var(--blue-900)}.combo-empty{padding:12px;color:var(--muted);font-size:12px}
.dashboard-wrap{width:min(1120px,calc(100% - 36px));margin:45px auto}.welcome-card{padding:clamp(28px,5vw,44px);border-radius:var(--radius-xl);background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}.welcome-card h1{margin:13px 0 14px;color:var(--blue-950);font-size:clamp(36px,5vw,58px);line-height:.98;letter-spacing:-.05em}.welcome-card p{color:var(--muted);font-size:17px;line-height:1.65}.dashboard-grid{margin-top:20px;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.info-card{padding:22px;border-radius:18px;background:#fff;border:1px solid var(--line)}.info-card span{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}.info-card strong{color:var(--blue-900);font-size:16px;line-height:1.4}
@media(max-width:1050px){.auth-layout{grid-template-columns:1fr;max-width:760px}.intro-panel{position:relative;top:auto;min-height:auto}.dashboard-grid{grid-template-columns:1fr 1fr}}@media(max-width:680px){.topbar{min-height:64px;padding:9px 14px}.status{display:none}.brand{font-size:19px}.brand-mark{width:34px;height:34px}.auth-layout{width:calc(100% - 16px);margin:16px auto 24px;gap:15px}.intro-panel{padding:27px 22px;border-radius:22px}.intro-panel h1{font-size:42px}.intro-panel p{font-size:15px}.feature-list{margin-top:24px}.auth-card{padding:8px;border-radius:22px}.form-panel{padding:21px 7px 11px}.field-grid{grid-template-columns:1fr;gap:0}.form-panel input{min-height:50px}.primary-btn{min-height:50px}.combo-options{top:77px;max-height:225px}.dashboard-wrap{width:calc(100% - 16px);margin:25px auto}.dashboard-grid{grid-template-columns:1fr}.welcome-card{padding:25px 21px;border-radius:22px}}@media(max-width:390px){.intro-panel{padding:23px 18px}.intro-panel h1{font-size:37px}.auth-card{padding:7px}.form-panel{padding-inline:5px}.tab{min-height:43px}.form-heading h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* =========================
   CRM SHELL + PLACEHOLDER PAGES
   ========================= */
.crm-page{background:#f4f8fb;color:var(--text)}
.crm-app{min-height:100vh;display:flex}
.crm-sidebar{width:268px;flex:0 0 268px;background:linear-gradient(180deg,#062a52 0%,#073a69 72%,#063158 100%);color:#fff;display:flex;flex-direction:column;min-height:100vh;position:fixed;inset:0 auto 0 0;z-index:80;box-shadow:18px 0 50px rgba(6,29,57,.09)}
.crm-brand{height:84px;display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid rgba(255,255,255,.09)}
.crm-brand strong{display:block;font-size:19px;letter-spacing:-.03em}.crm-brand small{display:block;margin-top:1px;color:#86dcbf;font-size:10px;font-weight:800;letter-spacing:.14em}
.crm-nav{padding:20px 12px;overflow:auto}.nav-caption{padding:14px 10px 8px;color:rgba(255,255,255,.42);font-size:10px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}.nav-item{display:flex;align-items:center;gap:11px;min-height:45px;padding:0 11px;border-radius:11px;color:rgba(255,255,255,.79);text-decoration:none;font-size:13px;font-weight:720;margin:2px 0;transition:.16s}.nav-item:hover{background:rgba(255,255,255,.08);color:#fff}.nav-item.active{background:linear-gradient(90deg,rgba(33,189,132,.2),rgba(255,255,255,.07));color:#fff;box-shadow:inset 3px 0 0 #36d39b}.nav-icon{width:20px;text-align:center;font-size:17px;color:#8fe3c5}.nav-badge{margin-left:auto;display:grid;place-items:center;min-width:24px;height:22px;padding:0 6px;border-radius:999px;background:#2dc28f;color:#06365b;font-size:11px;font-weight:900}.crm-sidebar-footer{margin-top:auto;padding:14px;border-top:1px solid rgba(255,255,255,.09)}.sidebar-logout{width:100%;min-height:43px;border:1px solid rgba(255,255,255,.11);border-radius:11px;background:rgba(255,255,255,.05);color:rgba(255,255,255,.78);font-weight:750;text-align:left;padding:0 12px}.sidebar-logout:hover{background:rgba(255,255,255,.09);color:#fff}
.crm-main{width:calc(100% - 268px);margin-left:268px;min-width:0}.crm-header{height:80px;position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3vw,40px);background:rgba(255,255,255,.92);backdrop-filter:blur(15px);border-bottom:1px solid #dbe5ee}.header-title{display:flex;flex-direction:column;gap:4px}.header-title strong{font-size:17px;color:var(--blue-950)}.header-user{display:flex;align-items:center;gap:10px}.header-user strong,.header-user span{display:block}.header-user strong{font-size:12px;color:var(--blue-950)}.header-user span{font-size:10px;color:var(--muted);margin-top:3px}.avatar{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,var(--blue-900),var(--green-600));color:#fff;font-size:12px;font-weight:900;box-shadow:0 9px 20px rgba(8,47,91,.16)}
.crm-content{max-width:1450px;margin:0 auto;padding:30px clamp(18px,3vw,42px) 50px}.page-hero{display:flex;justify-content:space-between;gap:25px;align-items:end;margin-bottom:22px}.page-hero h1,.stub-page h1{margin:6px 0 8px;color:var(--blue-950);font-size:clamp(31px,4vw,48px);letter-spacing:-.055em;line-height:1}.page-hero p{margin:0;color:var(--muted);font-size:14px}.hero-actions{display:flex;gap:9px;flex-wrap:wrap}.hero-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 15px;border-radius:11px;border:1px solid var(--line);background:#fff;color:var(--blue-900);text-decoration:none;font-size:12px;font-weight:820}.hero-btn.primary{border-color:transparent;color:#fff;background:linear-gradient(135deg,var(--blue-900),var(--blue-700) 64%,var(--green-600));box-shadow:0 11px 22px rgba(8,47,91,.15)}.hero-btn:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(8,47,91,.16)}.hero-btn:not(:disabled):active{transform:translateY(0);filter:brightness(.96)}.hero-btn:disabled{cursor:not-allowed;opacity:.55}.sheet-chip:active{transform:translateY(1px)}.exchange-action-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px 19px;min-height:138px;box-shadow:0 8px 23px rgba(6,29,57,.035)}.stat-card.accent{border-color:#c6eadc}.stat-card.warning{border-color:#ecd9b6}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.stat-top b{color:var(--green-600);font-size:14px}.stat-card.warning .stat-top b{color:#9a671b}.stat-number{display:block;margin:10px 0 2px;color:var(--blue-950);font-size:33px;letter-spacing:-.06em}.stat-card small{display:block;color:#8091a4;font-size:11px;line-height:1.4}
.dashboard-lower{display:grid;grid-template-columns:1.15fr .85fr;gap:14px;margin-top:14px}.panel-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:21px;box-shadow:0 8px 23px rgba(6,29,57,.035)}.panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.panel-head h2{margin:5px 0 0;color:var(--blue-950);font-size:19px;letter-spacing:-.035em}.panel-subtitle{color:var(--muted);font-size:12px;margin:7px 0 17px}.panel-note{padding:6px 8px;border-radius:999px;background:#eff5f9;color:#7790a5;font-size:10px;font-weight:800}.panel-note.green{background:var(--green-100);color:var(--green-700)}.funnel-list{display:grid;gap:12px}.funnel-row{display:grid;grid-template-columns:120px minmax(80px,1fr) 25px;gap:10px;align-items:center;color:#687d90;font-size:11px}.funnel-row strong{text-align:right;color:var(--blue-900)}.funnel-track{height:8px;border-radius:999px;background:#edf3f7;overflow:hidden}.funnel-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue-800),var(--green-500))}.events-card{min-height:100%}.empty-state{display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;min-height:250px;color:var(--muted);gap:7px}.empty-state.compact{min-height:245px}.empty-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:var(--green-100);color:var(--green-700);font-size:24px}.empty-state strong{color:var(--blue-900);font-size:14px}.empty-state span{max-width:310px;font-size:12px;line-height:1.6}.admin-preview{margin-top:14px}.admin-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:16px}.admin-card{position:relative;display:block;text-decoration:none;color:inherit;border:1px solid #e1eaf0;border-radius:14px;padding:15px;background:#fbfdfe;transition:.16s}.admin-card:hover{transform:translateY(-1px);border-color:#c9dce7;box-shadow:0 9px 18px rgba(6,29,57,.06)}.admin-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.admin-card-top strong{color:var(--blue-900);font-size:13px}.admin-card-top span{font-weight:900;font-size:17px;color:var(--green-700)}.admin-card small{display:block;margin-top:7px;color:#8294a6;font-size:10px;line-height:1.4}.admin-arrow{position:absolute;right:12px;bottom:10px;color:#9caebb}
.stub-page{min-height:calc(100vh - 170px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;max-width:760px}.stub-icon{width:62px;height:62px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,var(--blue-900),var(--green-600));color:#fff;font-size:27px;margin-bottom:18px;box-shadow:0 13px 26px rgba(8,47,91,.16)}.stub-page p{max-width:650px;color:var(--muted);font-size:15px;line-height:1.75;margin:0 0 25px}.stub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:min(700px,100%);margin-bottom:24px}.stub-grid>div{padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff}.stub-grid strong,.stub-grid span{display:block}.stub-grid strong{color:var(--blue-900);font-size:12px}.stub-grid span{margin-top:5px;color:var(--muted);font-size:11px}.profile-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.profile-card h2{margin:0 0 15px;color:var(--blue-950);font-size:18px}.profile-row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #edf2f6}.profile-row:last-of-type{border-bottom:0}.profile-row span{color:var(--muted);font-size:12px}.profile-row strong{color:var(--blue-900);font-size:12px;text-align:right}.stub-tip{margin-top:14px;padding:12px;border-radius:12px;background:var(--green-100);color:#397862;font-size:11px;line-height:1.5}.compact-hero{align-items:center}.mobile-menu-btn,.mobile-backdrop{display:none}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-lower{grid-template-columns:1fr}.admin-grid{grid-template-columns:repeat(3,1fr)}.profile-grid{grid-template-columns:1fr}}
@media(max-width:900px){.crm-sidebar{transform:translateX(-102%);transition:transform .2s ease;box-shadow:22px 0 45px rgba(6,29,57,.25)}.crm-sidebar.open{transform:translateX(0)}.crm-main{width:100%;margin-left:0}.mobile-menu-btn{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--blue-900);font-size:20px;margin-right:10px}.crm-header{justify-content:flex-start}.header-user{margin-left:auto}.mobile-backdrop.show{display:block;position:fixed;inset:0;background:rgba(5,25,44,.35);z-index:70}.crm-content{padding-top:24px}.page-hero{align-items:flex-start;flex-direction:column}.hero-actions{width:100%}.hero-btn{flex:1}.funnel-row{grid-template-columns:105px minmax(70px,1fr) 24px}.admin-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.crm-header{height:68px;padding:0 12px}.header-title .eyebrow{font-size:9px}.header-title strong{font-size:14px}.header-user>div:last-child{display:none}.crm-content{padding:20px 12px 35px}.stats-grid{grid-template-columns:1fr;gap:10px}.stat-card{min-height:120px}.dashboard-lower{gap:10px;margin-top:10px}.panel-card{padding:16px}.panel-head h2{font-size:17px}.funnel-row{grid-template-columns:98px minmax(50px,1fr) 20px;font-size:10px;gap:7px}.admin-grid{grid-template-columns:1fr}.stub-page{min-height:calc(100vh - 140px)}.stub-grid{grid-template-columns:1fr}.hero-actions{display:grid;grid-template-columns:1fr}.hero-btn{width:100%}.page-hero h1,.stub-page h1{font-size:31px}.profile-row{align-items:flex-start;flex-direction:column;gap:4px}.profile-row strong{text-align:left}.crm-brand{height:74px}}

/* USERS MODULE */
.user-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:14px;margin-bottom:14px;padding:16px 18px}.user-search-wrap,.user-filter-wrap{display:flex;flex-direction:column;gap:6px}.user-search,.user-filter{width:100%;min-height:42px;border:1px solid var(--line);border-radius:11px;background:#fbfdfe;color:var(--blue-950);padding:0 12px;outline:none}.user-search:focus,.user-filter:focus{border-color:#91b9d4;box-shadow:0 0 0 3px rgba(18,98,156,.08)}.users-card{padding-bottom:12px}.users-table-wrap{overflow:auto;margin-top:14px}.users-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0}.users-table th{padding:10px 12px;text-align:left;color:#7890a4;font-size:10px;text-transform:uppercase;letter-spacing:.08em;border-bottom:1px solid var(--line);white-space:nowrap}.users-table td{padding:13px 12px;border-bottom:1px solid #edf2f6;color:#3e546a;font-size:12px;vertical-align:middle}.users-table tbody tr:hover td{background:#fbfdfe}.user-primary,.user-place{display:flex;flex-direction:column;gap:3px}.user-primary strong,.user-place strong{color:var(--blue-900);font-size:12px}.user-primary span,.user-place span{color:#91a0af;font-size:10px}.user-status{display:inline-flex;align-items:center;min-height:25px;padding:0 8px;border-radius:999px;background:#edf3f7;color:#607488;font-size:10px;font-weight:850}.user-status.active{background:var(--green-100);color:var(--green-700)}.user-status.pending{background:#fff6df;color:#9a6b20}.user-status.rejected{background:var(--danger-soft);color:var(--danger)}.users-loading,.users-empty{text-align:center!important;color:#8193a4!important;height:180px}.users-loading:before{content:'○ ';color:var(--green-600)}
@media(max-width:700px){.user-toolbar{grid-template-columns:1fr;padding:14px}.users-card{padding:14px}.users-table{min-width:900px}.users-table td,.users-table th{padding:11px 9px}}


.user-open-btn{display:block;width:100%;border:0;background:transparent;padding:0;text-align:left;cursor:pointer;color:inherit;font:inherit}.user-open-btn:hover strong{text-decoration:underline}.user-modal-backdrop{position:fixed;inset:0;background:rgba(6,26,53,.52);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:22px;z-index:1000}.user-modal{width:min(920px,100%);max-height:min(88vh,860px);overflow:auto;background:#fff;border:1px solid #d9e6f2;border-radius:24px;box-shadow:0 28px 90px rgba(4,31,62,.25);padding:26px}.user-modal-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:20px;border-bottom:1px solid #e8eff5}.user-modal-head h2{margin:6px 0 10px;font-size:30px}.modal-close{border:0;background:#edf4f8;color:#153652;width:40px;height:40px;border-radius:12px;font-size:26px;cursor:pointer}.user-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.modal-section{border:1px solid #e4edf3;background:#fbfdfe;border-radius:18px;padding:18px}.modal-section h3{margin:0 0 12px;font-size:15px;color:#244760}.modal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.modal-btn{border:1px solid #cfe0ea;background:#fff;color:#163a54;padding:11px 15px;border-radius:12px;font:inherit;font-weight:700;cursor:pointer}.modal-btn.primary{background:#0d6aa8;color:#fff;border-color:#0d6aa8}.modal-btn:hover{transform:translateY(-1px)}
@media (max-width:700px){.user-modal-backdrop{padding:10px}.user-modal{padding:18px;border-radius:18px}.user-modal-head h2{font-size:24px}.user-modal-grid{grid-template-columns:1fr}.modal-actions{display:grid;grid-template-columns:1fr 1fr}.modal-btn{width:100%}}


/* PROFILE PHOTO */
.profile-photo-wrap{display:flex;align-items:center;gap:22px}.profile-photo-controls{min-width:0}.profile-photo-buttons{display:flex;flex-wrap:wrap;gap:9px}.danger-outline{border-color:#e2a1a1!important;color:#a43737!important;background:#fff}.profile-row{display:grid;grid-template-columns:minmax(150px,38%) minmax(0,1fr);align-items:start;column-gap:24px}.profile-label{padding-top:2px}.profile-value{padding-left:4px}.photo-crop-backdrop{position:fixed;inset:0;z-index:1200;background:rgba(5,22,40,.65);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:14px}.photo-crop-modal{width:min(620px,100%);background:#fff;border-radius:24px;box-shadow:0 30px 100px rgba(0,0,0,.3);padding:24px;border:1px solid #d9e6f2}.photo-crop-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.photo-crop-head h2{margin:5px 0 5px;font-size:24px;color:var(--blue-950)}.photo-crop-head p{margin:0;color:var(--muted);font-size:12px}.photo-crop-stage{position:relative;width:min(360px,100%);aspect-ratio:1;margin:20px auto;border-radius:22px;overflow:hidden;background:#0a2238;touch-action:none}.photo-crop-stage canvas{width:100%;height:100%;display:block;cursor:grab}.photo-crop-stage canvas:active{cursor:grabbing}.photo-crop-circle{position:absolute;inset:25%;border:1px solid rgba(255,255,255,.42);border-radius:50%;box-shadow:0 0 0 999px rgba(0,0,0,.30),0 0 0 1px rgba(4,31,62,.12);pointer-events:none}.photo-crop-controls{display:flex;align-items:center;gap:14px;margin:12px 0 6px}.photo-crop-controls label{display:flex;align-items:center;gap:9px;flex:1;font-size:12px;color:var(--muted)}.photo-crop-controls input{width:100%}.photo-crop-controls span{min-width:42px;text-align:right;font-weight:800;color:var(--blue-900)}.profile-photo{width:112px;height:112px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,var(--blue-900),var(--green-600));color:#fff;font-size:30px;font-weight:900;box-shadow:0 12px 24px rgba(8,47,91,.12);flex:none}.profile-photo img,.user-modal-avatar img{width:100%;height:100%;object-fit:cover;display:block}.profile-help{margin:6px 0 12px;color:var(--muted);font-size:11px;line-height:1.5}.profile-photo-message{min-height:18px;margin-top:8px;color:var(--green-700);font-size:11px}.user-modal-identity{display:flex;align-items:center;gap:13px}.user-modal-avatar{width:58px;height:58px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,var(--blue-900),var(--green-600));color:#fff;font-size:17px;font-weight:900;flex:none}.users-table .user-primary{appearance:none;background:none;border:0;padding:0;text-align:left;width:100%;cursor:pointer}.users-table .user-primary:hover strong{text-decoration:underline}.user-thumb{width:34px;height:34px;border-radius:50%;overflow:hidden;background:#eaf2f7;display:grid;place-items:center;color:var(--blue-800);font-weight:900}.user-thumb img{width:100%;height:100%;object-fit:cover}
@media(max-width:700px){.profile-photo-wrap{align-items:flex-start;flex-direction:column}.profile-photo{width:96px;height:96px}.profile-row{grid-template-columns:1fr;row-gap:4px;column-gap:0}.profile-value{padding-left:0}.profile-photo-buttons{display:grid;grid-template-columns:1fr}.photo-crop-modal{padding:18px;border-radius:19px}.photo-crop-stage{margin:14px auto}.user-modal-identity{align-items:flex-start}.user-modal-avatar{width:52px;height:52px}}


/* PHOTO AVATAR FINALIZATION v11.13 */
.header-user .avatar{position:relative;overflow:hidden;flex:none;isolation:isolate}
.header-user .avatar.has-photo{background:transparent;border-radius:50%;padding:0}
.header-user .avatar.has-photo img{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover;display:block;border:0;margin:0;padding:0}
.profile-photo{position:relative!important;overflow:hidden!important;border:1px solid rgba(8,47,91,.10)!important;background:#f3f7fa!important}
.profile-photo img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important;display:block!important;margin:0!important;padding:0!important;border:0!important}
.profile-photo:has(img){background:transparent!important;box-shadow:none!important}
.photo-crop-circle{border:1px solid rgba(255,255,255,.22)!important;box-shadow:0 0 0 999px rgba(0,0,0,.30),0 0 0 1px rgba(255,255,255,.08)!important}
/* Nothing outside the intended avatar containers may render as a profile image. */
.photo-crop-backdrop img{max-width:none}


/* PHOTO AVATAR UI FIX v11.13 */
.profile-photo{width:112px!important;height:112px!important;position:relative!important;border:1px solid rgba(8,47,91,.08)!important;border-radius:50%!important;overflow:hidden!important;background:transparent!important;box-shadow:0 8px 18px rgba(8,47,91,.08)!important;isolation:isolate}
.profile-photo .profile-avatar-image,.profile-photo img{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;border:0!important;margin:0!important;padding:0!important;display:block!important}
.profile-photo:has(img){background:transparent!important}
.header-user .avatar.has-photo{width:40px!important;height:40px!important;position:relative!important;overflow:hidden!important;border-radius:50%!important;background:transparent!important;border:1px solid rgba(8,47,91,.08)!important}
.header-user .avatar.has-photo .header-avatar-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;margin:0!important;padding:0!important;border:0!important;display:block!important}
/* If a stale browser/DOM fragment injects a naked image, never let it become a giant page image. */
body>img{display:none!important}


/* PHOTO CONTAINER HARD FIX v11.14 */
.profile-photo,.user-modal-avatar,.user-thumb,.header-user .avatar{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;background-clip:border-box!important;overflow:hidden!important;box-sizing:border-box!important;}
.profile-photo{border:1px solid rgba(8,47,91,.06)!important;box-shadow:0 8px 18px rgba(8,47,91,.08)!important;}
.profile-photo.has-photo{background-color:transparent!important;}
.header-user .avatar.has-photo{border:1px solid rgba(8,47,91,.05)!important;box-shadow:none!important;}
.user-modal-avatar.has-photo,.user-thumb.has-photo{background-color:transparent!important;}
.photo-crop-backdrop{overflow:hidden!important;}
.photo-crop-modal,.photo-crop-stage{isolation:isolate!important;}
.photo-crop-stage canvas{position:relative!important;z-index:1!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;}
.photo-crop-circle{z-index:2!important;}
body > img, body > * > img:not(.keep-dom-image){display:none!important;}


/* FINAL AVATAR CONTAINMENT v11.14 */
.profile-photo {
  border: 1px solid rgba(8,47,91,.035)!important;
  box-shadow: none!important;
}
.profile-photo.has-photo {
  background-color: transparent!important;
}
.header-user .avatar.has-photo {
  border: 1px solid rgba(8,47,91,.03)!important;
  box-shadow: none!important;
}
.user-modal-avatar.has-photo,.user-thumb.has-photo {
  box-shadow: none!important;
  border: 1px solid rgba(8,47,91,.025)!important;
}


/* PROFILE AVATAR RENDERING v11.15 */
.profile-photo,
.user-modal-avatar,
.user-thumb,
.header-user .avatar {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border-radius: 50% !important;
  background-clip: padding-box !important;
}
.profile-photo {
  border: 1px solid rgba(8,47,91,.08) !important;
  box-shadow: none !important;
}
.user-modal-avatar,
.user-thumb,
.header-user .avatar {
  border: 1px solid rgba(8,47,91,.02) !important;
  box-shadow: none !important;
}
.avatar-photo-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
}
.profile-photo.has-photo,
.user-modal-avatar.has-photo,
.user-thumb.has-photo,
.header-user .avatar.has-photo {
  background: #f3f7fa !important;
}
.profile-photo > span,
.user-modal-avatar > span,
.user-thumb > span,
.header-user .avatar.has-photo > span {
  position: relative;
  z-index: 1;
}

/* v11.15 avatar containment override */
.avatar-photo-image { width:100% !important; height:100% !important; object-fit:cover !important; object-position:center !important; border:0 !important; }

/* v11.16: avatar delivery via stable user-id API */
.avatar-photo-image{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;border:0!important;margin:0!important;padding:0!important;border-radius:inherit!important;}
.profile-photo.has-photo,.user-modal-avatar.has-photo,.user-thumb.has-photo,.header-user .avatar.has-photo{background:transparent!important;}


/* v11.17: avatar photos are CSS backgrounds only. No DOM image can overflow the CRM. */
.profile-photo,
.user-modal-avatar,
.user-thumb,
.header-user .avatar {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background-clip: border-box !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.profile-photo.has-photo,
.user-modal-avatar.has-photo,
.user-thumb.has-photo,
.header-user .avatar.has-photo {
  color: transparent !important;
}
.profile-photo.has-photo > span,
.user-modal-avatar.has-photo > span,
.user-thumb.has-photo > span,
.header-user .avatar.has-photo > span {
  display: none !important;
}
img.avatar-photo-image { display:none !important; }
/* Do not hide unrelated application images; only legacy avatar nodes are forbidden. */

/* v11.18 photo upload guidance */
.photo-compress-link{color:var(--blue-800);font-weight:800;text-decoration:underline;}
.photo-compress-alert{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:5px 7px;margin-top:8px;padding:8px 10px;border:1px solid #f0c7c7;border-radius:10px;background:#fff7f7;color:#8f3030;font-size:11px;line-height:1.45;overflow:visible}.photo-compress-alert-text{font-weight:650}.photo-compress-link-alert{position:relative;z-index:2;display:inline-flex;align-items:center;min-height:24px;padding:2px 7px;border-radius:7px;background:#fff0f0;box-shadow:0 0 0 1px #e5aaaa,0 0 12px rgba(190,62,62,.22);animation:photoCompressLinkPulse 1.15s ease-in-out infinite}.photo-compress-guide{display:inline-block;position:relative;z-index:1;font-size:22px;line-height:18px;font-weight:900;color:#c23d3d;transform:rotate(-18deg);animation:photoCompressArrowPoint 1.15s ease-in-out infinite;transform-origin:50% 50%}.photo-compress-alert:focus-within .photo-compress-guide,.photo-compress-alert:hover .photo-compress-guide{animation-duration:.55s}.photo-compress-alert:focus-within .photo-compress-link-alert,.photo-compress-alert:hover .photo-compress-link-alert{animation-duration:.7s}@keyframes photoCompressArrowPoint{0%,100%{transform:translateX(0) rotate(-18deg)}50%{transform:translateX(7px) rotate(-18deg)}}@keyframes photoCompressLinkPulse{0%,100%{box-shadow:0 0 0 1px #e5aaaa,0 0 8px rgba(190,62,62,.18)}50%{box-shadow:0 0 0 2px #d96a6a,0 0 17px rgba(190,62,62,.38)}}
.photo-compress-link:hover{opacity:.82;}
.profile-photo-message a{word-break:break-word;}

/* v11.20 system avatar gallery */
.system-avatar-backdrop{position:fixed;inset:0;z-index:3000;background:rgba(3,22,38,.58);display:flex;align-items:center;justify-content:center;padding:20px;}
.system-avatar-modal{width:min(920px,96vw);max-height:92vh;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 24px 70px rgba(8,47,91,.25);overflow:hidden;}
.system-avatar-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:22px 24px 16px;border-bottom:1px solid var(--line);}
.system-avatar-head h2{margin:4px 0 4px;}
.system-avatar-head p{margin:0;color:var(--muted);}
.system-avatar-grid{padding:20px;display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:14px;overflow:auto;}
.system-avatar-item{appearance:none;border:1px solid #dbe7ef;background:#f7fbfd;border-radius:16px;padding:8px;display:flex;flex-direction:column;gap:7px;align-items:center;min-width:0;transition:.16s ease;cursor:pointer;}
.system-avatar-item:hover{transform:translateY(-2px);border-color:#5aa7c7;box-shadow:0 8px 20px rgba(8,47,91,.10);}
.system-avatar-item.selected{border:2px solid #188d84;background:#eaf8f5;box-shadow:0 0 0 3px rgba(24,141,132,.12);}
.system-avatar-item img{width:84px;height:84px;border-radius:50%;object-fit:cover;display:block;border:0;}
.system-avatar-item span{font-size:11px;line-height:1.2;color:#52697a;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.system-avatar-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 20px;border-top:1px solid var(--line);background:#fbfdff;}
@media (max-width:640px){.system-avatar-backdrop{padding:10px}.system-avatar-modal{width:100%;max-height:96vh;border-radius:18px}.system-avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:12px;gap:10px}.system-avatar-item img{width:68px;height:68px}.system-avatar-actions{flex-direction:column}.system-avatar-actions .modal-btn{width:100%}}

/* v11.24 enterprise data exchange */
.data-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.data-tools-grid .panel-card{min-height:260px;}
.import-summary{margin-top:16px;padding:12px 14px;background:#f5fafc;border:1px solid var(--line);border-radius:12px;line-height:1.7;}
.import-preview{margin-top:12px;}
.data-tools-nav[hidden]{display:none!important;}
@media (max-width:800px){.data-tools-grid{grid-template-columns:1fr;}}

.password-input-wrap { position: relative; display: flex; align-items: center; }
.password-input-wrap input { width: 100%; padding-right: 46px; }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; padding: 4px; font-size: 18px; line-height: 1; }
.password-toggle:focus-visible { outline: 2px solid currentColor; border-radius: 6px; }

/* v11.30: deterministic password visibility control */
.password-input-wrap{position:relative!important;display:block!important;width:100%!important;min-width:0!important;}
.password-input-wrap>input{display:block!important;width:100%!important;box-sizing:border-box!important;padding-right:62px!important;}
.password-toggle{position:absolute!important;right:10px!important;top:50%!important;transform:translateY(-50%)!important;width:40px!important;height:40px!important;margin:0!important;padding:0!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#163b63!important;display:flex!important;align-items:center!important;justify-content:center!important;visibility:visible!important;opacity:1!important;z-index:10!important;pointer-events:auto!important;}
.password-toggle:hover{background:rgba(22,59,99,.08)!important;}
.password-toggle:focus-visible{outline:2px solid #163b63!important;outline-offset:2px!important;}
.eye-icon{position:relative!important;width:22px!important;height:14px!important;display:block!important;border:2px solid currentColor!important;border-radius:70% 70% 70% 70% / 85% 85% 85% 85%!important;box-sizing:border-box!important;}
.eye-icon::after{content:"";position:absolute!important;left:50%!important;top:50%!important;width:6px!important;height:6px!important;transform:translate(-50%,-50%)!important;border:2px solid currentColor!important;border-radius:50%!important;box-sizing:border-box!important;background:transparent!important;}
.eye-icon.eye-off::before{content:"";position:absolute!important;left:50%!important;top:50%!important;width:28px!important;height:2px!important;background:currentColor!important;transform:translate(-50%,-50%) rotate(45deg)!important;border-radius:2px!important;}

/* v11.31 security and main-admin transfer UI */
.password-input-wrap { position: relative !important; display: block !important; width: 100% !important; }
.password-input-wrap > input { width: 100% !important; box-sizing: border-box !important; padding-right: 58px !important; }
.password-input-wrap > .password-toggle { position: absolute !important; right: 8px !important; top: 50% !important; transform: translateY(-50%) !important; width: 38px !important; height: 38px !important; display:flex !important; align-items:center !important; justify-content:center !important; padding:0 !important; margin:0 !important; border:0 !important; background:transparent !important; color:#163b63 !important; z-index:20 !important; }
.password-eye-css { width:18px; height:12px; border:2px solid currentColor; border-radius:70% 70% 70% 70% / 85% 85% 85% 85%; position:relative; display:block; }
.password-eye-css::after { content:""; position:absolute; width:5px; height:5px; background:currentColor; border-radius:50%; left:50%; top:50%; transform:translate(-50%,-50%); }
.password-toggle.is-visible .password-eye-css::before { content:""; position:absolute; width:22px; height:2px; background:currentColor; left:-4px; top:5px; transform:rotate(45deg); }
.settings-subsection { margin-top:24px; padding-top:22px; border-top:1px solid rgba(8,47,91,.10); }
.settings-subsection h3 { margin:0 0 10px; }
.transfer-form, .password-change-form { display:grid; gap:14px; max-width:620px; }
.transfer-request { padding:16px; border:1px solid rgba(8,47,91,.12); border-radius:14px; background:#f8fbfd; max-width:620px; }
.transfer-request p { margin:7px 0 14px; }

/* v11.31 login eye hardening */
.password-toggle { color:#163b63 !important; }
.password-toggle .password-eye-css { display:block !important; width:19px !important; height:13px !important; border:2px solid currentColor !important; border-radius:70% 70% 70% 70% / 85% 85% 85% 85% !important; position:relative !important; box-sizing:border-box !important; }
.password-toggle .password-eye-css::after { content:"" !important; position:absolute !important; width:5px !important; height:5px !important; background:currentColor !important; border-radius:50% !important; left:50% !important; top:50% !important; transform:translate(-50%,-50%) !important; }
.password-toggle.is-visible .password-eye-css::before { content:"" !important; position:absolute !important; width:22px !important; height:2px !important; background:currentColor !important; left:-4px !important; top:4px !important; transform:rotate(45deg) !important; }

/* v11.37 — Excel exchange controls, real sheet names, safe device downloads */
.exchange-table-wrap{width:100%;overflow:auto;border:1px solid #e3ebf1;border-radius:12px;background:#fff;margin:8px 0 14px;}
.exchange-preview-table{width:100%;border-collapse:collapse;min-width:520px;font-size:12px;}
.exchange-preview-table th,.exchange-preview-table td{border-bottom:1px solid #e8eef3;padding:8px 10px;text-align:left;vertical-align:top;line-height:1.45;}
.exchange-preview-table th:first-child,.exchange-preview-table td:first-child{width:58px;text-align:center;color:#668096;background:#f7fafc;font-weight:800;}
.exchange-preview-table th{background:#f2f7fa;color:#173d5a;font-weight:850;position:sticky;top:0;z-index:1;}
.exchange-warning{margin:10px 0;padding:10px 12px;border:1px solid #f0dca3;border-radius:12px;background:#fff9e9;color:#735c1d;font-size:12px;line-height:1.5;}
.sheet-list{margin:-2px 0 6px;}
.sheet-list-title{font-size:11px;color:#6e8191;font-weight:800;margin-bottom:7px;}
.sheet-list-items{display:flex;flex-wrap:wrap;gap:7px;}
.sheet-chip{border:1px solid #cfdee8;background:#fff;color:#173d5a;padding:7px 10px;border-radius:10px;font:inherit;font-size:11px;font-weight:750;cursor:pointer;}
.sheet-chip:hover,.sheet-chip.selected{border-color:#0d6aa8;background:#edf7ff;color:#0d5e94;}

.exchange-save-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.exchange-check{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:750;color:#173d5a}.sheet-server-names{margin:8px 0;padding:9px 12px;border-radius:10px;background:#f7fbfd;border:1px solid #e1ecf2;color:#52697a;font-size:11px;line-height:1.5}

.enterprise-toolbar{margin-bottom:14px}.enterprise-toolbar-main{display:flex;justify-content:space-between;gap:14px;align-items:end;flex-wrap:wrap}.enterprise-search{display:flex;flex-direction:column;gap:6px;min-width:min(430px,100%);color:var(--muted);font-size:11px;font-weight:800}.enterprise-search input{height:42px;border:1px solid var(--line);border-radius:11px;padding:0 12px;color:var(--blue-950);background:#fff}.enterprise-mode-tabs{display:flex;gap:7px;flex-wrap:wrap}.enterprise-mode-btn{border:1px solid var(--line);background:#fff;color:var(--blue-900);border-radius:10px;min-height:38px;padding:0 13px;font-weight:800;cursor:pointer}.enterprise-mode-btn.active{background:var(--blue-900);border-color:var(--blue-900);color:#fff}.enterprise-toolbar-note{margin-top:12px;color:var(--muted);font-size:11px;line-height:1.5}.enterprise-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:13px}.enterprise-list-table{width:100%;border-collapse:collapse;min-width:940px;font-size:11px}.enterprise-list-table th,.enterprise-list-table td{padding:9px 10px;border-bottom:1px solid #eaf0f4;vertical-align:top;text-align:left;line-height:1.45}.enterprise-list-table th{position:sticky;top:0;background:#f4f8fa;color:var(--blue-900);font-weight:900;z-index:1}.enterprise-list-table td:first-child,.enterprise-list-table th:first-child{width:44px;text-align:center}.enterprise-list-table tr:last-child td{border-bottom:0}.enterprise-link{border:0;background:none;padding:0;color:var(--blue-900);font-weight:850;text-align:left;cursor:pointer}.enterprise-link:hover{text-decoration:underline}.enterprise-card-btn,.enterprise-edit-btn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 8px;color:var(--blue-900);font-weight:800;font-size:10px;cursor:pointer}.enterprise-card-btn:hover,.enterprise-edit-btn:hover{background:#f4f8fb}.enterprise-action-stack{display:flex;gap:5px;flex-wrap:wrap}.enterprise-list-footer{display:flex;justify-content:center;align-items:center;gap:10px;padding-top:14px}.enterprise-modal-backdrop{position:fixed;inset:0;z-index:1500;background:rgba(5,22,40,.62);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}.enterprise-modal{width:min(1180px,100%);max-height:92vh;overflow:auto;background:#fff;border:1px solid #dce7ee;border-radius:22px;padding:22px;box-shadow:0 30px 100px rgba(0,0,0,.28)}.enterprise-modal-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:16px}.enterprise-modal-head h2{margin:5px 0 5px;color:var(--blue-950);font-size:25px}.enterprise-modal-head p{margin:0;color:var(--muted);font-size:12px}.enterprise-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.enterprise-card-section{border:1px solid var(--line);border-radius:15px;padding:14px;background:#fcfefe}.enterprise-card-section-title{font-size:13px;font-weight:900;color:var(--blue-900);margin-bottom:8px}.enterprise-card-row,.enterprise-edit-row{display:grid;grid-template-columns:minmax(170px,38%) minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px solid #edf2f5;align-items:start}.enterprise-card-row:last-child,.enterprise-edit-row:last-child{border-bottom:0}.enterprise-card-row span,.enterprise-edit-row>span,.enterprise-edit-row label{color:var(--muted);font-size:11px}.enterprise-card-row strong,.enterprise-edit-row>strong{color:var(--blue-900);font-size:11px;white-space:pre-wrap;word-break:break-word}.enterprise-modal-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:16px}.enterprise-compare{display:grid;grid-template-columns:1fr 1fr;gap:14px}.enterprise-compare>div{border:1px solid var(--line);border-radius:15px;padding:14px;background:#fcfefe}.enterprise-compare h3{margin:0 0 10px;color:var(--blue-900);font-size:14px}.enterprise-edit-table input{width:100%;height:34px;border:1px solid var(--line);border-radius:8px;padding:0 9px;color:var(--blue-950);background:#fff;font-size:11px}.enterprise-edit-table input:disabled{background:#f1f5f7;color:#8294a6}.enterprise-edit-table input.changed{border-color:var(--green-600);box-shadow:0 0 0 2px rgba(20,178,126,.08)}.enterprise-edit-row label{display:flex;flex-direction:column;gap:3px}.enterprise-edit-row label small{color:#9aaab6;font-size:9px}.enterprise-editor{width:min(1400px,100%)}
@media(max-width:850px){.enterprise-edit-header{display:none}.enterprise-edit-section .enterprise-edit-row{grid-template-columns:1fr;gap:5px}.enterprise-edit-current{padding:6px 8px;background:#f5f8fa;border-radius:7px}.enterprise-edit-input-wrap input{height:36px}.enterprise-card-grid,.enterprise-compare{grid-template-columns:1fr}.enterprise-toolbar-main{align-items:stretch}.enterprise-search{min-width:0;width:100%}.enterprise-mode-tabs{width:100%}.enterprise-mode-btn{flex:1}.enterprise-card-row,.enterprise-edit-row{grid-template-columns:1fr;gap:4px}}
.enterprise-toolbar{margin-bottom:14px}.enterprise-toolbar-main{display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap}.enterprise-search{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:11px;font-weight:800;min-width:min(430px,100%)}.enterprise-search input{height:42px;border:1px solid var(--line);border-radius:11px;padding:0 12px;background:#fff;color:var(--blue-950)}.enterprise-mode-tabs{display:flex;gap:7px;flex-wrap:wrap}.enterprise-mode-btn{min-height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--blue-900);padding:0 13px;font-weight:850;cursor:pointer}.enterprise-mode-btn.active{background:var(--blue-900);color:#fff;border-color:var(--blue-900)}.enterprise-toolbar-note{margin-top:10px;color:var(--muted);font-size:11px;line-height:1.5}.enterprise-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:13px}.enterprise-list-table{width:100%;border-collapse:collapse;min-width:920px;font-size:11px}.enterprise-list-table th,.enterprise-list-table td{padding:9px 10px;border-bottom:1px solid #eaf0f4;text-align:left;vertical-align:top;line-height:1.45}.enterprise-list-table th{background:#f3f8fb;color:var(--blue-900);font-weight:900;position:sticky;top:0;z-index:1}.enterprise-list-table tr:last-child td{border-bottom:0}.enterprise-link{border:0;background:none;padding:0;color:var(--blue-900);font-weight:900;cursor:pointer;text-align:left}.enterprise-link:hover{text-decoration:underline}.enterprise-card-btn,.enterprise-edit-btn{border:1px solid var(--line);background:#fff;color:var(--blue-900);border-radius:8px;padding:6px 8px;font-size:10px;font-weight:850;cursor:pointer}.enterprise-action-stack{display:flex;gap:5px;flex-wrap:wrap}.enterprise-list-footer{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:14px}.enterprise-modal-backdrop{position:fixed;inset:0;z-index:1500;background:rgba(5,22,40,.62);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}.enterprise-modal{width:min(1180px,100%);max-height:92vh;overflow:auto;background:#fff;border:1px solid #dce7ee;border-radius:22px;padding:22px;box-shadow:0 30px 100px rgba(0,0,0,.28)}.enterprise-modal-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:15px}.enterprise-modal-head h2{margin:5px 0;color:var(--blue-950);font-size:25px}.enterprise-modal-head p{margin:0;color:var(--muted);font-size:12px}.enterprise-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.enterprise-card-row{display:grid;grid-template-columns:minmax(180px,38%) minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px solid #edf2f5}.enterprise-card-row span{color:var(--muted);font-size:11px}.enterprise-card-row strong{color:var(--blue-900);font-size:11px;white-space:pre-wrap;word-break:break-word}.enterprise-modal-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:16px}.enterprise-compare{display:grid;grid-template-columns:1fr 1fr;gap:14px}.enterprise-compare>div{border:1px solid var(--line);border-radius:15px;padding:14px;background:#fcfefe}.enterprise-compare h3{margin:0 0 10px;color:var(--blue-900);font-size:14px}.enterprise-edit-row{display:grid;grid-template-columns:minmax(170px,40%) minmax(0,1fr);gap:10px;padding:8px 0;border-bottom:1px solid #edf2f5}.enterprise-edit-row>span,.enterprise-edit-row label{color:var(--muted);font-size:11px}.enterprise-edit-row>strong{color:var(--blue-900);font-size:11px;white-space:pre-wrap;word-break:break-word}.enterprise-edit-row label{display:flex;flex-direction:column;gap:3px}.enterprise-edit-row small{font-size:9px;color:#9aaab6}.enterprise-edit-row input{width:100%;height:34px;border:1px solid var(--line);border-radius:8px;padding:0 8px;font-size:11px;color:var(--blue-950)}.enterprise-edit-row input:disabled{background:#f1f5f7;color:#8a9ba8}.enterprise-edit-row input.changed{border-color:var(--green-600);box-shadow:0 0 0 2px rgba(20,178,126,.08)}.enterprise-edit-header{display:grid;grid-template-columns:minmax(170px,30%) minmax(0,30%) minmax(0,1fr);gap:10px;padding:0 0 5px;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.enterprise-edit-row{grid-template-columns:minmax(170px,30%) minmax(0,30%) minmax(0,1fr)}.enterprise-edit-label{color:var(--muted);font-size:11px;font-weight:700}.enterprise-edit-current{color:var(--blue-900);font-size:11px;white-space:pre-wrap;word-break:break-word}.enterprise-edit-input-wrap{display:flex;flex-direction:column;gap:3px}.enterprise-edit-input-wrap input{width:100%;height:34px;border:1px solid var(--line);border-radius:8px;padding:0 8px;font-size:11px;color:var(--blue-950);background:#fff}.enterprise-edit-input-wrap input::placeholder{color:#9aaab6}.enterprise-edit-input-wrap small{font-size:9px;color:#9aaab6}.enterprise-editor{width:min(1450px,100%)}
@media(max-width:850px){.enterprise-card-grid,.enterprise-compare{grid-template-columns:1fr}.enterprise-search{width:100%;min-width:0}.enterprise-mode-tabs{width:100%}.enterprise-mode-btn{flex:1}.enterprise-card-row,.enterprise-edit-row{grid-template-columns:1fr;gap:4px}}


/* v11.46 enterprise presentation */
.enterprise-all-wrap{overflow:auto;border:1px solid var(--line);border-radius:13px;max-width:100%}.enterprise-all-table{min-width:3000px;width:max-content}.enterprise-all-table th,.enterprise-all-table td{white-space:normal;vertical-align:top}.enterprise-all-table th{position:sticky;top:0;background:#f3f8fb;z-index:2}.enterprise-all-table td{max-width:260px}.enterprise-compact-list{align-items:start}.enterprise-compact-card{min-width:0}
/* v11.49: enterprise readability and row separation */
.enterprise-compact-list{display:grid;gap:12px}
.enterprise-compact-card{border:1px solid var(--line);border-radius:15px;background:#fff;padding:14px;box-shadow:0 4px 16px rgba(10,35,55,.05)}
.enterprise-compact-title{margin-bottom:10px;padding-bottom:9px;border-bottom:1px solid #e9eff3}
.enterprise-compact-title h3{margin:4px 0 0;color:var(--blue-950);font-size:14px;line-height:1.35}
.enterprise-compact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.enterprise-compact-field{display:grid;grid-template-columns:minmax(120px,42%) minmax(0,1fr);gap:8px;padding:7px 0;border-bottom:1px dashed #e7eef2;align-items:start}
.enterprise-compact-field span{color:var(--muted);font-size:10px;line-height:1.35}
.enterprise-compact-field strong,.enterprise-compact-field a{color:var(--blue-900);font-size:10px;line-height:1.4;white-space:pre-wrap;word-break:break-word}
.enterprise-card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px;padding-top:10px;border-top:1px solid #e9eff3}
.enterprise-all-table tbody tr{border-bottom:4px solid #eef3f6;background:#fff}
.enterprise-all-table tbody tr:nth-child(even){background:#fbfdfe}
.enterprise-all-table tbody td{padding-top:10px;padding-bottom:10px}
.enterprise-card-stack{display:grid;gap:0;border:1px solid #e5edf2;border-radius:13px;overflow:hidden;background:#fff}
.enterprise-card-stack .enterprise-card-row{grid-template-columns:minmax(190px,34%) minmax(0,1fr);gap:14px;padding:9px 12px;background:#fff;border-bottom:1px solid #e7eef2}
.enterprise-card-stack .enterprise-card-row:nth-child(even){background:#fbfdfe}
.enterprise-card-stack .enterprise-card-row:last-child{border-bottom:0}
.enterprise-card-stack .enterprise-card-row span{font-weight:800;color:var(--muted);font-size:10px;line-height:1.4}
.enterprise-card-stack .enterprise-card-row strong,.enterprise-card-value-link{color:var(--blue-900);font-size:11px;line-height:1.45;white-space:pre-wrap;word-break:break-word}
@media(max-width:900px){.enterprise-compact-grid{grid-template-columns:1fr}.enterprise-compact-field{grid-template-columns:minmax(105px,38%) minmax(0,1fr)}}

.enterprise-site-link{display:inline-block;color:#159447 !important;font-weight:900;text-decoration:none;word-break:break-word;line-height:1.4}.enterprise-site-link:hover{text-decoration:underline}.enterprise-site-field a{color:#159447 !important}.enterprise-card-value-link{color:#159447 !important;font-weight:900;text-decoration:none}.enterprise-card-value-link:hover{text-decoration:underline}.enterprise-all-table tbody tr{box-shadow:0 1px 0 rgba(10,35,55,.04)}.enterprise-all-table tbody tr td{padding-top:11px;padding-bottom:11px}


/* v11.51 enterprise user actions */
.enterprise-user-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center;}
.enterprise-user-btn{appearance:none;border:1px solid #cfd9e2;background:#fff;color:#16324a;border-radius:9px;padding:8px 12px;font:inherit;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s,color .15s,transform .08s;}
.enterprise-user-btn:hover{background:#f2f7fb;border-color:#9bb2c5;}
.enterprise-user-btn:active{transform:translateY(1px);}
.enterprise-user-btn:disabled{opacity:.6;cursor:wait;}
.enterprise-user-btn.enterprise-action-active{background:#eef8f1;border-color:#7fba92;color:#246b37;}
.enterprise-site-link{color:#1b8a43!important;font-weight:800;text-decoration:underline;word-break:break-word;}
.enterprise-site-link:hover{color:#116a31!important;}

/* v11.52 enterprise views: compact all-data cards and simple list */
.enterprise-simple-card .enterprise-simple-address{margin-top:6px;line-height:1.35;color:inherit;}
.enterprise-all-compact-list{display:grid;gap:12px;}
.enterprise-all-card{border:1px solid rgba(0,0,0,.12);border-radius:12px;padding:14px;background:#fff;}
.enterprise-all-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;}
.enterprise-all-field{display:grid;grid-template-columns:minmax(150px,40%) 1fr;gap:10px;padding:6px 0;border-bottom:1px solid rgba(0,0,0,.07);align-items:start;}
.enterprise-all-field span{font-weight:600;}
.enterprise-all-field strong{font-weight:400;overflow-wrap:anywhere;}
@media(max-width:760px){.enterprise-all-fields{grid-template-columns:1fr;}.enterprise-all-field{grid-template-columns:1fr;gap:2px;}}


/* v11.60: compact notification center */
.header-notifications{position:relative;margin-left:auto;margin-right:14px;}
.notification-bell{position:relative;width:40px;height:40px;border:1px solid rgba(0,0,0,.10);border-radius:12px;background:#fff;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;transition:background .15s,transform .1s,border-color .15s;}
.notification-bell:hover{background:#f4f7fa;border-color:rgba(0,0,0,.18);}
.notification-bell:active{transform:scale(.97);}
.notification-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#c62828;color:#fff;font-size:11px;line-height:18px;font-weight:700;text-align:center;box-sizing:border-box;}
.notification-panel{position:fixed;right:clamp(12px,3vw,40px);top:90px;width:370px;max-width:min(92vw,370px);background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:14px;box-shadow:0 14px 36px rgba(0,0,0,.14);z-index:1000;overflow:hidden;}
.notification-panel-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid rgba(0,0,0,.08);}
.notification-read-all{border:0;background:transparent;cursor:pointer;font-size:12px;}
.notification-list{max-height:420px;overflow:auto;}
.notification-item{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid rgba(0,0,0,.06);background:#fff;padding:12px 14px;cursor:pointer;}
.notification-item:hover{background:#f7fafc;}
.notification-item-title{display:block;font-weight:700;margin-bottom:4px;}
.notification-item-body{display:block;font-size:13px;line-height:1.4;}
.notification-item-date{display:block;margin-top:6px;font-size:11px;opacity:.58;}
.notification-empty{padding:18px 14px;font-size:13px;opacity:.65;}
@media (max-width:700px){.header-notifications{margin-right:6px}.notification-panel{right:12px;top:76px}}

/* v11.64 working CRM modules */
.workspace-tabs-card{padding:0;position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(8px)}.workspace-tabs{display:flex;gap:4px;overflow:auto;padding:8px}.workspace-tab{border:0;background:transparent;padding:11px 14px;border-radius:10px;font-weight:800;color:var(--muted);white-space:nowrap;cursor:pointer}.workspace-tab:hover{background:#edf5f7;color:var(--blue-900)}.workspace-tab.active{background:#e8f3f5;color:var(--blue-950)}.workspace-content-card{margin-top:12px}.workspace-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.workspace-toolbar input{flex:1;min-width:220px}.workspace-body{display:grid;gap:10px}.workspace-enterprise-card{border:1px solid #dce8ee;border-radius:14px;padding:14px;background:#fff;display:flex;gap:15px;justify-content:space-between;align-items:flex-start}.workspace-enterprise-card:hover{border-color:#b9d8e2;box-shadow:0 6px 18px rgba(8,47,91,.08)}.workspace-card-main{min-width:0;flex:1}.workspace-card-main h3{margin:4px 0;font-size:16px;color:var(--blue-950)}.workspace-card-main p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.workspace-card-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.workspace-card-meta span{font-size:11px;padding:4px 8px;border-radius:999px;background:#f1f6f8;color:#406172;font-weight:700}.workspace-card-actions{display:flex;gap:7px;flex-wrap:wrap}.compact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compact-form label{display:grid;gap:5px;font-size:11px;font-weight:800;color:var(--muted)}.workspace-new-form label:last-of-type{grid-column:1/-1}.dashboard-metric-card{display:flex;flex-direction:column;gap:4px;padding:16px;border:1px solid #dce8ee;border-radius:15px;background:#fff;text-decoration:none}.dashboard-metric-card:hover{box-shadow:0 8px 18px rgba(8,47,91,.08)}#dashboardMetrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dashboard-metric-card span{font-size:10px;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.dashboard-metric-card strong{font-size:28px;color:var(--blue-950)}.activity-feed{display:grid}.activity-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf2f4}.activity-row strong{display:block;font-size:12px;color:var(--blue-950)}.activity-row span{display:block;font-size:11px;color:var(--muted)}.activity-row small{display:block;font-size:10px;color:#607d8b}.activity-row time{font-size:10px;color:var(--muted);white-space:nowrap}.compare-select-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:14px}.compare-select-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:9px;border:1px solid #dce8ee;border-radius:10px}.enterprise-compare-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.enterprise-compare-column{border:1px solid #dce8ee;border-radius:14px;padding:13px;background:#fff}.compare-field{display:grid;gap:2px;padding:8px 0;border-bottom:1px solid #eef3f5}.compare-field span{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:900}.compare-field strong,.compare-field a{font-size:11px;line-height:1.35}.enterprise-site-link{color:#1d8b4c!important;font-weight:800;text-decoration:underline}@media(max-width:980px){#dashboardMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}.enterprise-compare-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.workspace-enterprise-card{flex-direction:column}.compact-form{grid-template-columns:1fr}.workspace-new-form label:last-of-type{grid-column:auto}.compare-select-list,.enterprise-compare-grid,#dashboardMetrics{grid-template-columns:1fr}}

/* v11.64 ROCET-inspired CRM workflow */
.workspace-sticky-head{position:sticky;top:0;z-index:20;background:var(--surface,#fff);padding-bottom:10px;border-bottom:1px solid rgba(0,0,0,.08)}
.workspace-tabs-card{position:sticky;top:0;z-index:21;background:var(--surface,#fff)}
.admin-request-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin-bottom:18px}
.admin-request-card{border:1px solid rgba(0,0,0,.10);border-radius:16px;padding:16px;display:flex;justify-content:space-between;gap:16px;background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.05)}
.admin-request-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.workspace-action-btn{border:1px solid rgba(0,0,0,.12);background:#fff;border-radius:10px;padding:8px 11px;cursor:pointer}.workspace-action-btn:hover,.modal-btn:hover,.hero-btn:hover{filter:brightness(.97);transform:translateY(-1px)}
.workspace-card-meta{display:flex;gap:10px;flex-wrap:wrap;line-height:1.45}.workspace-address{margin:.35rem 0 .65rem;line-height:1.45}.enterprise-site-link,.enterprise-card-value-link{color:#198754!important;text-decoration:none}.enterprise-site-link:hover,.enterprise-card-value-link:hover{text-decoration:underline}
@media(max-width:800px){.workspace-tabs{overflow-x:auto;flex-wrap:nowrap}.admin-request-card{flex-direction:column}.enterprise-toolbar{position:sticky;top:0;z-index:18}.enterprise-mode-tabs{overflow-x:auto}.workspace-card-actions{justify-content:flex-start}.workspace-sticky-head{top:0}}

.enterprise-toolbar{position:sticky;top:0;z-index:60;backdrop-filter:blur(10px);}
.enterprise-toolbar-main{flex-wrap:wrap;align-items:flex-end;gap:12px;}
.enterprise-row-start{display:flex;flex-direction:column;gap:5px;min-width:150px;}
.enterprise-row-start input{width:120px;}
@media(max-width:720px){.enterprise-mode-tabs{width:100%;overflow-x:auto}.enterprise-row-start{min-width:120px}.enterprise-toolbar{top:0}}

/* v11.67 enterprise header/filter UX */
.enterprise-sticky-toolbar{position:sticky;top:0;z-index:40;backdrop-filter:blur(10px);background:rgba(255,255,255,.96)}
.enterprise-toolbar-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.enterprise-head-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
.enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-top{display:none}
.enterprise-sticky-toolbar.is-collapsed .enterprise-filters-panel,.enterprise-sticky-toolbar.is-collapsed .enterprise-active-filters,.enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-note{display:none}
.enterprise-sticky-toolbar.is-collapsed{padding:8px 12px}
.enterprise-active-filters{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.enterprise-filter-chip{display:inline-flex;gap:4px;align-items:center;padding:5px 9px;border-radius:999px;background:#eef8f4;color:#19725a;border:1px solid #ccecdf;font-size:10px}
.enterprise-filter-empty{color:var(--muted);font-size:10px}
@media(max-width:720px){.enterprise-head-actions{width:100%;margin-left:0}.enterprise-head-actions>*{flex:1}.enterprise-live-count{flex:0 0 auto}.enterprise-mode-tabs{order:3;width:100%}.enterprise-toolbar-top{align-items:stretch}.enterprise-toolbar-toggle{min-width:120px}.enterprise-sticky-toolbar{padding:10px}.enterprise-sticky-toolbar.is-collapsed .enterprise-head-actions{display:flex}}


/* v11.68: compact sticky enterprise toolbar with always-visible collapse control */
.enterprise-collapse-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;z-index:3;margin-bottom:8px}
.enterprise-collapse-bar .enterprise-toolbar-toggle{display:inline-flex;align-items:center;gap:7px;min-height:34px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--blue-900);padding:0 11px;font-weight:850;cursor:pointer}
.enterprise-collapse-bar .enterprise-toolbar-toggle:hover{background:#f4f8fb}
.enterprise-toggle-icon{font-size:18px;line-height:1;display:inline-block;width:14px;text-align:center}
.enterprise-toggle-label{font-size:10px}
.enterprise-sticky-toolbar.is-collapsed .enterprise-collapse-bar{margin-bottom:0}
.enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-top{display:none}
.enterprise-sticky-toolbar.is-collapsed .enterprise-filters-panel,.enterprise-sticky-toolbar.is-collapsed .enterprise-active-filters,.enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-note{display:none}
.enterprise-sticky-toolbar.is-collapsed{padding:8px 12px}
@media(max-width:720px){.enterprise-collapse-bar{margin-bottom:7px}.enterprise-collapse-bar .enterprise-toolbar-toggle{min-width:110px}.enterprise-sticky-toolbar{top:0}.enterprise-sticky-toolbar.is-collapsed .enterprise-collapse-bar{display:flex}}
/* v11.69 — enterprise toolbar: compact sticky header, modes moved to result list */
.enterprise-sticky-toolbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.98);backdrop-filter:blur(12px);border:1px solid #dfe8ef;box-shadow:0 8px 22px rgba(20,55,80,.06)}
.enterprise-toolbar-mainline{display:grid;grid-template-columns:auto minmax(240px,1fr) auto auto;align-items:center;gap:10px}
.enterprise-toolbar-toggle{display:inline-flex;align-items:center;gap:7px;min-height:36px;border:1px solid #d7e3eb;border-radius:10px;background:#fff;color:#163b63;padding:0 12px;font-weight:850;cursor:pointer;white-space:nowrap}
.enterprise-toolbar-toggle:hover{background:#f4f8fb}
.enterprise-toggle-icon{font-size:18px;line-height:1;width:15px;text-align:center}
.enterprise-live-count{font-weight:900;color:#244f70;white-space:nowrap;padding:7px 10px;border-radius:10px;background:#f3f7fa;border:1px solid #dfe8ef}
.enterprise-toolbar-details{margin-top:10px}.enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-details{display:none}.enterprise-sticky-toolbar.is-collapsed{padding:8px 10px}
.enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-mainline{grid-template-columns:auto minmax(180px,1fr) auto auto}
.enterprise-filter-inline label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;color:#45677f;margin-bottom:8px}.enterprise-filter-inline input{max-width:130px}
.enterprise-list-viewbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 0 12px;margin:0 0 12px;border-bottom:1px solid #e5edf2}
.enterprise-view-caption{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#6c8292;margin-right:2px}.enterprise-mode-btn{border:1px solid #d5e1e8;background:#fff;color:#254c67;border-radius:10px;padding:8px 12px;font-weight:850;cursor:pointer;transition:.15s}.enterprise-mode-btn:hover{background:#f5f9fb}.enterprise-mode-btn.active{background:#0b5d8f;color:#fff;border-color:#0b5d8f;box-shadow:0 4px 10px rgba(11,93,143,.16)}
.enterprise-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:10px}.enterprise-filter-grid label{font-size:11px;font-weight:850;color:#4a687d}.enterprise-filter-combo>span{display:block}.filter-combo-wrap{position:relative;margin-top:5px}.enterprise-filter-combo input{width:100%;min-height:38px;padding:8px 38px 8px 10px;border:1px solid var(--line);border-radius:10px;outline:none;background:#fff;color:var(--text);font-size:12px}.enterprise-filter-combo input:focus{border-color:rgba(18,98,156,.55);box-shadow:0 0 0 3px rgba(18,98,156,.08);background:var(--blue-50)}.filter-combo-toggle{position:absolute;right:3px;top:3px;width:32px;height:32px;border:0;border-radius:8px;background:var(--blue-50);color:var(--blue-800);font-size:18px;line-height:1}.filter-combo-options{position:absolute;left:0;right:0;top:42px;z-index:40;display:none;max-height:230px;overflow:auto;padding:5px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 16px 32px rgba(6,29,57,.16)}.filter-combo-options.open{display:grid;gap:2px}.filter-combo-option{padding:8px 9px;font-size:12px}.filter-combo-option.active{background:var(--blue-50);color:var(--blue-900)}.enterprise-active-filters{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.enterprise-filter-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;border-radius:999px;background:#edf8f3;color:#1a7059;border:1px solid #cceadd;font-size:10px}.enterprise-filter-empty{font-size:10px;color:#78909f}
@media(max-width:900px){.enterprise-toolbar-mainline{grid-template-columns:auto minmax(180px,1fr) auto}.enterprise-toolbar-mainline .enterprise-filters-toggle{grid-column:3;}.enterprise-filter-grid{grid-template-columns:repeat(2,minmax(140px,1fr));}}
@media(max-width:600px){.enterprise-toolbar-mainline{grid-template-columns:auto 1fr auto;gap:7px}.enterprise-toolbar-mainline .enterprise-filters-toggle{grid-column:auto}.enterprise-search{min-width:0}.enterprise-search input{width:100%;min-width:0}.enterprise-live-count{grid-column:1/-1;justify-self:start}.enterprise-filter-grid{grid-template-columns:1fr}.enterprise-list-viewbar{position:sticky;top:68px;background:#fff;z-index:20;padding-top:8px}.enterprise-mode-btn{flex:1;min-width:0;padding:8px 7px;font-size:11px}.enterprise-view-caption{display:none}.enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-mainline{grid-template-columns:auto 1fr auto}.enterprise-toolbar-toggle{padding:0 9px}.enterprise-toggle-label{display:none}.enterprise-live-count{font-size:11px}}
/* v11.70 enterprise navigation/filter UX */
.enterprise-card-modes{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 6px;padding-top:8px;border-top:1px solid #edf2f5}
.enterprise-card-modes .enterprise-mode-btn{font-size:10px;padding:6px 9px;border-radius:8px}
.enterprise-active-row{font-size:11px;font-weight:900;color:#31566d;white-space:nowrap;padding:7px 9px;border:1px solid #dce8ee;border-radius:9px;background:#f7fbfc}
.enterprise-start-go{min-height:34px;margin-top:5px;border:1px solid #d7e3eb;border-radius:9px;background:#fff;color:#1d5670;font-weight:850;padding:0 11px;cursor:pointer}
.enterprise-start-go:hover{background:#f2f8fb}
.enterprise-filter-inline{display:flex;align-items:end;gap:7px;flex-wrap:wrap}
.enterprise-filter-inline label{margin-bottom:0}
@media(max-width:720px){.enterprise-active-row{font-size:10px;padding:6px 8px}.enterprise-card-modes{gap:5px}.enterprise-card-modes .enterprise-mode-btn{flex:1;min-width:92px}.enterprise-toolbar-mainline{grid-template-columns:auto 1fr auto}.enterprise-live-count{grid-column:auto}.enterprise-active-row{grid-column:1/-1;justify-self:start}.enterprise-filter-inline{align-items:stretch}.enterprise-start-go{width:100%;margin-top:0}.enterprise-sticky-toolbar.is-collapsed .enterprise-active-row{display:inline-flex}}

/* v11.71 — enterprise row actions collapse; header collapsed by default */
.enterprise-row-actions{display:grid;gap:6px;margin-top:8px}.enterprise-row-actions-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid #d5e1e8;border-radius:9px;background:#f8fbfc;color:#254c67;font-weight:850;font-size:11px;cursor:pointer;transition:.15s}.enterprise-row-actions-toggle:hover{background:#eef5f8}.enterprise-row-actions-panel{display:grid;gap:7px;padding-top:2px}.enterprise-row-actions-panel[hidden]{display:none!important}.enterprise-row-actions-arrow{font-size:13px;line-height:1}
@media(max-width:720px){.enterprise-row-actions-toggle{width:100%;justify-content:space-between}.enterprise-row-actions-panel{gap:6px}}

/* v11.72 — compact enterprise header and row action controls */
.enterprise-page-hero{margin-bottom:10px;align-items:center}
.enterprise-page-hero h1{font-size:clamp(24px,3vw,34px);margin:3px 0 4px;letter-spacing:-.045em}
.enterprise-page-hero p{font-size:11px}
.enterprise-sticky-toolbar{padding:7px 9px;margin-bottom:10px;border-radius:12px}
.enterprise-sticky-toolbar.is-collapsed{padding:5px 7px}
.enterprise-sticky-toolbar .enterprise-toolbar-mainline{gap:7px}
.enterprise-sticky-toolbar .enterprise-toolbar-toggle{min-height:30px;height:30px;padding:0 8px;border-radius:8px;font-size:10px}
.enterprise-sticky-toolbar .enterprise-toggle-icon{font-size:15px;width:12px}
.enterprise-sticky-toolbar .enterprise-search{gap:3px;font-size:9px}
.enterprise-sticky-toolbar .enterprise-search input{height:30px;border-radius:8px;padding:0 9px;font-size:11px}
.enterprise-sticky-toolbar .enterprise-live-count,
.enterprise-sticky-toolbar .enterprise-active-row{padding:5px 7px;border-radius:8px;font-size:9px}
.enterprise-sticky-toolbar .enterprise-filters-toggle{min-height:30px;height:30px;padding:0 9px;border-radius:8px;font-size:10px}
.enterprise-row-actions{margin-top:6px;gap:5px}
.enterprise-row-actions-toggle{min-height:28px;height:28px;padding:4px 9px;border-radius:8px;font-size:10px}
.enterprise-row-actions-panel{gap:5px}
.enterprise-card-modes{gap:4px;margin:7px 0 4px;padding-top:6px}
.enterprise-card-modes .enterprise-mode-btn{font-size:9px;padding:5px 7px;min-height:28px;border-radius:7px}
.enterprise-card-actions{gap:5px;margin-top:7px;padding-top:7px}
.enterprise-card-actions .enterprise-card-btn,
.enterprise-card-actions .enterprise-edit-btn{font-size:9px;padding:5px 7px}
.enterprise-user-actions{gap:5px;margin-top:7px}
.enterprise-user-btn{font-size:9px;padding:6px 8px;border-radius:8px}
@media(max-width:720px){
  .enterprise-page-hero{margin-bottom:7px}
  .enterprise-page-hero h1{font-size:24px}
  .enterprise-sticky-toolbar.is-collapsed{padding:4px 6px}
  .enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-mainline{grid-template-columns:auto 1fr auto;gap:5px}
  .enterprise-sticky-toolbar.is-collapsed .enterprise-search input{height:29px}
}


/* PROFILE CHANGE REQUESTS v11.78 */
.profile-edit-actions{margin-top:14px}.profile-edit-field{display:flex;flex-direction:column;gap:6px;margin:10px 0;font-size:12px;color:var(--muted)}.profile-edit-field input{width:100%;box-sizing:border-box;border:1px solid #cfe0ea;border-radius:11px;padding:10px 11px;font:inherit;color:var(--blue-900);background:#fff}.profile-edit-field input:disabled{background:#f1f5f7;color:#718392}.profile-edit-field small{font-size:11px;color:var(--muted)}.profile-request-item{padding:10px 0;border-bottom:1px solid #edf2f6}.profile-request-item:last-child{border-bottom:0}.profile-request-item>div{display:flex;justify-content:space-between;gap:10px}.profile-request-item span,.profile-request-item small{display:block;color:var(--muted);font-size:11px}.profile-request-item p{margin:7px 0 0;font-size:12px;color:var(--blue-900)}.profile-request-admin-item{border:1px solid #e2ecf2;border-radius:16px;padding:14px;margin:10px 0;background:#fbfdfe}.profile-request-admin-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.profile-request-admin-head>div span,.profile-request-admin-head>span{display:block;color:var(--muted);font-size:11px;margin-top:3px}.profile-request-changes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.profile-request-change{display:flex;justify-content:space-between;gap:10px;border:1px solid #edf2f6;border-radius:10px;padding:8px 10px;background:#fff}.profile-request-change span{font-size:11px;color:var(--muted)}.profile-request-change strong{font-size:11px;color:var(--blue-900);text-align:right}.profile-requests-admin-card{margin-top:16px}@media(max-width:700px){.profile-request-changes{grid-template-columns:1fr}.profile-request-admin-head{display:block}}


/* v11.82 password recovery */
.auth-link-btn{display:block;width:100%;margin:10px 0 0;border:0;background:transparent;color:var(--blue-800);font:inherit;font-size:12px;font-weight:800;cursor:pointer;padding:8px}.auth-link-btn:hover{text-decoration:underline}.recovery-panel{margin-top:14px;padding:15px;border:1px solid #d9e7f0;border-radius:15px;background:#f8fbfd}.recovery-heading{display:grid;gap:4px;margin-bottom:12px;color:var(--blue-950)}.recovery-heading strong{font-size:14px}.recovery-heading span{font-size:11px;line-height:1.45;color:var(--muted)}.recovery-panel label{margin-bottom:10px}.recovery-panel .primary-btn{min-height:46px}.recovery-panel .auth-link-btn{margin-top:5px}

/* v11.93 — reliable role-gated navigation and notification layering */
.nav-item[hidden], .nav-caption[hidden] { display:none !important; }
.crm-header { z-index:1000; overflow:visible; }
.notification-panel { z-index:5000; }


/* v11.98 — enterprise compact typography and consistent missing-value labels */
.enterprise-card-stack .enterprise-card-row{grid-template-columns:minmax(150px,32%) minmax(0,1fr);gap:12px;padding:7px 10px}
.enterprise-card-stack .enterprise-card-row span{font-size:9px;line-height:1.35}
.enterprise-card-stack .enterprise-card-row strong,.enterprise-card-stack .enterprise-card-row a{font-size:10px;line-height:1.35}
.enterprise-compact-card .enterprise-card-stack{font-size:10px}
.enterprise-simple-address{font-size:10px!important;line-height:1.35;color:var(--blue-900)}
.enterprise-card-stack .enterprise-link{font-size:10px}
.enterprise-all-fields .enterprise-all-field span,.enterprise-all-fields .enterprise-all-field strong{font-size:10px}
.user-primary-text{display:inline-flex!important;align-items:baseline;gap:12px}
.user-primary-text strong{font-size:12px!important}
.user-primary-text .user-id-meta{font-size:10px!important;color:#91a0af!important;white-space:nowrap}
@media(max-width:700px){.user-primary-text{gap:8px}.enterprise-card-stack .enterprise-card-row{grid-template-columns:minmax(120px,38%) minmax(0,1fr);gap:8px;padding:7px 9px}}


/* v11.99 — читаемое группирование данных предприятий и mobile-first */
.enterprise-readable-stack{display:grid;gap:10px}
.enterprise-info-group{border:1px solid #e7eef3;border-radius:12px;background:#fbfdfe;overflow:hidden}
.enterprise-info-group>h4{margin:0;padding:7px 10px;background:#f3f7fa;color:#577082;font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:900}
.enterprise-info-group-body{display:grid;gap:0}
.enterprise-info-group .enterprise-card-row{border-bottom:1px solid #edf2f5;border-radius:0}
.enterprise-info-group .enterprise-card-row:last-child{border-bottom:0}
.enterprise-all-fields{display:grid;gap:0;border:1px solid #e7eef3;border-radius:12px;overflow:hidden;background:#fff}
.enterprise-all-field{display:grid;grid-template-columns:minmax(145px,34%) minmax(0,1fr);gap:10px;padding:6px 9px;border-bottom:1px solid #edf2f5;align-items:start}
.enterprise-all-field:last-child{border-bottom:0}
.enterprise-all-field span{font-size:9px;line-height:1.35;color:#6b8090;font-weight:800}
.enterprise-all-field strong{font-size:10px;line-height:1.4;color:#183c56;overflow-wrap:anywhere}
@media(max-width:700px){.enterprise-readable-stack{gap:8px}.enterprise-info-group>h4{font-size:9px;padding:6px 8px}.enterprise-info-group .enterprise-card-row{grid-template-columns:minmax(112px,36%) minmax(0,1fr);gap:7px;padding:6px 8px}.enterprise-card-stack .enterprise-card-row span{font-size:8.5px}.enterprise-card-stack .enterprise-card-row strong,.enterprise-card-stack .enterprise-card-row a{font-size:9.5px}.enterprise-all-field{grid-template-columns:minmax(110px,38%) minmax(0,1fr);gap:7px;padding:6px 8px}.enterprise-all-field span{font-size:8px}.enterprise-all-field strong{font-size:9.5px}}

/* v12.00 — logical enterprise data grouping, compact all-data mode, mobile-first */
.enterprise-readable-card{padding:10px 12px}
.enterprise-readable-card .enterprise-compact-title{margin-bottom:8px}
.enterprise-readable-card .enterprise-compact-title h3{font-size:13px;line-height:1.25;margin:2px 0 0;letter-spacing:-.015em}
.enterprise-readable-card .enterprise-info-group{margin:7px 0;border-radius:10px}
.enterprise-readable-card .enterprise-info-group>h4{font-size:9px;padding:6px 9px;letter-spacing:.045em}
.enterprise-readable-card .enterprise-card-row{grid-template-columns:minmax(120px,31%) minmax(0,1fr);gap:9px;padding:5px 8px}
.enterprise-readable-card .enterprise-card-row span{font-size:8.5px;line-height:1.3}
.enterprise-readable-card .enterprise-card-row strong,.enterprise-readable-card .enterprise-card-row a{font-size:9.5px;line-height:1.35;overflow-wrap:anywhere}
.enterprise-simple-body{display:grid;gap:3px}
.enterprise-simple-name{font-size:12px;font-weight:900;color:var(--blue-900);line-height:1.3}
.enterprise-simple-address{font-size:9.5px!important;line-height:1.35;color:#61788a}
.enterprise-all-row{grid-template-columns:minmax(135px,33%) minmax(0,1fr)!important}
@media(max-width:700px){
 .enterprise-readable-card{padding:9px 10px}
 .enterprise-readable-card .enterprise-info-group>h4{font-size:8.5px;padding:5px 8px}
 .enterprise-readable-card .enterprise-card-row{grid-template-columns:minmax(105px,37%) minmax(0,1fr)!important;gap:7px;padding:5px 7px}
 .enterprise-readable-card .enterprise-card-row span{font-size:8px}
 .enterprise-readable-card .enterprise-card-row strong,.enterprise-readable-card .enterprise-card-row a{font-size:9px}
 .enterprise-all-row{grid-template-columns:minmax(105px,37%) minmax(0,1fr)!important}
 .enterprise-simple-name{font-size:11.5px}
 .enterprise-simple-address{font-size:9px!important}
}

/* v12.02 — компактное mobile-first оформление названий и карточек */
.enterprise-readable-card .enterprise-compact-title{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.enterprise-card-code{font-size:9px;color:var(--muted);font-weight:900;white-space:nowrap}
.enterprise-readable-card .enterprise-compact-title h3{margin:0;font-size:12px;line-height:1.25}
.enterprise-readable-card .enterprise-simple-body{margin-top:3px}
.enterprise-readable-card .enterprise-simple-address{font-size:9px!important;line-height:1.35}
@media(max-width:700px){.enterprise-readable-card .enterprise-compact-title{gap:6px}.enterprise-card-code{font-size:8px}.enterprise-readable-card .enterprise-compact-title h3{font-size:11px}.enterprise-readable-card .enterprise-simple-address{font-size:8.5px!important}}

/* v12.15 — two-level enterprise toolbar: stays below fixed CRM header, page title scrolls under it */
.enterprise-sticky-toolbar{
  position:sticky !important;
  top:80px !important;
  z-index:40 !important;
}
@media (max-width:700px){
  .enterprise-sticky-toolbar{
    top:68px !important;
  }
}


/* v12.19 — restore v12.16 enterprise toolbar collapse behavior; preserve current v12.18 handlers */
.enterprise-sticky-toolbar.is-collapsed .enterprise-search,
.enterprise-sticky-toolbar.is-collapsed .enterprise-start-inline,
.enterprise-sticky-toolbar.is-collapsed .enterprise-filters-toggle{display:none !important}
.enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-mainline{grid-template-columns:auto auto auto;justify-content:space-between;gap:7px}
.enterprise-sticky-toolbar.is-collapsed .enterprise-live-count{justify-self:end}
.enterprise-sticky-toolbar.is-collapsed .enterprise-active-row{justify-self:end}

/* v12.20 — enterprise toolbar geometry restored to v12.16; jump-to-row inline and target row stays directly below sticky toolbar */
.enterprise-sticky-toolbar .enterprise-toolbar-mainline{grid-template-columns:auto minmax(240px,1fr) auto auto auto;align-items:center;gap:10px}
.enterprise-sticky-toolbar .enterprise-start-inline{display:flex}
.enterprise-sticky-toolbar .enterprise-start-inline label{display:flex;align-items:center;gap:8px;margin-bottom:0;color:var(--muted);font-size:11px;font-weight:800}
.enterprise-sticky-toolbar .enterprise-start-inline input{width:78px;max-width:78px;height:30px;border:1px solid var(--line);border-radius:8px;padding:0 8px;font-size:11px;color:var(--blue-950);background:#fff}
.enterprise-sticky-toolbar .enterprise-start-go{min-height:30px;height:30px;padding:0 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--blue-900);font-size:10px;font-weight:800;cursor:pointer}
.enterprise-sticky-toolbar.is-collapsed .enterprise-start-inline{display:none !important}
@media(max-width:900px){.enterprise-sticky-toolbar .enterprise-toolbar-mainline{grid-template-columns:auto minmax(180px,1fr) auto auto auto;gap:7px}.enterprise-sticky-toolbar .enterprise-search{min-width:0}}
@media(max-width:700px){.enterprise-sticky-toolbar .enterprise-toolbar-mainline{grid-template-columns:auto 1fr auto auto auto;gap:5px}.enterprise-sticky-toolbar .enterprise-start-inline{gap:4px}.enterprise-sticky-toolbar .enterprise-start-inline label span{display:none}.enterprise-sticky-toolbar .enterprise-start-inline input{width:60px;max-width:60px;height:29px;font-size:10px}.enterprise-sticky-toolbar .enterprise-start-go{height:29px;min-height:29px;padding:0 7px;font-size:9px}.enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-mainline{grid-template-columns:auto auto auto;justify-content:space-between;gap:7px}.enterprise-sticky-toolbar.is-collapsed .enterprise-live-count,.enterprise-sticky-toolbar.is-collapsed .enterprise-active-row{justify-self:end}}

/* v12.21 — compact enterprise toolbar: filters stay on the first row and match the row controls */
.enterprise-sticky-toolbar .enterprise-toolbar-mainline{
  grid-template-columns:auto minmax(160px,1fr) auto auto auto auto;
  gap:7px;
}
.enterprise-sticky-toolbar .enterprise-search{min-width:0;gap:2px;font-size:9px}
.enterprise-sticky-toolbar .enterprise-search input{
  height:30px;
  min-width:0;
  padding:0 8px;
  border-radius:8px;
  font-size:10px;
}
.enterprise-sticky-toolbar .enterprise-filter-inline{gap:5px}
.enterprise-sticky-toolbar .enterprise-start-inline label{gap:5px;font-size:9px}
.enterprise-sticky-toolbar .enterprise-start-inline input{
  width:68px;
  max-width:68px;
  height:30px;
  padding:0 7px;
  border-radius:8px;
  font-size:10px;
}
.enterprise-sticky-toolbar .enterprise-start-go{
  height:30px;
  min-height:30px;
  padding:0 8px;
  border-radius:8px;
  font-size:9px;
}
.enterprise-sticky-toolbar .enterprise-filters-toggle{
  height:30px;
  min-height:30px;
  padding:0 8px;
  border-radius:8px;
  font-size:9px;
  white-space:nowrap;
}
.enterprise-sticky-toolbar .enterprise-live-count,
.enterprise-sticky-toolbar .enterprise-active-row{
  min-height:30px;
  padding:5px 7px;
  border-radius:8px;
  font-size:9px;
}
.enterprise-sticky-toolbar .enterprise-toolbar-details{margin-top:7px}
.enterprise-sticky-toolbar .enterprise-filter-grid{gap:6px}
.enterprise-sticky-toolbar .enterprise-filter-combo>span{
  font-size:9px;
  line-height:1.2;
}
.enterprise-sticky-toolbar .filter-combo-wrap{margin-top:3px}
.enterprise-sticky-toolbar .enterprise-filter-combo input{
  height:30px;
  min-height:30px;
  padding:5px 31px 5px 8px;
  border-radius:8px;
  font-size:10px;
}
.enterprise-sticky-toolbar .filter-combo-toggle{
  top:2px;
  right:2px;
  width:26px;
  height:26px;
  border-radius:6px;
  font-size:14px;
}
.enterprise-sticky-toolbar .filter-combo-options{
  top:33px;
  max-height:190px;
  padding:3px;
  border-radius:8px;
}
.enterprise-sticky-toolbar .filter-combo-option{padding:5px 7px;font-size:10px}
.enterprise-sticky-toolbar .enterprise-filter-actions{gap:6px;margin-top:7px}
.enterprise-sticky-toolbar .enterprise-filter-actions .hero-btn{
  min-height:30px;
  height:30px;
  padding:0 9px;
  border-radius:8px;
  font-size:9px;
}
.enterprise-sticky-toolbar .enterprise-active-filters{gap:5px;margin-top:6px}
.enterprise-sticky-toolbar .enterprise-filter-chip{padding:4px 7px;font-size:9px}
.enterprise-sticky-toolbar .enterprise-filter-empty{font-size:9px}
@media(max-width:1050px){
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{
    grid-template-columns:auto minmax(125px,1fr) auto auto auto auto;
    gap:5px;
  }
  .enterprise-sticky-toolbar .enterprise-start-inline input{width:60px;max-width:60px}
  .enterprise-sticky-toolbar .enterprise-filters-toggle{padding:0 7px}
}
@media(max-width:700px){
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{
    grid-template-columns:auto minmax(90px,1fr) auto auto auto auto;
    gap:4px;
  }
  .enterprise-sticky-toolbar .enterprise-search input{height:29px;font-size:9px}
  .enterprise-sticky-toolbar .enterprise-start-inline input{width:55px;max-width:55px;height:29px}
  .enterprise-sticky-toolbar .enterprise-start-go{height:29px;min-height:29px;padding:0 6px;font-size:8px}
  .enterprise-sticky-toolbar .enterprise-filters-toggle{height:29px;min-height:29px;padding:0 6px;font-size:8px}
  .enterprise-sticky-toolbar .enterprise-live-count,
  .enterprise-sticky-toolbar .enterprise-active-row{min-height:29px;padding:5px 6px;font-size:8px}
}
/* v12.21 — preserve compact collapsed toolbar distribution after six-column first-row layout */
.enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-mainline{
  grid-template-columns:auto auto auto;
  justify-content:space-between;
  gap:7px;
}
.enterprise-sticky-toolbar.is-collapsed .enterprise-live-count,
.enterprise-sticky-toolbar.is-collapsed .enterprise-active-row{
  justify-self:end;
}


/* v12.32 — компактная двусторонняя сверка принадлежности предприятия */
.enterprise-parent-compare-modal{width:min(1540px,100%);}
.enterprise-parent-target{margin-bottom:12px;padding:10px;border:1px solid #dce7ee;border-radius:12px;background:#f8fbfc;}
.enterprise-parent-target label{display:grid;gap:5px;color:var(--muted);font-size:10px;font-weight:850;}
.enterprise-parent-target input{height:34px;border:1px solid var(--line);border-radius:8px;padding:0 9px;font-size:11px;color:var(--blue-950);background:#fff;}
.enterprise-parent-target-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:7px;max-height:150px;overflow:auto;}
.enterprise-parent-target-item{display:grid;grid-template-columns:auto 1fr auto;gap:6px;align-items:center;text-align:left;border:1px solid #dce7ee;border-radius:8px;background:#fff;padding:7px 8px;cursor:pointer;min-width:0;}
.enterprise-parent-target-item:hover{border-color:#b7d2dc;background:#f6fbfc;}
.enterprise-parent-target-item strong{font-size:10px;color:var(--blue-950);}
.enterprise-parent-target-item span{font-size:10px;color:var(--blue-900);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.enterprise-parent-target-item small{font-size:9px;color:var(--muted);white-space:nowrap;}
.enterprise-parent-compare-table-wrap{border:1px solid var(--line);border-radius:12px;overflow:auto;background:#fff;}
.enterprise-parent-compare-grid{display:grid;grid-template-columns:220px minmax(320px,1fr) minmax(320px,1fr);min-width:920px;}
.enterprise-parent-compare-grid>div{border-bottom:1px solid #e8eef2;border-right:1px solid #e8eef2;padding:6px 8px;min-height:31px;display:flex;align-items:center;}
.enterprise-parent-compare-grid>div:nth-child(3n){border-right:0;}
.enterprise-parent-compare-label{font-size:9px;font-weight:850;color:var(--muted);background:#f5f9fb;}
.enterprise-parent-compare-head{position:sticky;top:0;z-index:2;display:grid!important;gap:4px!important;align-content:start!important;background:#eef6f8!important;min-height:76px!important;}
.enterprise-parent-compare-head strong{font-size:12px;color:var(--blue-950);}
.enterprise-parent-compare-head span{font-size:10px;color:var(--blue-900);line-height:1.25;white-space:normal;word-break:break-word;}
.enterprise-parent-assign-btn{justify-self:start;border:1px solid #aac8d2;background:#fff;color:var(--blue-950);border-radius:7px;padding:5px 7px;font-size:9px;font-weight:850;cursor:pointer;}
.enterprise-parent-assign-btn:hover{background:#edf7f8;border-color:#83b1bf;}
.enterprise-parent-compare-row{display:contents;}
.enterprise-parent-compare-cell{background:#fff;}
.enterprise-parent-compare-cell-right{background:#fcfefe;}
.enterprise-parent-compare-value{font-size:10px;color:var(--blue-900);line-height:1.25;white-space:pre-wrap;word-break:break-word;width:100%;}
.enterprise-parent-compare-label + .enterprise-parent-compare-cell .enterprise-parent-compare-value,
.enterprise-parent-compare-cell .enterprise-parent-compare-value{min-height:16px;}
.enterprise-parent-compare-value:empty::before{content:'Информация отсутствует';color:#9aaab6;}
.enterprise-parent-compare-btn{border:1px solid #9ec4cf;background:#fff;color:var(--blue-950);border-radius:8px;padding:6px 8px;font-size:9px;font-weight:850;cursor:pointer;}
.enterprise-parent-compare-btn:hover{background:#eef8fa;border-color:#75a9b7;}
@media(max-width:900px){.enterprise-parent-target-list{grid-template-columns:1fr 1fr;}.enterprise-parent-compare-modal{padding:12px;} .enterprise-parent-compare-grid{grid-template-columns:180px minmax(260px,1fr) minmax(260px,1fr);}}
/* v12.36 — полный список предприятий сразу в обеих половинах сверки */
.enterprise-parent-compare-selectors{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-bottom:12px;}
.enterprise-parent-selector{border:1px solid var(--line);border-radius:10px;background:#f8fbfc;padding:8px;min-width:0;}
.enterprise-parent-selector-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;min-width:0;}
.enterprise-parent-selector-head strong{font-size:11px;color:var(--blue-950);white-space:nowrap;}
.enterprise-parent-selector-state{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.enterprise-parent-selector-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;margin-bottom:6px;}
.enterprise-parent-selector-search input{height:31px;border:1px solid var(--line);border-radius:7px;padding:0 8px;font-size:10px;color:var(--blue-950);background:#fff;min-width:0;}
.enterprise-parent-selector-search button{height:31px;border:1px solid #9ec4cf;border-radius:7px;padding:0 9px;font-size:9px;font-weight:850;color:var(--blue-950);background:#fff;cursor:pointer;}
.enterprise-parent-selector-search button:hover{background:#eef8fa;border-color:#75a9b7;}
.enterprise-parent-selector-list{display:grid;gap:3px;max-height:min(58vh,560px);overflow:auto;padding-right:2px;}
.enterprise-parent-selector-item{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;width:100%;text-align:left;border:1px solid #dce7ee;border-radius:6px;background:#fff;padding:5px 7px;cursor:pointer;min-width:0;}
.enterprise-parent-selector-item:hover{border-color:#86b3c0;background:#f2fafb;}
.enterprise-parent-selector-item.selected{border-color:#2c7a91;background:#eaf6f8;box-shadow:inset 2px 0 0 #2c7a91;}
.enterprise-parent-selector-item.is-assigned{background:#fafafa;}
.enterprise-parent-selector-item-id{font-size:9px;font-weight:900;color:var(--blue-950);white-space:nowrap;}
.enterprise-parent-selector-item-name{font-size:10px;font-weight:650;color:var(--blue-900);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.enterprise-parent-assign-btn.is-disabled{cursor:not-allowed;opacity:.55;}
@media(max-width:900px){.enterprise-parent-compare-selectors{grid-template-columns:1fr;}}


/* v12.37 — только две части, карточка внутри своей половины. */
.enterprise-parent-compare-modal{width:min(1560px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:hidden;}
.enterprise-parent-compare-selectors{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:0;align-items:start;}
.enterprise-parent-selector{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:12px;background:#f8fbfc;padding:10px;min-height:0;}
.enterprise-parent-selector-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;}
.enterprise-parent-selector-head strong{font-size:11px;letter-spacing:.04em;color:var(--blue-950);}
.enterprise-parent-selector-state{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.enterprise-parent-selector-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-bottom:8px;}
.enterprise-parent-selector-search input{height:34px;border:1px solid var(--line);border-radius:8px;padding:0 10px;font-size:10px;color:var(--blue-950);background:#fff;min-width:0;}
.enterprise-parent-selector-search button{height:34px;border:1px solid #9ec4cf;border-radius:8px;padding:0 13px;font-size:9px;font-weight:850;color:var(--blue-950);background:#fff;cursor:pointer;}
.enterprise-parent-selector-list{display:grid;gap:3px;max-height:245px;overflow:auto;padding:1px 3px 3px 1px;scrollbar-gutter:stable;}
.enterprise-parent-selector-item{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:8px;width:100%;text-align:left;border:1px solid #dce7ee;border-radius:7px;background:#fff;padding:6px 8px;cursor:pointer;min-width:0;}
.enterprise-parent-selector-item:hover{border-color:#86b3c0;background:#f2fafb;}
.enterprise-parent-selector-item.selected{border-color:#2c7a91;background:#eaf6f8;box-shadow:inset 3px 0 0 #2c7a91;}
.enterprise-parent-selector-item.is-assigned{opacity:.68;}
.enterprise-parent-selector-item-id{font-size:9px;font-weight:900;color:var(--blue-950);white-space:nowrap;}
.enterprise-parent-selector-item-name{font-size:10px;font-weight:650;color:var(--blue-900);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.enterprise-parent-detail{margin-top:9px;border-top:1px solid #dce7ee;padding-top:9px;max-height:calc(100vh - 395px);overflow:auto;}
.enterprise-parent-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:9px;border:1px solid #d5e5ea;border-radius:9px;background:#fff;}
.enterprise-parent-detail-head>div{display:grid;gap:3px;min-width:0;}
.enterprise-parent-detail-head strong{font-size:12px;color:var(--blue-950);}.enterprise-parent-detail-head span{font-size:11px;font-weight:750;color:var(--blue-900);line-height:1.3;}.enterprise-parent-detail-head small{font-size:9px;color:var(--muted);}
.enterprise-parent-detail-close{flex:0 0 auto;border:1px solid var(--line);border-radius:7px;background:#fff;padding:6px 8px;font-size:9px;font-weight:800;color:var(--blue-950);cursor:pointer;}
.enterprise-parent-detail-actions{display:flex;margin:7px 0;}.enterprise-parent-assign-btn{border:1px solid #9ec4cf;background:#fff;color:var(--blue-950);border-radius:8px;padding:7px 9px;font-size:9px;font-weight:850;cursor:pointer;}.enterprise-parent-assign-btn.is-disabled{cursor:not-allowed;opacity:.55;}
.enterprise-parent-detail-fields{display:grid;grid-template-columns:1fr 1fr;gap:5px;}.enterprise-parent-detail-field{display:grid;gap:3px;min-width:0;padding:7px 8px;border:1px solid #e1eaee;border-radius:7px;background:#fff;}.enterprise-parent-detail-field span{font-size:8px;font-weight:850;color:var(--muted);}.enterprise-parent-detail-field strong{font-size:9px;font-weight:650;color:var(--blue-900);line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere;}
@media(max-width:900px){.enterprise-parent-compare-selectors{grid-template-columns:1fr;}.enterprise-parent-selector-list{max-height:220px;}.enterprise-parent-detail-fields{grid-template-columns:1fr;}.enterprise-parent-compare-modal{width:calc(100vw - 18px);max-height:calc(100vh - 18px);}}

/* v12.38 — карточка полностью заменяет выбор внутри своей половины + разрыв связи */
.enterprise-parent-selector{height:calc(100vh - 170px);max-height:760px;min-height:420px;overflow:hidden;}
.enterprise-parent-selector-list{flex:1;min-height:0;max-height:none;overflow:auto;}
.enterprise-parent-detail{margin:0;border-top:0;padding:0;max-height:none;height:100%;overflow:auto;}
.enterprise-parent-detail-fields{grid-template-columns:1fr;}
.enterprise-parent-detail-head{position:sticky;top:0;z-index:3;box-shadow:0 2px 8px rgba(8,47,91,.06);}
.enterprise-parent-detail-actions{position:sticky;top:77px;z-index:2;padding:7px 0;background:#f8fbfc;flex-wrap:wrap;gap:7px;}
.enterprise-parent-unlink-btn{border:1px solid #d59b9b;background:#fff7f7;color:#8b3030;border-radius:8px;padding:7px 10px;font-size:9px;font-weight:850;cursor:pointer;}
.enterprise-parent-unlink-btn:hover{background:#fff0f0;border-color:#c97878;}
.enterprise-parent-loading{display:grid;place-items:center;height:100%;min-height:180px;color:var(--muted);font-size:11px;font-weight:750;}
@media(max-width:900px){.enterprise-parent-selector{height:calc(100vh - 150px);min-height:360px;}.enterprise-parent-detail-actions{top:77px;}}

/* v12.39: enterprise comparison cards — compact, complete and mirrored scrolling */
.enterprise-parent-compare-selectors{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;min-height:0;height:calc(100vh - 190px);}
.enterprise-parent-selector{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;}
.enterprise-parent-detail{display:flex;flex-direction:column;flex:1;min-height:0;height:auto;overflow:hidden;}
.enterprise-parent-detail-fields{display:flex;flex-direction:column;gap:5px;flex:1;min-height:0;overflow:auto;padding:2px 5px 12px 1px;scrollbar-gutter:stable;}
.enterprise-parent-detail-field{display:grid;grid-template-columns:minmax(145px,28%) minmax(0,1fr);gap:8px;align-items:start;padding:6px 8px;}
.enterprise-parent-detail-field span{font-size:8px;line-height:1.25;}
.enterprise-parent-detail-field strong{font-size:9px;line-height:1.35;}
.enterprise-parent-detail-actions{flex:0 0 auto;}
.enterprise-parent-detail-actions button{white-space:nowrap;}
.enterprise-parent-edit-btn,.enterprise-parent-delete-btn,.enterprise-parent-unlink-btn{border:1px solid var(--line);background:#fff;color:var(--blue-950);border-radius:8px;padding:7px 9px;font-size:9px;font-weight:850;cursor:pointer;}
.enterprise-parent-edit-btn:hover,.enterprise-parent-unlink-btn:hover{background:#eef8fa;}
.enterprise-parent-delete-btn{border-color:#d9a6a6;color:#8b2424;}
.enterprise-parent-delete-btn:hover{background:#fff1f1;}
.enterprise-link{overflow-wrap:anywhere;}
@media(max-width:900px){.enterprise-parent-compare-selectors{grid-template-columns:1fr;height:calc(100vh - 150px);}.enterprise-parent-detail-field{grid-template-columns:125px minmax(0,1fr);}}

/* v12.41 — компактная строка действий предприятий и визуальные связи */
.enterprise-primary-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:8px;padding-top:7px;border-top:1px solid #e9eff3}
.enterprise-primary-actions .enterprise-card-btn,.enterprise-primary-actions .enterprise-user-btn,.enterprise-primary-actions .enterprise-children-btn{font-size:9px;padding:5px 7px;min-height:27px;border-radius:8px}
.enterprise-children-btn{border:1px solid #c9d9e4;background:#f7fafc;color:var(--blue-900);font-weight:850;cursor:pointer}
.enterprise-children-btn:hover{background:#eef5f8}
.enterprise-parent-info{display:flex;align-items:center;gap:6px;max-width:100%;margin-top:6px;padding:4px 7px;border:1px solid #e4d8b7;border-radius:7px;background:#fcfaf4;color:#76633a;cursor:pointer;text-align:left;font:inherit}
.enterprise-parent-info span{font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;opacity:.8}
.enterprise-parent-info strong{font-size:9px;font-family:var(--mono,monospace)}
.enterprise-parent-info em{font-size:9px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.enterprise-primary-actions .enterprise-user-actions{display:contents}
.enterprise-primary-actions .enterprise-user-btn{margin:0}
.enterprise-row-actions{margin-top:6px}
.enterprise-card-actions{margin-top:5px;padding-top:5px}
.enterprise-card-actions .enterprise-edit-btn,.enterprise-card-actions .enterprise-parent-compare-btn{font-size:9px;padding:5px 7px;min-height:27px;border-radius:8px}
.enterprise-related-list{display:grid;gap:0;border:1px solid #e5edf2;border-radius:11px;overflow:hidden;background:#fff}
.enterprise-related-list-row{display:grid;grid-template-columns:75px minmax(0,1fr);gap:10px;align-items:center;width:100%;padding:8px 10px;border:0;border-bottom:1px solid #edf2f5;background:#fff;color:var(--blue-900);text-align:left;cursor:pointer}
.enterprise-related-list-row:last-child{border-bottom:0}
.enterprise-related-list-row:hover{background:#f6fafc}
.enterprise-related-list-row span{font-size:9px;font-family:var(--mono,monospace);color:#708696;font-weight:800}
.enterprise-related-list-row strong{font-size:10px;line-height:1.35;font-weight:850}
@media(max-width:720px){.enterprise-primary-actions{gap:4px}.enterprise-primary-actions .enterprise-card-btn,.enterprise-primary-actions .enterprise-user-btn,.enterprise-primary-actions .enterprise-children-btn{font-size:8px;padding:5px 6px}.enterprise-parent-info{max-width:100%}}

/* v12.42 — действия и режимы строго в одной компактной строке */
.enterprise-primary-actions{margin-top:6px;padding-top:5px;gap:4px;align-items:center}
.enterprise-primary-actions .enterprise-card-btn,.enterprise-primary-actions .enterprise-user-btn,.enterprise-primary-actions .enterprise-children-btn,.enterprise-primary-actions .enterprise-mode-btn{font-size:9px;padding:4px 7px;min-height:26px;height:26px;line-height:1.1;border-radius:7px;box-sizing:border-box;white-space:nowrap}
.enterprise-primary-actions .enterprise-card-modes-inline{display:flex;align-items:center;gap:4px;margin:0;padding:0;border:0;flex-wrap:nowrap}
.enterprise-primary-actions .enterprise-card-modes-inline .enterprise-mode-btn{font-weight:800}
.enterprise-card-actions .enterprise-edit-btn,.enterprise-card-actions .enterprise-parent-compare-btn{font-size:9px;padding:4px 7px;min-height:26px;height:26px;border-radius:7px}
.enterprise-related-list-row{grid-template-columns:70px minmax(0,1fr);align-items:start}
.enterprise-related-list-row strong{display:block}
.enterprise-related-list-row .enterprise-related-address{display:block;margin-top:2px;font-size:9px;line-height:1.3;color:#718392;font-weight:600}
@media(max-width:720px){.enterprise-primary-actions{gap:3px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.enterprise-primary-actions .enterprise-card-btn,.enterprise-primary-actions .enterprise-user-btn,.enterprise-primary-actions .enterprise-children-btn,.enterprise-primary-actions .enterprise-mode-btn{font-size:8px;padding:4px 6px}.enterprise-primary-actions .enterprise-card-modes-inline{gap:3px}.enterprise-related-list-row{grid-template-columns:62px minmax(0,1fr)}}
/* v12.44 — все кнопки строки предприятия приведены к единому размеру с «Кратко / Полно / Все данные» */
.enterprise-primary-actions .enterprise-card-btn,
.enterprise-primary-actions .enterprise-user-btn,
.enterprise-primary-actions .enterprise-children-btn,
.enterprise-primary-actions .enterprise-mode-btn,
.enterprise-row-actions-toggle,
.enterprise-card-actions .enterprise-edit-btn,
.enterprise-card-actions .enterprise-parent-compare-btn{
  min-height:26px;height:26px;padding:4px 7px;font-size:9px;line-height:1.1;border-radius:7px;box-sizing:border-box;white-space:nowrap;
}
.enterprise-row-actions{gap:4px;margin-top:6px}
.enterprise-row-actions-panel{gap:4px;padding-top:0}
.enterprise-card-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
@media(max-width:720px){
  .enterprise-row-actions-toggle,.enterprise-card-actions .enterprise-edit-btn,.enterprise-card-actions .enterprise-parent-compare-btn{font-size:8px;padding:4px 6px;min-height:26px;height:26px}
}


/* v12.50 — первичная активация и управление системными аватарами */
.bootstrap-form{display:grid;gap:10px;max-width:520px;margin-top:14px}
.system-avatar-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin-top:16px}
.system-avatar-admin-item{border:1px solid var(--line);border-radius:16px;background:#fbfdff;padding:10px;display:flex;flex-direction:column;gap:8px;min-width:0}
.system-avatar-admin-item img{width:92px;height:92px;border-radius:50%;object-fit:cover;align-self:center}
.system-avatar-admin-name{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.system-avatar-admin-actions{display:grid;grid-template-columns:1fr;gap:5px}
.system-avatar-admin-actions button{min-height:30px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--blue-900);font-size:11px;font-weight:800}
.system-avatar-admin-actions button:hover{background:var(--blue-50)}
.system-avatar-admin-actions button.danger{color:var(--danger)}
.system-avatar-admin-add{grid-column:1/-1;border:1px dashed #b9ccda;border-radius:14px;padding:13px;display:grid;gap:8px;background:var(--blue-50)}
.system-avatar-admin-add strong{color:var(--blue-900);font-size:13px}
.system-avatar-admin-add input[type=file],.system-avatar-admin-add input[type=text]{width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#fff}
@media(max-width:640px){.system-avatar-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.system-avatar-head-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.system-avatar-head-actions .modal-btn{min-height:34px;padding:7px 12px}.system-avatar-admin-modal .system-avatar-admin-grid{overflow:auto;max-height:62vh;padding:16px}.system-avatar-admin-modal .system-avatar-head{align-items:flex-start}

/* v12.61 — единый простой список предприятий + полноценная мобильная адаптация */
.enterprise-compact-list{width:100%;min-width:0;display:grid;gap:8px}
.enterprise-compact-card{width:100%;min-width:0;box-sizing:border-box;overflow:hidden}
.enterprise-action-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.enterprise-action-controls>*{min-width:0;box-sizing:border-box}
.enterprise-action-controls .enterprise-user-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:0}
.enterprise-action-controls .enterprise-card-btn,
.enterprise-action-controls .enterprise-user-btn,
.enterprise-action-controls .enterprise-children-btn,
.enterprise-action-controls .enterprise-edit-btn,
.enterprise-action-controls .enterprise-parent-compare-btn{white-space:normal;line-height:1.2}
.enterprise-modal-backdrop{box-sizing:border-box;width:100vw;max-width:100vw}
.enterprise-modal{box-sizing:border-box;min-width:0;overflow-x:hidden}
.enterprise-modal-head>div{min-width:0;max-width:100%}
.enterprise-modal-head h2{overflow-wrap:anywhere;word-break:break-word}
.enterprise-card-stack{min-width:0;max-width:100%}
.enterprise-info-group{min-width:0;max-width:100%}
.enterprise-card-row{min-width:0;max-width:100%;box-sizing:border-box}
.enterprise-card-row span,.enterprise-card-row strong,.enterprise-card-row a{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.enterprise-modal-actions{min-width:0}
.enterprise-modal-actions>*{min-width:0;box-sizing:border-box}

@media(max-width:700px){
  .crm-header{width:100%;box-sizing:border-box;min-width:0;overflow:visible;padding-left:8px;padding-right:8px;gap:5px}
  .mobile-menu-btn{flex:0 0 38px;margin-right:2px}
  .header-title{min-width:0;flex:1;overflow:hidden}
  .header-title strong,.header-title .eyebrow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .header-quick-search{display:none!important}
  .header-notifications{flex:0 0 auto;margin-left:0;margin-right:0}
  .header-user{flex:0 0 auto;margin-left:0;min-width:0}
  .header-user .avatar{flex:0 0 38px;width:38px!important;height:38px!important}
  .crm-content{width:100%;max-width:100%;box-sizing:border-box;min-width:0;overflow-x:hidden;padding-left:8px;padding-right:8px}
  .enterprise-page-hero{width:100%;min-width:0;box-sizing:border-box}
  .enterprise-page-hero h1{overflow-wrap:anywhere;word-break:break-word}

  .enterprise-sticky-toolbar{width:100%;max-width:100%;box-sizing:border-box;min-width:0;overflow:visible}
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) auto!important;
    grid-template-rows:auto auto auto!important;
    gap:5px!important;
    width:100%;min-width:0;
  }
  .enterprise-sticky-toolbar .enterprise-toolbar-toggle{grid-column:1;grid-row:1;width:38px;min-width:38px;padding:0 6px}
  .enterprise-sticky-toolbar .enterprise-search{grid-column:2;grid-row:1;min-width:0;width:100%}
  .enterprise-sticky-toolbar .enterprise-search input{width:100%;min-width:0;box-sizing:border-box}
  .enterprise-sticky-toolbar .enterprise-filters-toggle{grid-column:3;grid-row:1;min-width:64px;width:auto}
  .enterprise-sticky-toolbar .enterprise-start-inline{grid-column:1/-1;grid-row:2;width:100%;min-width:0;display:flex!important;align-items:center;justify-content:flex-start;box-sizing:border-box}
  .enterprise-sticky-toolbar .enterprise-start-inline label{flex:0 0 auto}
  .enterprise-sticky-toolbar .enterprise-start-inline input{width:72px;max-width:72px}
  .enterprise-sticky-toolbar .enterprise-start-go{width:auto;min-width:74px}
  .enterprise-sticky-toolbar .enterprise-live-count{grid-column:1/3;grid-row:3;justify-self:start;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .enterprise-sticky-toolbar .enterprise-active-row{grid-column:3;grid-row:3;justify-self:end;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .enterprise-sticky-toolbar.is-collapsed .enterprise-search,
  .enterprise-sticky-toolbar.is-collapsed .enterprise-start-inline,
  .enterprise-sticky-toolbar.is-collapsed .enterprise-filters-toggle{display:none!important}
  .enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-mainline{grid-template-columns:38px minmax(0,1fr) auto!important;grid-template-rows:auto!important}
  .enterprise-sticky-toolbar.is-collapsed .enterprise-live-count{grid-column:2;grid-row:1;justify-self:end}
  .enterprise-sticky-toolbar.is-collapsed .enterprise-active-row{grid-column:3;grid-row:1;justify-self:end}
  .enterprise-sticky-toolbar .enterprise-toolbar-details{width:100%;min-width:0;box-sizing:border-box}
  .enterprise-sticky-toolbar .enterprise-filters-panel{width:100%;min-width:0}
  .enterprise-sticky-toolbar .enterprise-filter-grid{display:grid!important;grid-template-columns:1fr!important;width:100%;min-width:0}
  .enterprise-sticky-toolbar .enterprise-filter-combo{min-width:0;width:100%}
  .enterprise-sticky-toolbar .filter-combo-wrap{width:100%;min-width:0}
  .enterprise-sticky-toolbar .enterprise-filter-combo input{width:100%;min-width:0}
  .enterprise-sticky-toolbar .filter-combo-options{max-width:100%;box-sizing:border-box}
  .enterprise-sticky-toolbar .enterprise-filter-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .enterprise-sticky-toolbar .enterprise-filter-actions .hero-btn{width:100%;min-width:0}
  .enterprise-sticky-toolbar .enterprise-active-filters{max-width:100%;overflow:hidden}

  .enterprise-results-panel{width:100%;max-width:100%;box-sizing:border-box;min-width:0;overflow:hidden}
  .enterprise-results-panel .panel-head{min-width:0;gap:7px}
  .enterprise-results-panel .panel-head>div{min-width:0}
  .enterprise-results-panel .panel-head h2{overflow-wrap:anywhere}
  .enterprise-results-panel .panel-note{max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .enterprise-compact-card{padding-left:8px;padding-right:8px}
  .enterprise-row-actions{width:100%;min-width:0}
  .enterprise-row-actions-toggle{width:100%;box-sizing:border-box}
  .enterprise-row-actions-panel{width:100%;min-width:0}
  .enterprise-action-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:5px}
  .enterprise-action-controls .enterprise-user-actions{display:contents}
  .enterprise-action-controls .enterprise-card-btn,
  .enterprise-action-controls .enterprise-user-btn,
  .enterprise-action-controls .enterprise-children-btn,
  .enterprise-action-controls .enterprise-edit-btn,
  .enterprise-action-controls .enterprise-parent-compare-btn{width:100%;min-width:0;min-height:34px;padding:6px 7px;white-space:normal;overflow-wrap:anywhere}
  .enterprise-action-controls .enterprise-parent-compare-btn{grid-column:1/-1}
  .enterprise-action-controls .enterprise-children-btn{grid-column:1/-1}
  .enterprise-parent-info{width:100%;box-sizing:border-box;min-width:0}

  .enterprise-modal-backdrop{padding:7px;align-items:flex-start;overflow-y:auto;overflow-x:hidden}
  .enterprise-modal{width:100%;max-width:100%;max-height:calc(100vh - 14px);margin:0;border-radius:16px;padding:12px;overflow-y:auto;overflow-x:hidden}
  .enterprise-modal-head{gap:8px;align-items:flex-start}
  .enterprise-modal-head h2{font-size:20px;line-height:1.15}
  .enterprise-modal-head p{font-size:10px;overflow-wrap:anywhere}
  .enterprise-modal-head .hero-btn{flex:0 0 auto;width:auto;min-width:68px;padding:0 9px}
  .enterprise-card-stack .enterprise-card-row{grid-template-columns:minmax(92px,35%) minmax(0,1fr)!important;gap:6px;padding:6px 7px}
  .enterprise-card-stack .enterprise-card-row span{font-size:8px}
  .enterprise-card-stack .enterprise-card-row strong,.enterprise-card-stack .enterprise-card-row a{font-size:9px}
  .enterprise-info-group{border-radius:9px}
  .enterprise-info-group>h4{padding:6px 7px;font-size:8px}
  .enterprise-modal-actions{display:grid;grid-template-columns:1fr;width:100%;gap:6px}
  .enterprise-modal-actions .enterprise-user-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;margin:0;gap:5px}
  .enterprise-modal-actions .enterprise-user-btn,
  .enterprise-modal-actions .hero-btn{width:100%;min-width:0}
}

/* v12.62 — финальная мобильная геометрия списка предприятий, шапки и дочерних списков */
.crm-main,.crm-content,.enterprise-results,.enterprise-compact-list{min-width:0;max-width:100%;}
.crm-main{overflow-x:hidden;}
.enterprise-results{width:100%;overflow:hidden;}
.enterprise-compact-list{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;}
.enterprise-compact-card{width:100%;max-width:100%;min-width:0;overflow:hidden;}
.enterprise-readable-card .enterprise-compact-title{width:100%;min-width:0;align-items:flex-start;}
.enterprise-readable-card .enterprise-compact-title h3{min-width:0;flex:1;overflow-wrap:anywhere;word-break:break-word;}
.enterprise-readable-card .enterprise-simple-body{width:100%;min-width:0;}
.enterprise-readable-card .enterprise-simple-address{max-width:100%;overflow-wrap:anywhere;word-break:break-word;}
.enterprise-action-controls{width:100%;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;}
.enterprise-action-controls .enterprise-user-actions{display:contents;}
.enterprise-action-controls button{width:100%;min-width:0;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;}
.enterprise-row-actions{width:100%;min-width:0;}
.enterprise-row-actions-toggle{width:100%;max-width:100%;box-sizing:border-box;}
.enterprise-row-actions-panel{width:100%;min-width:0;max-width:100%;overflow:hidden;}
.enterprise-parent-info{width:100%;max-width:100%;box-sizing:border-box;min-width:0;}

@media(max-width:900px){
  .crm-header{
    width:100%;max-width:100%;min-width:0;box-sizing:border-box;
    display:grid;grid-template-columns:40px minmax(0,1fr) 38px 40px;
    align-items:center;gap:6px;padding:0 10px;overflow:visible;
  }
  .mobile-menu-btn{display:grid;width:40px;height:40px;margin:0;min-width:40px;}
  .header-title{grid-column:2;min-width:0;width:100%;overflow:hidden;}
  .header-title strong,.header-title .eyebrow{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .header-quick-search{display:none!important;}
  .header-notifications{grid-column:3;width:38px;min-width:38px;margin:0;justify-self:center;}
  .notification-bell{width:38px;min-width:38px;}
  .header-user{grid-column:4;width:40px;min-width:40px;margin:0;justify-self:end;display:flex;align-items:center;justify-content:flex-end;}
  .header-user>div:last-child{display:none;}
  .header-user .avatar{width:38px!important;height:38px!important;min-width:38px;flex:0 0 38px;}
  .crm-content{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow-x:hidden;}
}

@media(max-width:700px){
  .crm-header{height:64px;padding:0 8px;grid-template-columns:36px minmax(0,1fr) 36px 38px;gap:5px;}
  .mobile-menu-btn{width:36px;height:36px;min-width:36px;font-size:18px;border-radius:9px;}
  .header-notifications,.notification-bell{width:36px;min-width:36px;}
  .header-user,.header-user .avatar{width:38px!important;min-width:38px;}
  .header-user .avatar{height:38px!important;}
  .header-title .eyebrow{font-size:8px;line-height:1.05;}
  .header-title strong{font-size:12px;line-height:1.2;}

  .crm-content{padding:12px 8px 28px;}
  .enterprise-page-hero{margin-bottom:10px;}
  .enterprise-page-hero h1{font-size:27px;line-height:1.05;}
  .enterprise-page-hero p{font-size:11px;}

  .enterprise-sticky-toolbar{padding:6px!important;margin-bottom:8px;border-radius:11px;}
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{
    display:grid!important;width:100%;min-width:0;box-sizing:border-box;
    grid-template-columns:36px minmax(0,1fr) 64px!important;
    grid-template-rows:auto auto!important;gap:5px!important;
  }
  .enterprise-sticky-toolbar .enterprise-toolbar-toggle{grid-column:1;grid-row:1;width:36px;min-width:36px;padding:0 5px;}
  .enterprise-sticky-toolbar .enterprise-search{grid-column:2;grid-row:1;width:100%;min-width:0;}
  .enterprise-sticky-toolbar .enterprise-search span{display:none;}
  .enterprise-sticky-toolbar .enterprise-search input{width:100%;min-width:0;height:32px;padding:0 8px;font-size:10px;box-sizing:border-box;}
  .enterprise-sticky-toolbar .enterprise-filters-toggle{grid-column:3;grid-row:1;width:64px;min-width:64px;height:32px;padding:0 6px;font-size:9px;}
  .enterprise-sticky-toolbar .enterprise-start-inline{grid-column:1/-1;grid-row:2;width:100%;min-width:0;display:flex!important;align-items:center;gap:5px;box-sizing:border-box;}
  .enterprise-sticky-toolbar .enterprise-start-inline label{min-width:0;flex:0 0 auto;gap:4px;font-size:9px;}
  .enterprise-sticky-toolbar .enterprise-start-inline label span{display:inline;}
  .enterprise-sticky-toolbar .enterprise-start-inline input{width:64px;max-width:64px;height:30px;box-sizing:border-box;}
  .enterprise-sticky-toolbar .enterprise-start-go{width:auto;min-width:70px;height:30px;padding:0 7px;font-size:9px;}
  .enterprise-sticky-toolbar .enterprise-live-count{grid-column:1/3;grid-row:3;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;}
  .enterprise-sticky-toolbar .enterprise-active-row{grid-column:3;grid-row:3;max-width:64px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;justify-self:end;}
  .enterprise-sticky-toolbar .enterprise-toolbar-details{width:100%;min-width:0;overflow:visible;}
  .enterprise-sticky-toolbar .enterprise-filters-panel{width:100%;min-width:0;box-sizing:border-box;overflow:visible;}
  .enterprise-sticky-toolbar .enterprise-filter-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px;width:100%;min-width:0;}
  .enterprise-sticky-toolbar .enterprise-filter-combo,.enterprise-sticky-toolbar .filter-combo-wrap{width:100%;min-width:0;max-width:100%;}
  .enterprise-sticky-toolbar .enterprise-filter-combo input{width:100%;min-width:0;max-width:100%;box-sizing:border-box;}
  .enterprise-sticky-toolbar .filter-combo-options{left:0;right:0;width:100%;max-width:100%;box-sizing:border-box;}
  .enterprise-sticky-toolbar .enterprise-filter-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:5px;}
  .enterprise-sticky-toolbar .enterprise-filter-actions .hero-btn{width:100%;min-width:0;padding:0 6px;}
  .enterprise-sticky-toolbar .enterprise-active-filters{width:100%;max-width:100%;overflow:hidden;}

  .enterprise-results-panel{padding:10px!important;width:100%;max-width:100%;min-width:0;overflow:hidden;}
  .enterprise-results-panel .panel-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;width:100%;min-width:0;gap:6px;}
  .enterprise-results-panel .panel-head h2{font-size:15px;min-width:0;overflow-wrap:anywhere;}
  .enterprise-results-panel .panel-note{max-width:95px;min-width:0;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;}
  .enterprise-compact-list{gap:7px;}
  .enterprise-compact-card{padding:9px!important;border-radius:11px;}
  .enterprise-readable-card .enterprise-compact-title{gap:5px;margin-bottom:5px;}
  .enterprise-card-code{font-size:7.5px;max-width:34%;overflow:hidden;text-overflow:ellipsis;}
  .enterprise-readable-card .enterprise-compact-title h3{font-size:10.5px;line-height:1.25;}
  .enterprise-readable-card .enterprise-simple-address{font-size:8px!important;line-height:1.3;}
  .enterprise-row-actions{margin-top:6px;}
  .enterprise-row-actions-toggle{min-height:30px;height:30px;padding:5px 7px;font-size:9px;}
  .enterprise-action-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding-top:1px;}
  .enterprise-action-controls button{min-height:32px;height:auto;padding:5px 5px;font-size:8px;line-height:1.15;}
  .enterprise-action-controls .enterprise-parent-compare-btn,.enterprise-action-controls .enterprise-children-btn{grid-column:1/-1;}
  .enterprise-parent-info{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 6px;padding:5px 6px;}
  .enterprise-parent-info span{grid-column:1/-1;}
  .enterprise-parent-info em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

  .enterprise-list-footer{display:grid!important;grid-template-columns:1fr;gap:5px;width:100%;min-width:0;}
  .enterprise-list-footer .hero-btn{width:100%;min-width:0;}

  .enterprise-related-modal{width:100%;max-width:100%;min-width:0;}
  .enterprise-related-list{width:100%;max-width:100%;min-width:0;}
  .enterprise-related-list-row{width:100%;min-width:0;max-width:100%;box-sizing:border-box;grid-template-columns:58px minmax(0,1fr);gap:7px;padding:9px 8px;}
  .enterprise-related-list-row span{min-width:0;overflow-wrap:anywhere;font-size:8px;}
  .enterprise-related-list-row strong{min-width:0;overflow-wrap:anywhere;word-break:break-word;font-size:9px;line-height:1.3;}
}

@media(max-width:380px){
  .crm-header{grid-template-columns:34px minmax(0,1fr) 34px 36px;gap:4px;padding:0 6px;}
  .mobile-menu-btn{width:34px;min-width:34px;height:34px;}
  .header-notifications,.notification-bell{width:34px;min-width:34px;}
  .header-user,.header-user .avatar{width:36px!important;min-width:36px;}
  .header-user .avatar{height:36px!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{grid-template-columns:34px minmax(0,1fr) 58px!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-toggle{width:34px;min-width:34px;}
  .enterprise-sticky-toolbar .enterprise-filters-toggle{width:58px;min-width:58px;}
  .enterprise-sticky-toolbar .enterprise-start-inline input{width:58px;max-width:58px;}
  .enterprise-sticky-toolbar .enterprise-start-go{min-width:64px;}
  .enterprise-action-controls button{font-size:7.5px;padding-left:4px;padding-right:4px;}
}

/* v12.64 — связь предприятия в заголовочной секции, построчные подразделения и стильные кнопки карточки */
.enterprise-relation-line{display:grid;grid-template-columns:minmax(112px,30%) minmax(0,1fr);gap:10px;padding:9px 12px;border-bottom:1px solid #edf2f5}
.enterprise-relation-line span{font-weight:800;color:var(--muted);font-size:10px}
.enterprise-relation-line strong{color:var(--blue-900);font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.enterprise-child-inline{display:block;width:100%;box-sizing:border-box;border:0;border-bottom:1px solid #edf2f5;background:#fff;text-align:left;padding:9px 12px;color:var(--blue-900);font-weight:750;font-size:11px;cursor:pointer;transition:background .16s ease,transform .16s ease}
.enterprise-child-inline:hover{background:#f5f9fc}
.enterprise-child-inline:last-child{border-bottom:0}
.enterprise-relation-single{padding:10px 12px;color:var(--muted);font-size:11px;line-height:1.4}
.enterprise-multiline-row strong>div{margin:0 0 4px}.enterprise-multiline-row strong>div:last-child{margin-bottom:0}
.enterprise-modal-close{flex:0 0 38px;width:38px;height:38px;border:0;border-radius:11px;background:#c62828;color:#fff;font-size:27px;line-height:1;font-weight:800;display:grid;place-items:center;cursor:pointer;box-shadow:0 5px 14px rgba(198,40,40,.22);transition:transform .16s ease,filter .16s ease}
.enterprise-modal-close:hover{filter:brightness(.94);transform:translateY(-1px)}
.enterprise-delete-btn{border:1px solid #111;background:#111;color:#ff5b5b;border-radius:10px;min-height:40px;padding:9px 14px;font-weight:800;letter-spacing:.1px;cursor:pointer;box-shadow:0 5px 14px rgba(0,0,0,.12);transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.enterprise-delete-btn:hover{background:#171717;transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.16)}
.enterprise-modal-bottom-close{border:1px solid #d8e1e7;background:#f7fafc;color:#26343c;border-radius:10px;min-height:40px;padding:9px 16px;font-weight:800;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.enterprise-modal-bottom-close:hover{background:#eef4f7;border-color:#c5d2da;transform:translateY(-1px)}
@media(max-width:700px){
 .enterprise-relation-line{grid-template-columns:1fr;gap:3px;padding:7px 8px}
 .enterprise-relation-line span{font-size:8px}.enterprise-relation-line strong{font-size:9px}
 .enterprise-child-inline{padding:8px;font-size:9px}
 .enterprise-relation-single{padding:8px;font-size:9px}
 .enterprise-modal-close{flex-basis:34px;width:34px;height:34px;border-radius:10px;font-size:24px}
 .enterprise-modal-actions{display:grid;grid-template-columns:1fr!important}
 .enterprise-modal-actions .enterprise-user-actions{grid-template-columns:1fr 1fr!important}
 .enterprise-modal-bottom-close{width:100%}
}


/* v12.66 — мобильный список предприятий: единая шапка, sticky-границы и аккуратные действия */
@media(max-width:900px){
  .crm-main{overflow-x:clip;}
  .crm-content{overflow-x:clip;}
  .crm-header{
    position:sticky!important;
    top:0!important;
    z-index:100!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  .enterprise-sticky-toolbar{
    position:sticky!important;
    top:64px!important;
    z-index:80!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    margin-left:0!important;
    margin-right:0!important;
    overflow:visible!important;
  }
  .enterprise-results-panel,
  .enterprise-results,
  .enterprise-compact-list,
  .enterprise-compact-card{overflow:visible;}
  .enterprise-results-panel{position:relative;z-index:1;}
  .enterprise-compact-card{box-sizing:border-box;max-width:100%;}
  .enterprise-compact-title{width:100%;min-width:0;max-width:100%;}
  .enterprise-compact-title h3{min-width:0;max-width:100%;}
  .enterprise-simple-body{width:100%;min-width:0;max-width:100%;}
  .enterprise-simple-address{width:100%;max-width:100%;}
  .enterprise-row-actions{width:100%;max-width:100%;}
  .enterprise-row-actions-toggle{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    white-space:nowrap!important;
  }
  .enterprise-row-actions-panel{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    overflow:visible!important;
    padding-top:5px;
  }
  .enterprise-action-controls{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:6px!important;
    align-items:stretch!important;
  }
  .enterprise-action-controls button{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:36px!important;
    box-sizing:border-box!important;
    margin:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis;
    white-space:normal!important;
    line-height:1.15!important;
  }
  .enterprise-action-controls .enterprise-parent-compare-btn,
  .enterprise-action-controls .enterprise-children-btn{
    grid-column:1/-1!important;
  }
  .enterprise-parent-info{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  .enterprise-parent-info em{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal;}

  /* Фильтры раскрываются строго внутри ширины панели. */
  .enterprise-toolbar-details,
  .enterprise-filters-panel,
  .enterprise-filter-grid,
  .enterprise-filter-combo,
  .filter-combo-wrap{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
  .enterprise-filter-actions{width:100%!important;max-width:100%!important;}
  .enterprise-filter-actions .hero-btn{min-width:0!important;width:100%!important;box-sizing:border-box!important;}
}

@media(max-width:600px){
  .crm-header{height:64px!important;padding:0 8px!important;}
  .crm-content{padding-left:8px!important;padding-right:8px!important;}
  .enterprise-sticky-toolbar{top:64px!important;padding:7px!important;border-radius:11px!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{
    grid-template-columns:36px minmax(0,1fr) 62px!important;
    grid-template-rows:auto auto auto!important;
    gap:5px!important;
  }
  .enterprise-sticky-toolbar .enterprise-toolbar-toggle{width:36px!important;min-width:36px!important;}
  .enterprise-sticky-toolbar .enterprise-search{width:100%!important;min-width:0!important;}
  .enterprise-sticky-toolbar .enterprise-filters-toggle{width:62px!important;min-width:62px!important;}
  .enterprise-sticky-toolbar .enterprise-start-inline{grid-column:1/-1!important;grid-row:2!important;width:100%!important;}
  .enterprise-sticky-toolbar .enterprise-live-count{grid-column:1/3!important;grid-row:3!important;}
  .enterprise-sticky-toolbar .enterprise-active-row{grid-column:3!important;grid-row:3!important;max-width:62px!important;}
  .enterprise-sticky-toolbar.is-collapsed{top:64px!important;padding:6px!important;}
  .enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-mainline{grid-template-columns:36px minmax(0,1fr) auto!important;grid-template-rows:auto!important;}
  .enterprise-sticky-toolbar.is-collapsed .enterprise-live-count{grid-column:2!important;grid-row:1!important;justify-self:end!important;}
  .enterprise-sticky-toolbar.is-collapsed .enterprise-active-row{grid-column:3!important;grid-row:1!important;}
  .enterprise-results-panel{padding:9px!important;margin-top:8px!important;}
  .enterprise-results-panel .panel-head{grid-template-columns:minmax(0,1fr) auto!important;}
  .enterprise-compact-card{padding:10px!important;border-radius:12px!important;}
  .enterprise-action-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;}
  .enterprise-action-controls button{font-size:8.5px!important;padding:6px 7px!important;}
}

@media(max-width:380px){
  .enterprise-sticky-toolbar{top:64px!important;}
  .enterprise-sticky-toolbar.is-collapsed{top:64px!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{grid-template-columns:34px minmax(0,1fr) 58px!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-toggle{width:34px!important;min-width:34px!important;}
  .enterprise-sticky-toolbar .enterprise-filters-toggle{width:58px!important;min-width:58px!important;font-size:8px!important;}
  .enterprise-sticky-toolbar .enterprise-search input{font-size:9px!important;}
  .enterprise-action-controls{grid-template-columns:1fr!important;}
  .enterprise-action-controls .enterprise-parent-compare-btn,
  .enterprise-action-controls .enterprise-children-btn{grid-column:1!important;}
}


/* v12.82 — мобильное раскрытие шапки не раскрывает сам блок фильтров. */
.enterprise-sticky-toolbar #enterpriseFiltersPanel[hidden]{display:none!important;}
@media(max-width:700px){
  .enterprise-sticky-toolbar #enterpriseFiltersPanel[hidden]{display:none!important;}
}

/* v12.77 — шапка предприятий собрана заново от эталона v12.66.
   ПК и мобильная версия используют одну компактную геометрию; мобильные правила
   ниже только перестраивают колонки, не меняя размеры десктопной шапки. */
.enterprise-sticky-toolbar{
  position:sticky!important;
  top:80px!important;
  z-index:45!important;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow:visible!important;
}
.enterprise-sticky-toolbar .enterprise-toolbar-mainline{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 58px auto auto!important;
  gap:7px!important;
  align-items:center!important;
  min-width:0;
}
.enterprise-sticky-toolbar .enterprise-toolbar-toggle{
  width:34px!important;min-width:34px!important;height:30px!important;min-height:30px!important;
  padding:0 5px!important;font-size:9px!important;overflow:hidden!important;
}
.enterprise-sticky-toolbar .enterprise-toggle-label{display:none!important}
.enterprise-sticky-toolbar .enterprise-search{min-width:0!important;width:100%!important;margin:0!important}
.enterprise-sticky-toolbar .enterprise-search{display:block!important;font-size:0!important}.enterprise-sticky-toolbar .enterprise-search span{display:none!important}
.enterprise-sticky-toolbar .enterprise-search input{height:30px!important;min-width:0!important;width:100%!important;padding:0 8px!important;font-size:10px!important;box-sizing:border-box!important}
.enterprise-sticky-toolbar .enterprise-search-go{
  height:30px;min-height:30px;padding:0 9px;border:1px solid var(--line);border-radius:8px;
  background:#fff;color:var(--blue-900);font-size:9px;font-weight:850;white-space:nowrap;
}
.enterprise-sticky-toolbar .enterprise-live-count,.enterprise-sticky-toolbar .enterprise-active-row{
  min-height:30px!important;padding:5px 7px!important;border-radius:8px!important;font-size:9px!important;white-space:nowrap;
}
.enterprise-toolbar-expand-row{
  display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:7px;min-width:0;
}
.enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-expand-row{display:none!important}
.enterprise-expand-actions{display:flex;align-items:center;gap:6px;min-width:0}
.enterprise-expand-actions .hero-btn{height:30px;min-height:30px;padding:0 9px;border-radius:8px;font-size:9px;white-space:nowrap}
.enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-details{display:none!important}
.enterprise-sticky-toolbar.is-collapsed{padding:6px 8px!important}
.enterprise-sticky-toolbar:not(.is-collapsed){padding:7px 9px!important}
.enterprise-sticky-toolbar .enterprise-toolbar-details{margin-top:7px!important}

@media(max-width:900px){
  .crm-header{position:sticky!important;top:0!important;z-index:100!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;}
  .enterprise-sticky-toolbar{top:68px!important;}
}
@media(max-width:600px){
  .enterprise-sticky-toolbar{top:64px!important;padding:6px 7px!important;border-radius:11px!important;}
  .enterprise-sticky-toolbar:not(.is-collapsed){padding:6px 7px!important}
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{
    grid-template-columns:34px minmax(0,1fr) 54px 64px auto!important;
    grid-template-rows:auto!important;
    gap:5px!important;
  }
  .enterprise-sticky-toolbar .enterprise-toolbar-toggle{width:34px!important;min-width:34px!important;height:30px!important;min-height:30px!important;}
  .enterprise-sticky-toolbar .enterprise-search-go{width:54px;min-width:54px;padding:0 6px;font-size:8px;}
  .enterprise-sticky-toolbar .enterprise-live-count{order:5;grid-column:1/4;justify-self:start!important;min-width:0!important;max-width:100%!important;overflow:hidden;text-overflow:ellipsis;}
  .enterprise-sticky-toolbar .enterprise-active-row{order:6;grid-column:4;justify-self:end!important;max-width:100%!important;overflow:hidden;text-overflow:ellipsis;}
  .enterprise-toolbar-expand-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;width:100%;margin-top:5px;}
  .enterprise-sticky-toolbar .enterprise-start-inline{display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important;}
  .enterprise-sticky-toolbar .enterprise-start-inline label{display:flex;align-items:center;gap:4px;margin:0;min-width:0;font-size:8px;white-space:nowrap;}
  .enterprise-sticky-toolbar .enterprise-start-inline input{width:48px!important;max-width:48px!important;height:29px!important;padding:0 6px!important;font-size:9px!important;}
  .enterprise-sticky-toolbar .enterprise-start-go{height:29px!important;min-height:29px!important;padding:0 7px!important;font-size:8px!important;white-space:nowrap!important;}
  .enterprise-expand-actions{display:flex;gap:4px;min-width:0;justify-content:flex-end;}
  .enterprise-expand-actions .hero-btn{height:29px;min-height:29px;padding:0 6px;font-size:8px;min-width:0;}
  .enterprise-expand-actions .enterprise-filters-toggle{width:72px;min-width:72px;white-space:normal;line-height:1.05;}
  .enterprise-expand-actions .enterprise-filters-reset-top{width:82px;min-width:82px;white-space:normal;line-height:1.05;}
  .enterprise-sticky-toolbar .enterprise-toolbar-details{margin-top:5px!important;}
}
@media(max-width:380px){
  .enterprise-sticky-toolbar{top:64px!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{grid-template-columns:32px minmax(0,1fr) 50px 60px auto!important;gap:4px!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-toggle{width:32px!important;min-width:32px!important;}
  .enterprise-sticky-toolbar .enterprise-search-go{width:50px;min-width:50px;padding:0 5px;font-size:7.5px;}
  .enterprise-sticky-toolbar .enterprise-live-count,.enterprise-sticky-toolbar .enterprise-active-row{font-size:8px!important;padding:5px!important;}
  .enterprise-toolbar-expand-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px;}
  .enterprise-sticky-toolbar .enterprise-start-inline label{font-size:7.5px;}
  .enterprise-sticky-toolbar .enterprise-start-inline input{width:44px!important;max-width:44px!important;}
  .enterprise-sticky-toolbar .enterprise-start-go{padding:0 5px!important;font-size:7.5px!important;}
  .enterprise-expand-actions .enterprise-filters-toggle{width:66px;min-width:66px;font-size:7.5px;}
  .enterprise-expand-actions .enterprise-filters-reset-top{width:76px;min-width:76px;font-size:7.5px;}
}

@media(max-width:600px){.enterprise-sticky-toolbar .enterprise-live-count{grid-column:4!important;grid-row:1!important;justify-self:end!important;}.enterprise-sticky-toolbar .enterprise-active-row{grid-column:5!important;grid-row:1!important;justify-self:end!important;}}
@media(max-width:380px){.enterprise-sticky-toolbar .enterprise-live-count{grid-column:4!important;}.enterprise-sticky-toolbar .enterprise-active-row{grid-column:5!important;}}

/* v12.77b — sticky-контейнеры: crm-app не должен быть flex-контейнером, иначе sticky у header/enterprise toolbar теряет опору. */
.crm-app{display:block!important;}
.enterprise-sticky-toolbar datalist{display:none!important;}

/* v12.77c — вертикальная прокрутка страницы возвращена viewport: overflow-x:clip не создает отдельный scroll-контейнер, sticky header и sticky toolbar остаются закрепленными. */
.crm-main{overflow-x:clip!important;overflow-y:visible!important;}

/* v12.77d — поиск должен оставаться видимым и в свернутой шапке. */
.enterprise-sticky-toolbar.is-collapsed .enterprise-search{display:block!important;}
.enterprise-sticky-toolbar.is-collapsed .enterprise-search-go{display:inline-flex!important;}

/* v12.77e — явные позиции первой строки, чтобы поиск/«Найти» и два счетчика никогда не переносились. */
.enterprise-sticky-toolbar .enterprise-toolbar-mainline > .enterprise-toolbar-toggle{grid-column:1;grid-row:1;}
.enterprise-sticky-toolbar .enterprise-toolbar-mainline > .enterprise-search{grid-column:2;grid-row:1;}
.enterprise-sticky-toolbar .enterprise-toolbar-mainline > .enterprise-search-go{grid-column:3;grid-row:1;}
.enterprise-sticky-toolbar .enterprise-toolbar-mainline > .enterprise-live-count{grid-column:4;grid-row:1;}
.enterprise-sticky-toolbar .enterprise-toolbar-mainline > .enterprise-active-row{grid-column:5;grid-row:1;}
@media(max-width:600px){
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{grid-template-columns:34px minmax(40px,1fr) 54px 60px auto!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline > .enterprise-search-go{grid-column:3!important;grid-row:1!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline > .enterprise-live-count{grid-column:4!important;grid-row:1!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline > .enterprise-active-row{grid-column:5!important;grid-row:1!important;}
}
@media(max-width:380px){
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{grid-template-columns:32px minmax(32px,1fr) 50px 60px auto!important;}
}


/* v12.79 — мобильная шапка и кнопки: только точечная правка на базе v12.77.
   Desktop-геометрия v12.77 не изменяется. */
@media (max-width:700px){
  .enterprise-sticky-toolbar,
  .enterprise-sticky-toolbar:not(.is-collapsed),
  .enterprise-sticky-toolbar.is-collapsed{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline,
  .enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-mainline{
    display:grid!important;
    grid-template-columns:32px minmax(0,1fr) 48px 58px 68px!important;
    grid-template-rows:30px!important;
    gap:4px!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
  }
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline>*{min-width:0!important;box-sizing:border-box!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-toggle{
    grid-column:1!important;grid-row:1!important;
    width:32px!important;min-width:32px!important;height:30px!important;min-height:30px!important;
    padding:0!important;border-radius:8px!important;font-size:8px!important;line-height:1!important;
  }
  .enterprise-sticky-toolbar .enterprise-toggle-label{display:none!important;}
  .enterprise-sticky-toolbar .enterprise-toggle-icon{font-size:13px!important;line-height:1!important;}
  .enterprise-sticky-toolbar .enterprise-search{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;margin:0!important;
  }
  .enterprise-sticky-toolbar .enterprise-search>span{display:none!important;}
  .enterprise-sticky-toolbar .enterprise-search input{
    width:100%!important;min-width:0!important;height:30px!important;min-height:30px!important;
    box-sizing:border-box!important;padding:0 7px!important;border-radius:8px!important;
    font-size:9px!important;line-height:1.1!important;
  }
  .enterprise-sticky-toolbar .enterprise-search-go{
    grid-column:3!important;grid-row:1!important;
    width:48px!important;min-width:48px!important;height:30px!important;min-height:30px!important;
    box-sizing:border-box!important;padding:0 4px!important;border-radius:8px!important;
    font-size:8px!important;line-height:1.05!important;white-space:nowrap!important;
  }
  .enterprise-sticky-toolbar .enterprise-live-count{
    grid-column:4!important;grid-row:1!important;justify-self:stretch!important;
    width:100%!important;min-width:0!important;max-width:100%!important;height:30px!important;min-height:30px!important;
    box-sizing:border-box!important;padding:4px 3px!important;border-radius:8px!important;
    font-size:7px!important;line-height:1.05!important;white-space:nowrap!important;text-align:center!important;overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .enterprise-sticky-toolbar .enterprise-active-row{
    grid-column:5!important;grid-row:1!important;justify-self:stretch!important;
    width:100%!important;min-width:0!important;max-width:100%!important;height:30px!important;min-height:30px!important;
    box-sizing:border-box!important;padding:4px 3px!important;border-radius:8px!important;
    font-size:7px!important;line-height:1.05!important;white-space:nowrap!important;text-align:center!important;overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .enterprise-sticky-toolbar:not(.is-collapsed) .enterprise-toolbar-expand-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:4px!important;
    width:100%!important;min-width:0!important;margin-top:5px!important;
  }
  .enterprise-sticky-toolbar .enterprise-start-inline{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:3px!important;
    width:100%!important;min-width:0!important;margin:0!important;
  }
  .enterprise-sticky-toolbar .enterprise-start-inline label{
    display:flex!important;align-items:center!important;gap:3px!important;min-width:0!important;
    margin:0!important;font-size:7.5px!important;line-height:1!important;white-space:nowrap!important;
  }
  .enterprise-sticky-toolbar .enterprise-start-inline input{
    width:44px!important;max-width:44px!important;height:28px!important;min-height:28px!important;
    box-sizing:border-box!important;padding:0 5px!important;border-radius:8px!important;font-size:8px!important;
  }
  .enterprise-sticky-toolbar .enterprise-start-go{
    width:48px!important;min-width:48px!important;height:28px!important;min-height:28px!important;
    box-sizing:border-box!important;padding:0 4px!important;border-radius:8px!important;
    font-size:7.5px!important;line-height:1.05!important;white-space:nowrap!important;
  }
  .enterprise-sticky-toolbar .enterprise-expand-actions{
    display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:3px!important;
    width:100%!important;min-width:0!important;
  }
  .enterprise-sticky-toolbar .enterprise-expand-actions .hero-btn{
    width:auto!important;min-width:0!important;height:28px!important;min-height:28px!important;
    box-sizing:border-box!important;padding:0 5px!important;border-radius:8px!important;
    font-size:7.2px!important;line-height:1.05!important;white-space:normal!important;text-align:center!important;
    overflow-wrap:break-word!important;word-break:normal!important;
  }
  .enterprise-sticky-toolbar .enterprise-filters-toggle{width:56px!important;min-width:56px!important;}
  .enterprise-sticky-toolbar .enterprise-filters-reset-top{width:70px!important;min-width:70px!important;}

  .enterprise-sticky-toolbar .enterprise-toolbar-details{width:100%!important;min-width:0!important;margin-top:5px!important;box-sizing:border-box!important;}
  .enterprise-sticky-toolbar .enterprise-filters-panel{width:100%!important;min-width:0!important;box-sizing:border-box!important;}
  .enterprise-sticky-toolbar .enterprise-filter-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;
    width:100%!important;min-width:0!important;
  }
  .enterprise-sticky-toolbar .enterprise-filter-combo,
  .enterprise-sticky-toolbar .filter-combo-wrap,
  .enterprise-sticky-toolbar .enterprise-filter-combo input{
    width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
  }
  .enterprise-sticky-toolbar .enterprise-filter-combo>span{font-size:7.5px!important;line-height:1.1!important;}
  .enterprise-sticky-toolbar .enterprise-filter-combo input{height:29px!important;min-height:29px!important;font-size:8px!important;padding:0 28px 0 7px!important;}
  .enterprise-sticky-toolbar .filter-combo-toggle{width:24px!important;height:24px!important;font-size:12px!important;}
  .enterprise-sticky-toolbar .filter-combo-option{font-size:8px!important;padding:5px 6px!important;}
  .enterprise-sticky-toolbar .enterprise-filter-actions{
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:4px!important;width:100%!important;max-width:100%!important;margin-top:5px!important;
  }
  .enterprise-sticky-toolbar .enterprise-filter-actions .hero-btn{
    width:100%!important;min-width:0!important;height:28px!important;min-height:28px!important;
    padding:0 5px!important;border-radius:8px!important;font-size:7.5px!important;line-height:1.05!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
  }

  .enterprise-results-panel{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow:visible!important;}
  .enterprise-compact-card{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important;}
  .enterprise-row-actions{width:100%!important;min-width:0!important;}
  .enterprise-row-actions-toggle{width:100%!important;box-sizing:border-box!important;height:28px!important;min-height:28px!important;padding:0 7px!important;font-size:8px!important;}
  .enterprise-row-actions-panel{width:100%!important;min-width:0!important;box-sizing:border-box!important;}
  .enterprise-action-controls{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:4px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;
  }
  .enterprise-action-controls .enterprise-user-actions{display:contents!important;}
  .enterprise-action-controls>button,
  .enterprise-action-controls .enterprise-user-actions>button{
    width:100%!important;min-width:0!important;max-width:100%!important;height:28px!important;min-height:28px!important;
    box-sizing:border-box!important;padding:4px 4px!important;border-radius:8px!important;
    font-size:7.5px!important;font-weight:800!important;line-height:1.05!important;
    white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;
    overflow-wrap:anywhere!important;word-break:normal!important;text-align:center!important;
  }
  .enterprise-action-controls [data-ent-favorite]{order:1!important;}
  .enterprise-action-controls [data-ent-children]{order:2!important;}
  .enterprise-action-controls [data-ent-card]{order:3!important;}
  .enterprise-action-controls [data-ent-edit]{order:4!important;}
  .enterprise-action-controls [data-ent-request]{order:5!important;}
  .enterprise-action-controls [data-ent-parent-compare]{order:6!important;grid-column:1/-1!important;}
  .enterprise-action-controls .enterprise-user-actions{min-width:0!important;}
  .enterprise-parent-info{width:100%!important;min-width:0!important;box-sizing:border-box!important;}
  .enterprise-parent-info span,.enterprise-parent-info strong,.enterprise-parent-info em{min-width:0!important;overflow-wrap:anywhere!important;}
}

@media (max-width:380px){
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline,
  .enterprise-sticky-toolbar.is-collapsed .enterprise-toolbar-mainline{
    grid-template-columns:30px minmax(0,1fr) 46px 54px 62px!important;
    gap:3px!important;
  }
  .enterprise-sticky-toolbar .enterprise-toolbar-toggle{width:30px!important;min-width:30px!important;}
  .enterprise-sticky-toolbar .enterprise-search-go{width:46px!important;min-width:46px!important;font-size:7.5px!important;}
  .enterprise-sticky-toolbar .enterprise-live-count,
  .enterprise-sticky-toolbar .enterprise-active-row{font-size:6.5px!important;padding-left:2px!important;padding-right:2px!important;}
  .enterprise-sticky-toolbar .enterprise-filters-toggle{width:52px!important;min-width:52px!important;font-size:7px!important;}
  .enterprise-sticky-toolbar .enterprise-filters-reset-top{width:64px!important;min-width:64px!important;font-size:7px!important;}
  .enterprise-action-controls>button,
  .enterprise-action-controls .enterprise-user-actions>button{font-size:7px!important;padding:4px 3px!important;}
}


/* v12.80 — точечная мобильная шапка: компактная строка управления.
   Desktop-геометрию не меняем. */
@media (max-width:700px){
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{
    grid-template-columns:32px minmax(0,1fr) 46px 54px 60px!important;
    grid-template-rows:30px!important;
    gap:4px!important;
  }
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline > .enterprise-search-go{font-size:7.5px!important;}
  .enterprise-sticky-toolbar .enterprise-live-count,
  .enterprise-sticky-toolbar .enterprise-active-row{font-size:6.8px!important;padding-left:2px!important;padding-right:2px!important;}
  .enterprise-sticky-toolbar:not(.is-collapsed) .enterprise-toolbar-expand-row{
    display:grid!important;
    grid-template-columns:29px 38px 45px 48px 48px 58px!important;
    align-items:center!important;
    justify-content:start!important;
    gap:3px!important;
    width:100%!important;
    min-width:0!important;
    margin-top:5px!important;
  }
  .enterprise-sticky-toolbar .enterprise-start-inline{
    display:contents!important;
  }
  .enterprise-sticky-toolbar .enterprise-start-inline label{
    display:contents!important;
    font-size:7px!important;
  }
  .enterprise-sticky-toolbar .enterprise-start-inline label span{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-width:0!important;
    font-size:7px!important;
    white-space:nowrap!important;
  }
  .enterprise-sticky-toolbar .enterprise-start-inline input{
    width:38px!important;max-width:38px!important;height:28px!important;min-height:28px!important;
    padding:0 3px!important;font-size:8px!important;box-sizing:border-box!important;
  }
  .enterprise-sticky-toolbar .enterprise-start-go{
    width:45px!important;min-width:45px!important;height:28px!important;min-height:28px!important;
    padding:0 3px!important;font-size:7px!important;white-space:nowrap!important;
  }
  .enterprise-sticky-toolbar .enterprise-expand-actions{
    display:contents!important;
  }
  .enterprise-sticky-toolbar .enterprise-expand-actions .hero-btn{
    width:auto!important;min-width:0!important;height:28px!important;min-height:28px!important;
    padding:0 3px!important;border-radius:8px!important;font-size:7px!important;line-height:1!important;
    white-space:normal!important;text-align:center!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;
  }
  .enterprise-sticky-toolbar .enterprise-main-toggle{grid-column:4!important;grid-row:1!important;width:48px!important;min-width:48px!important;}
  .enterprise-sticky-toolbar .enterprise-filters-toggle{grid-column:5!important;grid-row:1!important;width:48px!important;min-width:48px!important;}
  .enterprise-sticky-toolbar .enterprise-filters-reset-top{grid-column:6!important;grid-row:1!important;width:58px!important;min-width:58px!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-expand-row .enterprise-start-inline label span{grid-column:1!important;grid-row:1!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-expand-row .enterprise-start-inline input{grid-column:2!important;grid-row:1!important;}
  .enterprise-sticky-toolbar .enterprise-toolbar-expand-row .enterprise-start-go{grid-column:3!important;grid-row:1!important;}
}
@media (max-width:380px){
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline{
    grid-template-columns:30px minmax(0,1fr) 44px 52px 56px!important;
    gap:3px!important;
  }
  .enterprise-sticky-toolbar .enterprise-toolbar-mainline > .enterprise-search-go{font-size:7px!important;}
  .enterprise-sticky-toolbar:not(.is-collapsed) .enterprise-toolbar-expand-row{
    grid-template-columns:27px 35px 42px 45px 45px 54px!important;
    gap:3px!important;
  }
  .enterprise-sticky-toolbar .enterprise-main-toggle{width:45px!important;min-width:45px!important;font-size:6.6px!important;}
  .enterprise-sticky-toolbar .enterprise-filters-toggle{width:45px!important;min-width:45px!important;font-size:6.6px!important;}
  .enterprise-sticky-toolbar .enterprise-filters-reset-top{width:54px!important;min-width:54px!important;font-size:6.6px!important;}
}

/* v12.81 — активное состояние только при реально примененном поиске/фильтрах. */
.enterprise-sticky-toolbar .enterprise-search-go.is-active,
.enterprise-sticky-toolbar .enterprise-filters-toggle.is-active{
  background:linear-gradient(135deg,var(--green-50,#eefaf5),#fff);
  border-color:var(--green-600,#14b27e);
  color:var(--blue-900);
  box-shadow:0 0 0 2px rgba(20,178,126,.08);
}
.enterprise-sticky-toolbar .enterprise-search-go.is-active:hover,
.enterprise-sticky-toolbar .enterprise-filters-toggle.is-active:hover{
  background:linear-gradient(135deg,var(--green-50,#eefaf5),#f8fffc);
}


/* v12.84 — выравнивание текста кнопок шапки по центру в обоих состояниях.
   Только геометрия кнопок: функциональные обработчики не изменяются. */
.enterprise-sticky-toolbar .enterprise-toolbar-toggle,
.enterprise-sticky-toolbar .enterprise-search-go,
.enterprise-sticky-toolbar .enterprise-start-go,
.enterprise-sticky-toolbar .enterprise-main-toggle,
.enterprise-sticky-toolbar .enterprise-filters-toggle,
.enterprise-sticky-toolbar .enterprise-filters-reset-top,
.enterprise-sticky-toolbar .enterprise-expand-actions .hero-btn,
.enterprise-sticky-toolbar .enterprise-filter-actions .hero-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  vertical-align:middle!important;
  box-sizing:border-box!important;
}
.enterprise-sticky-toolbar .enterprise-toolbar-toggle *,
.enterprise-sticky-toolbar .enterprise-search-go *,
.enterprise-sticky-toolbar .enterprise-start-go *,
.enterprise-sticky-toolbar .enterprise-main-toggle *,
.enterprise-sticky-toolbar .enterprise-filters-toggle *,
.enterprise-sticky-toolbar .enterprise-filters-reset-top *,
.enterprise-sticky-toolbar .enterprise-expand-actions .hero-btn *,
.enterprise-sticky-toolbar .enterprise-filter-actions .hero-btn *{
  align-self:center!important;
}

/* v12.85 — вертикальное выравнивание счетчиков и небольшой зазор между кнопками фильтров. */
.enterprise-sticky-toolbar .enterprise-live-count,
.enterprise-sticky-toolbar .enterprise-active-row{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  vertical-align:middle!important;
  line-height:1.1!important;
  box-sizing:border-box!important;
}
.enterprise-sticky-toolbar .enterprise-filter-actions{
  gap:10px!important;
}
@media(max-width:700px){
  .enterprise-sticky-toolbar .enterprise-filter-actions{gap:5px!important;}
}

/* v12.86 — явный зазор между кнопками «Сбросить» и «Применить» на ПК.
   Мобильные размеры не затрагиваем. */
@media (min-width:701px){
  .enterprise-sticky-toolbar .enterprise-filter-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    width:auto!important;
    max-width:none!important;
  }
  .enterprise-sticky-toolbar .enterprise-filter-actions .hero-btn{
    width:auto!important;
    min-width:86px!important;
    margin:0!important;
    flex:0 0 auto!important;
  }
}


/* v12.87 — enterprise names open the card; list actions are visible and compact */
.enterprise-name-link{
  appearance:none;border:0;background:transparent;color:var(--blue-900);cursor:pointer;
  font:inherit;font-weight:800;text-align:left;padding:0;margin:0;min-width:0;max-width:100%;
  overflow-wrap:anywhere;word-break:break-word;line-height:1.25;
}
.enterprise-name-link:hover{text-decoration:underline;text-underline-offset:2px}
.enterprise-action-controls{
  width:100%;min-width:0;display:flex!important;align-items:center;flex-wrap:wrap;
  gap:5px!important;margin-top:6px;
}
.enterprise-action-controls .enterprise-user-actions{display:contents!important}
.enterprise-action-controls>button,
.enterprise-action-controls .enterprise-user-actions>button{
  flex:0 1 auto;width:auto;min-width:0;max-width:100%;box-sizing:border-box;
  min-height:30px;height:30px;padding:5px 9px;border-radius:8px;
  font-size:8px;font-weight:800;line-height:1.05;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;text-align:center;
}
.enterprise-action-controls .enterprise-children-btn{flex:0 1 auto}

@media(max-width:700px){
  .enterprise-action-controls{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:4px!important;width:100%!important;margin-top:6px;
  }
  .enterprise-action-controls>button,
  .enterprise-action-controls .enterprise-user-actions>button{
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:28px!important;min-height:28px!important;padding:4px 4px!important;
    border-radius:8px!important;font-size:7.5px!important;line-height:1.05!important;
    white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;
    overflow-wrap:anywhere!important;text-align:center!important;
  }
  .enterprise-action-controls [data-ent-favorite]{grid-column:auto!important}
  .enterprise-action-controls [data-ent-request]{grid-column:auto!important}
  .enterprise-action-controls [data-ent-children]{grid-column:auto!important}
  .enterprise-readable-card .enterprise-compact-title{align-items:flex-start!important}
  .enterprise-readable-card .enterprise-compact-title h3{display:none}
  .enterprise-name-link{font-size:10.5px!important;min-width:0;flex:1}
}
@media(max-width:380px){
  .enterprise-action-controls{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px!important}
  .enterprise-action-controls>button,
  .enterprise-action-controls .enterprise-user-actions>button{font-size:7px!important;padding:4px 3px!important}
  .enterprise-name-link{font-size:10px!important}
}


/* v12.88 — единый размер действий предприятия и дочерние только при наличии детей */
.enterprise-action-controls{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px!important;width:100%;min-width:0}
.enterprise-action-controls .enterprise-user-actions{display:contents!important}
.enterprise-action-controls .enterprise-user-btn,
.enterprise-action-controls .enterprise-children-btn,
.enterprise-modal-actions .enterprise-modal-action-btn,
.enterprise-modal-actions .enterprise-user-btn,
.enterprise-modal-actions .enterprise-edit-btn,
.enterprise-modal-actions .hero-btn,
.enterprise-modal-actions .enterprise-delete-btn,
.enterprise-modal-actions .enterprise-modal-bottom-close{
  box-sizing:border-box!important;
  min-height:34px!important;
  height:34px!important;
  padding:0 10px!important;
  border-radius:9px!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:800!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
.enterprise-action-controls .enterprise-favorite-btn,
.enterprise-action-controls .enterprise-request-btn,
.enterprise-action-controls .enterprise-children-btn{flex:1 1 0!important;width:auto!important}
.enterprise-action-controls .enterprise-children-btn{order:3}
.enterprise-action-controls .enterprise-request-btn{order:2}
.enterprise-action-controls .enterprise-favorite-btn{order:1}
.enterprise-delete-btn{background:#171717!important;border-color:#171717!important;color:#ff6262!important;box-shadow:0 5px 14px rgba(0,0,0,.14)!important}
.enterprise-delete-btn:hover{background:#0d0d0d!important;color:#ff7a7a!important}
@media(max-width:700px){
  .enterprise-action-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  .enterprise-action-controls .enterprise-user-btn,
  .enterprise-action-controls .enterprise-children-btn{width:100%!important;min-height:30px!important;height:30px!important;padding:0 5px!important;font-size:8px!important}
  .enterprise-action-controls .enterprise-favorite-btn{grid-column:1}
  .enterprise-action-controls .enterprise-request-btn{grid-column:2}
  .enterprise-action-controls .enterprise-children-btn{grid-column:1 / -1;order:3}
  .enterprise-modal-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
  .enterprise-modal-actions .enterprise-user-actions{display:contents!important}
  .enterprise-modal-actions .enterprise-modal-action-btn,
  .enterprise-modal-actions .enterprise-user-btn,
  .enterprise-modal-actions .enterprise-edit-btn,
  .enterprise-modal-actions .hero-btn,
  .enterprise-modal-actions .enterprise-delete-btn,
  .enterprise-modal-actions .enterprise-modal-bottom-close{
    min-height:32px!important;height:32px!important;font-size:8px!important;padding:0 8px!important;flex:1 1 calc(50% - 6px)!important;min-width:0!important
  }
}


/* v12.89 — выравнивание кнопок карточки предприятия */
.enterprise-modal-actions{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(132px,1fr))!important;
  gap:6px!important;
  align-items:stretch!important;
  width:100%;
  margin-top:16px;
}
.enterprise-modal-actions #enterpriseCardUserActions{
  display:contents!important;
  margin:0!important;
  padding:0!important;
}
.enterprise-modal-actions .enterprise-user-actions{
  display:contents!important;
  margin:0!important;
  padding:0!important;
}
.enterprise-modal-actions .enterprise-user-btn,
.enterprise-modal-actions .enterprise-modal-action-btn,
.enterprise-modal-actions .enterprise-edit-btn,
.enterprise-modal-actions .hero-btn,
.enterprise-modal-actions .enterprise-delete-btn,
.enterprise-modal-actions .enterprise-modal-bottom-close{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  min-height:34px!important;
  height:34px!important;
  margin:0!important;
  padding:0 9px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  vertical-align:middle!important;
  font-size:9px!important;
  line-height:1.05!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
.enterprise-modal-actions .enterprise-delete-btn{
  background:#171717!important;
  border-color:#171717!important;
  color:#ff6565!important;
}
.enterprise-modal-actions .enterprise-delete-btn:hover{
  background:#0f0f0f!important;
  color:#ff7a7a!important;
}
@media(max-width:700px){
  .enterprise-modal-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;
    align-items:stretch!important;
  }
  .enterprise-modal-actions .enterprise-user-btn,
  .enterprise-modal-actions .enterprise-modal-action-btn,
  .enterprise-modal-actions .enterprise-edit-btn,
  .enterprise-modal-actions .hero-btn,
  .enterprise-modal-actions .enterprise-delete-btn,
  .enterprise-modal-actions .enterprise-modal-bottom-close{
    width:100%!important;
    min-height:30px!important;
    height:30px!important;
    padding:0 6px!important;
    font-size:8px!important;
    line-height:1.05!important;
    border-radius:8px!important;
  }
}
@media(max-width:380px){
  .enterprise-modal-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:4px!important;
  }
  .enterprise-modal-actions .enterprise-user-btn,
  .enterprise-modal-actions .enterprise-modal-action-btn,
  .enterprise-modal-actions .enterprise-edit-btn,
  .enterprise-modal-actions .hero-btn,
  .enterprise-modal-actions .enterprise-delete-btn,
  .enterprise-modal-actions .enterprise-modal-bottom-close{
    min-height:29px!important;
    height:29px!important;
    padding:0 5px!important;
    font-size:7.5px!important;
  }
}

/* v12.90 — стиль нижних кнопок карточки предприятия и крестика */
.enterprise-modal-close{
  box-sizing:border-box!important;
  flex:0 0 36px!important;
  width:36px!important;
  height:36px!important;
  padding:0!important;
  border:1px solid rgba(180,28,45,.38)!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,#e53950 0%,#b71c34 100%)!important;
  color:#fff!important;
  font-family:Arial,sans-serif!important;
  font-size:22px!important;
  font-weight:700!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
  box-shadow:0 6px 16px rgba(183,28,52,.24),inset 0 1px 0 rgba(255,255,255,.22)!important;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease!important;
}
.enterprise-modal-close:hover{
  filter:brightness(1.04)!important;
  transform:translateY(-1px) scale(1.02)!important;
  box-shadow:0 8px 19px rgba(183,28,52,.29),inset 0 1px 0 rgba(255,255,255,.24)!important;
}
.enterprise-modal-close:active{transform:translateY(0) scale(.98)!important}
.enterprise-modal-bottom-close{
  box-sizing:border-box!important;
  min-height:34px!important;
  height:34px!important;
  padding:0 15px!important;
  border:1px solid #b91c32!important;
  border-radius:10px!important;
  background:linear-gradient(135deg,#ef5350 0%,#c62828 52%,#a61b2b 100%)!important;
  color:#fff!important;
  font-size:9px!important;
  font-weight:850!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  box-shadow:0 6px 15px rgba(198,40,40,.20),inset 0 1px 0 rgba(255,255,255,.20)!important;
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease!important;
}
.enterprise-modal-bottom-close:hover{
  filter:brightness(1.04)!important;
  transform:translateY(-1px)!important;
  box-shadow:0 8px 18px rgba(198,40,40,.26),inset 0 1px 0 rgba(255,255,255,.22)!important;
}
.enterprise-modal-bottom-close:active{transform:translateY(0)!important}
.enterprise-modal-actions .enterprise-delete-btn{
  box-sizing:border-box!important;
  min-height:34px!important;
  height:34px!important;
  padding:0 15px!important;
  border:1px solid #171717!important;
  border-radius:10px!important;
  background:linear-gradient(145deg,#2d3136 0%,#151719 100%)!important;
  color:#ff6572!important;
  font-size:9px!important;
  font-weight:850!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  box-shadow:0 6px 15px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.07)!important;
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease!important;
}
.enterprise-modal-actions .enterprise-delete-btn:hover{
  filter:brightness(1.07)!important;
  transform:translateY(-1px)!important;
  color:#ff7a85!important;
  box-shadow:0 8px 18px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.enterprise-modal-actions .enterprise-delete-btn:active{transform:translateY(0)!important}
@media(max-width:700px){
  .enterprise-modal-close{
    flex-basis:32px!important;width:32px!important;height:32px!important;
    border-radius:10px!important;font-size:20px!important;
  }
  .enterprise-modal-bottom-close,
  .enterprise-modal-actions .enterprise-delete-btn{
    height:30px!important;min-height:30px!important;padding:0 8px!important;
    border-radius:8px!important;font-size:8px!important;
  }
}
@media(max-width:380px){
  .enterprise-modal-bottom-close,
  .enterprise-modal-actions .enterprise-delete-btn{
    height:29px!important;min-height:29px!important;padding:0 7px!important;font-size:7.5px!important;
  }
}

/* v12.91 — финальная визуальная настройка административных кнопок карточки */
.enterprise-modal-actions .enterprise-parent-compare-btn,
.enterprise-action-controls .enterprise-parent-compare-btn{
  box-sizing:border-box!important;
  border:1px solid rgba(16,112,145,.45)!important;
  background:linear-gradient(135deg,#0f6f8f 0%,#168a9f 52%,#1aa6a6 100%)!important;
  color:#fff!important;
  box-shadow:0 5px 14px rgba(15,111,143,.20),inset 0 1px 0 rgba(255,255,255,.18)!important;
  font-weight:800!important;
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease!important;
}
.enterprise-modal-actions .enterprise-parent-compare-btn:hover,
.enterprise-action-controls .enterprise-parent-compare-btn:hover{
  filter:brightness(1.04)!important;
  transform:translateY(-1px)!important;
  box-shadow:0 8px 18px rgba(15,111,143,.26),inset 0 1px 0 rgba(255,255,255,.22)!important;
}
.enterprise-modal-actions .enterprise-parent-compare-btn:active,
.enterprise-action-controls .enterprise-parent-compare-btn:active{transform:translateY(0)!important}

/* Более благородный стиль удаления: опасное действие видно, но не выглядит грубо. */
.enterprise-modal-actions .enterprise-delete-btn{
  border:1px solid rgba(111,20,36,.80)!important;
  background:linear-gradient(135deg,#24282d 0%,#321c22 48%,#4a1c27 100%)!important;
  color:#ff7b87!important;
  box-shadow:0 6px 16px rgba(61,16,27,.22),inset 0 1px 0 rgba(255,255,255,.07)!important;
  position:relative;
  overflow:hidden;
}
.enterprise-modal-actions .enterprise-delete-btn::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.07) 48%,transparent 100%);
  transform:translateX(-120%);
  transition:transform .35s ease;
  pointer-events:none;
}
.enterprise-modal-actions .enterprise-delete-btn:hover{
  filter:brightness(1.06)!important;
  transform:translateY(-1px)!important;
  color:#ff9aa3!important;
  border-color:rgba(154,36,54,.92)!important;
  box-shadow:0 9px 20px rgba(61,16,27,.28),inset 0 1px 0 rgba(255,255,255,.09)!important;
}
.enterprise-modal-actions .enterprise-delete-btn:hover::before{transform:translateX(120%)}
.enterprise-modal-actions .enterprise-delete-btn:active{transform:translateY(0)!important}


/* v12.92 — компактные одинаковые кнопки и сворачивание действий на мобильных.
   Только UI: обработчики и права доступа сохраняются. */
.enterprise-modal-actions{display:block!important;width:100%;min-width:0;margin-top:14px}
.enterprise-modal-actions-toggle{display:none!important}
.enterprise-modal-actions-panel{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%;min-width:0}
.enterprise-modal-actions-panel #enterpriseCardUserActions{display:contents!important;margin:0!important;padding:0!important}
.enterprise-modal-actions-panel .enterprise-user-actions{display:contents!important;margin:0!important;padding:0!important}
.enterprise-modal-actions-panel .enterprise-user-btn,
.enterprise-modal-actions-panel .enterprise-modal-action-btn,
.enterprise-modal-actions-panel .enterprise-edit-btn,
.enterprise-modal-actions-panel .hero-btn,
.enterprise-modal-actions-panel .enterprise-delete-btn,
.enterprise-modal-actions-panel .enterprise-modal-bottom-close{
  width:100%!important;min-width:0!important;height:32px!important;min-height:32px!important;
  margin:0!important;padding:0 7px!important;box-sizing:border-box!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;vertical-align:middle!important;border-radius:8px!important;
  font-size:8px!important;line-height:1.05!important;font-weight:800!important;
  white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:break-word!important;
}
.enterprise-modal-actions-panel .enterprise-delete-btn{background:linear-gradient(135deg,#24282d 0%,#321c22 48%,#4a1c27 100%)!important;color:#ff7b87!important;border-color:rgba(111,20,36,.8)!important}
@media(max-width:700px){
  .enterprise-modal-actions{position:relative;padding-top:34px!important}
  .enterprise-modal-actions-toggle{display:inline-flex!important;position:absolute;top:0;right:0;width:32px!important;height:28px!important;min-height:28px!important;padding:0!important;box-sizing:border-box!important;align-items:center!important;justify-content:center!important;border:1px solid #d5e1e8!important;border-radius:8px!important;background:#f8fbfc!important;color:#254c67!important;font-size:14px!important;font-weight:900!important;line-height:1!important;cursor:pointer!important}
  .enterprise-modal-actions-panel.is-collapsed{display:none!important}
  .enterprise-modal-actions-panel{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  .enterprise-modal-actions-panel .enterprise-user-btn,
  .enterprise-modal-actions-panel .enterprise-modal-action-btn,
  .enterprise-modal-actions-panel .enterprise-edit-btn,
  .enterprise-modal-actions-panel .hero-btn,
  .enterprise-modal-actions-panel .enterprise-delete-btn,
  .enterprise-modal-actions-panel .enterprise-modal-bottom-close{height:30px!important;min-height:30px!important;font-size:8px!important;padding:0 6px!important}
}
@media(max-width:380px){
  .enterprise-modal-actions-panel{gap:4px!important}
  .enterprise-modal-actions-panel .enterprise-user-btn,
  .enterprise-modal-actions-panel .enterprise-modal-action-btn,
  .enterprise-modal-actions-panel .enterprise-edit-btn,
  .enterprise-modal-actions-panel .hero-btn,
  .enterprise-modal-actions-panel .enterprise-delete-btn,
  .enterprise-modal-actions-panel .enterprise-modal-bottom-close{height:29px!important;min-height:29px!important;font-size:7.5px!important;padding:0 5px!important}
}
/* v12.100 — мобильная карточка «Сверка предприятий»: компактная шапка и крестик закрытия.
   Desktop intentionally unchanged. */
@media (max-width: 700px){
  .enterprise-parent-compare-modal .enterprise-parent-compare-head-main{
    gap:6px!important;
    align-items:flex-start!important;
    padding-bottom:6px!important;
  }
  .enterprise-parent-compare-modal .enterprise-parent-compare-head-main .eyebrow{
    font-size:7px!important;
    line-height:1.1!important;
    letter-spacing:.08em!important;
  }
  .enterprise-parent-compare-modal .enterprise-parent-compare-head-main h2{
    margin:2px 0 0!important;
    font-size:13px!important;
    line-height:1.12!important;
    overflow-wrap:anywhere!important;
  }
  .enterprise-parent-compare-modal .enterprise-parent-compare-head-main p{
    display:none!important;
  }
  .enterprise-parent-compare-modal .enterprise-parent-compare-close-btn{
    flex:0 0 27px!important;
    width:27px!important;
    min-width:27px!important;
    height:27px!important;
    min-height:27px!important;
    padding:0!important;
    border-radius:8px!important;
    font-size:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .enterprise-parent-compare-modal .enterprise-parent-compare-close-btn::before{
    content:'×';
    font-size:19px!important;
    line-height:1!important;
    font-weight:700!important;
  }
}


/* v12.101 — мобильная карточка выбора в «Сравнить и присвоить»: компактный заголовок, крестик и свернутые действия.
   Desktop intentionally unchanged. */
@media(max-width:700px){
  .enterprise-parent-detail-head{
    gap:8px!important;
    align-items:flex-start!important;
  }
  .enterprise-parent-detail-title{
    min-width:0!important;
    flex:1 1 auto!important;
    display:grid!important;
    gap:2px!important;
  }
  .enterprise-parent-detail-idline{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    flex-wrap:wrap!important;
  }
  .enterprise-parent-detail-idline strong{
    font-size:10px!important;
    line-height:1.1!important;
  }
  .enterprise-parent-detail-idline span{
    min-width:0!important;
    font-size:9px!important;
    line-height:1.15!important;
    font-weight:750!important;
    overflow-wrap:anywhere!important;
  }
  .enterprise-parent-detail-title small{
    font-size:7px!important;
    line-height:1.15!important;
  }
  .enterprise-parent-detail-head-controls{
    flex:0 0 auto!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    gap:4px!important;
  }
  .enterprise-parent-detail-close{
    width:26px!important;
    min-width:26px!important;
    height:26px!important;
    min-height:26px!important;
    padding:0!important;
    border:1px solid rgba(175,43,54,.28)!important;
    border-radius:8px!important;
    background:linear-gradient(135deg,#d94b5b 0%,#b62e40 100%)!important;
    color:#fff!important;
    box-shadow:0 4px 10px rgba(177,45,61,.18)!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:16px!important;
    font-weight:700!important;
    line-height:1!important;
  }
  .enterprise-parent-detail-actions-toggle{
    width:auto!important;
    min-width:74px!important;
    height:24px!important;
    min-height:24px!important;
    padding:0 7px!important;
    border:1px solid #d5e1e8!important;
    border-radius:7px!important;
    background:#f8fbfc!important;
    color:#254c67!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    font-size:7px!important;
    font-weight:800!important;
    line-height:1!important;
    cursor:pointer!important;
  }
  .enterprise-parent-detail-actions-arrow{font-size:10px!important;line-height:1!important;}
  .enterprise-parent-detail-actions{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
    margin:6px 0!important;
  }
  .enterprise-parent-detail-actions[hidden]{display:none!important;}
  .enterprise-parent-detail-actions button{
    width:100%!important;
    min-width:0!important;
    height:28px!important;
    min-height:28px!important;
    padding:0 5px!important;
    box-sizing:border-box!important;
    font-size:8px!important;
    line-height:1.05!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-detail-actions-toggle{min-width:68px!important;font-size:6.7px!important;}
  .enterprise-parent-detail-actions{gap:4px!important;}
  .enterprise-parent-detail-actions button{height:27px!important;min-height:27px!important;font-size:7.5px!important;padding:0 4px!important;}
}

/* v12.102 — mobile comparison card: smaller close icon; arrow is a standalone clickable control, label is separate. */
@media(max-width:700px){
  .enterprise-parent-detail-head-controls{
    gap:3px!important;
  }
  .enterprise-parent-detail-close{
    width:23px!important;
    min-width:23px!important;
    height:23px!important;
    min-height:23px!important;
    border-radius:7px!important;
    font-size:14px!important;
  }
  .enterprise-parent-detail-actions-control{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:4px!important;
    min-height:18px!important;
  }
  .enterprise-parent-detail-actions-toggle.enterprise-parent-detail-actions-arrow{
    width:17px!important;
    min-width:17px!important;
    height:17px!important;
    min-height:17px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:4px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#254c67!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
    font-size:13px!important;
    line-height:1!important;
  }
  .enterprise-parent-detail-actions-toggle.enterprise-parent-detail-actions-arrow:hover,
  .enterprise-parent-detail-actions-toggle.enterprise-parent-detail-actions-arrow:focus-visible{
    background:#edf5f7!important;
    outline:none!important;
  }
  .enterprise-parent-detail-actions-toggle.enterprise-parent-detail-actions-arrow span{
    display:block!important;
    line-height:1!important;
  }
  .enterprise-parent-detail-actions-label{
    font-size:7px!important;
    line-height:1!important;
    font-weight:800!important;
    color:#254c67!important;
    white-space:nowrap!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-detail-close{
    width:22px!important;
    min-width:22px!important;
    height:22px!important;
    min-height:22px!important;
    font-size:13px!important;
  }
  .enterprise-parent-detail-actions-toggle.enterprise-parent-detail-actions-arrow{
    width:16px!important;
    min-width:16px!important;
    height:16px!important;
    min-height:16px!important;
    font-size:12px!important;
  }
  .enterprise-parent-detail-actions-label{font-size:6.7px!important;}
}


/* v12.103 — мобильное окно «Сравнить и присвоить»: крестик без кнопочного фона, компактнее; кнопки присвоения чуть выше и ниже по высоте. */
@media(max-width:700px){
  .enterprise-parent-detail-close{
    width:18px!important;
    min-width:18px!important;
    height:18px!important;
    min-height:18px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#b62e40!important;
    font-size:17px!important;
    line-height:18px!important;
    font-weight:700!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
  }
  .enterprise-parent-detail-close:hover,
  .enterprise-parent-detail-close:focus-visible{
    background:transparent!important;
    color:#8f1f30!important;
    outline:none!important;
    transform:none!important;
  }
  .enterprise-parent-detail-actions{
    margin:-3px 0 6px!important;
    gap:4px!important;
  }
  .enterprise-parent-detail-actions button{
    height:26px!important;
    min-height:26px!important;
    padding:0 4px!important;
    font-size:7.5px!important;
    line-height:1.05!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-detail-close{
    width:16px!important;
    min-width:16px!important;
    height:16px!important;
    min-height:16px!important;
    font-size:15px!important;
    line-height:16px!important;
  }
  .enterprise-parent-detail-actions{
    margin-top:-3px!important;
    gap:3px!important;
  }
  .enterprise-parent-detail-actions button{
    height:25px!important;
    min-height:25px!important;
    font-size:7.2px!important;
    padding:0 3px!important;
  }
}


/* v12.104 — мобильная сверка: общий toggle для двух карточек, стрелка перед ID.
   В свернутом состоянии обе карточки оставляют только стрелку, ID, название и крестик. */
@media(max-width:700px){
  .enterprise-parent-detail-idline{
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:5px!important;
  }
  .enterprise-parent-detail-collapse-toggle{
    width:16px!important;
    min-width:16px!important;
    height:16px!important;
    min-height:16px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#254c67!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
    font-size:12px!important;
    line-height:1!important;
    flex:0 0 16px!important;
  }
  .enterprise-parent-detail-collapse-toggle:hover,.enterprise-parent-detail-collapse-toggle:focus-visible{
    background:transparent!important;
    outline:none!important;
  }
  .enterprise-parent-detail-collapse-toggle span{display:block!important;line-height:1!important;}
  .enterprise-parent-detail-idline strong{font-size:9px!important;line-height:1.1!important;flex:0 0 auto!important;}
  .enterprise-parent-detail-idline span{font-size:8px!important;line-height:1.15!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
  .enterprise-parent-detail-title small{font-size:6.5px!important;line-height:1.1!important;}
  .enterprise-parent-detail-head-controls{gap:3px!important;}
  .enterprise-parent-detail-close{width:16px!important;min-width:16px!important;height:16px!important;min-height:16px!important;font-size:13px!important;line-height:16px!important;}
  .enterprise-parent-detail-actions-control{margin-top:0!important;}
  .enterprise-parent-detail-actions{margin-top:-3px!important;}
  .enterprise-parent-detail-head.is-collapsed .enterprise-parent-detail-actions-control,
  .enterprise-parent-detail-head.is-collapsed + .enterprise-parent-detail-actions{display:none!important;}
}
@media(max-width:380px){
  .enterprise-parent-detail-collapse-toggle{width:15px!important;min-width:15px!important;height:15px!important;min-height:15px!important;font-size:11px!important;flex-basis:15px!important;}
  .enterprise-parent-detail-idline strong{font-size:8.5px!important;}
  .enterprise-parent-detail-idline span{font-size:7.5px!important;}
  .enterprise-parent-detail-close{width:15px!important;min-width:15px!important;height:15px!important;min-height:15px!important;font-size:12px!important;line-height:15px!important;}
}


/* v12.105 — мобильная сверка: кнопки действий подняты ближе к шапке «Действия», без изменения их размера. */
@media(max-width:700px){
  .enterprise-parent-detail-actions{margin-top:-3px!important;}
}
@media(max-width:380px){
  .enterprise-parent-detail-actions{margin-top:-3px!important;}
}


/* v12.106 — мобильная сверка: кнопки действий прижаты к шапке «Действия» с минимальным зазором. */
@media(max-width:700px){
  .enterprise-parent-detail-actions{
    margin-top:-11px!important;
    margin-bottom:5px!important;
    position:relative!important;
    z-index:1!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-detail-actions{
    margin-top:-10px!important;
    margin-bottom:5px!important;
  }
}


/* v12.107 — только мобильная сверка: действия визуально подняты непосредственно к заголовку «Действия».
   Используется position/transform, чтобы гарантированно двигать кнопки вверх без изменения их размера или desktop. */
@media(max-width:700px){
  .enterprise-parent-detail-actions{
    margin-top:0!important;
    position:relative!important;
    top:-12px!important;
    transform:translateY(-6px)!important;
    margin-bottom:-6px!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-detail-actions{
    top:-10px!important;
    transform:translateY(-5px)!important;
    margin-bottom:-5px!important;
  }
}


/* v12.109 — мобильная сверка: зазор ровно 2px от нижней границы шапки до кнопок действий. */
@media(max-width:700px){
  .enterprise-parent-detail-actions{
    margin-top:2px!important;
    margin-bottom:5px!important;
    position:relative!important;
    top:0!important;
    transform:none!important;
  }
  .enterprise-parent-detail-actions button{
    height:23px!important;
    min-height:23px!important;
    padding:0 4px!important;
    font-size:7.3px!important;
    line-height:1!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-detail-actions{
    margin-top:2px!important;
    margin-bottom:4px!important;
  }
  .enterprise-parent-detail-actions button{
    height:22px!important;
    min-height:22px!important;
    font-size:7px!important;
    padding:0 3px!important;
  }
}


/* v12.110 — мобильная сверка: кнопки действий прижаты на 2px ближе к шапке; стрелка «Действия» управляет обеими половинами одновременно. */
@media(max-width:700px){
  .enterprise-parent-detail-actions{
    margin-top:0!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-detail-actions{
    margin-top:0!important;
  }
}


/* v12.112 — мобильная сверка: расстояние ровно 1px от нижней границы шапки «Действия» до кнопок. */
@media(max-width:700px){
  .enterprise-parent-detail-actions{
    margin-top:1px!important;
    top:0!important;
    transform:none!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-detail-actions{
    margin-top:1px!important;
    top:0!important;
    transform:none!important;
  }
}

/* v12.113 — мобильная сверка: компактнее поля информации и минимальные интервалы между ними. */
@media(max-width:700px){
  .enterprise-parent-detail-fields{
    gap:3px!important;
    padding-top:1px!important;
    padding-bottom:7px!important;
  }
  .enterprise-parent-detail-field{
    padding:4px 6px!important;
    gap:2px!important;
    border-radius:6px!important;
  }
  .enterprise-parent-detail-field span{
    font-size:7px!important;
    line-height:1.15!important;
  }
  .enterprise-parent-detail-field strong{
    font-size:8px!important;
    line-height:1.2!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-detail-fields{gap:2px!important;padding-bottom:6px!important;}
  .enterprise-parent-detail-field{padding:3px 5px!important;gap:1px!important;}
  .enterprise-parent-detail-field span{font-size:6.8px!important;}
  .enterprise-parent-detail-field strong{font-size:7.8px!important;}
}


/* v12.114 — мобильная сверка: дублируем раскрытые действия после информационных полей,
   чтобы при прокрутке кнопки были доступны и внизу каждой половины. Desktop не затрагивается. */
.enterprise-parent-detail-actions-bottom{display:none!important;}
@media(max-width:700px){
  .enterprise-parent-detail-actions-bottom{
    display:grid!important;
    margin:0!important;
    padding:0!important;
    gap:4px!important;
  }
  .enterprise-parent-detail-actions-bottom[hidden]{display:none!important;}
  .enterprise-parent-detail-actions-bottom button{
    width:100%!important;
    height:23px!important;
    min-height:23px!important;
    padding:0 4px!important;
    font-size:7.3px!important;
    line-height:1!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-detail-actions-bottom{gap:3px!important;}
  .enterprise-parent-detail-actions-bottom button{
    height:22px!important;
    min-height:22px!important;
    font-size:7px!important;
    padding:0 3px!important;
  }
}


/* v12.115 — нижние мобильные действия показываются только при свернутом верхнем блоке.
   Desktop нижний дубликат не отображается. */
@media(max-width:700px){
  .enterprise-parent-detail-actions-top[hidden] ~ .enterprise-parent-detail-fields + .enterprise-parent-detail-actions-bottom:not([hidden]){
    display:grid!important;
  }
  .enterprise-parent-detail-actions-top:not([hidden]) ~ .enterprise-parent-detail-fields + .enterprise-parent-detail-actions-bottom{
    display:none!important;
  }
}


/* v12.116 — мобильное окно выбора в «Сравнить и присвоить»: компактная геометрия без изменения desktop. */
@media(max-width:700px){
  .enterprise-parent-compare-modal{
    width:calc(100vw - 12px)!important;
    max-width:calc(100vw - 12px)!important;
    max-height:calc(100vh - 12px)!important;
    padding:8px!important;
    border-radius:12px!important;
    overflow:hidden!important;
  }
  .enterprise-parent-compare-head-main{
    gap:6px!important;
    margin-bottom:6px!important;
  }
  .enterprise-parent-compare-head-main .eyebrow{
    font-size:7px!important;
    line-height:1.05!important;
    margin-bottom:1px!important;
  }
  .enterprise-parent-compare-head-main h2{
    font-size:14px!important;
    line-height:1.12!important;
    margin:0!important;
  }
  .enterprise-parent-compare-head-main p{
    display:none!important;
  }
  .enterprise-parent-compare-close-btn{
    width:20px!important;
    min-width:20px!important;
    height:20px!important;
    min-height:20px!important;
    padding:0!important;
    border-radius:6px!important;
    font-size:0!important;
    flex:0 0 20px!important;
  }
  .enterprise-parent-compare-close-btn::after{
    content:'×';
    font-size:15px!important;
    line-height:1!important;
    font-weight:700!important;
  }
  .enterprise-parent-compare-selectors{
    gap:6px!important;
    margin:0!important;
  }
  .enterprise-parent-selector{
    padding:6px!important;
    border-radius:9px!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
  .enterprise-parent-selector-head{
    gap:6px!important;
    margin-bottom:4px!important;
  }
  .enterprise-parent-selector-head strong{
    font-size:9px!important;
    line-height:1.1!important;
  }
  .enterprise-parent-selector-state{
    font-size:7px!important;
    line-height:1.1!important;
  }
  .enterprise-parent-selector-search{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:4px!important;
    margin-bottom:4px!important;
  }
  .enterprise-parent-selector-search input,
  .enterprise-parent-selector-search button{
    height:26px!important;
    min-height:26px!important;
    box-sizing:border-box!important;
  }
  .enterprise-parent-selector-search input{
    padding:0 7px!important;
    border-radius:6px!important;
    font-size:8px!important;
  }
  .enterprise-parent-selector-search button{
    padding:0 8px!important;
    border-radius:6px!important;
    font-size:8px!important;
    line-height:1!important;
  }
  .enterprise-parent-selector-list{
    gap:2px!important;
    max-height:170px!important;
    padding:0 2px 2px 0!important;
  }
  .enterprise-parent-selector-item{
    grid-template-columns:54px minmax(0,1fr)!important;
    gap:5px!important;
    padding:4px 5px!important;
    border-radius:6px!important;
    min-height:0!important;
  }
  .enterprise-parent-selector-item-id{
    font-size:7px!important;
    line-height:1.1!important;
  }
  .enterprise-parent-selector-item-name{
    font-size:8px!important;
    line-height:1.15!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-compare-modal{
    width:calc(100vw - 10px)!important;
    max-width:calc(100vw - 10px)!important;
    padding:7px!important;
  }
  .enterprise-parent-compare-head-main h2{font-size:13px!important;}
  .enterprise-parent-compare-close-btn{width:19px!important;min-width:19px!important;height:19px!important;min-height:19px!important;flex-basis:19px!important;}
  .enterprise-parent-compare-close-btn::after{font-size:14px!important;}
  .enterprise-parent-selector{padding:5px!important;}
  .enterprise-parent-selector-head strong{font-size:8.5px!important;}
  .enterprise-parent-selector-state{font-size:6.7px!important;}
  .enterprise-parent-selector-search input,.enterprise-parent-selector-search button{height:25px!important;min-height:25px!important;font-size:7.5px!important;}
  .enterprise-parent-selector-search button{padding:0 7px!important;}
  .enterprise-parent-selector-item{grid-template-columns:50px minmax(0,1fr)!important;padding:3px 4px!important;}
  .enterprise-parent-selector-item-id{font-size:6.7px!important;}
  .enterprise-parent-selector-item-name{font-size:7.5px!important;}
}

/* v12.117 — мобильная сверка: исправлено отображение действий и оставлен один крестик закрытия окна. */
@media(max-width:700px){
  .enterprise-parent-detail-actions-top:not([hidden]){display:grid!important;}
  .enterprise-parent-detail-actions-top[hidden]{display:none!important;}
  .enterprise-parent-detail-actions-bottom[hidden]{display:none!important;}
  .enterprise-parent-detail-close{display:none!important;}
  .enterprise-parent-compare-close-btn{display:inline-flex!important;}
}

/* v12.119 — мобильная сверка: вернуть вертикальную прокрутку всего окна. */
@media(max-width:700px){
  .enterprise-modal-backdrop{overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;}
  .enterprise-parent-compare-modal{overflow-y:auto!important;overflow-x:hidden!important;}
  .enterprise-parent-compare-selectors{min-height:0!important;}
}


/* v12.120 — мобильная сверка: два симметричных прокручиваемых окна */
@media (max-width:700px){
  .enterprise-parent-compare-modal{
    width:calc(100vw - 12px)!important;
    max-width:calc(100vw - 12px)!important;
    max-height:calc(100vh - 12px)!important;
    height:calc(100vh - 12px)!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .enterprise-parent-compare-head-main{flex:0 0 auto!important;}
  .enterprise-parent-compare-selectors{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
    margin:0!important;
    overflow:hidden!important;
  }
  .enterprise-parent-selector{
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  .enterprise-parent-selector-list{
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
  }
  .enterprise-parent-detail{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
  }
  .enterprise-parent-detail-fields{
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .enterprise-parent-detail-head{position:sticky!important;top:0!important;z-index:4!important;}
  .enterprise-parent-detail-actions{position:sticky!important;top:58px!important;z-index:3!important;}
}

/* v12.121 — мобильная сверка: возвращаем крестик каждой половины и гарантируем независимую вертикальную прокрутку. */
@media (max-width:700px){
  .enterprise-parent-compare-modal{
    overflow:hidden!important;
    min-height:0!important;
    touch-action:pan-y!important;
  }
  .enterprise-parent-compare-selectors{
    min-height:0!important;
    overflow:hidden!important;
    touch-action:pan-y!important;
  }
  .enterprise-parent-selector{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    height:auto!important;
    overflow:hidden!important;
    touch-action:pan-y!important;
  }
  .enterprise-parent-selector-list{
    flex:1 1 auto!important;
    min-height:0!important;
    height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    touch-action:pan-y!important;
  }
  .enterprise-parent-detail{
    display:flex!important;
    flex:1 1 auto!important;
    flex-direction:column!important;
    min-height:0!important;
    height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    touch-action:pan-y!important;
  }
  .enterprise-parent-detail-fields{
    flex:1 1 auto!important;
    min-height:0!important;
    height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    touch-action:pan-y!important;
  }
  .enterprise-parent-detail-close{
    display:inline-flex!important;
    width:18px!important;
    min-width:18px!important;
    height:18px!important;
    min-height:18px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:50%!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#b62e40!important;
    font-size:15px!important;
    font-weight:800!important;
    line-height:18px!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
  }
  .enterprise-parent-detail-close:hover,
  .enterprise-parent-detail-close:focus-visible{
    background:#fff1f3!important;
    outline:none!important;
  }
}
@media (max-width:380px){
  .enterprise-parent-detail-close{
    width:17px!important;
    min-width:17px!important;
    height:17px!important;
    min-height:17px!important;
    font-size:14px!important;
    line-height:17px!important;
  }
}


/* v12.122 — мобильная сверка: вернуть две полноценно видимые половины, прокрутку и крестик в каждой половине. */
@media (max-width:700px){
  .enterprise-parent-compare-modal{
    height:calc(100vh - 12px)!important;
    max-height:calc(100vh - 12px)!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .enterprise-parent-compare-selectors{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    overflow:hidden!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:minmax(0,1fr) minmax(0,1fr)!important;
    gap:6px!important;
  }
  .enterprise-parent-selector,
  .enterprise-parent-detail{
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  .enterprise-parent-selector{
    display:flex!important;
    flex-direction:column!important;
  }
  .enterprise-parent-selector-list{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
  .enterprise-parent-detail{
    display:flex!important;
    flex-direction:column!important;
  }
  .enterprise-parent-detail-head{
    flex:0 0 auto!important;
    position:sticky!important;
    top:0!important;
    z-index:10!important;
  }
  .enterprise-parent-detail-fields{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
  .enterprise-parent-detail-actions-top{
    flex:0 0 auto!important;
  }
  .enterprise-parent-detail-actions-top:not([hidden]){
    display:grid!important;
  }
  .enterprise-parent-detail-actions-top[hidden]{display:none!important;}
  .enterprise-parent-detail-actions-bottom[hidden]{display:none!important;}
  .enterprise-parent-detail-close{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
  }
}

/* v12.123 — мобильная сверка: обе половины имеют собственную реальную область прокрутки. */
@media (max-width:700px){
  .enterprise-parent-compare-modal{
    min-height:0!important;
  }
  .enterprise-parent-compare-selectors{
    min-height:0!important;
    height:100%!important;
    flex:1 1 auto!important;
    overflow:hidden!important;
  }
  .enterprise-parent-selector{
    height:calc((100vh - 120px) / 2)!important;
    min-height:170px!important;
    max-height:none!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  .enterprise-parent-selector-list{
    min-height:0!important;
    height:0!important;
    flex:1 1 auto!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
  .enterprise-parent-detail{
    min-height:0!important;
    height:100%!important;
    flex:1 1 auto!important;
    overflow:hidden!important;
  }
  .enterprise-parent-detail-fields{
    min-height:0!important;
    height:0!important;
    flex:1 1 auto!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
}
@media (max-width:380px){
  .enterprise-parent-selector{height:calc((100vh - 112px) / 2)!important;min-height:150px!important;}
}


/* v12.124 — мобильный список выбора: возвращены читаемые размеры v12.115.
   Изменяется только визуальный размер элементов списка; прокрутка v12.123 сохраняется. */
@media(max-width:700px){
  .enterprise-parent-selector-list{
    gap:3px!important;
    max-height:220px!important;
    padding:1px 3px 3px 1px!important;
  }
  .enterprise-parent-selector-item{
    grid-template-columns:76px minmax(0,1fr)!important;
    gap:8px!important;
    padding:6px 8px!important;
    border-radius:7px!important;
    min-height:0!important;
  }
  .enterprise-parent-selector-item-id{
    font-size:9px!important;
    line-height:1.15!important;
  }
  .enterprise-parent-selector-item-name{
    font-size:10px!important;
    line-height:1.25!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-selector-item{
    grid-template-columns:68px minmax(0,1fr)!important;
    gap:6px!important;
    padding:5px 6px!important;
  }
  .enterprise-parent-selector-item-id{font-size:8.5px!important;}
  .enterprise-parent-selector-item-name{font-size:9px!important;}
}


/* v12.125 — мобильный список выбора предприятий: вернуть нормальный читаемый масштаб. */
@media(max-width:700px){
  .enterprise-parent-selector-list{
    gap:4px!important;
    padding:1px 3px 4px 1px!important;
  }
  .enterprise-parent-selector-item{
    grid-template-columns:78px minmax(0,1fr)!important;
    gap:8px!important;
    padding:7px 8px!important;
    min-height:30px!important;
    border-radius:8px!important;
    box-sizing:border-box!important;
    align-items:center!important;
  }
  .enterprise-parent-selector-item-id{
    font-size:11px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
  .enterprise-parent-selector-item-name{
    font-size:12px!important;
    line-height:1.2!important;
    overflow-wrap:anywhere!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-selector-item{
    grid-template-columns:70px minmax(0,1fr)!important;
    gap:7px!important;
    padding:6px 7px!important;
    min-height:28px!important;
  }
  .enterprise-parent-selector-item-id{font-size:10px!important;}
  .enterprise-parent-selector-item-name{font-size:11px!important;}
}


/* v12.126 — мобильный список выбора: длинные названия переносятся, ширина остается аккуратной. */
@media(max-width:700px){
  .enterprise-parent-selector-list{
    overflow-x:hidden!important;
  }
  .enterprise-parent-selector-item{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    grid-template-columns:minmax(58px,22%) minmax(0,1fr)!important;
    align-items:start!important;
  }
  .enterprise-parent-selector-item-id{
    min-width:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .enterprise-parent-selector-item-name{
    min-width:0!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
    line-height:1.25!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-selector-item{
    grid-template-columns:minmax(54px,22%) minmax(0,1fr)!important;
  }
}


/* v12.127 — мобильный список выбора предприятий: перенос только при необходимости,
   компактный отступ между ID и названием; устранен двойной крестик.
   Desktop intentionally unchanged. */
@media(max-width:700px){
  .enterprise-parent-compare-modal .enterprise-parent-compare-close-btn::after{
    content:none!important;
    display:none!important;
  }
  .enterprise-parent-compare-modal .enterprise-parent-compare-close-btn::before{
    content:'×'!important;
    display:block!important;
    font-size:16px!important;
    line-height:1!important;
    font-weight:800!important;
    margin:0!important;
  }
  .enterprise-parent-selector-item{
    grid-template-columns:max-content minmax(0,1fr)!important;
    column-gap:6px!important;
    row-gap:0!important;
    align-items:start!important;
    height:auto!important;
    min-height:30px!important;
    padding:6px 7px!important;
  }
  .enterprise-parent-selector-item-id{
    min-width:0!important;
    width:auto!important;
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.25!important;
  }
  .enterprise-parent-selector-item-name{
    min-width:0!important;
    width:auto!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    line-height:1.25!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-selector-item{
    grid-template-columns:max-content minmax(0,1fr)!important;
    column-gap:6px!important;
    min-height:29px!important;
    padding:5px 6px!important;
  }
  .enterprise-parent-selector-item-id{font-size:10px!important;}
  .enterprise-parent-selector-item-name{font-size:11px!important;}
}

/* v12.128 — мобильный список выбора: перенос строки увеличивает именно высоту своей строки.
   Короткие записи сохраняют прежнюю компактность; длинные не накладываются на следующую. */
@media(max-width:700px){
  .enterprise-parent-selector-list{
    grid-auto-rows:max-content!important;
    align-content:start!important;
  }
  .enterprise-parent-selector-item{
    display:grid!important;
    height:auto!important;
    min-height:30px!important;
    max-height:none!important;
    align-self:start!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  .enterprise-parent-selector-item-id,
  .enterprise-parent-selector-item-name{
    display:block!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
  .enterprise-parent-selector-item-name{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-selector-item{
    min-height:29px!important;
  }
}


/* v12.129 — desktop список выбора предприятий: перенос длинных названий с автоувеличением строки.
   Desktop-only: mobile геометрия предыдущей версии не изменяется. */
@media (min-width:701px){
  .enterprise-parent-selector-list{
    overflow-x:hidden!important;
    align-content:start!important;
    grid-auto-rows:max-content!important;
  }
  .enterprise-parent-selector-item{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    grid-template-columns:max-content minmax(0,1fr)!important;
    column-gap:16px!important;
    row-gap:0!important;
    align-items:start!important;
    height:auto!important;
    min-height:30px!important;
    max-height:none!important;
    overflow:visible!important;
    padding:6px 8px!important;
    text-align:left!important;
  }
  .enterprise-parent-selector-item-id{
    min-width:0!important;
    width:auto!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.25!important;
  }
  .enterprise-parent-selector-item-name{
    min-width:0!important;
    width:auto!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    line-height:1.25!important;
    display:block!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
}


/* v12.130 — мобильный список выбора: размер строк согласован с открытой карточкой.
   Desktop не изменяется. */
@media(max-width:700px){
  .enterprise-parent-selector-item{
    grid-template-columns:max-content minmax(0,1fr)!important;
    column-gap:5px!important;
    row-gap:0!important;
    padding:5px 6px!important;
    min-height:0!important;
    align-items:start!important;
    box-sizing:border-box!important;
  }
  .enterprise-parent-selector-item-id{
    font-size:9px!important;
    line-height:1.25!important;
    font-weight:850!important;
  }
  .enterprise-parent-selector-item-name{
    font-size:9px!important;
    line-height:1.35!important;
    font-weight:650!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  .enterprise-parent-selector-list{
    gap:2px!important;
  }
}
@media(max-width:380px){
  .enterprise-parent-selector-item{
    column-gap:5px!important;
    padding:4px 5px!important;
  }
  .enterprise-parent-selector-item-id{font-size:8.5px!important;}
  .enterprise-parent-selector-item-name{font-size:9px!important;line-height:1.3!important;}
}


/* v12.132 — мобильные названия половин выбора предприятия */
.enterprise-compare-side-mobile{display:none}
.enterprise-compare-side-desktop{display:inline}
@media(max-width:900px){
  .enterprise-parent-selector-head .enterprise-compare-side-desktop{display:none!important}
  .enterprise-parent-selector-head .enterprise-compare-side-mobile{display:inline!important}
}


/* v12.136 — ПК: вернуть свертывание «Действия» в основном списке. По умолчанию скрыто, один клик раскрывает. */
@media (min-width:721px){
  .enterprise-row-actions{display:block!important;width:100%!important;min-width:0!important;}
  .enterprise-row-actions-toggle{display:inline-flex!important;visibility:visible!important;width:auto!important;min-width:92px!important;max-width:100%!important;height:30px!important;min-height:30px!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;}
  .enterprise-row-actions-panel{display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;}
  .enterprise-row-actions-panel[hidden]{display:none!important;}
}

/* v12.136 — ПК: в «Сравнить и присвоить» стрелка перед ID не показывается; карточка всегда раскрыта. */
@media (min-width:721px){
  .enterprise-parent-detail-collapse-toggle{display:none!important;visibility:hidden!important;}
  .enterprise-parent-detail-head .enterprise-parent-detail-idline{gap:4px!important;}
  .enterprise-parent-detail-actions-control{display:none!important;}
  .enterprise-parent-detail-actions-top{display:flex!important;visibility:visible!important;opacity:1!important;}
  .enterprise-parent-detail-actions-top[hidden]{display:flex!important;}
}


/* v12.135 — desktop compare window: hide only compare Actions control */
@media(min-width:721px){
  .enterprise-parent-detail-actions-control{display:none!important}
  .enterprise-parent-detail-actions-top{display:flex!important;visibility:visible!important;opacity:1!important}
  .enterprise-parent-detail-actions-bottom{display:none!important}
}


/* v12.137 — ПК: понятные направления присвоения; мобильные подписи сохраняются. */
.enterprise-parent-assign-label-desktop{display:none;}
.enterprise-parent-assign-label-mobile{display:inline;}
@media (min-width:721px){
  .enterprise-parent-assign-label-desktop{display:inline;}
  .enterprise-parent-assign-label-mobile{display:none;}
}


/* v12.139 — точечные действия связей предприятий в окне сверки */
.enterprise-parent-child-unlink{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;width:100%;margin:0 0 6px;min-width:0;}
.enterprise-parent-child-select{height:34px;min-width:0;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 8px;font-size:9px;font-weight:700;color:var(--blue-950);}
.enterprise-parent-child-unlink .enterprise-parent-unlink-btn{white-space:nowrap;}
@media(max-width:900px){
  .enterprise-parent-child-unlink{grid-template-columns:1fr;gap:4px;margin-top:1px;}
  .enterprise-parent-child-select,.enterprise-parent-child-unlink .enterprise-parent-unlink-btn{width:100%;min-width:0;}
}

/* v12.144 — связь предприятия в карточке сравнения */
.enterprise-parent-relation-link{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  color:var(--blue-700,#1d5f86);
  font:inherit;
  font-weight:750;
  line-height:1.25;
  text-align:left;
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
}
.enterprise-parent-relation-link:hover{color:var(--blue-900,#123f60)}
.enterprise-parent-relation-text{font:inherit;line-height:1.25}
@media(max-width:700px){
  .enterprise-parent-relation-link,.enterprise-parent-relation-text{font-size:7.5px!important;line-height:1.2!important}
}

/* v12.145 — связь с родителем/дочерними в окне сравнения */
.enterprise-parent-detail-relation{margin:0 0 4px;min-width:0}
.enterprise-parent-relation-note{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:5px 8px;border-bottom:1px solid #edf2f5;font-size:10px;line-height:1.3;min-width:0}
.enterprise-parent-relation-note span{color:var(--muted);font-weight:800}
.enterprise-parent-relation-note strong{color:var(--blue-900);font-weight:800;overflow-wrap:anywhere;word-break:break-word}
.enterprise-parent-relation-link{cursor:pointer;color:var(--blue-900);font-weight:800}
.enterprise-parent-relation-link span{color:var(--blue-700);text-decoration:underline;text-underline-offset:2px}
.enterprise-parent-relation-link:hover{background:#f5f9fc}
@media(max-width:700px){
  .enterprise-parent-detail-relation{margin:0 0 2px}
  .enterprise-parent-relation-note{padding:4px 7px;gap:5px;font-size:9px}
}
.privacy-consent-row{display:flex!important;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #dbe6ec;border-radius:12px;background:#f8fbfc;font-size:12px;line-height:1.45}.privacy-consent-row input{width:17px!important;height:17px;margin-top:2px;flex:0 0 auto}.privacy-consent-row a{color:#075f8f;font-weight:700}
/* v14.75 compact admin/mobile layer */
.impersonation-banner{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:12000;display:flex;align-items:center;gap:14px;max-width:min(760px,calc(100vw - 24px));padding:10px 12px;border:1px solid #e5c15d;border-radius:14px;background:#fff8dd;box-shadow:0 12px 34px rgba(36,47,57,.2);font-size:12px}.impersonation-banner>div{min-width:0}.impersonation-banner span{display:block;color:#6a7780;overflow:hidden;text-overflow:ellipsis}.impersonation-banner button{border:0;border-radius:10px;background:#163f5b;color:#fff;padding:8px 11px;font-weight:700;white-space:nowrap}.compact-impersonate{max-width:620px}.impersonate-body{padding:16px;display:grid;gap:10px}.impersonate-body label{display:grid;gap:6px;font-size:12px;font-weight:700}.impersonate-body input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #cfdee6;border-radius:10px}.impersonate-hints{display:grid;gap:7px;max-height:360px;overflow:auto}.impersonate-hint{display:grid;text-align:left;gap:2px;width:100%;border:1px solid #dbe6ec;border-radius:11px;background:#fff;padding:10px 12px;cursor:pointer}.impersonate-hint:hover{background:#f4faf9}.impersonate-hint strong{font-size:13px}.impersonate-gmail{font-size:12px;color:#075f8f;font-weight:700}.impersonate-hint small{color:#778995}.placeholder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.placeholder-grid article{padding:14px;border:1px solid #dfe8ed;border-radius:12px;background:#f9fbfc}.placeholder-grid strong,.placeholder-grid span{display:block}.placeholder-grid span{margin-top:6px;font-size:12px;color:#677e8c;line-height:1.5}.raffle-first-open-head,.raffle-first-open-item,.raffle-cycle-admin-item .compact-form{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.raffle-first-open-list{display:grid;gap:8px}.raffle-first-open-item{border:1px solid #dfe8ed;border-radius:12px;padding:10px 12px}.raffle-first-open-item>div{display:grid;gap:3px}.raffle-first-open-item span{font-size:11px;color:#718692}.enterprise-user-actions{align-items:stretch}.enterprise-user-btn{min-height:36px}.enterprise-meeting-grid input,.enterprise-meeting-grid select{min-height:38px;font:inherit}.enterprise-field-label>span{font-size:12px;font-weight:700;color:#36566b}
@media(max-width:900px){.crm-sidebar{touch-action:pan-y}.placeholder-grid{grid-template-columns:1fr}.panel-head{gap:8px;align-items:flex-start}.panel-head>.hero-btn{flex:0 0 auto}.enterprise-user-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.enterprise-user-btn{width:100%!important;min-width:0!important}.enterprise-meeting-grid{grid-template-columns:1fr 1fr!important}.profile-request-admin-item .compact-form,.raffle-first-open-head,.raffle-first-open-item{align-items:stretch}.profile-request-admin-item .compact-form>*,.raffle-first-open-item .hero-btn{min-width:0;max-width:100%;width:100%}.impersonation-banner{bottom:8px;align-items:stretch;flex-direction:column}.impersonation-banner button{width:100%}}
@media(max-width:560px){.enterprise-user-actions{grid-template-columns:1fr!important}.enterprise-meeting-grid{grid-template-columns:1fr!important}.enterprise-meeting-footer{display:grid!important;grid-template-columns:1fr!important}.enterprise-meeting-footer>*{width:100%!important}.raffle-first-open-head .hero-btn{width:100%}.profile-request-admin-head{display:grid!important;gap:7px!important}.users-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.crm-content{padding-left:12px!important;padding-right:12px!important}.panel-card{padding-left:12px!important;padding-right:12px!important}}

/* v14.78 — Rule №6 calculator. Compact web form, Excel-compatible print form. */
.r6-shell{display:grid;gap:14px}.r6-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:10px;align-items:end}.r6-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.r6-grid.r6-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.r6-field{display:grid;gap:5px;font-size:12px;font-weight:750;color:#405c6d}.r6-field input,.r6-field select{width:100%;min-height:39px;padding:8px 10px;border:1px solid #d5e1e7;border-radius:9px;background:#fff;color:#102d42;font:inherit;font-weight:600;box-sizing:border-box}.r6-section{border:1px solid #dce7ec;background:#fff;border-radius:14px;padding:13px;display:grid;gap:11px}.r6-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.r6-section-head h3{margin:0;font-size:15px}.r6-risk-list{display:grid;gap:8px}.r6-risk{display:grid;grid-template-columns:minmax(230px,1.8fr) minmax(130px,.8fr) minmax(120px,.8fr) minmax(100px,.6fr) minmax(100px,.6fr);gap:8px;align-items:center;border:1px solid #e0eaee;border-radius:11px;padding:8px}.r6-risk-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800}.r6-risk-title input{width:16px;height:16px}.r6-risk select,.r6-risk input[type=number]{width:100%;min-height:36px;border:1px solid #d5e1e7;border-radius:8px;padding:7px 8px;background:#fff}.r6-risk small{display:block;color:#718894;font-size:10px}.r6-result{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.r6-kpi{background:#f5f9fb;border-radius:11px;padding:10px}.r6-kpi span{display:block;font-size:10px;color:#718894;text-transform:uppercase;font-weight:800}.r6-kpi strong{display:block;font-size:17px;margin-top:4px}.r6-result-table-wrap{overflow:auto;border:1px solid #dce7ec;border-radius:11px}.r6-result-table{width:100%;border-collapse:collapse;min-width:760px;font-size:12px}.r6-result-table th,.r6-result-table td{padding:8px 9px;border-bottom:1px solid #e6eef2;text-align:right}.r6-result-table th:first-child,.r6-result-table td:first-child{text-align:left}.r6-result-table th{background:#f3f8fa;color:#496576;font-size:10px;text-transform:uppercase}.r6-actions{display:flex;gap:8px;flex-wrap:wrap}.r6-actions .hero-btn{min-height:38px}.r6-contact-box{position:relative}.r6-hints{display:grid;gap:4px;max-height:220px;overflow:auto;margin-top:4px}.r6-hint{border:1px solid #dce7ec;border-radius:8px;background:#fff;padding:7px 9px;text-align:left;cursor:pointer;font-size:12px}.r6-hint:hover{background:#f4f9fb}.r6-history{display:grid;gap:7px}.r6-history-item{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;border:1px solid #dce7ec;border-radius:10px;padding:9px}.r6-history-item strong{font-size:12px}.r6-history-item small{display:block;color:#708795;margin-top:3px}.r6-source-note{font-size:11px;color:#68808f}.r6-warning{padding:8px 10px;border-radius:9px;background:#fff6df;color:#7c5512;font-size:12px}.r6-mode-pair{display:flex;gap:5px}.r6-mode-pair label{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:700}.r6-mode-pair input{width:auto}.r6-disabled{opacity:.72}.r6-disabled .r6-risk-title{opacity:1}
@media(max-width:1050px){.r6-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.r6-grid.r6-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.r6-risk{grid-template-columns:1fr 1fr}.r6-risk-title{grid-column:1/-1}.r6-result{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.r6-toolbar,.r6-grid,.r6-grid.r6-grid-3,.r6-result{grid-template-columns:1fr}.r6-risk{grid-template-columns:1fr}.r6-risk-title{grid-column:auto}.r6-section{padding:10px}.r6-actions>*{flex:1 1 140px}.r6-history-item{grid-template-columns:1fr}}

@media print{body.r6-print-body{background:#fff!important;margin:0;padding:0;font-family:Arial,sans-serif;color:#000}.r6-print-sheet{width:190mm;margin:0 auto;font-size:9pt}.r6-print-title{text-align:center;font-weight:700;font-size:13pt;padding:5mm 0 6mm}.r6-print-meta{width:100%;border-collapse:collapse;margin-bottom:4mm}.r6-print-meta td{padding:2mm 1.5mm;border:0}.r6-print-meta td:first-child{width:38%;font-weight:700}.r6-print-table{width:100%;border-collapse:collapse;table-layout:fixed}.r6-print-table th,.r6-print-table td{border:1px solid #000;padding:2.5mm 2mm;vertical-align:middle}.r6-print-table th{font-weight:700;text-align:center;height:14mm}.r6-print-table th:nth-child(1){width:36%}.r6-print-table th:nth-child(2){width:34%}.r6-print-table th:nth-child(3){width:30%}.r6-print-table td:nth-child(2),.r6-print-table td:nth-child(3){text-align:right}.r6-print-total td{font-weight:700}.r6-print-summary{width:100%;border-collapse:collapse;margin-top:5mm}.r6-print-summary td{padding:1.5mm}.r6-print-summary td:first-child{width:40%;font-weight:700}.r6-print-sign{margin-top:12mm;display:grid;grid-template-columns:1fr 2fr;gap:5mm;border-top:1px solid #000;padding-top:3mm}}
.r6-field input.r6-readonly{background:#eef3f6;color:#607287;cursor:not-allowed}
@media(max-width:720px){.r6-grid,.r6-grid-3{grid-template-columns:1fr!important}.r6-risk{grid-template-columns:minmax(0,1fr)!important}.r6-mode-pair{display:flex;flex-wrap:wrap;gap:8px}.r6-toolbar,.r6-actions{display:grid!important;grid-template-columns:1fr!important}.r6-toolbar .hero-btn,.r6-actions .hero-btn{width:100%}}
.r6-rates-panel{margin-top:18px;border:1px solid #d0e1ee;border-radius:18px;padding:18px;background:linear-gradient(145deg,#f0f8ff 0%,#f9fcff 48%,#e9f7f5 100%);box-shadow:0 12px 30px rgba(12,57,88,.09),inset 0 1px 0 #fff}.r6-rates-head{display:flex;gap:14px;align-items:end;justify-content:space-between;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid #dce9f0}.r6-rates-head .r6-field{min-width:260px;color:#183d59;font-size:14px}.r6-rates-head .r6-field select{margin-top:6px;border:1px solid #adcbdc;border-radius:10px;background:#fff;box-shadow:0 2px 7px rgba(12,57,88,.06);font-weight:700;color:#123750}.r6-rates-head span{color:#496b7c;font-size:12px}.r6-rates-head a{font-weight:700;color:#136a7a}.r6-rates-table{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}.r6-rate-card{position:relative;overflow:hidden;min-width:0;background:linear-gradient(155deg,#fff 0%,#f7fbff 100%);border:1px solid #cbdfe9;border-radius:14px;padding:15px 16px 13px;display:grid;gap:8px;box-shadow:0 7px 18px rgba(19,62,91,.10),inset 0 1px 0 #fff}.r6-rate-card:before{content:'';position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(#32bdac,#357ac2)}.r6-rate-from{font-size:13px;font-weight:750;letter-spacing:.02em;color:#42647a}.r6-rate-from span{color:#1e9d92;padding:0 3px}.r6-rate-card strong{font-size:21px;line-height:1.2;font-variant-numeric:tabular-nums;color:#102e47;overflow-wrap:anywhere}.r6-rate-card em{font-style:normal;font-size:13px;color:#236a82}.r6-rate-card small{font-size:11px;line-height:1.4;color:#5d7888}@media(max-width:1000px){.r6-rates-table{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.r6-rates-panel{padding:12px}.r6-rates-table{grid-template-columns:1fr}}

/* v14.84 — mobile header/calculator hardening and restored drawer swipe. */
.dnps-screen{width:100%;min-width:0}
.dnps-screen iframe{display:block;width:100%;height:1150px;min-width:0;border:0;background:#f5f7f9}
@media(max-width:900px){
  .crm-header{height:96px!important;min-height:96px;grid-template-rows:50px 25px;align-content:center;row-gap:0!important}
  .crm-header .mobile-menu-btn,.crm-header .header-title,.crm-header .header-notifications,.crm-header .header-user{grid-row:1}
  .crm-header .runtime-mode-badge{position:static!important;grid-column:2/5;grid-row:2;justify-self:start;align-self:center;max-width:100%;padding:4px 9px;font-size:10px;line-height:1.25;z-index:auto}
  .enterprise-sticky-toolbar,.enterprise-sticky-toolbar.is-collapsed{top:96px!important}
  .notification-panel{top:96px;right:8px;max-width:calc(100vw - 16px)}
  .crm-main,.crm-content,.page-hero,.panel-card,.r6-shell,.r6-section,.r6-toolbar,.r6-risk,.r6-result,.r6-rates-panel,.r6-rate-card{min-width:0;max-width:100%;box-sizing:border-box}
  .crm-content{overflow-x:clip}
  .r6-section-head{flex-wrap:wrap}
  .r6-section-head>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .r6-result-table-wrap,.users-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .r6-risk>*{min-width:0}
  .r6-risk select,.r6-risk input[type=number]{box-sizing:border-box;max-width:100%}
  .r6-rates-head .r6-field{min-width:0;max-width:100%;width:100%}
}
@media(max-width:600px){
  .crm-header{height:96px!important;padding:0 8px!important}
  .crm-content{min-width:0}
  .r6-toolbar,.r6-grid,.r6-grid.r6-grid-3,.r6-result,.r6-risk,.r6-rates-table{grid-template-columns:minmax(0,1fr)!important}
  .r6-toolbar .hero-btn,.r6-actions .hero-btn{min-width:0;width:100%;white-space:normal}
  .r6-source-note{line-height:1.4}
  .r6-history .r6-field{min-width:0!important;width:100%}
  .r6-kpi strong{overflow-wrap:anywhere}
  .crm-modal{width:100%;max-width:100%;box-sizing:border-box}
  .crm-form-section,.crm-form-grid,.crm-policy-row{min-width:0}
  .crm-form input,.crm-form select,.crm-form textarea{min-width:0;max-width:100%}
}


/* v14.84 — final mobile overflow hardening for Rule №6. */
.r6-risk-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-width:0;max-width:100%}
.r6-risk-results>span{display:block;min-width:0;padding:5px 6px;border-radius:7px;background:#f6f9fb}
.r6-risk-results strong{display:block;min-width:0;font-size:11px;line-height:1.25;overflow-wrap:anywhere;word-break:break-word}
.r6-history-search{min-width:0!important;max-width:100%;width:min(320px,100%)}
@media(max-width:900px){
  .r6-toolbar>*,.r6-grid>*,.r6-risk>*,.r6-result>*,.r6-history-item>*,.r6-rates-head>*,.r6-section-head>*{min-width:0!important;max-width:100%;box-sizing:border-box}
  .r6-toolbar,.r6-actions,.r6-history,.r6-risk-list,.r6-rates-head{min-width:0;max-width:100%;width:100%}
  .r6-toolbar .hero-btn,.r6-actions .hero-btn{min-width:0!important;max-width:100%;width:100%!important;white-space:normal!important;overflow-wrap:anywhere;text-align:center;padding-left:10px;padding-right:10px}
  .r6-section-head .r6-history-search{flex:1 1 100%;width:100%!important;min-width:0!important}
  .r6-history-item strong,.r6-history-item small,.r6-source-note,.r6-rates-head span,.r6-rates-head a,.r6-risk-title span{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
  .r6-risk-results{width:100%;min-width:0;max-width:100%}
  .r6-result-table-wrap{width:100%;min-width:0;max-width:100%;overflow-x:auto!important;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .r6-rates-panel{overflow:hidden}
  .r6-rates-table{min-width:0;max-width:100%}
  .r6-rate-card{width:100%;min-width:0;max-width:100%}
  .r6-field input,.r6-field select{min-width:0;max-width:100%}
}
@media(max-width:420px){
  .crm-content{padding-left:8px!important;padding-right:8px!important}
  .r6-section{padding:8px!important}
  .r6-shell{gap:10px}
  .r6-risk-results{grid-template-columns:minmax(0,1fr)}
  .r6-history-item .r6-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .r6-history-item .r6-actions .crm-small-btn{min-width:0;width:100%;white-space:normal;overflow-wrap:anywhere}
}

/* v14.86 — Rule №6 true narrow-container mobile layout.
   Use a container query because the calculator may be narrower than the viewport inside CRM. */
.r6-shell{container-type:inline-size;container-name:r6calc;overflow-x:clip}
@container r6calc (max-width:640px){
  .r6-section{min-width:0!important;max-width:100%!important;padding:10px!important;overflow:hidden}
  .r6-toolbar,.r6-grid,.r6-grid.r6-grid-3,.r6-result,.r6-risk,.r6-rates-table,.r6-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;max-width:100%!important;gap:8px!important}
  .r6-toolbar>*,.r6-grid>*,.r6-result>*,.r6-risk>*,.r6-actions>*,.r6-section-head>*,.r6-history-item>*{min-width:0!important;max-width:100%!important;box-sizing:border-box}
  .r6-toolbar .hero-btn,.r6-actions .hero-btn{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:40px!important;padding:9px 8px!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.25!important;text-align:center!important}
  .r6-section-head{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;gap:7px!important}
  .r6-section-head h3,.r6-source-note,.r6-field,.r6-risk-title,.r6-risk-title span,.r6-history-item strong,.r6-history-item small{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;word-break:normal!important}
  .r6-field input,.r6-field select,.r6-risk select,.r6-risk input[type=number]{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  .r6-risk-title{display:flex!important;flex-wrap:wrap!important;align-items:center!important}
  .r6-mode-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important}
  .r6-mode-pair label{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .r6-risk-results{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;max-width:100%!important}
  .r6-rates-panel,.r6-rate-card{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  .r6-rates-panel{padding:10px!important;overflow:hidden!important}
  .r6-rates-head{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;gap:8px!important}
  .r6-history-item{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;gap:8px!important}
  .r6-history-item .r6-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .r6-history-item .crm-small-btn{width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:7px 6px!important}
  .r6-result-table-wrap{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important}
  .r6-result-table{min-width:680px!important;width:680px!important;max-width:none!important}
}
@container r6calc (max-width:300px){
  .r6-section{padding:7px!important;border-radius:10px!important}
  .r6-toolbar .hero-btn,.r6-actions .hero-btn{font-size:11px!important;padding-left:5px!important;padding-right:5px!important}
  .r6-mode-pair{grid-template-columns:minmax(0,1fr)!important}
  .r6-history-item .r6-actions{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:900px){body.crm-page{overflow-x:hidden}.crm-app,.crm-main,.crm-content{max-width:100vw;min-width:0}}


/* v14.89 — Rule №6 mobile grid min-content fix.
   The result table is intentionally wider than a phone, but it must never enlarge
   the parent CSS grid track; only its own wrapper is horizontally scrollable. */
.r6-section{grid-template-columns:minmax(0,1fr)}
.r6-section>*{min-width:0;max-width:100%;box-sizing:border-box}
#r6Result{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;min-width:0;max-width:100%}
@media(max-width:900px){
  .r6-shell,.r6-section,#r6Result,.r6-actions,.r6-toolbar{width:100%;min-width:0;max-width:100%}
  .r6-actions{grid-template-columns:minmax(0,1fr)!important}
  .r6-actions .hero-btn{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
}

/* v14.97 registration PWA + Web Push gate */
.registration-device-setup{margin:16px 0;padding:16px;border:1px solid #cfe0e8;border-radius:16px;background:#f8fbfc;display:grid;gap:12px}
.registration-device-head h3{margin:2px 0 5px;color:#123c58;font-size:17px}.registration-device-head p{margin:0;color:#607b8b;font-size:12px;line-height:1.5}
.registration-device-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.registration-device-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #dce9ee;border-radius:12px;background:#fff}.registration-device-item>div{display:grid;gap:3px;min-width:0}.registration-device-item strong{font-size:13px;color:#173f59}.registration-device-item span{font-size:11px;color:#708694;overflow-wrap:anywhere}.registration-device-item.is-ready{border-color:#add9bb;background:#f3fbf5}.registration-device-item.is-ready span{color:#21653a}.registration-device-item.is-error{border-color:#efc0c6;background:#fff7f8}.registration-device-item.is-error span{color:#9b2432}.registration-device-item .secondary-btn{flex:0 0 auto;border:1px solid #bfd4df;background:#fff;color:#145177;border-radius:9px;padding:8px 10px;font-weight:800;cursor:pointer}.registration-device-item .secondary-btn:disabled{opacity:.5;cursor:not-allowed}.registration-device-message{min-height:18px;font-size:12px;color:#9b2432}
@media(max-width:620px){.registration-device-grid{grid-template-columns:1fr}.registration-device-item{align-items:flex-start}.registration-device-item .secondary-btn{align-self:center}}
