:root {
    --color-primary: #244b3b;
    --color-primary-dark: #19382c;
    --color-primary-light: #e8f0eb;
    --color-accent: #8aa995;
    --color-background: #f2f5f3;
    --color-surface: #ffffff;
    --color-surface-muted: #f7f9f7;
    --color-text: #26332c;
    --color-text-muted: #68766e;
    --color-border: #dce4de;
    --color-success: #287a4b;
    --color-success-bg: #e8f5ec;
    --color-warning: #946200;
    --color-warning-bg: #fff5d9;
    --color-danger: #a83232;
    --color-danger-bg: #fceaea;
    --color-info: #245d86;
    --color-info-bg: #e9f3fa;
    --background: #f3f5f2;
    --surface: #ffffff;
    --text: #26332d;
    --muted: #6c7871;
    --primary: #315b46;
    --primary-hover: #244634;
    --border: #e1e7e2;
    --accent: #e7efe9;
    --radius: 14px;
    --shadow: 0 3px 12px rgba(30, 50, 38, 0.05);
    --sidebar-width: 250px;
    --topbar-height: 70px;
    --radius-small: 6px;
    --radius-medium: 10px;
    --radius-large: 16px;
    --shadow-small: 0 2px 8px rgba(25,56,44,.06);
    --shadow-medium: 0 6px 22px rgba(25,56,44,.10);
    --transition: 160ms ease;
}

/* Grundlæggende */
* { box-sizing: border-box; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: none; }
html { min-height: 100%; scroll-behavior: smooth; }
body {min-height: 100vh; margin: 0; background: var(--color-background); color: var(--color-text); font: 15px/1.6 Arial, Helvetica, sans-serif;}
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1,h2,h3,h4 { margin-top: 0; color: var(--color-text); line-height: 1.25; }
h1 { margin-bottom: 10px; font-size: clamp(1.6rem,3vw,2rem); }
h2 { margin-bottom: 12px; font-size: 1.35rem; }
h3 { margin-bottom: 10px; font-size: 1.1rem; }
p { margin-top: 0; }

.page_main {min-height: 100vh; margin-left: var(--sidebar-width); }
.page_layout {min-height: 100vh; }
.page_content {width: 100%; max-width: 1500px; margin: 0 auto; padding: 28px; }
.grid_2c {display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-bottom: 20px;}
.grid_3c {display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;}
.grid_4c {display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 20px;}
.grid_5c {display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; margin-bottom: 20px;}
.grid_6c {display: grid; grid-template-columns: repeat(6,1fr); gap: 18px; margin-bottom: 20px;}

/* Menu i venstre side og øverste topbar på hovedsiden */ 
.sidebar {position: fixed; z-index: 100; inset: 0 auto 0 0; display: flex; width: var(--sidebar-width); flex-direction: column; overflow-y: auto; background: var(--color-primary); color: #fff;}
.sidebar_user_login {display: grid; grid-template-columns: auto 2fr; align-items: center; gap: 16px; margin-bottom: 20px;}
.sidebar_brand {display: flex; min-height: var(--topbar-height); align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.13); color: #fff; font-size: 1.25rem; font-weight: 700;}
.sidebar_brand:hover { color: #fff; text-decoration: none; }
.sidebar_brand img { width: 38px; height: 38px; object-fit: contain; }
.sidebar_brand_icon {display: grid; place-items: center; width: 43px; height: 43px; border-radius: 25px;}
.sidebar_nav_heading {margin: 0 10px 10px; color: #d5e3d9; font-size: 11px; font-weight: bold; letter-spacing: 1.2px; text-transform: uppercase;}
.sidebar_nav_icon {width: 23px; text-align: center; font-size: 19px;}
.sidebar_nav {display: flex; flex: 1; flex-direction: column; gap: 5px; padding: 20px 12px;}
.sidebar_footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.72); font-size: .85rem;}
.sidebar_nav .nav_section_title {margin: 20px 12px 7px; color: rgba(255,255,255,.58); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;}
.sidebar_nav a {display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px;  border-radius: var(--radius-medium); color: rgba(255,255,255,.88); transition: background var(--transition),color var(--transition);}
.sidebar_nav a:hover,.sidebar_nav a.active { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }

.topbar {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px) minmax(0, 1fr); align-items: center; gap: 20px; min-height: var(--topbar-height); padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-small);}
.topbar-heading {min-width: 0; display: flex; flex-direction: column; gap: 4px;}
.topbar-info {margin: 0; font-size: 0.9rem; color: #64736b;}
.topbar-message {display: flex; justify-content: center; align-items: center;}
.topbar-message .alert {margin: 0; text-align: center; max-width: 400px;}
.topbar-user {justify-self: end; text-align: right;}
.topbar-title { margin: 0; font-size: 1.1rem; font-weight: 700; }

.card {padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-large); background: var(--color-surface); box-shadow: var(--shadow-small); margin-bottom: 20px;}
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.card-header h2,.card-header h3 { margin: 0; }
.card-muted {background: var(--color-surface-muted); }
.card_grid {display: grid; grid-template-columns: repeat(2, 32px auto); gap: 18px; }

@media (max-width: 700px) {
.sidebar {width: 100%; padding: 17px;}
.sidebar_nav {display: flex; flex: 1; flex-direction: row; gap: 5px; padding: 1px 12px;}
.topbar {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px) minmax(0, 1fr); align-items: center; gap: 20px; min-height: var(--topbar-height); padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-small);}
.page_layout {min-height: 100vh; display: block;}
.page_main {min-height: 100vh; margin-left: 0px;}
.grid_3c {display: block; gap: 18px;}
.card {margin-bottom: 20px;}
}




.stat-card { padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-large); background: #fff; box-shadow: var(--shadow-small); }
.stat-label { display: block; margin-bottom: 7px; color: var(--color-text-muted); font-size: .9rem; }
.stat-value { display: block; color: var(--color-primary); font-size: 1.9rem; font-weight: 700; }
.stat-icon {width: 32px; height: 32px; font-size: 17px;}

.add_repair_label {width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--text); font: inherit;}



