/* Hallmark · shape: workbench shell · genre: modern-minimal · theme: custom · job: calculate · copy: verbatim · idea: "Minh bạch hóa đơn phòng trọ theo định mức điện 4 người/hộ và phiếu thu Zalo rõ ràng" · vibe: "crisp editorial white, midnight navy ink, tabular numbers, tactile hairlines" · paper: var(--n-surface, #ffffff) · accent: var(--n-brand, #1d5bd6) · display: var(--n-font-sans, Prompt) · body: var(--n-font-sans, Prompt) · hero: interactive workbench · v9.0.0 */

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-presets__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--n-ink-muted);
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-chip {
  min-height: 38px;
  padding: 0.4rem 0.875rem;
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius-pill, 9999px);
  background: var(--n-surface);
  color: var(--n-ink);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-chip:hover,
[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-chip.is-active {
  border-color: var(--n-brand);
  color: var(--n-brand);
  background: var(--n-brand-subtle);
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-chip:focus-visible,
[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-cell-input:focus-visible,
[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-del-btn:focus-visible {
  outline: 2px solid var(--n-brand);
  outline-offset: 2px;
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-notice {
  padding: 0.875rem 1rem;
  border-radius: var(--n-radius-md);
  border: 1px solid var(--n-border);
  background: var(--n-surface-subtle);
  color: var(--n-ink);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-notice.is-warn {
  border-color: var(--n-down-subtle);
  background: var(--n-down-subtle);
  color: var(--n-down);
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-zalo-preview {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius-md);
  background: var(--n-surface-subtle);
  color: var(--n-ink);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-row3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-row4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-cell-input {
  width: 5.25rem;
  min-height: 40px;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius-sm);
  background: var(--n-surface);
  color: var(--n-ink);
  font-family: inherit;
  font-size: 0.875rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-cell-input.is-text {
  width: 7.5rem;
  text-align: left;
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-total-col {
  font-weight: 700;
  color: var(--n-brand);
  font-variant-numeric: tabular-nums;
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-del-btn {
  min-height: 38px;
  min-width: 44px;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--n-border);
  border-radius: var(--n-radius-sm);
  background: var(--n-surface);
  color: var(--n-down);
  font-family: inherit;
  font-size: 0.8125rem;
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 140ms ease;
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-del-btn:hover {
  background: var(--n-down-subtle);
}

[data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-split-actions {
  margin-bottom: 0.75rem;
}

@media (max-width: 820px) {
  [data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-row3,
  [data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-row4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  [data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-row3,
  [data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-row4 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-tool="tinh-hoa-don-phong-tro-dinh-muc-dien"] .n1a-rent-chip {
    transition: none;
  }
}
