
.items-grid-container {
    text-align: center;
}

.items-grid-container tr {
    border-top: 1px solid #ccc;
}

.backgrid a {
    color: #505050;
}

.backgrid th {
    color: #505050 !important;
    overflow: inherit !important;
    text-overflow: inherit !important;
    font-size: 14px !important;
    border: 1px solid #ccc;
}

.backgrid tr {
    font-size: 13px !important;
    border-top: 1px solid #ccc;
}

.backgrid tr td {
    overflow: visible !important;
}

.backgrid td {
    padding-left: 1px;
    padding-right: 1px;
    font-size: 12px;
    border-right: 0.5px solid #DDD;
    border-left: 0.5px solid #DDD;
    cursor: pointer;
}

.backgrid thead th {
    background-color: #eee !important;
}

/* Row highlighting for special heat types */
tr.drain {
    background-color: #ffd840;
    font-weight: bold;
}

tr.last {
    background-color: #40ff90;
    font-weight: bold;
}

/* Row width classes */
.heat-row {
    min-width: 70px !important;
}

.HeatName {
    min-width: 70px !important;
}

.datetime-row {
    min-width: 150px !important;
}

.TapTime {
    min-width: 150px !important;
}

/* Selected row styling */
.onRightClickSelectedRow {
    background-color: lightblue !important;
}

.onRightClickSelectedRow td {
    font-weight: 700;
}

/* Subnavbar control label */
.subnavbar .control-label {
    margin-left: 60px;
}

/* Modal overlay animation */
#commentModal {
    transition: opacity 0.2s ease-in-out;
}

#commentModal.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Modal form styling */
#commentModal input:focus,
#commentModal textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: #3b82f6;
}

/* Edit button in grid */
.edit-button {
    cursor: pointer;
    color: #2563eb;
    transition: color 0.15s ease-in-out;
}

.edit-button:hover {
    color: #1d4ed8;
}

/* AG Grid customizations */
.ag-theme-alpine .ag-header-cell {
    background-color: #f3f4f6;
}

.ag-theme-alpine .ag-row:hover {
    background-color: #f0f9ff;
}

/* Loading skeleton animation */
.skeleton-input,
.skeleton-select,
.skeleton-button,
.skeleton-grid {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.skeleton-grid {
    height: 64vh;
}
