@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/archivo-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/archivo.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#20251f;background:#f6f7f3;font-synthesis:none;--ink:#20251f;--muted:#60695d;--line:#e3e7de;--paper:#fff;--lime:#d7fb49;--dark:#161a16;--green:#405f10;--radius:15px}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,select,input,textarea{font:inherit}
button,a,select,input,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #689418;outline-offset:3px}
a{color:inherit}
h1,h2,h3,p{margin:0}
svg{width:19px;height:19px;flex:0 0 auto}
.sidebar{position:fixed;inset:0 auto 0 0;width:242px;background:#161a16;color:#e8ebe5;display:flex;flex-direction:column;padding:28px 18px 16px;z-index:2}
.brand{display:flex;align-items:center;gap:12px;padding:0 8px 30px}
.brand small{display:block;color:#adb7a6;font-size:12px;margin-top:5px;letter-spacing:.2px}
.nav{display:grid;gap:5px}
.nav button{display:flex;gap:12px;align-items:center;text-align:left;width:100%;border:1px solid transparent;background:none;color:#bdc7b9;font-size:14px;font-weight:600;padding:12px 10px;border-radius:9px;white-space:nowrap}
.nav button:hover{background:#252b25;color:white}
.nav button[aria-current="page"]{background:#2a3422;color:var(--lime);border-color:#3b4a2b}
.sidebar-foot{border-top:1px solid #343b32;margin-top:auto;padding:16px 12px 2px;display:grid;gap:7px;min-width:0}
.gorex-logo{display:block;width:91px;height:auto}
.sidebar-foot small{display:block;color:#a6b0a1;font-size:12px;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.workspace{margin-left:242px}
.topbar{height:66px;background:#fff;border-bottom:1px solid var(--line);padding:0 33px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.crumb,.top-actions{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.crumb strong{color:var(--ink)}
.crumb svg{width:15px;height:15px}
.demo-switch{background:#f4f6ef;border:1px solid var(--line);border-radius:8px;padding:8px 11px;color:#3f493a;font-weight:650;font-size:12px}
.demo-chip{background:#edf6d6;color:#42571d;border:1px solid #dbe9bb;border-radius:20px;padding:5px 9px;font-weight:750;font-size:11px}
main{max-width:1660px;margin:auto;padding:27px 33px 34px}
.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:23px}
.hero h1{font-size:clamp(29px,3vw,42px);font-weight:830;letter-spacing:-1.55px;line-height:1.08}
.hero p{color:var(--muted);margin-top:8px;font-size:15px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 13px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-weight:680;font-size:13px;text-decoration:none;white-space:nowrap}
.button:hover{border-color:#9aa593;background:#f7f9f4}
.button.primary{background:var(--lime);border-color:#c9ed3d;color:#20280c}
.button.primary:hover{background:#c8ef32;border-color:#add512}
.button.icon-only{padding:7px;width:39px}
.button svg{width:17px;height:17px}
.deadline{background:#222b20;color:#fbfff7;border:1px solid #354031;border-radius:var(--radius);padding:15px 18px;display:flex;align-items:center;gap:14px;margin-bottom:16px}
.deadline-icon{background:#38452a;color:var(--lime);width:42px;height:42px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto}
.deadline strong{display:block;font-size:15px}
.deadline p{color:#c2cdbd;font-size:13px;margin-top:4px}
.countdown{margin-left:auto;display:flex;gap:6px}
.timepart{min-width:58px;text-align:center;padding:5px 8px;border:1px solid #485640;border-radius:8px;background:#2e392a}
.timepart b{display:block;color:var(--lime);font-variant-numeric:tabular-nums;font-size:18px;line-height:1.15}
.timepart small{color:#c5cfbf;font-size:10px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:21px}
.metric,.surface{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}
.metric{padding:14px 15px 13px;min-width:0}
.metric-head{display:flex;justify-content:space-between;align-items:center;gap:7px;color:#515a4e;font-size:13px;font-weight:650}
.metric-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#f0f3ed;color:#496043;flex:0 0 auto}
.metric-icon.lime{background:#eef6d7;color:#4d6719}
.metric-icon svg{width:17px;height:17px}
.metric strong{display:block;font-size:29px;line-height:1.06;font-weight:800;letter-spacing:-.7px;margin:7px 0 5px}
.metric small{font-size:12px;color:var(--muted)}
.surface{overflow:hidden}
.panel-heading{padding:16px 17px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.panel-heading h2{font-size:19px;letter-spacing:-.4px}
.panel-heading p{color:var(--muted);font-size:13px;margin-top:4px}
.filters{display:grid;grid-template-columns:minmax(170px,1.45fr) repeat(3,minmax(114px,1fr));gap:9px;padding:0 17px 14px}
.search{position:relative}
.search svg{position:absolute;left:10px;top:10px;color:#65705f;width:16px;height:16px;pointer-events:none}
.search input{padding-left:34px}
input,select,textarea{color:var(--ink);background:#fff;border:1px solid #dce2d7;border-radius:8px;min-height:39px;padding:8px 10px;width:100%;font-size:14px}
input::placeholder,textarea::placeholder{color:#697368}
select{appearance:none;padding-right:29px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23545e4f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center}
textarea{resize:vertical;min-height:98px}
.table-scroll{overflow-x:auto}
table{border-collapse:collapse;width:100%;text-align:left;font-size:13px;white-space:nowrap}
thead{background:#f4f6f1;color:#525d50}
th{font-weight:700;padding:10px 12px}
td{border-top:1px solid #edf0e9;padding:11px 12px}
th:first-child,td:first-child{padding-left:17px}
th:last-child,td:last-child{padding-right:17px}
tr[data-order]{cursor:pointer}
tr[data-order]:hover td{background:#f8faf4}
.partner-name{font-weight:740;font-size:14px}
.subtext{color:var(--muted);display:block;font-size:12px;margin-top:3px}
.model-tag{display:inline-block;padding:3px 6px;border-radius:5px;background:#f0f2ed;font-weight:650;color:#424b40;font-size:11px;margin:1px 4px 1px 0}
.pill{display:inline-flex;align-items:center;gap:5px;border-radius:100px;padding:4px 8px;background:#ebefe9;color:#495645;font-weight:700;font-size:11px;white-space:nowrap}
.pill.open{background:#e8f5d1;color:#3d5f13}
.pill svg{width:12px;height:12px}
.text-button{display:inline-flex;align-items:center;gap:5px;background:none;border:0;color:#476418;font-size:13px;font-weight:750;padding:5px}
.text-button:hover{text-decoration:underline}
.table-foot{font-size:12px;color:var(--muted);padding:11px 17px;border-top:1px solid var(--line)}
.empty{text-align:center;padding:30px 17px;color:var(--muted);white-space:normal}
.empty strong{display:block;color:var(--ink);margin-bottom:6px;font-size:15px}
.secondary-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:15px;margin-top:16px}
.mini-content{padding:0 17px 15px}
.mini-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line);font-size:13px}
.mini-row:first-child{border-top:0}
.progress-track{height:7px;background:#edf0e9;border-radius:20px;overflow:hidden;margin:8px 0}
.progress-track span{display:block;background:#94c71b;height:100%;border-radius:20px}
.delivery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.delivery-card{padding:16px}
.delivery-card h2{font-size:18px}
.delivery-card .big{font-size:29px;font-weight:800;display:block;margin:6px 0}
.delivery-card .split{color:var(--muted);font-size:13px;padding-bottom:12px}
.form-pad{padding:0 17px 17px}
.field{display:grid;gap:6px;margin-bottom:13px}
.field label,.label{font-size:13px;font-weight:750}
.field small,.hint{color:var(--muted);font-size:13px;line-height:1.5}
.inline-field{display:flex;align-items:end;gap:10px}
.inline-field .field{margin:0}
.check{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.check input{accent-color:#7fa112;width:17px;height:17px;min-height:0;margin:2px 0 0;flex:0 0 auto}
.agenda-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px}
.agenda-form{display:contents}
.agenda-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px}
.notice{padding:11px 13px;margin-bottom:15px;border:1px solid #dce8c1;background:#f1f7e3;border-radius:9px;font-size:14px;color:#394c23}
.error{padding:10px 12px;color:#862e20;background:#fff1ee;border:1px solid #f3d2c8;border-radius:8px;margin:9px 0}
.loading{padding:25px;color:var(--muted)}
.error-page{padding:25px}
.error-page .button{margin-top:12px}
dialog{border:1px solid #dce2d7;border-radius:17px;padding:0;max-width:min(640px,calc(100vw - 22px));width:100%;max-height:calc(100dvh - 28px);box-shadow:0 25px 90px #141d1570;color:var(--ink)}
dialog::backdrop{background:#11181080}
.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 21px 15px;border-bottom:1px solid var(--line)}
.dialog-head h2{font-size:23px;letter-spacing:-.5px}
.dialog-head p{margin-top:4px;color:var(--muted);font-size:13px}
.dialog-body{padding:18px 21px}
.dialog-foot{padding:13px 21px;background:#f6f8f3;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}
.detail-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}
.detail-meta div{padding:9px;background:#f3f5ee;border-radius:8px;font-size:13px}
.detail-meta b{display:block;margin-top:4px}
.detail-meta span{color:var(--muted)}
.detail-section{margin:16px 0 6px;font-size:15px}
.history{list-style:none;margin:0;padding:0}
.history li{border-top:1px solid var(--line);padding:8px 0;font-size:13px;overflow-wrap:anywhere}
.history li small{display:block;color:var(--muted);margin-top:3px}
.form-line{display:grid;grid-template-columns:1fr 100px 39px;align-items:end;gap:8px;margin:7px 0}
.form-line input,.form-line select{min-width:0}
.lines-head{display:grid;grid-template-columns:1fr 147px;gap:8px;font-size:13px;font-weight:750}
.detail-notes{white-space:pre-wrap;overflow-wrap:anywhere}
.toast{position:fixed;right:20px;bottom:20px;z-index:5;display:none;padding:12px 16px;background:#252f22;color:white;border-radius:10px;box-shadow:0 5px 20px #0003;font-size:14px;max-width:calc(100% - 40px)}
.toast.show{display:block}
@media(max-width:1060px){.sidebar{width:200px;padding-inline:12px}.workspace{margin-left:200px}.topbar,main{padding-inline:21px}.metric{padding:11px}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.sidebar{position:static;width:auto;padding:12px 12px 8px}.brand{padding:0 1px 9px}.brand small{display:none}.sidebar-foot{display:none}.nav{display:flex;gap:4px;overflow-x:auto}.nav button{width:auto;gap:6px;padding:8px;font-size:12px}.nav button svg{width:15px;height:15px}.workspace{margin-left:0}.topbar{height:48px}.topbar,main{padding-inline:13px}main{padding-top:18px}.hero{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:14px}.hero p{font-size:14px}.deadline{flex-wrap:wrap}.countdown{margin-left:0}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.secondary-grid,.agenda-layout{grid-template-columns:1fr;gap:9px}.delivery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:425px){.crumb span,.crumb svg{display:none}.panel-heading{align-items:flex-start}.panel-heading .button{font-size:12px}.metric-head{font-size:12px}.metric small{font-size:11px}.deadline p{font-size:12px}.delivery-grid{grid-template-columns:1fr}.detail-meta{grid-template-columns:1fr}.form-line{grid-template-columns:1fr 73px 39px}.lines-head{grid-template-columns:1fr 120px}}
.price-head,.price-line{grid-template-columns:minmax(0,1fr) 70px minmax(166px,auto) 39px;align-items:start}
.price-head{padding:3px 0 2px}
.price-line{border-bottom:1px solid var(--line);padding:5px 0 9px}
.variant-control{min-width:0;display:grid;gap:4px}
.variant-control small,.line-prices small{color:var(--muted);font-size:11px}
.variant-control small:empty{display:none}
.line-prices{display:flex;justify-content:space-between;gap:11px;padding:1px 2px}
.line-prices div{display:grid;gap:2px}
.line-prices b,.order-total output{white-space:nowrap;font-variant-numeric:tabular-nums}
.line-prices b{font-size:13px}
.order-total{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#edf4df;border:1px solid #dce8c1;border-radius:9px;padding:11px 13px;margin:12px 0 16px}
.order-total output{font-size:19px;font-weight:800}
.price-detail td:not(:first-child),.price-detail th:not(:first-child){text-align:right}
.price-detail tfoot{background:#f4f6f1}
@media(max-width:560px){
  .price-head,.price-line{grid-template-columns:minmax(0,1fr) 63px 39px}
  .price-head span:last-child{display:none}
  .price-line .line-prices{grid-column:1 / 3;grid-row:2;justify-content:flex-start;gap:18px}
  .price-line button{grid-column:3;grid-row:1}
}
.export-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}

:root{
  --ink:#152132;--muted:#546276;--line:#dfe5ee;--paper:#fff;--blue:#557bb2;
  --panel-bg:#0d1119;--blue-dark:#385e92;--blue-soft:#eaf1fb;--dark:#10141c;--radius:16px;
  font-family:Archivo,"Segoe UI",system-ui,sans-serif;color:var(--ink);background:#f1f4f8;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#557bb2}
.sidebar{background:var(--panel-bg);color:#e9eff8;border-right:1px solid #272f3d;padding:27px 16px 19px}
.brand{padding:10px 12px 31px;display:block}
.brand-logo{width:174px;height:auto;display:block}
.brand small{margin-top:9px;color:#a8b6c8;font-size:13px}
.nav{gap:6px}
.nav button{color:#bdc8d8;border-radius:10px;padding:12px 11px;font-size:14px}
.nav button:hover{background:#1a2637;color:#fff}
.nav button[aria-current="page"]{background:#233650;color:#f0f6ff;border-color:#405e83}
.nav button[aria-current="page"] svg{color:#a9c6f3}
.sidebar-foot{border-color:#2b3544;color:#f0f4fb}
.sidebar-foot small{color:#a8b6c8}
.topbar{height:62px;background:#fff}
.demo-chip{background:#edf3fd;border-color:#d9e5f7;color:#314f78;text-transform:none;font-size:12px;padding:7px 11px}
main{padding-top:25px}
.hero{
  padding:24px 25px;min-height:138px;border-radius:17px;align-items:center;
  background:var(--panel-bg);color:#fff;border:1px solid #272f3d;
}
.hero h1{font-size:clamp(30px,3.1vw,47px);font-weight:800;letter-spacing:-1.3px}
.hero p{color:#d5e0ef;font-size:15px;margin-top:8px}
.button{border-color:#dce4ef;border-radius:9px;min-height:41px}
.button:hover{background:#f0f5fc;border-color:#9baec9}
.button.primary{background:#3b639a;border-color:#3b639a;color:#fff}
.button.primary:hover{background:#315583;border-color:#315583}
.hero .button.primary{background:#4770aa;border-color:#7fa2d2;min-height:43px}
.hero .button.primary:hover{background:#3b6094;border-color:#b4cae8}
.deadline{background:#e7effa;border-color:#d4e2f4;color:#203958;margin-bottom:16px}
.deadline-icon{background:#d5e3f7;color:#315982}
.deadline p{color:#425b7b}
.timepart{background:#f7faff;border-color:#d0def1;color:#274467}
.timepart b{color:#294c79}
.timepart small{color:#4c6685}
.metric,.surface{border-color:#dfe6ef;box-shadow:0 2px 5px #16274307}
.metric{padding:14px 15px}
.metric-head{color:#45566e}
.metric-icon,.metric-icon.lime{background:#eaf1fb;color:#3b5e89}
.metric small{color:var(--muted)}
input,select,textarea{border-color:#dce4ef;min-height:41px}
input::placeholder,textarea::placeholder{color:#66768b}
thead{background:#f1f5fa;color:#3e536e}
td{border-color:#e8edf5}
tr[data-order]:hover td{background:#eff5fd}
.model-tag{background:#eaf0f9;color:#314f75}
.pill{background:#e9edf3;color:#40516a}
.pill.open{background:#e4effc;color:#264f82}
.text-button{color:#315987}
.progress-track{background:#e7edf6}
.progress-track span{background:#557bb2}
.check input{accent-color:#3b639a}
.notice{background:#eaf1fb;border-color:#d7e3f5;color:#334f73}
.loading,.error-page{background:#fff}
dialog{max-width:min(730px,calc(100vw - 22px));border-color:#d6e0ed;border-radius:18px;box-shadow:0 25px 85px #111b306b}
dialog::backdrop{background:#0c132681}
.dialog-head{background:#111a29;color:#fff;border-color:#29384c}
.dialog-head p{color:#c4d2e7}
.dialog-head .button{background:#25344a;color:#f4f7fd;border-color:#435775}
.dialog-head .button:hover{background:#344b69}
.dialog-head h2{font-size:25px;font-weight:800}
.dialog-foot{background:#f3f6fb}
.detail-meta div{background:#edf2fa}
.price-line{border-radius:12px;background:#f6f8fc;border:1px solid #e2e8f2;padding:9px}
.price-head{padding:3px 9px 2px}
.price-detail tfoot{background:#edf2fa}
.order-total{background:#e5eefb;border-color:#d2e0f5;color:#23446f}
.variant-meta{display:flex;align-items:center;gap:6px}
.color-swatch{width:12px;height:12px;border-radius:50%;border:1px solid #8297b1;background:#4c6eae}
.color-swatch[data-color="bílá"]{background:#fff}
.color-swatch[data-color="černá"]{background:#13161d}
.color-swatch[data-color="červená"]{background:#d5293e}
.color-swatch[data-color="bílá/modrá/červená"]{background:conic-gradient(#fff 33%,#456aa7 33% 66%,#d5293e 66%)}
.toast{background:#172944}
@media(max-width:1060px){.sidebar{padding-inline:10px}.brand-logo{width:148px}.hero h1{font-size:clamp(29px,4vw,40px)}}
@media(max-width:750px){
  .sidebar{padding:12px 12px 8px;border:0}.brand{padding:2px 2px 12px}.brand-logo{width:132px}.brand small{display:none}
  .nav button{padding:8px;min-height:38px}.topbar{height:49px}.hero{padding:18px;align-items:flex-start;min-height:0}
  .hero .button.primary{min-height:39px}
}
#rows td:nth-child(3){white-space:normal}
#rows td:nth-child(3) .model-tag{white-space:nowrap}
[hidden]{display:none!important}
.demo-switch{background:#f1f5fc;border-color:#dce4ef;color:#314f78}

.auth-page{background:radial-gradient(ellipse at 82% 8%,#2d4b75,#101827 57%,#0b1018);color:#edf4ff}
.auth-layout{min-height:100dvh;display:grid;grid-template-rows:auto 1fr auto;align-items:center;justify-items:center;padding:32px 18px 24px}
.auth-brand{display:grid;justify-items:center;gap:8px;color:#c2d0e4;font-size:14px}
.auth-brand img{display:block;width:190px;height:auto}
.auth-card{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:0 20px 70px #05080e5e;width:min(100%,450px);border-radius:18px;padding:27px 29px;margin:22px 0}
.auth-card h1{font-size:clamp(24px,5vw,29px);line-height:1.15;letter-spacing:-.5px;margin:0 0 8px}
.auth-card>p{color:var(--muted);line-height:1.44;margin-bottom:17px}
.auth-card .field label{font-size:14px}
.auth-card .hint{margin:10px 0}
.auth-card .auth-submit{width:100%;margin-top:9px;white-space:normal;min-height:44px}
.auth-links{display:flex;justify-content:space-between;gap:10px;margin-top:14px;font-size:14px;color:#315987}
.auth-footer img{display:block;width:97px;height:auto}
.auth-logout{margin-top:13px}
.invite-url{min-height:85px;overflow-wrap:anywhere;font-size:13px}
@media(max-width:550px){.auth-card{padding:21px}.top-actions .demo-chip{display:none}.nav{max-width:calc(100vw - 24px)}}

.dialog-foot{flex-wrap:wrap}
.dialog-foot .danger-outline{margin-right:auto;color:#9f272b;background:#fff;border-color:#eccacf}
.dialog-foot .danger-outline:hover{background:#fff2f2;border-color:#cb8589}

.service-search{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap}
.service-search .field{width:min(100%,320px)}
.service-pagination{display:flex;align-items:center;gap:10px}
.service-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px;margin:0}
.service-detail dt{font-weight:700}
.service-detail dd{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}

.address-actions,.address-filters{display:flex;gap:9px;align-items:flex-end;flex-wrap:wrap}
.address-filters .field{width:min(100%,280px)}
.address-fields{margin-bottom:16px}
.address-fields textarea{min-height:65px}
.address-account{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.address-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
.address-table .address-phone{white-space:nowrap}
.address-row-actions{display:flex;flex-wrap:wrap}
.address-row-actions .text-button{white-space:nowrap}
.address-country-short{display:none;text-decoration:none}
@media(max-width:1100px){
  .address-country-full{display:none}
  .address-country-short{display:inline}
}

dialog:has(#address-edit-form){max-width:min(1080px,calc(100vw - 22px));overflow:hidden}
#address-edit-form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 30px)}
#address-edit-form>.dialog-body{overflow:auto;overscroll-behavior:contain}
#address-edit-form .address-tabs{position:sticky;top:0;z-index:1}
.address-card-section{margin-bottom:14px;padding:14px 16px;border:1px solid var(--line);border-radius:11px}
.address-card-section:last-child{margin-bottom:0}
.address-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.address-section-heading h3,.address-people-section h3{font-size:16px;margin:0}
.address-people-section h3{margin-bottom:10px}
.address-card-section .address-fields{align-items:start;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,195px),1fr))}
.address-card-section .field{align-content:start;grid-auto-rows:max-content;min-width:0;margin:0}
.address-card-section .field>input:not([type="hidden"]),.address-card-section .field>select,
.address-card-section .address-group-picker>summary{height:40px}
.address-card-section .address-group-picker>summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:22px}
.address-card-section .address-lookup-action{margin:10px 0 0}
.address-registry-status:not(:empty){margin-top:8px}
@media(max-width:560px){
  .address-card-section{padding:11px}
  #address-edit-form>.dialog-body{padding:12px}
  #address-edit-form>.dialog-foot{padding:9px 12px}
}
.address-lookup-action{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.address-lookup-action .hint{font-size:13px}
.address-tabs{display:flex;gap:6px;padding:5px;background:#edf2f9;border-radius:11px;margin-bottom:18px}
.address-tabs button{border:1px solid transparent;border-radius:8px;padding:8px 16px;background:transparent;color:var(--ink);font-weight:650}
.address-tabs button[aria-selected="true"]{background:#fff;border-color:var(--line);color:#294e80}
.address-group-picker{border:1px solid var(--line);border-radius:8px;background:white}
.address-group-picker summary{padding:8px 10px;cursor:pointer;overflow-wrap:anywhere}
#address-group-choices{max-height:210px;overflow:auto;padding:0 10px 6px}
.address-group-picker .check{padding:5px 0}
.address-list-editor{margin-top:5px}
.address-list-editor summary{cursor:pointer;font-size:13px;color:#315987}
.address-list-editor .address-lookup-action{margin:7px 0 0}
.address-list-editor input{flex:1;min-width:110px}
.address-people{list-style:none;margin:0 0 12px;padding:0}
.address-people li{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--line)}
.address-people li>div{flex:1 0 180px}
.address-card-section .field:has(>textarea){grid-column:1/-1}
.company-choice{padding:20px}
.company-choice h2{font-size:17px;margin-bottom:14px}
.company-switch{display:flex;align-items:center;gap:6px}
.company-switch select{width:auto;max-width:230px}
.active-company{font-weight:650}
@media(max-width:600px){
  .company-switch span{display:none}
  .company-switch select{max-width:150px}
}
