﻿/* Layout */

* {
    scroll-margin-top: 6em;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    max-width: 100vw !important;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

main {
    margin-top: 1em;
}

footer {
    width: 100vw;
    text-align: center;
}

/* Navbar */

nav {
    background-color: #005195; /* PMS 301 C */
    padding: 0 1em;
    max-height: 5em;
    overflow-y: clip;
}

nav ul {
    color: white;
}
nav > ul li {
    margin-left: 0.5em;
}

nav > ul a {
    color: white;
    text-decoration: underline !important;
}

.logo img {
    height: 2em;
}

.logo {
    font-style: italic;
    font-weight: 500;
}

/* Tabulator tables */

.tabulator {
    font-size: inherit;
}

button.tabulator-page {
    color: black;
}

.tabulator .tabulator-footer .tabulator-page.active {
    color: white;
    background-color: #777;
}

/* Product grid */

.product-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.product-grid header {
    font-weight: bold;
    font-size: 20pt;
}

@media print {
    html {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    nav {
        display: none;
    }
    body > main {
        padding-block-start: 0;
    }
    article > header {
        font-size: 14pt;
        font-weight: bold;
        padding: 1em 0; 
    }
}

@media only screen and (prefers-color-scheme: dark) {
    /* i'm not doing proper dark mode right now. */
    article {
        background: white;
    }
    article > header, article > footer {
        background-color: #FBFCFC;
        border-bottom-color: #E7EAF0;
        color: #373C44;
    }
}

@media (max-width: 1200px) {
    .mobile-hide { display: none; }
}
