/* ------------------------------------------------------------
   Dyrebase 2026 - grundlayout
   Variabler, reset, typografi, container og overordnet layout.
   ------------------------------------------------------------ */

:root {
    --red: #e30613;
    --red-dark: #a80710;
    --red-soft: #fff0f2;
    --blue: #c8dde4;
    --blue-soft: #edf7f9;
    --blue-light: #f7fbfc;
    --bg: #f5f8f9;
    --card: #ffffff;
    --ink: #172126;
    --muted: #66757c;
    --line: #dce7ea;
    --line-soft: #edf2f3;
    --green: #1f9d6a;
    --green-soft: #e8f7ef;
    --amber: #f2a900;
    --amber-soft: #fff5dd;
    --danger: #b00014;
    --danger-soft: #ffe8eb;
    --shadow: 0 18px 45px rgba(24, 45, 54, 0.10);
    --shadow-soft: 0 8px 22px rgba(20, 40, 50, 0.04);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    width: min(1280px, calc(100% - 56px));
    margin: 0 auto;
    padding: 28px 0;
    flex: 1 0 auto;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--red-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.035em;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 4vw, 35px);
    line-height: 1.06;
}

h2 {
    font-size: 20px;
    line-height: 1.15;
}

h3 {
    font-size: 16px;
    line-height: 1.2;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--red);
}

.dyb-header-inner {
    grid-template-columns: 300px minmax(420px, 1fr) 230px;
}

.dyb-small-note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.dyb-open-case {
    min-height: 36px;
    padding: 9px 14px;
}

.dyb-footer {
    width: min(1440px, calc(100% - 56px));
}

.dyb-current-process {
    display: block;
    margin: -2px 0 12px;
    color: var(--ink);
    font-size: 18px;
    letter-spacing: -0.025em;
}

:root {
    --dyb-side-column: 330px;
}

.audit-action-create,
.audit-action-login {
    background: rgba(42, 157, 105, 0.16);
}

.audit-action-update,
.audit-action-password-reset-link {
    background: rgba(44, 126, 189, 0.16);
}

.audit-action-delete,
.audit-action-close {
    background: rgba(227, 6, 19, 0.12);
}

.audit-action-reopen,
.audit-action-logout {
    background: rgba(242, 169, 0, 0.18);
}
