/* gestions ab students */

.absence-kpi-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    height: 100%;
}

.absence-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.absence-kpi-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: #0f172a;
}

.absence-kpi-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 6px;
}

.absence-alert-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    height: 100%;
}

.absence-alert-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
}

.absence-month-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 6px 10px;
}

.absence-month-empty {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.absence-month-ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.absence-month-warning {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.absence-month-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Create ab eleve */

.absence-day-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.absence-total-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 900;
    color: #0f172a;
}

.absence-student-select {
    display: none;
}

/* voir ab eleve */

.student-identity-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.absence-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.absence-status-justified {
    background: #dcfce7;
    color: #166534;
}

.absence-status-non-justified {
    background: #fee2e2;
    color: #991b1b;
}

.justification-file-preview {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
}

.gesnote-absence-justify-modal {
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}

.gesnote-absence-select {
    position: relative;
}

.gesnote-absence-select-btn {
    width: 100%;
    border: 1px solid #dbe3ef;
    background: #fff;
    border-radius: 16px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    color: #0f172a;
}

.gesnote-absence-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1080;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
    display: none;
    overflow: hidden;
}

.gesnote-absence-select.is-open .gesnote-absence-select-menu {
    display: block;
}

.gesnote-absence-select-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.gesnote-absence-select-search input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.gesnote-absence-select-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
}

.gesnote-absence-select-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.gesnote-absence-select-item:hover {
    background: #f1f5f9;
}

.gesnote-absence-select-item input {
    margin-top: 4px;
}

.gesnote-absence-select-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.88rem;
}

.gesnote-absence-select-text small {
    color: #64748b;
}

.gesnote-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 22px;
    background: #f8fafc;
    padding: 18px;
    transition: 0.2s ease;
    cursor: pointer;
}

.gesnote-upload-zone.is-dragover {
    border-color: #f97316;
    background: #fff7ed;
}

.gesnote-upload-empty {
    text-align: center;
    padding: 25px 15px;
}

.gesnote-upload-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffedd5;
    color: #ea580c;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.gesnote-upload-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.gesnote-upload-preview-card {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    padding: 10px;
    overflow: hidden;
}

.gesnote-upload-preview-thumb {
    height: 105px;
    border-radius: 14px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
}

.gesnote-upload-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gesnote-upload-preview-thumb i {
    font-size: 2rem;
    color: #ef4444;
}

.gesnote-upload-preview-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gesnote-upload-preview-size {
    font-size: 0.72rem;
    color: #64748b;
}

.gesnote-upload-preview-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.gesnote-upload-mini-btn {
    border: 0;
    border-radius: 10px;
    padding: 6px 8px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.8rem;
}

.gesnote-upload-remove {
    background: #fee2e2;
    color: #991b1b;
}

.gesnote-file-preview-large {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 18px;
    overflow: hidden;
}

.gesnote-file-preview-large img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.gesnote-file-preview-large iframe {
    width: 100%;
    height: 75vh;
    border: 0;
    border-radius: 14px;
}
