.asc-widget{
  --asc-blue:#0E7CCB;
  --asc-blue-dark:#0A4D81;
  --asc-bg:#F4F7FB;
  --asc-card:#FFFFFF;
  --asc-text:#18233B;
  --asc-muted:#6B7C98;
  --asc-line:#C9D6E3;
  --asc-soft:#F2F7FC;
  --asc-radius:6px;
  --asc-shadow:0 10px 24px rgba(15,23,42,.06);
  font-family:Arial, Helvetica, sans-serif;
  color:var(--asc-text);
}

.asc-widget *{box-sizing:border-box}

.asc-widget{
  background:var(--asc-bg);
  padding:14px;
  border-radius:var(--asc-radius);
}

.asc-shell{
  max-width:1400px;
  margin:0 auto;
}

.asc-title{
  text-align:center;
  font-size:31px;
  line-height:1.15;
  font-weight:700;
  margin:0 0 18px;
  color:#16223D;
}

.asc-models{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}

.asc-model-card{
  border:1px solid var(--asc-line);
  background:#fff;
  border-radius:var(--asc-radius);
  padding:12px;
  min-height:100px;
  cursor:pointer;
  transition:.18s ease;
  box-shadow:0 5px 14px rgba(15,23,42,.04);
}

.asc-model-card:hover{
  transform:translateY(-1px);
  border-color:#9ecaf0;
}

.asc-model-card.active{
  border-color:var(--asc-blue);
  background:linear-gradient(180deg,rgba(14,124,203,.06),rgba(14,124,203,.015));
}

.asc-model-row{
  display:grid;
  grid-template-columns:62px 1fr auto;
  grid-template-rows:auto auto;
  grid-template-areas:
    "thumb name name"
    "thumb . toggle";
  column-gap:12px;
  row-gap:8px;
  align-items:center;
  min-width:0;
}

.asc-model-thumb{
  grid-area:thumb;
  width:62px;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:8px;
  background:#f8fafc;
}

.asc-model-thumb img{
  display:block;
  max-width:100%;
  max-height:66px;
  width:auto;
  height:auto;
  object-fit:contain;
}

.asc-model-info{
  display:contents;
}

.asc-model-name{
  grid-area:name;
  font-size:13px;
  font-weight:700;
  color:#20324D;
  line-height:1.15;
  white-space:normal;
  overflow:visible;
  text-overflow:unset;
  word-break:break-word;
  min-height:30px;
  align-self:start;
  margin-top:5px;
}

.asc-model-toggle{
  grid-area:toggle;
  width:38px;
  height:20px;
  border-radius:999px;
  background:#d8e2ec;
  position:relative;
  transition:.18s ease;
  justify-self:start;
  align-self:start;
  margin-top:0;
  margin-left:8px;
}

.asc-model-toggle:after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(15,23,42,.14);
  transition:.18s ease;
}

.asc-model-card.active .asc-model-toggle{
  background:var(--asc-blue);
}

.asc-model-card.active .asc-model-toggle:after{
  transform:translateX(18px);
}

.asc-filters{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:end;
  margin-bottom:10px;
}

.asc-field-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--asc-muted);
  font-weight:700;
  margin:0 0 6px;
}

.asc-input,
.asc-btn{
  width:100%;
  height:42px;
  border-radius:var(--asc-radius);
  border:1px solid var(--asc-line);
  background:#fff;
  padding:0 11px;
  font-size:14px;
  outline:none;
  color:var(--asc-text);
  font-family:Arial, Helvetica, sans-serif;
}

.asc-input:focus{
  border-color:rgba(14,124,203,.45);
  box-shadow:0 0 0 4px rgba(14,124,203,.08);
}

.asc-btn{
  width:auto;
  min-width:120px;
  cursor:pointer;
  font-weight:700;
  transition:.18s ease;
}

.asc-btn:hover{
  background:#f8fafc;
}

.asc-status-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
}

.asc-status-box{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:var(--asc-radius);
  padding:8px 12px;
  font-size:12px;
  font-weight:700;
  line-height:1;
  border:1px solid var(--asc-line);
  background:#fff;
  color:#475569;
}

.asc-status-box.model{
  background:rgba(14,124,203,.10);
  border-color:transparent;
  color:var(--asc-blue-dark);
}

.asc-status-box.region{
  background:#eef4fa;
  color:#3f5878;
  border-color:transparent;
}

.asc-status-box.error{
  background:#fff3f3;
  color:#8d1f1f;
  border-color:#efb1b1;
}

.asc-table-wrap{
  background:#fff;
  border:1px solid var(--asc-line);
  border-radius:var(--asc-radius);
  overflow:hidden;
  box-shadow:var(--asc-shadow);
}

.asc-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

.asc-table thead th{
  background:#f8fafc;
  color:#597397;
  font-size:13px;
  font-weight:700;
  text-align:left;
  padding:11px 12px;
  border-bottom:1px solid #cfd9e4;
}

.asc-table tbody td{
  padding:11px 12px;
  vertical-align:top;
  font-size:13px;
  line-height:1.35;
  border-bottom:0;
}

.asc-row-main td{
  background:#fff;
}

.asc-row-models td{
  background:var(--asc-soft);
  padding-top:7px;
  padding-bottom:8px;
  border-bottom:2px solid #d7e2ed;
}

.asc-row-org{
  font-weight:700;
  font-size:14px;
  line-height:1.25;
  color:#16223D;
  word-break:break-word;
}

.asc-phone{
  display:flex;
  align-items:flex-start;
  gap:7px;
  line-height:1.4;
  margin-bottom:4px;
}

.asc-phone:last-child{margin-bottom:0}

.asc-phone-icon{
  color:#94a3b8;
  flex:0 0 auto;
}

.asc-models-right{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.asc-badge{
  display:inline-flex;
  align-items:center;
  border-radius:var(--asc-radius);
  padding:6px 9px;
  background:rgba(14,124,203,.10);
  color:var(--asc-blue-dark);
  font-size:12px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}

.asc-empty{
  padding:24px;
  text-align:center;
  color:var(--asc-muted);
  font-weight:700;
}

.asc-cards{
  display:none;
  gap:12px;
  padding:12px;
}

.asc-card{
  border:1px solid var(--asc-line);
  border-radius:var(--asc-radius);
  background:#fff;
  overflow:hidden;
}

.asc-card-top{
  padding:14px;
}

.asc-card-org{
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  margin-bottom:4px;
  color:#16223D;
}

.asc-card-sub{
  color:var(--asc-muted);
  font-size:13px;
  font-weight:700;
  margin-bottom:10px;
}

.asc-card-address{
  font-size:13px;
  line-height:1.45;
  margin-bottom:10px;
}

.asc-card-models{
  background:var(--asc-soft);
  padding:12px 14px;
  border-top:1px solid #e6eef6;
}

.asc-card-models .asc-models-right{
  justify-content:flex-start;
}

@media (max-width:1360px){
  .asc-models{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media (max-width:1100px){
  .asc-models{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:980px){
  .asc-title{font-size:26px}
  .asc-models{grid-template-columns:repeat(2,minmax(0,1fr))}
  .asc-filters{grid-template-columns:1fr}
  .asc-btn{width:100%}
  .asc-table{display:none}
  .asc-cards{display:grid}
}

@media (max-width:560px){
  .asc-widget{padding:12px}
  .asc-title{font-size:22px}
  .asc-models{grid-template-columns:1fr}
}