:root {
    --radius: 5px;
    --tbl-width: 1200px;
}
a {
    text-decoration: none;
}

.wrap {
    display: grid;
    width: var(--tbl-width);           
    font-size: 16px;
    margin: 20px auto 0;      /* centered, no gap below */
    background-color: #ffffff;
    row-gap: 10px;             
}
.hdr-image {
    display: grid;
    justify-items: center;
    margin-top: 20px;
    padding-left: 10px;
    object-fit: contain;
}
.hdr-row1 {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    width: var(--tbl-width);           
    align-items: center;
    column-gap: 16px;
    padding: 8px 0 4px;
    font-size: 28px;
    font-weight: bold;
    color: black;
    text-align: center;
}
.hdr-row1-ctr {
    padding: 8px 0;
    font-size: 28px;
    font-weight: bold;
    color: black;
    text-align: center;
}
.hdr-row1-right {
    padding: 8px 0;
    font-size: 22px;
    font-weight: bold;
    font-style: italic;
    color: black;
    text-align: center;
}
.hdr-row2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 20px;     /* space between boxes */
    width: 100%;  
    margin-bottom: 20px;          
}
.hdr-nav-btn {
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: center;
    text-align: center;
    margin-left: 5px;
    margin-right: 0;
    width: 210px;
    height: 90px;
    background-color: lightblue;
    color: black;
    border-radius: var(--radius);
    border: 2px solid black;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}
.hdr-nav-btn:hover {
    background-color: yellow;
}
.date-error {
  background-color: #cc0000 !important;
  color: #ffffff !important;
  font-weight: bold;
}
.desc {
    background-color: transparent;
    text-align: right;
    min-width: 200px;
}
.images {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 20px;
    padding-left: 20px;
    font-size: 20px;
    background-color: transparent;
    font-weight: bold;
    text-align: center;
}
.in-date {
    background-color: yellow;
}
.in-dollars {
    background-color: yellow;
    width: 100px;
    font-size: 16px;
}
.in-extra-payments {
    background-color: yellow;
}
.in-integer {
    background-color: yellow;
}
.in-pct {
    background-color: yellow;
}
.in-text {
    background-color: yellow;
}
.out-date {
    background-color: transparent;
    width: 100px;
    font-size: 16px;
}
.out-dollars {
    width: 100px;
    background-color: transparent;
    font-size: 16px;
}
.out-integer {
    background-color: transparent;
    width: 100px;
    font-size: 16px;
}
.out-payment {
    background-color: transparent;
    width: 100px;
}
.out-pct {
    background-color: transparent;
    width: 100px;
 }
.sched-wrap {
    display: grid;
    width: 1200px;        /* same as header */
    margin: 0 auto;       /* centered under header */
    border: 2px solid black;
    border-radius: var(--radius);
    color: black;
    overflow: hidden;     /* lets header blue reach rounded corners */
}
.sched-hdr {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    font-size: 22px;
    font-weight: bold;
    color: #1a3a5f;
    text-align: center;
    padding: 8px 0;
    margin: 0;                 /* no gap above/below */
    background-color: #e7f0fa;
}
.sched-in {
    display: grid;
    width: var(--tbl-width);           
    grid-template-columns: 300px 200px 400px 150px;
    align-items: center;
    column-gap: 10px;
    font-size: 20px;
    font-weight: normal;
    min-height: 30px;
    text-align: right;
    margin-left: 10px;
    margin-bottom: 2px;
}
.sched-out {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(10, 120px);
    column-gap: 1px;
    font-weight: normal;
    text-align: right;
    margin-top: 6px;
}

/* Light zebra striping for schedule rows (skips header) */
.sched-out:nth-of-type(12n - 2) > * {
    background-color: #f7f7f7;
} 
/* Keep the yellow extra-payment inputs yellow */
.sched-out:nth-of-type(12n - 2) .sched-in-dollar {
    background-color: yellow;
}
.sched-out-hdr {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    padding: 4px 2px;
}
.sched-out-int {
    font-size: 16px;
    text-align: center;
}
.sched-out-date {
    font-size: 16px;
    text-align: center;
}
.sched-out-dollar {
    font-size: 16px;
    text-align: center;
}
.sched-in-dollar {
    font-size: 16px;
    text-align: center;
    background-color: yellow;
    border: 0;
    outline: 0;
}
.disclaimer {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    width: var(--tbl-width);           
    margin: 10px auto;   /* center horizontally */
    padding: 10px;
}
.disclaimer-ctr {
    display: grid;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 18px;
    background-color: lightblue;
    text-align: left;
}

/* ------- INPUT FIELDS FROM USER --------- */
input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 5px;
    font-size: 16px;
    text-align: right;
    box-sizing: border-box;
    border: 0px;
    transition: box-shadow 0.15s ease;
}

/* Subtle hover highlight for editable inputs */
input[type="text"]:hover:not([readonly]),
input[type="number"]:hover:not([readonly]) {
    box-shadow: 0 0 0 2px rgba(26, 58, 95, 0.3); /* AHI blue glow */
}

/* --------- OUTPUT FIELDS CALCULATED FROM USER INPUT --*/ 
input[readonly] {
    box-sizing: border-box;
    color: #333;
    border: 0px;
}

/*---  PRINTER SETTINGS ---*/
@media print {
    /* Make page use full width when printing */
    body {
        margin: 0;
        background: white;
    }

    .wrap {
        width: auto;          /* Let it expand to page width */
        margin: 0;
    }

    /* Hide nav / buttons / extra decorations when printing */
    .hdr-row1,
    .hdr-row2,
    .hdr-navs,
    .disclaimer,
    .images {
        display: none !important;
    }

    /* Optional: make text a bit smaller or adjust if needed */
    .calc-hdr {
        font-size: 16px;
        font-weight: bold;
    }
    .calc-row {
        font-size: 12px;
    }
    /* Avoid awkward row splits across pages if your rows are tall */
    .calc-row {
        page-break-inside: avoid;
    }
}

