﻿/* ===========================================
   LAYOUT.CSS
   Purpose: Shared layout styles for all prototypes
   =========================================== */

/*:root {
    --primary-color: #4080A0;
    --secondary-color: #ffffff;
    --font-family: "Segoe UI", Arial, sans-serif;
    --text-color: #333;
}*/


/* Global font and spacing resets */
html, body {
    height: 100%;
    margin: 0;
    font-family: var(--font-family);
}

/* Section blocks */
.section-block {
    margin-bottom: 2rem;
}

#print-export {
    width: 100%; 
    max-width: 100%;
    padding: 1rem;
    background-color: white;
    box-sizing: border-box;
    overflow-x: hidden; 
}

.pdf-hide-temp {
    display: none !important;
}



.section-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}

.card-block {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.5rem;
    background-color: #fff;
    margin-bottom: 1rem;
}

/* Layout containers */
.page {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: var(--primary-color);
    color: white;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Top navigation bar */
/*.top-row {
    height: 48px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1rem;
    color: white;
}*/

/* Main content area */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Scrollable body content below top bar */
article.content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    margin-top: 56px; /* use default top-row height */
    box-sizing: border-box;
}

/* Default style */
/* Default pages */
.top-row {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1rem;
    color: white;
    min-height: 56px; /* navbar height */
}

/* Dashboard page */
.dashboard-top-row {
    min-height: 172px; /* fixed dashboard header height */
}



/* Sidebar nav links */
.sidebar .nav-link {
    color: white;
    font-weight: 500;
    padding: 0.75rem 1rem;
    display: block;
    text-decoration: none;
}

    .sidebar .nav-link:hover,
    .sidebar .nav-link.active {
        background-color: rgba(255, 255, 255, 0.1);
        font-weight: 600;
    }

/* Navbar logo fix */
.navbar-brand img {
    max-height: 32px;
    vertical-align: middle;
}

/* Hide mobile toggler (if not used) */
.navbar-toggler {
    display: none;
}
