/* ----------------------------------------------------------
   CTO Days modal
   (Employee list now; manager/supervisor/admin placeholder)
---------------------------------------------------------- */

.eac-cto-modal .eac-modal-dialog {
    max-width: 780px;
}

.eac-cto-subtitle {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 2px;
}

.eac-cto-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0 14px;
}

.eac-cto-status {
    font-size: 0.85rem;
    color: #e5e7eb;
    opacity: 0.95;
}

.eac-cto-status.is-muted {
    color: #9ca3af;
}

.eac-cto-table-wrap {
    border: 1px solid #1f2937;
    border-radius: 10px;
    overflow: hidden;
}

.eac-cto-table {
    width: 100%;
    border-collapse: collapse;
}

.eac-cto-table thead th {
    text-align: left;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.75);
    border-bottom: 1px solid #1f2937;
}

.eac-cto-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #111827;
    color: #f9fafb;
    font-size: 0.92rem;
}

.eac-cto-table tbody tr:last-child td {
    border-bottom: none;
}

.eac-cto-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid #1f2937;
    background: rgba(2, 6, 23, 0.55);
    color: #e5e7eb;
}

.eac-cto-empty {
    padding: 14px 12px;
    color: #9ca3af;
    font-size: 0.92rem;
}

.eac-cto-count {
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 600;
}

/* Manager/Supervisor roster dropdown */
.eac-cto-manager {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
}

/* Member detail area (manager/supervisor view) */
.eac-cto-details {
    margin-top: 12px;
}

.eac-cto-details-header {
    font-weight: 700;
    margin: 2px 0 10px;
    color: #f9fafb;
}

.eac-cto-details-table th:nth-child(2),
.eac-cto-details-table td:nth-child(2) {
    width: 60%;
}

.eac-cto-details-desc {
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.eac-cto-muted {
    color: #9ca3af;
    font-size: 0.9em;
}

.eac-cto-manager-label {
    font-size: 0.85rem;
    color: #e5e7eb;
}

.eac-cto-manager-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #1f2937;
    background: rgba(15, 23, 42, 0.65);
    color: #f9fafb !important;
}

/* Native select dropdown list (options) often ignores the select background,
   and some themes force very light option text on a white list background.
   Force high-contrast option rendering. */
.eac-cto-manager-select option {
    color: #111827 !important;
    background: #ffffff !important;
}

/* Ensure readability in hostile themes */
.eac-cto-modal, .eac-cto-modal * {
    color-scheme: dark;
}

.eac-cto-modal a {
    color: #93c5fd;
}

.eac-cto-modal input,
.eac-cto-modal select,
.eac-cto-modal textarea {
    color: #f9fafb;
}
