.cro-feedback {
    display: none;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.cro-feedback.is-visible {
    display: block;
}

.cro-feedback.is-loading {
    background: #fff3cd;
    color: #7c5b00;
}

.cro-feedback.is-warning {
    background: #fff3cd;
    color: #7c5b00;
}

.cro-feedback.is-error {
    background: #f8d7da;
    color: #842029;
}

.cro-feedback.is-success {
    background: #d1e7dd;
    color: #0f5132;
}

.cro-grid-wrapper {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
}

.cro-grid-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.cro-grid-table th,
.cro-grid-table td {
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.cro-grid-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #fff8e1;
    text-align: center;
    padding: 0.65rem 0.45rem;
}

.cro-grid-table thead th:first-child,
.cro-grid-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fff;
}

.cro-grid-table thead th:first-child {
    z-index: 5;
    background: #fff3cd;
}

.cro-month-cell {
    min-width: 120px;
    font-weight: 700;
    text-transform: uppercase;
    background: #fffdf6;
    padding: 0.85rem 0.75rem;
}

.cro-day-cell {
    min-width: 70px;
    height: 64px;
    padding: 0.18rem;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.cro-day-cell.cro-day-weekend {
    background: #f8f9fa;
}

.cro-day-cell.cro-day-today {
    box-shadow: inset 0 0 0 2px #007bff;
}

.cro-day-cell.cro-day-invalid {
    background: #f1f3f5;
    cursor: default;
}

.cro-day-cell:not(.cro-day-invalid):hover {
    background: #eef6ff;
}

.cro-day-number {
    font-size: 0.66rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 0.18rem;
    letter-spacing: 0.01em;
}

.cro-cell-events {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.cro-event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    padding: 0.12rem 0.28rem;
    font-size: 0.62rem;
    line-height: 1.05;
    font-weight: 700;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid transparent;
}

.cro-event-badge.cro-event-badge-manual {
    cursor: pointer;
}

.cro-event-badge.cro-event-badge-auto {
    cursor: default;
}

.cro-event-code {
    display: inline-block;
    opacity: 0.95;
}

.cro-event-badge-success {
    background: #d4edda;
    border-color: #b7dfc0;
    color: #155724;
}

.cro-event-badge-warning {
    background: #fff3cd;
    border-color: #ffe08a;
    color: #856404;
}

.cro-event-badge-danger {
    background: #f8d7da;
    border-color: #f1aeb5;
    color: #721c24;
}

.cro-event-text {
    display: none;
}

.cro-empty-state {
    text-align: center;
    padding: 2rem 1rem 1rem;
    color: #6c757d;
}

.cro-empty-state i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cro-modal .modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.cro-mda-header {
    background: linear-gradient(135deg, #1f4b99, #2e7d32);
    color: #fff;
}

.cro-mda-body {
    background: #fbfbfd;
}

.cro-actions .btn {
    min-height: 38px;
}

.cro-kpi-footer {
    font-weight: 700;
}

@media (max-width: 768px) {
    .cro-grid-table {
        min-width: 980px;
    }

    .cro-day-cell {
        min-width: 58px;
        height: 60px;
    }
}
