#wpcontent {
    margin-right: 15px;
}

.vw_project_select2_div .select2 {
    width: 100% !important;
}

.max-width_unset {
    max-width: unset !important;
}

.vw-dn {
    display: none;
}

.vw-w {
    width: 100%;
}

.vw_not_added {
    border: 1px solid #ccc;
    background: #eee;
    padding: 10px;
}

.error {
    color: #FF0000;
}

.vw_overf {
    overflow: auto;
}

table input {
    width: 100px
}

.pdetails_tr hr {
    margin: unset;
}

.roundhouse div {
    border: 1px solid rgb(0, 0, 0);
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 5px;
    color: rgb(255, 255, 255);
}

.row {
    margin-left: unset;
    margin-right: unset;
}

table.dataTable,
table.dataTable th,
table.dataTable td {
    box-sizing: revert !important;
}

.vw_missingeod_table th.vw_rotate {
    writing-mode: tb;
    transform: rotate(180deg);
}

.vw_missingeod_tablediv {
    overflow: scroll !important;
    height: 500px;
}

#wpfooter {

    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    color: #50575e;
}

.lp-ad-screen {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.94);
    position: fixed;
    z-index: 666999;
    top: 0px;
    left: 0px;
    opacity: 0.3;
}

.lp-ad-screen span {
    width: 120px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
}

.lp-ad-screen img {
    cursor: pointer;
    width: 120px;
}



/* Custom DataTable styling */
#eod-datatable {
    font-family: Arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

#eod-datatable th,
#eod-datatable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#eod-datatable th {
    background-color: #f2f2f2;
    color: #333;
}

#eod-datatable tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

#eod-datatable tbody tr:hover {
    background-color: #ddd;
}
#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}
#custom-event-modal {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 20px;
    box-shadow: 0 10 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 400px;
    width: 100%;
    border-radius: 8px;
    font-family: "Segoe UI", sans-serif;
}

#custom-event-modal label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 11px;
    display: block;
}

#custom-event-title {
    font-size: 14px;
    padding: 8px;
    width: 100%;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

#custom-event-title:focus {
    border-color: #007bff;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
#custom-event-special {
    margin-right: 8px;
    margin-top:2px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h2 {
    font-size: 20px;
    margin: 0;
    color: #333;
}

.close-modal {
    font-size: 22px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

#custom-event-title {
    padding: 10px;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border 0.3s ease;
}

#custom-event-title:focus {
    border-color: #007bff;
    outline: none;
}

#custom-event-title {
    padding: 10px;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border 0.3s ease;
}

#custom-event-title:focus {
    border-color: #007bff;
    outline: none;
}
.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 20px;
    color: #333;
}

.checkbox-label input {
    margin-right: 8px;
}

#custom-event-modal button {
    background-color:#3b5877;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    /* margin-top: 15px; */
    transition: background-color 0.3s ease;
}

#custom-event-modal button:hover {
    background-color: #0056b3;
}

#custom-event-cancel {
    background-color: #dc3545;
    margin-left: 10px;
}

#custom-event-cancel:hover {
    background-color: #c82333;
}


.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* #custom-event-ok, #custom-event-cancel {
    padding: 8px 20px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
} */

#custom-event-ok {
    background-color: #007bff;
    color: #fff;
}

#custom-event-ok:hover {
    background-color: #0056b3;
}

#custom-event-cancel {
    background-color: #dc3545;
    color: #fff;
}

#custom-event-cancel:hover {
    background-color: #b02a37;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.legend-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.legend-grid input[type="checkbox"] {
  margin: 0;
}


.tooltip-box {
    position: relative;
    display: inline-block;
    padding: 10px;
    margin: 5px;
    color: #fff;
    border-radius: 4px;
    cursor: default;
}

.tooltip-box::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.tooltip-box:hover::after {
    opacity: 1;
}

.blue-tooltip::after {
    background-color: #007bff;
}

.green-tooltip::after {
    background-color: #28a745;
}

.yellow-tooltip::after {
    background-color: #ffc107;
}

.orange-tooltip::after {
    background-color: #ff5600;
}

#timeline_container {
    font-family: sans-serif;
    margin-top: 20px;
}

.timeline-user-block {
    margin-right: 5px;
}

#project-filters {
    margin-bottom: 15px;
}

#project-filters label {
    font-size: 14px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    padding-top: 5px;
}

.sticky-eod-form {
    position: sticky;
    top: 33px;
    z-index: 1000;
    background-color: #f3f3f3;
}

.sticky-filter-bar {
    position: sticky;
    top: calc(64px + 80px); 
    z-index: 999;
    background-color: #f3f3f3;
}
.ui-datepicker {
    z-index: 2000 !important;
}

.timeline-dates-row,
.timeline-project-hours-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 5px;
}

.timeline-user-wrapper {
    display: grid;
    grid-template-columns: 122px 1fr;
    margin-bottom: 20px;
    align-items: flex-start;
    overflow: visible !important;
    position: relative;
}

/* === USER NAME BLOCK === */
.timeline-user-block {
    font-weight: bold;
    padding: 10px;
    background: #f3f3f3;
    border-right: 1px solid #cfd8dc;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 102px;
    border-radius: 6px 0 0 6px;
}

.timeline-bar-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    overflow: visible !important;
    position: relative;
}

.bar-day {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: visible !important;
    position: relative;
}

/* === DATE LABEL === */
.bar-date {
    font-size: 0.75em;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid gray;
}

/* === HOURS CONTAINER === */
.bar-hours-row {
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex-wrap: nowrap;
    overflow: visible !important;
    position: relative;
}
.bar-segment {
    background-color: #007bff;
    color: white;
    padding: 3px 6px;
    font-size: 0.75em;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    cursor: help;
    white-space: nowrap;
    max-width: 100%;
}

.bar-segment .bar-text {
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
}

.custom-tooltip {
    visibility: hidden;
    opacity: 0;
    background-color: #333;
    color: #fff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    transition: opacity 0.2s ease;
    pointer-events: none;

}

/* Show on hover */
.bar-segment:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
}

.timeline-bar-row,
.bar-day,
.bar-hours-row,
.timeline-user-wrapper {
    overflow: visible !important;
    position: relative;
}

.bar-segment.half-day-bar {
    background-color: orange !important;
    color: white;
}

