body {
    background-color: #f8f9fa;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #cbd5e1;
    color: #111827;
}

.task-tag-index h1 {
    font-size: 1.8rem;
}

body.has-ref-scrollbar {
    padding-bottom: 20px;
}

.ref-table-wrapper {
    overflow-x: auto;
    padding-bottom: 8px;
}

.ref-table {
    width: max-content;
    --ref-row-height: 1.6rem;
}

.ref-table th {
    position: relative;
    text-align: center;
    vertical-align: middle;
}
.ref-table th.sortable {
    cursor: pointer;
    user-select: none;
    color: #0d6efd;
}
.ref-table th.sortable[data-sort-dir="asc"]::after {
    content: " ^";
    font-size: 0.85em;
}
.ref-table th.sortable[data-sort-dir="desc"]::after {
    content: " v";
    font-size: 0.85em;
}
.ref-table th.filterable {
    position: relative;
}
.filter-btn {
    border: 0;
    background: transparent;
    color: #0d6efd;
    font-size: 0.9rem;
    padding: 0 4px;
    margin-left: 4px;
    cursor: pointer;
}
.filter-btn.active {
    color: #00ff00;
}
.filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 220px;
    max-width: 280px;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    z-index: 1060;
    text-align: left;
}
.filter-panel.is-open {
    display: block;
}
.filter-panel-header {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.filter-search {
    margin-bottom: 6px;
}
.filter-select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.filter-options {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 4px;
    max-height: 180px;
    overflow: auto;
    margin-bottom: 6px;
}
.filter-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 2px 0;
}
.filter-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.ref-scrollbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f8f9fa;
    z-index: 1030;
}

.ref-scrollbar-inner {
    height: 1px;
}

.ref-table .col-resizer {
    position: absolute;
    top: 0;
    right: -2px;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
}
.summary-table .col-resizer {
    position: absolute;
    top: 0;
    right: -2px;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
}

.experience-auto {
    background-color: transparent;
}

.ref-table td.auto-field {
    background-color: #d9f2ff !important;
}

.ref-table td.interactive-field {
    background-color: #fff3cd !important;
}
.ref-table td.hr-operation-cell {
    background-color: #fff9db !important;
}
.ref-table td.hr-operation-date {
    background-color: #fff3cd !important;
}
.ref-table.employees-table tr.employee-fired-row td {
    background-color: #ffe3e3 !important;
}
.summary-table tr.employee-fired-row td {
    background-color: #ffe3e3 !important;
}
.ref-table.employees-table td {
    background-color: #d9f2ff !important;
    line-height: var(--ref-row-height) !important;
}

.ref-table td.experience-invalid {
    background-color: #f8d7da !important;
}

.deal-modal-yellow {
    background-color: #fff3cd !important;
}

.ref-table td .form-control,
.ref-table td .form-select,
.ref-table td textarea {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.fired-filter .form-check-input {
    width: 1.4rem;
    height: 1.4rem;
}

.fired-filter .form-check-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 0.4rem;
}

.ref-table td,
.ref-table th {
    padding-top: 0.075rem;
    padding-bottom: 0.075rem;
    height: var(--ref-row-height);
}
.ref-table tr {
    height: var(--ref-row-height);
}
.ref-table td {
    line-height: var(--ref-row-height);
}
.ref-table td .form-control,
.ref-table td .form-select,
.ref-table td textarea {
    height: var(--ref-row-height);
    line-height: normal;
}

.base-text-icon {
    display: inline-block;
    margin-right: 0.4rem;
    vertical-align: middle;
    font-size: 1rem;
}

.summary-table-wrapper {
    overflow-x: auto;
}

.summary-table {
    width: max-content;
    min-width: 100%;
    font-size: 0.9rem;
}

.summary-table.summary-collapse-2025 {
    min-width: 0;
}

.summary-table th,
.summary-table td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
    position: relative;
}

.summary-table thead th {
    text-align: center !important;
    vertical-align: middle !important;
}

.summary-table .summary-head {
    background-color: #e2e8f0;
    font-weight: 700;
}

.summary-table .summary-label {
    text-align: left;
    font-weight: 600;
}

.summary-table th.summary-label {
    text-align: center;
    vertical-align: middle;
}

.summary-table .summary-num {
    text-align: right;
}

.summary-table tbody td.summary-value {
    background-color: #d9f2ff;
}

.summary-table .summary-debug {
    background-color: #fee2e2;
    color: #991b1b;
    font-weight: 700;
    text-align: center;
}

.summary-table .summary-toggle {
    cursor: pointer;
    text-decoration: underline;
}

.summary-table .summary-highlight {
    background-color: #e6d6ff;
}

.summary-table.summary-collapse-2025 tr > *:nth-child(n+7):nth-child(-n+19) {
    display: none;
}
