.timesheet-table thead th{
    background: var(--highlight-bg-color);
    font-size: var(--panel-title-size);
    line-height: 1em;
    color: var(--panel-title);
    font-weight: 700;
}

.timesheet-table .day-heading th {
    font-weight: 600;
}
.timesheet-table .day-heading .day-label{
    font-size: 13px !important;
}
.timesheet-row-details {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.timesheet-row-details > * {
    flex: 1;
    margin-bottom: 0;
}
.timesheet-row-details > .timesheet-row-notes {
    flex: 0 0 100%;
}

.delete-timesheet-row {
    width: 20px;
    height: 20px;
    background: var(--danger);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 35px; 
    margin-left: auto;
    transition: background 0.3s ease, color 0.3s ease;
}

.delete-timesheet-row:hover{
    background: var(--danger-darker);
}

.delete-timesheet-row .gi_svg_icon {
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-timesheet-row .gi_svg_icon svg * {
    fill: #fff !important;
}

/** timesheet row styling **/

.timesheet-table{
    margin-top: 0;
    color: var(--entity-line-table-color);
    border-collapse: separate;
}
.timesheet-table *,
.timesheet-table input{
    font-size: 1rem;
    line-height: 1.4rem;
}
.timesheet-table ::placeholder {
    font-size: 1rem;
}
.timesheet-table ::-ms-input-placeholder { /* Edge 12 -18 */
    font-size: 1rem;
}
.timesheet-table .form-control{
    padding: 0.9rem 0.5rem;
}
.timesheet-table textarea.form-control{
    padding: 0.9rem 0.5rem;
    line-height: 1.2rem;
}
.timesheet-table .input-group-addon .form-control{
    padding: 0;
    border: none;
    box-shadow: none !important;
}
.timesheet-table .timesheet-row .input-group-addon > [data-type="dropdown"] .dropdown-toggle{
    line-height: 1.6rem;
}
.timesheet-table .timesheet-row.active .input-group-addon > [data-type="dropdown"] .dropdown-toggle{
    line-height: 3rem;
}
.timesheet-table .input-group-addon .btn{
    padding: 0 !important;
    background: none !important;
    border: none !important;
    color: var(--group-addon-color) !important;
    height: auto !important;
    line-height: 2rem;
}

.timesheet-row{
    background: var(--panel-bg);
}
.timesheet-row{
    border-top: 1px solid var(--entity-line-border-color);
    border-bottom: 1px solid var(--entity-line-border-color);
}

.timesheet-table td{
    box-sizing: border-box;
}

.timesheet-row td{
    cursor: pointer;
}

.timesheet-row.active td{
    position: relative;
    cursor: default;
    opacity: 1;
    border-top: 1px solid #333 !important;
    border-bottom: 1px solid #333 !important;
    background: var(--highlight-bg-color) !important;
}

.timesheet-row .ajax-remove-values-option .ajax-clear-values{
    right: 10px;
    background: var(--input-background);
}

/** inactive fields **/
.timesheet-row .bootstrap-select .dropdown-toggle .filter-option{
    height: auto;
}
.timesheet-row .bootstrap-select > .dropdown-toggle::after{
    margin-top: 1px;
}

.timesheet-row .gi_field_has_postfix{
    white-space: nowrap;
}
.timesheet-row:not(.active) .gi_field_has_postfix .gi_field_postfix{
    width: auto;
}

.timesheet-row:not(.active) input,
.timesheet-row:not(.active) textarea,
.timesheet-row:not(.active) select,
.timesheet-row:not(.active) .bootstrap-select .btn-default,
.timesheet-row:not(.active) input[disabled],
.timesheet-row:not(.active) input[readonly]:not(.datepicker){
    padding: 0 !important;
    height: auto !important;
    background: transparent;
    border: none !important;
    color: var(--entity-line-table-color) !important;
    opacity: 1;
    pointer-events: none;
    cursor: default;
    line-height: 2rem;
}
.timesheet-row .checkbox input[type="checkbox"]{
    opacity: 0;
}
.timesheet-row:not(.active) textarea{
    resize: none;
    min-height: 0 !important;
    height: auto !important;
}
.timesheet-row:not(.active) .form-control{
    line-height: 2rem !important;
}
.timesheet-row:not(.active) .bootstrap-select.disabled{
    cursor: pointer;
}
.timesheet-row .text-right input,
.timesheet-row:not(.active) .text-right .bootstrap-select .btn-default,
.timesheet-row:not(.active) .text-right .bootstrap-select .dropdown-toggle .filter-option{
    text-align: right;
}
.timesheet-row:not(.active) .input-group-addon{
    padding: 0;
    background: transparent;
    border: none;
    line-height: 1.4rem;
    color: var(--entity-line-table-color) !important;
}
.timesheet-row:not(.active) .input-group-addon:not(:first-child){
    padding-left: 0.2rem;
}
.timesheet-row:not(.active) .input-group input{
    text-align: right !important;
}
.timesheet-row:not(.active) .dropdown-toggle::after,
.timesheet-row:not(.active) .ajax-clear-values{
    display: none;
}
.timesheet-row:not(.active) ::placeholder {
    color: transparent;
}
.timesheet-row:not(.active) ::-ms-input-placeholder { /* Edge 12 -18 */
    color: transparent;
}
/** END inactive fields **/

#timesheet-day-template{
    display: none;
}
