@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

/* DOT brand palette: Navy 195679, Teal 92C4BE, Coral EF7A5F, Cream FFFBF0, Charcoal 393939 */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Calibri, 'Segoe UI', Arial, sans-serif;
    color: #393939;
    background: #FFFBF0;
    line-height: 1.5;
}

.portal-title,
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.064em;
    color: #195679;
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 48px;
}

.portal-sub {
    color: #5d5d5d;
    margin-top: 4px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 48px;
    background: #195679;
}

.topbar .portal-title {
    color: #FFFBF0;
}

.topbar-right {
    font-size: 0.95rem;
    color: #FFFBF0;
}

.link {
    color: #FFFBF0;
    margin-left: 16px;
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    color: #92C4BE;
}

/* For links shown on a white card rather than the navy bar. */
.link-dark {
    color: #195679;
    margin-left: 0;
}

.link-dark:hover {
    color: #EF7A5F;
}

.auth-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    background: #ffffff;
    padding: 40px 48px;
    width: 100%;
    max-width: 400px;
    border-top: 5px solid #EF7A5F;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.stack label {
    font-weight: 600;
    margin-top: 8px;
    color: #393939;
}

input,
textarea {
    padding: 11px 13px;
    border: 1px solid #c4c0b4;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #195679;
}

.btn {
    margin-top: 18px;
    padding: 12px 22px;
    background: #195679;
    color: #FFFBF0;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.btn:hover {
    background: #92C4BE;
    color: #195679;
}

.btn-small {
    margin-top: 0;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 0;
}

.notice-ok {
    background: #eaf4f2;
    border-top: 3px solid #92C4BE;
}

.notice-error {
    background: #fdeee8;
    border-top: 3px solid #EF7A5F;
}

.block {
    background: #ffffff;
    padding: 28px 32px;
    margin-bottom: 24px;
    border-top: 5px solid #195679;
}

.grid {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.grid th,
.grid td {
    text-align: left;
    padding: 10px 12px;
    border: 1px solid #e4ddca;
}

.grid th {
    background: #f3eed9;
    color: #195679;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.04em;
}

.inline {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0;
}

.inline input {
    padding: 6px 8px;
}

.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@page {
    size: A4;
    margin: 12mm;
}

@media print {
    body {
        background: #ffffff;
    }
    .topbar,
    .btn,
    .link,
    form {
        display: none;
    }
    .block,
    .grid tr {
        break-inside: avoid;
    }
    .section-title,
    .portal-title {
        break-after: avoid;
    }
}
