/* Admin-UI for Containerplan. Samme visuelle språk som planleggeren. */
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #f4f5f7; color: #222;
}

.adm-bar {
  background: #fff; border-bottom: 1px solid #e3e5e8;
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px; height: 56px;
}
.adm-logo { height: 42px; width: auto; }
.adm-brand { font-size: 16px; font-weight: 600; color: #2c3e50; text-decoration: none; }
.adm-brand small { font-weight: 400; color: #6c757d; }
.adm-nav { display: flex; gap: 14px; margin-left: 12px; }
.adm-nav a { font-size: 14px; color: #4a5260; text-decoration: none; padding: 6px 0; }
.adm-nav a:hover { color: #3a86ff; }
.adm-tilbake {
  margin-left: auto; font-size: 13px; color: #4a5260; text-decoration: none;
  padding: 6px 12px; border: 1px solid #d8dde3; border-radius: 7px; white-space: nowrap;
}
.adm-tilbake:hover { background: #f7f8fa; color: #2c3e50; }
.adm-user { font-size: 13px; color: #6c757d; }
.adm-out { font-size: 13px; color: #6c757d; text-decoration: none; }
.adm-out:hover { color: #b94343; text-decoration: underline; }

.adm-wrap { margin: 32px auto; padding: 0 24px 60px; }

h1 { font-size: 22px; margin: 0 0 18px; }
h2 { margin: 0 0 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #6c757d; }
h2:not(:first-child) { margin-top: 24px; }

.kort {
  background: #fff; border: 1px solid #e3e5e8; border-radius: 10px;
  padding: 20px 22px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.kort-tabell { padding: 20px 0 0; }
.kort-tabell h2, .kort-tabell > .hjelp { padding: 0 22px; }

.topp { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.antall { font-size: 14px; font-weight: 400; color: #6c757d; }
.sok { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.sok input[type="search"] { width: 280px; }
.nullstill { font-size: 13px; color: #6c757d; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 12px; text-align: left; font-size: 14px; }
th { color: #6c757d; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #e3e5e8; }
td { border-bottom: 1px solid #f0f1f3; }
tbody tr:last-child td { border-bottom: none; }
td a { color: #2c3e50; font-weight: 500; }
.tall { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.tom { color: #888; font-style: italic; text-align: center; padding: 24px; }
.dempet { color: #888; }

.merkelapp { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.merkelapp-ny { background: #e6f0ff; color: #1f5fd0; }
.merkelapp-kontaktet { background: #fff3e0; color: #99610a; }
.merkelapp-tilbud_sendt { background: #e8f5e9; color: #2a7a34; }
.merkelapp-lukket { background: #eceef1; color: #62696f; }

.rutenett { display: grid; grid-template-columns: 1fr 400px; gap: 16px; align-items: start; }
@media (max-width: 880px) { .rutenett { grid-template-columns: 1fr; } }

.fakta { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.fakta dt { color: #6c757d; }
.fakta dd { margin: 0; }
.sitat { margin: 0; padding: 12px 14px; background: #f7f8fa; border-radius: 8px; font-size: 14px; white-space: pre-wrap; line-height: 1.5; }

.tegning-ramme { width: 100%; height: 460px; border: 1px solid #e3e5e8; border-radius: 8px; background: #f4f5f7; }
.tilbake { margin: 0 0 14px; font-size: 14px; }
.tilbake a { color: #3a86ff; text-decoration: none; }

.pris td { font-size: 14px; }
.pris .tall { white-space: nowrap; width: 1%; padding-left: 14px; }
.pris .variant-linje { display: block; font-size: 12px; color: #8a9099; margin-top: 2px; }
.pris td:first-child { width: 99%; }
.pris.sum { margin-top: 10px; border-top: 1px solid #e3e5e8; }
.pris .total td { font-weight: 600; font-size: 16px; padding-top: 14px; }

.priser th:not(:first-child) { width: 130px; }
.priser .grunn-navn { font-weight: 600; }
.priser .variant .variant-navn { padding-left: 26px; font-size: 13px; color: #555; }
.priser .variant .variant-navn::before { content: '↳'; color: #b5bdc7; margin-right: 6px; }
.priser tbody.blokk { border-bottom: 1px solid #f0f1f3; }
.priser input { text-align: right; }

label { display: block; font-size: 13px; color: #4a5260; margin-bottom: 12px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  display: block; width: 100%; margin-top: 4px;
  padding: 8px 10px; border: 1px solid #d8dde3; border-radius: 6px;
  font-size: 14px; font-family: inherit; background: #fff; color: #222;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #3a86ff; box-shadow: 0 0 0 3px rgba(58,134,255,0.12); }
.priser input, .sok input, .sok select { margin-top: 0; }
.sok select { width: auto; min-width: 150px; }
.sok { flex-wrap: nowrap; }
@media (max-width: 700px) { .sok { flex-wrap: wrap; } .sok input[type="search"] { width: 100%; } }
textarea { resize: vertical; }

.knapp-primar {
  padding: 10px 22px; background: #2c3e50; color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit;
}
.knapp-primar:hover { background: #1a2734; }
.knapp-sekundar {
  display: inline-block; padding: 9px 18px; background: #fff; color: #444;
  border: 1px solid #d8dde3; border-radius: 8px; font-size: 14px;
  cursor: pointer; font-family: inherit; text-decoration: none; text-align: center;
}
.knapp-sekundar:hover { background: #f7f8fa; }

.feil { color: #b94343; background: #fbeaea; border: 1px solid #e3c5c5; border-radius: 6px; padding: 9px 12px; font-size: 14px; margin: 0 0 14px; }
.ok { color: #2a7a34; background: #e8f5e9; border: 1px solid #c3e2c6; border-radius: 6px; padding: 9px 12px; font-size: 14px; margin: 0 0 14px; }
.hjelp { color: #6c757d; font-size: 13px; line-height: 1.5; margin: 0 0 14px; }

.sso-del { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: #9aa1a9; font-size: 12px; }
.sso-del::before, .sso-del::after { content: ''; flex: 1; height: 1px; background: #e3e5e8; }
.kort .knapp-sekundar { width: 100%; }
