/* Each business dictionary is a glass workspace with its own bounded scroll area. */
.customer-attributes-workspace { container-type:inline-size; display:flex; flex-direction:column; flex:1; min-width:0; min-height:0; padding:0; border:0; background:transparent; }
.customer-attributes-workspace .attribute-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:minmax(0,1fr); flex:1; min-height:0; gap:14px; }
.customer-attributes-workspace > .attribute-groups > .attribute-group { display:flex; flex-direction:column; min-width:0; min-height:0; padding:14px; border:1px solid var(--workspace-border,var(--glass-border,var(--line))); border-radius:var(--workspace-radius,18px); background:var(--workspace-surface,var(--paper)); box-shadow:var(--workspace-shadow,var(--shadow-sm)); -webkit-backdrop-filter:var(--workspace-blur,none); backdrop-filter:var(--workspace-blur,none); }
.customer-attributes-workspace .attribute-head { display:flex; align-items:center; justify-content:space-between; flex:none; gap:12px; padding:0 0 14px; }
.customer-attributes-workspace .attribute-head > div { min-width:0; }
.customer-attributes-workspace .attribute-head h3 { margin:0; font-size:16px; color:var(--ink); }
.customer-attributes-workspace .attribute-head p { margin:4px 0 0; font-size:12px; line-height:1.5; color:var(--ink-2); }
.customer-attributes-workspace .attribute-new { flex:none; white-space:nowrap; }
.customer-attributes-workspace :is(.input,.btn) { height:34px; min-height:34px; font-size:14px; }
.customer-attributes-workspace .table-wrap { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; border:1px solid var(--line); border-radius:10px; }
.customer-attributes-workspace .attribute-table { width:100%; min-width:420px; border:0; }
.customer-attributes-workspace .attribute-group .attribute-table thead th { position:sticky; top:0; z-index:1; background:var(--workspace-solid,var(--paper)); color:var(--ink-2); font-size:12px; }
.customer-attributes-workspace .attribute-table :is(th,td) { padding:9px 10px; border-bottom:1px solid var(--line); }
.customer-attributes-workspace .attribute-table tr:last-child td { border-bottom:0; }
.customer-attributes-workspace .attribute-table th:first-child { width:40%; }
.customer-attributes-workspace .attribute-table th:nth-child(2) { width:18%; }
.customer-attributes-workspace .attribute-table tbody tr:nth-child(even) { background:color-mix(in srgb,var(--paper) 18%,transparent); }
.customer-attributes-workspace .attr-name { width:100%; min-width:90px; }
.attribute-name-cell { display:flex;flex-wrap:wrap;align-items:center;gap:6px; }
.attribute-name-cell .attr-name { flex:1 1 105px; }
.attribute-icon-picker { display:flex;align-items:center;gap:6px;min-width:0; }
.attribute-name-cell .attribute-icon-picker { flex:1 1 114px;max-width:100%; }
.attribute-icon-preview { display:inline-flex;flex:none;align-items:center;justify-content:center;width:26px;color:var(--accent,var(--brand)); }
.attribute-icon-picker .attr-icon { min-width:0;width:100%;height:34px;min-height:34px; }
.customer-workspace-panel .customer-top-actions.attribute-template-action {
  width:auto;
  margin-left:auto;
  justify-content:flex-end;
}
.attribute-template-action .btn { white-space:nowrap; }
.modal.industry-template-modal { width:min(540px,100%); }
.industry-template-modal .modal-head { margin-bottom:16px; }
.industry-template-choices {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
}
.industry-template-choice { position:relative; min-width:0; }
.industry-template-choice input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer;
}
.industry-template-face {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:52px;
  padding:8px 5px;
  border:1px solid var(--line-2,var(--line));
  border-radius:11px;
  background:var(--surface,var(--paper));
  color:var(--ink-2);
  font-size:13px;
  font-weight:650;
  white-space:nowrap;
}
.industry-template-face svg { flex:none; }
.industry-template-choice input:not(:disabled):hover + .industry-template-face { border-color:var(--accent); }
.industry-template-choice input:checked + .industry-template-face {
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--accent);
}
.industry-template-choice input:focus-visible + .industry-template-face { outline:2px solid var(--accent); outline-offset:2px; }
.industry-template-choice input:disabled { cursor:default; }
.industry-template-preview {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}
.industry-template-category {
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:color-mix(in srgb,var(--accent-soft) 42%,var(--surface,var(--paper)));
}
.industry-template-category h3 { margin:0 0 9px; color:var(--ink); font-size:13px; }
.industry-template-category ul { display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; list-style:none; }
.industry-template-category li {
  padding:3px 7px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--workspace-solid,var(--paper));
  color:var(--ink-2);
  font-size:12px;
  line-height:1.5;
}
.industry-template-modal .modal-actions { margin-top:14px; background:transparent; }
.industry-template-modal .error-text:empty { display:none; }
.industry-template-modal button[type="submit"] { min-width:104px; }
@media(max-width:500px) {
  .industry-template-face { flex-direction:column; gap:5px; }
  .industry-template-preview { grid-template-columns:1fr; gap:8px; }
}
@media(max-width:540px) {
  .customer-workspace-panel:has(.attribute-template-action) .customer-content-topline { gap:6px; }
  .customer-workspace-panel:has(.attribute-template-action) .store-tabs { gap:2px; }
  .customer-workspace-panel:has(.attribute-template-action) .store-tab { padding-inline:4px; font-size:11px; }
  .attribute-template-action .btn { padding-inline:8px; }
  .attribute-template-action .ico { display:none; }
}
.customer-attributes-workspace .attr-count { color:var(--ink); font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.customer-attributes-workspace .attribute-table td small { display:block; font-size:12px; color:var(--ink-2); white-space:nowrap; }
.customer-attributes-workspace .attr-actions { display:flex; flex-wrap:wrap; gap:6px; }
.customer-attributes-workspace .attr-actions .btn { padding-inline:8px; font-size:12px; white-space:nowrap; }
.customer-attributes-workspace .attribute-feedback { display:flex; align-items:center; flex-wrap:wrap; gap:8px; flex:none; }
.customer-attributes-workspace .error-text:empty { display:none; }
.customer-attributes-workspace .error-text { margin:8px 0 0; }
.attribute-create-modal { width:min(400px,100%); padding:20px; }
.attribute-create-modal .modal-head { margin-bottom:18px; }
.attribute-create-modal .field { display:flex; flex-direction:column; gap:8px; }
.attribute-create-modal .field > span { color:var(--ink-2); font-size:13px; }
.attribute-create-modal .input { width:100%; }
.attribute-create-modal .error-text { margin:10px 0 0; }
.attribute-create-modal .error-text:empty { display:none; }
.attribute-create-modal .modal-actions { margin-top:18px; padding-top:14px; }
html[data-theme="dark"] .attribute-create-modal .modal-actions { background:transparent; }
.attribute-create-modal [data-confirm-attr-add] { min-width:100px; }
@media(min-width:761px) {
  .main:has(> #view > .customer-attributes-page) { height:100dvh; min-height:100dvh; grid-template-rows:var(--topbar-h) auto minmax(0,1fr); align-content:stretch; padding-bottom:14px; }
  .customer-attributes-page #stores-content { display:flex; min-height:0; }
}
@container(max-width:760px) {
  .customer-attributes-workspace .attribute-groups { grid-template-columns:minmax(0,1fr); grid-template-rows:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .customer-attributes-workspace .attribute-groups { display:flex; flex-direction:column; }
  .customer-attributes-workspace > .attribute-groups > .attribute-group { flex:none; padding:12px; }
  .customer-attributes-workspace .table-wrap { max-height:400px; }
}
