/* ==================================================================
   GSNH - Centraal applicatie-stylesheet
   ==================================================================
   Dit bestand bevat alle project-specifieke CSS die niet door W3.CSS
   of FontAwesome wordt afgehandeld. Inline styles in templates horen
   uiteindelijk hier terecht te komen.
   ================================================================== */

/* ------------------------------------------------------------------
   1. BASIS / TYPOGRAFIE
   ------------------------------------------------------------------ */
:root {
    --titelbalk-bg-color: #2e486d;
}

body, h1, h2, h3, h4, h5, h6 {
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ------------------------------------------------------------------
   2. TITELBALK
   ------------------------------------------------------------------ */
.titelbalk {
    background-color: var(--titelbalk-bg-color) !important;
    color: white;
    z-index: 4;
}

.app-titel {
    font-weight: bold;
    font-size: 18px;
    padding-left: 16px !important;
}

@media screen and (max-width: 600px) {
    .app-titel {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50vw;
    }
}

/* ------------------------------------------------------------------
   3. SIDEBAR LAYOUT
   ------------------------------------------------------------------ */
.w3-main          { margin-left: 250px; transition: margin-left .3s; }
.title-container   { padding-left: 250px; transition: padding-left .3s; float: left; }

@media (max-width: 992px) {
    .w3-main          { margin-left: 0; }
    .title-container   { padding-left: 0; }
}

/* Collapsed state (Desktop only) */
.sidebar-collapsed .w3-main          { margin-left: 0 !important; }
.sidebar-collapsed #mySidebar        { display: none !important; }
.sidebar-collapsed .title-container   { padding-left: 0 !important; }

/* Expand tab */
#openSidebarTab {
    display: none;
    position: fixed;
    left: 0;
    top: 55px;
    z-index: 5;
    background-color: white;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    padding: 5px 10px;
    cursor: pointer;
    color: #2e486d;
}

.sidebar-collapsed #openSidebarTab { display: block; }

@media (max-width: 992px) {
    #openSidebarTab { display: none !important; }
    .sidebar-collapsed #mySidebar { display: none; }
}

/* ------------------------------------------------------------------
   4. ACTION BUTTONS (icon-knoppen)
   ------------------------------------------------------------------ */
.btn-action {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-right: 4px;
}

.btn-action i {
    font-size: 1.4em;
    vertical-align: middle;
}

/* ------------------------------------------------------------------
   5. PAGINERING
   ------------------------------------------------------------------ */
.pagination-bar {
    display: inline-flex;
    align-items: center;
}

.pagination-bar input[type="number"] {
    width: 60px;
    text-align: right;
    padding: 8px 4px;
    border: none;
}

.pagination-bar .page-total {
    padding: 8px 4px;
    border-right: 1px solid #ccc;
}

/* ------------------------------------------------------------------
   6. FILTER SECTIE
   ------------------------------------------------------------------ */
.filter-action {
    display: flex;
    align-items: flex-end;
    height: 100%;
    min-height: 62px;
}

/* ------------------------------------------------------------------
   7. TABEL UTILITIES
   ------------------------------------------------------------------ */
.td-nowrap {
    white-space: nowrap;
}

.td-right {
    text-align: right;
}

/* ------------------------------------------------------------------
   8. MODAL DEFAULTS
   ------------------------------------------------------------------ */
.modal-content {
    max-width: 900px;
    margin: 80px auto;
}

/* ------------------------------------------------------------------
   9. LAYOUT HELPERS
   ------------------------------------------------------------------ */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    align-items: center;
    gap: 10px;
}
