/* Widget Styles */

.user-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    table-layout: fixed; /* Prevents overflow */
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.user-info-table td, .detail-table td, .detail-table th {
    border: 1px solid #000;
    padding: 6px 8px; /* Slightly tighter padding */
    font-size: 13px; /* Slightly smaller for better fit */
}

.label-cell {
    background-color: #f8f9fa;
    font-weight: bold;
    width: 5%; 
    word-break: break-word; /* Allow text to split into lines */
    line-height: 1.2;
}

.label-cell-wide {
    background-color: #f8f9fa;
    font-weight: bold;
    width: 12%; /* Increased by 7% as requested */
    word-break: break-word;
    line-height: 1.2;
}

.value-cell {
    background-color: #fff0a0;
    font-weight: bold;
    width: 15%; 
}

.value-cell-name {
    background-color: #fff0a0;
    font-weight: bold;
    width: 18%; /* Decreased by 7% as requested (25 - 7) */
}

.value-cell-compact {
    background-color: #fff0a0;
    font-weight: bold;
    width: 18%; /* Decreased by 7% as requested (25 - 7) */
}

.three-year-range {
    font-weight: bold;
    color: #b30000;
    font-size: 12px;
}

.detail-table th {
    background-color: #add8e6;
    font-size: 11px;
    padding: 5px;
    text-align: center;
    font-weight: bold;
}

.detail-table td {
    text-align: center;
    font-size: 12px;
}

.yellow-cell {
    background-color: #fff0a0;
    padding: 0 !important;
}

.yellow-cell input {
    background-color: transparent;
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    padding: 8px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}

.yellow-cell:focus-within {
    outline: 1px solid #1e293b;
}

.date-input-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.date-input-container input {
    flex: 1;
    border: none;
    outline: none; /* Remove the jumping black outline */
    background: transparent;
    font-weight: bold;
    padding: 4px 6px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
}

.date-input-container:focus-within {
    background-color: rgba(0, 0, 0, 0.05); /* Subtle highlight inside the cell */
    outline: 1px solid #1e293b; /* Clean, contained outline */
}

.header-numbers th {
    background-color: #add8e6;
    font-size: 10px;
}

/* Remove number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.credit-cell {
    background-color: #dcdcdc !important;
    font-weight: bold;
}

.max-label {
    color: #b30000;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.raw-label {
    color: #6b7280;
    font-size: 11px;
    font-weight: normal;
}
