.formula-editor-heading {
    margin: 10px 0 6px;
    color: #123c4a;
    font-size: 14px;
    font-weight: 700;
}

.report-items-list {
    flex: 0 1 180px;
    min-height: 100px;
}

.report-item-token {
    text-align: right;
}

.formula-drop-target {
    border-color: #1d6970 !important;
    box-shadow: 0 0 0 3px rgba(29, 105, 112, .14);
}

.report-definition-page {
    max-width: 1280px;
    margin-bottom: 48px;
}

.report-definition-page > h3 {
    margin-bottom: 22px;
    color: #123c4a;
}

.report-definition-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.report-formula-builder {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px);
    grid-template-areas: "operators editor variables";
    gap: 16px;
    margin: 18px 0 24px;
    direction: ltr;
}

.formula-operators {
    grid-area: operators;
}

.formula-editor-panel {
    grid-area: editor;
}

.formula-variables {
    grid-area: variables;
}

.formula-palette,
.formula-editor-panel {
    display: flex;
    min-width: 0;
    min-height: 560px;
    flex-direction: column;
    padding: 16px;
    direction: rtl;
    background: #f7faf9;
    border: 1px solid #dbe8e5;
    border-radius: 10px;
}

.formula-editor-panel {
    background: #fff;
    border-color: #b9d3cd;
    box-shadow: 0 8px 20px rgba(18, 60, 74, .08);
}

.formula-palette-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.formula-palette-heading h4 {
    margin: 0;
    color: #123c4a;
    font-size: 18px;
}

.formula-palette-heading span {
    color: #77858b;
    font-size: 11px;
}

.formula-palette-filter,
.formula-palette-group {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    margin-bottom: 8px;
    border: 1px solid #cbd9d6;
    border-radius: 6px;
    background: #fff;
}

.formula-palette-list,
.formula-parts {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 2px;
}

.formula-token {
    display: block;
    width: 100%;
    padding: 9px 10px;
    margin-bottom: 6px;
    color: #174e55;
    background: #fff;
    border: 1px solid #c8dcda;
    border-radius: 6px;
    text-align: right;
    cursor: pointer;
}

.formula-token:hover {
    background: #e9f4f1;
    border-color: #1d6970;
}

.formula-operators .formula-token {
    text-align: center;
    direction: ltr;
}

.formula-editor-panel .form-group {
    margin-bottom: 10px;
}

.formula-editor-panel textarea {
    min-height: 150px;
    resize: vertical;
    direction: ltr;
    text-align: left;
    font-family: Consolas, monospace;
}

.formula-parts {
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #e1e9e8;
}

.formula-part {
    max-width: 100%;
    padding: 5px 8px;
    color: #174e55;
    background: #e9f4f1;
    border: 1px solid #c8dcda;
    border-radius: 5px;
    direction: ltr;
    font-family: Consolas, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .report-formula-builder {
        grid-template-columns: 1fr;
        grid-template-areas:
            "variables"
            "editor"
            "operators";
    }

    .formula-palette,
    .formula-editor-panel {
        min-height: 320px;
    }
}

@media (max-width: 600px) {
    .report-definition-meta {
        grid-template-columns: 1fr;
    }
}
body {
    margin: 0;
    font-family: system-ui;
    direction: rtl;
}

.site-navbar {
    direction: rtl;
}

.site-navbar .navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    flex-direction: row;
    direction: rtl;
}

.site-navbar .navbar-nav {
    align-items: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.site-navbar .nav-item {
    white-space: nowrap;
}

.site-navbar .navbar-nav.mr-auto,
.site-navbar .navbar-nav.ml-auto {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.menu-countainer {
    display: block;
    position: relative;
    width: 100%;
}


.menu-top {
    background-color: #d8e7e6;
    position: relative;
    padding: 10px;
}

.menu-bottom {
    position: relative;
    padding: 10px;
}

.menu-bottom ul,
.menu-top ul.menu-list {
    display: flex;
    position: relative;
    list-style: none;
    flex-direction: row;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;

}

.menu-bottom ul>li,
.menu-top ul.menu-list>li {
    list-style: none;
    padding: 0 8px;
    margin: 0;
    display: flex;
    align-items: center;

}

.menu-bottom ul>li a,
.menu-top ul.menu-list>li a {
    text-decoration: none;
    color: black;
}

.menu-logo a img {
    max-height: 200px;
    display: block;
    position: relative;
    margin-right: 10px;
}

.menu-bottom ul>li a:first-child {
    padding: 5px;
    background-color: cadetblue;
    border-radius: 50%;
    margin-left: 5px;
}

.menu-bottom ul>li a img {
    width: 20px;
    height: 20px;
    display: inline-flex;
}

.menu-bottom ul>li {
    flex: auto;
    justify-content: center;
    display: flex;
    align-items: center;
}

.home-slider {
    display: block;
    position: relative;

}

.home-slider img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    position: relative;
}

.home-slider:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: black;
    opacity: 0.6;
}

.home-page-advertise {
    background-color: #022431;
    text-align: center;
}

.home-page-advertise h1 {
    color: white;
    padding: 30px 10px;
    margin: 0;
}

.home-plan-report,
.home-plan {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 950px;
    margin: 20px auto;
    padding: 10px;
    justify-content: center;
    align-items: center;

}

.home-plan-report {
    max-width: none;
}

.home-plan-report .report-countainer {
    flex: 1 1 47%;
    position: relative;
    height: 300px;
}

.home-plan .plan-countainer {
    flex: 1 1 47%;
    position: relative;
    height: 250px;
}

.home-plan-report .report-countainer .report-pic,
.home-plan .plan-countainer .plan-pic {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px;
}

.home-plan-report .report-countainer .report-pic img,
.home-plan .plan-countainer .plan-pic img {
    height: 100%;
    object-fit: cover;
    width: 100%;

}

.home-plan-report .report-countainer .report-desc,
.home-plan .plan-countainer .plan-desc {
    left: 0;
    position: absolute;
    bottom: 5px;
    padding: 10px;
    right: 0;

}

.home-plan-report .report-countainer .report-desc>*,
.home-plan .plan-countainer .plan-desc>* {
    color: white;

}

.home-plan-report .report-countainer .report-desc .title,
.home-plan .plan-countainer .plan-desc .title {
    font-weight: bold;
    margin: 5px;
    text-decoration: none;

}

.home-plan-report .report-countainer .report-desc .short-details,
.home-plan .plan-countainer .plan-desc .short-details {
    margin: 5px;
}

.home-plan-report .report-countainer .report-desc span,
.home-plan .plan-countainer .plan-desc span {
    text-align: left;
    display: block;
    margin: 5px;
}

.home-plan-report .report-countainer .report-desc .continue,
.home-plan .plan-countainer .plan-desc .continue {
    background-color: darkcyan;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 50%;
    border-radius: 20px;
    font-size: 12px;
    color: white;

}

.about-us {
    max-width: 950px;
    margin: auto;
    border-top: 1px solid gray;
    padding: 10px;
}

.about-us .why-us,
.about-us .about-gym {
    display: block;
    position: relative;
}

.about-us .why-us h2,
.about-us .why-us h3,
.about-us .about-gym h2 {
    color: cadetblue;
    text-align: center;
}

.about-us .why-us p,
.about-us .about-gym p {
    text-align: justify;
    line-height: 2;
    font-size: 15px;

}

.about-us .why-us img {
    max-width: 50px;
}

.why-us-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.why-us-container .why-box {
    flex: 1 1 45%;
    padding: 20px;
    text-align: justify;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer {
    background-color: #022431;
    padding: 20px;

}

.footer .footer-countainer {
    max-width: 950px;
    margin: auto;
    color: white;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.footer .footer-column {
    flex: 1 1 33.3%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* .footer .footer-column h4 {
    flex-basis: 20%;

} */

.footer .footer-column .footer-item>a {

    display: block;
    text-decoration: none;
    color: white;
}

.footer-column img {
    max-width: 200px;
}

.athlete-page {
    max-width: 1180px;
    margin: 0 auto 48px;
    color: #17252d;
}

.athlete-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    margin-bottom: 24px;
    color: #fff;
    background: linear-gradient(120deg, #123c4a, #1d6970);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(18, 60, 74, .18);
}

.athlete-avatar {
    flex: 0 0 116px;
    width: 116px;
    height: 116px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: #e5b567;
    color: #123c4a;
    font-size: 34px;
    font-weight: 700;
}

.athlete-avatar img { width: 100%; height: 100%; object-fit: cover; }
.athlete-identity { flex: 1; }
.athlete-identity h1 { margin: 5px 0 8px; font-size: 30px; }
.athlete-identity p { margin: 0 0 12px; opacity: .86; }
.eyebrow { color: #e5b567; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.athlete-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.athlete-tags span { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 20px; font-size: 12px; }
.athlete-edit { align-self: flex-start; color: #123c4a; font-weight: 600; }
.athlete-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; }
.athlete-panel { padding: 22px; margin-bottom: 24px; background: #fff; border: 1px solid #e1e9e8; border-radius: 12px; box-shadow: 0 8px 22px rgba(23, 37, 45, .06); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.athlete-panel h2 { margin: 4px 0 0; color: #123c4a; font-size: 21px; }
.panel-count { color: #1d6970; font-size: 13px; }
.category-row, .result-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid #edf1f1; }
.category-row small, .result-row small { display: block; margin-top: 5px; color: #77858b; font-size: 12px; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; white-space: nowrap; }
.row-actions a { color: #1d6970; font-size: 12px; text-decoration: none; }
.row-actions .danger-link, .danger-link { color: #b84c4c; }
.result-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 18px 0; margin-top: 12px; border-top: 1px solid #edf1f1; }
.result-filter label { display: block; margin-bottom: 5px; color: #77858b; font-size: 12px; }
.result-filter input { max-width: 150px; }
.result-filter select { min-width: 160px; }
.analysis-file-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 14px 0; margin-bottom: 8px; border-bottom: 1px solid #edf1f1; }
.analysis-file-filter label { display: block; margin-bottom: 5px; color: #77858b; font-size: 12px; }
.analysis-file-filter input { max-width: 180px; }
.results-table h3 { margin: 10px 0 0; color: #123c4a; font-size: 16px; }
.empty-state, .muted { color: #77858b; font-size: 13px; }
.quick-links a { display: block; padding: 11px 0; border-top: 1px solid #edf1f1; color: #1d6970; text-decoration: none; }
.analysis-dashboard-files summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: #123c4a; font-size: 18px; font-weight: 700; }
.analysis-dashboard-files summary small { color: #77858b; font-size: 12px; font-weight: 400; }
.analysis-dashboard-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; margin-top: 12px; border-top: 1px solid #edf1f1; }
.analysis-dashboard-filter input, .analysis-dashboard-filter select { min-width: 0; width: 100%; padding: 7px 9px; border: 1px solid #cbd9d6; border-radius: 5px; }
.analysis-dashboard-file-list { max-height: 280px; overflow-y: auto; }
.analysis-dashboard-file { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid #edf1f1; }
.analysis-dashboard-file span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #53666d; font-size: 12px; }

@media (max-width: 768px) {
    .athlete-hero { align-items: flex-start; flex-wrap: wrap; padding: 20px; }
    .athlete-avatar { flex-basis: 88px; width: 88px; height: 88px; }
    .athlete-identity h1 { font-size: 24px; }
    .athlete-edit { width: 100%; }
    .athlete-grid { display: block; }
    .category-row, .result-row { align-items: flex-start; flex-direction: column; }
    .row-actions { width: 100%; }
}

.analysis-page { max-width: 1120px; margin: 0 auto 48px; color: #17252d; }
.analysis-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 28px; margin-bottom: 22px; color: #fff; background: linear-gradient(120deg, #123c4a, #1d6970); border-radius: 14px; box-shadow: 0 14px 30px rgba(18, 60, 74, .16); }
.analysis-header h1 { margin: 6px 0; font-size: 28px; }
.analysis-header p { margin: 0; color: rgba(255, 255, 255, .8); }
.analysis-kicker { color: #e5b567; font-size: 12px; font-weight: 700; }
.analysis-upload-panel, .analysis-list-panel, .analysis-result-card, .analysis-confirm { padding: 22px; margin-bottom: 22px; background: #fff; border: 1px solid #e1e9e8; border-radius: 12px; box-shadow: 0 8px 22px rgba(23, 37, 45, .06); }
.analysis-upload-panel h2, .analysis-list-panel h2, .analysis-result-card h2 { margin: 0 0 16px; color: #123c4a; font-size: 20px; }
.analysis-list-title { display: flex; align-items: center; justify-content: space-between; }
.analysis-list-title span { color: #77858b; font-size: 13px; }
.analysis-file-card { display: flex; align-items: center; gap: 16px; padding: 17px 0; border-top: 1px solid #edf1f1; }
.analysis-file-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 52px; height: 52px; color: #fff; background: #1d6970; border-radius: 10px; font-size: 12px; font-weight: 700; }
.analysis-file-info { flex: 1; min-width: 0; }
.analysis-file-info h3 { margin: 0 0 5px; color: #123c4a; font-size: 15px; overflow-wrap: anywhere; }
.analysis-file-info p { margin: 0; color: #77858b; font-size: 12px; }
.analysis-description { margin-top: 8px; color: #53666d; font-size: 13px; white-space: pre-wrap; }
.analysis-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.analysis-empty { padding: 25px 0 8px; color: #77858b; text-align: center; }
.analysis-output { max-height: 420px; padding: 16px; margin: 0; overflow: auto; direction: ltr; color: #d9f4ed; background: #17252d; border-radius: 8px; white-space: pre-wrap; font-size: 12px; }
.analysis-error { padding: 18px; margin-bottom: 22px; color: #8a3030; background: #fff0f0; border: 1px solid #efc5c5; border-radius: 10px; }
.analysis-confirm { max-width: 620px; margin: 40px auto; }
.analysis-confirm h1 { color: #123c4a; }

@media (max-width: 700px) {
    .analysis-header, .analysis-file-card { align-items: flex-start; flex-direction: column; }
    .analysis-header h1 { font-size: 23px; }
    .analysis-actions { justify-content: flex-start; width: 100%; }
}