/* SedStrat License Server — themed to match sedstrat-lab.com
   (sedstrat-lab-site/site/assets/main.css): flat colour off the logo,
   one charcoal outline, soft-rounded corners, Poppins + Inter. */
:root {
  /* Straight off the logo */
  --ink: #1B2123;
  --green: #6EB357;
  --yellow: #FEDC4B;
  --cyan: #42C2D9;

  /* Darkened companions — clear 4.5:1 on white for text */
  --green-ink: #3D7B31;
  --cyan-ink: #14707F;
  --amber-ink: #8A6A00;

  /* Neutrals */
  --paper: #FFFFFF;
  --ground: #F2F5EF;
  --body: #4E585B;
  --muted: #78848A;
  --hair: #DCE3DC;

  --ok: var(--green-ink);
  --err: #B42318;
  --warn: var(--amber-ink);

  --line-w: 2px;
  --radius: 14px;
  --radius-sm: 9px;

  --font-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  display: flex; flex-direction: column; min-height: 100vh;
  font: 15px/1.55 var(--font-body);
  color: var(--body);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* header */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: var(--line-w) solid var(--ink);
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  min-height: 64px;
}
header.top .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; line-height: 0;
}
header.top .brand img {
  /* the wordmark has a white box; multiply drops it onto the header */
  height: 26px; width: auto; mix-blend-mode: multiply;
}
.brand-tag {
  font: 600 11px/1 var(--font-head);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow);
  border: var(--line-w) solid var(--ink); border-radius: 999px;
  padding: 5px 9px 4px;
}
header.top nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
header.top nav a {
  color: var(--ink); text-decoration: none;
  font: 500 14px/1 var(--font-head);
  padding: 8px 12px; border-radius: 999px;
}
header.top nav a:hover { background: var(--ground); color: var(--ink); }
header.top .who { color: var(--muted); font-size: 13px; }

main { width: 100%; max-width: 1120px; margin: 32px auto; padding: 0 24px; flex: 1; }
h1, h2, h3 {
  font-family: var(--font-head); color: var(--ink);
  letter-spacing: -.02em; line-height: 1.2; font-weight: 600;
}
h1 { font-size: 26px; font-weight: 700; margin: 0 0 18px; }
h2 { font-size: 18px; margin: 24px 0 12px; }
.panel h2:first-child { margin-top: 0; }
.panel {
  background: var(--paper);
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hair); }
th {
  color: var(--ink); font: 600 11px/1.3 var(--font-head);
  letter-spacing: .12em; text-transform: uppercase;
  border-bottom: var(--line-w) solid var(--ink);
}
tr:hover > td { background: #F8FAF6; }
td.mono, .mono { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
form.inline { display: inline; }
label { display: block; font: 500 13px/1.3 var(--font-head); color: var(--ink); margin: 12px 0 5px; }
input, select, textarea {
  width: 100%; padding: 9px 12px; border: 1.5px solid #B9C3BB;
  border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid rgba(66, 194, 217, .45); outline-offset: 0; }
input[type=checkbox] { width: auto; accent-color: var(--green-ink); }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 200px; }
button, .btn {
  display: inline-block; padding: 8px 18px;
  border: var(--line-w) solid var(--ink); border-radius: 999px;
  background: var(--green); color: var(--ink);
  font: 600 14px/1.3 var(--font-head); cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .12s ease;
}
button:hover, .btn:hover { background: #7FC268; color: var(--ink); transform: translateY(-1px); }
button:active, .btn:active { transform: none; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
button.secondary, .btn.secondary { background: var(--paper); color: var(--ink); }
button.secondary:hover, .btn.secondary:hover { background: var(--ground); }
button.danger { background: var(--err); border-color: var(--err); color: #fff; }
button.danger:hover { background: #C8321F; color: #fff; }
button.warn { background: var(--yellow); }
button.warn:hover { background: #FFE36E; }
.pill {
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1.5px solid currentColor; white-space: nowrap;
}
.pill.active { background: #EAF5E5; color: var(--ok); }
.pill.revoked, .pill.disabled { background: #FBEAEA; color: var(--err); }
.pill.suspended, .pill.pending { background: #FFF7D6; color: var(--warn); }
.pill.fulfilled { background: #E3F6FA; color: var(--cyan-ink); }
.pill.superuser { background: #EDE7FB; color: #5B3FB0; }
.pill.admin { background: #E3F6FA; color: var(--cyan-ink); }
td.actions form { margin-right: 6px; }
.flash {
  padding: 11px 16px; border-radius: var(--radius-sm); margin-bottom: 16px;
  border: var(--line-w) solid currentColor; font-weight: 500;
}
.flash.ok { background: #EAF5E5; color: var(--ok); }
.flash.error { background: #FBEAEA; color: var(--err); }
.stat { display: flex; gap: 32px; flex-wrap: wrap; }
.stat > div { padding-left: 14px; border-left: 6px solid var(--green); }
.stat > div:nth-child(2) { border-left-color: var(--yellow); }
.stat > div:nth-child(3) { border-left-color: var(--cyan); }
.stat .n { font: 700 28px/1.15 var(--font-head); color: var(--ink); }
.stat .l { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.keybox {
  font-family: var(--font-mono); font-size: 20px;
  letter-spacing: 1px; background: var(--ink); color: #E8F5E2; padding: 16px 18px;
  border-radius: var(--radius-sm); border-left: 8px solid var(--green); word-break: break-all;
}
small.hint { color: var(--muted); display: block; margin-top: 3px; }

/* horizontal scroll guard for wide tables (activity log etc.) */
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 720px; }

/* pagination controls */
.pager { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pager .count { color: var(--muted); font-size: 13px; }
.pager .spacer { flex: 1; }

/* search / filter toolbar */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.toolbar .field { display: flex; flex-direction: column; }
.toolbar label { margin: 0 0 4px; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }

/* applications data tree */
table.tree td, table.tree th { vertical-align: middle; }
table.tree .row-app > td:first-child { font-weight: 600; color: var(--ink); }
table.tree tr.hidden { display: none; }
.twist {
  background: none; color: var(--muted); border: 0; cursor: pointer;
  padding: 0 6px 0 0; font-size: 12px; width: auto;
}
.twist:hover { background: none; color: var(--ink); transform: none; }
.twist.leaf { visibility: hidden; }
.indent-1 { padding-left: 26px !important; }
.indent-2 { padding-left: 52px !important; }
td.actions .btn, td.actions button { padding: 4px 12px; font-size: 13px; }

/* modal dialogs (new version / new module) */
dialog {
  border: var(--line-w) solid var(--ink); border-radius: var(--radius); padding: 0;
  max-width: 460px; width: 92%; color: var(--body); background: var(--paper);
}
dialog::backdrop { background: rgba(27, 33, 35, 0.45); }
dialog .dlg-head { padding: 18px 20px 0; }
dialog .dlg-head h3 { margin: 0; font-size: 17px; }
dialog form { padding: 8px 20px 20px; }
dialog .dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* footer — same dark band as sedstrat-lab.com */
.site-footer {
  background: var(--ink); color: rgba(255, 255, 255, .72);
  padding: 28px 24px 18px; font-size: 14px;
}
.footer-inner {
  max-width: 1072px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px;
}
.footer-wordmark {
  font: 700 22px/1.2 var(--font-head); letter-spacing: -.02em; color: #fff; margin: 0;
}
.footer-wordmark span { color: var(--green); }
.footer-tag {
  font: 500 11px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72); margin: 8px 0 0;
}
.dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin: 0 6px 0 2px; vertical-align: middle;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  max-width: 1072px; margin: 20px auto 0; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px; color: rgba(255, 255, 255, .5);
}

@media (max-width: 640px) {
  header.top { padding: 8px 16px; }
  main { padding: 0 16px; margin: 20px auto; }
  .panel { padding: 16px; }
}

/* small-caps tagline above a page title, as on sedstrat-lab.com */
.kicker {
  font: 600 11px/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 12px;
}
