/* ============================================
   District screen (js/districtPanel.js)
   Uses the Units panel's pop-up look (css/units-panel.css).
   ============================================ */

#district-panel-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}

.dp-modal { width: 460px; }

/* On a short screen the pop-up scrolls; its parts keep their own height and are never squeezed. */
.dp-modal .up-body > * { flex-shrink: 0; }
.dp-modal .up-body { gap: 0; }
.dp-modal .up-status { margin: 12px 0 10px; }

.dp-hint { margin: 6px 0 12px; }

.dp-locked {
    margin: 0 0 12px;
    padding: 8px 10px;
    font-size: 0.88em;
    color: #ffd27a;
    background: rgba(255, 190, 60, 0.08);
    border: 1px solid rgba(255, 190, 60, 0.3);
    border-radius: 6px;
}

.dp-label {
    display: block;
    margin: 12px 0 6px;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e63946;
}

.dp-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    font-size: 0.95em;
    color: #fff;
    background: #111;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
}
.dp-input:focus { outline: none; border-color: #e63946; }
.dp-input:disabled { color: #aaa; }

/* The logo is shown on white, because that is what it will be printed on. */
.dp-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #fff;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
    overflow: hidden;
}
.dp-logo-box img { max-width: 90%; max-height: 100px; display: block; }
.dp-logo-none { color: #888; font-size: 0.9em; }

.dp-buttons { display: flex; gap: 8px; margin: 8px 0 6px; }

.dp-btn {
    padding: 8px 12px;
    font-size: 0.88em;
    color: #fff;
    background: #1a1a2a;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    cursor: pointer;
}
.dp-btn:hover:not(:disabled) { border-color: #e63946; }
.dp-btn:disabled { opacity: 0.5; cursor: default; }
.dp-btn-quiet { color: #bbb; }

/* What the district calls its sources: three columns (the kind, one, many), then the days on one line. */
.dp-words {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}
.dp-words-head { font-size: 0.78em; color: #999; }
.dp-words-kind { font-size: 0.9em; color: #ddd; }
.dp-days {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}
.dp-days-label { flex: 1; font-size: 0.9em; color: #ddd; }
.dp-days-box { width: 90px; flex: none; }
