﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url("reset.css");

html {
    font-size: 14px;
}

body {
    padding: 0 10px 30px;
/*    text-align: center;*/
    font-size: 1rem;
    line-height: 1.5;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-weight: 400;
    color: #333333;
    background: #F8F7F4;
    border-top: 10px solid #89a0a7;
}

.ClosureMsg {
    margin: 0 0 .1em;
    padding: 10px;
    font-size: 1.1em;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background: #fcf8e9;
}

h2 {
    margin: 0 0 10px;
    letter-spacing: 2px;
    padding: 10px 0 5px 10px;
    font-size: 1.75rem;
    font-weight: bold;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: #057ab2;
    background: url(../img/dot_horizontal.gif) repeat-x bottom;
}

h3 {
    margin: 0 0 0.1em;
    letter-spacing: 2px;
    padding: 10px 4px 4px 4px;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background-color: #f2f2f2;
}

h4 {
    margin: 0 0 0.4em;
    padding-left: 10px;
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

h6 {
    margin: 0 0 1em;
    padding: 10px 0 5px 10px;
    font-size: 1.125rem;
    font-weight: bold;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: blue;
    background: #EEEEEE;
    border-style: solid;
    border-width: thin;
}

.Welcome {
    padding: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: #057ab2;
}

ul.school {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    padding-left: 10px;
    vertical-align: text-top;
    list-style-position: inside;
    list-style-image: url(../img/SideArrow.gif);
    list-style-type: square;
}

dl {
    margin: 0 0 1em;
}

dt {
    margin: 0 0 .4em;
    font-weight: bold;
}

dd {
    margin: 0 0 1em;
    line-height: 1.4em;
}

a {
    text-decoration: none;
    color: #057ab2;
}

    a.tree:hover {
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }

strong {
    font-weight: bold;
}

td {
    padding: 1px;
    vertical-align: top;
}

table.underlineRow {
    border: none;
    border-collapse: collapse;
}

    table.underlineRow td {
        padding: 4px;
        vertical-align: top;
        border-bottom: dotted 1px #00afa0;
    }

/* PAGE */
#page {
    margin: 0 auto;
    text-align: left;
    width: 100%;
    background: #FFFFFF;
}

/* HEADER */
#header {
    background: url(../img/TMDSASLogosmaller2020.png) no-repeat;
    height: 80px;
    position: relative;
    top: 0;
    left: 0;
    background-color: #FFFFFF;
}

    #header h1 a {
        position: absolute;
        top: 30px;
        left: 15px;
        width: 60%;
        height: auto;
        text-indent: -9000px;
    }

ul#topnav {
    position: absolute;
    right: 15px;
    list-style-type: none;
}

    ul#topnav li {
        margin: 0;
        padding: 0;
        float: left;
        background: none;
    }

    ul#topnav a {
        height: 23px;
        display: block;
        text-decoration: none;
        text-indent: -9000px;
    }

li#tnav1 a {
    width: 97px;
    background: url(../img/nav_home.png) no-repeat;
}

p#area {
    background-color: white;
    font-size: .85rem;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    position: absolute;
    right: 15px;
    width: 300px;
    padding: 8px 10px 10px 10px;
    z-index: 100;
    text-align: left;
    border: 1px solid #E0DDD8;
    border-radius: 8px;
}

#logoutButton {
    float: right;
    z-index: 1;
    position: absolute;
    top: 10px;
    right: 2px;
}

p#area #user {
    position: relative;
    right: 15px;
    width: 150px;
}

#AccessMenu {
    margin: 0;
    position: absolute;
    display: none;
    height: 0;
}

    #AccessMenu li {
        list-style: none;
    }

    #AccessMenu a {
        position: absolute;
        text-indent: -9000px;
    }

/* NAV */
#nav {
    margin: 0;
    height: 38px;
    background: url(../img/nav_bg.jpg) no-repeat;
}

    #nav ul {
        margin: 0;
        padding: 0 0 0 112px;
        list-style-type: none;
    }

    #nav li {
        margin: 0 10px 0 0;
        padding: 0;
        float: left;
        background: none;
    }

        #nav li#nav3 {
            margin: 0 75px 0 -3px;
        }

        #nav li#nav8 {
            margin: 0;
        }

    #nav a {
        height: 38px;
        display: block;
        text-decoration: none;
        text-indent: -9000px;
    }

li#nav1 a {
    width: 80px;
    background-image: url(../img/nav1.jpg);
}

li#nav2 a {
    width: 66px;
    background-image: url(../img/nav2.jpg);
}

li#nav3 a {
    width: 98px;
    background-image: url(../img/nav3.jpg);
}

li#nav4 a {
    width: 116px;
    background-image: url(../img/nav4.jpg);
}

li#nav5 a {
    width: 94px;
    background-image: url(../img/nav5.jpg);
}

li#nav6 a {
    width: 118px;
    background-image: url(../img/nav6.jpg);
}

li#nav7 a {
    width: 80px;
    background-image: url(../img/nav7.jpg);
}

#nav a:hover {
    background-position: 0 -38px;
}

#section1 li#nav1 a, #section2 li#nav2 a, #section3 li#nav3 a,
#section4 li#nav4 a, #section5 li#nav5 a, #section6 li#nav6 a,
#section7 li#nav7 a {
    background-position: 0 -38px;
}

/* MAIN */
#main {
    padding: 15px 0 25px;
    margin: 0 0 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

    #main .top {
        clear: both;
        height: 6px;
        background: url(../img/main_top.jpg) no-repeat top;
    }

    #main .bottom {
        clear: both;
        height: 6px;
        background: url(../img/main_btm.jpg) no-repeat bottom;
    }

/* FOOTER */
#footer {
    text-align: center;
    font-size: 0.875rem;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: #666666;
    padding: 20px 0 10px 0;
}

    #footer ul {
        list-style-type: none;
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    #footer li {
        display: inline;
        background: none;
        list-style: none;
        padding: 0;
    }

        #footer li + li::before {
            content: " | ";
            color: #999999;
            padding: 0 6px;
        }

    #footer a {
        color: #057ab2;
        text-decoration: underline;
    }

/* CONTENT */
#content {
    padding: 10px;
    background: #FFFFFF;
    position: relative;
    height: auto;
    border: 1px solid #E0DDD8;
    border-radius: 8px;
}

/* RIGHT COLUMN */
.rightcol {
    background: #FFFFFF;
    color: #666666;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

/* FULLSCREEN */
#fullscreen {
    height: auto;
    min-height: 512px;
    padding: 10px;
    background: #FFFFFF;
    color: #666666;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

/* FORMS */
.txt,
.form-control,
input[type="text"],
input[type="number"],
textarea,
select {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    color: #333333;
    padding: 6px 10px;
}

/* FORM CONTROL WIDTH UTILITIES */
.form-control-year {
    width: 80px !important;
}

.form-control-short {
    width: 120px !important;
}

.form-control-inline {
    width: auto !important;
    display: inline-block;
}

/* MISC UTILITIES */
.noindent {
    margin-left: 20px !important;
}

.indent {
    margin-left: 5%;
}

h3.alt {
    background-color: #535759;
    color: White;
    padding: 5px 3px 5px 5px;
}

img.left {
    margin: 0 15px 8px 0;
    float: left;
}

img.right {
    margin: 0 0 8px 15px;
    float: right;
}

ul.blanks li {
    padding-left: 0;
    background: none;
}

.small {
    font-size: 0.875rem;
}

/* Single definition only - display:none removes from layout */
.hide {
    display: none;
}

.error {
    color: #cc0000;
    padding: 1px 1px 2px 2px;
}

.submitted {
    color: #0000cc;
    font-weight: bold;
    padding: 0 0 10px 0;
}

.success {
    color: #0000cc;
    font-weight: bold;
    padding: 1px;
}

.BRMessage {
    color: blue;
    padding: 5px 1px 5px 5px;
    overflow: auto;
}

.BRMessageNoPadding {
    color: blue;
    overflow: auto;
}

.instructions {
    font-size: 1rem;
    font-weight: 100;
}

.floatLeft {
    float: left;
    padding: 2px;
}

.floatRight {
    float: right;
}

.caption {
    font-size: 0.75rem;
}

div.float {
    float: left;
}

    div.float p {
        background-color: #ffe;
        font-size: .75em;
        text-align: left;
        font-weight: bold;
        padding-left: 5px;
        padding-right: 5px;
        padding-bottom: 5px;
    }

/* Fixed: was color:Red which failed contrast */
.required {
    font-weight: bolder;
    font-size: 1.2em;
    color: #cc0000;
    clear: none;
}

div.spacer {
    clear: both;
}

.submit, .reset, .delete, .create, .add, .copy {
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 1.1em;
    height: 28px;
}

.submit {
    width: 108px;
}

.helphint {
    font-size: .85em;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: #057ab2;
}

.blue {
    color: #057ab2;
}

.negativeNumber {
    font-size: .85em;
    font-weight: bold;
    background-color: Silver;
    color: #cc0000;
}

.criticalMessage {
    font-size: 1.25rem;
    color: #cc0000;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

.closureCountdown {
    background-color: Yellow;
    border-color: Black;
    border-style: solid;
    border-width: 1px;
    width: 100%;
}

.center {
    text-align: center;
}

.italic {
    font-style: italic;
}

.definition {
    font-size: .75rem;
}

.leftAlign {
    text-align: left;
}

.rightAlign {
    text-align: right;
}

.topAlign {
    vertical-align: top;
}

.bold {
    font-weight: bold;
}

.btnRank {
    background-color: #cc0000;
    border-color: #efefef;
    color: #FFFFFF;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 12pt;
    text-align: center;
}

.matchResultMsg {
    margin: 0 0 .1em;
    padding: 10px;
    font-size: 1.1em;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background: #fcf8e9;
    border: inset 2px black;
    display: block;
}

.wideSpacing {
    word-spacing: .6em;
}

.evenRow {
    background-color: #f2f2f2;
}

.oddRow {
    background-color: White;
}

/* Fixed: removed duplicate position/background-color/right declarations */
div.overlay {
    position: absolute;
    display: none;
    top: 0;
    right: 15px;
    width: 100%;
    background-color: white;
    color: #cc0000;
    font-weight: bold;
    font-size: 1.5rem;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    padding: 10px 0;
    text-align: center;
    border: 3px solid green;
    z-index: 2;
}

/* EFORM */
#eForm {
    text-align: left;
    padding: 0 25px 25px;
    margin: 0 0 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

    #eForm .label {
        font-weight: bold;
    }

    #eForm .textBox {
        background-color: #FFFF9F;
        vertical-align: top;
        border: 1px solid black;
    }

    #eForm .redBold {
        color: #cc0000;
        font-weight: bold;
    }

    #eForm .center {
        margin-left: auto;
        margin-right: auto;
        width: 50%;
        background-color: #b0e0e6;
    }

.clear {
    overflow: hidden;
    width: 100%;
}

.roundbutton {
    color: #444;
    display: block;
    float: left;
    font-size: 12px;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    height: 24px;
    margin-right: 6px;
    padding-right: 18px;
    text-decoration: none;
}

    .roundbutton span {
        display: block;
        line-height: 14px;
        padding: 5px 0 5px 18px;
    }
    /* Fixed: removed outline:none which suppressed focus indicator */
    .roundbutton:active {
        color: #000;
    }

        .roundbutton:active span {
            padding: 6px 0 4px 18px;
        }

.statusTbls td {
    vertical-align: top;
    text-align: left;
    padding: 3px 6px;
}

.lbl {
    font-weight: bold;
    margin-bottom: 0;
}

.lblbold {
    font-weight: bold;
    margin-bottom: .5rem;
}

.lblnobold {
    font-weight: normal;
    margin-bottom: .5rem;
}

.gridview th {
    background-color: #057ab2;
    color: white;
}

.gridview td {
    color: #000000;
}

.gridview tr.altrow td {
    background: #f2f2f2;
}

.gvLOE th {
    background-color: #057ab2;
    color: white;
}

.gvLOE td {
    color: #000000;
    padding: 5px;
}

.gvLOE tr.altrow td {
    background: #f2f2f2;
}

/* ADA / MODERN FORM STYLES */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 4px;
    z-index: 9999;
    background: #057ab2;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
}

    .skip-link:focus {
        left: 4px;
    }

.fieldset-question {
    border: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

    .fieldset-question legend {
        font-size: 1rem;
        font-weight: normal;
        font-family: 'Inter', Arial, Helvetica, sans-serif;
        letter-spacing: normal;
        background-color: transparent;
        padding: 0;
        margin-bottom: 0.5rem;
    }

.fieldset-form {
    border: none;
    padding: 1.25rem;
    margin: 0;
    margin-top: 1rem;
    background-color: #f0f4f8;
    border-radius: 4px;
}

    .fieldset-form legend {
        font-size: 1.125rem;
        font-weight: bold;
        padding: 0;
        margin-bottom: 1rem;
    }

.grid-action-edit {
    color: #057ab2;
    padding: 0 4px;
}

.grid-action-delete {
    color: #057ab2;
    padding: 0 4px;
    margin-left: 4px;
}

    .grid-action-delete:hover,
    .grid-action-delete:focus {
        color: #cc0000;
        text-decoration: underline;
    }

/* Fixed: was #888 which fails 4.5:1 contrast */
.row-number {
    font-size: 0.75rem;
    color: #666666;
    font-weight: normal;
    display: block;
    text-align: center;
}

.form-group.row {
    margin-bottom: .75rem;
}

.hint-text {
    font-size: 0.875rem;
    color: #666666;
    display: block;
    margin-bottom: 0.25rem;
}

.required-note {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.required-indicator {
    color: #cc0000;
    font-weight: bold;
}

.text-counter-display {
    font-size: 0.875rem;
    color: #666666;
    margin-top: 0.25rem;
    text-align: right;
}

    .text-counter-display.counter-warning {
        color: #cc6600;
        font-weight: bold;
    }

    .text-counter-display.counter-limit {
        color: #cc0000;
        font-weight: bold;
    }

.table-responsive {
    border-radius: 4px;
    margin-bottom: 1rem;
}

.form-check-input.form-check-lg {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.15rem;
    cursor: pointer;
}

    .form-check-input.form-check-lg:focus {
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

/* RADIO BUTTON LIST SPACING */
.rbl-inline span {
    margin-right: 16px;
}

/* GRIDVIEW ROW HIGHLIGHT */
tr.row-highlight-new td {
    background-color: #E6F1FB;
    border-left: 0;
}

tr.row-highlight-new {
    outline: 2px solid #185FA5;
    outline-offset: -2px;
}

tr.row-highlight-fade td {
    background-color: transparent;
    transition: background-color 2s ease;
}

tr.row-highlight-fade {
    outline-color: transparent;
    transition: outline-color 2s ease;
}

.row-new-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    background-color: #185FA5;
    color: #E6F1FB;
    border-radius: 4px;
    padding: 2px 7px;
    margin-left: 8px;
    vertical-align: middle;
    opacity: 1;
    transition: opacity 2s ease;
}

.row-new-badge-fade {
    opacity: 0;
}

/* ACTIVITY TILES */
.tile-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.activity-tile {
    background-color: #ffffff;
    border: 0.5px solid #ced4da;
    border-radius: 8px;
    overflow: hidden;
}

.tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background-color: #f0f4f8;
    border-bottom: 0.5px solid #ced4da;
    gap: 12px;
}

.tile-header-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
}

.tile-title {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    display: block;
}

.tile-org {
    font-size: 12px;
    font-weight: 400;
    color: #555555;
    display: block;
}

.tile-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.tile-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.tile-col {
    padding: 10px 14px;
    border-right: 0.5px solid #ced4da;
}

    .tile-col:last-child {
        border-right: none;
    }

.tile-field {
    margin-bottom: 6px;
}

    .tile-field:last-child {
        margin-bottom: 0;
    }

.field-label {
    font-size: 11px;
    font-weight: 500;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 2px;
}

.field-value {
    font-size: 13px;
    color: #333333;
}

.tile-desc {
    padding: 8px 14px;
    border-top: 0.5px solid #ced4da;
}

.desc-label {
    font-size: 11px;
    font-weight: 500;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 4px;
}

.desc-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

.pill {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 99px;
}

.pill-yes {
    background-color: #EAF3DE;
    color: #3B6D11;
}

.pill-no {
    background-color: #f0f4f8;
    color: #666666;
}

.tile-empty {
    font-size: 14px;
    color: #666666;
    padding: 1rem 0;
}

/* TILE HIGHLIGHT */
.activity-tile.highlight-new {
    border: 2px solid #185FA5;
    background-color: #E6F1FB;
}

    .activity-tile.highlight-new .tile-header {
        background-color: #B5D4F4;
    }

.activity-tile.highlight-fade {
    border-color: #ced4da;
    background-color: #ffffff;
    transition: border-color 2s ease, background-color 2s ease;
}

    .activity-tile.highlight-fade .tile-header {
        background-color: #f0f4f8;
        transition: background-color 2s ease;
    }

.badge-new {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    background-color: #185FA5;
    color: #E6F1FB;
    border-radius: 4px;
    padding: 2px 7px;
    margin-left: 8px;
    vertical-align: middle;
    opacity: 1;
    transition: opacity 2s ease;
}

.badge-new-fade {
    opacity: 0;
}

/* TILE ERROR */
.activity-tile.tile-has-error {
    border: 2px solid #cc0000;
}

.tile-error {
    padding: 8px 14px;
    border-top: 2px solid #cc0000;
    background-color: #fff5f5;
    color: #cc0000;
    font-size: 13px;
    line-height: 1.6;
}

.tile-error-icon {
    font-size: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    tr.row-highlight-fade td,
    tr.row-highlight-fade,
    .row-new-badge-fade,
    .activity-tile.highlight-fade,
    .activity-tile.highlight-fade .tile-header,
    .badge-new-fade {
        transition: none;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid #ced4da;
        background: linear-gradient(to right, white 30%, rgba(255,255,255,0)), linear-gradient(to right, rgba(255,255,255,0), white 70%) 0 100%, linear-gradient(to right, rgba(0,0,0,.08), rgba(0,0,0,0)), linear-gradient(to left, rgba(0,0,0,.08), rgba(0,0,0,0));
        background-repeat: no-repeat;
        background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
        background-position: 0 0, 100%, 0 0, 100%;
        background-attachment: local, local, scroll, scroll;
    }
}

/* PRINT */
@media print {
    .tile-list {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .activity-tile {
        border: 1px solid #999999;
        border-radius: 0;
        break-inside: avoid;
        page-break-inside: avoid;
    }

        .activity-tile.highlight-new {
            border: 1px solid #999999 !important;
            background-color: #ffffff !important;
        }

            .activity-tile.highlight-new .tile-header {
                background-color: #f5f5f5 !important;
            }

    .tile-header {
        background-color: #f5f5f5 !important;
    }

    .tile-org {
        color: #333333;
    }

    .tile-actions, #TblSaveButtons, #btnAddAnother {
        display: none !important;
    }

    .badge-new {
        display: none !important;
    }

    .desc-text, .field-value, .field-label {
        color: #333333 !important;
    }

    .desc-text {
        font-size: 12px;
    }

    .pill-yes, .pill-no {
        background-color: #ffffff !important;
        color: #333333 !important;
        border: 0.5px solid #999999;
        border-radius: 0 !important;
        padding: 1px 4px;
    }
}
