/* Phase E1 — Aircraft radial menu styling.
 * Matches the existing terminal / monospace aesthetic (Courier New + green
 * accents). Uses the same color tokens as the rest of the UI when present;
 * falls back to literal greens otherwise.
 */

.command-wheel-root {
    position: fixed;
    z-index: 99000;
    pointer-events: auto;
    user-select: none;
    font-family: 'Courier New', monospace;
}

.command-wheel-svg {
    display: block;
    filter: drop-shadow(0 0 6px rgba(0, 255, 70, 0.35));
}

.command-wheel-slice {
    fill: rgba(0, 30, 10, 0.92);
    stroke: rgba(0, 255, 70, 0.55);
    stroke-width: 1.2;
    cursor: pointer;
    transition: fill 90ms linear, stroke 90ms linear;
}
.command-wheel-slice:hover {
    fill: rgba(0, 80, 25, 0.95);
    stroke: rgba(0, 255, 100, 1);
}
.command-wheel-slice.is-disabled {
    fill: rgba(20, 20, 20, 0.85);
    stroke: rgba(120, 120, 120, 0.55);
    cursor: not-allowed;
}

.command-wheel-icon {
    fill: rgba(180, 255, 210, 1);
    font-size: 22px;
    font-weight: bold;
    pointer-events: none;
    paint-order: stroke fill;
    stroke: rgba(0, 0, 0, 0.85);
    stroke-width: 2.5px;
    stroke-linejoin: round;
}
.command-wheel-label {
    fill: rgba(220, 255, 230, 1);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.3px;
    font-family: 'Courier New', monospace;
    pointer-events: none;
    paint-order: stroke fill;
    stroke: rgba(0, 0, 0, 0.9);
    stroke-width: 3px;
    stroke-linejoin: round;
}
.command-wheel-label.is-disabled {
    fill: rgba(150, 150, 150, 0.75);
    stroke: rgba(0, 0, 0, 0.7);
}

.command-wheel-hub {
    fill: rgba(0, 0, 0, 0.85);
    stroke: rgba(0, 255, 70, 0.6);
    stroke-width: 1;
    pointer-events: none;
}
.command-wheel-hub.is-clickable {
    pointer-events: all;
    cursor: pointer;
    fill: rgba(0, 30, 12, 0.92);
    stroke: rgba(0, 255, 130, 0.85);
    stroke-width: 1.5;
    transition: fill 80ms linear, stroke 80ms linear;
}
.command-wheel-hub.is-clickable:hover {
    fill: rgba(0, 60, 24, 0.96);
    stroke: rgba(120, 255, 180, 1);
}
.command-wheel-hub.is-disabled {
    fill: rgba(20, 20, 20, 0.85);
    stroke: rgba(120, 120, 120, 0.45);
    stroke-dasharray: 3 2;
    pointer-events: all;
    cursor: not-allowed;
}
.command-wheel-center-icon.is-disabled,
.command-wheel-center-label.is-disabled {
    fill: rgba(140, 140, 140, 0.55);
}
.command-wheel-center-icon {
    font-size: 18px;
    fill: rgba(180, 255, 200, 1);
}
.command-wheel-center-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    fill: rgba(180, 255, 200, 1);
}

.command-wheel-tooltip {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 20, 8, 0.95);
    color: rgba(180, 255, 200, 1);
    border: 1px solid rgba(0, 255, 70, 0.6);
    padding: 3px 8px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 100ms linear;
    pointer-events: none;
}

.command-wheel-ctx {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(120, 255, 160, 1);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 80, 20, 0.8);
    white-space: nowrap;
    pointer-events: none;
}

/* ── Confirm panel ─────────────────────────────────────────── */
.command-wheel-confirm {
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    z-index: 99100;
    width: 460px;
    background: rgba(0, 18, 8, 0.96);
    border: 1px solid rgba(0, 255, 70, 0.55);
    color: rgba(200, 255, 210, 0.95);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    box-shadow: 0 0 12px rgba(0, 255, 70, 0.25);
}
.command-wheel-confirm .confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(0, 255, 70, 0.4);
    background: rgba(0, 60, 20, 0.7);
}
.command-wheel-confirm .confirm-kind,
.command-wheel-confirm .confirm-title {
    font-weight: bold;
    color: rgba(0, 255, 100, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.command-wheel-confirm .confirm-close {
    background: transparent;
    border: none;
    color: rgba(180, 255, 200, 0.9);
    font-size: 18px;
    cursor: pointer;
}
.command-wheel-confirm .confirm-body { padding: 10px; }
.command-wheel-confirm .confirm-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.command-wheel-confirm .confirm-row label {
    width: 70px;
    color: rgba(150, 220, 170, 0.9);
}
.command-wheel-confirm .confirm-row select,
.command-wheel-confirm .confirm-row input {
    flex: 1;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 70, 0.45);
    color: rgba(200, 255, 210, 0.95);
    font-family: inherit;
    font-size: inherit;
    padding: 2px 4px;
}
.command-wheel-confirm .confirm-section {
    border-top: 1px dashed rgba(0, 255, 70, 0.25);
    padding-top: 6px;
    margin-top: 6px;
}
.command-wheel-confirm .confirm-summary div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}
.command-wheel-confirm .confirm-summary span {
    color: rgba(150, 220, 170, 0.9);
    margin-right: 8px;
}
.command-wheel-confirm .confirm-validation.is-valid   .confirm-vstatus { color: rgba(0, 255, 100, 1); }
.command-wheel-confirm .confirm-validation.is-invalid .confirm-vstatus { color: rgba(255, 90, 90, 1); }
.command-wheel-confirm .confirm-vstatus {
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.command-wheel-confirm .confirm-errors,
.command-wheel-confirm .confirm-warnings {
    margin: 0; padding-left: 16px; font-size: 11px;
}
.command-wheel-confirm .confirm-errors li   { color: rgba(255, 120, 120, 0.95); }
.command-wheel-confirm .confirm-warnings li { color: rgba(255, 220, 120, 0.95); }
.command-wheel-confirm .confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 10px;
    border-top: 1px solid rgba(0, 255, 70, 0.4);
    background: rgba(0, 40, 14, 0.7);
}
.command-wheel-confirm .confirm-footer button {
    background: rgba(0, 60, 20, 0.85);
    border: 1px solid rgba(0, 255, 70, 0.55);
    color: rgba(200, 255, 210, 0.95);
    font-family: inherit;
    padding: 4px 10px;
    cursor: pointer;
}
.command-wheel-confirm .confirm-footer button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Checklist field (multi-select wings/fleets) ──────────── */
.command-wheel-confirm .confirm-checklist {
    flex: 1;
    min-width: 0;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(0, 255, 70, 0.35);
    background: rgba(0, 30, 12, 0.5);
    padding: 4px 6px;
}
.command-wheel-confirm .confirm-checklist-empty {
    color: rgba(180, 220, 190, 0.6);
    font-style: italic;
    padding: 4px 0;
}
.command-wheel-confirm .confirm-checklist-group + .confirm-checklist-group {
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px dashed rgba(0, 255, 70, 0.25);
}
.command-wheel-confirm .confirm-checklist-group-label {
    color: rgba(0, 255, 100, 0.95);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    margin-bottom: 2px;
}
.command-wheel-confirm .confirm-checklist-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    color: rgba(200, 255, 210, 0.95);
    cursor: pointer;
    white-space: nowrap;
}
.command-wheel-confirm .confirm-checklist-item input[type="checkbox"] {
    accent-color: rgba(0, 255, 100, 1);
    cursor: pointer;
}

/* v9.4.251: clickable group headers in the confirm checklist (select-all-in-group) */
.confirm-checklist-group-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.confirm-checklist-group-label input[type="checkbox"] {
    accent-color: rgba(0, 255, 100, 1);
    transform: scale(0.9);
    margin: 0;
}
.confirm-checklist-group-total {
    margin-left: auto;
    color: rgba(0, 200, 80, 0.7);
    font-size: 9px;
}

/* v9.4.257: tabbed checklist (Wings | Fleets) */
.command-wheel-confirm .confirm-checklist-tabs {
    display: flex;
    gap: 2px;
    margin: -4px -6px 6px -6px;
    border-bottom: 1px solid rgba(0, 255, 70, 0.35);
    background: rgba(0, 20, 8, 0.6);
}
.command-wheel-confirm .confirm-checklist-tab {
    flex: 1;
    padding: 4px 8px;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(0, 255, 70, 0.2);
    color: rgba(180, 220, 190, 0.7);
    font-family: inherit;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}
.command-wheel-confirm .confirm-checklist-tab:last-child { border-right: 0; }
.command-wheel-confirm .confirm-checklist-tab:hover {
    background: rgba(0, 255, 70, 0.08);
    color: rgba(0, 255, 100, 0.95);
}
.command-wheel-confirm .confirm-checklist-tab.active {
    background: rgba(0, 60, 20, 0.7);
    color: rgba(0, 255, 100, 1);
    font-weight: bold;
}
.command-wheel-confirm .confirm-checklist-pane {
    /* container exists in DOM even when hidden so the wingIds checkboxes
       remain queryable by the panel's delegated change handler */
}

/* v9.4.259: per-ship rows under each fleet header in the Fleets tab */
.command-wheel-confirm .confirm-checklist-subitem {
    padding: 1px 0 1px 22px;
    color: rgba(180, 220, 190, 0.85);
    font-size: 10px;
    white-space: nowrap;
}

/* v9.4.260: collapsible per-fleet ship list (caret + header row) */
.command-wheel-confirm .confirm-checklist-fleet-header {
    display: flex;
    align-items: center;
    gap: 4px;
}
.command-wheel-confirm .confirm-checklist-fleet-header .confirm-checklist-item {
    flex: 1;
    min-width: 0;
}
.command-wheel-confirm .confirm-fleet-disclose {
    background: transparent;
    border: none;
    color: rgba(180, 220, 190, 0.9);
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    padding: 0 2px;
    width: 14px;
    text-align: center;
    flex: 0 0 auto;
}
.command-wheel-confirm .confirm-fleet-disclose:hover {
    color: rgba(140, 255, 180, 1);
}
.command-wheel-confirm .confirm-fleet-disclose-spacer {
    display: inline-block;
    width: 14px;
    flex: 0 0 auto;
}
