/* --- Custom Colors (Matches Config) --- */
.bg-negligible { background-color: #FFFFFF; }
.bg-low { background-color: #FFF2CC; }
.bg-medium { background-color: #FCE5CD; }
.bg-high { background-color: #F4CCCC; }

/* --- Layout Utils --- */
#deviceCheckboxes {
    max-height: 200px;
}

/* --- Table Styling --- */
#outputTable th, #inventoryTable th {
    padding: 0.5rem 1rem; /* px-4 py-2 */
    border-bottom-width: 1px; /* border-b */
    font-weight: 600; /* font-semibold */
    color: #374151; /* text-gray-700 */
    background-color: #e5e7eb; /* bg-gray-200 */
}

#outputTable td, #inventoryTable td {
    padding: 0.5rem 1rem;
    font-size: 0.875rem; /* text-sm */
    border-bottom-width: 1px;
    white-space: nowrap;
}

/* --- Inventory Table Alignment & Specifics --- */
#inventoryTable th.panel-header {
    background-color: #d1d5db; /* bg-gray-300 */
    text-align: center;
    font-size: 1rem; /* text-base */
}

/* 1. Device Type Column (First Column) - LEFT ALIGN */
#inventoryTable th:first-child, 
#inventoryTable td:first-child {
    text-align: left !important;
    padding-left: 1rem;
}

/* 2. Responder Columns (Data & Headers) - CENTER ALIGN */
#inventoryTable td.responder-data-cell, 
#inventoryTable th.responder-col {
    text-align: center !important; 
}

/* 3. Total Columns (Header & Cells) - CENTER ALIGN */
#inventoryTable td.total-cell, 
#inventoryTable th.total-header {
    text-align: center !important; 
    min-width: 100px; 
    font-weight: 700;
    background-color: #f3f4f6; /* bg-gray-100 */
}

/* Footer Styling */
#inventoryTable tfoot td {
    background-color: #e5e7eb; /* bg-gray-200 */
    font-weight: 700;
    border-top-width: 2px;
    border-top-color: #6b7280; /* border-gray-500 */
}

/* Footer Total Label (First Column) - Left Align */
#inventoryTable tfoot td:first-child {
    text-align: left !important;
    padding-left: 1rem;
}

/* Footer Data Cells - Center Align */
#inventoryTable tfoot td.responder-data-cell,
#inventoryTable tfoot td.total-cell {
    text-align: center !important;
}

.component-card {
    border-width: 1px;
    border-color: #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: white;
}

/* --- Vertical Tab Logic --- */
.vertical-tabs-container {
    display: flex;
    gap: 1rem;
}

.tab-button-container {
    border-right: 1px solid #e5e7eb;
    flex-shrink: 0;
    width: 150px;
}

.tab-button {
    border-right: 2px solid transparent;
    padding: 8px 16px;
    text-align: left;
    cursor: pointer;
    width: 100%;
    /* Base text styles */
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 150ms;
    color: #4b5563; /* text-gray-600 */
}

.tab-button:hover {
    color: #2563eb; /* text-blue-600 */
}

.tab-button.active {
    border-right-color: #2563eb;
    color: #2563eb;
    font-weight: 600;
    background-color: #eff6ff; /* bg-blue-50 */
}

.tab-content {
    flex-grow: 1; 
    padding: 0;
    display: none; /* Hidden by default */
}

/* Javascript toggles this to display: block */
.tab-content.active {
    display: block; 
}
