.work-schedule-container {
    margin: 0 auto;
    padding-top: 20px;
    background-color: #fff;
}

.work-schedule-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.work-schedule-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.week-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.btn-week {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-week:hover {
    background-color: var(--color-brand);
    border-color: #999;
}

.current-week-label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.schedule-table {
    overflow-x: auto;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.schedule-table thead {
    background-color: #f8f9fa;
}

.schedule-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #ddd;
    color: #333;
    font-size: 14px;
}

.schedule-table th.col-day {
    width: 10%;
}

.schedule-table th.col-time {
    width: 8%;
}

.schedule-table th.col-content {
    width: 35%;
}

.schedule-table th.col-participants {
    width: 22%;
}

.schedule-table th.col-location {
    width: 18%;
}

.schedule-table th.col-action {
    width: 15%;
    text-align: center;
}

.schedule-table tbody tr {
    border: 1px solid #ddd;
}

.schedule-table tbody tr.schedule-row:hover {
    background-color: #e7f3ff;
    transition: background-color 0.2s ease;
}

.schedule-table tbody tr.schedule-row {
    transition: background-color 0.2s ease;
}

/* Style for afternoon schedules (>= 12:00) */
.schedule-table tbody tr.afternoon-schedule {
    background-color: #e8f4fd;
}

.schedule-table tbody tr.afternoon-schedule:hover {
    background-color: #d6ebfc;
}

.schedule-table td {
    padding: 8px;
    border: 1px solid #ddd;
    vertical-align: middle;
    font-size: .9em;
    line-height: 1.3;
}

.day-header {
    background-color: #e9ecef;
}

.day-title {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    padding: 8px 10px !important;
}

.day-date {
    margin-left: 10px;
    color: #666;
    font-weight: normal;
}

.day-cell {
    font-weight: bold;
    color: #333;
    text-align: center;
    background-color: #fff;
    border-right: 2px solid #dee2e6 !important;
}

.day-cell .date-text {
    font-weight: normal;
    color: #666;
    font-size: 0.9em;
}

.time-cell {
    font-weight: bold;
    color: #333;
    text-align: center !important;
    white-space: nowrap;
    border-right: 2px solid #dee2e6 !important;
}

.content-cell {
    color: #333;
    line-height: 1.6;
}

.participants-cell {
    color: #555;
}

.location-cell {
    color: #555;
}

.action-cell {
    text-align: center !important;
}

.btn-no-bg {
    background: #fff;
    color: #b02a37;
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-delete {
    padding: 4px 8px;
    font-size: 12px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-delete i {
    pointer-events: none;
}

.btn-edit {
    padding: 4px 8px;
    font-size: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-right: 5px;
}

.btn-edit:hover {
    background-color: #0056b3;
}

.btn-edit i {
    pointer-events: none;
}

/* Editable cells styling */
.editable {
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.editable:hover {
    background-color: #f0f8ff;
}

.editable::after {
    content: '✏';
    position: absolute;
    right: 5px;
    top: 5px;
    opacity: 0;
    color: #666;
    font-size: 12px;
    transition: opacity 0.2s ease;
}

.editable:hover::after {
    opacity: 0.5;
}

.inline-edit {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    font-size: 14px;
    border: 2px solid #007bff;
    border-radius: 4px;
    resize: vertical;
}

.inline-edit:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Create button styling */
#btnCreateSchedule {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#btnCreateSchedule i {
    margin-right: 5px;
}

/* Modal styling */
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-act-create {
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: var(--color-brand);
}

.text-danger {
    color: #dc3545;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 15px;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.no-schedule {
    text-align: center;
    color: #999;
    padding: 40px !important;
    font-style: italic;
}

.no-schedule-day {
    text-align: center;
    color: #999;
    padding: 20px !important;
    font-style: italic;
    background-color: #f9f9f9;
}

/* Important schedule styling */
.important-schedule {
    color: #dc3545 !important;
    font-weight: 500;
}

/* Planned row styling */
.planned-row {
    background-color: #fff3cd;
    border-top: 2px solid #ffc107 !important;
}

.planned-row .day-cell {
    background-color: #ffc107;
    color: #000;
}

.planned-schedule-cell {
    text-align: center;
    color: #856404;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.planned-schedule-cell:hover {
    background-color: #ffe69c;
}

.planned-schedule-cell.editable-planned {
    cursor: pointer;
}

.planned-content {
    color: #333;
    font-weight: 500;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    text-align: left;
}

.planned-empty {
    font-style: italic;
    color: #856404;
}

@media (max-width: 768px) {
    .work-schedule-container {
        padding: 10px;
    }
    
    .work-schedule-header h1 {
        font-size: 20px;
    }

    .header-controls {
        flex-direction: column;
    }
    
    .week-navigation {
        /*flex-direction: column;*/
        gap: 10px;
    }

    .btn-edit {
        margin-right: 0 !important;
    }
    
    .schedule-table {
        font-size: 12px;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 8px 5px;
    }
}
