/* ================================
   ROOT VARIABLES
================================ */
:root {
    --ink:     #0f1117;
    --soft:    #6b7280;
    --faint:   #9ca3af;
    --line:    #e5e7eb;
    --bg-soft: #f9fafb;
    --white:   #ffffff;

    --mono: Consolas, "Courier New", monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ================================
   RESET
================================ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul        { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* ================================
   BASE TYPOGRAFI
================================ */
body {
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.5em;
    letter-spacing: 0;
    color: #777;
    background-color: white;
    text-align: left;
}

h1 {
    font-size: 1.5em;

    margin-bottom: 1.2em;
    font-weight: 600;
    color: #111;
}

h2 {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 1em;
}

h3 {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 0.3em;
}

i, em  { font-style: italic; }
strong { font-weight: bold; }

p {
    text-align: left;
    padding-bottom: 0.9em;
    display: block;
    margin-top: 0.6em;
    margin-bottom: 0;
}


/* ================================
   LAYOUT
================================ */
#megawrapper {
    width: 1140px;
    min-height: 400px;
    margin: 0 auto;
}

#header {
    background-color: #799b28;
    margin-top: 2em;
}

.wrapperTop {
    width: 1140px;
    margin: 1.2em auto;
}

.wrapper {
    width: 1140px;
    margin: 0 auto;
}

#wrapperSkema { width: 96%; }

.contentSkema {
    width: 96%;
    padding: 0 2%;
}

.content, #content {
    width: 70%;
    float: right;
}

.contentLeft {
    width: 70%;
    float: left;
}

.contentRight {
    width: 27%;
    float: right;
}

.content100 { width: 100%; }

.content ul {
    list-style: square;
    padding-left: 2.3em;
    padding-top: 0.3em;
    margin-bottom: 2em;
}

.content h1, .wrapper100 h1 { width: 100%; }

/* ================================
   SIDEBAR / ASIDE
================================ */
#aside {
    width: 21%;
    min-height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 24px 0;
    font-family: var(--sans);
    float: left;
    margin-right: 5%;
}

#aside nav ul {
    list-style: none !important;
    padding: 0 12px !important;
    margin: 0 !important;
}

#aside nav ul li {
    margin-bottom: 2px !important;
}

#aside nav ul li a {
    display: block !important;
    padding: 10px 14px !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

#aside nav ul li a:hover,
#aside nav ul li a.active {
    color: #111827 !important;
    background-color: #f3f4f6 !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
    padding-left: 18px !important;
}

/* ================================
   HJÆLPE-KLASSER
================================ */
.venstre { float: left; }
.hojre   { float: right; padding-top: 0.9em; }
.graa    { color: gray; }
.cb      { clear: both;  line-height: 1px; }
.cl      { clear: left;  line-height: 1px; }
.cr      { clear: right; line-height: 1px; }

.navn {
    width: 50%;
    float: right;
    text-align: right;
    margin-top: 1em;
}
.navn h2  { font-size: 2em; }
.navn p   { text-align: right; }

#header .wrapper p {
    text-align: right;
    color: white;
    padding: 0.6em 0;
}

/* ================================
   PRINT-KNAP
================================ */
.wrapper #printknap,
.wrapper100 #printknap,
.content100 #printknap {
    float: right;
}
.wrapper #printknap     { width: 4%; }
.wrapper100 #printknap  { width: 2.7%; }
.content100 #printknap  { width: 3%; }

.wrapper #printknap img,
.wrapper100 #printknap img,
.content100 #printknap img {
    max-width: 100%;
    height: auto;
}

.print {
    background-image: url('/images/print-icon.png');
    background-repeat: no-repeat;
    cursor: pointer;
    -webkit-appearance: none;
}

/* ================================
   SKEMA / TABLE
================================ */
#skema table {
    width: 100%;
    border: 2px solid #333;
    border-collapse: collapse;
}

#skema td {
    border: 1px solid #333;
    padding: 8px;
}

#skema colgroup col:first-child { width: 30%; }
#skema colgroup col:last-child  { width: 70%; }

/* ================================
   FOOTER
================================ */
footer {
    background-color: #333;
    color: #fff;
}

/* ================================
   SELECT PLACEHOLDER
================================ */
select:required:invalid { color: gray; }
option[value=""][disabled] { display: none; }
option { color: black; }

/* ================================
   GLOBALE FORM-STYLES
================================ */
form { max-width: 800px; }

form label {
    display: inline-block;
    width: 300px;
    padding-right: 15px;
    font-weight: 500;
    vertical-align: top;
    font-family: var(--sans);
    color: #111827;
    margin-bottom: 6px;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="date"],
form input[type="time"],
form input[type="password"],
form textarea,
form select {
    width: calc(100% - 320px);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 2em;
    font-family: var(--sans);
    font-size: 16px;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

form textarea { min-height: 80px; }

/* Checkbox & Radio */
form input[type="checkbox"],
form input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #4caf50;
    vertical-align: middle;
}

form label:has(input[type="checkbox"]),
form label:has(input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #e8f5e9;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    width: 80%;
}

form label:has(input[type="checkbox"]):hover,
form label:has(input[type="radio"]):hover  { background: #d0f0d6; }

form label:has(input[type="checkbox"]:checked),
form label:has(input[type="radio"]:checked) {
    background: #c8e6c9;
    font-weight: 500;
}

/* Form buttons */
form button[type="submit"],
form input[type="submit"],
form .btn-primary {
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    background: #4caf50;
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1em;
    min-width: 100%;
}

form button[type="submit"]:hover,
form input[type="submit"]:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
}

form button[type="button"],
form .btn-secondary {
    padding: 18px 24px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
}

form button[type="button"]:hover,
form .btn-secondary:hover {
    background: #f5f5f5;
    border-color: #999;
}

form .btn-danger {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    background: #d32f2f;
    color: white;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
}

form .btn-danger:hover {
    background: #c62828;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(211, 47, 47, 0.3);
}

form button[type="button"],
form #gem-knap {
    padding: 14px 24px !important;
    border: none !important;
    border-radius: 6px !important;
    background: #4caf50 !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-bottom: 1em !important;
    min-width: 100% !important;
}
/* ================================
   SETTINGS TABLE
================================ */
.settings-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-family: var(--sans);
    font-size: 16px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.settings-table th,
.settings-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.settings-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.settings-table tr:last-child td { border-bottom: none; }
.settings-table tr:hover td      { background-color: #f8fafc; }

.settings-label { color: #111827; }

.settings-help {
    display: block;
    margin-top: 3px;
    font-size: 14px;
    color: #6b7280;
}

.settings-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

.settings-table td.checkbox-cell,
.settings-table th.checkbox-cell {
    text-align: center;
    width: 80px;
}

/* ================================
   SELECT#COMPUTER
================================ */
select#computer {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 16px;
    color: #111827;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    margin-bottom: 16px;
    cursor: pointer;
}

select#computer:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ================================
   SUBMIT BUTTON (global)
================================ */
button[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* ================================
   FORM-ROW
================================ */
.form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    margin-right: 2em;
}

.form-row > label {
    width: 300px;
    padding-right: 15px;
    font-weight: 500;
}

.form-row input[type="text"],
.form-row textarea,
.form-row select {
    flex: 1;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: 0.2s ease;
}

.form-row input[type="text"]:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 3px #4caf50;
}

.form-row input[type="text"],
.form-row textarea { min-height: 21px; }

/* ================================
   MEDARBEJDER CHECKBOX
================================ */
.checkbox-column { flex: 1; }

.medarbejder-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #e8f5e9;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    width: 300px;
}

.medarbejder-checkbox:hover { background: #d0f0d6; }

.medarbejder-checkbox input[type="checkbox"] {
    transform: scale(1.4);
    margin-right: 10px;
    cursor: pointer;
}

.medarbejder-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
}

/* ================================
   LINK / KNAP UTILITIES
================================ */
.link-button {
    background: none;
    border: none;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.knapLink {
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
    color: #8f1f08;
    background: transparent;
    font: inherit;
    line-height: normal;
    text-decoration: underline;
    cursor: pointer;
}

.knap {
    width: 3em;
    height: 2em;
    background-color: white;
    color: black;
    float: right;
}

/* ================================
   REDIGER-WRAP (komponent)
================================ */
.rediger-wrap {
    font-family: var(--sans);
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ink);
}

.topbar h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: var(--ink);
    margin: 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--soft);
    text-decoration: none;
    transition: color 0.15s;
}

.back-btn:hover { color: var(--ink); }

.uid-tag {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--faint);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.sektion { margin-bottom: 24px; }

.sektion-titel {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--faint);
    margin-bottom: 10px;
    padding-left: 2px;
}

/* ================================
   FELT-GRID
================================ */
.felt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 20px;
}

.felt-grid .fuld { grid-column: 1 / -1; }

.felt {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.felt label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--soft);
    width: auto;
    display: block;
    margin-bottom: 0;
    padding-right: 0;
}

.felt input[type="text"] {
    font-family: var(--mono);
    font-size: 13px;
    padding: 9px 13px;
    border: 1.5px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.felt input[type="text"]:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(15,17,23,0.06);
}

.felt input[readonly] {
    background: var(--bg-soft);
    color: var(--faint);
    border-style: dashed;
    cursor: not-allowed;
}
.felt select.readonly {
    pointer-events: none;       /* forhindrer klik */
   
    cursor: not-allowed;
    appearance: none;           /* fjerner OS standard */
        background: var(--bg-soft);
    color: var(--faint);
    border-style: dashed;
    cursor: not-allowed;
}

.felt select {
    font-family: var(--sans);
    font-size: 14px;
    padding: 9px 36px 9px 13px;
    border: 1.5px solid var(--line);
    border-radius: 7px;
    background: var(--white) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 10px center;
    background-size: 18px;
    color: var(--ink);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.felt select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(15,17,23,0.06);
}

/* ================================
   BUTTON BAR
================================ */
.gem-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 8px;
    align-items: stretch;
}

.btn-gem,
.btn-annuller {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-gem {
    background: var(--ink);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-gem:hover { background: #374151; }

.btn-annuller {
    background: transparent;
    color: var(--soft);
    border: 1.5px solid var(--line);
    font-weight: 500;
}

.btn-annuller:hover {
    border-color: var(--ink);
    color: var(--ink);
}

/* ================================
   COMPUTER LISTE (TABLE)
================================ */
.computer-liste {
    font-family: var(--sans);
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
}

.liste-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    border-bottom: 2px solid #111;
}

.liste-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #111;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
}

.computer-tabel {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid #e5e7eb;
}

.computer-tabel thead {
    background: #111;
    color: white;
}

.computer-tabel th,
.computer-tabel td {
    padding: 14px 16px;
    font-size: 14px;
}

.computer-row:hover { background: #f8fafc; }

.detail-row {
    display: none;
    background: #f8fafc;
}

.detail-row.open { display: table-row; }

.detail-inner {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.type-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    border: 1.5px solid currentColor;
}

.btn-rediger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: #111;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}

.btn-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
}

/* ================================
   SPECS GRID
================================ */
.minimal-specs {
    max-width: 100%;
    margin: 30px 0;
    font-family: var(--sans);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    padding: 32px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.specs-field { margin-bottom: 18px;margin-top:18px; }
.specs-field:last-child { margin-bottom: 0; }

.specs-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0;
}

.specs-value {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.label-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    width: 100%;
}

.label-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4caf50;
    cursor: pointer;
    flex-shrink: 0;
}

.label-checkbox-row span {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

/* ================================
   RESERVEDELE
================================ */
.reservedele-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    max-width: 100%;
}

.reservedele-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.reservedele-item:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.reservedele-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4caf50;
    cursor: pointer;
    flex-shrink: 0;
}

.reservedele-item input[type="checkbox"]:checked + .reservedele-label {
    font-weight: 600;
    color: #14532d;
}

.reservedele-label {
    flex: 1;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

/* ================================
   STATUS BADGES & KLASSER
================================ */

/* Generisk status-wrapper */
.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1.5px solid currentColor;
}

/* Grøn – færdig / aktiv / ok */
.status-done,
.status-aktiv,
.status-ok {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dcfce7;
    color: #166534;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.status-done::before,
.status-aktiv::before,
.status-ok::before {
    content: "✓";
    font-size: 18px;
    font-weight: bold;
}

/* Gul – afventer / todo / under behandling */
.status-todo,
.status-afventer,
.status-pending,
.status-i-gang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    color: #92400e;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.status-todo::before,
.status-afventer::before,
.status-pending::before,
.status-i-gang::before {
    content: "✗";
    font-size: 18px;
    font-weight: bold;
}

/* Rød – fejl / inaktiv / udgået */
.status-fejl,
.status-inaktiv,
.status-udgaaet,
.status-error {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fee2e2;
    color: #991b1b;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Blå – info / ny */
.status-info,
.status-ny {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

/* Grå – ukendt / ikke sat */
.status-ukendt,
.status-ingen {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
}

/* Readonly celle i tabel */
.readonly-cell {
    background: #f8fafc;
    color: #6b7280;
}

/* ================================
   UPLOAD BOX
================================ */

.upload-box {
    border: 2px dashed #ccc;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
}

.upload-box input[type="file"] {
    margin: 20px 0;
}

.upload-box button {
    background: #4caf50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: auto;
    min-width: unset;
    transform: none;
    box-shadow: none;
}

.upload-box button:hover {
    background: #45a049;
    transform: none;
    box-shadow: none;
}

.message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* ================================
   COMPUTER LISTE – UDVIDEDE STATES
================================ */

/* Antal-tæller i header */
.liste-header .antal {
    font-family: var(--mono);
    font-size: 13px;
    color: #6b7280;
}

/* Aktiv række (åben detalje) */
.computer-row.active {
    background: #f0f9ff;
    border-bottom: none;
}

/* TD-kolonnetyper */
.computer-row td.uid {
    font-family: var(--mono);
    font-size: 12px;
    color: #6b7280;
}

.computer-row td.produktnavn {
    font-weight: 600;
    color: #111;
}

.computer-row td.cpu {
    font-size: 13px;
    color: #4b5563;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Toggle-knap */
.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    margin: 0 auto;
    transition: all 0.2s;
    cursor: pointer;
}

.computer-row.active .toggle-btn {
    background: #111;
    border-color: #111;
    color: #fff;
    transform: rotate(180deg);
}

/* Detail-felt indeni detaljerækken */
.detail-felt {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    font-family: var(--mono);
}

/* Knap-række i detalje */
.detail-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
}

/* Ingen resultater */
.ingen-resultater {
    text-align: center;
    padding: 48px 16px;
    color: #9ca3af;
    font-size: 14px;
    display: none;
}

textarea.fuld {
    width: 100% !important;
    box-sizing: border-box;
}

.computer-row:hover {
    background-color: #f3f4f6;
}
/* ================================
   RESPONSIVE
================================ */
@media screen and (max-width: 1140px) {
    .wrapper, .wrapperTop { width: 100%; }
}

@media (max-width: 900px) {
    .reservedele-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 32px 0;
        padding: 24px;
    }

    .felt-grid    { grid-template-columns: 1fr; }
    .detail-inner { grid-template-columns: repeat(2, 1fr); }

    .computer-tabel thead th.hide-mobile,
    .computer-row td.hide-mobile { display: none; }
    .topbar       { flex-wrap: wrap; }
    .uid-tag      { margin-left: 0; }
}

@media (max-width: 600px) {
    .reservedele-box {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    .reservedele-item  { padding: 10px; }
    .reservedele-label { font-size: 15px; }
}

/* ================================
   PRINT
================================ */
@media print {

    @page:first {
        size: A4 portrait;
        margin-top: 0cm;
        margin-left: 1.5cm;
        margin-right: 1.5cm;
        margin-bottom: 1.5cm;
    }

    @page {
        size: A4 portrait;
        margin-top: 3cm;
        margin-left: 1.5cm;
        margin-right: 1.5cm;
        margin-bottom: 1.5cm;
    }

    body {
        font-family: 'Georgia', serif;
        font-size: 11pt;
    }

    body * { visibility: hidden; text-align: left; }

    .section-to-print * {
        position: relative;
        visibility: visible;
        text-align: left;
        margin: 0;
        width: 90%;
        float: none;
        background-color: blue;
    }

    .wrapper { width: 100%; margin: 0; }

    .wrapperTop, #header, pre { display: none; }
    #aside  { display: none; float: none; }
    .content, .content100 { width: 100%; }

    .section-to-print .imghv {
        width: 100%;
        float: right;
        display: block;
        margin-bottom: 1.2em;
    }

    #megawrapper .content .imghv img,
    #megawrapper .content100 .imghv img {
        display: block;
        min-height: 45px;
        width: auto;
    }

    #megawrapper .wrapper .content h3,
    #megawrapper .wrapper .content100 h3 {
        break-before: always;
        margin-top: 1em;
        break-after: avoid;
    }

    .rodtekst { color: #cc3300; }

    h1 {
        font-size: 1.5em;
        font-weight: bold;
        margin-bottom: 12pt;
        line-height: 2em;
    }

    h2 {
        font-size: 1.2em;
        font-weight: bold;
        margin-bottom: 12pt;
        line-height: 2em;
    }

    h1, h2, h3       { page-break-after: avoid; }
    .content h3       { page-break-after: avoid; }
    .content strong   { font-weight: bold; }
    .before           { page-break-before: always; }
    .overfor          { background-color: white; }
    .not              { display: none; }

    .content .v, .content100 .v {
        width: 50%;
        float: left;
        font-style: italic;
        display: block;
    }

    .content .h, .content100 .h {
        width: 50%;
        float: right;
        text-align: right;
        font-style: italic;
        display: block;
    }

    .contentLeft, .contentRight {
        width: 100%;
        float: none;
    }

    #skema table td:nth-child(1) { width: 30%; }
    #skema table td:nth-child(2) { width: 70%; }

    button, #printknap {
        display: none;
        visibility: hidden;
    }

    a::after {
        content: " (" attr(href) ") ";
        font-size: 90%;
    }

    p { orphans: 3; widows: 2; }

    .sammen {
        position: relative;
        display: block;
        page-break-inside: avoid !important;
    }

    .sammen:after {
        content: '';
        display: block;
        height: 0;
        visibility: hidden;
    }
}

/* ================================
   FEJLBESKED
================================ */

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* ================================
   PDF OVERSIGT
================================ */

.pdf-tabel {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 16px;
}

.pdf-tabel thead tr {
    background: var(--ink);
    color: #fff;
}

.pdf-tabel thead th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.pdf-tabel tbody tr {
    border-bottom: 1px solid var(--line);
    transition: background 0.15s;
}

.pdf-tabel tbody tr:last-child {
    border-bottom: none;
}

.pdf-tabel tbody tr:hover {
    background: var(--bg-soft);
}

.pdf-tabel td {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    vertical-align: middle;
}

.pdf-tabel td a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.15s, color 0.15s;
}

.pdf-tabel td a::before {
    content: "📄";
    font-size: 14px;
}

.pdf-tabel td a:hover {
    color: #2563eb;
    border-color: #2563eb;
}

.pdf-tabel td.ref-col {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--faint);
}

.pdf-tabel td.dato-col {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--soft);
    white-space: nowrap;
}

.pdf-antal {
    font-size: 13px;
    color: var(--soft);
    margin-top: 12px;
    font-family: var(--mono);
}

/* ================================
   GENEREL TABEL (indenfor .content)
   Bruges af simple PHP-sider som
   pdf_oversigt.php, lister mv.
================================ */

.content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.content th {
    background: #4caf50;
    color: white;
    padding: 10px 12px;
    text-align: left;
}

.content td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
}

.content tr:hover td {
    background: #f5f5f5;
}

.content a {
    color: #4caf50;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}
