/* DSI Blackout - Consolidated Stylesheet */

/* Original cascade order preserved during migration. */


/* ===== SOURCE: rdr-calendar.css ===== */
:root {
    --parchment: #e8d4a8;
    --paper: #f4e7c9;
    --brown: #59341f;
    --espresso: #35261b;
    --rust: #96351c;
    --bright-rust: #c34a1b;
    --blue: #547f87;
    --gold: #e5a33a;
    --border: #b79a72;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--parchment);
    color: var(--espresso);
    font-family: Arial, Helvetica, sans-serif;
}

button, input, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
    border-radius: 5px;
    padding: 12px 18px;
    font-weight: 800;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.site-header {
    background: var(--brown);
    color: var(--paper);
    padding: 16px 24px;
    border-bottom: 5px solid var(--rust);
}

.branding {
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.branding img {
    width: 110px;
    max-height: 95px;
    object-fit: contain;
}

.branding h1 {
    margin: 0;
    font-size: clamp(22px, 3vw, 36px);
    letter-spacing: 2px;
}

.branding p {
    margin: 5px 0 0;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.app {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 18px;
}









.primary {
    background: var(--bright-rust);
    color: white;
}

.primary:hover{
    background: var(--rust);
}

.month-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.month-navigation h2 {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: clamp(22px, 3vw, 34px);
    text-transform: uppercase;
}

.month-navigation button {
    background: var(--brown);
    color: white;
}

.calendar-weekdays,
#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
    background: var(--brown);
    color: white;
    text-align: center;
    font-weight: 800;
}

.calendar-weekdays div {
    padding: 14px 4px;
}

#calendar-grid {
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
}







































.empty-message {
    padding: 30px;
    text-align: center;
    background: var(--paper);
}

dialog {
    width: min(95vw, 540px);
    border: 4px solid var(--brown);
    border-radius: 8px;
    background: var(--paper);
    color: var(--espresso);
    padding: 24px;
}

dialog::backdrop {
    background: #0009;
}

dialog h2 {
    margin-top: 0;
}

dialog label {
    display: block;
    font-weight: 800;
    margin: 15px 0 6px;
}

dialog input,
dialog select,
dialog textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: white;
    color: var(--espresso);
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.dialog-actions button {
    background: var(--brown);
    color: white;
}

.dialog-actions .primary {
    background: var(--bright-rust);
}

.dialog-actions .danger {
    background: #822c20;
    margin-right: auto;
}

footer {
    text-align: center;
    padding: 30px;
    color: var(--brown);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

@media (max-width: 700px) {
    .site-header {
        padding: 14px;
    }

    .branding img {
        width: 75px;
    }

    .app {
        padding: 0 8px;
    }

    

    .month-navigation {
        gap: 5px;
    }

    .month-navigation button {
        padding: 10px;
    }

    

    

    .calendar-weekdays div {
        font-size: 11px;
        padding: 10px 0;
    }

    

    

    

    

    
}

@media (max-width: 420px) {
    .branding h1 {
        font-size: 20px;
    }

    .branding p {
        font-size: 12px;
    }

    .month-navigation h2 {
        font-size: 17px;
    }

    

    
}

/* RDR banner branding */
.branding img {
    width: min(100%, 520px);
    max-height: 180px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 700px) {
    .branding img {
        width: 100%;
        max-height: 130px;
    }
}

/* ==================================================
   RDR Banner Header
   ================================================== */

.site-header {
    padding: 18px 20px 14px;
}

.branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.branding img {
    display: block;
    width: min(100%, 650px);
    height: auto;
    max-height: none;
    object-fit: contain;
}

.calendar-subtitle {
    color: var(--paper);
    font-size: clamp(15px, 2vw, 22px);
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    padding: 5px 0 10px;
}

@media (max-width: 700px) {
    .site-header {
        padding: 12px 10px;
    }

    .branding img {
        width: 100%;
        max-height: none;
    }

    .calendar-subtitle {
        font-size: 14px;
        letter-spacing: 3px;
    }
}

/* ==================================================
   RDR Compact Horizontal Header
   ================================================== */

.site-header {
    padding: 8px 20px;
    border-bottom: 5px solid var(--rust);
}

.branding {
    max-width: 1400px;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: right;
}

.branding img {
    display: block;
    width: 20%;
    max-width: none;
    max-height: none;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.calendar-subtitle {
    margin-left: auto;
    padding: 0;
    color: var(--paper);
    font-size: clamp(24px, 3.5vw, 48px);
    font-weight: 800;
    letter-spacing: 5px;
    line-height: 1.1;
    text-align: right;
}

/* Mobile layout */

@media (max-width: 700px) {
    .site-header {
        padding: 8px 12px;
    }

    .branding {
        flex-direction: row;
        gap: 10px;
    }

    .branding img {
        width: 25%;
        max-height: none;
    }

    .calendar-subtitle {
        font-size: clamp(16px, 4vw, 26px);
        letter-spacing: 2px;
    }
}

/* ==================================================
   RDR Analog Clock Time Picker
   ================================================== */

































/* Continuous gig list */









/* Clickable month headings in List View */










/* Discreet administrator access */
.site-header {
    position: relative;
}

#admin-access {
    position: absolute;
    top: 12px;
    right: 16px;
    padding: 5px 8px;
    background: transparent;
    color: var(--paper);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

#admin-access:hover {
    background: var(--rust);
    border-color: var(--paper);
}



/* ===== SOURCE: dsi-dark.css ===== */
/*
 * DSI Blackout
 * Dark operational dashboard theme
 *
 * Loaded after rdr-calendar.css.
 */

:root {
    --parchment: #0b0f14;
    --paper: #151c25;
    --brown: #151c25;
    --espresso: #e5edf5;
    --rust: #256b87;
    --bright-rust: #38bdf8;
    --blue: #38bdf8;
    --gold: #38bdf8;
    --border: #303c4b;

    --dsi-bg: #0b0f14;
    --dsi-panel: #151c25;
    --dsi-panel-alt: #1c2632;
    --dsi-border: #303c4b;
    --dsi-text: #e5edf5;
    --dsi-muted: #94a3b8;
    --dsi-accent: #38bdf8;
    --dsi-busy: #ef4444;
    --dsi-buffer: #f59e0b;
    --dsi-available: #22c55e;
}

html {
    color-scheme: dark;
}

body {
    background: var(--dsi-bg);
    color: var(--dsi-text);
    font-family: Arial, Helvetica, sans-serif;
}

/* Application header */

.site-header {
    background: #101720;
    color: var(--dsi-text);
    border-bottom: 1px solid var(--dsi-border);
    padding: 18px 24px;
}

.branding {
    max-width: 1400px;
    margin: auto;
}

.branding img {
    display: none;
}

.calendar-subtitle {
    color: var(--dsi-accent);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

/* Main workspace */

.app {
    color: var(--dsi-text);
}

.month-navigation{
    color: var(--dsi-text);
}

/* Buttons */

button {
    background: var(--dsi-panel-alt);
    color: var(--dsi-text);
    border: 1px solid var(--dsi-border);
    border-radius: 5px;
}

button:hover {
    background: #29394a;
}

button.active,
button.primary,
.primary {
    background: #075985;
    color: #ffffff;
    border-color: var(--dsi-accent);
}

button.active:hover,
button.primary:hover,
.primary:hover {
    background: #0369a1;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--dsi-accent);
    outline-offset: 2px;
}

/* Calendar */

.calendar-weekdays {
    background: var(--dsi-panel);
    color: var(--dsi-muted);
}

#calendar-grid {
    background: var(--dsi-border);
}







/* Existing gig indicators */





/* List view */







.empty-message {
    color: var(--dsi-muted);
}

/* Forms and dialogs */

dialog {
    background: var(--dsi-panel);
    color: var(--dsi-text);
    border: 1px solid var(--dsi-border);
    border-radius: 8px;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

input,
textarea,
select {
    background: #0d141c;
    color: var(--dsi-text);
    border: 1px solid var(--dsi-border);
    border-radius: 4px;
}

input:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.65;
}

input::placeholder,
textarea::placeholder {
    color: var(--dsi-muted);
}

label {
    color: var(--dsi-text);
}

.dialog-actions {
    border-color: var(--dsi-border);
}

.danger,
button.danger {
    background: #7f1d1d;
    color: #ffffff;
}

/* Analog time picker */







/* Administrator access */

#admin-access {
    color: var(--dsi-muted);
}

/* Future availability timeline colors */









/* DSI dialog controls — override original RDR specificity */

dialog input,
dialog select,
dialog textarea {
    background: #0d141c;
    color: var(--dsi-text);
    border: 2px solid var(--dsi-border);
    caret-color: var(--dsi-accent);
}

dialog input:focus,
dialog select:focus,
dialog textarea:focus {
    border-color: var(--dsi-accent);
}

/* ==================================================
   DSI Blackout — Member Selector
   ================================================== */

.member-selector {
    background: var(--dsi-panel);
    border: 1px solid var(--dsi-border);
    border-radius: 8px;
    padding: 18px 20px;
    margin: 0 0 24px;
}

.member-selector-label {
    color: var(--dsi-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

.member-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.member-button {
    background: #101720;
    color: var(--dsi-muted);
    border: 1px solid var(--dsi-border);
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: background 0.15s, border-color 0.15s;
}

.member-button:hover {
    background: #233447;
    color: var(--dsi-text);
    border-color: var(--dsi-accent);
}

.member-button.active {
    background: #075985;
    color: #ffffff;
    border: 1px solid var(--dsi-accent);
    box-shadow: 0 0 0 1px var(--dsi-accent);
}

@media (max-width: 600px) {
    .member-selector {
        padding: 14px;
    }

    .member-button {
        padding: 10px 14px;
        flex: 1 1 auto;
    }
}




/* ===== SOURCE: dsi-calendar.css ===== */
/* DSI Blackout Calendar */

#calendar-status {
    padding: 12px 16px;
    margin: 12px 0;
    border: 1px solid #365064;
    border-radius: 6px;
    background: #172632;
    color: #c6e8f5;
}

#calendar-status.error {
    border-color: #a54c4c;
    color: #ffb8b8;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.dsi-calendar-day,
.dsi-empty-day {
    min-height: 94px;
    min-width: 0;
}

.dsi-calendar-day {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 9px;
    border: 1px solid #354554;
    border-radius: 5px;
    background: #19232d;
    color: #e4edf3;
    text-align: left;
    cursor: pointer;
}

.dsi-calendar-day:hover,
.dsi-calendar-day:focus-visible {
    border-color: #43c8e8;
    background: #223746;
}

.dsi-calendar-day.selected {
    border-color: #43c8e8;
}

.dsi-day-number {
    font-size: 1.1rem;
    font-weight: 700;
}

.dsi-day-member {
    display: inline-block;
    max-width: 100%;
    padding: 2px 6px;
    border-radius: 3px;
    background: #2478b5;
    color: #fff;
    font-size: .75rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

#day-view {
    padding-top: 12px;
}

.dsi-day-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.dsi-day-toolbar button {
    padding: 8px 12px;
}

#day-heading {
    margin: 0;
    flex: 1 1 260px;
    color: #e7f1f5;
}

.dsi-timeline-row {
    margin: 0 0 32px;
}

.dsi-timeline-name {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 9px;
}

.dsi-timeline-track {
    position: relative;
    height: 38px;
    background: #303a44;
    border: 1px solid #53616d;
    border-radius: 4px;
    overflow: hidden;
    background-image:
        linear-gradient(
            to right,
            transparent calc(25% - 1px),
            #64717b 25%,
            transparent calc(25% + 1px),
            transparent calc(50% - 1px),
            #64717b 50%,
            transparent calc(50% + 1px),
            transparent calc(75% - 1px),
            #64717b 75%,
            transparent calc(75% + 1px)
        );
}

.dsi-timeline-buffer,
.dsi-timeline-busy {
    position: absolute;
    top: 0;
    bottom: 0;
}

.dsi-timeline-buffer {
    background: #39966b;
    z-index: 1;
}

.dsi-timeline-busy {
    background: #2478b5;
    z-index: 2;
}

.dsi-time-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: #aab9c5;
    font-size: .75rem;
}

.dsi-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 18px 0;
    font-size: .85rem;
    color: #b9c7d0;
}

.dsi-legend span::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 7px;
    vertical-align: -2px;
    background: var(--legend-color);
}

@media (max-width: 650px) {
    .dsi-calendar-day,
    .dsi-empty-day {
        min-height: 65px;
    }

    .dsi-calendar-day {
        padding: 5px;
    }

    .dsi-day-member {
        font-size: .6rem;
        padding: 2px 3px;
    }
}

/* Ensure JavaScript view switching overrides legacy display rules */
#month-navigation[hidden],
#month-view[hidden],
#day-view[hidden],
#calendar-status[hidden] {
    display: none !important;
}

/* Blackout editor */

#add-blackout {
    margin: 0 0 24px;
}

.dsi-clickable-blackout {
    cursor: pointer;
}

.dsi-clickable-blackout:hover,
.dsi-clickable-blackout:focus-visible {
    filter: brightness(1.25);
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

#blackout-dialog {
    width: min(440px, 94vw);
    padding: 26px;
    background: #151e27;
    color: #e4edf3;
    border: 1px solid #43596a;
    border-radius: 8px;
}

#blackout-dialog::backdrop {
    background: rgba(0, 0, 0, .75);
}

#blackout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#blackout-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}

#blackout-form input {
    padding: 10px;
    background: #0d141c;
    color: #e4edf3;
    border: 1px solid #43596a;
    border-radius: 4px;
    color-scheme: dark;
}

.blackout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

#blackout-delete {
    margin-right: auto;
    background: #2478b5;
    color: white;
}

#blackout-message {
    color: #ffb8b8;
}

/* DSI Blackout analog clock */

.dsi-time-display {
    width: 100%;
    padding: 12px;
    background: #101c26;
    color: #e7f1f5;
    border: 2px solid #43596a;
    border-radius: 5px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.dsi-time-display:hover,
.dsi-time-display:focus-visible {
    border-color: #43c8e8;
}

.dsi-clock-picker[hidden] {
    display: none !important;
}

.dsi-clock-picker {
    padding: 18px;
    background: #1b2a36;
    border: 2px solid #43596a;
    border-radius: 10px;
    text-align: center;
}

.dsi-clock-heading {
    margin-bottom: 14px;
    color: #e7f1f5;
    font-size: 30px;
    font-weight: 800;
}

.dsi-clock-face {
    position: relative;
    width: min(100%, 290px);
    aspect-ratio: 1;
    margin: 0 auto 18px;
    background: #101820;
    border: 4px solid #43596a;
    border-radius: 50%;
}

.dsi-clock-face::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #43c8e8;
    border-radius: 50%;
    pointer-events: none;
}

.dsi-clock-number {
    position: absolute;
    width: 43px;
    height: 43px;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #e7f1f5;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.dsi-clock-number:hover {
    background: #29475a;
}

.dsi-clock-number.selected {
    background: #087fa5;
    color: white;
}

.dsi-clock-period {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.dsi-clock-period button {
    min-width: 90px;
}

.dsi-clock-period button.selected {
    background: #087fa5;
    color: white;
    border-color: #43c8e8;
}

.dsi-clock-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#dsi-clock-set {
    background: #087fa5;
    color: white;
}



/* ==================================================
   RDR Blackout — Header Layout
   ================================================== */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header .branding {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.site-header .calendar-subtitle {
    min-width: 0;
    overflow-wrap: normal;
}

#admin-access {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .site-header {
        gap: 12px;
        padding: 12px;
    }

    .site-header .calendar-subtitle {
        font-size: clamp(16px, 4vw, 22px);
        letter-spacing: 1px;
    }

    #admin-access {
        padding: 6px 8px;
    }
}
