.project-details-container, .project-details-addresses, .project-details-contact {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.project-details-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.project-details-header {
    display: flex;
    flex-direction: column;
}

.project-details-btn {
    margin-bottom: 5px;
}

.project-details-info {
    font-size: 1rem;
    color: #666;
    margin: 5px 0;
}

.project-details-contact ul, .project-details-addresses ul {
    list-style-type: none;
    padding: 0;
}

.project-details-contact li, .project-details-addresses li {
    margin: 5px 0;
}

.project-details-contact ul li a, .project-details-addresses ul li a {
    text-decoration: none;
    margin: 5px;
    padding: 5px;
    border-radius: 10px;
    background: #ecedee;
    color: rgba(0,0,0,0.8);
}

    .project-details-contact ul li a:hover, .project-details-addresses ul li a:hover {
        text-decoration: none;
        margin: 5px;
        padding: 5px;
        border-radius: 10px;
        background: #cccccc;
        transition: background-color 1s ease-in-out;
    }

.project-details-order-history, .project-details-order-requests, .project-details-order-change-requests {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

    .project-details-order-history input[type="text"],
    .project-details-order-history select {
        margin-bottom: 15px;
    }

.project-details-calendar-view {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

    .project-details-calendar-view #calendar {
        height: 300px;
    }

.project-details-modal-header {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
}

.project-details-modal-body {
    padding: 20px;
}

    .project-details-modal-body input[type="text"],
    .project-details-modal-body input[type="date"] {
        margin-bottom: 15px;
    }

.order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border: 1px solid #dddddd;
    border-radius: 7px;
}

    .order-table th, .order-table td {
        border: 1px solid #dddddd;
        text-align: left;
        padding: 10px;
    }

    .order-table th {
        background-color: #f2f2f2;
        font-weight: normal;
        text-align: center;
    }

    .order-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .order-table tr:hover {
        background-color: #e6f7ff;
    }

    .order-table strong {
        font-weight: bold;
        border-top-right-radius: 5px;
        border-top-left-radius: 5px;
    }

    .order-th-name {
        font-weight: bolder;
        color: darkblue;
    }

    .order-table thead th[colspan="5"] {
        background-color: #e6e6e6;
        text-align: left;
        font-size: 16px;
        padding: 12px;
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
    }

    .order-table tfoot tr:last-child td {
        background: linear-gradient(to top, #f2f2f2, #f9f9f9);
    }

        .order-table tfoot tr:last-child td:first-child {
            border-bottom-left-radius: 7px;
        }

        .order-table tfoot tr:last-child td:last-child {
            border-bottom-right-radius: 7px;
        }

/* Calendar veiw styling */
.project-details-calendar-view {
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.crudBody {
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 7px;
    overflow: hidden;
}

th button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 15px;
}

    th button:hover {
        background-color: #0056b3;
    }

th span {
    font-size: 18px;
    font-weight: bold;
}

.calendar-table th {
    background-color: #e6f7ff;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.calendar-table td {
    height: 100px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: top;
    position: relative;
    padding: 5px;
}

.day-cell {
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .day-cell:hover {
        background-color: #d1e0e5;
    }

.current {
    background-color: #b3e0ff;
    font-weight: bold;
}

.faded {
    color: #999;
}

.calendar-table thead tr th:first-child {
    border-top-left-radius: 7px;
}

.calendar-table thead tr th:last-child {
    border-top-right-radius: 7px;
}

.calendar-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 7px;
}

.calendar-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 7px;
}

.calendar-table #calendarBody a {
    position: relative;
    text-decoration: none;
    color: black;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 7px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

    .calendar-table #calendarBody a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background-color: #486ff4;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .calendar-table #calendarBody a:hover::after {
        transform: scaleX(1);
    }

    .calendar-table #calendarBody a:not(:hover)::after {
        transform: scaleX(0);
        transform-origin: right;
    }

    .calendar-table #calendarBody a:hover {
        background-color: #f5f5f5;
    }

/* Project details order requests and changes */
.project-details-order-requests a.order-toggle-link, .project-details-order-change-requests a.order-toggle-link {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
}

    .project-details-order-requests a.order-toggle-link:hover, .project-details-order-change-requests a.order-toggle-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }