@font-face {
    font-family: Inter;
    src: url("/fonts/sindbad/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: PlexArabic;
    src: url("/fonts/sindbad/ibm-plex-sans-arabic-arabic-400-normal.woff2")
        format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: PlexArabic;
    src: url("/fonts/sindbad/ibm-plex-sans-arabic-arabic-500-normal.woff2")
        format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: PlexArabic;
    src: url("/fonts/sindbad/ibm-plex-sans-arabic-arabic-600-normal.woff2")
        format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: PlexArabic;
    src: url("/fonts/sindbad/ibm-plex-sans-arabic-arabic-700-normal.woff2")
        format("woff2");
    font-weight: 700;
    font-display: swap;
}
:root {
    --sc-bg: #f8fafc;
    --sc-panel: #fff;
    --sc-ink: #0b172a;
    --sc-sub: #475569;
    --sc-line: #dce3ed;
    --sc-blue: #2563eb;
    --sc-font: Inter, PlexArabic, sans-serif;
}
html[dir="rtl"] {
    --sc-font: PlexArabic, Inter, sans-serif;
}
html.dark {
    --sc-bg: #0b172a;
    --sc-panel: #132237;
    --sc-ink: #f8fafc;
    --sc-sub: #bfccdd;
    --sc-line: #34465d;
    --sc-blue: #8fb5ff;
}
body.fi-body,
.fi-simple-layout {
    background: var(--sc-bg);
    font-family: var(--sc-font);
}
.fi-logo {
    letter-spacing: -0.04em;
    font-weight: 750;
    color: var(--sc-ink);
}
.fi-logo::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 1.05em;
    height: 1.05em;
    margin-inline-end: 0.4em;
    background: linear-gradient(
        145deg,
        #2563eb 0 44%,
        transparent 45% 54%,
        #2563eb 55%
    );
    border-radius: 30%;
}
.fi-sidebar {
    border-inline-end: 1px solid var(--sc-line);
    background: var(--sc-panel);
}
.fi-simple-main-ctn {
    background:
        radial-gradient(ellipse at 10% 5%, #2563eb22, transparent 52%),
        var(--sc-bg);
}
.fi-simple-main {
    border-block-start: 4px solid var(--sc-blue);
}
.language-choice button {
    min-height: 36px;
    padding: 0.3rem 0.65rem;
    color: var(--sc-blue);
    font-weight: 600;
}
:focus-visible {
    outline: 3px solid var(--sc-blue);
    outline-offset: 2px;
}
.portfolio,
.report-card {
    color: var(--sc-ink);
    min-width: 0;
}
.summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #0b172a;
    color: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #35445c;
}
.summary > div {
    padding: 1.25rem 1.5rem;
    border-inline-start: 1px solid #35445c;
}
.summary span {
    font-size: 0.86rem;
    color: #d6e3f9;
}
.summary strong {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-variant-numeric: tabular-nums;
}
.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.report-card {
    background: var(--sc-panel);
    border: 1px solid var(--sc-line);
    border-radius: 14px;
    padding: 1.25rem;
}
.report-card h2 {
    font-size: 1.06rem;
    font-weight: 650;
    margin-bottom: 0.75rem;
}
.report-card p,
.report-card small {
    color: var(--sc-sub);
}
.report-card p {
    padding: 0.6rem 0;
}
.metric-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.4rem 0;
    overflow-wrap: anywhere;
}
.metric-line b,
.report-card td {
    font-variant-numeric: tabular-nums;
}
.report-card table {
    width: 100%;
    margin-bottom: 0.75rem;
}
.report-card th,
.report-card td {
    text-align: start;
    padding: 0.35rem;
    border-bottom: 1px solid var(--sc-line);
}
.report-card progress {
    display: block;
    width: 100%;
    height: 0.45rem;
    accent-color: var(--sc-blue);
}
.calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: var(--sc-line);
    margin-block: 1rem;
}
.calendar-day {
    min-height: 5rem;
    background: var(--sc-panel);
    padding: 0.5rem;
    overflow-wrap: anywhere;
}
.calendar-day time {
    color: var(--sc-sub);
    font-size: 0.8rem;
}
@media (max-width: 700px) {
    .summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .summary > div {
        padding: 1rem;
    }
    .report-grid {
        grid-template-columns: 1fr;
    }
    .calendar {
        grid-template-columns: 1fr;
    }
    .calendar-day {
        grid-column-start: auto !important;
        min-height: auto;
    }
    .calendar-day:not(:has(div)) {
        display: none;
    }
}
.report-card progress {
    appearance: none;
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--sc-line);
}
.report-card progress::-webkit-progress-bar {
    background: var(--sc-line);
}
.report-card progress::-webkit-progress-value {
    background: var(--sc-blue);
    border-radius: 1rem;
}
.report-card progress::-moz-progress-bar {
    background: var(--sc-blue);
}
.fi-topbar .language-choice {
    flex: none;
    margin-inline-start: 0.5rem;
}
@media (max-width: 640px) {
    .fi-topbar {
        padding-inline: 0.6rem;
    }
    .fi-topbar-end {
        min-width: 0;
        gap: 0.45rem;
        flex: 1;
    }
    .fi-topbar .fi-global-search-ctn {
        flex: 1;
        min-width: 0;
    }
    .fi-topbar .fi-global-search,
    .fi-topbar .fi-global-search input {
        min-width: 0;
        width: 100%;
    }
    .fi-topbar .fi-user-menu,
    .fi-topbar .fi-user-menu button,
    .fi-topbar-end > .fi-dropdown {
        flex: none;
        min-width: 36px;
        min-height: 36px;
    }
    .fi-topbar .language-choice button {
        padding-inline: 0.25rem;
    }
}
