﻿@import url('vars.css');

/* Typography adjustments for better readability */
html, body, main, #page {
    font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Ensure full-height layout that grows with content */
html, body {
    height: 100%;
    min-height: 100%;
}
#wrapper {
    min-height: 100vh; /* at least viewport height */
    height: auto;      /* grow beyond viewport if content expands */
    display: flex;
    flex-direction: column;
}

/* Make the main row take remaining space under the header and allow children to stretch */
#wrapper > .flex.flex-row {
    flex: 1 1 auto;
    min-height: 0; /* enables proper flex children sizing with overflow */
    align-items: stretch;
}

/* Ensure side nav stretches vertically equal to content/row */
#wrapper nav {
    align-self: stretch;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
}

h5 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

h6 {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

#page .e-grid .e-table {
    color: #333;
}

#page .e-btn,
.e-dialog .e-col-12 .e-btn{
    height: 2.5rem;
    min-width: 5rem;
    border-radius: 2px;
}

.e-dialog.inv-popup .e-btn {
    height: 2.5rem;
    min-width: 3rem;
    border-radius: 2px;
}

#page .e-rowcell{
    font-size: 1.0rem;
}

/* Form field layout: labels above controls, full-width controls */

#frm input.e-input,
#page input.e-input {
    height: 2.5rem;
/*    font-size: 1.0rem;*/
}

/*.e-dialog .e-dlg-content {
    font-size: 1rem;
}*/

/* Stack label and control vertically inside dialog form columns */
.e-dialog .e-col-12:not(.btn-group) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.e-dialog .e-col-12.btn-group {
    margin-left: auto;
}

/* Ensure controls span full width */
#frm textarea.e-input,
#frm .e-textarea {
    width: 100%;
    min-height: 5rem;
    padding-top: 0.5rem;
}

/* Dialog Listboxes */
.e-dlg-content .e-list-parent.e-ul {
    background-color: #efefef;
}

.e-dlg-content .e-list-parent.e-ul li {
    background-color: #FFF;
}

.e-dlg-content .e-listbox-container .e-list-item:hover:not(.e-selected):not(.e-disabled) {
    background-color: #0d6efd;
    color: #fff;
}

.e-dlg-content .e-listbox-container .e-list-item.e-selected {
    background-color: #198754;
    color: #fff;
}