﻿
/* =====================================================
   SkillsUSA Competition Judging App
   judging.css
===================================================== */


/* =====================================================
   Global Judging Wrapper
===================================================== */

.judging-app {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    box-sizing: border-box;
}

.judging-app *,
.judging-app *:before,
.judging-app *:after {
    box-sizing: inherit;
}
.judging-context-strip {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px;
    width: 100%;
    padding: 8px 2px;
    margin-bottom: 16px;
    background: #ece6fe;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 100;
}

    .judging-context-strip .context-main {
        display: flex !important;
        flex-direction: row !important;
        align-items: baseline !important;
        gap: 8px;
        flex-wrap: wrap;
    }

    .judging-context-strip .context-judge {
        margin-left: auto;
        text-align: right;
        font-size: 12px;
        color: #444;
        white-space: nowrap;
    }

    .judging-context-strip .context-label {
        display: inline-block !important;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        color: #666;
    }

.judging-context-strip {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 8px 14px !important;
    min-height: 44px !important;
}

.context-main {
    flex: 1 1 auto;
}

.context-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
}

.context-judge {
    flex: 0 0 auto;
    white-space: nowrap;
}

.context-nav-button,
.context-nav-button .dxbButton,
.context-nav-button .dxbButtonSys {
    min-width: 105px !important;
    height: 28px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 0 8px !important;
}


/* =====================================================
   Common Typography
===================================================== */

.judging-app h1,
.judging-app h2,
.judging-app h3,
.judging-app h4 {
    margin-top: 0;
    color: #1f1f1f;
    font-weight: 600;
}

.judging-app p {
    line-height: 1.5;
}

.judging-app .helper-text {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

.judging-app .muted-text {
    color: #777;
}


/* =====================================================
   Page Layout
===================================================== */

.judging-page {
    width: 100%;
    padding: 12px 16px;
}

.judging-page-centered {
    max-width: 1200px;
    margin: 0 auto;
}


/* =====================================================
   Generic Card Styling
===================================================== */

.judging-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.judging-card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.judging-card-subtitle {
    color: #666;
    margin-bottom: 18px;
}
.judge-entry-card {
    max-width: 700px;
}

/* =====================================================
   Division Selection
===================================================== */

.division-button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
    gap: 20px;
}

.division-tile {
    text-align: center;
}

.division-select-button {
    transition: all .15s ease-in-out;
}

    .division-select-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }

    .division-select-button:active {
        transform: scale(.98);
    }

.division-select-button,
.division-select-button .dxbButton,
.division-select-button .dxbButtonSys {
    width: 100% !important;
    min-width: 220px !important;
    height: 88px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
}

.division-subtext {
    margin-top: 10px;
    font-size: 15px;
    color: #777;
    font-weight: 500;
}

.division-subtext-scored {
    margin-top: 2px;
    font-size: 14px;
    color: #009900;
    font-weight: 500;
}

.prelim-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff3cd;
    color: #856404;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}



/* =====================================================
   Contestant Entry Screen
===================================================== */

.contestant-entry-card {
    max-width: 620px;
    margin: 0 auto;
}

.judge-context {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.context-block {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 12px 14px;
}

.context-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 4px;
}

.context-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.table-cell-right {
    text-align: right;
}

/* =====================================================
   Form Controls
===================================================== */

.form-row {
    margin-bottom: 20px;
}
.primary-button {
    margin-top: 12px;
}
.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.competitor-input input {
    width: 100%;
    max-width: 260px;
    height: 56px;
    font-size: 28px;
    text-align: center;
    letter-spacing: 4px;
}

/* =====================================================
   Competitor Number Entry
===================================================== */

.competitor-input input,
.competitor-input .dxeEditAreaSys {
    font-size: 38px !important;
    font-weight: 700;
    text-align: center !important;
    letter-spacing: 10px;
    height: 72px !important;
    line-height: 72px !important;
}

.competitor-input {
    max-width: 280px;
}


.competitor-select-card {
    max-width: 900px;
}

.judging-app .dxgvTable td {
    font-size: 18px;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    vertical-align: middle;
}

.judging-app .dxgvHeader td,
.judging-app .dxgvHeader {
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Competitor Number */
.competitor-number-cell {
    font-size: 20px !important;
    font-weight: 700;
}

/* Status */
.competitor-status-cell {
    font-size: 18px !important;
    font-weight: 600;
}

/* Total column */
.competitor-total-cell {
    font-size: 18px !important;
    font-weight: 600;
    text-align: center;
}

/* Action buttons */
.grid-action-button,
.grid-action-button .dxbButton,
.grid-action-button .dxbButtonSys {
    min-width: 110px;
    min-height: 42px;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* =====================================================
   Buttons
===================================================== */

.primary-button,
.primary-button input,
.dx-button-primary {
    min-width: 220px;
    height: 48px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

.secondary-button,
.secondary-button input {
    min-width: 180px;
    height: 40px;
    font-size: 12px;
}

.pregroup-select-button {
    min-width: 110px;
    height: 40px;
    font-size: 14px;
}

/* =====================================================
   Score Entry Cards
===================================================== */
.score-card {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}

.score-card-header {
    margin-bottom: 14px;
}

.score-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 4px;
}

.score-max {
    color: #666;
    font-size: 12px;
}

.score-card {
    padding: 10px 14px;
    margin-bottom: 10px;
}

.score-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}



.score-footer-line {
    display: flex;
    margin-top: 4px !important;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.score-current {
    margin-top: 0;
    font-size: 15px;
    font-weight: 700;
}

.score-meta-inline {
    font-size: 13px !important;
    color: #555;
}

/* =====================================================
   Score Radio Buttons / Tablet Touch Targets
===================================================== */

.judging-app .score-radio-list {
    display: inline-block !important;
    max-width: 100%;
}

    .judging-app .score-radio-list,
    .judging-app .score-radio-list > div {
        width: auto !important;
    }

    .judging-app .score-radio-list table {
        width: auto !important;
        min-width: 0 !important;
        border-collapse: separate !important;
        border-spacing: 8px 3px !important;
        margin-bottom: 2px !important;
    }

    .judging-app .score-radio-list td {
        padding: 2px 6px !important;
        white-space: nowrap;
    }

    .judging-app .score-radio-list label,
    .judging-app .score-radio-list .dxichTextCellSys {
        font-size: 20px !important;
        font-weight: 700 !important;
    }

    .judging-app .score-radio-list input[type="radio"] {
        width: 18px !important;
        height: 18px !important;
        margin: 4px !important;
    }

/* Let larger scales wrap only on smaller screens */
@media (max-width: 900px) {
    .judging-app .score-radio-list table,
    .judging-app .score-radio-list tbody,
    .judging-app .score-radio-list tr {
        display: block;
        width: auto !important;
    }

    .judging-app .score-radio-list td {
        display: inline-block;
        margin-right: 8px;
        margin-bottom: 5px;
    }
}



/* =====================================================
   Assignment Pre Grouping
===================================================== */


.pregroup-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 16px;
    grid-template-columns: 280px 1fr;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e5e5;
}

.pregroup-competitor {
    font-size: 18px;
}

.pregroup-radio-list table {
    border-spacing: 8px 0 !important;
}

.pregroup-radio-list label,
.pregroup-radio-list .dxichTextCellSys {
    font-size: 18px !important;
    font-weight: 700;
}


.pregroup-footer {
    display: grid;
    grid-template-columns: 280px repeat(5, 1fr);
    align-items: center;
    padding: 14px 0;
    border-top: 2px solid #ddd;
    font-weight: 700;
}

.pregroup-footer-label {
    padding-left: 8px;
    color: #555;
}

.pregroup-summary {
    text-align: left;
    padding-left: 28px;
    font-size: 17px;
}

/* =====================================================
   Penalty Cards
===================================================== */

.penalty-card {
    background: #f7868f;
    border: 1px solid #e4bcbc;
}

.penalty-title {
    color: #8c1d1d;
}

.penalty-value {
    color: #FAB9D8;
    font-weight: 700;
}


/* =====================================================
   Running Totals / Sticky Header
===================================================== */

.judging-summary-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    margin-top: 0 !important;
    border-bottom: 1px solid #dddddd;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.judging-summary-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.summary-stat {
    font-size: 15px;
    font-weight: 600;
}


/* =====================================================
   Validation / Messages
===================================================== */

.validation-error {
    display: block;
    margin-top: 8px;
    color: #b00020;
    font-size: 14px;
    font-weight: 600;
}

.success-message {
    padding: 12px 16px;
    background: #edf9ed;
    border: 1px solid #b9dfb9;
    border-radius: 8px;
    color: #226622;
}

.warning-message {
    padding: 12px 16px;
    background: #fff8e5;
    border: 1px solid #e2cf8d;
    border-radius: 8px;
    color: #8a6d1d;
}


/* =====================================================
   DevExpress Overrides
===================================================== */

.judging-app .dxflFormLayout {
    width: 100%;
}

.judging-app .dxflCaptionCell {
    font-weight: 600;
}

.judging-app .dxeTextBoxSys {
    border-radius: 8px;
}

.judging-app .dxbButton {
    border-radius: 8px;
}


/* =====================================================
   Responsive Layout
===================================================== */

@media (max-width: 900px) {

    .judging-card {
        padding: 20px;
    }

    .score-title {
        font-size: 18px;
    }
}


@media (max-width: 768px) {

    .judge-context {
        grid-template-columns: 1fr;
    }

    .judging-summary-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .competitor-input input {
        max-width: 100%;
    }

    .primary-button,
    .primary-button input {
        width: 100%;
        max-width: none;
    }
}


@media (max-width: 480px) {

    .judging-page {
        padding: 14px 10px;
    }

    .judging-card {
        padding: 16px;
        border-radius: 10px;
    }

    .judging-card-title {
        font-size: 22px;
    }

    .score-card {
        padding: 14px;
    }

    .score-title {
        font-size: 17px;
    }

    .competitor-input input {
        height: 52px;
        font-size: 24px;
    }
    /* =====================================================
    Tech Chair Progress Dashboard - Compact DevExpress Grids
    ===================================================== */

    .progress-dashboard h1 {
        color: red !important;
    }

    .progress-dashboard .dxgvControl,
    .progress-dashboard .dxgvTable {
        font-size: 12px !important;
    }

    .progress-dashboard .dxgvHeader td {
        font-size: 11px !important;
        padding: 4px 6px !important;
        height: 28px !important;
    }

    .progress-dashboard .dxgvDataRow td,
    .progress-dashboard .dxgvAltDataRow td {
        font-size: 12px !important;
        padding: 3px 6px !important;
        height: 28px !important;
    }

    .progress-dashboard .dxgvFilterRow td {
        padding: 2px 4px !important;
        height: 24px !important;
    }

    .progress-dashboard .dxgvFilterRow input {
        height: 22px !important;
        font-size: 12px !important;
        padding: 2px 4px !important;
    }

    .progress-dashboard .dxbButton,
    .progress-dashboard .dxbButtonSys {
        height: 26px !important;
        min-height: 26px !important;
        font-size: 12px !important;
        padding: 0 8px !important;
    }

    .details-heading-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

        .details-heading-row h2 {
            margin: 0;
        }

    .details-hide-button,
    .details-hide-button .dxbButton,
    .details-hide-button .dxbButtonSys {
        height: 34px !important;
        min-width: 110px !important;
        font-size: 14px !important;
    }

    /* =====================================================
   Judge Login
===================================================== */

    .judge-login-page {
        padding: 24px 16px;
    }

    .judge-login-card {
        max-width: 720px;
        margin: 20px auto;
    }

        .judge-login-card h1 {
            margin: 0 0 12px;
            font-size: 54px;
            font-weight: 300;
            line-height: 1.1;
        }

    .login-helper {
        margin-bottom: 26px;
        font-size: 22px;
        color: #444;
    }

    .login-form {
        width: 100%;
    }

    .login-row {
        display: flex;
        align-items: center;
        margin-bottom: 16px;
    }

    .login-label {
        width: 220px;
        min-width: 220px;
        font-size: 26px;
        font-weight: 700;
        color: #222;
    }

    .login-field {
        flex: 1;
    }

    .login-input {
        width: 100%;
        max-width: 420px;
        height: 50px;
        font-size: 24px;
        padding: 6px 10px;
        box-sizing: border-box;
    }

    .login-primary-button,
    .login-primary-button .dxbButton,
    .login-primary-button .dxbButtonSys {
        min-width: 180px !important;
        height: 52px !important;
        font-size: 24px !important;
        font-weight: 700 !important;
    }

    .login-error {
        display: block;
        margin-bottom: 18px;
        color: #b30000;
        font-size: 20px;
        font-weight: 700;
    }

    .login-message {
        display: block;
        margin-bottom: 18px;
        color: #7a3b00;
        font-size: 18px;
        font-weight: 700;
    }

    .login-help {
        margin-top: 28px;
        font-size: 20px;
        line-height: 1.5;
        color: #444;
    }

    .login-help-link {
        margin-bottom: 10px;
    }

    .login-help a {
        font-weight: 700;
    }

    /* Tablet / Mobile */
    @media (max-width: 768px) {

        .judge-login-card h1 {
            font-size: 42px;
        }

        .login-helper {
            font-size: 18px;
        }

        .login-row {
            display: block;
            margin-bottom: 18px;
        }

        .login-label {
            width: auto;
            min-width: 0;
            margin-bottom: 6px;
            font-size: 20px;
        }

        .login-input {
            max-width: 100%;
            width: 100%;
            font-size: 20px;
        }

        .login-primary-button,
        .login-primary-button .dxbButton,
        .login-primary-button .dxbButtonSys {
            width: 100% !important;
        }

        .login-help {
            font-size: 17px;
        }
    }


    .pregroup-randomize-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-end !important;
        gap: 14px !important;
        margin: 12px 0 18px;
        flex-wrap: nowrap !important;
    }

    .pregroup-randomize-selector {
        display: flex;
        flex-direction: column;
    }

    .pregroup-randomize-bar > * {
        display: inline-block !important;
        vertical-align: bottom !important;
    }

    .pregroup-randomize-button,
    .pregroup-randomize-button table,
    .pregroup-randomize-button .dxbButton,
    .pregroup-randomize-button .dxbButtonSys {
        height: 38px !important;
        min-height: 38px !important;
        font-size: 16px !important;
    }

    .pregroup-randomize-table {
        border-collapse: collapse;
        margin: 12px 0 18px;
    }

    .pregroup-randomize-cell {
        vertical-align: bottom;
        padding-right: 20px;
    }

    .pregroup-randomize-label {
        font-weight: 700;
    }

    .pregroup-randomize-button-cell {
        padding-bottom: 0;
        padding-left:20px;

    }

    .pregroup-randomize-button,
    .pregroup-randomize-button .dxbButton,
    .pregroup-randomize-button .dxbButtonSys {
        height: 38px !important;
        min-height: 38px !important;
        font-size: 16px !important;
    }


}