/* MT Point panel. Flat on purpose: no shadows, gradients, glows, transitions
   or animations anywhere. Plain fills and 1px borders, one light theme. */

:root {
  --bg: #eef0f2;
  --surface: #ffffff;
  --surface-2: #f6f7f8;
  --border: #d3d7dc;
  --border-strong: #b8bec6;
  --text: #22272e;
  --muted: #5f6873;
  --accent: #0a66e4;
  --accent-dark: #0853b8;
  --accent-soft: #e6effc;
  --track: #e3e6ea;
  --hot: #c62828;
  /* value levels */
  --ok: #1e7d34;
  --warn: #b86e00;
  --crit: #c62828;
  /* what a value is */
  --k-companies: #0a66e4;
  --k-domains: #0b7a55;
  --docker: #1d63ed;
  --pending: #d9a100;
  --k-alarms: #c2410c;
  --k-cpu: #0a66e4;
  --k-ram: #6d3fd1;
  --k-disk: #0e7f86;
  --ok-bg: #e8f4ea; --ok-border: #b5d8bb; --ok-text: #1d5e2a;
  --err-bg: #fbeaea; --err-border: #e3b4b4; --err-text: #8f1d1d;
  --backdrop: rgba(20, 23, 27, 0.45);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


*, *::before, *::after { box-sizing: border-box; transition: none !important; animation: none !important; }

html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
}

a { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; }

.i {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------------- forms */

label { display: block; margin: 0 0 6px; color: var(--muted); font-size: 13px; }
label .hint { float: right; font-size: 12px; }

input[type="text"], input[type="password"] {
  display: block;
  width: 100%;
  height: 38px;
  margin: 0 0 16px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font: inherit;
}
input::placeholder { color: #a3aab2; }
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent-dark); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.wide { display: flex; width: 100%; height: 42px; margin-top: 12px; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.btn { gap: 8px; }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.danger-btn { background: var(--surface); border-color: var(--err-border); color: var(--crit); }
.btn.danger-btn:hover { background: var(--err-bg); }
.btn.icon-only { padding: 0 10px; }
.help { margin: 4px 0 16px; color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
code { padding: 1px 5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 2px;
  font: 13px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
code.select { user-select: all; }

/* status lights: flat colour, no glow */
.dot { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; vertical-align: 0; }
.dot.ok { background: var(--ok); }
.dot.pending { background: var(--pending); }
.dot.error { background: var(--crit); }
.status-ok { color: var(--ok); }
.status-pending { color: #8a6500; }
.status-error { color: var(--crit); }

.notice { margin: 0 0 16px; padding: 8px 10px; border: 1px solid; border-radius: 2px; font-size: 13px; }
.notice.ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }
.notice.warn { background: #fdf5e0; border-color: #ead08a; color: #6f5000; }
.notice.err { background: var(--err-bg); border-color: var(--err-border); color: var(--err-text); }

/* ---------------------------------------------------------------- login */

.is-login { display: flex; flex-direction: column; }

.login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 24px;
}

.login-box {
  width: 100%;
  max-width: 500px;
  min-height: 560px;
  padding: 48px 56px 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.login-logo { display: block; margin: 0 auto 40px; max-width: 100%; height: auto; }
.login-box h1 {
  margin: 0 0 28px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 17px;
  font-weight: 600;
}
.login-box input { height: 42px; margin-bottom: 20px; }

.foot { padding: 16px; color: var(--muted); font-size: 12px; text-align: center; }

/* ---------------------------------------------------------------- app shell */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { display: block; }
.brand span { padding-left: 12px; border-left: 1px solid var(--border); color: var(--muted); font-size: 13px; }

.menu { position: relative; }
.menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--surface-2); border-color: var(--border); }
.menu .who { font-weight: 600; }
.menu .caret { width: 14px; height: 14px; color: var(--muted); }
.avatar { width: 24px; height: 24px; flex: none; }
.avatar.photo { border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.list .avatar { width: 22px; height: 22px; }
.profile-pic { border-bottom: 1px solid var(--border); }
.pic-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pic-row > .avatar { width: 56px; height: 56px; }
.pic-row .upload input[type=file] { max-width: 190px; }
.pic-row form { margin: 0; }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 200px;
  padding: 4px 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
}
.menu-panel form { margin: 0; }
.menu-panel a, .menu-panel button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: 0;
  color: var(--text);
  text-align: left;
  text-decoration: none;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); }
.menu-panel .i { color: var(--muted); }
.menu-panel hr { margin: 4px 0; border: 0; border-top: 1px solid var(--border); }

.shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 52px); }

.sidebar {
  padding: 16px 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
a + .nav-group { margin-top: 18px; }
.nav-group {
  margin: 0 0 6px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 13px;
  border-left: 3px solid transparent;
  color: var(--text);
  text-decoration: none;
}
.sidebar a .i { color: var(--muted); }
.sidebar a:hover { background: var(--surface-2); }
.sidebar a.active { background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600; }
.sidebar a.active .i { color: var(--accent); }

.content { padding: 24px 28px 40px; min-width: 0; }

.page-title { margin-bottom: 20px; font-size: 20px; font-weight: 600; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.page-head form { margin: 0; }
.page-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.page-sub .dot { margin-left: 8px; }
.page-sub .dot:first-child { margin-left: 0; }
.with-dot { display: flex; align-items: center; gap: 10px; }
.with-dot .dot { width: 12px; height: 12px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; font-size: 13px; text-decoration: none; }
.content > .notice { margin-bottom: 20px; }

/* ---------------------------------------------------------------- domains */

.block.flush { padding: 0; }
.block.empty { padding: 40px 20px; text-align: center; }
.block.empty p { margin: 0 0 4px; }

.list { width: 100%; border-collapse: collapse; }
.list th, .list td { padding: 11px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.list th { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.list tbody tr:last-child td { border-bottom: 0; }
.list tbody tr:hover { background: var(--surface-2); }
.list .col-dot { width: 36px; padding-right: 0; }
.list a { text-decoration: none; }

.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
/* verified: Stato and Azienda stacked on the left, DNS full height on the right */
.detail.verified .dns { grid-column: 2; grid-row: 1 / span 2; }
.state { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.state .dot { width: 12px; height: 12px; }
.facts.first div:first-child { border-top: 0; padding-top: 0; }
.facts .line { display: block; }
.facts a.line { text-decoration: none; }
.tag { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--ok-border); border-radius: 2px;
  background: var(--ok-bg); color: var(--ok-text); font-size: 11px; font-weight: 600; }
.company-name { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.record { width: 100%; margin-top: 12px; border-collapse: collapse; }
.record th, .record td { padding: 9px 0; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.record th { width: 80px; color: var(--muted); font-size: 13px; font-weight: 400; }

.danger {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--err-border); border-radius: 3px;
}
.danger h2 { font-size: 14px; font-weight: 600; }
.danger p { margin: 4px 0 0; font-size: 13px; }

/* ---------------------------------------------------------------- dashboard */

/* Account on the left, as tall as the two blocks on the right. */
.dash {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  gap: 16px;
}
.dash .account { grid-row: 1 / span 2; }

.block {
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.block-head h2 { font: inherit; letter-spacing: inherit; }
.block-head .i, .block-head h2 .i { margin-right: 8px; vertical-align: -3px; }
.block-head span, .block-head p { margin: 0; font-weight: 400; letter-spacing: 0; text-transform: none; }
.block-head span { margin-left: 4px; }
h2.block-head { justify-content: flex-start; align-items: center; }
h2.block-head .i { margin-right: 0; }
.block-head p { font-size: 12px; }

/* account */
.account-main { display: flex; align-items: center; gap: 18px; margin: 8px 0 24px; }
.account-main .avatar { width: 76px; height: 76px; }
.account-name { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.account-user { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.account-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid #c4d8f6;
  border-radius: 3px;
}
.account-id span { color: var(--muted); font-size: 13px; font-weight: 600; }
.account-id strong {
  color: var(--accent);
  font-size: 40px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* side-by-side stats inside a block */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 0 20px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.stat .big { margin: 10px 0 8px; font-size: 34px; font-weight: 600; line-height: 1.1; }
.stat .big small { margin-left: 2px; font-size: 16px; font-weight: 400; opacity: 0.8; }
.stat .note { margin: 0; color: var(--muted); font-size: 13px; }

/* what it is: icon and label colour */
.kind-companies h3 { color: var(--k-companies); }
.kind-domains h3, .kind-domains .big { color: var(--k-domains); }
a.stat { color: inherit; text-decoration: none; }
a.stat:hover .big { text-decoration: underline; }
.kind-alarms h3 { color: var(--k-alarms); }
.kind-cpu h3 { color: var(--k-cpu); }
.kind-ram h3 { color: var(--k-ram); }
.kind-disk h3 { color: var(--k-disk); }
.kind-companies .big { color: var(--k-companies); }

/* how it is doing: value and bar colour */
.big.ok { color: var(--ok); }
.big.warn { color: var(--warn); }
.big.crit { color: var(--crit); }

[data-bar] { display: block; }
.bar { display: block; width: 100%; height: 6px; }
.bar-track { fill: var(--track); }
.bar-fill { fill: var(--ok); }
.bar.warn .bar-fill { fill: var(--warn); }
.bar.crit .bar-fill { fill: var(--crit); }

.facts { margin: 12px 0 0; }
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }

/* ---------------------------------------------------------------- dialog */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
  background: var(--backdrop);
  overflow-y: auto;
}
.dialog { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 3px; }
.dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.dialog h2 { font-size: 16px; font-weight: 600; }
.dialog .close { display: flex; padding: 4px; color: var(--muted); }
.dialog .close:hover { color: var(--text); }
.dialog-body { padding: 18px; }
.dialog-body h3 { margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ---------------------------------------------------------------- small screens */

/* dashboard: domain status */
.dash .wide { grid-column: 1 / -1; }
.block-head .btn { text-transform: none; letter-spacing: 0; font-weight: 600; }
.block-head:has(.btn) { align-items: center; }
.lights { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 14px; }
.lights span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.lights strong { color: var(--text); font-size: 18px; }
.attention { margin: 0; padding: 0; list-style: none; }
.attention a {
  display: grid; grid-template-columns: 10px minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1.5fr);
  align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border);
  color: var(--text); text-decoration: none;
}
.attention a:hover .strong { text-decoration: underline; }
.attention a > span:last-child { text-align: right; }
.all-good { margin: 0; color: var(--ok); }


/* ---------------------------------------------------------------- containers */

.i.fill { fill: currentColor; stroke: none; }
.docker { display: inline-flex; color: var(--docker); }
.docker .i { width: 18px; height: 18px; }
.block-head .docker .i { width: 16px; height: 16px; }
.block-head .docker { margin-right: 8px; vertical-align: -3px; }
h1 .docker .i { width: 24px; height: 24px; }
.sidebar a .docker .i { width: 16px; height: 16px; }
.sidebar a:not(.active) .docker { color: var(--docker); }
.ct-name { display: inline-flex; align-items: center; gap: 8px; }
.kind-containers h3, .kind-containers .big { color: var(--docker); }
.split.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sep { color: var(--border-strong); }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions-row form { margin: 0; }
.dialog.wide { max-width: 520px; }
.dialog h2 { display: flex; align-items: center; gap: 8px; }

.tabs { display: flex; gap: 4px; margin: -4px 0 18px; border-bottom: 1px solid var(--border); }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; margin-bottom: -1px;
  border: 1px solid transparent; border-bottom: 0;
  color: var(--muted); text-decoration: none; font-weight: 600;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--surface); border-color: var(--border); color: var(--text); }

/* resources */
.usage > div + div { margin-top: 18px; }
.usage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 13px; }
.usage-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.kind-cpu .usage-head > span:first-child { color: var(--k-cpu); }
.kind-ram .usage-head > span:first-child { color: var(--k-ram); }
.kind-disk .usage-head > span:first-child { color: var(--k-disk); }
.usage-head strong.ok { color: var(--ok); }
.usage-head strong.warn { color: var(--warn); }
.usage-head strong.crit { color: var(--crit); }

/* create dialog sliders */
.slider { margin: 4px 0 14px; }
.slider label { display: flex; justify-content: space-between; color: var(--text); font-weight: 600; }
.slider output { color: var(--accent); font-variant-numeric: tabular-nums; }
.slider input[type=range] { width: 100%; margin: 4px 0 2px; accent-color: var(--accent); }
.range { display: flex; justify-content: space-between; margin: 0; color: var(--muted); font-size: 12px; }

/* files */
.files-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font: 13px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.crumbs a { display: inline-flex; text-decoration: none; }
.crumbs .slash { color: var(--muted); }
.upload { display: flex; align-items: center; gap: 8px; }
.upload input[type=file] { max-width: 230px; font-size: 13px; }
.list.files td, .list.files th { padding-top: 8px; padding-bottom: 8px; }
.list .num { text-align: right; white-space: nowrap; }
.entry { display: inline-flex; align-items: center; gap: 8px; color: var(--text); overflow-wrap: anywhere; }
.entry .i { color: var(--muted); }
.list .col-actions { width: 110px; text-align: right; white-space: nowrap; }
.icon-btn { display: inline-flex; padding: 5px; border-radius: 2px; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.del:hover { color: var(--crit); }
.muted-tag { margin-left: 6px; border-color: var(--border); background: var(--surface-2); color: var(--muted); }

.editor textarea {
  display: block; width: 100%; min-height: 60vh; margin: 0 0 12px; padding: 12px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 2px;
  font: 13px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; tab-size: 4; resize: vertical;
}
.editor textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* terminal */
.term-box { padding: 8px; background: #16181b; border: 1px solid #0d0f11; border-radius: 3px; }
#term { height: 65vh; min-height: 320px; }
.term-status { margin: 8px 0 0; font-size: 12px; }

/* dashboard: two status blocks side by side */
.dash .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }


/* ---------------------------------------------------------------- sidebar sections */

.nav-sec + .nav-sec { margin-top: 14px; }
.nav-sec > summary { display: flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; user-select: none; }
.nav-sec > summary::-webkit-details-marker { display: none; }
.nav-sec > summary:hover { color: var(--text); }
.nav-sec > summary .chev { width: 12px; height: 12px; stroke-width: 2.25; transform: rotate(90deg); }
.nav-sec:not([open]) > summary .chev { transform: none; }

/* ---------------------------------------------------------------- forms and tables, shared */

select, textarea, input[type=number], input[type=email], input[type=tel], input[type=search] {
  display: block; width: 100%; margin: 0 0 16px; padding: 0 10px; height: 38px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 2px; font: inherit;
}
textarea { height: auto; padding: 8px 10px; resize: vertical; }
select:focus, textarea:focus, input[type=number]:focus, input[type=email]:focus, input[type=tel]:focus, input[type=search]:focus {
  outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent);
}
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.pad-x { padding: 14px 16px; margin: 0; }
.block-head.pad { margin: 0; padding: 14px 16px 12px; }
.block-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 13px; }
.block-foot a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.link-btn { padding: 0; background: none; border: 0; color: var(--crit); font-size: 13px; }
.link-btn:hover { text-decoration: underline; }
.notice p { margin: 0; }
.notice p + p { margin-top: 4px; }

/* ---------------------------------------------------------------- anagrafiche */

.search input { width: 260px; margin: 0; height: 36px; }
.ct-name .legal { color: var(--muted); font-weight: 400; }
.logo-mini { width: 24px; height: 24px; object-fit: contain; border-radius: 2px; }
.company-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.logo-big { max-width: 160px; max-height: 64px; object-fit: contain; }
.stripe { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 16px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 3px; }
.stripe a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.stripe a:hover strong { text-decoration: underline; }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; font-size: 15px; font-weight: 600; }
.notes { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); white-space: pre-wrap; font-size: 13px; }
.logo-form { flex-wrap: wrap; }
.cform .block + .block { margin-top: 16px; }
.cform .actions { margin-top: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid2 .span2 { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- posta */

.mailboxes { margin-bottom: 16px; }
.quota { min-width: 180px; }
.quota-text { display: block; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.dnsrec { width: 100%; border-collapse: collapse; }
.dnsrec td { padding: 10px 0; border-top: 1px solid var(--border); vertical-align: top; }
.dnsrec tr:first-child td { border-top: 0; padding-top: 0; }
.dnsrec .col-dot { width: 22px; padding-top: 14px; }
.dnsrec tr:first-child .col-dot { padding-top: 4px; }
.rec-head { margin: 0 0 4px; }
.rec-line { display: flex; gap: 8px; margin: 2px 0; font-size: 13px; }
.rec-line .muted { flex: none; width: 48px; }
.rec-note { margin: 4px 0 0; color: var(--warn); font-size: 12px; }
.addr { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.addr input { margin: 0; }
.addr span { flex: none; color: var(--muted); }

.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 14px; }
.step-title { margin: 0 0 6px; }
.dash .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------------------------------------------------------------- roles and users */

.role { display: inline-block; padding: 1px 8px; border-radius: 2px; font-size: 12px; font-weight: 600; }
.role.admin { background: var(--accent-soft); color: var(--accent); }
.role.user { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.kind-mail h3 { color: #b4308a; }
.field-title { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; margin-bottom: 16px;
  max-height: 220px; overflow-y: auto; padding: 10px; border: 1px solid var(--border); border-radius: 2px; }
.check { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.check.solo { margin: 0 0 16px; }
.picker input[type=search] { margin-bottom: 8px; }
.picker .checks { grid-template-columns: 1fr; max-height: 260px; }
.picker .field-title { display: flex; justify-content: space-between; }
.user-form { max-width: 820px; }

@media (max-width: 1100px) {
  .dash .trio, .cgrid { grid-template-columns: 1fr; }
  .dash .pair { grid-template-columns: 1fr; }
  .split.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash { grid-template-columns: 1fr; }
  .dash .account { grid-row: auto; }
}

@media (max-width: 720px) {
  .split, .split.three { grid-template-columns: 1fr; }
  .stat, .stat:first-child, .stat:last-child { padding: 14px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .block-head { flex-direction: column; gap: 4px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: flex; gap: 4px; padding: 0; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .nav-group { display: none; }
  .nav-sec { display: flex; gap: 4px; }
  .nav-sec + .nav-sec { margin-top: 0; }
  .sidebar a { border-left: 0; border-bottom: 3px solid transparent; padding: 12px 14px; }
  .sidebar a.active { border-bottom-color: var(--accent); }
  .content { padding: 16px; }
  .detail { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .search input { width: 100%; }
  .detail.verified .dns { grid-column: auto; grid-row: auto; }
  .page-head, .danger { flex-direction: column; align-items: stretch; }
  .list th:nth-child(3), .list td:nth-child(3), .list th:nth-child(5), .list td:nth-child(5) { display: none; }
  .attention a { grid-template-columns: 10px 1fr auto; }
  .attention a > .muted { display: none; }
  .brand span { display: none; }
  .login { align-items: flex-start; padding-top: 24px; }
  .login-box { min-height: 0; padding: 32px 24px; }
}

