/* --- Quality Management Frontend CSS (2025) --- */
body.rtl, html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
.qm-frontend-wrapper {
    max-width: 600px;
    margin: 32px auto;
    background: #fff;
    border-radius: 12px;
    padding: 32px 20px;
    box-shadow: 0 2px 12px rgba(30,40,90,0.07);
}
.qm-frontend-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #1d2327;
}
.qm-form-group {
    margin-bottom: 22px;
}
.qm-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    color: #333;
}
.qm-form-group input,
.qm-form-group textarea,
.qm-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: #fafbfc;
}
.qm-form-group textarea { min-height: 90px; resize: vertical; }
.qm-form-group input[type="file"] { padding: 0; }
.qm-form-actions {
    text-align: center;
    margin-top: 30px;
}
.qm-form-actions .button {
    padding: 12px 32px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    margin: 0 8px;
    transition: background 0.2s;
}
.qm-form-actions .button:hover { background: #17568c; }

.qm-progress-bar {
    width: 100%;
    height: 18px;
    background: #e9ecef;
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 18px;
}
.qm-progress-fill {
    height: 100%;
    background: #2271b1;
    border-radius: 9px;
    transition: width 0.3s;
}
.qm-progress-label {
    display: block;
    text-align: center;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 12px;
}
.qm-confirmation {
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 22px;
    font-size: 1.1rem;
    text-align: center;
}
.qm-error {
    background: #fff3cd;
    color: #856404;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 22px;
    font-size: 1.1rem;
    text-align: center;
}
.qm-uploaded-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.qm-uploaded-file {
    background: #f7f7f7;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 0.97em;
    color: #333;
}
@media (max-width: 700px) {
    .qm-frontend-wrapper { padding: 12px 2px; }
    .qm-form-actions .button { width: 100%; margin: 10px 0; }
}
