.sfwa-table-container {
    position: relative;
}

.sfwa-table-container.console-theme {
    background: #fdfaf3;
    border: 2px solid #d4c5a9;
    font-family: 'Georgia', serif;
    color: #2c241a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table-viewport {
    overflow: auto;
    max-height: 75vh;
}

.sfwa-task-ticker {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.task-thumb {
    width: 100%;            
    min-width: 0;            
    word-wrap: break-word;
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.sfwa-data-table {
    table-layout: auto !important;
    width: 100% !important;
    min-width: 1200px;
}

.sfwa-data-table td {
    display: table-cell !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px !important; 
    height: 50px !important;     
    padding: 8px 12px;
}

.sfwa-data-table thead th {
    white-space: nowrap !important;
    padding: 10px 15px !important;
}

.sfwa-data-table td.editable {
    width: auto;
    min-width: 150px;
    max-width: 300px;
    white-space: normal;
    word-break: break-word;
    cursor: cell;
    border: 1px solid #1a1c1e;
    position: relative;
}

.sfwa-data-table td.editing {
    position: relative;
    z-index: 99 !important;
    white-space: normal !important;
    height: auto !important;
    background: #fff !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 2px solid #ff9d00 !important;
}

.sfwa-data-table td.editing .sfwa-edit-input {
    display: block !important;
    min-height: 150px;
    resize: both;
}

.sfwa-data-table thead th {
    background: #e9e0cf !important;
    color: #5c4b37 !important;
    text-transform: none;
    font-variant: small-caps;
    border-bottom: 2px solid #bdae93 !important;
}

.sfwa-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sfwa-toolbar .toolbar-right {
    position: relative;
    display: flex;
    gap: 5px;
}

.sfwa-dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 4px;
}

.sfwa-data-table th, .sfwa-data-table td {
    transition: none;
}

.state-blue td {
    border-left: 3px solid #00d4ff !important;
    background: rgba(0, 212, 255, 0.05) !important;
}

.sfwa-cell-content {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 7.5em;
}

.sfwa-cell-input {
    width: 100%;
    min-height: 30px;
    background: #fff !important;
    color: #00ff41 !important;
    border: 1px solid #ff9d00 !important;
    box-shadow: 0 0 10px rgba(255, 157, 0, 0.3);
}

.sfwa-cell-content-wrapper {
    display: block;
    height: 45px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfwa-data-table td.sfwa-edit-input {
    display: none;
    width: 100%;
    background: #000;
    color: #00ff41;
    border: 1px solid #00d4ff;
    padding: 5px;
}

.sfwa-data-table td.editing .sfwa-cell-content-wrapper {
    height: auto !important;
    white-space: normal;
    overflow: visible !important;
}

.sfwa-data-table th.sticky-action-col,
.sfwa-data-table td.sfwa-sticky-col {
    position: sticky !important;
    left: 0 !important;
    z-index: 50 !important; 
    background: #f4eee1 !important;
    border-right: 2px solid #bdae93 !important;
    width: 140px !important;
    min-width: 140px !important;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.command-set {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
}

.command-set button {
    font-size: 11px !important;
    padding: 2px 4px !important;
}

.sfwa-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #1a1c1e;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #333;
    padding: 12px 10px;
}

.sfwa-data-table thead th.sticky-action-col {
    position: sticky !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 60 !important;
    background: #e9e0cf !important;
}

.sfwa-data-table td.editing textarea.sfwa-input,
.sfwa-data-table td.editing input[type="text"].sfwa-input {
    min-width: 160px;
    min-height: 160px;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    resize: both !important;
    box-sizing: border-box !important;
    display: block !important;
    font-family: monospace;
    padding: 8px;
    border: 1px solid #ff9d00;
}

.sfwa-data-table td.editing select.sfwa-input {
    width: 100% !important;
    box-sizing: border-box !important;
}

.sfwa-data-table td.sfwa-sticky-col {
    position: sticky !important;
    left: 0 !important;
    z-index: 50 !important;
    background: #f4eee1 !important;
}

.sfwa-data-table tr:hover td {
    background: #fffdf9 !important;
}

.sfwa-data-table input[type="text"], 
.sfwa-data-table select {
    background: #fff;
    border: 1px solid #bdae93;
    color: #000;
    padding: 5px;
    width: 100%;
    font-family: monospace;
}

.sfwa-data-table input:focus {
    border-color: #00d4ff;
    outline: none;
    box-shadow: 0 0 5px #00d4ff;
}

.sfwa-col-edit-btn {
    background: transparent;
    border: none;
    color: #ff9d00;
    cursor: pointer;
    font-size: 10px;
    opacity: 0.5;
}
.sfwa-col-edit-btn:hover { opacity: 1; }

.sfwa-save-all-btn {
    background: #8b0000 !important;
    color: white !important;
    font-weight: bold;
    border: 1px solid #600;
}

/* For the moderation table & other senior admin tables */

tr.special-member-row {
    background-color: #321866 !important;
    color: #fff; 
}

tr.highlight-member-row {
    background-color: #ffc840 !important;
}

.status-pill {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/*For pop-up modal overlays */

.sfwa-modal-overlay {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sfwa-modal-content {
    background: #1a1a1a;
    border: 2px solid #ff9d00;
    padding: 30px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(255, 157, 0, 0.3);
    font-family: 'Courier New', Courier, monospace;
}

.modal-title {
    color: #ff9d00;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.modal-subtitle {
    color: #00ff41;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.modal-scroll-area {
    max-height: 250px;
    overflow-y: auto;
    background: #000;
    padding: 15px;
    border: 1px solid #333;
    margin-bottom: 20px;
}

.modal-scroll-area label {
    display: block;
    color: #ffffff !important;
    font-size: 1rem;
    margin-bottom: 8px;
    cursor: pointer;
    line-height: 1.4;
}

.modal-scroll-area input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #ff9d00;
}

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

.sfwa-csv-btn, 
#sfwa-run-export, 
#sfwa-close-export,
.export-col-toggle {
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

#col-toggle-menu {
    position: absolute;
    top: 40px;
    right: 0;
    width: 200px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 9999 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border-radius: 4px;
}

#sfwa-export-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.console-btn.primary { background: #ff9d00; color: #000; font-weight: bold; }
.console-btn.danger { background: #cc0000; color: #fff; }
.console-btn:hover { opacity: 0.8; }

.modal-scroll-area::-webkit-scrollbar { width: 8px; }
.modal-scroll-area::-webkit-scrollbar-track { background: #000; }
.modal-scroll-area::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

.sfwa-portal-card {
    opacity: 1 !important;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
}

.sfwa-portal-card.state-blue {
    border-left: 5px solid #0073aa !important;
    background: #f0f8ff !important;
}

.sfwa-portal-card.state-green {
    border-left: 5px solid #46b450 !important;
    background: #f3fff4 !important;
}

.catalog-visuals-header img {
    filter: none !important;
    opacity: 1 !important;
}

#mission-calendar {
    position: relative;
    z-index: 100;
}
.fc-event {
    cursor: pointer !important;
    z-index: 101 !important;
}