/* 蒙特梭利學習記錄 - 前台樣式 */

.mlr-frontend-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* 標題區域 */
.mlr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.mlr-header h2 {
    margin: 0;
    color: #0073aa;
}

.mlr-header .mlr-current-class {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    background: #e6f4fb;
    color: #005a87;
    font-size: 16px;
}
/* 通知訊息 */
.mlr-notice {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.mlr-notice.mlr-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.mlr-notice.mlr-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.mlr-notice.mlr-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* 按鈕樣式 */
.mlr-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.mlr-btn:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
    text-decoration: none;
    color: #333;
}

.mlr-btn-primary {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.mlr-btn-primary:hover {
    background: #005a87;
    color: white;
}

.mlr-btn-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

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

.mlr-btn-edit {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.mlr-btn-edit:hover {
    background: #218838;
    color: white;
}

.mlr-btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.mlr-btn-danger:hover {
    background: #c82333;
    color: white;
}

.mlr-btn-small {
    padding: 5px 12px;
    font-size: 13px;
}

/* 篩選區域 */
.mlr-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 25px;
}

.mlr-filter-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.mlr-filter-item {
    flex: 1;
    min-width: 200px;
}

.mlr-filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.mlr-filter-item select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mlr-filter-item select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* 記錄卡片網格 */
.mlr-records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mlr-record-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.mlr-record-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.mlr-record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mlr-record-student strong {
    font-size: 18px;
    color: #0073aa;
}

.mlr-record-meta {
    text-align: right;
    font-size: 13px;
    color: #666;
}

.mlr-week {
    display: block;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 3px;
}

.mlr-date {
    display: block;
}

.mlr-record-body {
    margin-bottom: 15px;
}

.mlr-record-section {
    margin-bottom: 12px;
}

.mlr-record-section--observation {
    border-top: 1px dashed #c7d2fe;
    padding-top: 12px;
}

.mlr-record-section--observation .mlr-record-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #475569;
}

.mlr-record-section--observation .mlr-observation-topic {
    font-weight: 600;
    color: #3730a3;
}

.mlr-record-section--observation .mlr-observation-item {
    color: #4338ca;
}

.mlr-record-section strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.mlr-record-section p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.mlr-record-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.mlr-record-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 標籤 */
.mlr-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.mlr-badge-auto {
    background: #cfe2ff;
    color: #0d6efd;
}

.mlr-badge-manual {
    background: #d1e7dd;
    color: #0f5132;
}

/* 空狀態 */
.mlr-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.mlr-empty p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* 分頁 */
.mlr-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.mlr-page-info {
    font-weight: 600;
    color: #333;
}

/* 模態框 */
.mlr-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.mlr-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.mlr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #0073aa;
}

.mlr-modal-header h3 {
    margin: 0;
    color: #0073aa;
}

.mlr-modal-close {
    background: #0073aa;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: white;
    line-height: 1;
    padding: 8px 20px;
}

.mlr-modal-close:hover {
    color: #333;
}

.mlr-modal-body {
    padding: 25px;
}

.mlr-detail-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mlr-detail-row strong {
    min-width: 120px;
    color: #333;
}

.mlr-detail-section {
    margin-bottom: 20px;
}

.mlr-detail-section strong {
    display: block;
    margin-bottom: 8px;
    color: #0073aa;
    font-size: 15px;
}

.mlr-detail-section p {
    margin: 0;
    color: #666;
    line-height: 1.8;
    white-space: pre-line;
}

/* 表單樣式 */
.mlr-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.mlr-form-group {
    margin-bottom: 20px;
}

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

.mlr-form-group label .required {
    color: #dc3545;
}

.mlr-form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.mlr-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

textarea.mlr-form-control {
    resize: vertical;
    min-height: 100px;
}

.mlr-form-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.mlr-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .mlr-frontend-container {
        padding: 15px;
    }
    
    .mlr-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
        
    .mlr-header .mlr-current-class {
        margin-left: 0;
    }
    
    .mlr-filter-row {
        flex-direction: column;
    }
    
    .mlr-filter-item {
        width: 100%;
    }
    
    .mlr-filter-item select {
        width: 100%;
    }
    
    .mlr-records-grid {
        grid-template-columns: 1fr;
    }
    
    .mlr-record-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .mlr-record-meta {
        text-align: left;
    }
    
    .mlr-record-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .mlr-record-actions {
        width: 100%;
    }
    
    .mlr-record-actions .mlr-btn-small {
        flex: 1;
        text-align: center;
    }
    
    .mlr-modal-content {
        width: 95%;
    }
    
    .mlr-detail-row {
        flex-direction: column;
        gap: 5px;
    }
}

/* 列印樣式 */
@media print {
    .mlr-header .mlr-actions,
    .mlr-filters,
    .mlr-record-actions,
    .mlr-pagination,
    .mlr-btn {
        display: none !important;
    }

    .mlr-records-grid {
        grid-template-columns: 1fr;
    }

    .mlr-record-card {
        page-break-inside: avoid;
    }
}

/* ========================================
   四階段學習掌握等級評量系統樣式
   Progress Assessment Styles
   ======================================== */

/* 評量容器 */
.mlr-progress-assessment-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
}

/* 頁面標題 */
.mlr-page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4caf50;
}

.mlr-page-header h2 {
    margin: 0 0 10px 0;
    color: #2c5f2d;
    font-size: 28px;
}

.mlr-subtitle {
    margin: 0;
    color: #666;
    font-size: 16px;
    font-style: italic;
}

/* 篩選容器 */
.mlr-filters-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.mlr-filters-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.mlr-filter-group {
    flex: 1;
    min-width: 200px;
}

.mlr-filter-field-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mlr-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.mlr-filter-field-group label {
    margin-bottom: 0;
    white-space: nowrap;
}

.mlr-filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.mlr-filter-field-group .mlr-filter-select {
    flex: 1;
    min-width: 0;
}

.mlr-filter-select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.mlr-btn-success {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.mlr-btn-success:hover {
    background: #45a049;
    color: white;
}

.mlr-btn-info {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.mlr-btn-info:hover {
    background: #138496;
    color: white;
}

/* 統計摘要 */
.mlr-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.mlr-stat-card {
    background: white;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mlr-stat-label {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.mlr-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #2c5f2d;
}

/* 評量階段統計 */
.mlr-progress-stats {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.mlr-progress-title {
    margin: 0;
    color: #2c5f2d;
    font-size: 18px;
    font-weight: 700;
    min-width: 160px;
}

.mlr-progress-bars {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
    flex: 1 1 200px;
}

.mlr-progress-bar-item {
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 220px;
}

.mlr-progress-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mlr-progress-label {
    font-size: 14px;
    color: #333;
}

.mlr-progress-count {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.mlr-progress-bar-bg {
    width: 100%;
    height: 24px;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.mlr-progress-bar-fill {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 12px;
}

/* 熱力圖容器 */
.mlr-heatmap-container {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.mlr-heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mlr-heatmap-header h3 {
    margin: 0;
    color: #2c5f2d;
    font-size: 20px;
}

.mlr-heatmap-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mlr-confirm-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}

.mlr-confirm-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.mlr-heatmap-scroll {
    overflow-x: auto;
    margin-bottom: 20px;
}

/* 熱力圖表格 */
.mlr-heatmap-table {
    width: auto;
    border-collapse: collapse;
    margin: 0;
    min-width: 100%;
    border: 1px solid #ddd;
}

.mlr-heatmap-table thead {
    background: #f8f9fa;
}

.mlr-heatmap-table th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border: 1px solid #ddd;
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
}

.mlr-course-header {
    min-width: 200px;
    max-width: 300px;
    text-align: left !important;
    padding-left: 15px !important;
    background: #e8f5e9 !important;
    font-weight: bold;
}

.mlr-student-header {
    min-width: 60px;
    max-width: 80px;
    padding: 10px 5px !important;
    font-size: 13px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 150px;
}

.mlr-student-name {
    white-space: nowrap;
}

.mlr-heatmap-table td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 8px;
    transition: all 0.2s;
}

.mlr-course-name {
    text-align: left !important;
    padding-left: 15px !important;
    font-weight: 500;
    color: #333;
    background: #f8f9fa;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 評量格子 */
.mlr-progress-cell {
    min-width: 60px;
    max-width: 80px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.mlr-progress-cell:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    z-index: 15;
    position: relative;
}

.mlr-progress-code {
    display: inline-block;
    font-weight: bold;
    color: #333;
}

.mlr-loading {
    opacity: 0.6;
    cursor: wait !important;
}

.mlr-loading::after {
    content: "⌛";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
}

/* 圖例 */
.mlr-legend {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.mlr-legend-title {
    font-weight: 700;
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
}

.mlr-legend-items {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.mlr-legend-section {
    flex: 1;
    min-width: 300px;
}

.mlr-legend-subtitle {
    font-weight: 600;
    color: #2c5f2d;
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #4caf50;
}

.mlr-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.mlr-legend-color {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.mlr-legend-text {
    font-size: 13px;
    color: #333;
}

/* 評量提醒 */
.mlr-assessment-alerts {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.mlr-assessment-alerts h3 {
    margin: 0 0 15px 0;
    color: #2c5f2d;
    font-size: 20px;
}

.mlr-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mlr-alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.mlr-alert-icon {
    font-size: 24px;
    line-height: 1;
}

.mlr-alert-content {
    flex: 1;
}

.mlr-alert-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 4px;
}

.mlr-alert-text {
    font-size: 13px;
    color: #856404;
}

.mlr-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.mlr-loading {
    color: #666;
    font-style: italic;
}

/* 批量評量模態框 */
#batch-assess-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.mlr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.mlr-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10001;
}

.mlr-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.mlr-checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
}

.mlr-checkbox-label {
    display: block;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
}

.mlr-checkbox-label:hover {
    background: #e9ecef;
}

.mlr-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

/* 通知訊息 */
.mlr-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10001;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s;
    max-width: 400px;
}

.mlr-notification-show {
    opacity: 1;
    transform: translateX(0);
}

.mlr-notification-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.mlr-notification-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.mlr-notification-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .mlr-filters-form {
        flex-direction: column;
    }

    .mlr-filter-group {
        width: 100%;
    }

    .mlr-stats-summary {
        grid-template-columns: 1fr;
    }

    .mlr-heatmap-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .mlr-heatmap-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .mlr-heatmap-actions .mlr-btn {
        width: 100%;
    }

    .mlr-heatmap-actions .mlr-confirm-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .mlr-student-header {
        height: 120px;
        font-size: 12px;
    }

    .mlr-legend {
        flex-direction: column;
        align-items: flex-start;
    }

    .mlr-progress-stats {
        flex-direction: column;
        gap: 16px;
    }

    .mlr-progress-title {
        min-width: auto;
    }

    .mlr-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
/* 學習報告佈局 */
.mlr-learning-report {
    background: #f8fafb;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e1e5eb;
    margin-bottom: 32px;
}

.mlr-learning-report--frontend {
    max-width: 960px;
    margin: 0 auto 40px;
}

.mlr-section-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 28px;
    color: #2b4450;
    text-align: center;
}

.mlr-section-description {
    margin: 0 0 24px;
    color: #52606d;
    text-align: center;
}

.mlr-learning-report__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0 24px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e1e5eb;
    border-radius: 10px;
}

.mlr-learning-report__field {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.mlr-learning-report__field label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #2b4450;
}

.mlr-learning-report__field select,
.mlr-learning-report__field input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #d5dbe4;
    border-radius: 6px;
    font-size: 14px;
}

.mlr-learning-report__field select:focus,
.mlr-learning-report__field input[type="date"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.mlr-learning-report__actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.mlr-learning-report__card {
    background: #ffffff;
    border: 1px solid #e1e5eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(27, 39, 51, 0.05);
}

.mlr-learning-report__card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #2b4450;
}

.mlr-learning-report__domain {
    border-top: 1px solid #eef2f7;
    padding-top: 16px;
    margin-top: 16px;
}

.mlr-learning-report__domain:first-of-type {
    border-top: none;
    padding-top: 0;
}

.mlr-learning-report__domain-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.mlr-learning-report__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.mlr-learning-report__note,
.mlr-learning-report__muted {
    color: #52606d;
}

.mlr-learning-report__note {
    margin-top: 4px;
}

.mlr-learning-report__muted {
    font-style: italic;
}

.mlr-learning-report details {
    margin-top: 12px;
}

.mlr-learning-report details summary {
    cursor: pointer;
    font-weight: 600;
    color: #2b4450;
}

@media (max-width: 768px) {
    .mlr-learning-report {
        padding: 20px 16px;
    }

    .mlr-learning-report__filters {
        flex-direction: column;
    }

    .mlr-learning-report__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.mlr-learning-report table {
    width: 100%;
    border-collapse: collapse;
}

.mlr-learning-report th,
.mlr-learning-report td {
    border: 1px solid #e1e5eb;
    padding: 8px 12px;
    text-align: left;
}

.mlr-learning-report th {
    background: #f1f4f8;
    font-weight: 600;
    color: #2b4450;
}

.mlr-notice.mlr-info {
    background: #d1ecf1;
    border-color: #0c5460;
    color: #0c5460;
}