/**
 * styles/styles.css
 * Shared typography, component, and utility styles.
 */

body,
input,
textarea,
select,
button {
    font-family: "Segoe UI", Tahoma, Verdana, Arial, Helvetica, sans-serif;
}

body.f-smaller,
body.f-smaller .f-normal {
    font-size: 13px;
}

body.f-default,
body.f-default .f-normal {
    font-size: 15px;
}

body.f-larger,
body.f-larger .f-normal {
    font-size: 17px;
}

.f-small { font-size: 0.9em; }
.f-medium1 { font-size: 1.03em; }
.f-medium2 { font-size: 1.15em; }
.f-large { font-size: 1.25em; }
.f-largest { font-size: 1.45em; }

form {
    margin: 0;
}

a,
a:visited {
    color: var(--s4-brand);
}

a:hover,
a:active {
    color: var(--s4-brand-strong);
}

a.black,
a.black:visited {
    color: var(--s4-text);
}

a.red {
    color: var(--s4-danger);
}

a img {
    border: none;
    text-decoration: none;
    vertical-align: middle;
}

input,
textarea,
select {
    width: auto;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--s4-border-strong);
    border-radius: 10px;
    background: #ffffff;
    color: var(--s4-text);
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--s4-brand);
    box-shadow: 0 0 0 4px rgba(40, 89, 67, 0.12);
    outline: none;
}

button,
input[type="submit"],
input[type="button"] {
    padding: 11px 18px;
    border: 1px solid var(--s4-brand);
    border-radius: 999px;
    background: linear-gradient(180deg, #356f54 0%, #285943 100%);
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(40, 89, 67, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(40, 89, 67, 0.22);
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
    box-shadow: none;
}

fieldset {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid var(--s4-border);
    border-radius: 14px;
    background: #ffffff;
}

fieldset legend {
    padding: 0 8px;
    color: var(--s4-brand-strong);
    font-weight: bold;
}

th sup {
    font-weight: normal;
}

.title,
.subtitle {
    margin: 0 0 14px;
    color: var(--s4-brand-strong);
    line-height: 1.15;
}

.title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 700;
}

.subtitle a,
.subtitle a:visited,
.subtitle a:active {
    color: var(--s4-brand-strong);
}

.errorTitle {
    font-size: 1.7rem;
    color: var(--s4-danger);
    font-weight: bold;
}

.errorMessages {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #e6bcbc;
    border-radius: 14px;
    background: #fff2f2;
    color: #9c2f2f;
}

.errorMessages div {
    margin-bottom: 4px;
}

.errorMessages .intro {
    font-style: italic;
}

.errorMessages .error {
    line-height: 1.4;
}

.red {
    color: var(--s4-danger);
}

.green,
.success {
    color: var(--s4-success);
}

.strikethru {
    text-decoration: line-through;
}

#force-complete-hs-wizard {
    padding: 12px 16px 12px 40px;
    border: 1px solid #ecd78b;
    border-radius: 12px;
    background: #fff8d8 url(/images/alert.png) no-repeat 12px 11px;
    color: #876602;
}

.margin10px { margin: 10px; }
.left { text-align: left; }
.center,
.centre { text-align: center; }
.right { text-align: right; }

ul.condensedSquare {
    margin: 0;
    padding-left: 18px;
}

ul.condensedSquare li {
    padding-bottom: 6px;
}

ul.instructions {
    list-style: url(../images/bullet_arrow.gif) disc;
    margin-top: 2px;
    margin-bottom: 0;
}

ul.instructions li {
    margin-bottom: 4px;
}

.greenBox,
.blueBox,
.redBox {
    margin-bottom: 18px;
    border: 1px solid var(--s4-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--s4-shadow-soft);
}

.greenBox {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.blueBox {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.redBox {
    background: linear-gradient(180deg, #ffffff 0%, #fff6f6 100%);
    color: var(--s4-danger);
}

.boxHeading {
    padding: 12px 16px;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.92em;
    text-align: left;
    letter-spacing: 0.03em;
}

.boxHeading a,
.boxHeading a:active,
.boxHeading a:visited {
    color: #ffffff;
    text-decoration: none;
}

.boxHeading a:hover {
    text-decoration: underline;
}

.greenBox .boxHeading {
    background: linear-gradient(135deg, #2d654a 0%, #214b37 100%);
}

.blueBox .boxHeading {
    background: linear-gradient(135deg, #436fb0 0%, #2e568f 100%);
}

.redBox .boxHeading {
    background: linear-gradient(135deg, #bd5454 0%, #933737 100%);
}

.greenBox.white {
    background-color: #ffffff;
}

.greenBox .boxContent,
.blueBox .boxContent,
.redBox .boxContent {
    padding: 16px;
}

.greenBox a.selected {
    background-color: #cef5db;
}

.greenDashedBox {
    border: 1px dashed var(--s4-border-strong);
    border-radius: 14px;
    padding: 18px;
    margin: 15px 0;
    background: var(--s4-surface-alt);
}

table.greenTBL {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid var(--s4-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--s4-shadow-soft);
}

table.greenTBL th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--s4-border);
    background: linear-gradient(180deg, #f9fbf9 0%, #eef4ef 100%);
    color: var(--s4-brand-strong);
    vertical-align: middle;
}

table.greenTBL td {
    padding: 12px 14px;
    border-top: 1px solid #edf1ee;
    text-align: center;
    vertical-align: top;
}

table.greenTBL tr:first-child td {
    border-top: none;
}

table.greenTBL tr:hover td {
    background-color: #f6faf7;
}

table.sheet {
    width: 100%;
    border-collapse: collapse;
}

table.sheet td,
table.sheet th {
    border: 1px solid #111111;
    padding: 4px;
}

table.sheet th {
    background-color: #f0f0f0;
}

table.sheet .dec {
    text-align: right;
}

.fixed_centered {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.margin0 { margin-left: 10px; }
.margin1 { margin-left: 20px; }
.ie_margin1 { padding-left: 20px; }
.margin1_centered {
    margin-left: 20px;
    margin-right: 20px;
}

.ie_margin1_centered {
    padding-left: 20px;
    padding-right: 20px;
}

.margin2 { margin-left: 40px; }
.ie_margin2 { padding-left: 40px; }
.margin2_centered {
    margin-left: 40px;
    margin-right: 40px;
}

.ie_margin2_centered {
    padding-left: 40px;
    padding-right: 40px;
}

td.left,
table.greenTBL td.left,
th.left {
    text-align: left;
    padding-left: 14px;
}

.bordercell {
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.lazyTable label {
    display: block;
    float: left;
    width: 120px;
    margin-bottom: 4px;
}

.lazyTable100 label { width: 100px; }
.lazyTable120 label { width: 120px; }
.lazyTable140 label { width: 140px; }
.lazyTable160 label { width: 160px; }
.lazyTable180 label { width: 180px; }

.lazyTable span {
    display: block;
    float: left;
}

.lazyTable span.style {
    display: inline;
    float: none;
}

.lazyTable br {
    clear: both;
}

.lazyFileTable img {
    float: left;
    padding-right: 7px;
    padding-bottom: 3px;
}

.lazyFileTable label,
.lazyFileTable a {
    float: left;
    display: block;
    padding-bottom: 3px;
    font-size: 95%;
}

.lazyFileTable .description {
    clear: left;
    margin-left: 24px;
    font-size: 90%;
    font-style: italic;
    position: relative;
    top: -3px;
    padding-bottom: 5px;
    color: #444444;
}

.lazyFileTable br {
    clear: both;
}

.holistics .item {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid var(--s4-border);
    border-radius: 14px;
    background: #ffffff;
}

.holistics .item img {
    float: left;
    margin: 2px 12px 8px 0;
}

.holistics .itemTitle {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--s4-brand-strong);
}

.holistics .itemDesc {
    margin-left: 24px;
    color: var(--s4-muted);
    line-height: 1.5;
}

table.form th {
    text-align: left;
    font-weight: bold;
}

table.form.indent {
    margin-left: 20px;
}

table.form div.section {
    width: auto;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--s4-border-strong);
    font-style: italic;
    color: var(--s4-muted);
}

form.popup {
    border: 1px solid var(--s4-border-strong);
    border-radius: 14px;
    background-color: #f4f8ff;
}

form.popup .popupTitle {
    padding: 10px 14px;
    color: #ffffff;
    background-color: #204a82;
    font-weight: bold;
    font-size: 95%;
    text-align: center;
}

form.popup .popupContent {
    padding: 16px;
}

.pageContents {
    float: right;
    width: 220px;
    margin-left: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--s4-border);
    border-radius: 14px;
    background-color: #f6faf7;
    overflow: hidden;
}

.pageContents h4 {
    margin: 0;
    padding: 10px 14px;
    color: #ffffff;
    background-color: #7a8c80;
    text-align: center;
}

.pageContents ol,
.pageContents ul {
    margin: 10px 0;
    padding-left: 2.5em;
}

.pageContents li {
    padding-bottom: 4px;
}

.tip,
.link,
.overlibtip {
    cursor: pointer;
}

.overlibtip {
    border-bottom: 1px dashed orange;
}

.shadow-outer {
    background-color: #999999;
}

.shadow-content {
    position: relative;
    right: 3px;
    bottom: 3px;
    border: 1px solid black;
    background-color: #ffffff;
}

.trainingTableHead,
.trainingTable {
    border: 1px solid #cfd8d2;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}

.trainingTableHead th,
.trainingTable th {
    padding: 8px;
    text-align: left;
    background: #edf3ee;
    border-bottom: 1px solid #d8e2db;
}

.trainingTableHead td,
.trainingTable td,
.trainingTableForm td {
    padding: 8px;
    border-bottom: 1px solid #d8e2db;
}

.trainingLastRow td,
.trainingLastRow th,
.trainingTableForm {
    border-bottom: 1px solid #cfd8d2;
}

.trainingTableForm {
    border-left: 1px solid #cfd8d2;
    border-right: 1px solid #cfd8d2;
}

.trainingErrorBox {
    margin: 0 0 10px;
    padding: 10px;
    border: 1px dotted #900;
    color: #f00;
    font-weight: bold;
}

.trainingDropdown {
    width: 83%;
}

.trainingTextbox {
    width: 73px;
}

.trainingTextboxAction {
    width: 130px;
}

.pdfButton {
    width: 116px;
    padding: 7px 10px 7px 28px;
    border: 1px solid var(--s4-border-strong);
    border-radius: 999px;
    background: #ffffff url(../images/fileicons/pdf.gif) 8px 7px no-repeat;
    text-align: right;
    cursor: pointer;
}

.staticPage ol,
.staticPage ul {
    margin: 5px 25px;
}

.collapsableBox .boxHeading {
    cursor: pointer !important;
}

.visually-muted {
    color: var(--s4-muted);
}

.inline-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.info-banner,
.success-banner {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
}

.info-banner {
    border: 1px solid #c8d8f0;
    background: #edf4ff;
    color: #355881;
}

.success-banner {
    border: 1px solid #c8dfcf;
    background: #edf8f0;
    color: #2f6d47;
}

.compact-fieldset {
    margin-top: 18px;
}

.file-description {
    margin: 4px 0 0;
    color: var(--s4-muted);
}

.text-container {
    position: relative;
}

.text-container input {
    width: 150px;
}

.text-container .balloon-container {
    position: absolute;
    top: -10px;
    left: -60px;
    z-index: 200;
    padding: 17px;
    border: 1px solid #d6dfd9;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(31, 52, 39, 0.14);
}

.text-container .balloon-container .close {
    position: absolute;
    top: -1px;
    right: 4px;
    font-size: 17px;
    font-weight: bold;
}

.text-container .balloon-container textarea {
    width: 300px;
    height: 100px;
}

.recordkeeping-table .input-row td {
    background: rgba(213, 240, 221, 0.7);
}

@media (max-width: 720px) {
    .pageContents {
        float: none;
        width: auto;
        margin-left: 0;
    }

    .text-container .balloon-container {
        left: 0;
        right: auto;
        width: 280px;
    }

    .text-container .balloon-container textarea {
        width: 240px;
    }
}
