#resend-email {
    text-decoration: underline;
    cursor: pointer;
    color: #0073aa;
    transition: color 0.3s;
}

#resend-email:hover {
    color: #005177;
}

body.otp-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #a78bfa 0%, #f472b6 50%, #fb7185 100%);
    margin: 0;
    padding: 32px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.otp-card {
    background: #fff;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.15);
    padding: 32px;
    max-width: 370px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin: auto;
}

.btn-main-color.otp-btn{
    border-radius: 10px !important;
}

.otp-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
   margin: 0 0 8px;
}

.otp-sub {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px;
}

.otp-fields {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.otp-input {
    width: 48px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    outline: none;
    box-sizing: border-box;
}
.otp-input:focus {
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
    border-color: var(--thm-base);
}

.otp-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 14px;
    background: var(--thm-base);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.otp-btn:hover {
    background: var(--thm-base);
}
.otp-meta {
    font-size: 13px;
    color: #6b7280;
    margin-top: 16px;
}

.otp-meta a {
    color: var(--thm-base);
    text-decoration: none;
    font-weight: 600;
}

.otp-meta a[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.otp-notice {
    margin: 0 0 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.otp-success {
    background: #ecfdf5;
    color: #065f46;
}

.otp-error {
    background: #fff5f5;
    color: #7f1d1d;
}

.action-container{
    display: flex;
    justify-content: space-between;
}

.final-step-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.final-step-action{
    display: flex;
    margin-top: 40px;
    justify-content: space-between;
}

.final-step-action .btn-terminer{
    margin-top: 20px;
}

.final-step-action .btn-verifier{
    background-color: #cbcaca;
}

.quiz-form{
    margin-bottom: 40px;
}


.document-wrapper .document-container {
    margin-top: 30px;
}

.document-wrapper .document-header {
    margin-bottom: 10px;
}

.document-wrapper .document-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.document-wrapper .documunet-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.document-wrapper .document-card {
    width: 230px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.document-wrapper .card-titel {
    margin-bottom: 8px;
}

.document-wrapper .label {
    color: #292929;
    font-size: 13px;
    font-weight: 900;
    padding-left: 0;
}

.required{
    color: #cf1f1f;
}

.document-wrapper .formats {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.document-wrapper label.drop {
    display: block;
    border: 1px dashed #cfcfcf;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    min-height: 90px;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.document-wrapper label.drop.dragover {
    border-color: #2a8ae2;
    background: #f0f8ff;
}

.document-wrapper .perview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    margin-bottom: 6px;
}

.document-wrapper .perview img {
    max-width: 100%;
    max-height: 76px;
    display: block;
    border-radius: 4px;
}

.document-wrapper .document-icon {
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.document-wrapper .controls {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 6px;
}

.document-wrapper .controls button {
    padding: 6px 8px;
    border: 0;
    background: #2a8ae2;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.document-wrapper .controls button:last-child {
    background: #d9534f;
}

.document-wrapper .empty-document {
    color: #888;
    text-align: center;
    padding: 14px 6px;
}

.document-wrapper .error {
    color: #c0392b;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

.document-wrapper .marked-for-delete {
    opacity: 0.9;
    box-shadow: inset 0 0 0 2px rgba(208, 2, 27, 0.06);
}

.document-wrapper .marked-for-delete .empty-document {
    color: #b71c1c;
}

.document-wrapper .final-step-action {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.document-wrapper .btn-terminer[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}


.document-card input[type=file]{
    display: none !important;
}

@media (max-width: 420px) {
    .otp-input {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }
}






.qa-summary {
    display: flex;
    gap: 20px;
    align-items: stretch;
    justify-content: space-between;
    max-width: 880px;
    margin: 20px 0;
    flex-wrap: wrap;
    color: #004d40;
}

.qa-card {
    flex: 1 1 280px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 20px;
    display: flex;
    align-items: center;
    min-height: 130px;
}

.qa-countdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.count-label {
    font-size: 13px;
    color: #6d6d6d;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-align: center;
}

.count-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.count-pill {
    background: rgba(141,198,63,0.15);
    color: #004d40;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    min-width: 100px;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.meta-small {
    font-size: 12px;
    color: #808080;
}

.qa-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

#otp-resend:hover{
    color: #004d40 !important;
}

.score-value {
    font-size: 36px;
    font-weight: 800;
    color: #004d40;
    letter-spacing: -1px;
}

.score-bar {
    width: 100%;
    height: 14px;
    background: linear-gradient(90deg, rgba(141,198,63,0.12), rgba(141,198,63,0.06));
    border-radius: 999px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: #8dc63f;
    width: 0%;
    border-radius: 999px;
    transition: width 900ms cubic-bezier(.2,.9,.3,1);
}

@media (max-width: 720px) {
    .qa-summary {
        flex-direction: column;
        gap: 16px;
    }
    .qa-card {
        width: 100%;
    }
}


.qa-summary .qa-card{
    cursor: default;
    pointer-events: none;
}

.btn-main-color:disabled{
    opacity: 0.3;
    pointer-events: none;
}

.btn-main-color.document-btn-delete{
    background-color: #d9534f !important;
    border:1px solid #d9534f !important;

}

.btn-main-color.document-btn-delete:hover{
    background-color: unset !important;
    color: #d9534f !important;
}


.processing-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: Helvetica, Arial, sans-serif;
}

.processing-modal.hidden {
  display: none;
}

.processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.processing-panel {
  background: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: min(95%, 600px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  padding: 18px;
  position: relative;
}

.processing-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.processing-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.processing-summary {
  font-size: 14px;
  color: #333;
  min-height: 18px;
}

.processing-current {
  font-size: 13px;
  color: #555;
  min-height: 18px;
}

.processing-progress {
  height: 10px;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
}

.processing-bar {
  height: 100%;
  width: 0%;
  transition: width 300ms linear;
  background: #4a90e2;
}

.processing-error {
  color: #b00020;
}


/* ----------------- page list ---------------------------------------- */

table.green-table{
    border:unset !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 20px;
}

.green-table thead th{
    border: unset !important;
}

.green-table thead{
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background: #f8faf9;
    border: 1px solid #d5e0dc;
    border-radius: 12px;
    font-size: 18px;
    color: #004d40;
    font-family: var(--thm-font);
}

.green-table thead th{
    padding: 15px !important;
    border-top: 1px solid !important;
    border-bottom: 1px solid !important;
}

.green-table thead th:first-child{
    border-top: 1px solid !important;
    border-bottom: 1px solid !important;
    border-radius: 12px 0px 0 12px;
    border-left: 1px solid !important;
}

.green-table thead th:last-child{
    border-top: 1px solid !important;
    border-bottom: 1px solid !important;
    border-radius: 0px 12px 12px 0px;
    border-right: 1px solid !important;
}

.green-table tbody tr{
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background: #f8faf9;
    border: 1px solid #d5e0dc;
    border-radius: 12px;
    font-size: 14px;
    color: #004d40;
    font-family: var(--thm-font);
}

.green-table tbody tr td{
    box-shadow: unset !important;
    padding: 15px !important;
    border: unset!important;
    border-top: 1px solid !important;
    border-bottom: 1px solid !important;
}

.green-table tbody tr td:first-child{
    border-top: 1px solid !important;
    border-bottom: 1px solid !important;
    border-radius: 12px 0px 0 12px;
    border-left: 1px solid !important;
}

.green-table tbody tr td:last-child{
    border-top: 1px solid !important;
    border-bottom: 1px solid !important;
    border-radius: 0px 12px 12px 0px;
    border-right: 1px solid !important;
}


#questionnaires-table_paginate .paginate_button{
    color: #004d40 !important;
    font-family: var(--thm-font) !important;
    background: #f8faf9 !important;
}

#questionnaires-table_paginate .paginate_button.current{
    border-radius: 12px !important;
    border: 1px solid #004d40 !important;
}

#questionnaires-table_paginate .paginate_button.previous,
#questionnaires-table_paginate .paginate_button.next{
    background: unset !important;
}

#questionnaires-table_info{
    color: #004d40 !important;
    font-family: var(--thm-font) !important;
}

/* ----------------------- custom form ---------------------- */

.custom-from {
    width: 600px;
    max-width: 90%;
    margin: auto;
}

.login-header{
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
    color: #004d40 !important;
    font-family: var(--thm-font) !important;
}

/* Progress bar Questionnaire */
.qa-progress {
  position: sticky; top: 0; z-index: 50;
  background: #fff; padding: 12px 16px; border-bottom: 1px solid #eee;
  margin-bottom: 16px; border-radius: 0;
}
.qa-progress__header {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; margin-bottom: 8px;
}
.qa-progress__label { font-weight: 600; color: #2b2b2b; }
.qa-progress__text { color: #606770; }
.qa-progress__track {
  height: 10px; border-radius: 999px; background: #f1f3f5; overflow: hidden;
}
.qa-progress__bar {
  height: 100%; width: 0%;
  background: #27ae60; /* adapte à ta charte si besoin */
  transition: width 220ms ease-in-out;
}

/* Question Navigator */
/* Bloc de navigation */
.qa-nav {
  display: flex;
  align-items: center;
  gap: 10px;               /* espace entre label et select */
  flex-wrap: wrap;         /* permet le retour à la ligne si besoin */
  margin: 10px 0 25px;     /* espace avant/après */
}

/* Label */
.qa-nav__label {
  font-weight: 500;
  color: #222;
  margin-right: 6px;
}

/* Selecteur */
.qa-nav__select {
  flex: 0 1 auto;
  width: auto;             /* évite le full-width */
  max-width: 500px;        /* limite la largeur */
  min-width: 260px;        /* un minimum pour la lisibilité */
  height: 38px;            /* fixe la hauteur normale */
  line-height: 1.3;
  padding: 6px 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.qa-nav__select:focus {
  border-color: #1a7d55;   /* couleur de ton vert Trash Score */
  outline: none;
}

/* Responsive */
@media (max-width: 640px) {
  .qa-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .qa-nav__select {
    width: 100%;
    max-width: 100%;
  }
}

