html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #abae9b;
    color: white;
    font-family: verdana;
    font-size: 12px;
    font-weight: normal;
    text-align: center;
}

body {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

a {
    color: white;
    text-decoration: none;
}

.login-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 0;
    margin-bottom: 20px;
}

.login-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(320px, 60vw);
    max-height: 22vh;
    object-fit: contain;
}

.login-overskrift {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
}

.login-popup {
    position: relative;
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 6px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
    padding: 24px 28px;
    min-width: 320px;
    text-align: left;
    color: #ffffff;
}

.login-popup-titel {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 18px;
    text-align: center;
}

.login-popup-felt {
    margin-bottom: 14px;
}

.login-popup-felt label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 13px;
}

.login-popup-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #8a7a55;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #333333;
}

.login-popup-knapper {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 6px;
}

.popup-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 2px;
}

.popup-overlay.visible {
    display: flex;
}

.popup-boks {
    background-color: #abae9b;
    border: 2px solid #ffffff;
    border-radius: 6px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
    padding: 24px 28px;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    color: #ffffff;
}

.popup-besked {
    font-size: 13px;
    margin-bottom: 18px;
    white-space: pre-line;
}

#loginPopupOverlay .popup-boks {
    width: calc(100% - 50px);
}

.popup-knapper {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.site-wrapper {
    display: inline-block;
    text-align: left;
    vertical-align: top;
}

.admin-main {
    position: relative;
    width: 1240px;
    height: 900px;
    box-sizing: border-box;
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 6px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
    padding: 24px 28px;
    text-align: left;
    color: #ffffff;
}

.admin-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    margin: -24px -28px 0 -28px;
    padding: 0 10px;
    background-color: #9a9d8c;
    box-sizing: border-box;
}

.admin-main-titel {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

.admin-kolonner {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    height: 812px;
}

.admin-venstre {
    flex: 0 0 216px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.admin-venstre .sange-liste {
    flex: 1;
    min-height: 0;
    height: auto;
}

.admin-hoejre {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-divider {
    width: 2px;
    align-self: stretch;
    background-color: #ffffff;
}

.sange-overskrift {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    min-height: 31px;
    box-sizing: border-box;
}

.sange-boks {
    border: 1px solid #ffffff;
    padding: 10px;
}

.sange-liste {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ffffff;
}

#lstKunder {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#lstKunder thead th {
    position: sticky;
    top: 0;
    background-color: #9a9d8c;
    color: #ffffff;
    font-weight: bold;
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #ffffff;
}

#lstKunder tbody td {
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

#lstKunder tbody tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.08);
}

#lstKunder tbody tr:nth-child(odd) td {
    background-color: rgba(255, 255, 255, 0.03);
}

#lstKunder tbody tr.markert td {
    background-color: rgba(173, 216, 230, 0.6);
    color: #000000;
}

#lstKunder tbody tr:hover td {
    background-color: #e2dac0;
}

.admin-felt {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-felt-rk {
    display: flex;
    gap: 10px;
}

.admin-felt-lille {
    width: 80px;
    flex-shrink: 0;
}

.admin-felt-telefon {
    width: 74px;
    flex-shrink: 0;
}

.admin-felt-rest {
    flex: 1;
}

.admin-felt-stor {
    flex: 1;
}

.admin-felt-dato {
    flex: 1;
}

.admin-spacer {
    border-top: 1px solid #ffffff;
    margin: 10px 0;
}

.admin-felt-status {
    margin-top: 10px;
}

.admin-status-radios {
    display: flex;
    gap: 20px;
}

.admin-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.admin-radio input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    background-color: #ffffff;
    border: 1px solid #666666;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    box-sizing: border-box;
}

.admin-radio input[type="checkbox"]:checked {
    background-color: #ffffff;
    border-color: #666666;
}

.admin-radio input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.admin-radio input[type="checkbox"]:not(:checked):disabled {
    background-color: #e8e4d4;
    border-color: #aaaaaa;
    cursor: default;
}

.admin-felt label {
    font-size: 13px;
}

.admin-input {
    width: 100%;
    padding: 4px 6px;
    font-size: 13px;
    border: 1px solid #8a7a55;
    border-radius: 3px;
    background-color: #ffffff;
    color: #333333;
    box-sizing: border-box;
}

.admin-input-halv {
    width: 50%;
}

.admin-input[type="date"] {
    font-family: verdana;
    font-size: 13px;
    color: #333333;
}

.admin-input[type="date"]::-webkit-datetime-edit {
    color: #333333;
    font-family: verdana;
    font-size: 13px;
    text-align: center;
}

.admin-input[type="date"]::-webkit-datetime-edit-text {
    color: #333333;
}

.admin-input[type="date"]:invalid::-webkit-datetime-edit {
    color: transparent;
}

.admin-input[type="date"].tom::-webkit-datetime-edit {
    color: transparent;
}

.admin-input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 1;
}

.admin-input[type="date"]:disabled::-webkit-calendar-picker-indicator {
    opacity: 1;
    visibility: visible;
    cursor: pointer;
}

.admin-info-felt .admin-input[type="date"] {
    width: 120px;
}

.admin-input:disabled {
    background-color: #e8e4d4;
    color: #555555;
    cursor: default;
}

.copyright {
    margin: 10px 0 0 0;
    font-size: 12px;
}

.kategori-knap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 12px;
    box-sizing: border-box;
    border: 1px solid #8a7a55;
    background-color: #f0ead8;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
}

.kategori-knap:hover {
    background-color: #e2dac0;
}

.kategori-knap:disabled {
    opacity: 0.45;
    cursor: default;
}

.kategori-knap:disabled:hover {
    background-color: #f0ead8;
}

.knap-ikon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: currentColor;
}

.sange-knap-ikon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: currentColor;
}

.sange-kolonner {
    display: flex;
    gap: 10px;
}

.sange-venstre {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sange-hoejre {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-hoejre {
    overflow-y: auto;
}

.admin-form-kolonner {
    flex: 1;
    align-items: stretch;
}

.admin-form-kolonner .sange-venstre {
    flex: 1 1 276px;
    justify-content: flex-start;
}

.admin-form-kolonner .sange-hoejre {
    flex: 1 1 566px;
    justify-content: flex-start;
}

.admin-boks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.admin-boks-hoejre {
    align-items: stretch;
}

.admin-input-center {
    text-align: center;
}

.admin-password-wrap {
    display: flex;
    gap: 6px;
}

.admin-password-wrap .admin-input {
    flex: 1;
}

.admin-oeje-knap {
    min-height: 26px;
    padding: 2px 8px;
}

.admin-status {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.admin-status-aktiv {
    color: #2e7d32;
}

.admin-status-inaktiv {
    color: #c62828;
}

.admin-status-default {
    color: #ffffff;
}

.admin-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0;
}

.admin-info-felt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.admin-info-felt label {
    font-size: 13px;
}

.admin-info-felt .admin-input {
    width: 90px;
}

.updown-wrap {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.updown-knap {
    min-height: 26px;
    min-width: 28px;
    padding: 2px 8px;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.updown-input::-webkit-outer-spin-button,
.updown-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.updown-input {
    -moz-appearance: textfield;
}

.admin-info-felt .updown-input {
    width: 52px;
}

#feltIndmeldt .admin-input {
    align-self: flex-start;
}

#feltIndmeldt label {
    align-self: flex-start;
    width: 120px;
    text-align: center;
}

#feltLicenser .updown-wrap {
    align-self: flex-end;
}

#feltLicenser label {
    align-self: flex-end;
    width: 116px;
    text-align: center;
}

.admin-bruger-drop {
    display: flex;
    align-items: center;
}

.admin-bruger-drop select {
    width: calc(100% - 397px);
    padding: 4px 6px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 13px;
    border: 1px solid #8a7a55;
    border-radius: 3px;
    background-color: #ffffff;
    color: #333333;
    box-sizing: border-box;
}

.admin-bruger-drop input[type="date"] {
    width: 127px;
    flex: none;
    margin-left: 20px;
    padding: 4px 6px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 13px;
    border: 1px solid #8a7a55;
    border-radius: 3px;
    background-color: #ffffff;
    color: #333333;
    box-sizing: border-box;
}

.admin-nulstil-knap {
    margin-left: 20px;
    min-height: 26px;
    padding: 2px 10px;
    font-size: 13px;
}

.admin-total-varighed {
    margin-left: auto;
    margin-right: 19px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
}

.admin-spacer-meddelelse {
    margin-top: 10px;
}

.admin-meddelelse {
    margin: 0;
    font-size: 12px;
}

.admin-abonnementer {
    display: flex;
    gap: 10px;
}

.admin-abonnement-kolonne {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-abonnement-overskrift {
    font-size: 13px;
}

.admin-liste {
    height: 150px;
    overflow-y: auto;
    border: 1px solid #ffffff;
}

.admin-liste-sessioner {
    flex: none;
    height: 184px;
    min-height: 184px;
    overflow-y: scroll;
}

#lstKategorier,
#lstPcNavne,
#lstSessions {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#lstKategorier thead th,
#lstPcNavne thead th,
#lstSessions thead th {
    position: sticky;
    top: 0;
    background-color: #9a9d8c;
    color: #ffffff;
    font-weight: bold;
    text-align: left;
    padding: 4px 6px;
    border-bottom: 1px solid #ffffff;
}

#lstKategorier .sange-kol-check,
#lstPcNavne .sange-kol-check {
    width: 40px;
    text-align: center;
}

#lstSessions .sange-kol-dato {
    width: 135px;
    text-align: center;
}

#lstSessions .sange-kol-tid {
    width: 72px;
    text-align: right;
}

#lstKategorier tbody td,
#lstPcNavne tbody td,
#lstSessions tbody td {
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 13px;
    text-align: left;
    user-select: none;
    -webkit-user-select: none;
}

#lstKategorier tbody td:first-child,
#lstPcNavne tbody td:first-child {
    text-align: center;
}

#lstSessions tbody td:nth-child(2),
#lstSessions tbody td:nth-child(3),
#lstSessions tbody td:nth-child(4) {
    text-align: right;
}

#lstKategorier tbody tr:nth-child(even) td,
#lstPcNavne tbody tr:nth-child(even) td,
#lstSessions tbody tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.08);
}

#lstKategorier tbody tr:nth-child(odd) td,
#lstPcNavne tbody tr:nth-child(odd) td,
#lstSessions tbody tr:nth-child(odd) td {
    background-color: rgba(255, 255, 255, 0.03);
}

#lstKategorier tbody tr:hover td,
#lstPcNavne tbody tr:hover td,
#lstSessions tbody tr:hover td {
    background-color: #e2dac0;
}

#lstKategorier tbody input[type=checkbox],
#lstPcNavne tbody input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    background-color: #ffffff;
    border: 1px solid #666666;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    box-sizing: border-box;
}

#lstKategorier tbody input[type=checkbox]:checked::after,
#lstPcNavne tbody input[type=checkbox]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#lstKategorier tbody input[type=checkbox]:disabled,
#lstPcNavne tbody input[type=checkbox]:disabled {
    background-color: #e0e0e0;
    border-color: #aaaaaa;
    cursor: default;
}

.sange-footer {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ffffff;
}

.admin-footer {
    position: relative;
}

.sange-footer-space {
    flex: 1;
}

.gem-besked {
    display: none;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 20px;
    align-self: flex-end;
}