/**
 * Instrument Deployment Tracker — Timeline Styles
 * Self-contained, prefixed to avoid theme conflicts.
 *
 * @package Instrument_Tracker
 */

/* ─── Reset & Root ──────────────────────────────────────────── */
.idt-timeline-root {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.5;
    max-width: 100%;
}

.idt-timeline-root *,
.idt-timeline-root *::before,
.idt-timeline-root *::after {
    box-sizing: border-box;
}

/* ─── Loading State ─────────────────────────────────────────── */
.idt-timeline-loading {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.idt-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #2E75B6;
    border-radius: 50%;
    animation: idt-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes idt-spin {
    to { transform: rotate(360deg); }
}

/* ─── Error State ───────────────────────────────────────────── */
.idt-timeline-error {
    text-align: center;
    padding: 40px 20px;
    color: #c62828;
    background: #ffebee;
    border-radius: 8px;
    margin: 16px 0;
}

/* ─── Summary Cards ─────────────────────────────────────────── */
.idt-summary-section {
    margin-bottom: 24px;
}

.idt-summary-header {
    margin-bottom: 12px;
}

.idt-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #1B3A5C;
    margin: 0;
}

.idt-summary-updated {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.idt-summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.idt-summary-card {
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.idt-summary-card:hover {
}

.idt-summary-card .idt-card-number {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.idt-summary-card .idt-card-label {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Summary card number colors are applied dynamically via inline styles from settings */

/* ─── Type Summary Table ───────────────────────────────────── */
.idt-type-summary {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.idt-type-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.idt-type-table th {
    background: #f5f7fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1B3A5C;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.idt-type-table th:not(:first-child) {
    text-align: center;
}

.idt-type-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.idt-type-table td:not(:first-child) {
    text-align: center;
    font-weight: 600;
}

.idt-type-table tbody tr:hover {
    background: #f8fafc;
}

.idt-type-table .idt-funded {
    color: #2E7D32;
    background: rgba(76, 175, 80, 0.1);
}

.idt-type-table .idt-requested {
    color: #E65100;
    background: rgba(255, 152, 0, 0.1);
}

.idt-type-table .idt-available {
    color: #2E7D32;
    background: rgba(76, 175, 80, 0.1);
}

.idt-type-table .idt-deployed {
    color: #E65100;
    background: rgba(255, 152, 0, 0.1);
}

/* ─── Toolbar (search + controls + export) ──────────────────── */
.idt-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.idt-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.idt-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── Search ────────────────────────────────────────────────── */
.idt-search-wrap {
    position: relative;
    flex: 0 0 220px;
}

.idt-search-input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.idt-search-input:focus {
    outline: none;
    border-color: #2E75B6;
    box-shadow: 0 0 0 2px rgba(46,117,182,0.2);
}

.idt-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

.idt-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    line-height: 1;
    display: none;
}

.idt-search-clear.idt-visible {
    display: block;
}

/* ─── Controls ──────────────────────────────────────────────── */
.idt-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.idt-controls select {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    min-width: 130px;
}

.idt-controls select:focus {
    outline: none;
    border-color: #2E75B6;
    box-shadow: 0 0 0 2px rgba(46,117,182,0.2);
}

.idt-filter-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Toolbar Buttons ───────────────────────────────────────── */
.idt-export-btn,
.idt-availability-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.idt-export-btn:hover,
.idt-availability-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

.idt-export-btn svg,
.idt-availability-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.idt-availability-btn.idt-active {
    background: #e8f5e9;
    border-color: #4CAF50;
    color: #2E7D32;
}

.idt-availability-btn.idt-active:hover {
    background: #c8e6c9;
}

/* ─── Active Filters Display ────────────────────────────────── */
.idt-active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.idt-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.idt-filter-tag-remove {
    background: none;
    border: none;
    color: #1565c0;
    cursor: pointer;
    font-size: 14px;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.7;
}

.idt-filter-tag-remove:hover {
    opacity: 1;
}

/* ─── Legend ─────────────────────────────────────────────────── */
.idt-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    flex-wrap: wrap;
}

.idt-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.idt-legend-color {
    width: 28px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ─── Results Count ─────────────────────────────────────────── */
.idt-results-count {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

/* ─── Gantt Section Header ──────────────────────────────────── */
.idt-gantt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 16px;
}

.idt-gantt-title {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1B3A5C;
}

.idt-gantt-updated {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* ─── Timeline Table ────────────────────────────────────────── */
.idt-timeline-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.idt-timeline-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.idt-timeline-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Header */
.idt-timeline-table thead th {
    background: #1B3A5C;
    color: #fff;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.idt-timeline-table thead th.idt-col-instrument {
    width: 200px;
    min-width: 200px;
    text-align: left;
    padding-left: 16px;
    position: sticky;
    left: 0;
    z-index: 11;
    cursor: pointer;
    user-select: none;
}

.idt-timeline-table thead th.idt-col-instrument:hover {
    background: #244a6f;
}

.idt-col-sort-icon {
    margin-left: 4px;
    opacity: 0.6;
    font-size: 10px;
}

.idt-timeline-table thead th.idt-col-month {
    text-align: center;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.idt-timeline-table thead th.idt-col-current {
    background: #2E75B6;
}

/* Body */
.idt-timeline-table tbody td {
    padding: 0;
    height: 48px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.idt-timeline-table tbody td.idt-cell-instrument {
    padding: 8px 16px;
    font-weight: 600;
    font-size: 13px;
    background: #fafbfc;
    border-right: 2px solid #e0e0e0;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 5;
}

.idt-instrument-type {
    font-size: 10px;
    color: #888;
    font-weight: 400;
    display: block;
    margin-top: 1px;
}

.idt-instrument-link {
    color: #1B3A5C;
    text-decoration: none;
    transition: color 0.15s;
}

.idt-instrument-link:hover {
    color: #2E75B6;
    text-decoration: underline;
}

.idt-instrument-avail {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #888;
    margin-top: 1px;
}

.idt-instrument-avail.idt-avail-low {
    color: #E65100;
}

.idt-instrument-avail.idt-avail-none {
    color: #E53935;
}

.idt-timeline-table tbody td.idt-cell-month {
    border-left: 1px solid #f0f0f0;
    position: relative;
    padding: 4px 2px;
    overflow: hidden;
}

.idt-timeline-table tbody td.idt-cell-current {
    background: rgba(46, 117, 182, 0.04);
}

/* Row alternation & hover */
.idt-timeline-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}
.idt-timeline-table tbody tr:nth-child(even) td.idt-cell-instrument {
    background: #f5f5f5;
}
.idt-timeline-table tbody tr:hover td {
    background: #f0f4ff;
}
.idt-timeline-table tbody tr:hover td.idt-cell-instrument {
    background: #e8edf5;
}

/* Group separator rows */
.idt-timeline-table tbody tr.idt-group-row td {
    background: #e8edf5;
    font-weight: 700;
    font-size: 12px;
    color: #1B3A5C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 36px;
    border-bottom: 2px solid #2E75B6;
}

/* Totals row */
.idt-timeline-table tfoot td {
    background: #e8edf5;
    font-weight: 700;
    font-size: 12px;
    border-top: 2px solid #2E75B6;
    padding: 8px;
    text-align: center;
}
.idt-timeline-table tfoot td.idt-cell-instrument {
    text-align: left;
    padding-left: 16px;
    position: sticky;
    left: 0;
    z-index: 5;
    background: #e8edf5;
}

/* ─── Stacked Bars Container ────────────────────────────────── */
.idt-bars-stack {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ─── Gantt Bars ────────────────────────────────────────────── */
.idt-gantt-bar {
    height: 28px;
    border-radius: 4px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: filter 0.15s ease, transform 0.15s ease;
    min-width: 12px;
}

/* Bars inside stack container use explicit top positioning */
.idt-bars-stack .idt-gantt-bar {
    transform: none;
}

.idt-gantt-bar:hover {
    filter: brightness(1.1);
    z-index: 5;
}

/* Non-stacked bars use translateY for centering */
.idt-cell-month > .idt-gantt-bar:hover {
    transform: translateY(-50%) scaleY(1.15);
}

/* Stacked bars scale in place */
.idt-bars-stack .idt-gantt-bar:hover {
    transform: scaleY(1.1);
}

/* Bar colors are applied dynamically via inline styles from settings */

/* Continuous bar classes for multi-month spans */
.idt-bar-continues-right {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.idt-bar-continues-left {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.idt-bar-completed {
    background: linear-gradient(90deg, #9E9E9E, #BDBDBD);
}

.idt-bar-cancelled {
    background: repeating-linear-gradient(
        45deg,
        #BDBDBD,
        #BDBDBD 4px,
        #9E9E9E 4px,
        #9E9E9E 8px
    );
}

/* ─── Availability Gantt Bar (Stacked) ─────────────────────── */
.idt-availability-gantt-bar {
    position: absolute;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: filter 0.15s ease, transform 0.15s ease;
    border: 1px dashed rgba(76, 175, 80, 0.6);
}

/* Simplified availability colors: green if >0, red if <=0 */
.idt-availability-gantt-bar.idt-avail-positive {
    background: rgba(76, 175, 80, 0.15);
    color: #2E7D32;
    border-color: #4CAF50;
}

.idt-availability-gantt-bar.idt-avail-zero {
    background: rgba(229, 57, 53, 0.15);
    color: #C62828;
    border-color: #E53935;
}

.idt-availability-gantt-bar:hover {
    filter: brightness(1.1);
    transform: scaleY(1.1);
    z-index: 5;
}

.idt-availability-gantt-bar .idt-avail-label {
    padding: 0 6px;
    text-shadow: 0 0 2px rgba(255,255,255,0.8);
}

/* ─── Availability Bar (Legacy) ────────────────────────────── */
.idt-availability-bar {
    height: 20px;
    border-radius: 3px;
    position: relative;
    cursor: default;
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 500;
    color: #2E7D32;
    overflow: hidden;
    min-width: 8px;
    margin: 4px 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(76, 175, 80, 0.15),
        rgba(76, 175, 80, 0.15) 4px,
        rgba(76, 175, 80, 0.25) 4px,
        rgba(76, 175, 80, 0.25) 8px
    );
    border: 1px dashed rgba(76, 175, 80, 0.5);
}

.idt-availability-bar:hover {
    background: repeating-linear-gradient(
        45deg,
        rgba(76, 175, 80, 0.25),
        rgba(76, 175, 80, 0.25) 4px,
        rgba(76, 175, 80, 0.35) 4px,
        rgba(76, 175, 80, 0.35) 8px
    );
    border-color: #4CAF50;
}

/* ─── Today Marker ──────────────────────────────────────────── */
.idt-today-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E53935;
    z-index: 8;
    pointer-events: none;
}

/* ─── Tooltip ───────────────────────────────────────────────── */
.idt-tooltip {
    display: none;
    position: fixed;
    background: #1B3A5C;
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    max-width: 300px;
    pointer-events: none;
    line-height: 1.6;
}

.idt-tooltip.idt-tooltip-visible {
    display: block;
}

.idt-tooltip-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 6px;
}

.idt-tooltip-title.idt-tooltip-available {
    color: #81C784;
}

.idt-tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 3px;
}

.idt-tooltip-label {
    color: rgba(255,255,255,0.65);
}

.idt-tooltip-value {
    font-weight: 600;
    text-align: right;
}

/* ─── Empty State ───────────────────────────────────────────── */
.idt-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* ─── Layout Density Variants ───────────────────────────────── */
.idt-density-compact .idt-summary-card {
    padding: 12px 16px;
}
.idt-density-compact .idt-summary-card .idt-card-number {
    font-size: 32px;
}
.idt-density-compact .idt-timeline-table tbody td {
    height: 36px;
}
.idt-density-compact .idt-gantt-bar {
    height: 22px;
    font-size: 10px;
}
.idt-density-compact .idt-timeline-table thead th {
    padding: 6px 6px;
    font-size: 11px;
}
.idt-density-compact .idt-timeline-table tbody td.idt-cell-instrument {
    padding: 4px 12px;
    font-size: 12px;
}

.idt-density-spacious .idt-summary-card {
    padding: 28px 32px;
}
.idt-density-spacious .idt-summary-card .idt-card-number {
    font-size: 52px;
}
.idt-density-spacious .idt-timeline-table tbody td {
    height: 58px;
}
.idt-density-spacious .idt-gantt-bar {
    height: 34px;
}
.idt-density-spacious .idt-timeline-table thead th {
    padding: 14px 10px;
}
.idt-density-spacious .idt-timeline-table tbody td.idt-cell-instrument {
    padding: 12px 20px;
    font-size: 14px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .idt-summary-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .idt-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .idt-toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }

    .idt-toolbar-right {
        justify-content: flex-end;
    }

    .idt-search-wrap {
        flex: 1 1 100%;
    }

    .idt-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .idt-legend {
        flex-direction: column;
        gap: 8px;
    }

    .idt-summary-card .idt-card-number {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .idt-summary-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .idt-summary-card {
        padding: 12px 16px;
    }
}

/* ─── Monthly Summary Table ──────────────────────────────────── */
.idt-monthly-summary {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.idt-monthly-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 16px 0;
    background: #f5f7fa;
    border-bottom: 2px solid #e0e0e0;
}

.idt-monthly-title {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1B3A5C;
}

.idt-monthly-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.idt-monthly-updated {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.idt-monthly-year-select,
.idt-timeline-year-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
    min-width: 80px;
}

.idt-monthly-year-select:focus,
.idt-timeline-year-select:focus {
    outline: none;
    border-color: #2E75B6;
    box-shadow: 0 0 0 2px rgba(46,117,182,0.2);
}

.idt-monthly-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.idt-monthly-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    font-size: 12px;
}

.idt-monthly-table thead th {
    background: #1B3A5C;
    color: #fff;
    padding: 10px 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.idt-monthly-table thead th.idt-monthly-type-col {
    width: 120px;
    min-width: 120px;
    text-align: left;
    padding-left: 16px;
    position: sticky;
    left: 0;
    z-index: 11;
}

.idt-monthly-table thead th.idt-monthly-metric-col {
    width: 80px;
    min-width: 80px;
    text-align: left;
    position: sticky;
    left: 120px;
    z-index: 11;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.idt-monthly-table thead th.idt-monthly-month-col {
    border-left: 1px solid rgba(255,255,255,0.15);
}

.idt-monthly-table tbody td {
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
}

.idt-monthly-table tbody td.idt-monthly-type-name {
    text-align: left;
    padding-left: 16px;
    font-size: 13px;
    background: #fafbfc;
    border-right: 1px solid #e0e0e0;
    position: sticky;
    left: 0;
    z-index: 5;
    vertical-align: middle;
}

.idt-monthly-table tbody td.idt-monthly-metric {
    text-align: left;
    padding-left: 10px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
    background: #fafbfc;
    border-right: 1px solid #e0e0e0;
    position: sticky;
    left: 120px;
    z-index: 5;
}

.idt-monthly-table tbody td.idt-monthly-value {
    font-weight: 600;
    font-size: 12px;
    min-width: 45px;
}

/* Zebra striping by type group */
.idt-monthly-even td { background: #fff; }
.idt-monthly-odd td { background: #f8fafc; }
.idt-monthly-even td.idt-monthly-type-name,
.idt-monthly-even td.idt-monthly-metric { background: #fafbfc; }
.idt-monthly-odd td.idt-monthly-type-name,
.idt-monthly-odd td.idt-monthly-metric { background: #f0f4f8; }

/* Row borders between types */
.idt-monthly-row-available {
    border-bottom: 2px solid #dde3eb !important;
}

/* Color coding for values */
.idt-monthly-committed {
    color: #E65100;
    background: rgba(255, 152, 0, 0.1) !important;
}

.idt-monthly-available {
    font-weight: 700;
}

/* Simplified availability colors: green if >0, red if <=0 */
.idt-monthly-available.idt-avail-positive {
    color: #2E7D32;
    background: rgba(76, 175, 80, 0.15) !important;
}

.idt-monthly-available.idt-avail-zero {
    color: #C62828;
    background: rgba(229, 57, 53, 0.15) !important;
}

/* Hover effect */
.idt-monthly-table tbody tr:hover td {
    background: #f0f4ff !important;
}
.idt-monthly-table tbody tr:hover td.idt-monthly-type-name,
.idt-monthly-table tbody tr:hover td.idt-monthly-metric {
    background: #e8edf5 !important;
}
