/* ---------- WRAPPER ---------- */
.lm-temp-widget {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 12px;
    max-width: 1000px;
    background: #fafafa;
    font-family: Arial, sans-serif;
    margin: 0 auto;
}

.lm-temp-widget h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.lm-temp-help {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

/* ---------- INPUT FELTER ---------- */
.lm-temp-row {
    margin-bottom: 15px;
}

.lm-temp-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.lm-temp-row input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 15px;
}

.lm-temp-row small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* ---------- INLINE FELTER ---------- */
.lm-temp-row-inline {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.lm-temp-inline-field {
    flex: 1;
}

.lm-temp-inline-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.lm-temp-inline-field input {
    width: 100%;
    padding: 9px;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 14px;
}

/* ---------- REGION FILTER ---------- */
.lm-temp-region-row .lm-temp-region-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 5px;
}

.lm-temp-region-filters label {
    font-size: 13px;
    font-weight: 500;
}

/* ---------- KNAPPER ---------- */
.lm-temp-row-buttons {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

#lm-temp-find,
#lm-temp-load-more {
    flex: 1;
    background: #fff;
    border: 1px solid #ccc;
    padding: 11px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

#lm-temp-find {
    background: #ffcc00;
    border-color: #d6a700;
}

#lm-temp-find:hover {
    background: #e6b800;
}

#lm-temp-load-more:hover {
    background: #f0f0f0;
}

/* ---------- BESKED ---------- */
#lm-temp-message {
    margin-top: 10px;
    font-size: 14px;
}

#lm-temp-message.error {
    color: #b30000;
    font-weight: bold;
}

#lm-temp-message.success {
    color: #006600;
    font-weight: bold;
}

/* ---------- TABEL ---------- */
.lm-temp-table-wrapper {
    margin-top: 15px;
    overflow-x: auto;
}

#lm-temp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px;
}

#lm-temp-table th,
#lm-temp-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#lm-temp-table th {
    background: #f0f0f0;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    user-select: none;
}

#lm-temp-table th:hover {
    background: #e4e4e4;
}

/* Sorteringspil */
#lm-temp-table th.sorted-asc::after,
#lm-temp-table th.sorted-desc::after {
    content: "";
    border: 5px solid transparent;
    position: absolute;
    right: 8px;
}

#lm-temp-table th.sorted-asc::after {
    border-bottom-color: #333;
    top: 8px;
}

#lm-temp-table th.sorted-desc::after {
    border-top-color: #333;
    top: 12px;
}

/* Zebra */
#lm-temp-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

#lm-temp-table tbody tr:hover {
    background: #f1f1f1;
}

/* ---------- VIEW SWITCH ---------- */
.lm-temp-view-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.lm-temp-view-toggle-row span {
    font-size: 14px;
    font-weight: 600;
}

.lm-temp-view-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.lm-temp-view-btn.active {
    background: #ffcc00;
    border-color: #d6a700;
}

/* ---------- KORT ---------- */
.lm-temp-map-wrapper {
    margin-top: 15px;
}

#lm-temp-map {
    width: 100%;
    height: 420px;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
}

/* ---------- RESPONSIV ---------- */
@media (max-width: 700px) {
    .lm-temp-row-inline {
        flex-direction: column;
    }

    #lm-temp-table {
        min-width: 600px;
        font-size: 12px;
    }

    .lm-temp-view-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .lm-temp-widget {
        padding: 15px;
    }
  
}
.lm-temp-table-wrapper a {
    color: #0077cc;
    font-weight: 600;
}

.lm-temp-table-wrapper a:hover {
    text-decoration: underline;
}

.lm-temp-row-details {
    display: none;
    background: #fafafa;
    border-left: 3px solid #ffcc00;
    padding: 12px 15px;
    font-size: 14px;
}

.lm-temp-row-details a {
    display: inline-block;
    padding: 8px 12px;
    background: #ffcc00;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 6px;
    text-decoration: none;
    color: #000;
}

.lm-temp-row-details a:hover {
    background: #e6b800;
}


