/* --- START OF FILE historical_data.css --- */

html,
body {
    background-color: #101010;
    color: white;
    font-family: "IBM Plex Serif", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}

a {
    color: white;
}

a:hover {
    color: green;
}

/* House Selection Buttons */
.btn-house {
    min-width: 80px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-house:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.4);
}

.btn-house.active-button {
    background-color: #117234;
    border-color: #169444;
    color: white;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.5);
}

/* Legend Container */
.legend-container {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.legend-title {
    color: #cbd5e1;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #334155;
}

.legend-section {
    margin-bottom: 1rem;
}

.legend-section:last-child {
    margin-bottom: 0;
}

.legend-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legend-items .size-badge,
.legend-items .value-badge {
    font-size: 0.75rem;
}

#dateSelectionContainer {
    background-color: #101010;
    padding: 1rem;
    border-radius: 0.375rem;

}

#dateSelector {
    cursor: pointer;
}

.data-entry-date {
    font-size: 1.1rem;
    color: #cbd5e1;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #334155;
}

.hidden {
    display: none !important;
}

/* Row Card Styling */
.row-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

/* Row Header */
.row-header {
    background-color: #334155;
    border-bottom: 1px solid #475569;
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.row-title-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.row-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

/* Size Badges */
.size-badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    border: 1px solid;
}

.size-3 {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

.size-5 {
    background-color: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.3);
}

.size-pre-spaced {
    background-color: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}

.size-spaced {
    background-color: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.3);
}

.size-potted-3 {
    background-color: rgba(249, 115, 22, 0.2);
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.3);
}

.size-spaced-potted {
    background-color: rgba(236, 72, 153, 0.2);
    color: #f9a8d4;
    border-color: rgba(236, 72, 153, 0.3);
}

.size-default {
    background-color: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
    border-color: rgba(100, 116, 139, 0.3);
}

/* Row Content Grid */
.row-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 0;
}

.left-section {
    border-right: 1px solid #334155;
}

.right-section {
    /* No border needed */
}

/* Section Headers */
.section-header {
    background-color: #334155;
    border-bottom: 1px solid #475569;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
}

/* Table Styling */
.data-table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
}

.data-table thead tr {
    background-color: #1e293b;
    color: #94a3b8;
    border-bottom: 1px solid #475569;
}

.data-table th {
    padding: 0.25rem 0.75rem;
    font-weight: 500;
    vertical-align: middle;
}

.metric-header,
.metric-header-sq {
    width: 7rem;
    text-align: left !important;
}

.amount-header {
    width: 7rem;
    text-align: center !important;
}

.ph-header {
    width: 4.5rem;
    text-align: center !important;
}

.ec-header {
    width: 4.5rem;
    text-align: center !important;
}

.wk-header {
    width: 3rem;
    text-align: center !important;
}

.var-amount-header {
    width: 9rem;
    text-align: left !important;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.hover-row:hover {
    background-color: rgba(51, 65, 85, 0.3);
}

.data-table td {
    padding: 0.375rem 0.75rem;
}

.metric-cell {
    color: #cbd5e1;
    font-weight: 500;
}

.pre-clear-label {
    color: #fbbf24;
    font-weight: 500;
}

.amount-cell {
    text-align: center;
    color: white;
    font-weight: 600;
}

.pre-clear-value {
    color: #fbbf24;
    font-weight: 700;
}

.percentage-increase {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #03ac41;
    font-weight: 600;
    background-color: rgba(7, 7, 7, 0.15);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(34, 197, 94, 0.3);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.var-amount-cell {
    color: #67e8f9;
    font-family: monospace;
    font-size: 0.9rem;
}

.wk-cell {
    text-align: center;
    color: #cbd5e1;
}

.value-cell {
    text-align: center;
    vertical-align: middle;
}

/* Value Badges with Color Coding */
.value-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    min-width: 3rem;
    text-align: center;
}

.ph-normal {
    background-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.ph-low {
    background-color: rgba(249, 115, 22, 0.2);
    color: #fdba74;
}

.ph-high {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.ec-normal {
    background-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.ec-low {
    background-color: rgba(234, 179, 8, 0.2);
    color: #fde047;
}

.ec-high {
    background-color: rgba(249, 115, 22, 0.2);
    color: #fdba74;
}

/* Bark Section */
.bark-section {
    margin-top: 0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Issues Section */
.issues-section-new {
    border-top: 1px solid #334155;
    margin-top: 0.75rem;
    padding: 0.75rem;
}

.issues-title {
    color: #fbbf24;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.issues-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.issue-item {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.25rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.issue-item:last-child {
    margin-bottom: 0;
}

.issue-note {
    display: block;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    color: #e2e8f0;
}

.issue-timestamp {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
    text-align: right;
}

/* --- BOOM INITIALS SECTION --- */
#boomInitialsDisplay .location-section {
    border: 1px solid #334155;
    border-radius: 5px;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #1e293b;
}

#boomInitialsDisplay h5 {
    color: #0dcaf0;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

#boomInitialsDisplay .line-data {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    font-size: 0.95rem;
}

#boomInitialsDisplay .line-label {
    font-weight: bold;
    color: #ffc107;
    min-width: 60px;
    display: inline-block;
}

#boomInitialsDisplay .data-value {
    color: #e9ecef;
}

#boomInitialsDisplay .data-value .text-muted {
    color: #6c757d !important;
    font-size: 0.85em;
}

#boomInitialsDisplay .no-data-msg {
    color: #6c757d;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .row-content {
        grid-template-columns: 1fr;
    }
    
    .left-section {
        border-right: none;
        border-bottom: 1px solid #334155;
    }
}

/* --- END OF FILE historical_data.css --- */