/* Author: Dmitry Karchevsky */
@media print{
    .ringNo{
        color: black;
        padding-left: 2vw;
    }

    /*td:nth-child(1){
        width: 2%!important;
    }*/
    
    td a {
        color: black!important;
        text-decoration: none!important;
    }
    td:nth-child(3){
        width: 50%!important;
    }
    td{
        overflow: hidden;
        box-sizing: content-box;
        width: 6% !important;
    }
    .dojang .table_container table{
        table-layout: fixed;
        width:80% !important;
        max-width: 80% !important;
    }
    .dojang:not(:first-child){
        padding-top: 1vh;
    }
}
@media screen{
    .test-shell #rings_tables .dateSelect {
        margin: 10px 0 12px;
    }
    .test-shell #rings_tables .rings-views {
        flex-wrap: wrap;
    }
    .test-shell #rings_tables .pagemenu > a {
        font-size: 12px;
        padding: 5px 10px;
    }
    .test-shell #rings_tables .pagemenu > a[page_selected="1"]::after {
        left: 10px;
        right: 10px;
    }
    .test-shell .dojang {
        margin-bottom: 10px;
        padding: 8px;
        border: 1px solid var(--shell-dialog-border);
        border-radius: 4px;
    }
    .test-shell .ring-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
        font: 12px/18px Arial, sans-serif;
    }
    .test-shell .ring-actions > a {
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
        min-height: 28px;
        padding: 4px 10px;
        border: 1px solid var(--shell-button-border);
        border-radius: 4px;
        background: var(--shell-button-background);
        color: var(--shell-button-text);
        text-decoration: none;
        white-space: nowrap;
    }
    .test-shell .ring-actions > a:hover {
        border-color: var(--shell-button-hover-border);
        background: var(--shell-button-hover);
        color: var(--shell-accent-light);
    }
    .test-shell .ring-actions > a:focus-visible {
        outline: 2px solid var(--shell-accent-light);
        outline-offset: 2px;
    }
    .test-shell .ring-label {
        margin-right: 6px;
        color: var(--shell-dialog-text);
    }
    .test-shell .dojang > br:has(+ .dt select.selectumpire) {
        display: none;
    }
    .test-shell .dojang > .dt:has(select.selectumpire) {
        display: block;
        box-sizing: border-box;
        width: auto;
        margin: 0 10px;
        padding: 10px 0 2px;
        border-top: 1px solid var(--shell-dialog-border);
        font: 12px/18px Arial, sans-serif;
    }
    .test-shell .dojang > .dt:has(select.selectumpire) > .dr {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 20px;
        height: auto;
    }
    .test-shell .dojang > .dt:has(select.selectumpire) > .dr > .dc {
        display: block;
        flex: 1 1 260px;
        min-width: 0;
    }
    .test-shell .dojang .dt:has(> .dr > .dc > select.selectumpire) {
        display: grid;
        width: auto;
        gap: 4px;
    }
    .test-shell .dojang .dr:has(> .dc > select.selectumpire) {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        height: auto;
    }
    .test-shell .dojang .dr:has(> .dc > select.selectumpire) > .dc {
        display: block;
        min-width: 0;
        color: #aab9c9;
    }
    .test-shell .dojang select.selectumpire {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0;
        max-width: none;
        height: 26px;
        margin: 0;
        padding: 3px 8px;
        border: 1px solid var(--shell-dialog-border);
        border-radius: 4px;
        background: var(--shell-dialog-field-background);
        color: var(--shell-dialog-text);
        font: 12px/18px Arial, sans-serif;
        color-scheme: dark;
    }
    .test-shell .dojang select.selectumpire:hover {
        border-color: var(--shell-button-hover-border);
    }
    .test-shell .dojang select.selectumpire:focus {
        border-color: var(--shell-accent);
    }
    .test-shell .dojang select.selectumpire:disabled {
        opacity: .55;
    }
    .test-shell .dojang select.selectumpire option {
        background: var(--shell-dialog-field-background);
        color: var(--shell-dialog-text);
    }
    .test-shell .dojang select.selectumpire option:disabled {
        color: #718194;
    }
    tr[slave_div="slave"] td, tr[slave_div="slave"] td a{
        /* Modified 2026-10-26: Use the muted theme red for linked schedule rows on dark backgrounds. */
        color: var(--shell-danger-text, #efb1b6) !important;
    }
    tr[slave_div="master"] td, tr[slave_div="master"] td a{
        /* Modified 2026-10-26: Keep parent schedule rows readable with the same muted red. */
        color: var(--shell-danger-text, #efb1b6) !important;
        font-weight: normal !important;
    }
    #rings_tables{
    height: calc(100vh - 120px);
    overflow: auto;
    display: inline-block;
    }
}
.dojangNoprint{
    height: 0px;
}
