/* latin-ext italic */
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-ext-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin italic */
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* latin-ext normal */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-ext-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin normal */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Inter tnum also widens punctuation. Limit that feature to digits; the same
   cached font supplies normal punctuation through the Inter fallback. */
@font-face { font-family: 'Inter digits'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-normal.woff2') format('woff2'); unicode-range: U+0030-0039; font-feature-settings: "tnum"; }

/* makeledger.nl silver palette: dark by default, light on explicit OS preference. */
:root { color-scheme: dark; --bg: #2b2b2b; --panel: #333333; --text: #f5f5f7; --muted: #bdbdc6; --line: #8c8c8c; --accent: #ff914d; --accent-contrast: #000000; --link: #ff914d; --notice: #3a3a3a; --success: #9bdbb4; --warning: #efcb83; --danger: #ffacb8; --error: var(--danger); --link-on-notice: var(--link); }
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --bg: #f5f5f7; --panel: #ffffff; --text: #1d1d1f; --muted: #5b5b64; --line: #d2d2d8; --accent: #ff914d; --accent-contrast: #000000; --link: #a65e32; --notice: #e9e9ee; --success: #236943; --warning: #805300; --danger: #a62f3b; --link-on-notice: #9b572e; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: .9375rem/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
a { color: var(--link); text-underline-offset: .22em; }
.notice a:not(.button), thead a:not(.button), tfoot a:not(.button) { color: var(--link-on-notice); }
header { border-bottom: 1px solid var(--line); background: var(--panel); }
nav, main, footer { max-width: 1440px; margin: auto; padding: .8rem 2rem; }
nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.brand { white-space: nowrap; margin-right: auto; color: var(--text); font-size: 1.3rem; font-weight: 750; text-decoration: none; letter-spacing: -.04em; }
main { min-height: 78vh; padding-top: 2rem; padding-bottom: 3rem; }
h1, h2, h3 { line-height: 1.3; font-weight: 650; letter-spacing: normal; }
h1 { font-size: 1.75rem; margin: 0 0 1.4rem; }
h2 { font-size: 1.2rem; margin: 1.8rem 0 .8rem; }
h3 { font-size: 1rem; margin: 1.4rem 0 .6rem; }
.hero { max-width: 760px; padding: 2rem 0 4rem; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); letter-spacing: -.025em; }
.hero p { font-size: 1.2rem; color: var(--muted); }
.hero .eyebrow { color: var(--link); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; }
.card { border: 1px solid var(--line); border-radius: .4rem; background: var(--panel); padding: 1.25rem; }
.narrow { max-width: 34rem; }
.auth-layout { max-width: 32rem; margin: 1rem auto 3rem; }
.auth-layout h1 { margin-bottom: 1.2rem; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.notice { padding: .75rem 0; margin: 0 0 1.25rem; }
.notice p { margin: .35rem 0; }
.error, .errorlist, [role="alert"] { color: var(--error); }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: .55rem .65rem; background: var(--panel); color: var(--text); border: 1px solid var(--muted); border-radius: .3rem; }
button, .button, input::file-selector-button { display: inline-block; border: 1px solid var(--link); padding: .6rem 1.2rem; min-height: 48px; border-radius: 100px; background: var(--accent); color: var(--accent-contrast); cursor: pointer; text-decoration: none; font-weight: 550; }
button.secondary, .button.secondary, form[method="get"] button:not(.primary), input::file-selector-button { background: transparent; color: var(--text); border-color: var(--line); border-radius: .35rem; }
button.danger, .button.danger { background: var(--panel); color: var(--danger); border-color: var(--danger); }
input::file-selector-button { margin-right: .7rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--link); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
button:disabled, fieldset:disabled { opacity: .6; cursor: not-allowed; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin: 1.25rem 0; }
.administrations { list-style: none; padding: 0; }
.administrations li { border-bottom: 1px solid var(--line); }
.administrations span { display: block; color: var(--muted); font-size: .9rem; }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; list-style: none; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: .35rem; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: "⌄"; margin-left: .65rem; }
.account-menu[open] summary::after { content: "⌃"; }
.account-menu-panel { position: absolute; z-index: 10; right: 0; top: calc(100% + .5rem); min-width: 14rem; background: var(--panel); border: 1px solid var(--line); border-radius: .35rem; padding: .6rem 1rem; }
.account-menu a { display: block; padding: .6rem 0; }
.account-menu form { margin-top: .5rem; }
pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: inherit; overflow-wrap: anywhere; font-size: .9rem; }
footer { display: flex; gap: 1rem; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); flex-wrap: wrap; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: static; width: auto; height: auto; clip-path: none; padding: 1rem; }
@media (max-width: 700px) { .columns { grid-template-columns: 1fr; } nav, main, footer { padding: 1.2rem; } main { padding-top: 2rem; } .card { padding: 1.2rem; } nav { gap: 1rem; } }
.tabs { padding: .8rem 0; margin-bottom: 2rem; border-block: 1px solid var(--line); gap: 1.1rem; }
.table-scroll { overflow-x: auto; margin-bottom: 2rem; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; background: var(--panel); }
th, td { text-align: left; padding: .5rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead { color: var(--muted); font-size: .85rem; }
thead th { font-weight: 550; }
tfoot { font-weight: 600; }
.amount, .money, .number { text-align: right; }
.amount, .money, .number, .date, .attention-list strong,
input[type=number], input[inputmode=decimal] { font-family: 'Inter digits', Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-variant-numeric: normal; }
.amount, .money, .number, .date { white-space: nowrap; }
table .number a, table a.number, table th.amount a { font-weight: 550; }

.metadata { display: grid; grid-template-columns: minmax(8rem, 1fr) 3fr; gap: .6rem 1rem; }
.metadata dd { margin: 0; min-width: 0; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; }
.filters p { margin: 0; }
.filters button { align-self: end; margin-bottom: 1rem; }
.filters { margin-bottom: 1.25rem; }
.activity-actor { overflow-wrap: anywhere; }
.line-row { border: 1px solid var(--line); padding: 1rem; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 1rem; background: var(--panel); }
.line-row > .field { flex: 1 1 10rem; margin: 0; }
.line-row > .field:has(> input[type="checkbox"]) { flex: 0 1 7rem; }
.line-row > details { flex-basis: 100%; }
.line-table { min-width: 720px; position: relative; }
.line-table .line-row { display: table-row; border: 0; }
.line-table td:nth-child(1) { width: 30%; }
.line-table td:nth-child(2) { width: 34%; }
.line-table td.amount { width: 14%; white-space: normal; }
.line-table .amount input { text-align: right; }
.line-table .errorlist { text-align: left; padding-left: 1rem; margin: .4rem 0 0; }
input[type=checkbox], input[type=radio] { width: auto; }



.document-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.document-original { position: sticky; top: 1rem; }
.document-preview { width: 100%; height: 38rem; border: 1px solid var(--muted); background: var(--panel); }
@media (max-width: 60rem) {
  .document-workspace { grid-template-columns: minmax(0, 1fr); }
  .document-original { position: static; }
  .document-preview { height: 24rem; }
}

.administration-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); max-width: 1440px; margin: auto; }
.administration-sidebar { padding: 1.8rem 2rem; background: var(--panel); border-right: 1px solid var(--line); min-width: 0; }
.sidebar-identity { overflow-wrap: anywhere; margin: 0 0 1rem; }
.sidebar-identity span { display: block; color: var(--muted); font-size: .85rem; }
.sidebar-menu > summary { cursor: pointer; }
.sidebar-menu nav { display: block; padding: 0; }
.sidebar-menu ul { list-style: none; padding: 0; margin: 0; }
.sidebar-menu h2 { font-size: .85rem; color: var(--muted); margin: 1.3rem 0 .4rem; }
.sidebar-menu a { display: block; color: var(--text); padding: .4rem .65rem; border-radius: .3rem; text-decoration: none; overflow-wrap: anywhere; }
.sidebar-menu a:hover { background: var(--notice); }
.sidebar-menu a[aria-current] { font-weight: 650; background: var(--notice); }
.administration-layout main { margin: 0; width: 100%; min-width: 0; overflow-wrap: anywhere; }
.administration-layout input, .administration-layout select, .administration-layout textarea { min-width: 0; max-width: 100%; }
@supports selector(::details-content) {
  @media (min-width: 721px) {
    .sidebar-menu > summary { display: none; }
    .sidebar-menu::details-content { content-visibility: visible; }
  }
}
@media (max-width: 720px) {
  .administration-layout table { display: block; overflow-x: auto; overflow-wrap: normal; }
  .administration-layout { display: block; }
  .administration-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.2rem; }
  .administration-layout .columns { grid-template-columns: minmax(0, 1fr); }
  .metadata { grid-template-columns: minmax(0, 1fr); }
}

.notice.success { border-color: var(--success); }
.notice.error { border-color: var(--danger); }
.status[data-status="pass"], .status[data-status="clear"], .status[data-status="resolved"],
[data-health-status="Consistent"] h2, [data-health-status="Reconciled"] h2 { color: var(--success); }
.status[data-status="unknown"], .status[data-status="open"],
[data-health-status="Suspected"] h2, [data-health-status="Stale"] h2, [data-health-status="Unknown"] h2 { color: var(--warning); }
.status[data-status="fail"], .status[data-status="blocked"], .anomaly,
[data-health-status="Exception"] h2 { color: var(--danger); }
/* Navigation, forms and repeated records have their own hierarchy. */
header nav > a:not(.brand), .account-menu a, .actions a:not(.button),
.administrations a, table a:not(.button), .record-list a { color: var(--text); text-decoration: none; }
header nav > a:hover, .account-menu a:hover, .actions a:not(.button):hover,
.administrations a:hover, table a:not(.button):hover, .record-list a:hover,
header nav > a:focus-visible, .account-menu a:focus-visible, .actions a:focus-visible,
.administrations a:focus-visible, table a:focus-visible, .record-list a:focus-visible { text-decoration: underline; }
form > p, form > .field, form > ul.errorlist, form > .helptext,
form > fieldset > .field, form > fieldset > p { max-width: 36rem; }
.field { max-width: 36rem; margin: 0 0 1rem; }
.field label, .choice-field legend { font-size: .9rem; }
.choice-field legend { font-weight: 600; margin-bottom: .3rem; }
.choice-field label { display: flex; gap: .6rem; align-items: baseline; font-weight: 450; }
.field:has(> input[type="checkbox"]), .field:has(> input[type="radio"]) { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .6rem; }
.field:has(> input[type="checkbox"]) label, .field:has(> input[type="radio"]) label { display: inline; flex: 1; min-width: 0; font-weight: 450; }
.field > .helptext, .field > .errorlist { flex-basis: 100%; }
.helptext { display: block; margin-top: .3rem; color: var(--muted); font-size: .85rem; }
.helptext ul { padding-left: 1.2rem; margin: .3rem 0; }
.errorlist { padding-left: 1.2rem; margin: .35rem 0; }
input:not([type="checkbox"]):not([type="radio"]), select { min-height: 44px; }
input[type="checkbox"], input[type="radio"] { flex: 0 0 auto; }
button.primary, .button.primary { background: var(--accent); color: var(--accent-contrast); border-color: var(--link); border-radius: 100px; }
.history-list article { padding: .2rem 0 1rem; border-bottom: 1px solid var(--line); }
.history-list a { color: var(--text); text-decoration: none; }
.history-list a:hover, .history-list a:focus-visible { text-decoration: underline; }
button:hover, .button:hover { filter: brightness(.96); }
table form { margin: 0; }
table form p:has(input[type="hidden"]):not(:has(label)) { margin: 0; }
button.row-action, .button.row-action { min-height: 32px; padding: .2rem .4rem; border: 0; border-radius: .2rem; background: transparent; color: var(--text); font-size: .85rem; font-weight: 450; }
button.row-action:hover, button.row-action:focus-visible { text-decoration: underline; background: var(--notice); }
button.row-action.danger:hover, button.row-action.danger:focus-visible { color: var(--danger); }
.status { display: inline-block; font-size: .8rem; font-weight: 550; line-height: 1.5; }
.status-line, .muted { color: var(--muted); }
.status-line { font-size: .85rem; margin: -.7rem 0 1.3rem; }
.record-list, .attention-list { list-style: none; padding: 0; margin: .6rem 0 1.6rem; }
.record-list li, .attention-list li { border-bottom: 1px solid var(--line); padding: .65rem 0; }
.record-list .status { display: block; }
.attention-list li { padding: 0; }
.attention-list li:not(:has(a)) { padding: .65rem .6rem; }
.attention-list a, .administrations a { position: relative; display: flex; align-items: baseline; gap: .8rem; min-height: 48px; padding: .65rem 2rem .65rem .6rem; border-radius: .3rem; color: var(--text); text-decoration: none; }
.administrations a { display: block; }
.attention-list a::after, .administrations a::after { content: ""; position: absolute; right: .8rem; top: calc(50% - .2rem); width: .4rem; height: .4rem; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg); }
.attention-list a:hover, .attention-list a:focus-visible,
.administrations a:hover, .administrations a:focus-visible { background: var(--notice); }
.attention-list a:hover, .attention-list a:focus-visible { text-decoration: underline; }
.attention-list strong { min-width: 2ch; text-align: right; }
.page-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.3rem; }
.page-heading h1 { margin: 0; }
.page-heading .actions { margin: 0; }
.steps { padding: 0; margin: 0 0 2rem; max-width: none; }
.steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem 1rem; list-style: none; padding: 0; margin: 0; width: 100%; }
.steps a { display: block; color: var(--text); text-decoration: none; padding: .6rem 0; border-bottom: 2px solid var(--line); }
.steps a[aria-current="step"] { border-color: var(--link); font-weight: 650; }
.steps a:hover, .steps a:focus-visible { text-decoration: underline; }
.steps .status { display: block; color: var(--muted); }
.guide h2 > .status { margin-left: .65rem; vertical-align: middle; color: var(--muted); }
.filing-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; margin: 1.4rem 0 .6rem; }
.filing-heading h3 { margin: 0; }
.filing-heading .status { color: var(--muted); }
.anomaly .muted { display: block; }
.guide > section { border-top: 1px solid var(--line); padding-top: .4rem; margin-top: 2rem; }
.guide > section h2 { margin-top: 1rem; }
details > summary { cursor: pointer; padding: .5rem 0; }
details > details, details > form { margin-top: .75rem; }
.migration-guidance { font-size: .85rem; border-bottom: 1px solid var(--line); padding: 0 0 1rem; }
.migration-guidance p { margin: .35rem 0; }
.administrations { margin-top: 0; }

.card > h2:first-child, .columns > section > h2:first-child { margin-top: 0; }
@media (max-width: 720px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.5rem; }
  header nav > a, .account-menu summary, .account-menu a, .sidebar-menu a, .steps a,
  .actions a, .record-list a, .administrations a { min-height: 48px; display: inline-flex; align-items: center; }
  .sidebar-menu a, .record-list a { display: flex; }
  .administrations a { display: block; }
  button.row-action, .button.row-action { min-height: 48px; }
  input:not([type="checkbox"]):not([type="radio"]), select { min-height: 48px; }
  .choice-field label { min-height: 48px; }
  .field:has(> input[type="checkbox"]) label, .field:has(> input[type="radio"]) label { min-height: 48px; display: inline-flex; align-items: center; }
  .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps a { display: block; }
  .filters { display: block; }
  .filters .field { margin-bottom: .8rem; }
  .auth-layout a, footer a, .helptext a { display: inline-flex; min-height: 48px; align-items: center; }
  .brand { font-size: 1.1rem; }
  nav { gap: .6rem; }
  .administration-sidebar { padding: 1rem 1.2rem; }
  .sidebar-identity { margin-bottom: .3rem; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --panel: #fff; --text: #000; --muted: #000; --line: #000; --accent: #fff; --accent-contrast: #000; --link: #000; --notice: #fff; --success: #000; --warning: #000; --danger: #000; --link-on-notice: #000; }
  header, .administration-sidebar, .skip { display: none; }
  .administration-layout { display: block; }
  main { max-width: none; padding: 0; }
  .table-scroll, .administration-layout main { overflow: visible; }
  .administration-layout table { display: table; }
}

.mobile-label { display: none; }
@media (max-width: 720px) {
  .administration-layout table.vat-setup { display: block; overflow: visible; }
  .vat-setup thead { display: none; }
  .vat-setup tbody, .vat-setup tr, .vat-setup td { display: block; }
  .vat-setup tr { border: 1px solid var(--line); margin: 1rem 0; padding: .6rem; }
  .vat-setup td { border: 0; padding: .3rem; }
  .vat-setup .mobile-label { display: block; font-weight: 600; }
}
.return-lines { min-width: 76rem; overflow-wrap: normal; }
.return-lines td:nth-child(4) { min-width: 22rem; }
.return-lines td:nth-child(1), .return-lines td:nth-child(2),
.return-lines td:nth-child(6), .return-lines td:last-child { white-space: nowrap; }
