* {
    box-sizing: border-box;
}

.footerhrart {
    color: #ff0000;
    /* display: none; */
}

.svgAudio {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0;
    margin: 0;
}

path {
    stroke-linecap: square;
    stroke: white;
    stroke-width: 0.5px;
}


/* body {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-family: 'Lato', sans-serif;

} */


/* @font-face {
    font-family: 'Lato';
    src: url('./font/Lato-Regular.ttf');
    font-weight: normal;
    font-style: normal;
} */
label {
    display: block;
    font-weight: 500;
    text-align: center;
    font-size: 13px;
}


body {
    height: auto;
    widows: 100vh;
    overflow: scroll;
    font-family: 'Noto Kufi Arabic', sans-serif;
    display: flex;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    color: #555;
    background-color: #ecf0f3;
}

.container-login {
    margin-top: 30px;
    margin-bottom: 20px;
    width: 350px;
    padding: 40px 35px 35px 35px;
    border-radius: 40px;
    background: #ecf0f3;
    overflow: hidden;
    box-shadow: 13px 13px 20px #c0ced1,
        -13px -13px 20px #ffffff;
}

.logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    display: flex;
    box-shadow: 0px 0px 2px #00DD80, 0px 0px 0px 5px #ecf0f3, 8px 8px 15px #a7aaaf, -8px -8px 15px #ffffff;
}

.logo img {
    width: 175px;
    height: 175px;

}

.title {
    text-align: center;
    font-size: 17px;
    padding-top: 24px;
    letter-spacing: 0.5px;
}

.sub-title {
    text-align: center;
    font-size: 17px;
    padding-top: 5px;
    letter-spacing: 0.5px;
}

.custom-fields {
    width: 100%;
    padding: 5px 5px 5px 5px;
}

.custom-fields input {
    outline: none;
    border: none;
    background: none;
    font-size: 15px;
    color: #555;
    padding: 15px 6px 15px 2px;
    text-align: center;
    width: 100%;
}

.username-field,
.password-field {
    margin-bottom: 20px;
    border-radius: 20px;
    padding: 0px 0px 0px 7px;
    box-shadow: inset 5px 5px 5px #cbccd1, inset -5px -5px 5px #ffffff;
}

.btn-submit {
    outline: none;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 40px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: #fff;
    text-align: center;
    background-color: #24cfaa;
    box-shadow: 3px 3px 8px #b1b1b1, -6px -6px 8px #ffffff;
}

.btn-submit:hover {
    background-color: #2fdbb6;
}

.btn-submit:active {
    background-color: #1da88a;
}

.btn-logout {
    outline: none;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 40px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: #fff;
    text-align: center;
    background-color: #f55252;
    margin-top: 10px;
    box-shadow: 3px 3px 8px #b1b1b1, -6px -6px 8px #ffffff;
}

.btn-logout:hover {
    background-color: #ff4848;
}

.btn-logout:active {
    background-color: #eb5c5c;
}

.link {
    font-family: 'Lato', sans-serif;
    text-align: center;
    margin-top: 10px;
}

.link a {
    color: #aaa;
    text-decoration: none;
    font-size: 15px;
}

.btn-container {
    width: 100%;
    /* padding: 30px 5px 5px 5px; */
    display: flexbox;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.btn-container .btn-option {
    /* display: inline-grid;
    padding: 10px 20px; */
    outline: none;
    border: none;
    cursor: pointer;
    width: 43%;
    height: 40px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: #fff;
    text-align: center;
    background-color: #24cfaa;
    box-shadow: 3px 3px 8px #b1b1b1, -6px -6px 8px #ffffff;
    margin: 5px;

}

.btn-green {
    outline: none;
    border: none;
    cursor: pointer;
    width: 43%;
    height: 40px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: #fff;
    text-align: center;
    background-color: #24cfaa;
    box-shadow: 3px 3px 8px #b1b1b1, -6px -6px 8px #ffffff;
    margin: 5px;

}

.btn-green:hover {
    background-color: #2fdbb6;
}

.btn-green:active {
    background-color: #1da88a;
}

.btn-red {
    outline: none;
    border: none;
    cursor: pointer;
    width: 43%;
    height: 40px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: #fff;
    text-align: center;
    background-color: #f55252;
    /* margin-top: 10px; */
    box-shadow: 3px 3px 8px #b1b1b1, -6px -6px 8px #ffffff;
    margin: 5px;

}

.btn-red:hover {
    background-color: #ff4848;
}

.btn-red:active {
    background-color: #eb5c5c;
}


.btn-optionA {
    display: inline-grid;
    padding: 4px 20px;
    outline: none;
    border: none;
    cursor: pointer;
    width: 95%;
    height: 40px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: #fff;
    text-align: center;
    background-color: #24cfaa;
    box-shadow: 3px 3px 8px #b1b1b1, -6px -6px 8px #ffffff;
    margin: 5px;

}

.btn-optionA:hover {
    background-color: #086fdd;
    /* Darker blue background color on hover */
    /* Add any other styles you want for the button on hover */
}

.btn-optionA {
    text-decoration: none;
}

.btn-optionA:active {
    background-color: #003c80;
    /* Even darker blue background color when clicked */
    /* Add any other styles you want for the button when it's clicked */
}

/* .horizontal-scroll-wrapper {
    width: 100px;
    height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    transform:rotate(-90deg) translateY(-100px);
    transform-origin: right top;
  }

  .horizontal-scroll-wrapper > div {
    width: 100px;
    height: 100px;
    transform: rotate(90deg);
    transform-origin: right top;
  } */

.menu-items {
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
    padding: 0px 10px;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 3px 3px 8px #b1b1b1, -6px -6px 8px #ffffff;
    text-align: center;
}

.row-items {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

.row-items .title,
.row-items .price {
    font-size: 12px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    opacity: 0.85;
}

.row-items .title-exp {
    font-size: 12px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    opacity: 0.85;
    padding-top: 5px;
}

.box {
    padding-top: 10px;
    /* padding-bottom: 15px; */
    /* opacity: 0.6; */
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.attendanceStatusBox {
    /* padding-top: 10px; */
    /* padding-bottom: 15px; */
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.welcome-card {
    margin: 6px auto 18px;
    padding: 16px 18px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    background: linear-gradient(145deg, #ffffff, #edf4fa);
    box-shadow: 8px 8px 18px #d3dce4, -8px -8px 18px #ffffff;
    text-align: right;
}

.welcome-avatar-frame {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #24cfaa, #52a7f8);
    box-shadow: 6px 6px 12px #c0ced1, -6px -6px 12px #ffffff;
}

.welcome-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-avatar-fallback {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.welcome-copy {
    min-width: 0;
}

.welcome-label {
    color: #6d8193;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.welcome-name {
    color: #31485c;
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
}

.profile-avatar-card {
    padding: 18px 14px;
    margin-bottom: 20px;
    border-radius: 24px;
    box-shadow: inset 5px 5px 10px #d5dbe0, inset -5px -5px 10px #ffffff;
    text-align: center;
}

.profile-avatar-frame {
    width: 124px;
    height: 124px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #24cfaa, #52a7f8);
    box-shadow: 8px 8px 16px #c0ced1, -8px -8px 16px #ffffff;
}

.profile-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-fallback {
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
}

.profile-avatar-actions input[type="file"] {
    width: 100%;
    margin-bottom: 12px;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.profile-password-toggle {
    margin-bottom: 16px;
}

.documents-page-intro {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #eef5fb);
    border: 1px solid #d8e3ee;
    color: #426076;
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
}

.documents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.document-card {
    padding: 16px 14px;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #edf4fa);
    box-shadow: inset 4px 4px 10px #dce4eb, inset -4px -4px 10px #ffffff;
    text-align: right;
}

.certificates-card {
    margin-bottom: 18px;
}

.document-card-title {
    color: #1f3b53;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.document-card-note {
    color: #678096;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.document-preview {
    min-height: 70px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #f7fafc;
    border: 1px dashed #ced9e3;
    color: #60778b;
    font-size: 12px;
    line-height: 1.8;
}

.document-link {
    color: #0f6ab8;
    font-weight: 700;
    text-decoration: none;
}

.document-meta {
    margin-top: 6px;
    color: #7a8f9f;
    font-size: 11px;
}

.document-list-item+.document-list-item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e3ebf3;
}

.document-card input[type="file"] {
    width: 100%;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.archive-page-body {
    align-items: flex-start;
    padding: 18px 0 30px;
}

.archive-page-shell {
    width: min(1180px, calc(100vw - 48px));
    max-width: 1180px;
    padding: 34px 30px 28px;
    border-radius: 42px;
}

.archive-page-logo {
    width: 132px;
    height: 132px;
}

.archive-page-logo img {
    width: 126px;
    height: 126px;
}

.archive-page-title {
    font-size: 24px;
    line-height: 1.8;
}

.archive-page-subtitle {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    color: #6e8093;
    font-weight: 600;
}

.archive-workspace {
    margin-top: 20px;
}

.archive-hero {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 18px;
    margin-bottom: 22px;
}

.archive-welcome-card {
    margin: 0 0 18px;
}

.archive-hero-copy,
.archive-path-card,
.archive-panel {
    padding: 22px 22px 20px;
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff, #edf4fa);
    box-shadow: 8px 8px 18px #d3dce4, -8px -8px 18px #ffffff;
}

.archive-hero-label,
.archive-card-label {
    color: #72869a;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.archive-hero-title {
    margin: 0 0 10px;
    color: #1d344a;
    font-size: 24px;
    line-height: 1.7;
}

.archive-hero-text,
.archive-card-note,
.archive-panel-head p,
.archive-upload-note {
    margin: 0;
    color: #60778c;
    font-size: 13px;
    line-height: 2;
}

.archive-path-preview {
    min-height: 88px;
    margin-bottom: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f6fafc;
    border: 1px dashed #c9d7e4;
    color: #2f506a;
    font-size: 14px;
    line-height: 2;
    word-break: break-word;
}

.archive-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 18px;
    align-items: start;
}

.archive-panel-head {
    margin-bottom: 18px;
}

.archive-panel-head h2 {
    margin: 0 0 6px;
    color: #1d344a;
    font-size: 19px;
}

.archive-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.archive-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 8px;
    border-radius: 22px;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.archive-field[hidden] {
    display: none !important;
}

.archive-field-wide {
    grid-column: 1 / -1;
}

.archive-field label {
    color: #425f76;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    transition: color 0.18s ease;
}

.archive-field-hint {
    color: #74899c;
    font-size: 11px;
    line-height: 1.8;
    margin-top: 2px;
}

.archive-field select,
.archive-field input,
.archive-field textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: vertical;
    border-radius: 18px;
    padding: 13px 14px;
    background: #f3f7fb;
    color: #30485f;
    font-size: 13px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    box-shadow: inset 4px 4px 8px #d6dee5, inset -4px -4px 8px #ffffff;
    transition: box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.archive-month-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: #f3f7fb;
    box-shadow: inset 4px 4px 8px #d6dee5, inset -4px -4px 8px #ffffff;
}

.archive-month-checklist[hidden] {
    display: none !important;
}

.archive-month-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    color: #30485f;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.archive-month-check-item:hover {
    background: #ffffff;
}

.archive-month-check-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #1db5c8;
    cursor: pointer;
}

.archive-month-check-item.is-selected {
    background: #dff7f5;
    color: #16656d;
    box-shadow: inset 0 0 0 1px rgba(29, 181, 200, 0.2);
}


.archive-filter-empty {
    background: #f8fafc;
    color: #7b90a1;
}

.archive-field:focus-within {
    background: rgba(52, 172, 224, 0.08);
    box-shadow: 0 0 0 1px rgba(52, 172, 224, 0.14);
}

.archive-field:focus-within label {
    color: #176c99;
}

.archive-field select:focus,
.archive-field input:focus,
.archive-field textarea:focus,
.archive-field select:focus-visible,
.archive-field input:focus-visible,
.archive-field textarea:focus-visible {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(60, 180, 227, 0.22), inset 0 0 0 1px rgba(49, 139, 189, 0.34);
    transform: translateY(-1px);
}


.archive-submit-button:focus,
.archive-submit-button:focus-visible,
.archive-drive-link:focus,
.archive-drive-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(54, 182, 210, 0.22);
}

.archive-upload-dropzone {
    padding: 20px 18px;
    border-radius: 22px;
    border: 1px dashed #bfd0de;
    background: #f7fbfd;
    text-align: center;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.archive-upload-dropzone.is-dragover {
    border-color: #24cfaa;
    background: #eefbf7;
    box-shadow: 0 0 0 4px rgba(36, 207, 170, 0.12);
}

.archive-upload-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.archive-upload-title {
    color: #23425a;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.archive-upload-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.archive-add-files-button {
    margin-top: 12px;
    padding: 10px 18px;
    border: none;
    border-radius: 16px;
    background: #e9f5fb;
    color: #1f6286;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.archive-add-files-button:hover {
    background: #dceef8;
}

.archive-file-list-wrap,
.archive-side-summary {
    padding: 16px;
    border-radius: 22px;
    background: #f7fbfd;
    border: 1px solid #dbe6ef;
}

.archive-file-list-wrap {
    margin-bottom: 14px;
}

.archive-drive-file-note {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f4f9fd;
    border: 1px solid #dbe6ef;
    color: #49667d;
    font-size: 12px;
    line-height: 1.9;
}

.archive-file-list-empty {
    color: #698095;
    font-size: 12px;
    line-height: 1.8;
}

.archive-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e3ecf3;
}

.archive-file-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.archive-file-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
}

.archive-file-top-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.archive-file-order {
    color: #2b5d7b;
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
}

.archive-file-name {
    color: #23425a;
    font-size: 13px;
    font-weight: 700;
    word-break: break-word;
    flex: 1;
}

.archive-file-meta {
    color: #7b90a1;
    font-size: 11px;
    white-space: nowrap;
}

.archive-file-remove {
    border: none;
    border-radius: 14px;
    background: #ffe9eb;
    color: #c24757;
    padding: 8px 12px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.archive-file-remove:hover {
    background: #ffd9de;
}

.archive-file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.archive-file-access-toggle {
    border: none;
    border-radius: 14px;
    background: #edf3fb;
    color: #25528b;
    padding: 8px 12px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.archive-file-access-toggle[data-mode="viewer"] {
    background: #dff6ef;
    color: #13856f;
}

.archive-file-access-toggle:hover {
    transform: translateY(-1px);
}

.archive-summary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #24cfaa, #47a7ef);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.archive-summary-pill[data-flow="kafalat"] {
    background: linear-gradient(135deg, #ef8f3f, #f25c5c);
}

.archive-submit-button {
    width: 100%;
    margin-top: 14px;
}

.archive-progress-card {
    margin-top: 14px;
}

.archive-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.archive-progress-title {
    color: #23425a;
    font-size: 13px;
    font-weight: 700;
}

.archive-progress-percent {
    color: #0c6cc2;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.archive-progress-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #e2ebf3;
    box-shadow: inset 2px 2px 4px #cfdae5, inset -2px -2px 4px #f9fcff;
    overflow: hidden;
}

.archive-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #24cfaa, #2f80ed);
    transition: width 0.25s ease;
}

.archive-progress-detail,
.archive-progress-meta {
    margin-top: 10px;
    color: #60778c;
    font-size: 12px;
    line-height: 1.9;
}

.archive-progress-meta {
    color: #7b90a1;
}

.archive-side-summary-records {
    margin-top: 14px;
}

.archive-records-empty {
    color: #698095;
    font-size: 12px;
    line-height: 1.8;
}

.archive-records-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 320px;
    overflow-y: auto;
    padding-left: 4px;
}

.archive-record-item {
    padding: 12px 0;
    border-bottom: 1px solid #e3ecf3;
}

.archive-record-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.archive-record-title {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    width: 100%;
    text-align: right;
    cursor: pointer;
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: #23425a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.9;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.archive-record-title:hover,
.archive-record-title:focus-visible {
    color: #1a73e8;
    text-decoration: underline;
    outline: none;
}

.archive-record-meta {
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: #7b90a1;
    font-size: 11px;
    margin-top: 4px;
}

.archive-links-dialog {
    display: grid;
    gap: 14px;
    text-align: right;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.archive-links-section-title {
    color: #23425a;
    font-size: 14px;
    font-weight: 800;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.archive-links-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #dde8f4;
    border-radius: 14px;
    background: #f8fbff;
}

.archive-links-copy {
    display: flex;
    align-items: center;
    min-width: 0;
    color: #24426c;
    font-weight: 700;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.archive-links-name {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 2;
}

.archive-links-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    flex-shrink: 0;
}

.archive-link-action {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.archive-link-open {
    background: linear-gradient(135deg, #1cc8b0, #2eb4de);
    color: #fff;
}

.archive-link-copy {
    background: #edf3fb;
    color: #25528b;
}

.archive-link-replace {
    background: #fff2df;
    color: #b26a12;
}

.archive-link-replace[data-state="uploading"],
.archive-link-replace[data-state="finalizing"] {
    background: #e8f2ff;
    color: #1f63b8;
}

.archive-link-replace[data-state="success"] {
    background: #dff6ef;
    color: #13856f;
}

.archive-link-replace[data-state="error"] {
    background: #f6e8ea;
    color: #b54c5b;
}

.archive-link-access {
    background: #eef2f7;
    color: #50637f;
}

.archive-link-access[data-mode="viewer"] {
    background: #dff6ef;
    color: #13856f;
}

.archive-link-access[data-mode="none"] {
    background: #f6e8ea;
    color: #b54c5b;
}

@media (max-width: 720px) {
    .archive-links-row {
        grid-template-columns: 1fr;
    }

    .archive-links-actions {
        width: 100%;
    }
}

.archive-drive-status-card {
    border: 1px solid #d8e4ef;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-top: 14px;
}

.archive-drive-status-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.archive-drive-status-icon {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #9fb2c3;
    box-shadow: 0 0 0 5px rgba(159, 178, 195, 0.18);
    flex: 0 0 auto;
}

.archive-drive-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eef4f9;
    color: #466178;
    font-size: 12px;
    font-weight: 800;
}

.archive-drive-status-text {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.8;
}

.archive-drive-status-card.is-connected {
    background: linear-gradient(180deg, #f1fff8 0%, #ebfff5 100%);
    border-color: #85d8b2;
    box-shadow: inset 0 0 0 1px rgba(133, 216, 178, 0.16);
}

.archive-drive-status-card.is-connected .archive-drive-status-icon {
    background: #18a765;
    box-shadow: 0 0 0 5px rgba(24, 167, 101, 0.18);
}

.archive-drive-status-card.is-connected .archive-drive-status-badge {
    background: #ddf8ea;
    color: #12744a;
}

.archive-drive-status-card.is-connected .archive-drive-status-text {
    color: #236647;
}

.archive-drive-status-card.is-disconnected,
.archive-drive-status-card.is-unconfigured {
    background: linear-gradient(180deg, #fff4f4 0%, #fff0f0 100%);
    border-color: #efaaaa;
    box-shadow: inset 0 0 0 1px rgba(239, 170, 170, 0.12);
}

.archive-drive-status-card.is-disconnected .archive-drive-status-icon,
.archive-drive-status-card.is-unconfigured .archive-drive-status-icon {
    background: #d94b4b;
    box-shadow: 0 0 0 5px rgba(217, 75, 75, 0.18);
}

.archive-drive-status-card.is-disconnected .archive-drive-status-badge,
.archive-drive-status-card.is-unconfigured .archive-drive-status-badge {
    background: #ffe3e3;
    color: #a12c2c;
}

.archive-drive-status-card.is-disconnected .archive-drive-status-text,
.archive-drive-status-card.is-unconfigured .archive-drive-status-text {
    color: #8e3a3a;
}

.archive-drive-link {
    display: inline-flex;
    margin-top: 12px;
    color: #1b77d2;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(27, 119, 210, 0.1);
}

.archive-drive-link:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .archive-page-shell {
        width: calc(100vw - 28px);
        padding: 28px 20px 24px;
    }

    .archive-hero,
    .archive-layout {
        grid-template-columns: 1fr;
    }

    .archive-form-grid {
        grid-template-columns: 1fr;
    }
}

.notice {
    padding-top: 15px;
    opacity: 0.6;
    font-size: 12px;
    text-align: center;
    color: coral;
}

/* جديد */

.sub-sub-title {
    font-size: 18px;
    text-align: center;
    padding-top: 15px;
}

.label {
    margin: 20px;
    font-size: 12px;
}

.xcfooter {
    margin-top: 20px;
    margin-bottom: -25px;
    font-size: 10px;
    text-align: center;
    line-height: 1;
}


.btn-option:hover {
    background-color: #2fdbb6;
}

.btn-option:active {
    background-color: #1da88a;
}

.btn-option:disabled {
    background-color: #a9b1af;
}


.btn-container-open {
    width: 100%;
    /* padding: 30px 5px 5px 5px; */
    display: flexbox;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.btn-container-open .btn-option-open {
    outline: none;
    border: none;
    cursor: pointer;
    width: 80%;
    height: 40px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: #fff;
    text-align: center;
    background-color: #24cfaa;
    box-shadow: 3px 3px 8px #b1b1b1, -6px -6px 8px #ffffff;
    margin: 5px;

}

.menu-itemsqr {
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
    padding: 0px 10px;
    padding-bottom: 15px;
    display: flexbox;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 3px 3px 8px #b1b1b1, -6px -6px 8px #ffffff;
    text-align: center;
    /* background-color: #ffffff; */
}

.menu-btnopen {
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
    padding: 0px 10px;
    padding-bottom: 15px;
    display: flexbox;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 3px 3px 8px #b1b1b1, -6px -6px 8px #ffffff;
    text-align: center;
    /* background-color: #ffffff; */
}


.image {
    border: 1px solid #dcdfe1;
    border-radius: 20px;
    padding: 5px;
    background-color: white;
    box-shadow: 3px 3px 8px #b1b1b1, -6px -6px 8px #ffffff;
    opacity: 0.7;
    width: 165px;
    height: 165px;
    margin: auto;
}


.qr {
    /* display: inline-block; */
    font-family: Arial, sans-serif;
    font-weight: 300;
    line-height: 2;
    text-align: center;

    /* min-width: 300px; */
    min-height: 90%;
    position: relative;
    /* top: 5px; */
}

.qr::before {
    content: '';
    /* width: 100%; */
    width: 165px;
    height: 165px;

    /* height: calc(100% + 10px); */
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    position: absolute;
    top: 55%;
    left: -6px;
    transform: translateY(-50%);
}

.qr::after {
    content: "\2639" " " attr(alt);

    font-size: 18px;
    color: rgb(100, 100, 100);

    display: block;
    position: absolute;
    z-index: 2;
    top: 30%;
    left: 0;
    width: 100%;
    /* height: 100%; */
}


.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #7ac142;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards
}

.checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 30% auto;
    box-shadow: inset 0px 0px 0px #7ac142;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    /* position: absolute; */
    /* left: 47.5%; */
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none
    }

    50% {
        transform: scale3d(1.1, 1.1, 1)
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #7ac142
    }
}

.select-input {
    outline: none;
    border: none;
    background: none;
    font-size: 15px;
    color: #555;
    padding: 15px 6px 15px 2px;
    text-align: center;
    width: 100%;

}

.txta {

    outline: none;
    border: none;
    background: none;
    font-size: 15px;
    color: #555;
    padding: 15px 6px 15px 2px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    min-height: 100px;
    overflow: hidden;
    line-height: 1.5;
}


.iframeHolder {
    opacity: 0%;
    position: absolute;
}


svg {
    width: 180px;
    height: 120px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

svg #plug,
svg #socket {
    fill: #a2cd3c;
}

svg #loop-normal {
    fill: none;
    stroke: #ee4645;
    stroke-width: 12;
}

svg #loop-offset {
    display: none;
}



.wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #fff;
    display: grid;
    place-items: center;
    transition: opacity 0.25s, visibilty 1s;

}

.fada {
    opacity: 0;
    visibility: hidden;
}


/* loader */

.loader {
    font-size: 10px;
    margin: 50px auto;
    text-indent: -9999em;
    width: 11em;
    height: 11em;
    border-radius: 50%;
    background: #db2424;
    background: -moz-linear-gradient(left, #db2424 10%, rgba(219, 36, 36, 0) 42%);
    background: -webkit-linear-gradient(left, #db2424 10%, rgba(219, 36, 36, 0) 42%);
    background: -o-linear-gradient(left, #db2424 10%, rgba(219, 36, 36, 0) 42%);
    background: -ms-linear-gradient(left, #db2424 10%, rgba(219, 36, 36, 0) 42%);
    background: linear-gradient(to right, #db2424 10%, rgba(219, 36, 36, 0) 42%);
    position: relative;
    -webkit-animation: load3 1.4s infinite linear;
    animation: load3 1.4s infinite linear;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

.loader:before {
    width: 50%;
    height: 50%;
    background: #db2424;
    border-radius: 100% 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
}

.loader:after {
    background: #ecf0f3;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    content: '';
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@-webkit-keyframes load3 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load3 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}







/* ============== */

.lds-ellipsis-box {
    text-align: center;
    margin-top: 10px;
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #db2424;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}



/* Reset default list styles */
#playlist {
    list-style: none;
    padding: 0;
}

/* Style each playlist item */
#playlist li {
    margin-bottom: 35px;
}

/* Style audio controls */
audio {
    width: 100%;
    height: 65px;
    background-color: #f2f2f2;
    /* لون الخلفية الذي ترغب في استخدامه */

    padding: 5px;
    border-radius: 30px;

    box-shadow: 13px 13px 20px #c0ced1, -13px -13px 20px #ffffff;
}

/* Style audio controls when they're actively being interacted with */
audio:focus {
    outline: none;
    border: 2px solid #007bff;
}

.timer {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
}

#linkdrive {
    text-align: center;
    padding-bottom: 30px;
}

.name-audio-player {
    text-align: center;
    margin: 5px;

}


.aTagErr {
    color: #ff0000;
}


/* Style the container div */
.div-upload-download {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    justify-content: center;

}

/* Style the Download button */
.download-button,
.upload-button {
    text-decoration: none;
    padding: 5px 10px;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.download-button {
    background-color: #007bff;
    /* Change this to your desired background color */
    color: #fff;
    /* Change this to your desired text color */
}

.upload-button {
    background-color: #28a745;
    /* Change this to your desired background color for Upload */
    color: #fff;
    /* Change this to your desired text color for Upload */
}

/* Hover effect */
.download-button:hover,
.upload-button:hover {
    background-color: #0056b3;
    /* Change this to the hover background color */
}

/* Center the text vertically */
.div-upload-download a {
    display: flex;
    align-items: center;
}

/* Add spacing between the text and buttons */
.div-upload-download a:not(:last-child) {
    margin-right: 10px;
}

.document-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.document-delete-button {
    border: none;
    border-radius: 999px;
    background: #ffe6e6;
    color: #c0392b;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
}

.document-delete-button:hover {
    background: #ffd3d3;
}

.achievement-reports-shell {
    width: min(720px, calc(100vw - 28px));
}

.achievement-intro {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #eef6fb);
    box-shadow: inset 2px 2px 4px #d8e0e7, inset -2px -2px 4px #ffffff;
    color: #5a7084;
    font-size: 13px;
    line-height: 2;
    text-align: right;
}

.achievement-card {
    margin-bottom: 18px;
    padding: 18px 16px;
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff, #edf4fa);
    box-shadow: 10px 10px 18px #d3dce4, -10px -10px 18px #ffffff;
}

.achievement-composer-card {
    background: linear-gradient(145deg, #fdfefe, #edf6fb);
    border: 1px solid #ddeaf4;
}

.achievement-date-card {
    background: linear-gradient(145deg, #ffffff, #f2f8fc);
}

.achievement-date-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.achievement-date-input-shell {
    flex: 1;
    margin-bottom: 0;
}

.achievement-date-field-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #eef4fa);
    box-shadow: inset 4px 4px 8px #d7dfe7, inset -4px -4px 8px #ffffff;
    gap: 10px;
}

.achievement-date-native-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: #24435b;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    direction: ltr;
    cursor: pointer;
}

.achievement-date-native-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
}

.achievement-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.achievement-composer-panel {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #dde8f2;
}

.achievement-toggle-button,
.achievement-secondary-button,
.achievement-remove-button,
.achievement-ghost-button {
    border: none;
    cursor: pointer;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-weight: 700;
}

.achievement-toggle-button {
    min-width: 150px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #1f8fdd;
    color: #fff;
    box-shadow: 4px 4px 10px #d0dae2, -4px -4px 10px #ffffff;
    white-space: nowrap;
}

.achievement-toggle-button:hover {
    background: #177dcb;
}

.achievement-new-entries-list {
    display: grid;
    gap: 14px;
}

.achievement-draft-card {
    padding: 14px;
    border-radius: 22px;
    background: #f8fbfe;
    border: 1px solid #dce8f2;
    box-shadow: inset 2px 2px 4px #e0e8ef, inset -2px -2px 4px #ffffff;
}

.achievement-draft-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.achievement-remove-button {
    padding: 7px 14px;
    border-radius: 999px;
    background: #ffe8e8;
    color: #bf3535;
}

.achievement-remove-button:hover {
    background: #ffdcdc;
}

.achievement-draft-answer-shell {
    margin-top: 4px;
}

.achievement-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.achievement-secondary-button {
    min-width: 180px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #eef5fb;
    color: #1f5f8e;
    box-shadow: 4px 4px 10px #d5dde4, -4px -4px 10px #ffffff;
}

.achievement-secondary-button:hover {
    background: #e4eff9;
}

.achievement-ghost-button {
    min-width: 150px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #fff7ec;
    color: #9b651f;
    box-shadow: 4px 4px 10px #e0ddd4, -4px -4px 10px #ffffff;
}

.achievement-ghost-button:hover {
    background: #fff0db;
}

.achievement-primary-inline {
    width: auto;
    min-width: 220px;
    padding-right: 22px;
    padding-left: 22px;
}

.achievement-card-title {
    color: #1f3b53;
    font-size: 17px;
    font-weight: 700;
}

.achievement-card-note {
    color: #698196;
    font-size: 12px;
    line-height: 1.8;
    margin-top: 4px;
}

.achievement-summary-chip {
    min-width: 88px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #24cfaa, #52a7f8);
    color: #fff;
    font-size: 12px;
    text-align: center;
    box-shadow: 4px 4px 10px #d0dae2, -4px -4px 10px #ffffff;
}

.achievement-fields {
    padding: 0;
}

.achievement-card,
.achievement-card *,
.achievement-card input,
.achievement-card select,
.achievement-card textarea,
.achievement-card button,
.achievement-card option {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.achievement-card,
.achievement-card-title,
.achievement-card-note,
.achievement-question-card,
.achievement-question-index,
.achievement-question-text,
.achievement-meta,
.achievement-today-badge,
.achievement-empty-state,
.achievement-draft-card,
.achievement-draft-answer-shell,
.achievement-answers-form,
.achievement-fields,
.achievement-date-input-shell,
.achievement-intro {
    text-align: right;
    direction: rtl;
}

.achievement-fields input:not([type="checkbox"]):not([type="radio"]),
.achievement-fields textarea,
.achievement-fields select,
.achievement-input,
.achievement-textarea,
.achievement-date-native-input {
    text-align: right !important;
    direction: rtl;
}

.achievement-fields input:not([type="checkbox"]):not([type="radio"])::placeholder,
.achievement-fields textarea::placeholder,
.achievement-input::placeholder,
.achievement-textarea::placeholder {
    text-align: right;
}

.achievement-draft-head,
.achievement-card-head,
.achievement-composer-actions,
.achievement-date-toolbar {
    direction: rtl;
}

.achievement-select-shell {
    padding-right: 14px;
    padding-left: 14px;
}

.achievement-select {
    width: 100%;
    border: none;
    background: none;
    outline: none;
    color: #555;
    font-size: 14px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    padding: 14px 4px;
    text-align: right;
    direction: rtl;
}

.achievement-answers-form {
    margin: 0;
}

.achievement-questions-list {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.achievement-review-box {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(145deg, #f9fcff, #eef5fb);
    border: 1px solid #d9e7f2;
    box-shadow: inset 2px 2px 4px #e0e8ef, inset -2px -2px 4px #ffffff;
}

.achievement-review-title {
    color: #1f3b53;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.achievement-review-note {
    color: #6f8598;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.achievement-review-list {
    display: grid;
    gap: 10px;
}

.achievement-review-item {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #dde9f3;
}

.achievement-review-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.achievement-review-badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.achievement-review-badge-success {
    background: #e8f8ef;
    color: #1f7a49;
}

.achievement-review-badge-warning {
    background: #fff4dc;
    color: #9b651f;
}

.achievement-review-badge-info {
    background: #eaf3ff;
    color: #1f5f8e;
}

.achievement-review-index {
    color: #7b90a1;
    font-size: 11px;
    font-weight: 700;
}

.achievement-review-question {
    color: #23425a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.9;
    margin-bottom: 6px;
}

.achievement-review-summary {
    color: #5d7488;
    font-size: 12px;
    line-height: 1.9;
}

.achievement-category-group {
    padding: 14px;
    border-radius: 24px;
    background: linear-gradient(145deg, #fafdff, #edf5fb);
    border: 1px solid #d8e6f1;
}

.achievement-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
    padding-bottom: 10px;
    padding-right: 0;
    padding-left: 0;
    border-bottom: 1px solid #dce8f2;
    border-top: none;
    border-right: none;
    border-left: none;
    background: transparent;
    cursor: pointer;
}

.achievement-category-title {
    color: #1e4d73;
    font-size: 15px;
    font-weight: 700;
}

.achievement-category-count {
    padding: 6px 12px;
    border-radius: 999px;
    background: #e7f2fb;
    color: #2d648e;
    font-size: 11px;
    font-weight: 700;
}

.achievement-category-head-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
}

.achievement-category-head-main {
    display: grid;
    gap: 8px;
    flex: 1;
}

.achievement-category-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid #2d648e;
    border-bottom: 2px solid #2d648e;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
    margin-left: 6px;
}

.achievement-category-head.is-open .achievement-category-arrow {
    transform: rotate(-135deg);
}

.achievement-category-list {
    display: grid;
    gap: 12px;
}

.achievement-category-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.achievement-category-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.achievement-category-pill-success {
    background: #e8f8ef;
    color: #1f7a49;
}

.achievement-category-pill-muted {
    background: #eef4fa;
    color: #648099;
}

.achievement-category-pill-warning {
    background: #fff4dc;
    color: #9b651f;
}

.achievement-category-pill-info {
    background: #eaf3ff;
    color: #1f5f8e;
}

.achievement-category-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievement-category-progress-track {
    position: relative;
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: #e6eef6;
    overflow: hidden;
}

.achievement-category-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #24cfaa, #52a7f8);
}

.achievement-category-progress-text {
    min-width: 42px;
    color: #50708a;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.achievement-category-list[hidden] {
    display: none;
}

.achievement-question-card {
    padding: 15px 14px;
    border-radius: 22px;
    background: #f7fbff;
    border: 1px solid #d9e8f5;
}

.achievement-question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.achievement-question-index {
    color: #0f6ab8;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 0;
}

.achievement-visibility-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef6fd;
    border: 1px solid #d4e6f4;
    color: #28597f;
    font-size: 15px;
    line-height: 1;
    cursor: help;
}

.achievement-visibility-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    inset: auto auto calc(100% + 10px) 50%;
    transform: translateX(-50%);
    min-width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #1f3b53;
    color: #fff;
    font-size: 11px;
    line-height: 1.7;
    white-space: normal;
    text-align: center;
    box-shadow: 0 12px 24px rgba(20, 38, 56, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 20;
}

.achievement-visibility-badge::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1f3b53 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease;
    z-index: 19;
}

.achievement-visibility-badge:hover::after,
.achievement-visibility-badge:hover::before,
.achievement-visibility-badge:focus::after,
.achievement-visibility-badge:focus::before,
.achievement-visibility-badge:focus-visible::after,
.achievement-visibility-badge:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.achievement-visibility-badge:hover::after,
.achievement-visibility-badge:focus::after,
.achievement-visibility-badge:focus-visible::after {
    transform: translateX(-50%) translateY(-2px);
}

.achievement-tag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff4dc;
    color: #9b651f;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.achievement-question-text {
    color: #23384d;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 8px;
}

.achievement-meta {
    color: #7a8f9f;
    font-size: 11px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.achievement-today-badge {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    background: #e8f8ef;
    color: #1f7a49;
    font-size: 11px;
    line-height: 1.8;
    border: 1px solid #caebd6;
}

.achievement-input,
.achievement-textarea {
    width: 100%;
    border: none;
    outline: none;
    border-radius: 18px;
    background: #ecf3f9;
    box-shadow: inset 3px 3px 6px #d2dbe3, inset -3px -3px 6px #ffffff;
    color: #394d5f;
    font-size: 14px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    padding: 14px 16px;
}

.achievement-textarea {
    resize: vertical;
    min-height: 110px;
}

.achievement-choice-empty {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fbfe;
    border: 1px dashed #d6e4f0;
    color: #6f8598;
    font-size: 12px;
    line-height: 1.8;
}

.achievement-choice-group {
    display: grid;
    gap: 8px;
}

.achievement-choice-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f8fbfe;
    color: #30485f;
    font-size: 13px;
    cursor: pointer;
    text-align: right;
}

.achievement-employee-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 8px 0;
    max-height: calc((48px + 24px) * 5);
    overflow-y: auto;
    padding-left: 6px;
}

.achievement-employee-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid #d8e6f2;
    background: #f8fbfe;
    color: #24425b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.achievement-employee-option span {
    display: block;
    min-width: 0;
    text-align: right;
    line-height: 1.7;
}

.achievement-employee-option:hover {
    border-color: #c4d9ea;
    background: #fbfdff;
}

.achievement-employee-option:focus-within {
    background: rgba(52, 172, 224, 0.08);
    box-shadow: 0 0 0 1px rgba(52, 172, 224, 0.14);
}

.achievement-employee-option:has(input:checked) {
    background: #dff7f5;
    color: #16656d;
    box-shadow: inset 0 0 0 1px rgba(29, 181, 200, 0.2);
}

.achievement-draft-assignee {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 16px;
    height: 16px;
    min-width: 16px;
    max-width: 16px;
    min-height: 16px;
    max-height: 16px;
    padding: 0;
    border: none;
    background: transparent;
    flex: 0 0 16px;
    justify-self: start;
    align-self: center;
    margin: 0;
    accent-color: #24cfaa;
    direction: ltr !important;
}

.achievement-draft-assignee:focus,
.achievement-draft-assignee:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(60, 180, 227, 0.22), inset 0 0 0 1px rgba(49, 139, 189, 0.34);
    border-radius: 6px;
}

.achievement-select-all-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 14px;
    background: #eef6fd;
    color: #28597f;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.achievement-draft-select-all {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #24cfaa;
}

@media (max-width: 640px) {
    .achievement-employee-picker {
        grid-template-columns: 1fr;
        max-height: calc((48px + 24px) * 4);
    }
}

.achievement-choice-option input {
    margin: 0;
    accent-color: #24cfaa;
}

.achievement-empty-state {
    padding: 18px 16px;
    border-radius: 18px;
    background: #f8fbfe;
    color: #667d91;
    line-height: 1.9;
}

.achievement-recent-list {
    display: grid;
    gap: 10px;
}

.achievement-recent-item {
    padding: 14px;
    border-radius: 18px;
    background: #f8fbfe;
    border: 1px solid #e0ebf5;
}

.achievement-recent-question {
    color: #1f3b53;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.achievement-recent-answer {
    color: #51697c;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 6px;
}

@media (max-width: 640px) {
    .achievement-reports-shell {
        width: calc(100vw - 18px);
        padding: 30px 18px 24px 18px;
        border-radius: 30px;
    }

    .achievement-card-head {
        flex-direction: column;
    }

    .achievement-summary-chip {
        min-width: 0;
    }

    .achievement-composer-actions {
        flex-direction: column;
    }

    .achievement-secondary-button,
    .achievement-primary-inline,
    .achievement-toggle-button,
    .achievement-ghost-button {
        width: 100%;
    }

    .achievement-date-toolbar {
        flex-direction: column;
    }

    .achievement-date-input-shell,
    .achievement-secondary-button,
    .achievement-ghost-button {
        width: 100%;
    }
}

.avatar-cropper-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 18px;
}

.avatar-cropper-modal[hidden] {
    display: none !important;
}

.avatar-cropper-dialog {
    width: min(100%, 420px);
    background: #f7fafc;
    border-radius: 26px;
    padding: 18px 16px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
    text-align: right;
}

.avatar-cropper-title {
    color: #1f3b53;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.avatar-cropper-note {
    color: #678096;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.avatar-cropper-viewport {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 14px;
    border-radius: 24px;
    overflow: hidden;
    background: #dfe8f0;
    touch-action: none;
    cursor: grab;
}

.avatar-cropper-viewport:active {
    cursor: grabbing;
}

.avatar-cropper-viewport img {
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
    -webkit-user-drag: none;
}

.avatar-cropper-viewport img:not([src]),
.avatar-cropper-viewport img[src=""] {
    display: none;
}

.avatar-cropper-frame {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    box-shadow: inset 0 0 0 2000px rgba(15, 23, 42, 0.22);
    pointer-events: none;
}

.avatar-cropper-zoom-label {
    display: block;
    color: #1f3b53;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

#avatarCropperZoom {
    width: 100%;
    margin-bottom: 14px;
}

.avatar-cropper-actions {
    display: flex;
    gap: 10px;
}

.avatar-cropper-actions .btn-submit,
.avatar-cropper-actions .btn-logout {
    margin-top: 0;
    width: 100%;
}

body.avatar-cropper-open {
    overflow: hidden;
}
