@charset "UTF-8";

/* =========================
   COLOR PALETTE (WESTCON INSPIRED)
========================= */
:root {
    --color-primary-0: #29506D;
    --color-primary-1: #8fa8bb;
    --color-primary-2: #496D89;
    --color-primary-3: #3b678a; /* blå */
    --color-primary-4: #042037; /* navy */

    --color-background: #c1cadb;
    --color-text: #10202c;

    --color-nav-bg: var(--color-primary-2);
    --color-header-bg: var(--color-primary-3);
    --color-footer-bg: var(--color-primary-3);
    --color-footer-text: #ffffff;
}

/* =========================
   BASE
========================= */
* {
    box-sizing: border-box;
}

body {
    font: 0.95em 'Roboto', sans-serif;
    color: var(--color-text);
    background: var(--color-background);
    margin: 0;
    padding: 0;
}

/* =========================
   WRAPPER
========================= */
#wrapper {
    width: 97%;
    max-width: 1800px;
    margin: 20px auto;
    background: var(--color-primary-1);
    padding: 20px;
    border: 2px solid #16354f;
    border-radius: 8px;
}

/* =========================
   HEADER
========================= */
.site-header {
    text-align: center;
    padding: 15px 10px;
    background: var(--color-header-bg);
    border-radius: 8px;
    margin-bottom: 10px;
}

.site-header img {
    width: 100%;
    max-width: 450px;
    height: auto;
}

/* =========================
   NAV
========================= */
#nav {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px 0;
    background: var(--color-nav-bg);
    display: flex;
    flex-wrap: wrap;
    border-radius: 6px;
    overflow: hidden;
}

#nav li {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

#nav li a {
    display: block;
    padding: 12px 10px;
    color: white;
    text-decoration: none;
    transition: background 0.2s ease;
}

#nav li a:hover {
    background: var(--color-primary-4);
}

/* =========================
   TABLES
========================= */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

table td,
table th {
    padding: 10px;
    border: 1px solid #e3edf2;
}

/* header */
thead th {
    background: var(--color-header-bg);
    color: white;
}

/* body */
tbody td {
    background: #edf6fa;
}

tbody tr:nth-child(even) td {
    background: #dbeaf0;
}

tbody tr:hover td {
    background: #d6ecff;
}

/* =========================
   FOOTER
========================= */
#foot {
    margin-top: 20px;
    padding: 20px;
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    border-radius: 8px;
    text-align: center;
}

.footer-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-logos img {
    max-width: 120px;
    height: auto;
    transition: transform 0.2s ease;
}

.footer-logos img:hover {
    transform: scale(1.05);
}

.footer-contact {
    font-size: 0.95em;
}

#foot a {
    color: #cfe6ff;
    text-decoration: none;
}

#foot a:hover {
    color: white;
    text-decoration: underline;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    #wrapper {
        width: 100%;
        margin: 0;
        padding: 8px;
        border: none;
    }

    #nav {
        flex-direction: column;
    }

    #nav li {
        width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }

    .footer-logos {
        flex-direction: column;
        gap: 15px;
    }

    .footer-logos img {
        max-width: 160px;
    }

    body {
        font-size: 1em;
    }
}