/* MigrateMyDatabase portal (admin). Same colours, font and components as the accessdbrescue.eu portal (copied 2026-11-20). */
:root {
  --navy: #0B3D91; --blue: #1E88E5; --blue-light: #64B5F6; --dark: #0F1B2D; --bg: #F4F6F9; --text: #1F2A37;
  --muted: #5F6B7A; --border: #E3E8EF; --red: #C62828; --amber: #B45309; --green: #0F6E4C; --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 15px; }
a { color: var(--navy); }
h1 { font-size: 1.7rem; margin: 4px 0 8px; color: var(--dark); line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 0 0 12px; color: var(--navy); }
h3 { font-size: 1rem; margin: 18px 0 8px; color: var(--navy); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

.top { background: var(--dark); }
.top__in { max-width: 920px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.top__in--wide { max-width: 1320px; }
.top__logo img { display: block; height: 34px; width: auto; }
.top__nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top__nav a, .top__nav .link { color: #C9D6E8; text-decoration: none; font: inherit; font-size: .92rem; }
.top__nav a:hover, .top__nav .link:hover { color: #fff; }
.adminnav { display: flex; gap: 4px; flex-wrap: wrap; }
.adminnav a { padding: 7px 12px; border-radius: 8px; }
.adminnav a[aria-current] { background: rgba(255, 255, 255, .12); color: #fff; }
.langs { display: flex; gap: 2px; }
.langs a { padding: 4px 7px; border-radius: 6px; font-size: .8rem; font-weight: 600; }
.langs a[aria-current] { background: rgba(255, 255, 255, .14); color: #fff; }
.inline { display: inline; margin: 0; }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

.main { max-width: 920px; margin: 0 auto; padding: 28px 16px 40px; }
.main--wide { max-width: 1320px; }
.foot { text-align: center; color: var(--muted); font-size: .82rem; padding: 0 16px 28px; }
.foot a { color: var(--muted); }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 18px; box-shadow: 0 6px 24px rgba(11, 61, 145, .05); }
.card--narrow { max-width: 480px; margin: 24px auto; }
.card--soft { background: #EEF4FC; border-color: #D6E4F7; }
.card--hl { border-left: 5px solid var(--blue); }
.card--danger { border-color: #F2C9C9; }
.card--flush { padding: 0; overflow-x: auto; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.warn { color: var(--amber); }

.notice { background: #E7F8F0; color: var(--green); border-radius: 10px; padding: 11px 14px; margin: 0 0 16px; }
.notice--error { background: #FDECEC; color: var(--red); }
.notice--warn { background: #FFF8E6; color: var(--amber); }

.form { display: grid; gap: 14px; margin-top: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .filter input, .filter select {
  font: inherit; font-weight: 400; color: var(--text); border: 1px solid #C9D3E0; border-radius: 8px; padding: 10px 12px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(30, 136, 229, .25); border-color: var(--blue); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; }
.form--inline { grid-template-columns: 1fr; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border: 0; border-radius: 9px; padding: 11px 20px;
  background: var(--blue); color: #fff; cursor: pointer; text-decoration: none; justify-self: start; }
.btn:hover { background: #1976D2; }
.btn--small { padding: 7px 13px; font-size: .86rem; }
.btn--ghost { background: #fff; color: var(--navy); border: 1px solid #C9D3E0; }
.btn--ghost:hover { background: var(--bg); }
.btn--danger { background: var(--red); }
.btn--danger:hover { background: #A31F1F; }

.steps { display: flex; gap: 8px; padding: 0; margin: 14px 0; list-style: none; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; font-size: .85rem; color: var(--muted); background: var(--bg); border-radius: 20px; padding: 5px 12px; }
.steps li::before { content: counter(s) ". "; font-weight: 700; }
.steps li[aria-current] { background: var(--navy); color: #fff; }
.enrol { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.enrol .qr { border: 1px solid var(--border); border-radius: 10px; max-width: 100%; height: auto; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .06em; background: var(--bg); padding: 8px 10px; border-radius: 8px; overflow-wrap: anywhere; }

.files { list-style: none; padding: 0; margin: 0; }
.files li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.files li:first-child { border-top: 0; }
.files__icon { flex: 0 0 auto; font-size: .7rem; font-weight: 800; color: #fff; background: var(--red); border-radius: 6px; padding: 8px 7px; }
.files__name { flex: 1; font-weight: 600; overflow-wrap: anywhere; }
.files__name small { display: block; font-weight: 400; color: var(--muted); }

.table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--border); white-space: nowrap; }
.table tbody th { font-weight: 600; color: var(--dark); }
.table--num td { text-align: right; font-variant-numeric: tabular-nums; }
.table--rows tbody tr:hover { background: #F8FAFD; }
.table tr.is-new td:first-child { box-shadow: inset 4px 0 0 var(--blue); }
.table small { color: var(--muted); }
.table .clip { max-width: 280px; }
.table .actions form { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }

.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pagehead h1 { margin: 0; }
.seg { display: flex; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg a { padding: 6px 12px; border-radius: 7px; text-decoration: none; font-size: .88rem; color: var(--muted); }
.seg a[aria-current] { background: var(--navy); color: #fff; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter input { width: 260px; max-width: 100%; }
.filter select { width: auto; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.tile span { font-size: .8rem; color: var(--muted); }
.tile strong { font-size: 1.8rem; color: var(--dark); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile small { color: var(--muted); font-size: .78rem; min-height: 1em; }
.tile--accent { background: var(--navy); border-color: var(--navy); }
.tile--accent span, .tile--accent small { color: #C9D6E8; }
.tile--accent strong { color: #fff; }

.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 210px; align-items: end; }
.bars__col { display: grid; grid-template-rows: auto 1fr auto auto; height: 100%; text-align: center; font-size: .72rem; color: var(--muted); }
.bars__val { color: var(--dark); font-weight: 600; }
.bars__bar { align-self: end; background: var(--blue); border-radius: 5px 5px 0 0; min-height: 2px; width: 70%; justify-self: center; }
.bars__lbl { border-top: 1px solid var(--border); padding-top: 4px; }
.bars__sub { font-size: .66rem; }

.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.feed time { color: var(--muted); font-size: .82rem; margin-right: 6px; font-variant-numeric: tabular-nums; }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 20px; padding: 3px 10px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.badge--new { background: #E3F0FD; color: var(--navy); }
.badge--contacted { background: #FFF3D6; color: var(--amber); }
.badge--offer { background: #EDE7FB; color: #5B3CC4; }
.badge--won { background: #E7F8F0; color: var(--green); }
.badge--lost { background: #F1F1F1; color: #777; }

.req { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.req:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.req p { margin: 0 0 6px; }
blockquote { margin: 6px 0 10px; padding: 10px 14px; background: var(--bg); border-left: 4px solid var(--blue-light); border-radius: 6px; }
.mailblock { overflow-x: auto; }
.codes { columns: 2; list-style: none; padding: 0; font-size: 1.05rem; }
.codes li { margin: 4px 0; }
.log { background: var(--dark); color: #C9D6E8; padding: 14px; border-radius: 10px; font-size: .8rem; overflow-x: auto; max-height: 420px; }
details { border-top: 1px solid var(--border); padding: 8px 0; }
details pre { background: var(--bg); padding: 10px; border-radius: 8px; overflow-x: auto; font-size: .8rem; }

@media (max-width: 600px) {
  .card { padding: 18px 16px; }
  h1 { font-size: 1.4rem; }
  .table--rows thead { display: none; }
  .table--rows tr { display: block; border-bottom: 1px solid var(--border); padding: 6px 0; }
  .table--rows td { display: block; border: 0; padding: 3px 12px; }
  .files li { flex-wrap: wrap; }
}

.addform summary { cursor: pointer; list-style: none; }
.addform summary::-webkit-details-marker { display: none; }
.form--grid { grid-template-columns: 1fr; }
@media (min-width: 760px) { .form--grid { grid-template-columns: 1fr 1fr 1fr 110px; align-items: end; } .form--grid .check, .form--grid .btn { grid-column: 1 / -1; } }
.badge--requested { background: #FFF3D6; color: #B45309; }
.badge--submitted { background: #E3F0FD; color: #0B3D91; }
.badge--ready { background: #EDE7FB; color: #5B3CC4; }
.badge--signed { background: #E7F8F0; color: #0F6E4C; }
.files__icon--png, .files__icon--jpg, .files__icon--jpeg, .files__icon--webp, .files__icon--gif { background: #1E88E5; }
.files__icon--zip { background: #5B3CC4; }
.files__icon--txt { background: #5F6B7A; }
.tool { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.tool h3 { margin-top: 0; }

/* top bar: white like the website, so the logo (made for light backgrounds) is fully readable */
.top { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(11, 61, 145, .05); }
.top__nav a, .top__nav .link { color: var(--text); }
.top__nav a:hover, .top__nav .link:hover { color: var(--navy); }
.adminnav { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.adminnav a { border-radius: 999px; font-weight: 600; }
.adminnav a[aria-current] { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(11, 61, 145, .15); }
.langs a { color: var(--muted); }
.langs a[aria-current] { background: var(--navy); color: #fff; }

/* admin: company page */
.crumb { margin: 0 0 6px; font-size: .9rem; }
.crumb a { text-decoration: none; }
.pagehead p { margin: 2px 0 0; }
.tiles--person { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tile__text { font-size: 1.05rem !important; line-height: 1.3 !important; padding: 4px 0; }
.nextstep { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #EEF4FC; border: 1px solid #D6E4F7; border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; }
.nextstep > span { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.nextstep b { flex: 1; min-width: 200px; color: var(--dark); }
.nextstep form { margin: 0; }
.person-grid { display: grid; grid-template-columns: 1fr; gap: 0 18px; align-items: start; }
@media (min-width: 1100px) { .person-grid { grid-template-columns: minmax(0, 1fr) 340px; } .person-side { position: sticky; top: 16px; } }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 6px; }
.chip { font-size: .78rem; font-weight: 600; background: #E3F0FD; color: var(--navy); border-radius: 20px; padding: 2px 10px; }
.req__head { margin: 0 0 2px; }
.est { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 4px 0 14px; }
.est > div { background: var(--bg); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.est span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.est strong { font-size: 1.35rem; color: var(--dark); }
.est small { color: var(--muted); }
.esttable th { font-weight: 500; color: var(--text); width: 45%; }
.esttable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; width: 80px; }
.esttable__bar span { display: block; height: 8px; border-radius: 4px; background: var(--blue-light); min-width: 2px; }
.esttable__bar { vertical-align: middle; }
.esttable__total th, .esttable__total td { font-weight: 700; border-bottom: 0; }
details.more { border-top: 1px solid var(--border); padding: 8px 0 0; margin-top: 10px; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: .92rem; padding: 2px 0 6px; }
details.card.more { border-top: 1px solid #F2C9C9; margin-top: 0; padding: 16px 20px; }
details.target { border: 0; padding: 0; margin-top: 4px; }
details.target > summary { cursor: pointer; font-size: .88rem; color: var(--navy); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.mailblock { font-size: .9rem; }

/* ---------- MigrateMyDatabase admin additions ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.tag--ok { background: #E7F8F0; color: var(--green); }
.tag--warn { background: #FFF8E6; color: var(--amber); }
.form--row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 8px; }
.form--row label { flex: 1 1 160px; }
.form .check, .form--row .check { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; font-weight: 400; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; width: 100%; white-space: pre-wrap; }
.msg { background: var(--bg); border-radius: 10px; padding: 10px 14px; }
.qr { background: #fff; display: flex; justify-content: center; padding: 12px; }
.qr svg { width: 220px; height: 220px; }
details summary { cursor: pointer; }

/* ---------- customer accounts and files ---------- */
.tag--off { background: #F1F1F1; color: #777; }
.langswitch { float: right; margin: 0; color: var(--muted); }
.langswitch a { text-decoration: none; }
.invite-link { display: block; margin-top: 6px; user-select: all; }
.files__icon--pdf { background: var(--red); }
.files__icon--sql, .files__icon--md, .files__icon--csv { background: #5F6B7A; }
.files__icon--html { background: #1E88E5; }
.batch .tbl td.actions { white-space: nowrap; }
