/* Daily Report Form Styles */
.daily-report-form {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.daily-report-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.daily-report-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 20px;
}

.daily-report-card .card-header h3 {
    margin: 0;
    font-weight: 600;
}

.section-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.section-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 15px 20px;
}

.section-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.workforce-item, .material-item, .equipment-item, .meeting-item, .timesheet-item {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.workforce-item:hover, .material-item:hover, .equipment-item:hover, .meeting-item:hover, .timesheet-item:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-1px);
}

.add-item-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-item-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.remove-item-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 6px;
    color: white;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.remove-item-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: scale(1.05);
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Status badges */
.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Weather condition icons */
.weather-icon {
    font-size: 1.5rem;
    margin-right: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .daily-report-card {
        margin: 10px;
    }
    
    .section-card .card-header h5 {
        font-size: 1rem;
    }
    
    .workforce-item, .material-item, .equipment-item, .meeting-item, .timesheet-item {
        padding: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Timesheet specific styles */
.calculate-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.form-control[readonly]:not(.persian-date-field__input) {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
}

.timesheet-editor {
    background: #f8f9fa;
}

.timesheet-calc-badge {
    background: #eef2ff;
    border: 1px solid #d6dcff;
    border-radius: 10px;
    padding: 10px 14px;
    color: #3b4cca;
    font-size: 0.95rem;
}

.persian-date-field {
    display: block;
    width: 100%;
}

.persian-date-field__control {
    position: relative;
    width: 100%;
}

.persian-date-field__input,
.persian-date-field__input.form-control[readonly] {
    width: 100%;
    padding-left: 2.4rem;
    cursor: pointer;
    background-color: #fff;
}

.persian-date-field__icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #667eea;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.persian-date-field.is-disabled .persian-date-field__input,
.persian-date-field.is-disabled .persian-date-field__icon {
    cursor: not-allowed;
    opacity: 0.7;
}

.jalali-cal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: transparent;
}

.jalali-cal {
    position: absolute;
    top: calc(100% + 4px);
    inset-inline-start: 0;
    inset-inline-end: auto;
    z-index: 1081;
    width: 268px;
    max-width: calc(100vw - 32px);
    padding: 8px;
    overflow: visible;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.jalali-cal.is-above {
    top: auto;
    bottom: calc(100% + 4px);
}

.jalali-cal__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.jalali-cal__nav-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    color: #495057;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.jalali-cal__nav-btn:hover {
    background: #eef2ff;
    border-color: #c7d0ff;
    color: #4c5bd4;
}

.jalali-cal__title {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #4c5bd4;
}

.jalali-cal__weekdays,
.jalali-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.jalali-cal__weekdays {
    margin-bottom: 2px;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
}

.jalali-cal__empty,
.jalali-cal__day {
    width: 100%;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #212529;
    font-size: 0.85rem;
    line-height: 32px;
    padding: 0;
    cursor: pointer;
}

.jalali-cal__empty {
    cursor: default;
}

.jalali-cal__shortcuts {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef0f4;
}

.jalali-cal__shortcuts .btn {
    border-radius: 999px;
    padding: 2px 12px;
    font-size: 0.8rem;
}

.jalali-cal__day:hover {
    background: #eef2ff;
    color: #4c5bd4;
}

.jalali-cal__day.is-today {
    box-shadow: inset 0 0 0 1px #667eea;
}

.jalali-cal__day.is-selected {
    background: #667eea;
    color: #fff;
}

.jalali-cal__day.is-selected:hover {
    background: #5a6fd8;
    color: #fff;
}

.time-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-select__input {
    width: 138px;
    max-width: 100%;
    direction: ltr;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.time-select__now {
    border: 0;
    background: transparent;
    color: #667eea;
    font-size: 0.85rem;
    padding: 0;
    white-space: nowrap;
}

.time-select__now:hover {
    color: #4c5bd4;
    text-decoration: underline;
}

.time-select.is-disabled .time-select__now {
    display: none;
}

.timesheet-report-tabs .nav-link {
    border-radius: 999px;
    margin-left: 8px;
    color: #4c5bd4;
    background: #eef2ff;
    border: 1px solid transparent;
}

.timesheet-report-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.timesheet-stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timesheet-stat-card span {
    color: #6b7f99;
    font-size: 0.9rem;
}

.timesheet-stat-card strong {
    font-size: 1.2rem;
    color: #2d3748;
}

.timesheet-absent-row {
    color: #8a94a6;
    background: #f8f9fb;
}

.timesheet-reports-page .card-header h5 {
    margin: 0;
}

[data-theme="dark"] .timesheet-stat-card {
    background: var(--card-bg, #2d3748);
}

[data-theme="dark"] .timesheet-stat-card strong {
    color: var(--text-primary, #fff);
}

[data-theme="dark"] .timesheet-calc-badge {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.35);
    color: #c3c9ff;
}

.timesheet-summary-kpis .timesheet-kpi {
    background: #f8f9fc;
    border: 1px solid #e8ebf5;
    border-radius: 12px;
    padding: 14px 16px;
    height: 100%;
}

.timesheet-kpi__label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 6px;
}

.timesheet-kpi__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b4cca;
}

.timesheet-kpi--money .timesheet-kpi__value {
    font-size: 1.05rem;
}

.timesheet-readonly-table th {
    white-space: nowrap;
    font-size: 0.9rem;
}

.daily-report-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 1.25rem;
}

.daily-report-summary-strip .summary-chip {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.daily-report-summary-strip .summary-chip__label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.daily-report-summary-strip .summary-chip__value {
    font-weight: 700;
    color: #343a40;
}

.daily-report-empty {
    color: #8891a0;
    font-style: italic;
    margin: 0;
}

.timesheet-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media print {
    .no-print,
    .page-header-beautiful,
    .rz-sidebar,
    header,
    .radzen-nav-menu {
        display: none !important;
    }

    .timesheet-reports-page {
        direction: rtl;
    }
}
@media print {
    .daily-report-form {
        background: white;
    }
    
    .section-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn {
        display: none;
    }
} 