/* ═══════════════════════════════════════════════════════════════════════════
   EONTRA Admin - Domain Management Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tab Navigation */
.domain-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.domain-tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.domain-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.domain-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.domain-tab-content {
  display: none;
}

.domain-tab-content.active {
  display: block;
}

/* Search Section */
.domain-search-section {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.domain-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.domain-search-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.domain-search-form {
  display: flex;
  gap: 12px;
}

.domain-search-form .form-input {
  flex: 1;
  max-width: 400px;
  font-size: 1rem;
  padding: 12px 16px;
}

/* BYO Section */
.byo-section {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
}

.byo-section h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
}

.byo-section p {
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  font-size: 0.9rem;
}

.byo-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
}

.byo-form .form-input {
  flex: 1;
}

/* Pricing chips */
.pricing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-chip {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Search Results */
#domainSearchResults {
  margin-top: 20px;
  display: none;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.search-result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.search-result-card.available {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
}

.search-result-card.available:hover {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.search-result-card.taken {
  opacity: 0.6;
}

.premium-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 8px;
}

.popular-badge {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 8px;
}

.search-result-domain {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.search-result-domain .domain-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.search-result-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-price {
  font-weight: 700;
  color: var(--success);
  font-size: 0.95rem;
}

.search-result-taken {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.search-no-results,
.search-error {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-radius: 8px;
}

.search-error {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.search-error small {
  display: block;
  margin-top: 8px;
  color: var(--text-secondary);
}

/* Domains Table */
.domains-table {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.domains-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 140px;
  padding: 12px 20px;
  background: var(--bg-tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.domains-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 140px;
  padding: 16px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}

.domains-table-row:last-child {
  border-bottom: none;
}

.domains-table-row:hover {
  background: var(--bg-hover);
}

.domain-name-main {
  font-weight: 600;
  color: var(--text-primary);
}

.auto-renew-badge {
  margin-left: 8px;
  font-size: 0.8rem;
}

.type-badge {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.status-badge.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.status-badge.status-error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.col-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

/* DNS Manager */
.dns-nameservers {
  background: var(--bg-tertiary);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dns-nameservers code {
  background: var(--bg-surface);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.dns-status-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dns-status-badge.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.dns-status-badge.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.dns-table {
  width: 100%;
  border-collapse: collapse;
}

.dns-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.dns-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.dns-table tr:last-child td {
  border-bottom: none;
}

.dns-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.dns-type-a { background: #dbeafe; color: #1e40af; }
.dns-type-aaaa { background: #e0e7ff; color: #3730a3; }
.dns-type-cname { background: #d1fae5; color: #065f46; }
.dns-type-mx { background: #fce7f3; color: #9d174d; }
.dns-type-txt { background: #fef3c7; color: #92400e; }
.dns-type-ns { background: #e5e7eb; color: #374151; }

.dns-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.dns-content {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dns-add-form {
  display: grid;
  grid-template-columns: 100px 1fr 1.5fr 80px 80px auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  margin-top: 16px;
}

.dns-add-form .form-group {
  margin: 0;
}

.dns-add-form label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.dns-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
}

.dns-error {
  padding: 16px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border-radius: 8px;
  text-align: center;
}

/* BYO Instructions Modal */
.nameserver-list {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.nameserver-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nameserver-item:last-child {
  border-bottom: none;
}

.nameserver-item code {
  font-size: 1rem;
  font-weight: 600;
}

.instructions-list {
  list-style: decimal;
  padding-left: 20px;
  margin: 16px 0;
}

.instructions-list li {
  padding: 8px 0;
  color: var(--text-secondary);
}

/* Register Modal */
.register-domain-summary {
  background: var(--bg-tertiary);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.register-domain-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.register-domain-price {
  font-size: 1.25rem;
  color: var(--success);
  font-weight: 600;
}

.register-domain-price small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Utilities */
.btn-xs {
  padding: 4px 8px;
  font-size: 0.75rem;
}

.loading-spinner-sm {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
  .domain-search-form,
  .byo-form {
    flex-direction: column;
  }
  
  .domain-search-form .form-input,
  .byo-form .form-input {
    max-width: 100%;
  }
  
  .domains-table-header,
  .domains-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .domains-table-header {
    display: none;
  }
  
  .dns-add-form {
    grid-template-columns: 1fr;
  }
}

/* ── Mina domäner: listan (renderDomainsList/renderDomainRow i js/domains.js) ─────────
   Raderna har klassen .domain-row och SEX kolumner (domän, status, typ, projekt, utgår,
   åtgärder). CSS:en ovan stylade .domains-table-row med FEM — ingen rad fick grid, så varje
   cell staplades under varandra (sep 2026). Här gäller samma grid för rubrik och rader. */
.domains-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.domains-stats { display: flex; gap: 16px; align-items: center; font-size: 0.875rem; color: var(--text-secondary); flex-wrap: wrap; }
.domains-stats .stat.active { color: var(--success); }
.domains-stats .stat.pending { color: var(--warning); }
.domains-table-header,
.domains-table .domain-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(110px, 1fr) minmax(90px, 0.8fr) minmax(120px, 1.4fr) minmax(100px, 0.9fr) 120px;
  gap: 12px;
  align-items: center;
}
.domains-table .domain-row {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}
.domains-table .domain-row:last-child { border-bottom: none; }
.domains-table .domain-row:hover { background: var(--bg-hover); }
.domains-table .domain-row.expiring { background: rgba(245, 158, 11, 0.06); }
.domains-table .domain-row > div { min-width: 0; }
.domain-row .col-domain { display: flex; align-items: center; gap: 6px; }
.domain-row .domain-name { font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-row .badge-auto { font-size: 0.75rem; opacity: 0.7; }
.domain-row .type-reg, .domain-row .type-ext { font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; }
.domain-row .project-list { cursor: pointer; color: var(--accent); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.domain-row .col-expires { font-size: 0.85rem; color: var(--text-secondary); white-space: nowrap; }
.domain-row .col-actions, .domain-row .action-btns { display: flex; gap: 4px; justify-content: flex-end; }
.domain-row .status-badge { white-space: nowrap; }
.status-badge.status-pending_dns,
.status-badge.status-pending_nameservers,
.status-badge.status-verifying { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-badge.status-expired { background: rgba(239, 68, 68, 0.15); color: var(--error); }

@media (max-width: 768px) {
  .domains-table .domains-table-header { display: none; }
  /* Smalt: raden blir ett kort — domännamnet överst, sedan status, projekt och knappar i flöde. */
  .domains-table .domain-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; }
  .domains-table .domain-row .col-domain { flex: 1 1 100%; }
  .domains-table .domain-row .col-type,
  .domains-table .domain-row .col-expires { display: none; }
  .domains-table .domain-row .col-actions { margin-left: auto; }
}

/* ── Domänmodaler (showCustomModal/dmShell i js/domains.js) ────────────────────────
   Dynamiska modaler byggs med samma skal som de fasta: .modal-header / .modal-body /
   .modal-footer (main.css). Klasserna nedan saknade stil helt — allt låg ostylat i kanten. */
.dm-overlay { padding: 20px; }
.dm-modal { width: 100%; display: flex; flex-direction: column; padding: 0 !important; }
.dm-modal.dm-sm { max-width: 460px; }
.dm-modal.dm-md { max-width: 600px; }
.dm-modal.dm-lg { max-width: 820px; }
.dm-modal .modal-header { padding: 16px 20px; }
.dm-modal .modal-title { margin: 0; font-size: 1.05rem; font-weight: 600; }
.dm-modal .modal-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.dm-modal .modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.dm-modal .modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 18px; }
.dm-modal .modal-footer { padding: 14px 20px; border-top: 0.5px solid var(--border-default); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dm-modal .modal-footer .dm-left { margin-right: auto; }

.dm-section { display: flex; flex-direction: column; gap: 10px; }
.dm-section + .dm-section { border-top: 1px solid var(--border-subtle); padding-top: 16px; }
.dm-section h4, .dm-section-head h4, .detail-section h4, .ns-section h4, .important-notice h4 {
  margin: 0; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
}
.dm-section-head { display: flex; align-items: center; justify-content: space-between; }
.dm-lead { margin: 0; color: var(--text-primary); line-height: 1.5; }
.dm-hint { margin: 0; font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.dm-hint code, .dm-lead code { font-size: 0.8rem; background: var(--bg-tertiary); padding: 1px 5px; border-radius: 4px; }
.dm-muted { color: var(--text-muted); }

/* Fält med etikett ovanför */
.dm-field { display: flex; flex-direction: column; gap: 5px; margin: 0; min-width: 0; }
.dm-field > span { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
.dm-field > span em { font-style: normal; color: var(--text-muted); font-weight: 400; }
.dm-field .form-input { width: 100%; }

/* DNS: formulär */
.dns-form { display: grid; grid-template-columns: 110px minmax(110px, 1fr) minmax(180px, 2fr); gap: 10px; align-items: end; }
.dns-form:has(#dnsPriorityWrap:not([hidden])) { grid-template-columns: 110px minmax(100px, 1fr) minmax(160px, 2fr) 90px; }
.dns-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Brytare (ersätter kryssruta + orange prick) */
.dm-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.875rem; color: var(--text-primary); user-select: none; }
.dm-switch[hidden] { display: none; }
.dm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dm-switch-track { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--border-default); transition: background 0.15s ease; flex: 0 0 auto; }
.dm-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform 0.15s ease; }
.dm-switch input:checked + .dm-switch-track { background: #f38020; }
.dm-switch input:checked + .dm-switch-track::after { transform: translateX(16px); }
.dm-switch input:focus-visible + .dm-switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* DNS: tabell */
.dns-table-wrap { border: 1px solid var(--border-subtle); border-radius: 10px; overflow: auto; }
.dns-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.dns-table th { text-align: left; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 8px 12px; background: var(--bg-tertiary); }
.dns-table td { padding: 8px 12px; border-top: 1px solid var(--border-subtle); vertical-align: middle; }
.dns-table td.content { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.8rem; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dns-table td code { font-size: 0.8rem; }
.dns-type { display: inline-block; min-width: 46px; text-align: center; font-size: 0.7rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--bg-tertiary); color: var(--text-secondary); }
.dns-type.type-a, .dns-type.type-aaaa { background: rgba(59,130,246,.12); color: #2563eb; }
.dns-type.type-cname { background: rgba(139,92,246,.12); color: #7c3aed; }
.dns-type.type-mx { background: rgba(16,185,129,.12); color: #059669; }
.dns-type.type-txt { background: rgba(245,158,11,.14); color: #b45309; }
.dm-pill { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: var(--bg-tertiary); color: var(--text-muted); }
.dm-pill.on { background: rgba(243,128,32,.15); color: #c2410c; }
.dm-row-actions { text-align: right; white-space: nowrap; }
.dm-danger { color: var(--error) !important; }
.dm-empty { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px dashed var(--border-default); border-radius: 10px; font-size: 0.875rem; color: var(--text-secondary); }
.dm-empty strong { color: var(--text-primary); }

/* Snabbval */
.preset-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.preset-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); color: var(--text-primary); cursor: pointer; font: inherit; }
.preset-btn span { font-size: 0.78rem; color: var(--text-muted); }
.preset-btn:hover { border-color: var(--accent); background: var(--bg-hover); }

/* Koppla */
.subdomain-row { display: flex; align-items: stretch; }
.subdomain-row .form-input { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1 1 auto; min-width: 0; }
.subdomain-suffix { display: flex; align-items: center; padding: 0 10px; font-size: 0.85rem; color: var(--text-muted); background: var(--bg-tertiary); border: 1px solid var(--border-default); border-left: 0; border-radius: 0 8px 8px 0; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }

/* Detaljer */
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.detail-section { display: flex; flex-direction: column; gap: 8px; }
.detail-section.detail-wide { grid-column: 1 / -1; border-top: 1px solid var(--border-subtle); padding-top: 14px; }
.detail-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.875rem; }
.detail-label { color: var(--text-muted); }
.detail-value { color: var(--text-primary); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.detail-value code { font-size: 0.75rem; }

/* Namnservrar, bekräftelser */
.ns-section { display: flex; flex-direction: column; gap: 8px; }
.ns-list { display: flex; flex-direction: column; gap: 6px; }
.ns-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--bg-tertiary); border-radius: 8px; }
.ns-item code { font-size: 0.85rem; background: none; padding: 0; }
.ns-note { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.registration-success, .byo-success { display: flex; flex-direction: column; gap: 14px; }
.success-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; }
.success-icon.is-ok { background: rgba(16,185,129,.15); color: var(--success); }
.success-icon.is-warn { background: rgba(245,158,11,.18); color: #b45309; }
.important-notice { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid rgba(245,158,11,.4); background: rgba(245,158,11,.07); border-radius: 10px; }
.important-notice p { margin: 0; font-size: 0.875rem; line-height: 1.5; }
.status-info { font-size: 0.875rem; padding: 10px 12px; background: var(--bg-tertiary); border-radius: 8px; }

@media (max-width: 640px) {
  .dns-form, .dns-form:has(#dnsPriorityWrap:not([hidden])) { grid-template-columns: 1fr 1fr; }
  .dns-form .dm-content { grid-column: 1 / -1; }
  .details-grid { grid-template-columns: 1fr; }
  .dm-modal .modal-footer .dm-left { margin-right: 0; }
}

.dm-field[hidden] { display: none !important; }
/* Registrera: totalsumma stort, detaljer i mindre text under */
#registerDomainPrice { display: flex; flex-direction: column; align-items: center; gap: 4px; }
#registerDomainPrice .rd-total { font-size: 1.5rem; font-weight: 700; color: var(--success); line-height: 1.2; }
#registerDomainPrice .rd-sub { font-size: 0.8rem; font-weight: 400; color: var(--text-secondary); line-height: 1.45; text-align: center; }
/* Tabellen håller sig inom modalen: fasta kolumnbredder, värdet kortas med … */
.dns-table { table-layout: fixed; }
.dns-table th:nth-child(1) { width: 78px; }
.dns-table th:nth-child(2) { width: 76px; }
.dns-table th:nth-child(4) { width: 56px; }
.dns-table th:nth-child(5) { width: 56px; }
.dns-table th:nth-child(6) { width: 74px; }
.dns-table td.content { max-width: none; }
.dns-form-foot { justify-content: flex-end; }
.dns-form-foot .dm-switch { margin-right: auto; }
.dm-hint { font-size: 12.5px; color: var(--text-muted, #6b7280); margin: 0 0 8px; line-height: 1.5; }
.dm-org-move { display: flex; gap: 8px; }
.dm-org-move .form-input { flex: 1; min-width: 0; }

/* Publiceringsdomän (js/publish-domain.js) */
.pd-card { border: 1px solid var(--border, rgba(127,127,127,.25)); border-radius: 12px; padding: 16px 18px; margin: 0 0 20px; background: var(--bg-card, transparent); }
.pd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pd-head h3 { margin: 0 0 4px; font-size: 1rem; }
.pd-domain { display: flex; gap: 8px; align-items: center; }
.pd-domain .form-input { width: 180px; }
.pd-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; margin: 14px 0 4px; font-size: .875rem; }
.pd-rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border, rgba(127,127,127,.15)); }
.pd-rows > div > span:first-child { font-family: var(--font-mono, ui-monospace, monospace); font-size: .8125rem; color: var(--text-muted, #777); }
.pd-ok, .pd-wait, .pd-bad { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pd-ok { background: rgba(16,185,129,.14); color: #0f9d6b; }
.pd-wait { background: rgba(245,158,11,.16); color: #b7791f; }
.pd-bad { background: rgba(239,68,68,.12); color: #d14343; }
.pd-msg { margin-top: 12px; padding: 9px 12px; border-radius: 8px; font-size: .8125rem; line-height: 1.6; background: rgba(127,127,127,.1); }
.pd-msg-err { background: rgba(239,68,68,.1); color: #d14343; }
.pd-actions { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pd-active { padding: 5px 12px; }
.ph-rows { margin: 14px 0 4px; font-size: .875rem; }
.ph-row { display: grid; grid-template-columns: minmax(130px, 1.3fr) minmax(90px, 1fr) 140px 110px 110px; gap: 6px 16px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border, rgba(127,127,127,.15)); }
.ph-host { font-family: var(--font-mono, ui-monospace, monospace); font-size: .8125rem; }
.ph-role { color: var(--text-muted, #777); font-size: .8125rem; }
@media (max-width: 760px) { .ph-row { grid-template-columns: 1fr 1fr; } .pd-card { min-width: 0; } .pd-card code { word-break: break-all; } }
