body {
    padding-top: 56px;
}

.calendar-month {
    margin-top: 20px;
}

.calendar-month table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-month th, .calendar-month td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
    height: 100px;
}

.calendar-month th {
    background-color: #f2f2f2;
    text-align: center;
}

.calendar-month td.empty {
    background-color: #f9f9f9;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.facturi-list {
    font-size: 0.9em;
}

.factura-item {
    margin-bottom: 5px;
    padding: 3px;
    background-color: #f8f9fa;
    border-radius: 3px;
}

.factura-actions {
    margin-top: 3px;
    font-size: 0.8em;
}

.view-options {
    margin-bottom: 20px;
}

.view-options a {
    margin-right: 10px;
    padding: 5px 10px;
    background-color: #e9ecef;
    border-radius: 3px;
    text-decoration: none;
}

.view-options a.active {
    background-color: #0d6efd;
    color: white;
}

.month-navigation, .week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card {
    margin-bottom: 20px;
    height: 100%;
}

/* Stiluri generale calendar */
.calendar-container {
    font-family: 'Roboto', Arial, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Header calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-title {
    margin: 0 15px;
    font-size: 1.5rem;
    font-weight: 500;
    color: #3c4043;
    min-width: 200px;
    text-align: center;
}

.btn-nav, .btn-today, .view-btn {
    transition: all 0.2s ease;
}

.btn-nav {
    background: #f1f3f4;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #3c4043;
}

.btn-nav:hover {
    background: #e8eaed;
}

.btn-today {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 8px 16px;
    margin-left: 10px;
    cursor: pointer;
    color: #3c4043;
    font-weight: 500;
}

.btn-today:hover {
    background: #f1f3f4;
}

.view-options {
    display: flex;
    background: #f1f3f4;
    border-radius: 4px;
    padding: 4px;
}

.view-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    color: #3c4043;
    font-weight: 500;
    border-radius: 2px;
}

.view-btn.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* Vizualizare lunară */
.calendar-month {
    margin-top: 15px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    font-weight: 500;
    text-align: center;
    padding: 12px 0;
    border-radius: 4px 4px 0 0;
}

.weekday {
    color: #5f6368;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(120px, auto);
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.calendar-day {
    padding: 8px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    min-height: 120px;
    background: #fff;
}

.calendar-day.empty {
    background: #fafafa;
}

.calendar-day.today {
    background-color: #e8f4fe;
}

.day-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.day-number {
    font-weight: 500;
    color: #3c4043;
}

.event-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #1a73e8;
    border-radius: 50%;
    margin-right: 5px;
}

.day-events {
    max-height: 80px;
    overflow-y: auto;
}

.calendar-event {
    padding: 6px 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    border-left: 3px solid;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.calendar-event.pending {
    border-left-color: #fbbc04;
    background: #fff8e6;
}

.calendar-event.verified {
    border-left-color: #34a853;
    background: #e6f4ea;
}

.calendar-event.paid {
    border-left-color: #4285f4;
    background: #e8f0fe;
}

.event-time {
    font-size: 0.75rem;
    color: #5f6368;
    margin-bottom: 2px;
}

.event-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-amount {
    font-size: 0.75rem;
    color: #5f6368;
    margin-top: 2px;
}

/* Corecții vizualizare săptămânală */
.calendar-week {
    overflow-x: auto;
    margin-top: 15px;
}

.week-header, .week-body {
    display: grid;
    grid-template-columns: 80px repeat(7, minmax(120px, 1fr));
    min-width: 1000px;
}

.week-header {
    background: #f8f9fa;
    border-radius: 4px 4px 0 0;
}

.week-day {
    padding: 10px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

.week-day:last-child {
    border-right: none;
}

.week-body {
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    min-height: 600px;
}

.time-column {
    padding: 5px;
    border-right: 1px solid #e0e0e0;
    background: #f8f9fa;
    position: sticky;
    left: 0;
    z-index: 2;
}

.time-slot {
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 0.8rem;
    color: #70757a;
    position: relative;
}

.time-slot::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid #f1f3f4;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    position: relative;
}

.week-day-column {
    position: relative;
}

.week-day-column::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    border-right: 1px solid #e0e0e0;
}

.week-day-column:last-child::before {
    border-right: none;
}

/* Vizualizare zilnică */
.calendar-day-view {
    margin-top: 20px;
}

.day-header h3 {
    color: #3c4043;
    font-weight: 500;
    margin: 0;
}

.day-events {
    margin-top: 15px;
}

.day-event {
    display: flex;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    align-items: center;
}

.day-event i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.day-event .event-time {
    min-width: 70px;
    font-weight: 500;
    color: #3c4043;
    font-size: 0.9rem;
}

.day-event .event-content {
    flex-grow: 1;
}

.event-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.event-title {
    font-weight: 500;
}

.event-amount {
    font-weight: 500;
}

.event-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.event-status {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.event-status.verified, .event-status.paid {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.event-status.unverified, .event-status.unpaid {
    background-color: #ffebee;
    color: #b71c1c;
}

.event-type {
    font-size: 0.85rem;
    color: #5f6368;
    margin-bottom: 10px;
}

.event-actions {
    display: flex;
    gap: 15px;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    
    cursor: pointer;
}

.no-events {
    text-align: center;
    padding: 30px;
    color: #70757a;
    font-size: 0.9rem;
}

/* Stiluri pentru modalul de detalii */
.modal-content {
    border-radius: 10px;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    font-weight: 600;
    color: #555;
    min-width: 150px;
}

.detail-value {
    color: #333;
    flex-grow: 1;
}

.badge {
    font-size: 0.85em;
    padding: 4px 8px;
}

/* Butonul de editare */
#modalEditBtn {
    background-color: #4e73df;
    border: none;
    padding: 8px 20px;
}

#modalEditBtn:hover {
    background-color: #3a5ec0;
}
.factura-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.detail-row {
    display: flex;
}

.detail-label {
    font-weight: 500;
    color: #3c4043;
    min-width: 120px;
}

.detail-value {
    color: #5f6368;
}

/* Responsive */
@media (max-width: 992px) {
    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .view-options {
        width: 100%;
        justify-content: center;
    }
    
    .calendar-day {
        min-height: 80px;
    }
    
    .week-header, .week-body {
        grid-template-columns: 60px repeat(7, 1fr);
    }
    
    .time-column {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .calendar-days {
        grid-auto-rows: minmax(60px, auto);
    }
    
    .calendar-event {
        padding: 4px;
        font-size: 0.7rem;
    }
    
    .day-event {
        flex-direction: column;
    }
    
    .day-event .event-time {
        margin-bottom: 5px;
    }
}

/* Stiluri pentru tipurile de evenimente */
.autocitire {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
    color: #0d47a1;
}

.emitere {
    background-color: #e8f5e9;
    border-left: 3px solid #4caf50;
    color: #1b5e20;
}

.scadenta {
    background-color: #ffebee;
    border-left: 3px solid #f44336;
    color: #b71c1c;
}

/* Vizualizare zilnică - evenimente */




