/* =====================================================
   AFDELING: GENERELLE STILREGLER
   ===================================================== */

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f4f4f4;
    color:#000;
}

.footer-bottom-page{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

body::before{
    content:"KUN TIL UNDERVISNINGSBRUG";
    position:fixed;
    inset:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#aebdd0;
    font-size:clamp(1.25rem, 6vw, 5rem);
    font-weight:bold;
    white-space:nowrap;
    opacity:0.1;
    transform:rotate(-25deg);
    pointer-events:none;
    user-select:none;
}

/* Øverste mørkeblå linje */

.topbar{
    height:16px;
    background:#13134a;
}

/* Forside-header */

.header{
    background:#17174a;
    color:white;
    height:90px;
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);
    align-items:center;
    padding:0 40px;
}

.logo{
    grid-column:2;
    justify-self:center;
    display:flex;
    align-items:center;
    gap:12px;
    font-size:42px;
    font-weight:bold;
    white-space:nowrap;
}

.header-symbol{
    display:block;
    width:44px;
    height:auto;
}

.user{
    grid-column:3;
    justify-self:end;
    text-align:right;
    font-size:14px;
}

@media (max-width:600px){
    .header{
        height:auto;
        min-height:90px;
        grid-template-columns:minmax(0, 1fr);
        gap:4px;
        padding:12px 16px;
    }

    .logo,
    .user{
        grid-column:1;
        justify-self:center;
        text-align:center;
    }

    .logo{
        font-size:clamp(24px, 8vw, 36px);
    }
}

/* Brødkrummer */

.breadcrumb{
    background:#d8d1d1;
    padding:10px 20px;
    font-size:14px;
}

/* Sideindhold */

.content{
    background:white;
    margin:0;
    padding:25px;
    min-height:500px;
}

.footer-bottom-page .content{
    flex:1;
    min-height:0;
}

.wizard-footer-page .content{
    padding-top:13px;
    padding-bottom:13px;
}

.toldsyn-footer-page .panel{
    padding:12px;
}

.toldsyn-footer-page .content{
    padding-top:0;
    padding-bottom:0;
}

.toldsyn-footer-page .wizard{
    margin-top:16px;
}

.toldsyn-footer-page .panel h2{
    margin-top:0;
    margin-bottom:6px;
}

.toldsyn-footer-page .panel > p{
    margin:8px 0;
}

.toldsyn-footer-page .checkboxrow{
    margin:16px 0;
}

.toldsyn-footer-page hr{
    margin:16px 0 12px;
}

.toldsyn-footer-page .bottomnav{
    margin-top:12px;
}

/* Advarselslinje */

.notice,
.warning{
    color:#444;
    margin-bottom:20px;
    font-size:14px;
}

.notice span{
    color:#d09b00;
    font-weight:bold;
}

/* Overskrifter */

h1{
    margin-top:0;
    font-size:22px;
}

h2{
    color:#0050aa;
    font-size:26px;
    margin-bottom:15px;
}


.intro{
    margin-bottom:15px;
}

/* Søgeboks på forsiden */

.search-box{
    border-top:1px solid #cfcfcf;
    margin-top:25px;
    padding-top:20px;
    max-width:800px;
}

.section-title{
    color:#0050aa;
    font-size:26px;
    margin-bottom:15px;
}

.radio-group{
    margin-bottom:20px;
}

.radio-group label{
    display:block;
    margin-bottom:10px;
}

.soege-info{
    margin-top:10px;
    padding:10px;
    background:#f8f9fa;
    border:1px solid #d0d7de;
    border-radius:4px;
    color:#333;
    font-size:14px;
}

/* AFDELING: GEMT KØRETØJ I SØGERESULTAT */
.saved-vehicle-search-result{
    margin:12px 0;
}

.saved-vehicle-result{
    padding:14px;
    border:1px solid #c7d3df;
    background:#f8f9fa;
}

.vehicle-archive-page .header .user{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:6px;
}

.user-menu-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
}

.user-menu-actions[hidden],
.user-menu-actions [hidden]{
    display:none !important;
}

.user-menu-link{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:0 12px;
    border:1px solid #8889b6;
    border-radius:4px;
    color:#fff;
    font-weight:bold;
    text-decoration:none;
}

.user-menu-link:hover,
.user-menu-link:focus-visible{
    background:#292967;
    border-color:#f6c400;
    color:#fff;
}

.home-page .header .user #roleTools{
    margin-top:6px;
}

.home-page .saved-vehicle-search-result .saved-vehicle-result{
    padding:20px;
    border:1px solid #d5deea;
    border-radius:8px;
    background:#fff;
    box-shadow:0 2px 8px rgba(23, 23, 74, .06);
}

.home-page .saved-vehicle-search-result .saved-vehicle-result h3{
    margin-bottom:12px;
    color:#17174a;
    font-size:20px;
    overflow-wrap:anywhere;
}

.home-page .saved-vehicle-search-result .saved-vehicle-result > p{
    color:#465367;
    line-height:1.45;
}

.home-page .saved-vehicle-search-result .saved-vehicle-result > p strong{
    color:#26344a;
}

.home-page .saved-vehicle-search-result .saved-vehicle-result details{
    margin-top:16px;
    padding-top:12px;
    border-top:1px solid #e1e6ee;
}

.home-page .saved-vehicle-search-result .saved-vehicle-result summary{
    padding:4px 0;
}

.archive-content{
    box-sizing:border-box;
    width:min(100%, 1160px);
    margin:0 auto;
    padding:36px 32px 48px;
}

.archive-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
    padding-bottom:22px;
    border-bottom:1px solid #e1e6ee;
}

.archive-eyebrow{
    margin:0 0 8px;
    color:#68758a;
    font-size:12px;
    font-weight:bold;
    letter-spacing:.12em;
}

.archive-heading h1{
    margin:0;
    color:#17174a;
    font-size:30px;
}

.archive-intro{
    margin:8px 0 0;
    color:#596579;
    line-height:1.5;
}

.archive-count{
    flex:none;
    margin:0 0 2px;
    padding:8px 12px;
    border-radius:20px;
    background:#eef2f8;
    color:#303b50;
    font-size:14px;
    font-weight:bold;
}

.archive-vehicle-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap:16px;
}

.vehicle-archive-page .saved-vehicle-result{
    min-width:0;
    padding:20px;
    border:1px solid #d5deea;
    border-radius:8px;
    background:#fff;
    box-shadow:0 2px 8px rgba(23, 23, 74, .06);
}

.vehicle-archive-page .saved-vehicle-result h3{
    margin-bottom:12px;
    color:#17174a;
    font-size:20px;
    overflow-wrap:anywhere;
}

.vehicle-archive-page .saved-vehicle-result > p{
    color:#465367;
    line-height:1.45;
}

.vehicle-archive-page .saved-vehicle-result > p strong{
    color:#26344a;
}

.vehicle-archive-page .saved-vehicle-result details{
    margin-top:16px;
    padding-top:12px;
    border-top:1px solid #e1e6ee;
}

.vehicle-archive-page .saved-vehicle-result summary{
    padding:4px 0;
}

.archive-empty-state{
    grid-column:1 / -1;
    padding:36px 24px;
    border:1px dashed #b8c4d5;
    border-radius:8px;
    background:#f8f9fc;
    text-align:center;
}

.archive-empty-state h2{
    margin:0 0 8px;
    color:#17174a;
    font-size:21px;
}

.archive-empty-state p,
.archive-loading{
    margin:0;
    color:#596579;
    line-height:1.5;
}

.saved-vehicle-result h3{
    margin:0 0 8px;
    color:#0050aa;
}

.saved-vehicle-result > p{
    margin:5px 0;
    overflow-wrap:anywhere;
}

.saved-vehicle-result details{
    margin-top:10px;
}

.saved-vehicle-result summary{
    color:#0050aa;
    font-weight:bold;
    cursor:pointer;
}

@media (max-width:700px){
    .archive-content{
        padding:28px 18px 36px;
    }

    .archive-heading{
        align-items:flex-start;
        flex-direction:column;
        gap:14px;
    }
}

@media (max-width:600px){
    .vehicle-archive-page .header .user{
        align-items:center;
    }

    .user-menu-actions{
        justify-content:center;
    }
}

.vehicle-archive-report-section{
    margin-top:12px;
    padding-top:8px;
    border-top:1px solid #e1e6eb;
}

.vehicle-archive-report-section h4{
    margin:0 0 6px;
}

.vehicle-archive-report-section p{
    margin:5px 0;
    overflow-wrap:anywhere;
}

/* Formularer */

.form-row{
    margin-top:15px;
    margin-bottom:15px;
}

.form-row label{
    display:inline-block;
    width:250px;
    vertical-align:top;
}

.form-row-control{
    display:inline-block;
    vertical-align:top;
}

input[type=text]{
    width:380px;
    height:26px;
    border:2px solid #444;
    padding-left:5px;
    box-sizing:border-box;
}

input[type=date]{
    width:180px;
    height:26px;
    border:2px solid #444;
    padding-left:5px;
    box-sizing:border-box;
}

select{
    width:300px;
    height:30px;
}

/* Bruges af koeretoej.html */

.two-col{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:40px;
}

.form-line{
    margin-bottom:10px;
}

.form-line label{
    display:inline-block;
    width:220px;
    vertical-align:top;
}

.section-divider{
    margin-top:20px;
    padding-top:20px;
    border-top:1px solid #c7d3df;
}

textarea{
    width:300px;
    height:80px;
    border:2px solid #444;
    resize:vertical;
}

.readonly-field{
    background:#f0f0f0;
}

.required{
    color:#cc0099;
    font-weight:bold;
}

.check-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:8px 40px;
}

.check-grid label{
    display:block;
    width:auto;
}

.small-input{
    width:120px !important;
}

.medium-input{
    width:200px !important;
}

.large-input{
    width:380px !important;
}

.save-row{
    text-align:right;
    margin-bottom:8px;
}

.bottomnav{
    display:flex;
    justify-content:flex-end;
    gap:6px;
    text-align:right;
    margin-top:20px;
}

/* Trinbjælke */

.wizard{
    display:flex;
    flex-wrap:wrap;
    margin-top:25px;
    border-bottom:1px solid #cfcfcf;
    padding-bottom:10px;
}

.step{
    padding:8px 12px;
    margin-right:4px;
    font-size:13px;
    font-weight:bold;
}

.active{
    background:#17174a;
    color:white;
}


/* Indholdsboks */

.panel{
    margin-top:20px;
    background:white;
    padding:15px;
    border:1px solid #d5d5d5;
}

/* Checkboksområde */

.checkboxrow{
    margin-top:50px;
    margin-bottom:40px;
    text-align:center;
}

/* Knapper */

button{
    background:#4b7696;
    color:white;
    border:none;
    padding:7px 20px;
    cursor:pointer;
    font-weight:bold;
}

button:hover{
    background:#3c627e;
}

/* Navigationsknapper nederst */
.bottomnav button{
    background:#d7e6f9;
    border:1px solid #9ab4d0;
    color:#004ea8;
    font-weight:normal;
}

.bottomnav button:hover{
    background:#c4daf7;
}

.completed{
    background:#dbe8ff;
    color:#0057c2;
    cursor:pointer;
}

.completed:hover{
    background:#c8dcff;
}

.wizard .step.available{
    cursor:pointer;
    text-decoration:underline;
}

.wizard .step.available:hover,
.wizard .step.available:focus-visible{
    background:#c8dcff;
    outline:2px solid #0057b8;
    outline-offset:-2px;
}

.wizard .step.locked{
    color:#9aa8b8;
    cursor:not-allowed;
}

/* Footer */

.footer{
    text-align:center;
    padding:20px;
    color:#666;
    font-size:12px;
    line-height:1.5;
    border-top:1px solid #d0d0d0;
}

.footer p{
    margin:4px auto;
    max-width:1100px;
}

/* Linjer */

hr{
    border:none;
    border-top:1px solid #d0d0d0;
    margin-top:40px;
    margin-bottom:20px;
}

/* fejl ved indtastning */

.fejlbesked{
    display:none;
    color:#cc0099;
    font-size:13px;
    margin-top:3px;
    font-weight:bold;
}

.form-line > .fejlbesked{
    margin-left:220px;
}

.fejl-felt{
    border:2px solid #cc0099 !important;
}
.section-box{
    border:1px solid #0057b8;
    margin-top:15px;
    padding:15px;
    background:#f8f8f8;
}

/* Motor og tekniske oplysninger */
.motorTable{
    width:100%;
    border-collapse:collapse;
}

.motorTable td{
    height:38px;
    padding:4px 8px;
    vertical-align:middle;
}

.motorTable .lbl{
    width:220px;
    line-height:20px;
    white-space:normal;
}

.motorTable .fld{
    width:300px;
    line-height:30px;
}

.motorTable input[type=text]{
    width:220px;
    height:26px;
    vertical-align:middle;
    box-sizing:border-box;
}

.motorTable select{
    width:220px;
    height:30px;
    vertical-align:middle;
}

.unit{
    white-space:nowrap;
}

.unit span{
    margin-left:6px;
}

.pluginHybrid{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.pluginHybrid div{
    display:flex;
    align-items:center;
    gap:6px;
}

/* Yderligere tekniske oplysninger */
.technical-details{
    margin-top:12px;
}

.technical-section + .technical-section{
    margin-top:12px;
    padding-top:8px;
    border-top:1px solid #d0dbe5;
}

.technical-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:28px;
}

.technical-column{
    min-width:0;
}

.technical-row{
    display:grid;
    grid-template-columns:minmax(220px, 42%) minmax(0, 1fr);
    gap:8px;
    align-items:center;
    min-height:46px;
}

.technical-row > label,
.technical-label{
    min-width:0;
    line-height:20px;
}

.technical-details input[type="text"],
.technical-details textarea{
    width:304px;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
}

.technical-details input[type="text"]{
    height:26px;
}

.technical-details select{
    width:300px;
    max-width:100%;
    min-width:0;
    height:30px;
    box-sizing:border-box;
}

.technical-details textarea{
    min-height:72px;
}

.technical-row-top{
    align-items:start;
}

.technical-row-top > label,
.technical-row-top > .technical-label{
    padding-top:5px;
}

.technical-control{
    display:grid;
    grid-template-columns:minmax(0, 304px) auto;
    gap:4px;
    align-items:center;
    min-width:0;
}

.technical-unit{
    white-space:nowrap;
}

.technical-subrow > label{
    padding-left:20px;
}

.technical-heading-row{
    min-height:46px;
    font-weight:bold;
}

.technical-checkbox{
    display:flex;
    align-items:center;
    gap:6px;
}

.technical-radio-group{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.technical-radio-group label{
    display:flex;
    align-items:center;
    gap:6px;
}

/* AFDELING: TEKNISKE OPLYSNINGER - FORMULARLAYOUT */
.technical-form [hidden]{
    display:none !important;
}

.technical-form hr{
    margin:20px 0;
    border-top-color:#c7d3df;
}

.technical-form .motorTable input[type="text"]{
    width:255px;
}

.technical-form .motorTable select{
    width:250px;
}

.technical-form .weight-columns{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
    align-items:start;
}

.technical-form .weight-column{
    width:100%;
}

.technical-form .technical-grid{
    gap:0;
}

.technical-form .technical-section + .technical-section{
    border-top-color:#c7d3df;
}

.technical-form .technical-row{
    grid-template-columns:minmax(0, 42.8%) minmax(0, 1fr);
    gap:8px;
    min-height:36px;
    align-items:start;
}

.technical-form .technical-details input[type="text"],
.technical-form .technical-details textarea{
    width:255px;
}

.technical-form .technical-details select{
    width:250px;
}

.technical-form .technical-control{
    grid-template-columns:minmax(0, 255px) auto;
}

.technical-form .motorTable .fejlbesked,
.technical-form .technical-row > .fejlbesked{
    margin:3px 0 0;
    line-height:16px;
}

.technical-form .technical-row > .fejlbesked{
    grid-column:2;
}

.technical-form .technical-heading-row{
    min-height:36px;
}

.technical-form .technical-row-top > label,
.technical-form .technical-row-top > .technical-label{
    padding-top:0;
}

/* Tilladelser og dispensationer */
.permit-panel{
    border:2px solid #0057b8;
}

.permit-section + .permit-section{
    margin-top:18px;
    padding-top:16px;
    border-top:1px solid #d0dbe5;
}

.permit-section h2{
    margin:0 0 8px;
    font-size:20px;
}

.taxi-checkbox{
    display:flex;
    align-items:center;
    gap:6px;
    min-height:32px;
    margin-left:300px;
}

.permit-field-row{
    display:grid;
    grid-template-columns:300px minmax(0, 375px);
    gap:6px;
    align-items:start;
    margin:6px 0;
}

.permit-field-row label{
    padding-top:4px;
}

.permit-field-row select{
    width:368px;
    max-width:100%;
    height:26px;
}

.permit-field-row textarea{
    width:375px;
    max-width:100%;
    height:80px;
}

.permit-no-results{
    margin:4px 0 0;
    font-size:14px;
}

.permit-error{
    margin:6px 0;
    color:#cc0099;
    font-size:14px;
    font-weight:bold;
}

.permit-result-list{
    margin-top:8px;
}

.permit-results-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    font-size:14px;
}

.permit-results-table th{
    padding:3px 12px;
    border:1px solid #243b52;
    background:linear-gradient(#66879a, #344f63);
    color:white;
    text-align:left;
}

.permit-results-table th:first-child{
    background:linear-gradient(#4283c0, #16528c);
}

.permit-results-table td{
    padding:4px 14px;
}

.permit-results-table tbody tr{
    background:#e9f0f4;
    cursor:pointer;
}

.permit-results-table tbody tr:nth-child(even){
    background:#d2e3ed;
}

.permit-results-table tbody tr:hover,
.permit-results-table tbody tr:focus{
    background:#b9d1e0;
    outline:2px solid #0057b8;
}

.permit-delete-hint{
    margin:16px 0 0;
}

.permit-add-row{
    text-align:right;
    margin-top:16px;
}

.permit-edit-actions{
    display:flex;
    justify-content:flex-end;
    gap:6px;
}

.permit-edit-actions[hidden]{
    display:none;
}

.permit-panel .save-row{
    margin-top:16px;
}

.help-icon{
    display:inline-flex;
    width:16px;
    height:16px;
    padding:0;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:50%;
    background:#f6c400;
    color:#fff;
    font-size:12px;
    font-weight:bold;
    cursor:help;
}

.help-control{
    position:relative;
    display:inline-flex;
    vertical-align:middle;
}

.search-help-control{
    display:inline-flex;
    align-items:center;
    gap:4px;
}

.help-popover{
    position:absolute;
    top:calc(100% + 4px);
    left:0;
    z-index:20;
    display:block;
    width:min(280px, calc(100vw - 40px));
    padding:8px;
    border:1px solid #f6c400;
    background:#fff;
    color:#111;
    font-size:14px;
    font-weight:normal;
    line-height:1.15;
    text-align:left;
    box-sizing:border-box;
}

.anmelder-help-popover,
.toldsyn-help-popover{
    top:-4px;
    left:-7px;
    width:250px;
}

.vehicle-field-help{
    display:inline-flex;
    align-items:center;
    gap:4px;
    width:max-content;
    max-width:100%;
}

.vehicle-field-help > input,
.vehicle-field-help > select,
.vehicle-field-help > textarea{
    min-width:0;
}

.vehicle-checkbox-help{
    display:flex;
    grid-column:2;
    align-items:center;
    gap:4px;
}

.vehicle-radio-label{
    display:flex;
    align-items:center;
    gap:4px;
}

.vehicle-radio-label-stacked{
    flex-direction:column;
    align-items:flex-start;
}

.vehicle-help-popover{
    top:-16px;
    left:-16px;
    width:250px;
}

.technical-help-popover{
    top:-16px;
    left:-16px;
    width:min(250px, calc(100vw - 16px));
    max-height:calc(100vh - 16px);
    overflow-y:auto;
}

.technical-help-popover .help-popover-text{
    white-space:normal;
    overflow-wrap:anywhere;
}

.vehicle-help-popover .help-popover-text{
    white-space:pre-line;
}

.toldsyn-help-popover .help-popover-text{
    max-width:190px;
}

.help-popover[hidden]{
    display:none;
}

.help-popover-heading,
.help-popover-text,
.help-popover-actions{
    display:block;
}

.help-popover-text ul{
    padding-left:20px;
    margin-bottom:8px;
}

.help-popover-text li{
    margin-bottom:3px;
}

.help-popover-actions{
    margin:8px -8px -8px;
    padding:6px 8px;
    border-top:1px solid #f6c400;
    text-align:right;
}

.help-close{
    padding:0;
    border:0;
    background:transparent;
    color:#526776;
    font-weight:bold;
    text-decoration:underline;
    cursor:pointer;
}

/* Synsresultater */
.inspection-flow{
    margin-top:16px;
    border:3px solid #0057b8;
}

.inspection-flow .wizard{
    margin:0;
    padding:0;
    border-bottom:3px solid #0057b8;
}

.inspection-flow .step{
    margin:0 4px 0 0;
    padding:8px 12px;
}

.inspection-flow .step.active{
    background:#dbe8ff;
    color:#0057c2;
    border-bottom:3px solid #0057b8;
}

.inspection-flow .step:not(.completed):not(.active){
    color:#9aa8b8;
}

.inspection-panel{
    margin:0;
    padding:18px 15px 28px;
    border:0;
}

.inspection-section + .inspection-section{
    margin-top:14px;
    padding-top:20px;
    border-top:1px solid #c7d3df;
}

.inspection-section h2{
    margin:0 0 8px;
    font-size:20px;
}

.inspection-radio-layout{
    display:grid;
    grid-template-columns:255px minmax(0, 1fr);
    gap:6px;
}

.inspection-field-label{
    padding-top:3px;
}

.inspection-radio-options{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.inspection-radio-options label{
    display:flex;
    align-items:flex-start;
    gap:7px;
    max-width:285px;
    line-height:18px;
}

.inspection-radio-options input{
    flex:0 0 auto;
    margin:2px 0 0;
}

.inspection-referral{
    display:flex;
    align-items:center;
    gap:7px;
    min-height:28px;
    margin-left:344px;
}

.inspection-referral input{
    margin:0;
}

@media (max-width: 1050px){
    .technical-grid{
        grid-template-columns:1fr;
        gap:0;
    }

    .technical-form .weight-columns{
        grid-template-columns:1fr;
    }

    .technical-form .technical-grid{
        grid-template-columns:1fr;
        gap:0;
    }

    .technical-form .technical-row{
        grid-template-columns:minmax(0, 21.4%) minmax(0, 1fr);
        gap:8px;
    }
}

@media (max-width: 1000px){
    .technical-form .technical-row{
        grid-template-columns:minmax(125px, 0.225fr) minmax(0, 0.775fr);
    }

    .technical-form .motorTable,
    .technical-form .motorTable tbody{
        display:block;
        width:100%;
    }

    .technical-form .motorTable tr{
        display:grid;
        grid-template-columns:minmax(125px, 0.9fr) minmax(0, 1.1fr) minmax(125px, 0.9fr) minmax(0, 1.1fr);
        gap:4px 8px;
        align-items:center;
    }

    .technical-form .weight-columns .weight-column tr{
        grid-template-columns:minmax(125px, 0.9fr) minmax(0, 1.1fr);
    }

    .technical-form .motorTable td{
        display:block;
        width:auto;
        min-width:0;
        height:auto;
        padding:4px 0;
    }

    .technical-form .motorTable td:empty{
        display:none;
    }

    .technical-form .motorTable input[type="text"],
    .technical-form .motorTable select{
        width:100%;
        max-width:100%;
        box-sizing:border-box;
    }

    .technical-form .motorTable .fld.unit input[type="text"]{
        width:calc(100% - 45px);
    }
}

@media (max-width: 700px){
    .technical-form .motorTable tr{
        grid-template-columns:minmax(125px, 0.9fr) minmax(0, 1.1fr);
    }

    .technical-form .technical-row{
        grid-template-columns:minmax(125px, 0.9fr) minmax(0, 1.1fr);
    }

    .inspection-flow .step{
        flex:1 1 190px;
    }

    .inspection-radio-layout{
        grid-template-columns:1fr;
        gap:8px;
    }

    .inspection-referral{
        margin-left:0;
    }
}

.approval-panel{
    border:2px solid #0057b8;
}

/* AFDELING: GODKENDELSESOVERSIGT */
.approval-review-panel{
    border:2px solid #0057b8;
}

.approval-review-intro{
    margin:0 0 16px;
}

.approval-review-section{
    padding:14px 0;
    border-top:1px solid #c7d3df;
}

.approval-review-section h2{
    margin:0 0 12px;
    font-size:20px;
}

.approval-vehicle-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:18px;
}

.approval-vehicle-column{
    min-width:0;
}

.approval-vehicle-item,
.approval-technical-row,
.approval-inspection-item{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    gap:10px;
    padding:5px 0;
    border-bottom:1px solid #edf0f3;
    overflow-wrap:anywhere;
}

.approval-vehicle-item strong,
.approval-technical-row strong,
.approval-inspection-item strong{
    font-weight:600;
}

.approval-technical-details{
    margin-top:14px;
    padding:10px 12px;
    border:1px solid #d5d5d5;
    background:#f8f9fa;
}

.approval-technical-details summary{
    color:#0050aa;
    font-weight:bold;
    cursor:pointer;
}

.approval-technical-content,
.approval-inspection-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:0 18px;
    margin-top:10px;
}

.approval-empty-result{
    margin:0;
    color:#555;
}

.approval-review-error{
    color:#a62929;
    font-weight:bold;
}

.approval-review-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:8px;
    margin-top:16px;
}

.approval-review-actions button:last-child{
    background:#d7e6f9;
    border:1px solid #9ab4d0;
    color:#004ea8;
    font-weight:normal;
}

.approval-review-actions button:last-child:hover{
    background:#c4daf7;
}

.approval-panel > h2{
    margin:0 0 8px;
    font-size:22px;
}

.report-date{
    margin:0 0 18px;
    color:#4b5563;
    font-size:14px;
}

.report-help{
    margin:0 0 12px;
    color:#4b5563;
    font-size:14px;
}

.report-section{
    padding:14px 0;
    border-top:1px solid #c7d3df;
}

.report-section h3{
    margin:0 0 8px;
    color:#0050aa;
    font-size:18px;
}

.report-section > p{
    margin:0;
    color:#555;
}

.report-row{
    display:grid;
    grid-template-columns:minmax(190px, 30%) minmax(0, 1fr);
    gap:12px;
    padding:5px 0;
    border-bottom:1px solid #edf0f3;
    overflow-wrap:anywhere;
}

.report-row strong{
    font-weight:600;
}

.report-status{
    min-height:20px;
    margin:16px 0 0;
    color:#285d37;
}

.report-status:not(:empty){
    padding:9px 12px;
    border-left:4px solid #285d37;
    background:#edf7ef;
}

.report-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:8px;
    margin-top:12px;
}

.report-reset-button{
    background:#a62929;
}

.report-reset-button:hover{
    background:#841f1f;
}

@media (max-width: 700px){
    .approval-vehicle-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media print{
    body{
        background:#fff;
    }

    .header,
    .breadcrumb,
    .warning,
    .wizard,
    .bottomnav,
    .report-actions,
    .report-status,
    .report-help{
        display:none !important;
    }

    .content{
        padding:0;
    }

    .approval-panel{
        margin:0;
        padding:0;
        border:0;
    }

    .report-row{
        break-inside:avoid;
    }
}

@media (max-width: 480px){
    .approval-vehicle-grid,
    .approval-technical-content,
    .approval-inspection-grid{
        grid-template-columns:1fr;
    }

    .approval-review-actions{
        justify-content:stretch;
    }

    .approval-review-actions button{
        flex:1 1 100%;
    }

    .technical-row{
        grid-template-columns:minmax(110px, 0.9fr) minmax(0, 1.1fr);
        gap:8px;
    }

    .technical-form .technical-row{
        grid-template-columns:minmax(110px, 0.9fr) minmax(0, 1.1fr);
        gap:8px;
    }

    .technical-form .motorTable tr{
        grid-template-columns:minmax(110px, 0.9fr) minmax(0, 1.1fr);
    }

    .permit-field-row{
        grid-template-columns:1fr;
        gap:4px;
    }

    .taxi-checkbox{
        margin-left:0;
    }
}

.vehicle-form .form-line{
    display:grid;
    grid-template-columns:minmax(0, 42.8%) minmax(0, 1fr);
    gap:8px;
    align-items:center;
    min-height:46px;
    margin-bottom:0;
}

.vehicle-form .two-col{
    gap:0;
}

.vehicle-form .form-line label{
    width:auto;
}

.vehicle-form .form-line label.equipment-checkbox{
    display:flex;
    align-items:center;
    gap:4px;
    width:auto;
    grid-column:2;
    margin-left:0;
}

.vehicle-form input[type="text"]{
    width:255px;
    height:26px;
}

.vehicle-form input.date-text-input{
    width:110px;
}

.vehicle-form .date-entry{
    display:inline-flex;
    align-items:center;
    gap:4px;
    vertical-align:top;
}

.vehicle-form input[type="date"].date-picker-input{
    width:38px;
    height:26px;
    padding:2px;
    cursor:pointer;
}

.vehicle-form input.date-picker-input::-webkit-datetime-edit{
    display:none;
}

.vehicle-form input.date-picker-input::-webkit-calendar-picker-indicator{
    margin:0 auto;
    padding:0;
    cursor:pointer;
}

.vehicle-form input[type="date"]{
    width:110px;
    height:26px;
}

.vehicle-form select{
    width:250px;
    height:30px;
}

.vehicle-form textarea{
    width:255px;
    height:72px;
    box-sizing:border-box;
}

.vehicle-form .section-divider{
    margin-top:12px;
    padding-top:8px;
}

.vehicle-form .check-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    grid-auto-flow:column;
    gap:8px 0;
}

.vehicle-form .check-grid label{
    display:flex;
    align-items:flex-start;
    gap:4px;
    width:auto;
    margin-left:calc(42.8% + 8px);
}

.vehicle-form .check-grid input[type="checkbox"],
.vehicle-form .form-line > input[type="checkbox"]{
    margin-left:0;
}

.vehicle-form .check-grid-5{
    grid-template-rows:repeat(5, auto);
}

.vehicle-form .check-grid-3{
    grid-template-rows:repeat(3, auto);
}

.vehicle-form .check-grid-2{
    grid-template-rows:repeat(2, auto);
}

.vehicle-form .check-grid-1{
    grid-template-rows:repeat(1, auto);
}

.vehicle-form .form-line > .fejlbesked{
    grid-column:2;
    margin-left:0;
}

.vehicle-form .radio-form-line{
    display:grid;
    grid-template-columns:minmax(0, 42.8%) minmax(0, 1fr);
    gap:8px;
    align-items:start;
}

.vehicle-form .form-line-top{
    align-items:start;
}

.vehicle-form .checkbox-control{
    display:flex;
    grid-column:2;
    align-items:center;
    gap:4px;
}

.vehicle-form .checkbox-control input{
    margin:0;
}

.vehicle-form .radio-group-label{
    width:auto;
}

.vehicle-form .radio-options{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.vehicle-form .radio-options label{
    display:flex;
    align-items:center;
    gap:4px;
    width:auto;
}

.vehicle-form .radio-options input,
.vehicle-form .radio-extra input{
    margin:0;
}

.vehicle-form .radio-control-stack{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.vehicle-form .radio-extra{
    display:flex;
    align-items:center;
    gap:4px;
    width:auto;
}

.vehicle-form .radio-form-line > .fejlbesked{
    grid-column:2;
    margin-left:0;
}

@media (max-width: 1000px){
    .vehicle-form .vehicle-field-help{
        width:100%;
    }

    .vehicle-form .vehicle-field-help > input,
    .vehicle-form .vehicle-field-help > select,
    .vehicle-form .vehicle-field-help > textarea{
        flex:1 1 auto;
    }

    .vehicle-form .two-col{
        gap:20px;
    }

    .vehicle-form .form-line label{
        width:auto;
    }

    .vehicle-form .form-line label.equipment-checkbox{
        margin-left:0;
    }

    .vehicle-form .form-line{
        grid-template-columns:125px minmax(0, 1fr);
        gap:4px;
    }

    .vehicle-form .form-line input[type="text"],
    .vehicle-form .form-line input[type="date"],
    .vehicle-form .form-line select,
    .vehicle-form .form-line textarea{
        width:100%;
        max-width:100%;
        box-sizing:border-box;
    }

    .vehicle-form .form-line input.date-text-input{
        width:110px;
    }

    .vehicle-form .form-line input.date-picker-input{
        width:38px;
    }

    .vehicle-form .form-line > .fejlbesked{
        grid-column:2;
        margin-left:0;
    }

    .vehicle-form .radio-form-line{
        grid-template-columns:125px minmax(0, 1fr);
        gap:4px;
    }

    .vehicle-form .check-grid label{
        margin-left:129px;
    }
}

@media (max-width: 700px){
    .vehicle-form .two-col{
        grid-template-columns:1fr;
        gap:0;
    }

    .vehicle-form .check-grid{
        grid-template-columns:1fr;
        grid-template-rows:none;
        grid-auto-flow:row;
    }

    .vehicle-form .check-grid label{
        margin-left:0;
    }
}

@media (max-width: 480px){
    .vehicle-form .form-line,
    .vehicle-form .radio-form-line{
        grid-template-columns:minmax(110px, 0.9fr) minmax(0, 1.1fr);
        gap:8px;
    }
}

/* Login-side */
.login-page{
    background:#f4f4f4;
}

.login-content{
    display:flex;
    flex:1;
    align-items:center;
    justify-content:center;
    padding:48px 20px;
}

.login-card{
    width:min(100%, 420px);
    padding:36px 40px;
    border:1px solid #d5d5d5;
    border-top:4px solid #0057b8;
    background:#fff;
    box-shadow:0 8px 24px rgba(19, 19, 74, 0.1);
    box-sizing:border-box;
}

.login-card h1{
    margin:0 0 8px;
    color:#17174a;
    font-size:28px;
    text-align:center;
}

.login-intro{
    margin:0 0 26px;
    color:#555;
    font-size:14px;
    line-height:1.5;
    text-align:center;
}

.login-field{
    margin-bottom:18px;
}

.login-field label{
    display:block;
    margin-bottom:7px;
    color:#222;
    font-size:14px;
    font-weight:bold;
}

.login-field input{
    width:100%;
    height:42px;
    padding:0 12px;
    border:1px solid #9aa8b8;
    border-radius:3px;
    background:#fff;
    box-sizing:border-box;
    font:inherit;
}

.login-field input:focus-visible{
    border-color:#0057b8;
    outline:2px solid #0057b8;
    outline-offset:2px;
}

.login-options{
    margin:2px 0 20px;
}

.remember-label{
    display:flex;
    align-items:center;
    gap:8px;
    color:#444;
    font-size:14px;
}

.remember-label input{
    width:16px;
    height:16px;
    margin:0;
    accent-color:#0057b8;
}

.login-submit{
    width:100%;
    min-height:42px;
    border-radius:3px;
    background:#17174a;
    font-size:15px;
}

.login-submit:hover{
    background:#0050aa;
}

.login-submit:focus-visible{
    outline:2px solid #0057b8;
    outline-offset:3px;
}

.login-status{
    margin:12px 0 0;
    color:#a62929;
    font-size:13px;
    line-height:1.4;
}

.login-status:empty{
    display:none;
}

.login-notice{
    margin:24px 0 0;
    padding-top:16px;
    border-top:1px solid #d5d5d5;
    color:#666;
    font-size:12px;
    line-height:1.5;
    text-align:center;
}

@media (max-width:480px){
    .login-content{
        padding:28px 16px;
    }

    .login-card{
        padding:30px 24px;
    }

    .header-symbol{
        width:34px;
    }
}