﻿/* ==========================================================================
   OVERSIKTSSIDER
   --------------------------------------------------------------------------
   Felles utseende for listesidene (Utstyr, Kunder, Ordre osv.):
   tittel, handlingsknapper, sÃ¸kefelt og tabell.

   Endringer her pÃ¥virker alle oversiktssider likt.
   ========================================================================== */

.overview-card {
    width: 100%;
    padding: 16px 18px 14px !important;
    border: 1px solid var(--app-border, #e4e6e8) !important;
    border-radius: 6px !important;
    background: var(--app-surface, #ffffff) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

.overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--app-border, #e4e6e8);
}

.overview-head-text {
    min-width: 0;
}

.overview-title {
    margin: 0;
    color: var(--app-text, #333333);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.overview-subtitle {
    margin-top: 4px;
    color: var(--app-muted, #6b7280);
    font-size: 12.5px;
}

.overview-dot {
    margin: 0 6px;
    opacity: 0.6;
}

.overview-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

    .overview-actions > .rz-button {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 12px !important;
    }

.overview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.overview-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.overview-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: var(--app-muted, #6b7280);
    font-size: 12.5px;
    white-space: nowrap;
}

.overview-filter-label {
    margin: 0 2px 0 0;
    white-space: nowrap;
}

.overview-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 0 4px;
    color: var(--app-muted, #6b7280);
    font-size: 12.5px;
    cursor: pointer;
    user-select: none;
}

.overview-card .rz-datagrid {
    margin-top: 0 !important;
}

/* Older pages used <br /> as vertical spacing inside the card. Keep the
   overview layout compact without touching every tab. */
.overview-card br {
    display: none;
}

.overview-card .rz-datatable {
    border-radius: 4px;
}

@media (max-width: 900px) {
    .overview-card {
        padding: 16px 14px 14px !important;
    }

    .overview-head {
        flex-direction: column;
        gap: 10px;
    }

    .overview-actions {
        justify-content: flex-start;
    }

    .overview-toolbar {
        align-items: flex-start;
    }

    .overview-meta {
        margin-left: 0;
    }
}

