/* FitFlow dashboard styles — cleaned and consolidated. */

@font-face {
    font-family: "saudi_riyal";
    src: url("../fonts/saudi_riyal.eot");
    src: url("../fonts/saudi_riyal.eot?#iefix") format("embedded-opentype"),
        url("../fonts/saudi_riyal.woff2") format("woff2"),
        url("../fonts/saudi_riyal.woff") format("woff"),
        url("../fonts/saudi_riyal.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.icon-saudi_riyal {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.92em;
    height: 0.92em;
    line-height: 0;
    font-size: inherit;
    color: inherit;
    vertical-align: -0.08em;
    speak: none;
}

.icon-saudi_riyal::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1124.14 1256.39'%3E%3Cpath fill='%23000' d='M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z'/%3E%3Cpath fill='%23000' d='M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.06v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.81l132.25-28.11v270.4l424.53-90.28Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1124.14 1256.39'%3E%3Cpath fill='%23000' d='M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z'/%3E%3Cpath fill='%23000' d='M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.06v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.81l132.25-28.11v270.4l424.53-90.28Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@font-face {
    font-family: "Bahij_TheSansArabic";
    src: url("../fonts/Bahij_TheSansArabic-Plain.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --sidebar-width: 276px;
    --sidebar-collapsed: 88px;
    --topbar-height: 84px;
    --footer-height: 55px;
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-pink: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    /* Text / ink — prefer these over one-off hex for text */
    --text: #1f2937;
    --text-2: #334155;
    --slate: #475569;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --mauve: #8d7d91;
    --white: #fff;
    --on-dark-muted: rgba(226, 232, 240, .7);
    --primary: #2f8f8a;
    --primary-2: #3da6a3;
    --primary-3: #d3a10b;
    --primary-soft: #edf8f7;
    --success: #28a169;
    --success-soft: #e8f7ef;
    --warning: #ce8d22;
    --warning-soft: #fff3de;
    --danger: #d94f72;
    --danger-soft: #fdeaf0;
    --info: #2d78ba;
    --purple: #7654a8;
    --blue: #60758a;
    --blue-soft: #eef2f6;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, .055);
    --shadow-md: 0 14px 36px rgba(15, 23, 42, .075);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
    --radius-sm: 15px;
    --radius-md: 20px;
    --radius-lg: 24px;
    font-family: "Bahij_TheSansArabic", Tahoma, Arial, sans-serif;
    --gold: #d3a10b;
    --gold-deep: #b88b08;
    --gold-soft: #fbf5e3;
    --teal-deep: #2b7f7b;
    --teal-soft: #eef8f7;
    /* Type scale — only these font-size values should be used */
    --fs-xs: 10px;
    --fs-sm: 11px;
    --fs-md: 12px;
    --fs-base: 13px;
    --fs-lg: 14px;
    --fs-xl: 16px;
    --fs-2xl: 18px;
    --fs-3xl: 20px;
    --fs-4xl: 24px;
    --fs-5xl: 28px;
    --fs-display: clamp(24px, 2.5vw, 32px);
    --fs-hero: clamp(32px, 4vw, 48px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: radial-gradient(circle at 12% 0%, rgba(226, 232, 240, .16), transparent 27%),
        radial-gradient(circle at 100% 9%, rgba(148, 163, 184, .08), transparent 25%),
        var(--bg);
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
    font: inherit;
    font-family: "Bahij_TheSansArabic", Tahoma, Arial, sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svg-library {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 50;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .93);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 45px rgba(51, 65, 85, .045);
    backdrop-filter: blur(18px);
    transition: width .3s ease, transform .3s ease;
}

.sidebar__head {
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: right;
    cursor: default;
}

.brand__mark {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 8px 13px rgba(100, 116, 139, .19));
}

.brand__mark span {
    position: absolute;
    display: block;
    border-radius: 100% 12px 100% 100%;
    transform: rotate(37deg);
    background: linear-gradient(135deg, #94a3b8, #475569);
}

.brand__mark span:nth-child(1) {
    width: 31px;
    height: 19px;
    top: 1px;
    right: 4px;
}

.brand__mark span:nth-child(2) {
    width: 27px;
    height: 17px;
    top: 16px;
    right: 13px;
    opacity: .9;
}

.brand__mark span:nth-child(3) {
    width: 21px;
    height: 14px;
    top: 28px;
    right: 4px;
    opacity: .76;
}

.brand__text {
    display: grid;
    gap: 1px;
    white-space: nowrap;
}

.brand__text strong {
    color: var(--slate);
    font-size: var(--fs-4xl);
    line-height: 1;
    letter-spacing: -.4px;
}

.brand__text small {
    color: var(--muted);
    font-size: var(--fs-md);
    font-weight: 600;
}

.sidebar__mobile-close {
    display: none !important;
}

.sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px 18px;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.sidebar__nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar__nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #e2e8f0;
}

.sidebar__footer {
    flex: 0 0 auto;
    padding: 7px 14px 7px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .94);
}

.sidebar-collapse-control {
    width: 100%;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px;
    border: 1px solid #dfe7ef;
    border-radius: 13px;
    color: var(--slate);
    background: #f8fafc;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease;
}

.sidebar-collapse-control:hover {
    color: var(--primary);
    border-color: #cbd7e3;
    background: #fff;
    transform: translateY(-1px);
}

.sidebar-collapse-control:focus-visible {
    outline: 3px solid rgba(47, 155, 150, .16);
    outline-offset: 2px;
}

.sidebar-collapse-control__icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--primary);
}

.sidebar-collapse-control__label {
    white-space: nowrap;
}

.nav-section + .nav-section {
    margin-top: 3px;
    padding-top: 0;
    border-top: 0;
}

.nav-section__label {
    display: none;
}

.nav-group {
    margin: 3px 0;
}

.nav-item {
    position: relative;
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 10px;
    border: 0;
    border-radius: 15px;
    color: var(--slate);
    background: transparent;
    text-align: right;
    font-size: var(--fs-lg);
    font-weight: 600;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nav-item__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--mauve);
    background: #f8fafc;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav-item__icon svg {
    width: 19px;
    height: 19px;
}

.nav-item__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--slate);
    background: #f8fafc;
    transform: translateX(-2px);
}

.nav-item:hover .nav-item__icon {
    color: var(--primary-2);
    border-color: #f1f5f9;
    background: #fff;
    box-shadow: 0 6px 16px rgba(71, 85, 105, .07);
}

.nav-item.is-active {
    color: var(--slate);
    background: linear-gradient(90deg, #fff 0%, #f8fafc 100%);
    box-shadow: inset -3px 0 0 var(--primary-2), 0 8px 22px rgba(71, 85, 105, .07);
}

.nav-item.is-active .nav-item__icon {
    color: var(--white);
    border-color: transparent;
    background: linear-gradient(145deg, var(--primary-2), var(--primary));
    box-shadow: 0 8px 18px rgba(71, 85, 105, .22);
}

.nav-item--toggle {
    position: relative;
    padding-left: 74px;
    appearance: none;
}

.nav-group.is-open > .nav-item--toggle {
    color: var(--slate);
    background: #f8fafc;
}

.nav-group.is-open > .nav-item--toggle .nav-item__icon {
    color: var(--primary-2);
    background: #f1f5f9;
}

.nav-badge {
    position: absolute;
    left: 34px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    box-shadow: 0 5px 12px rgba(71, 85, 105, .17);
    font-size: var(--fs-xs);
    font-weight: 800;
}

.nav-chevron {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--mauve);
    transform: translateY(-50%) rotate(0deg);
    transition: transform .2s ease, color .2s ease;
}

.nav-group.is-open > .nav-item--toggle .nav-chevron {
    color: var(--primary-2);
    transform: translateY(-50%) rotate(-90deg);
}

.nav-submenu {
    position: relative;
    display: grid;
    gap: 3px;
    max-height: 0;
    overflow: hidden;
    margin: 0 18px 0 8px;
    padding: 0;
    border-right: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height .32s cubic-bezier(.4, 0, .2, 1),
        opacity .22s ease,
        transform .28s ease,
        margin .28s ease,
        padding .28s ease;
    will-change: max-height, opacity, transform;
}

.nav-group.is-open > .nav-submenu {
    margin: 4px 18px 9px 8px;
    padding: 4px 0 5px;
    opacity: 1;
    transform: translateY(0);
}

.nav-submenu[hidden] {
    display: none;
}

.nav-subitem {
    position: relative;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 9px;
    border-radius: 10px;
    color: var(--mauve);
    font-size: var(--fs-md);
    font-weight: 600;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}

.nav-subitem:hover {
    color: var(--slate);
    background: #f8fafc;
    transform: translateX(-2px);
}

.nav-subitem.is-active {
    color: var(--slate);
    background: #f1f5f9;
}

.nav-subitem small {
    margin-inline-start: auto;
    min-width: 22px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    color: var(--mauve);
    background: #f1f5f9;
    font-size: var(--fs-xs);
    font-weight: 800;
}

.nav-subitem small.is-accent {
    color: var(--white);
    background: var(--primary-2);
}

.sidebar__upgrade {
    margin: auto 16px 18px;
    padding: 20px 17px 16px;
    text-align: center;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    background: radial-gradient(circle at 90% 10%, rgba(203, 213, 225, .17), transparent 37%),
        linear-gradient(160deg, #f8fafc, #f8fafc);
}

.upgrade-spark {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-2);
    font-size: var(--fs-5xl);
    line-height: 1;
}

.sidebar__upgrade strong {
    color: var(--primary);
    font-size: var(--fs-lg);
}

.sidebar__upgrade p {
    margin: 7px 0 14px;
    color: var(--muted);
    font-size: var(--fs-md);
    line-height: 1.75;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: none;
    background: rgba(31, 41, 55, .42);
    backdrop-filter: blur(3px);
}

.workspace {
    min-height: 100vh;
    margin-inline-start: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    transition: margin-inline-start .3s ease;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 28px;
    border-bottom: 1px solid rgba(241, 245, 249, .85);
    background: rgba(255, 255, 255, .87);
    box-shadow: 0 6px 24px rgba(51, 65, 85, .03);
    backdrop-filter: blur(17px);
}

.topbar__group {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar__group--profile {
    overflow: visible;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button,
.topbar-pill,
.profile-menu__button,
.date-card {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .92);
    cursor: pointer;
    transition: .2s ease;
}

.icon-button:hover,
.topbar-pill:hover,
.profile-menu__button:hover,
.date-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 8px 20px rgba(71, 85, 105, .07);
    transform: translateY(-1px);
}

.icon-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

.sidebar-toggle {
    color: var(--primary-2);
    border-color: #e2e8f0;
    background: #f8fafc;
}

.notification-button {
    position: relative;
    color: var(--mauve);
}

.notification-dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 7px;
    height: 7px;
    border: 2px solid white;
    border-radius: 50%;
    background: #94a3b8;
}

.profile-menu__button {
    min-width: 175px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 12px;
    border-color: transparent;
    border-radius: 15px;
    background: transparent;
}

.profile-menu__text {
    min-width: 0;
    display: grid;
    text-align: right;
}

.profile-menu__text strong {
    overflow: hidden;
    color: var(--text-2);
    font-size: var(--fs-lg);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu__text small {
    color: var(--muted);
    font-size: var(--fs-sm);
}

.avatar {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.avatar--photo {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 2px solid white;
    background: linear-gradient(155deg, #efe4dc 0 55%, #c5c9cf 55%);
    box-shadow: 0 5px 15px rgba(51, 65, 85, .17);
}

.avatar__face {
    position: absolute;
    top: 9px;
    left: 12px;
    width: 18px;
    height: 21px;
    border-radius: 45% 45% 48% 48%;
    background: #b97c5e;
}

.avatar__hair {
    position: absolute;
    z-index: 2;
    top: 5px;
    left: 10px;
    width: 22px;
    height: 15px;
    border-radius: 55% 55% 35% 35%;
    background: #2e2727;
    transform: rotate(-5deg);
}

.avatar__hair::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 3px;
    width: 17px;
    height: 10px;
    border-radius: 0 0 50% 50%;
    border-bottom: 4px solid #334155;
}

.avatar__shirt {
    position: absolute;
    bottom: -8px;
    left: 5px;
    width: 32px;
    height: 21px;
    border-radius: 50% 50% 0 0;
    background: #29384a;
}

.topbar-pill {
    height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 13px;
    color: var(--slate);
    font-size: var(--fs-base);
    font-weight: 700;
    white-space: nowrap;
}

.topbar-pill > svg:not(.dropdown-caret) {
    width: 19px;
    height: 19px;
}

.season-icon {
    color: var(--warning);
}

.dropdown {
    position: relative;
}

.dropdown-caret {
    width: 15px !important;
    height: 15px !important;
    margin-inline-start: 2px;
    transform: rotate(90deg);
    transition: transform .2s ease;
}

.dropdown.is-open .dropdown-caret {
    transform: rotate(-90deg);
}

.dropdown__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 100;
    min-width: 178px;
    display: none;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow-lg);
    animation: menuOpen .18s ease;
}

.dropdown__menu--wide {
    min-width: 230px;
}

.dropdown.is-open > .dropdown__menu {
    display: grid;
}

.dropdown__menu a,
.dropdown__menu button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    color: var(--slate);
    background: transparent;
    text-align: right;
    cursor: pointer;
    transition: .16s ease;
}

.dropdown__menu a:hover,
.dropdown__menu button:hover {
    color: var(--primary);
    background: #f8fafc;
}

.dropdown__menu svg {
    width: 17px;
    height: 17px;
}

.dropdown__menu small {
    margin-inline-start: auto;
    color: var(--success);
    font-size: var(--fs-xs);
}

@keyframes menuOpen {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 18px 24px 28px;
}

.welcome-card {
    position: relative;
    min-height: 125px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) auto 180px;
    align-items: center;
    gap: 24px;
    padding: 22px 30px;
    border: 1px solid #f1f5f9;
    border-radius: 22px;
    background: radial-gradient(circle at 82% 20%, rgba(203, 213, 225, .22), transparent 29%),
        radial-gradient(circle at 10% 80%, rgba(203, 213, 225, .17), transparent 27%),
        linear-gradient(110deg, #f8fafc, #f8fafc);
    box-shadow: var(--shadow-sm);
}

.welcome-card::before,
.welcome-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(148, 163, 184, .06);
}

.welcome-card::before {
    width: 170px;
    height: 170px;
    top: -100px;
    left: 25%;
}

.welcome-card::after {
    width: 110px;
    height: 110px;
    bottom: -65px;
    left: 42%;
}

.welcome-card__content {
    position: relative;
    z-index: 2;
}

.eyebrow,
.panel__eyebrow {
    display: block;
    color: var(--primary-2);
    font-size: var(--fs-sm);
    font-weight: 800;
}

.welcome-card h1 {
    margin: 4px 0 5px;
    font-size: var(--fs-display);
    letter-spacing: -.6px;
}

.welcome-card h1 span {
    color: var(--primary-2);
}

.welcome-card p {
    margin: 0;
    color: var(--muted);
    font-size: var(--fs-base);
}

.welcome-card__date {
    z-index: 5;
}

.date-card {
    min-width: 225px;
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 17px;
    text-align: right;
}

.date-card__icon {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--primary-2);
    background: var(--surface-pink);
}

.date-card span:not(.date-card__icon) {
    display: grid;
    gap: 2px;
}

.date-card small {
    color: var(--mauve);
    font-size: var(--fs-sm);
}

.date-card strong {
    color: var(--text-2);
    font-size: var(--fs-lg);
}

.welcome-illustration {
    position: relative;
    align-self: stretch;
    min-height: 105px;
}

.mini-calendar {
    position: absolute;
    top: 4px;
    right: 22px;
    width: 103px;
    height: 93px;
    transform: rotate(4deg);
    filter: drop-shadow(0 14px 15px rgba(71, 85, 105, .19));
}

.mini-calendar__head {
    height: 27px;
    border-radius: 15px 15px 3px 3px;
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.mini-calendar__body {
    height: 67px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 13px 10px;
    border-radius: 0 0 16px 16px;
    background: rgba(255, 255, 255, .96);
}

.mini-calendar__body span {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--white);
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    font-size: var(--fs-xs);
    font-weight: 900;
}

.mini-calendar__rings {
    position: absolute;
    z-index: 3;
    top: -8px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
}

.mini-calendar__rings i {
    width: 8px;
    height: 21px;
    display: block;
    border-radius: 6px;
    background: #475569;
    box-shadow: inset 0 -6px 0 rgba(255,255,255,.25);
}

.illustration-bell {
    position: absolute;
    right: 4px;
    bottom: 7px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px 14px 20px 20px;
    color: var(--white);
    background: linear-gradient(135deg, #94a3b8, #475569);
    transform: rotate(-8deg);
    box-shadow: 0 12px 20px rgba(71, 85, 105, .21);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.kpi-card {
    min-height: 111px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: rgba(255,255,255,.91);
    box-shadow: var(--shadow-sm);
    transition: .22s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.kpi-card__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
}

.kpi-card__icon svg {
    width: 25px;
    height: 25px;
}

.kpi-card__icon--purple {
    color: var(--muted-2);
    background: #f8fafc;
}

.kpi-card__icon--orange {
    color: var(--warning);
    background: #fff0df;
}

.kpi-card__icon--green {
    color: var(--success);
    background: #e8f7ef;
}

.kpi-card__icon--red {
    color: var(--muted-2);
    background: #f8fafc;
}

.kpi-card__icon--blue {
    color: var(--info);
    background: #e9f4ff;
}

.kpi-card > div {
    min-width: 0;
    display: grid;
}

.kpi-card__label {
    overflow: hidden;
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kpi-card__value {
    margin: 2px 0 1px;
    font-size: var(--fs-display);
    letter-spacing: -.4px;
    white-space: nowrap;
}

.kpi-card__value em {
    font-size: var(--fs-sm);
    font-style: normal;
    font-weight: 700;
}

.trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: var(--fs-xs);
    white-space: nowrap;
}

.trend svg {
    width: 12px;
    height: 12px;
}

.trend--up {
    color: var(--success);
}

.trend--down {
    color: var(--danger);
}

.trend--neutral {
    color: var(--success);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(280px, .95fr) minmax(420px, 1.55fr) minmax(270px, .9fr);
    gap: 14px;
    margin-top: 14px;
}

.panel {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow-sm);
}

.panel__header {
    min-height: 67px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 17px;
    border-bottom: 1px solid #f1f5f9;
}

.panel__header h2 {
    margin: 3px 0 0;
    font-size: var(--fs-lg);
    letter-spacing: -.2px;
}

.panel__more {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: var(--muted);
    background: #f8fafc;
    cursor: pointer;
}

.panel__more:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.services-chart {
    min-height: 280px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 12px;
    padding: 20px 16px 18px;
}

.donut-chart {
    position: relative;
    width: min(175px, 100%);
    aspect-ratio: 1;
    margin: auto;
    border-radius: 50%;
    background: conic-gradient(
        #7f79dc 0 43%,
        #79d6c6 43% 68%,
        #ffae70 68% 86%,
        #cbd5e1 86% 97%,
        #cbd5e1 97% 100%
    );
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 12px 30px rgba(71, 85, 105, .08);
    animation: donutReveal 1s ease both;
}

.donut-chart::after {
    content: "";
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    background: white;
    box-shadow: inset 0 0 0 1px #f1f5f9;
}

.donut-chart__center {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    text-align: center;
}

.donut-chart__center small {
    color: var(--muted);
    font-size: var(--fs-sm);
}

.donut-chart__center strong {
    font-size: var(--fs-5xl);
    line-height: 1;
}

@keyframes donutReveal {
    from {
        transform: scale(.78) rotate(-40deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.chart-legend {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chart-legend li {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: var(--slate);
    font-size: var(--fs-xs);
}

.chart-legend li > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--legend);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--legend) 14%, transparent);
}

.chart-legend strong {
    overflow: hidden;
    font-size: var(--fs-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-legend small {
    color: var(--muted);
    direction: ltr;
}

.line-chart {
    position: relative;
    min-height: 280px;
    padding: 18px 18px 12px 40px;
    direction: ltr;
}

.line-chart__y {
    position: absolute;
    inset: 19px auto 42px 11px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--mauve);
    font-size: var(--fs-xs);
}

.line-chart__svg {
    width: 100%;
    height: 222px;
    overflow: visible;
}

.chart-grid-lines line {
    stroke: #f1f5f9;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.chart-area {
    fill: url(#chartFill);
}

.chart-line {
    fill: none;
    stroke: #64748b;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 7px 6px rgba(100, 116, 139, .12));
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawLine 1.4s .2s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.chart-points circle {
    fill: white;
    stroke: #64748b;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.chart-points circle.is-highlight {
    fill: #94a3b8;
    stroke: #e2e8f0;
    stroke-width: 6;
}

.chart-labels text {
    fill: #475569;
    font-size: var(--fs-sm);
    font-weight: 800;
    text-anchor: middle;
}

.chart-labels text.is-highlight {
    fill: #64748b;
}

.line-chart__x {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    color: var(--mauve);
    font-size: var(--fs-xs);
    text-align: center;
    direction: rtl;
}

.panel--quick-view {
    display: flex;
    flex-direction: column;
}

.quick-view {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 15px;
}

.quick-view__item {
    width: 100%;
    min-height: 57px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 13px;
    text-align: start;
    cursor: pointer;
    transition: .2s ease;
}

.quick-view__item:hover {
    transform: translateX(-3px);
    filter: saturate(1.1);
}

.quick-view__item--orange {
    background: linear-gradient(90deg, #fff9f0, #fff1df);
}

.quick-view__item--green {
    background: linear-gradient(90deg, #f5fcf8, #e9f8ef);
}

.quick-view__item--purple {
    background: linear-gradient(90deg, #f8fafc, #f1f5f9);
}

.quick-view__number {
    font-size: var(--fs-3xl);
    font-weight: 800;
}

.quick-view__item > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.quick-view__item strong {
    overflow: hidden;
    font-size: var(--fs-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-view__item small {
    color: var(--muted);
    font-size: var(--fs-xs);
}

.quick-view__item > svg,
.quick-view__item > i {
    justify-self: end;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
}

.quick-view__item--orange > svg,
.quick-view__item--orange > i {
    color: var(--warning);
}

.quick-view__item--green > svg,
.quick-view__item--green > i {
    color: var(--success);
}

.quick-view__item--purple > svg,
.quick-view__item--purple > i {
    color: var(--muted-2);
}

.button {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 0;
    border-radius: 11px;
    font-size: var(--fs-sm);
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--block {
    width: 100%;
}

.button--primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-3), var(--primary));
    box-shadow: 0 9px 19px rgba(100, 116, 139, .19);
}

.button--ghost {
    color: var(--primary-2);
    border: 1px solid #f1f5f9;
    background: white;
}

.button--soft {
    color: var(--primary);
    border: 1px solid #f1f5f9;
    background: #f8fafc;
}

.lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
    margin-top: 14px;
}

.panel__header--table {
    flex-wrap: wrap;
}

.table-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-search {
    width: 210px;
    height: 39px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
}

.table-search:focus-within {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .08);
}

.table-search svg {
    width: 17px;
    height: 17px;
    color: var(--muted);
}

.table-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: none;
    color: var(--text);
    background: transparent;
    font-size: var(--fs-sm);
}

.table-search input::placeholder {
    color: var(--mauve);
}

.table-wrap {
    overflow-x: auto;
}

.appointments-table {
    width: 100%;
    min-width: 930px;
    border-collapse: collapse;
}

.appointments-table th,
.appointments-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
    white-space: nowrap;
}

.appointments-table th {
    color: var(--mauve);
    background: #f8fafc;
    font-size: var(--fs-xs);
    font-weight: 800;
}

.appointments-table td {
    color: var(--slate);
    font-size: var(--fs-xs);
}

.appointments-table tbody tr {
    transition: .16s ease;
}

.appointments-table tbody tr:hover {
    background: #f8fafc;
}

.appointments-table tbody tr:last-child td {
    border-bottom: 0;
}

.appointment-id {
    color: var(--primary);
    font-weight: 800;
}

.customer {
    display: flex;
    align-items: center;
    gap: 9px;
}

.customer > span:last-child {
    display: grid;
    gap: 2px;
}

.customer strong {
    color: var(--text-2);
    font-size: var(--fs-sm);
}

.customer small {
    color: var(--muted);
    font-size: var(--fs-xs);
    direction: ltr;
    text-align: right;
}

.avatar--mini {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: var(--white);
    font-size: var(--fs-md);
    font-weight: 800;
}

.avatar--one {
    background: linear-gradient(135deg, #3d5369, #1c2937);
}

.avatar--two {
    background: linear-gradient(135deg, #94a3b8, #475569);
}

.avatar--three {
    background: linear-gradient(135deg, #b98755, #6a4731);
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 50px;
    font-size: var(--fs-xs);
    font-weight: 800;
}

.status--confirmed {
    color: var(--success);
    background: var(--success-soft);
}

.status--waiting {
    color: var(--warning);
    background: var(--warning-soft);
}


.empty-search {
    display: none;
    padding: 30px;
    color: var(--muted);
    text-align: center;
    font-size: var(--fs-md);
}

.quick-actions-panel {
    overflow: hidden;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}

.quick-action {
    min-height: 96px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: .2s ease;
}

.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.quick-action svg {
    width: 23px;
    height: 23px;
}

.quick-action span {
    font-size: var(--fs-sm);
    font-weight: 800;
}

.quick-action small {
    color: var(--muted);
    font-size: var(--fs-xs);
}

.quick-action--pink {
    color: var(--primary-2);
    border-color: #f1f5f9;
    background: linear-gradient(145deg, #f8fafc, #f8fafc);
}

.quick-action--blue {
    color: var(--blue);
    border-color: #dceafb;
    background: linear-gradient(145deg, #fbfdff, #eff7ff);
}

.quick-action--wide {
    grid-column: 1 / -1;
    min-height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    grid-template-columns: unset;
    place-content: unset;
    justify-items: unset;
    color: var(--primary);
    border-color: #e2e8f0;
    background: linear-gradient(90deg, #f8fafc, #f1f5f9);
}

.quick-action--wide i,
.quick-action--wide svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quick-action--wide span {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.quick-action--wide small {
    display: none;
}

.copyright-bar {
    min-height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    color: var(--mauve);
    background: rgba(255,255,255,.68);
    font-size: var(--fs-xs);
}

.copyright-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.toast {
    position: fixed;
    z-index: 200;
    bottom: 22px;
    left: 22px;
    min-width: 250px;
    max-width: calc(100vw - 44px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d7eadf;
    border-radius: 14px;
    color: var(--success);
    background: rgba(250,255,252,.96);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: .25s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast__icon {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--white);
    background: var(--success);
}

.toast__icon svg {
    width: 17px;
    height: 17px;
}

/* Collapsed desktop sidebar */

.app-shell.is-collapsed .sidebar {
    width: var(--sidebar-collapsed);
}

.app-shell.is-collapsed .workspace {
    margin-inline-start: var(--sidebar-collapsed);
}

.app-shell.is-collapsed .brand__text,
.app-shell.is-collapsed .nav-section__label,
.app-shell.is-collapsed .nav-item__label,
.app-shell.is-collapsed .nav-chevron,
.app-shell.is-collapsed .nav-submenu,
.app-shell.is-collapsed .sidebar__upgrade {
    display: none !important;
}

.app-shell.is-collapsed .sidebar__head {
    justify-content: center;
    padding-inline: 10px;
}

.app-shell.is-collapsed .sidebar__nav {
    padding-inline: 10px;
}

.app-shell.is-collapsed .sidebar__footer {
    padding-inline: 10px;
}

.app-shell.is-collapsed .sidebar-collapse-control {
    padding-inline: 0;
}

.app-shell.is-collapsed .sidebar-collapse-control__label {
    display: none;
}

.app-shell.is-collapsed .nav-section + .nav-section {
    margin-top: 3px;
    padding-top: 0;
    border-top: 0;
}

.app-shell.is-collapsed .nav-item {
    justify-content: center;
    gap: 0;
    min-height: 52px;
    padding-inline: 0;
}

.app-shell.is-collapsed .nav-item__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
}

.app-shell.is-collapsed .nav-badge {
    position: absolute;
    top: 4px;
    left: 3px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #fff;
    font-size: var(--fs-xs);
}

@media (max-width: 1450px) {
    .topbar-pill {
        padding-inline: 11px;
    }

    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .kpi-card:nth-child(4),
    .kpi-card:nth-child(5) {
        grid-column: span 1;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1.5fr;
    }

    .panel--quick-view {
        grid-column: 1 / -1;
    }

    .quick-view {
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
    }

    .quick-view .button {
        height: 57px;
    }
}

@media (max-width: 1180px) {
    .topbar__group--profile {
        gap: 6px;
    }

    .topbar-pill span {
        display: none;
    }

    .topbar-pill {
        width: 44px;
        justify-content: center;
        padding: 0;
    }

    .topbar-pill .dropdown-caret {
        display: none;
    }

    .profile-menu__button {
        min-width: 158px;
    }

    .lower-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }

    .quick-action--wide {
        grid-column: auto;
        min-height: 96px;
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) {
    .topbar .sidebar-toggle {
        display: none;
    }
}

@media (max-width: 900px) {
    :root {
        --topbar-height: 70px;
    }

    .sidebar {
        width: min(310px, 88vw);
        transform: translateX(110%);
    }

    .sidebar__mobile-close {
        display: inline-flex !important;
    }

    .workspace,
    .app-shell.is-collapsed .workspace {
        margin-inline-start: 0;
    }

    .app-shell.is-collapsed .sidebar {
        width: min(310px, 88vw);
    }

    .app-shell.is-collapsed .brand__text,
    .app-shell.is-collapsed .nav-section__label,
    .app-shell.is-collapsed .nav-item__label,
    .app-shell.is-collapsed .nav-chevron,
    .app-shell.is-collapsed .sidebar__upgrade {
        display: initial !important;
    }

    .app-shell.is-collapsed .nav-submenu:not([hidden]) {
        display: grid !important;
    }

    .app-shell.is-collapsed .sidebar__nav {
        padding: 16px 14px 18px;
    }

    .app-shell.is-collapsed .sidebar__footer {
        padding: 12px 14px 16px;
    }

    .app-shell.is-collapsed .sidebar-collapse-control {
        padding: 8px 12px;
    }

    .app-shell.is-collapsed .sidebar-collapse-control__label {
        display: inline;
    }

    .app-shell.is-collapsed .nav-section + .nav-section {
        margin-top: 3px;
        padding-top: 0;
        border-top: 0;
    }

    .app-shell.is-collapsed .nav-item {
        justify-content: flex-start;
        gap: 11px;
        padding: 7px 10px;
    }

    .app-shell.is-collapsed .nav-item__icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .app-shell.is-collapsed .nav-badge {
        position: static;
        margin-inline-start: auto;
        min-width: 24px;
        height: 22px;
        padding: 0 7px;
        border: 0;
        font-size: var(--fs-xs);
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .topbar {
        padding: 9px 16px;
    }

    .topbar__group--profile > .dropdown:not(.profile-menu) {
        display: none;
    }

    .main-content {
        padding: 14px;
    }

    .welcome-card {
        grid-template-columns: 1fr auto;
        padding: 20px;
    }

    .welcome-illustration {
        display: none;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .panel--quick-view {
        grid-column: auto;
    }

    .quick-view {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-chart {
        grid-template-columns: 190px 1fr;
    }
}

@media (max-width: 620px) {
    .topbar {
        gap: 8px;
        padding-inline: 10px;
    }

    .profile-menu__button {
        min-width: 0;
        width: 48px;
        padding: 3px;
    }

    .profile-menu__text,
    .profile-menu__button .dropdown-caret {
        display: none;
    }

    .topbar__actions {
        gap: 6px;
    }

    .notification-menu {
        display: block;
        flex: 0 0 auto;
    }

    .notification-button {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .main-content {
        padding: 10px;
    }

    .welcome-card {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .welcome-card__date {
        width: 100%;
    }

    .date-card {
        width: 100%;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .kpi-card {
        min-height: 92px;
    }

    .quick-view {
        grid-template-columns: 1fr;
    }

    .services-chart {
        grid-template-columns: 1fr;
    }

    .chart-legend {
        grid-template-columns: 1fr 1fr;
    }

    .line-chart {
        overflow-x: auto;
    }

    .line-chart__svg,
    .line-chart__x {
        min-width: 600px;
    }

    .panel__header--table {
        align-items: stretch;
    }

    .table-tools,
    .table-search {
        width: 100%;
    }

    .table-tools {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .copyright-bar {
        flex-wrap: wrap;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

body,
button,
input,
textarea {
    font-family: "Bahij_TheSansArabic", Tahoma, Arial, sans-serif;
}

body {
    background: radial-gradient(circle at 2% 0%, rgba(148, 163, 184, .07), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, #f8fafc 100%);
}

/* Shared professional card language */

.welcome-card,
.kpi-card,
.panel,
.sidebar__upgrade {
    border-color: var(--border);
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
}

.welcome-card {
    min-height: 142px;
    padding: 25px 30px;
    border-radius: 28px;
    background: radial-gradient(circle at 12% 115%, rgba(148, 163, 184, .17), transparent 35%),
        radial-gradient(circle at 86% 10%, rgba(148, 163, 184, .12), transparent 32%),
        linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 16px 45px rgba(51, 65, 85, .06);
}

.welcome-card h1 {
    color: var(--text);
    font-size: var(--fs-display);
    font-weight: 800;
    line-height: 1.25;
}

.welcome-card p {
    color: var(--muted);
    font-size: var(--fs-lg);
}

.eyebrow,
.panel__eyebrow {
    color: var(--muted);
    font-size: var(--fs-md);
    font-weight: 900;
}

.kpi-grid {
    gap: 14px;
    margin-top: 18px;
}

.kpi-card {
    position: relative;
    min-height: 138px;
    align-items: flex-start;
    gap: 14px;
    overflow: hidden;
    padding: 20px;
    border-radius: 20px;
}

.kpi-card:hover {
    border-color: #e2e8f0;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.kpi-card__icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.kpi-card__label {
    margin: 0 0 5px;
    color: var(--mauve);
    font-size: var(--fs-base);
    font-weight: 700;
}

.kpi-card__value {
    margin: 0;
    color: var(--text);
    font-size: var(--fs-display);
    font-weight: 800;
    line-height: 1.1;
}

.kpi-card .trend {
    margin-top: 8px;
    font-size: var(--fs-sm);
}

.dashboard-grid,
.lower-grid {
    gap: 18px;
    margin-top: 18px;
}

.panel {
    border-radius: 24px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 45px rgba(51, 65, 85, .055);
}

.panel__header {
    min-height: 74px;
    padding: 18px 20px;
    border-bottom-color: #f1f5f9;
    background: #f8fafc;
}

.panel__header h2 {
    color: var(--text);
    font-size: var(--fs-2xl);
    font-weight: 800;
}

.panel__more {
    width: 38px;
    height: 38px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #fff;
}

.panel__more:hover,
.panel__more:focus-visible {
    color: var(--slate);
    border-color: #e2e8f0;
    background: #f8fafc;
    outline: none;
}

/* Fields, dropdown triggers and search controls */

.topbar-pill,
.profile-menu__button,
.date-card,
.table-search,
.icon-button {
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.topbar-pill,
.profile-menu__button {
    min-height: 52px;
}

.icon-button {
    width: 44px;
    height: 44px;
}

.topbar-pill:hover,
.profile-menu__button:hover,
.date-card:hover,
.table-search:hover,
.icon-button:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.topbar-pill:focus-visible,
.profile-menu__button:focus-visible,
.date-card:focus-visible,
.icon-button:focus-visible,
.table-search:focus-within {
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(100, 116, 139, .09);
    outline: none;
}

.date-card {
    min-height: 76px;
    padding: 10px 12px;
}

.date-card__icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
    color: var(--slate);
    background: #f1f5f9;
}

.date-card strong {
    color: var(--text);
    font-size: var(--fs-lg);
}

.date-card small {
    color: var(--mauve);
    font-size: var(--fs-sm);
}

.table-search {
    width: 250px;
    height: 52px;
    padding: 0 14px;
}

.table-search input {
    height: 100%;
    color: var(--text);
    font-size: var(--fs-base);
    font-weight: 600;
}

.table-search input::placeholder {
    color: var(--mauve);
}

.dropdown__menu {
    top: calc(100% + 8px);
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 22px 60px rgba(51, 65, 85, .18);
}

.dropdown__menu a,
.dropdown__menu button {
    min-height: 43px;
    border-radius: 11px;
    color: var(--slate);
    font-size: var(--fs-base);
    font-weight: 700;
}

.dropdown__menu a:hover,
.dropdown__menu button:hover {
    color: var(--slate);
    background: #f8fafc;
}

/* Buttons match the appointments admin language */

.button {
    min-height: 46px;
    padding-inline: 18px;
    border-radius: 13px;
    font-size: var(--fs-base);
    font-weight: 800;
}

.button--primary {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    box-shadow: 0 9px 22px rgba(51, 65, 85, .18);
}

.button--ghost,
.button--soft {
    border: 1px solid #e2e8f0;
    color: var(--slate);
    background: #fff;
}

.button--ghost:hover,
.button--soft:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* Notification and quick-action cards */

.quick-view {
    gap: 10px;
    padding: 16px;
}

.quick-view__item {
    min-height: 66px;
    padding: 13px 14px;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    box-shadow: none;
}

.quick-view__item:hover {
    border-color: #e2e8f0;
    box-shadow: 0 10px 28px rgba(51, 65, 85, .07);
}

.quick-view__number {
    font-size: var(--fs-4xl);
}

.quick-view__item strong {
    color: var(--text);
    font-size: var(--fs-base);
}

.quick-view__item small {
    color: var(--mauve);
    font-size: var(--fs-xs);
}

.quick-actions {
    gap: 12px;
    padding: 18px;
}

.quick-action {
    min-height: 112px;
    padding: 14px;
    border-color: #f1f5f9;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(51, 65, 85, .035);
}

.quick-action:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
    box-shadow: 0 14px 34px rgba(51, 65, 85, .08);
}

.quick-action--pink,
.quick-action--blue,
.quick-action--wide {
    background: #fff;
}

.quick-action--pink {
    color: var(--muted);
}

.quick-action--blue {
    color: var(--info);
}

.quick-action--wide {
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--slate);
}

/* Professional table card */

.appointments-table th {
    padding: 14px 16px;
    color: var(--mauve);
    background: #f8fafc;
    border-color: #f1f5f9;
    font-size: var(--fs-sm);
    font-weight: 800;
}

.appointments-table td {
    padding: 15px 16px;
    border-color: #f1f5f9;
    color: var(--slate);
    font-size: var(--fs-md);
    vertical-align: middle;
}

.appointment-id {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 9px;
    color: var(--muted);
    background: #f1f5f9;
    font-size: var(--fs-base);
}

.customer strong {
    color: var(--text);
    font-size: var(--fs-base);
}

.customer small {
    color: var(--mauve);
    font-size: var(--fs-sm);
}

.avatar--mini {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 11px;
}

.status {
    min-height: 28px;
    padding-inline: 11px;
    font-size: var(--fs-sm);
}


.sidebar__upgrade {
    border-radius: 20px;
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
}

/* Refined responsive sizing while preserving the existing layout */

@media (max-width: 1180px) {
    .topbar-pill {
        min-height: 44px;
    }

    .quick-action--wide {
        min-height: 112px;
    }
}

@media (max-width: 900px) {
    .welcome-card {
        min-height: 128px;
        padding: 22px;
    }

    .kpi-card {
        min-height: 126px;
    }
}

@media (max-width: 620px) {
    .welcome-card {
        padding: 20px;
        border-radius: 22px;
    }

    .kpi-card,
    .panel {
        border-radius: 20px;
    }

    .kpi-card {
        min-height: 112px;
        align-items: center;
        padding: 17px;
    }

    .kpi-card__value {
        font-size: var(--fs-5xl);
    }

    .panel__header {
        padding: 16px;
    }

    .table-search {
        width: 100%;
    }
}

.currency-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-md);
    font-weight: 900;
    line-height: 1;
    unicode-bidi: isolate;
}

.kpi-card__value--money {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    direction: ltr;
}

.chart-unit-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid #f1f5f9;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--slate);
    font-size: var(--fs-xs);
    font-weight: 800;
    white-space: nowrap;
}

.chart-box {
    position: relative;
    width: 100%;
    min-height: 280px;
}

.chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

.services-chart--pro {
    min-height: 300px;
    display: grid;
    grid-template-columns: minmax(220px, .95fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 18px;
    padding: 18px 16px 20px;
}

.chart-box--donut {
    min-height: 200px;
    display: grid;
    place-items: center;
}

.chart-center-badge {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 106px;
    height: 106px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: inset 0 0 0 1px #f1f5f9, 0 10px 22px rgba(71, 85, 105, .08);
    z-index: 2;
}

.chart-center-badge small {
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.chart-center-badge strong {
    margin-top: 3px;
    font-size: var(--fs-5xl);
    line-height: 1;
    color: var(--text-2);
}

.chart-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.chart-top-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 6px;
}

.chart-top-metrics--stacked {
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-top-metrics--financial {
    padding-top: 2px;
}

.mini-figure {
    min-height: 76px;
    padding: 11px 12px;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    display: grid;
    align-content: start;
    gap: 4px;
}

.mini-figure--soft {
    min-height: 68px;
    background: #f8fafc;
}

.mini-figure span {
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.mini-figure strong {
    color: var(--text-2);
    font-size: var(--fs-2xl);
    font-weight: 800;
    line-height: 1.25;
}

.mini-figure--money strong {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    direction: ltr;
}

.mini-figure small {
    color: var(--mauve);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.mini-figure small.is-positive {
    color: var(--success);
}

.chart-legend--rich {
    gap: 10px;
}

.chart-legend--rich li {
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    background: #fff;
}

.chart-legend--rich strong {
    font-size: var(--fs-sm);
}

.chart-legend--rich small {
    font-size: var(--fs-xs);
    font-weight: 800;
}

.chart-box--line {
    min-height: 270px;
    padding: 4px 10px 0;
}

.chart-box--bar {
    min-height: 270px;
    padding: 4px 10px 0;
}

.chart-footnote {
    padding: 18px 18px 18px;
    color: var(--mauve);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-align: center;
}

.financial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(330px, .95fr);
    gap: 18px;
    margin-top: 18px;
}

.chart-box--financial {
    min-height: 290px;
    padding: 6px 4px 0;
}

.payments-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, .85fr);
    gap: 14px;
    align-items: stretch;
    padding: 10px 16px 18px;
}

.chart-box--small {
    min-height: 255px;
}

.financial-breakdown {
    display: grid;
    gap: 10px;
    align-content: start;
}

.financial-row {
    padding: 12px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.financial-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.financial-row-label {
    color: var(--mauve);
    font-size: var(--fs-sm);
    font-weight: 800;
}

.financial-row-value {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--text-2);
    font-size: var(--fs-base);
    font-weight: 900;
    direction: ltr;
}

.financial-progress {
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: #f1f5f9;
}

.financial-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #64748b, #475569);
}

.financial-progress.success span {
    background: linear-gradient(90deg, #54c0b5, #2e8c84);
}

.financial-progress.danger span {
    background: linear-gradient(90deg, #f5b36a, #f08c39);
}

@media (max-width: 1180px) {
    .services-chart--pro,
    .payments-layout,
    .financial-grid {
        grid-template-columns: 1fr;
    }

    .chart-top-metrics,
    .chart-top-metrics--stacked {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .chart-top-metrics,
    .chart-top-metrics--stacked,
    .chart-top-metrics--financial {
        grid-template-columns: 1fr;
    }

    .services-chart--pro {
        padding-inline: 12px;
    }

    .chart-center-badge {
        width: 96px;
        height: 96px;
    }

    .chart-box--line,
    .chart-box--financial,
    .chart-box--small {
        min-height: 235px;
    }
}

.money-value {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    direction: ltr;
    white-space: nowrap;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

.money-number {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.currency-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    unicode-bidi: isolate;
}

.kpi-card__value--money,
.mini-figure--money strong,
.financial-row-value {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    direction: ltr;
    unicode-bidi: isolate;
}

.executive-chart-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    min-width: 164px;
    max-width: 260px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(.98);
    transition: opacity .16s ease, transform .16s ease;
}

.executive-chart-tooltip.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.executive-chart-tooltip__inner {
    padding: 12px 14px;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(31, 41, 55, .16);
}

.executive-chart-tooltip--dark .executive-chart-tooltip__inner {
    background: rgba(31, 41, 55, .96);
    color: var(--white);
}

.executive-chart-tooltip--light .executive-chart-tooltip__inner {
    background: #fff;
    color: var(--text-2);
    border: 1px solid #f1f5f9;
}

.executive-chart-tooltip-title {
    margin-bottom: 8px;
    font-size: var(--fs-lg);
    font-weight: 900;
    line-height: 1.3;
}

.executive-chart-tooltip-body {
    display: grid;
    gap: 8px;
}

.executive-chart-tooltip-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.executive-chart-tooltip--dark .executive-chart-tooltip-row {
    grid-template-columns: auto minmax(0, 1fr);
}

.executive-chart-tooltip-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(226, 232, 240, 0.32);
}

.executive-chart-tooltip-label {
    min-width: 0;
    color: inherit;
    font-size: var(--fs-sm);
    font-weight: 800;
    line-height: 1.45;
}

.executive-chart-tooltip--light .executive-chart-tooltip-label {
    color: var(--mauve);
}

.executive-chart-tooltip-value {
    color: inherit;
    font-size: var(--fs-md);
    font-weight: 900;
    line-height: 1.4;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.executive-chart-tooltip-money {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.executive-chart-tooltip-money .currency-mark {
    font-size: var(--fs-sm);
}

.currency-mark {
    display: none !important;
}

.money-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    direction: ltr;
    flex-direction: row-reverse;
    white-space: nowrap;
    font-weight: inherit;
    unicode-bidi: isolate;
}

.money-value .icon-saudi_riyal {
    transform: translateY(1px);
}

.kpi-card__value--money,
.mini-figure--money strong,
.financial-row-value {
    direction: ltr;
}

.chart-unit-note .icon-saudi_riyal {
    font-size: var(--fs-xl);
    transform: translateY(1px);
}

.executive-chart-tooltip-value .money-value {
    gap: 4px;
}

.executive-chart-tooltip-value .icon-saudi_riyal {
    font-size: var(--fs-xl);
}

.executive-chart-tooltip-money {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    direction: ltr;
    flex-direction: row-reverse;
    white-space: nowrap;
    unicode-bidi: isolate;
}

.executive-chart-tooltip-money .icon-saudi_riyal {
    font-size: var(--fs-xl);
    transform: translateY(1px);
}

/* Keep glyph orientation fixed; only swap number/symbol order with language */
html[dir="ltr"] .money-value,
html[dir="ltr"] .executive-chart-tooltip-money,
html[dir="ltr"] .kpi-card__value--money,
html[dir="ltr"] .mini-figure--money strong,
html[dir="ltr"] .financial-row-value {
    flex-direction: row;
}

.fa-solid,
.fa-regular,
.fa-brands {
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.nav-item__icon > i {
    font-size: var(--fs-2xl);
}

.icon-button > i {
    font-size: var(--fs-3xl);
}

.topbar-pill > i:not(.dropdown-caret) {
    width: 19px;
    display: inline-grid;
    place-items: center;
    font-size: var(--fs-xl);
}

.dropdown-caret {
    width: 15px !important;
    height: 15px !important;
    display: inline-grid;
    place-items: center;
    margin-inline-start: 2px;
    font-size: var(--fs-sm);
    line-height: 15px;
}

.dropdown__menu a > i,
.dropdown__menu button > i {
    width: 17px;
    display: inline-grid;
    place-items: center;
    font-size: var(--fs-lg);
}

.kpi-card__icon > i {
    font-size: var(--fs-4xl);
}

.trend > i {
    width: 13px;
    display: inline-grid;
    place-items: center;
    font-size: var(--fs-sm);
}

.quick-view__item > i {
    justify-self: end;
    width: 20px;
    display: inline-grid;
    place-items: center;
    font-size: var(--fs-2xl);
}

.quick-view__item--orange > i {
    color: var(--warning);
}

.quick-view__item--green > i {
    color: var(--success);
}

.quick-view__item--purple > i {
    color: var(--muted-2);
}

.table-search > i {
    width: 17px;
    display: inline-grid;
    place-items: center;
    color: var(--muted);
    font-size: var(--fs-lg);
}


.quick-action > i {
    font-size: var(--fs-4xl);
}

.toast__icon > i {
    font-size: var(--fs-lg);
}

.nav-chevron {
    display: inline-grid;
    place-items: center;
    font-size: var(--fs-xs);
    line-height: 16px;
}

.panel__more > i {
    font-size: var(--fs-xl);
}

.notification-button > i {
    font-size: var(--fs-2xl);
}

.season-icon {
    font-size: var(--fs-xl) !important;
}

.notification-menu {
    position: relative;
}

.notification-button {
    position: relative;
}

.notification-button[aria-expanded="true"] {
    color: var(--primary-2);
    border-color: #e2e8f0;
    background: #f8fafc;
    box-shadow: 0 8px 22px rgba(71, 85, 105, .10);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, #94a3b8, #475569);
    box-shadow: 0 5px 12px rgba(71, 85, 105, .24);
    font-size: var(--fs-xs);
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.notification-badge.is-empty {
    display: none;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 500;
    width: min(390px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 24px 60px rgba(31, 41, 55, .18), 0 8px 20px rgba(31, 41, 55, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.985);
    transform-origin: top left;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.notification-menu.is-open .notification-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.notification-panel__header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.notification-panel__heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.notification-panel__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--white);
    background: linear-gradient(145deg, var(--primary-2), var(--primary));
    box-shadow: 0 8px 18px rgba(71, 85, 105, .22);
    font-size: var(--fs-xl);
}

.notification-panel__heading h2 {
    margin: 0;
    color: var(--text-2);
    font-size: var(--fs-xl);
    font-weight: 900;
}

.notification-panel__heading p {
    margin: 3px 0 0;
    color: var(--mauve);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.notification-mark-all {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    color: var(--slate);
    background: #fff;
    font-family: inherit;
    font-size: var(--fs-xs);
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: .18s ease;
}

.notification-mark-all:hover:not(:disabled) {
    border-color: #e2e8f0;
    background: #f8fafc;
    transform: translateY(-1px);
}

.notification-mark-all:disabled {
    color: var(--mauve);
    cursor: default;
    background: #f8fafc;
}

.notification-panel__body {
    max-height: 390px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.notification-panel__body::-webkit-scrollbar {
    width: 5px;
}

.notification-panel__body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #e2e8f0;
}

.notification-item {
    position: relative;
    width: 100%;
    min-height: 92px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 9px;
    align-items: start;
    gap: 11px;
    padding: 14px 15px;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-2);
    background: #fff;
    text-align: right;
    font-family: inherit;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.is-unread {
    background: linear-gradient(90deg, #fff 0%, #f8fafc 100%);
}

.notification-item.is-unread:hover {
    background: #f8fafc;
}

.notification-item__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: var(--fs-lg);
}

.notification-item__icon--pink {
    color: var(--muted);
    background: #f1f5f9;
}

.notification-item__icon--green {
    color: var(--success);
    background: #e7f7f0;
}

.notification-item__icon--purple {
    color: var(--purple);
    background: #efe9fa;
}

.notification-item__icon--orange {
    color: var(--warning);
    background: #fff1dd;
}

.notification-item__content {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.notification-item__content strong {
    overflow: hidden;
    color: var(--text-2);
    font-size: var(--fs-md);
    font-weight: 900;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item__content small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--mauve);
    font-size: var(--fs-xs);
    font-weight: 650;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-item__content time {
    margin-top: 2px;
    color: var(--mauve);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.notification-item__unread {
    width: 8px;
    height: 8px;
    align-self: center;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, .10);
}

.notification-item:not(.is-unread) .notification-item__unread {
    display: none;
}

.notification-panel__footer {
    padding: 10px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.notification-panel__footer button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    color: var(--slate);
    background: #fff;
    font-family: inherit;
    font-size: var(--fs-sm);
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
}

.notification-panel__footer button:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.notification-panel__footer i {
    font-size: var(--fs-xs);
}

@media (max-width: 620px) {
    .notification-panel {
        position: fixed;
        top: 72px;
        right: 14px;
        left: 14px;
        width: auto;
        transform-origin: top center;
    }

    .notification-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .notification-mark-all {
        width: 100%;
    }

    .notification-panel__body {
        max-height: min(55vh, 390px);
    }
}

body {
    background: radial-gradient(circle at 8% 0%, rgba(148, 163, 184, .10), transparent 25%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.sidebar {
    box-shadow: -12px 0 42px rgba(15, 23, 42, .045);
}

.brand:focus-visible {
    outline-color: rgba(100, 116, 139, .22);
}

.brand__mark {
    filter: drop-shadow(0 8px 13px rgba(51, 65, 85, .18));
}

.brand__mark span {
    background: linear-gradient(135deg, #94a3b8, #475569);
}

.nav-item.is-active {
    color: var(--text-2);
    background: linear-gradient(90deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: inset -3px 0 0 #64748b, 0 8px 22px rgba(15, 23, 42, .06);
}

.nav-item.is-active .nav-item__icon,
.notification-panel__icon {
    color: var(--white);
    background: linear-gradient(145deg, #64748b, #334155);
    box-shadow: 0 8px 18px rgba(51, 65, 85, .18);
}

.nav-badge,
.notification-badge {
    background: linear-gradient(135deg, #64748b, #334155);
    box-shadow: 0 5px 12px rgba(51, 65, 85, .20);
}

.kpi-card__icon--purple,
.kpi-card__icon--orange,
.kpi-card__icon--green,
.kpi-card__icon--red,
.kpi-card__icon--blue {
    color: var(--slate);
    background: #f1f5f9;
}

.quick-view__item--orange,
.quick-view__item--green,
.quick-view__item--purple {
    background: linear-gradient(90deg, #fbfcfd, #f1f5f9);
}

.quick-view__item--orange > i,
.quick-view__item--green > i,
.quick-view__item--purple > i,
.quick-view__item--orange > svg,
.quick-view__item--green > svg,
.quick-view__item--purple > svg {
    color: var(--muted);
}

.quick-action--pink,
.quick-action--blue,
.quick-action--wide {
    color: var(--slate);
    border-color: #dbe3eb;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
}

.button--primary {
    color: var(--white);
    background: linear-gradient(135deg, #64748b, #334155);
}

.chart-unit-note {
    color: var(--slate);
    border-color: #dbe3eb;
    background: #f1f5f9;
}

.notification-button[aria-expanded="true"] {
    color: var(--slate);
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .09);
}

.notification-panel {
    border-color: #e2e8f0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16), 0 8px 20px rgba(15, 23, 42, .06);
}

.notification-panel__header,
.notification-panel__footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
}

.notification-panel__heading h2,
.notification-item__content strong {
    color: var(--text);
}

.notification-panel__heading p,
.notification-item__content small,
.notification-item__content time {
    color: var(--muted);
}

.notification-mark-all,
.notification-panel__footer button {
    color: var(--slate);
    border-color: #dbe3eb;
    background: #fff;
}

.notification-mark-all:hover:not(:disabled),
.notification-panel__footer button:hover,
.notification-item:hover,
.notification-item.is-unread:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.notification-item,
.notification-item.is-unread {
    color: var(--text-2);
    border-color: #e8edf2;
    background: #fff;
}

.notification-item__icon--pink,
.notification-item__icon--green,
.notification-item__icon--purple,
.notification-item__icon--orange {
    color: var(--slate);
    background: #f1f5f9;
}

.notification-item__unread {
    background: #64748b;
    box-shadow: 0 0 0 4px rgba(100, 116, 139, .12);
}

.executive-chart-tooltip--dark .executive-chart-tooltip__inner {
    background: rgba(31, 41, 55, .97);
}

.copyright-dot,
.notification-dot {
    background: #64748b;
}

.chart-legend span {
    background: var(--legend);
}

.financial-progress span {
    background: linear-gradient(90deg, #5B8C5A, #7AA36E);
}

.financial-progress.success span {
    background: linear-gradient(90deg, #4C7A9F, #6A9BBF);
}

.financial-progress.danger span {
    background: linear-gradient(90deg, #C47A44, #D99A63);
}

.status--confirmed {
    color: var(--success);
    background: var(--success-soft);
}

.status--waiting {
    color: var(--warning);
    background: var(--warning-soft);
}

.quick-view__item--purple {
    background: linear-gradient(90deg, #f7f5ff, #eee9fb);
}

.quick-view__item--orange > i,
.quick-view__item--orange > svg {
    color: var(--warning);
}

.quick-view__item--green > i,
.quick-view__item--green > svg {
    color: var(--success);
}

.quick-view__item--purple > i,
.quick-view__item--purple > svg {
    color: var(--purple);
}

.notification-badge {
    background: linear-gradient(135deg, #e55c68, #c7384f);
    box-shadow: 0 5px 12px rgba(199, 56, 79, .24);
}

.notification-panel__icon {
    color: var(--white);
    background: linear-gradient(145deg, #64748b, #334155);
    box-shadow: 0 8px 18px rgba(51, 65, 85, .18);
}

.notification-item.is-unread {
    background: linear-gradient(90deg, #fff 0%, #fff8f2 100%);
}

.notification-item.is-unread:hover {
    background: #fff3e8;
}

.notification-item__icon--pink {
    color: var(--danger);
    background: #fdeaf0;
}

.notification-item__icon--purple {
    color: var(--info);
    background: #eaf0ff;
}

.notification-item__unread {
    background: #d94f72;
    box-shadow: 0 0 0 4px rgba(217, 79, 114, .12);
}

.notification-dot {
    background: #d94f72;
}

.toast__icon {
    background: var(--success);
}

.brand-wordmark,
.panel__eyebrow,
.stat-card__eyebrow,
.chart-unit-note,
.nav-group.is-open > .nav-item--toggle .nav-chevron,
.nav-group.is-open > .nav-item--toggle .nav-item__label,
.notification-button[aria-expanded="true"],
.quick-actions__title,
.table-card__title {
    color: var(--primary);
}

.nav-item.is-active {
    color: var(--primary);
    background: linear-gradient(90deg, #ffffff 0%, var(--teal-soft) 100%);
    box-shadow: inset -3px 0 0 var(--gold), 0 10px 24px rgba(61, 166, 163, .12);
}

.nav-item.is-active .nav-item__icon,
.notification-panel__icon {
    color: var(--white);
    background: linear-gradient(145deg, var(--primary-2), var(--primary));
    box-shadow: 0 10px 18px rgba(61, 166, 163, .22);
}

.nav-item__icon {
    background: #f6fbfb;
    color: var(--muted);
}

.nav-chevron {
    color: var(--muted-2);
}

.nav-badge {
    color: var(--gold-soft);
    background: linear-gradient(135deg, #edd183, var(--gold));
    box-shadow: 0 5px 12px rgba(211, 161, 11, .25);
}

.kpi-card,
.panel,
.table-card,
.quick-actions,
.notification-panel {
    border-color: #e6efee;
}

.kpi-card:hover,
.panel:hover,
.quick-actions:hover {
    border-color: #d7ebea;
    box-shadow: 0 14px 28px rgba(61, 166, 163, .08);
}

.kpi-card__icon--purple,
.kpi-card__icon--blue {
    color: var(--primary);
    background: #eaf7f6;
}

.kpi-card__icon--orange {
    color: var(--gold-deep);
    background: var(--gold-soft);
}

.kpi-card__icon--green {
    color: var(--teal-deep);
    background: #e8f7f0;
}

.kpi-card__icon--red {
    color: var(--gold-deep);
    background: #f8f2df;
}

.button--primary,
.notification-mark-all:hover:not(:disabled),
.notification-panel__footer button:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
}

.button--ghost,
.notification-mark-all,
.notification-panel__footer button,
.chart-unit-note {
    border-color: #d8ebe8;
    background: #fbfefd;
}

.chart-unit-note {
    color: var(--gold-deep);
}

.chart-unit-note .icon-saudi_riyal {
    color: var(--primary);
}

.quick-view__item--purple {
    background: linear-gradient(90deg, #f6fbfb, #eef8f7);
}

.quick-view__item--purple > i,
.quick-view__item--purple > svg {
    color: var(--primary);
}

.notification-panel__header,
.notification-panel__footer {
    background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
}

.notification-item:hover,
.notification-item.is-unread:hover {
    border-color: #d8ebe8;
}

.table-search:focus-within,
.field input:focus,
.field textarea:focus,
.modern-select.is-open .modern-select-trigger {
    border-color: rgba(61, 166, 163, .48);
    box-shadow: 0 0 0 4px rgba(61, 166, 163, .10);
}

.panel--services {
    min-width: 0;
}

.services-chart--pro {
    grid-template-columns: minmax(255px, .95fr) minmax(330px, 1.2fr);
    align-items: start;
    gap: 24px;
}

.chart-box--donut {
    min-height: 300px;
}

.chart-side {
    min-width: 0;
    gap: 16px;
}

.chart-top-metrics--stacked {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 12px;
}

.mini-figure--soft {
    min-height: 92px;
    padding: 14px 14px 12px;
}

.mini-figure--soft span {
    font-size: var(--fs-sm);
}

.mini-figure--soft strong {
    font-size: var(--fs-lg);
    line-height: 1.45;
}

.mini-figure--soft small {
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.chart-legend--rich li {
    padding: 10px 12px;
}

@media (max-width: 1280px) {
    .services-chart--pro {
        grid-template-columns: 1fr;
    }

    .chart-top-metrics--stacked {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .chart-top-metrics--stacked {
        grid-template-columns: 1fr;
    }
}

.panel--services {
    align-self: start;
    overflow: hidden;
}

.services-chart--pro {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 16px 20px;
    overflow: hidden;
}

.chart-box--donut {
    width: min(100%, 340px);
    min-height: 270px;
    margin-inline: auto;
}

.chart-side {
    width: 100%;
    min-width: 0;
    gap: 14px;
}

.chart-top-metrics--stacked {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mini-figure--soft {
    min-width: 0;
    min-height: 88px;
    padding: 13px 14px;
}

.mini-figure--soft strong,
.mini-figure--soft span,
.mini-figure--soft small {
    overflow-wrap: anywhere;
}

.chart-legend--rich {
    width: 100%;
    grid-template-columns: 1fr;
}

.chart-legend--rich li {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
}

.chart-legend--rich strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .chart-top-metrics--stacked {
        grid-template-columns: 1fr;
    }

    .chart-box--donut {
        min-height: 240px;
    }
}

.chart-top-metrics--financial .mini-figure {
    justify-items: start;
    text-align: start;
}

.chart-top-metrics--financial .mini-figure span,
.chart-top-metrics--financial .mini-figure small {
    display: block;
    width: 100%;
    text-align: start;
}

.chart-top-metrics--financial .mini-figure strong {
    justify-self: start;
}

.chart-top-metrics--financial .mini-figure {
    direction: inherit;
    justify-items: stretch;
    text-align: start;
}

.chart-top-metrics--financial .mini-figure > span,
.chart-top-metrics--financial .mini-figure > small {
    width: 100%;
    text-align: start;
    unicode-bidi: isolate;
}

.chart-top-metrics--financial .mini-figure > .money-value {
    width: auto;
    max-width: 100%;
    justify-self: start;
    justify-content: flex-start;
    margin-inline: 0;
    flex-wrap: nowrap;
}

.chart-top-metrics--financial .mini-figure > .money-value .money-number,
.chart-top-metrics--financial .mini-figure > .money-value .icon-saudi_riyal {
    flex: 0 0 auto;
}

.chart-top-metrics--financial .mini-figure > .money-value > .money-number,
.chart-top-metrics--financial .mini-figure > .money-value > .icon-saudi_riyal {
    display: inline-block;
    width: auto;
    min-width: 0;
    text-align: initial;
}

.chart-top-metrics--financial .mini-figure > .money-value {
    display: inline-flex;
    width: auto;
    max-width: max-content;
    align-items: baseline;
    justify-content: flex-start;
    gap: 5px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.panel--weekly .chart-top-metrics {
    margin-top: 16px;
    padding-top: 0;
}

.panel--financial .chart-top-metrics--financial {
    margin-top: 16px;
    padding-top: 0;
}

.appointments-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    padding: 0 16px 16px;
    align-items: end;
}

.filter-field {
    display: grid;
    gap: 6px;
}

.filter-field--wide {
    min-width: 0;
}

.filter-field span {
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 800;
}

.filter-reset {
    align-self: end;
}


@media (max-width: 1080px) {
    .appointments-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .appointments-filters {
        grid-template-columns: 1fr;
    }

    .filter-reset {
        width: 100%;
    }
}

.appointments-filters {
    padding-top: 15px;
}

.filter-field {
    position: relative;
}

.filter-field span {
    margin-bottom: 1px;
    color: var(--muted);
    font-size: var(--fs-base);
    font-weight: 900;
}

.filter-field--select::after {
    content: "";
    position: absolute;
    left: 16px;
    bottom: 14px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: var(--fs-sm);
    color: var(--muted-2);
    pointer-events: none;
    transition: transform .2s ease, color .2s ease;
}

.filter-field--select:hover::after {
    color: var(--primary);
}

.table-view-all,
.filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.table-view-all {
    min-height: 46px;
    color: var(--white);
    border: 0;
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    box-shadow: 0 10px 20px rgba(61, 166, 163, .18);
}

.table-view-all:hover {
    background: linear-gradient(135deg, var(--primary), var(--teal-deep));
    box-shadow: 0 12px 24px rgba(61, 166, 163, .22);
}

.filter-reset {
    box-sizing: border-box;
    min-height: var(--field-select-height, 48px);
    height: var(--field-select-height, 48px);
    padding-block: 0;
    white-space: nowrap;
    color: var(--gold-deep);
    border: 1px solid #efdfaa;
    background: linear-gradient(180deg, #fffdf7 0%, #fbf5e3 100%);
    box-shadow: 0 8px 18px rgba(211, 161, 11, .10);
}

.filter-reset:hover {
    border-color: #e8cf7d;
    background: linear-gradient(180deg, #fffdf7 0%, #f8efcf 100%);
}


.table-view-all i,
.filter-reset i {
    font-size: var(--fs-base);
}

.appointments-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
}

.filter-field {
    position: relative;
    min-width: 0;
}

/* White selected-count circles. */

/* Empty checkbox squares: never display the tick icon. */


/* Row action buttons — single source of truth (CSS masks, no FA glyphs). */
.row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    flex-wrap: nowrap;
    direction: inherit;
}

html[dir="rtl"] .row-actions {
    direction: rtl;
}

html[dir="ltr"] .row-actions {
    direction: ltr;
}

html[dir="ltr"] .appointments-table td:has(.row-actions) {
    text-align: left;
}

.row-actions button {
    position: relative;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    overflow: visible;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.row-actions button > i,
.row-actions button > svg {
    display: none;
}

.row-actions button::before {
    content: "";
    width: 17px;
    height: 17px;
    display: block;
    flex: 0 0 17px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.row-actions__call {
    color: var(--success);
    border-color: #bfe7d8;
    background: #eefaf5;
}

.row-actions__call::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.2 3.5 4.7 4.7c-.7.3-1.1 1-1 1.8.7 7.2 6.5 13 13.7 13.7.8.1 1.5-.3 1.8-1l1.2-2.5c.3-.7.1-1.5-.5-1.9l-3.1-2.1c-.6-.4-1.4-.3-1.9.2l-1.2 1.2a12.2 12.2 0 0 1-4-4L10.9 9c.5-.5.6-1.3.2-1.9L9 4c-.4-.6-1.2-.8-1.8-.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.2 3.5 4.7 4.7c-.7.3-1.1 1-1 1.8.7 7.2 6.5 13 13.7 13.7.8.1 1.5-.3 1.8-1l1.2-2.5c.3-.7.1-1.5-.5-1.9l-3.1-2.1c-.6-.4-1.4-.3-1.9.2l-1.2 1.2a12.2 12.2 0 0 1-4-4L10.9 9c.5-.5.6-1.3.2-1.9L9 4c-.4-.6-1.2-.8-1.8-.5Z'/%3E%3C/svg%3E");
}

.row-actions__edit {
    color: var(--warning);
    border-color: #fcd6a3;
    background: #fff7ed;
}

.row-actions__edit::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 20h4.2L19 9.2 14.8 5 4 15.8V20Zm2-3.4 8.8-8.8 1.4 1.4-8.8 8.8H6v-1.4ZM17.6 2.2a1.7 1.7 0 0 1 2.4 0l1.8 1.8a1.7 1.7 0 0 1 0 2.4L20.2 8 16 3.8l1.6-1.6Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 20h4.2L19 9.2 14.8 5 4 15.8V20Zm2-3.4 8.8-8.8 1.4 1.4-8.8 8.8H6v-1.4ZM17.6 2.2a1.7 1.7 0 0 1 2.4 0l1.8 1.8a1.7 1.7 0 0 1 0 2.4L20.2 8 16 3.8l1.6-1.6Z'/%3E%3C/svg%3E");
}

.row-actions__delete {
    color: var(--danger);
    border-color: #fecdd3;
    background: #fff1f2;
}

.row-actions__delete::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 3h6l1 2h4v2H4V5h4l1-2Zm-3 6h12l-1 11H7L6 9Zm3 2 .5 7h1L10 11H9Zm4 0v7h1v-7h-1Zm3 0-.5 7h1L17 11h-1Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 3h6l1 2h4v2H4V5h4l1-2Zm-3 6h12l-1 11H7L6 9Zm3 2 .5 7h1L10 11H9Zm4 0v7h1v-7h-1Zm3 0-.5 7h1L17 11h-1Z'/%3E%3C/svg%3E");
}

.row-actions__view {
    color: var(--info);
    border-color: #bfdbfe;
    background: #eff6ff;
}

.row-actions__view::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5C7 5 2.7 8.1 1 12c1.7 3.9 6 7 11 7s9.3-3.1 11-7c-1.7-3.9-6-7-11-7Zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10Zm0-8a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5C7 5 2.7 8.1 1 12c1.7 3.9 6 7 11 7s9.3-3.1 11-7c-1.7-3.9-6-7-11-7Zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10Zm0-8a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E");
}

.row-actions__print {
    color: var(--slate);
    border-color: #cbd5e1;
    background: #f8fafc;
}

.row-actions__print::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h10v5H7V3Zm12 7H5a3 3 0 0 0-3 3v5h4v-2h12v2h4v-5a3 3 0 0 0-3-3ZM7 19h10v2H7v-2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h10v5H7V3Zm12 7H5a3 3 0 0 0-3 3v5h4v-2h12v2h4v-5a3 3 0 0 0-3-3ZM7 19h10v2H7v-2Z'/%3E%3C/svg%3E");
}

.row-actions__more {
    color: var(--slate);
    border-color: #cbd5e1;
    background: #f8fafc;
}

.row-actions__more::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill='black' cx='12' cy='5' r='2'/%3E%3Ccircle fill='black' cx='12' cy='12' r='2'/%3E%3Ccircle fill='black' cx='12' cy='19' r='2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill='black' cx='12' cy='5' r='2'/%3E%3Ccircle fill='black' cx='12' cy='12' r='2'/%3E%3Ccircle fill='black' cx='12' cy='19' r='2'/%3E%3C/svg%3E");
}

.row-actions__call:hover {
    color: var(--white);
    border-color: #16845f;
    background: #16845f;
}

.row-actions__edit:hover {
    color: var(--white);
    border-color: #d97706;
    background: #d97706;
}

.row-actions__delete:hover {
    color: var(--white);
    border-color: #dc2626;
    background: #dc2626;
}

.row-actions__view:hover {
    color: var(--white);
    border-color: #2563eb;
    background: #2563eb;
}

.row-actions__print:hover,
.row-actions__more:hover {
    color: var(--white);
    border-color: #475569;
    background: #475569;
}

.row-actions button:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .24);
    outline-offset: 2px;
}

.pilgrims-row-actions {
    min-width: 210px;
}


html {
    font-size: var(--fs-xl);
}

body {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: optimizeLegibility;
}

/* A consistent, slightly larger type scale across the dashboard. */

.brand__text small,
.profile-menu__text small,
.date-card small {
    font-size: var(--fs-md);
}

.nav-item {
    font-size: var(--fs-lg);
}

.nav-subitem {
    min-height: 39px;
    font-size: var(--fs-base);
}

.nav-subitem small,
.nav-badge {
    font-size: var(--fs-sm);
}

.profile-menu__text strong,
.topbar-pill,
.button {
    font-size: var(--fs-lg);
}

.eyebrow,
.panel__eyebrow {
    font-size: var(--fs-base);
}

.welcome-card p,
.kpi-card__label {
    font-size: var(--fs-lg);
}

.kpi-card .trend,
.trend {
    font-size: var(--fs-md);
}

.panel__header h2 {
    font-size: var(--fs-3xl);
}

.quick-view__item strong {
    font-size: var(--fs-base);
}

.quick-view__item small {
    font-size: var(--fs-sm);
}

.table-search input {
    font-size: var(--fs-base);
}

.appointments-table th {
    font-size: var(--fs-base);
}

.appointments-table td {
    font-size: var(--fs-base);
}

.status-badge,
.source-badge {
    font-size: var(--fs-sm) !important;
}

/* Chart labels outside the canvas. */

.chart-unit-note {
    font-size: var(--fs-md);
}

.chart-center-badge small,
.mini-figure span,
.chart-legend--rich small,
.chart-footnote {
    font-size: var(--fs-md);
}

.chart-center-badge strong {
    font-size: var(--fs-5xl);
}

.mini-figure strong {
    font-size: var(--fs-3xl);
}

.mini-figure small {
    font-size: var(--fs-sm);
}

.chart-legend--rich strong {
    font-size: var(--fs-base);
}

.executive-chart-tooltip-title {
    font-size: var(--fs-lg);
}

.executive-chart-tooltip-label,
.executive-chart-tooltip-value {
    font-size: var(--fs-base);
}

/* Keep the canvas at its CSS size while Chart.js renders at a higher
   internal pixel ratio for sharper Arabic labels and axis values. */

.chart-box canvas {
    image-rendering: auto;
}

@media (max-width: 760px) {
    .panel__header h2 {
        font-size: var(--fs-xl);
    }

    .appointments-table th {
        font-size: var(--fs-sm);
    }

    .appointments-table td {
        font-size: var(--fs-md);
    }
}

:is(
    a[href],
    button:not(:disabled),
    [role="button"]:not([aria-disabled="true"]),
    [data-demo-action],
    [data-sidebar-close],
    [data-nav-toggle],
    .nav-item,
    .nav-subitem,
    .dropdown__trigger,
    .dropdown__menu a,
    .dropdown__menu button:not(:disabled),
    .icon-button,
    .topbar-pill,
    .profile-menu__button,
    .date-card,
    .kpi-card,
    .panel,
    .panel__more,
    .quick-view__item,
    .button:not(:disabled),
    .quick-action,
    .quick-actions,
    .appointments-table tbody tr,
    .row-actions button:not(:disabled),
    .notification-item,
    .notification-mark-all:not(:disabled),
    .notification-panel__footer button:not(:disabled),
    .filter-dropdown__trigger,
    .filter-option,
    .filter-option input[type="checkbox"]:not(:disabled),
    .filter-option input[type="radio"]:not(:disabled),
    .table-view-all:not(:disabled),
    .filter-reset:not(:disabled),
    label[for]
) {
    cursor: pointer !important;
}

/* Preserve the expected caret over editable text. */

:is(
    input:not([type]),
    input[type="text"],
    input[type="search"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    input[type="password"],
    textarea,
    [contenteditable="true"]
):not(:disabled) {
    cursor: text !important;
}

/* Disabled controls must never appear clickable. */

:is(
    button:disabled,
    input:disabled,
    select:disabled,
    textarea:disabled,
    [aria-disabled="true"]
) {
    cursor: not-allowed !important;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    cursor: pointer !important;
}

/* Custom clear controls, when used in any search field. */

:is(
    .clear-btn,
    .search-clear,
    .input-clear,
    .filter-search-clear,
    [data-search-clear],
    [aria-label="مسح البحث"],
    [aria-label="إفراغ البحث"]
) {
    cursor: pointer !important;
}

.pilgrims-page {
    display: grid;
    gap: 22px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 6px 2px 0;
}

.page-heading h1 {
    margin: 8px 0 5px;
    font-size: var(--fs-display);
    line-height: 1.25;
    color: var(--text);
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: var(--fs-lg);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted-2);
    font-size: var(--fs-md);
}

.breadcrumbs a {
    color: var(--muted);
    transition: color .2s ease;
}

.breadcrumbs a:hover {
    color: var(--text-2);
}

.breadcrumbs i {
    font-size: var(--fs-xs);
}

.page-heading__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-heading__actions .button {
    min-height: 43px;
    padding-inline: 15px;
}

.pilgrims-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pilgrim-kpi {
    min-height: 126px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.pilgrim-kpi:hover {
    transform: translateY(-3px);
    border-color: #dbe4ee;
    box-shadow: 0 16px 36px rgba(51, 65, 85, .09);
}

.pilgrim-kpi .kpi-card__label {
    font-size: var(--fs-base);
}

.pilgrim-kpi .kpi-card__value {
    font-size: var(--fs-5xl);
}

.pilgrims-filter-panel,
.pilgrims-table-panel {
    overflow: visible;
}

.pilgrims-filter-panel__header {
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-result-summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 12px;
    color: var(--muted);
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 999px;
    font-size: var(--fs-md);
}

.filter-result-summary span {
    color: var(--text-2);
    font-weight: 700;
}

.pilgrims-search-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 12px;
    padding: 18px 22px 18px;
}

.pilgrims-main-search {
    min-height: 48px;
    width: 100%;
    max-width: none;
    padding-inline: 16px;
    background: #fbfdff;
    border: 1px solid #dfe8f0;
    border-radius: 14px;
}

.pilgrims-main-search:focus-within {
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, .12);
}

.pilgrims-main-search input {
    width: 100%;
    font-size: var(--fs-lg);
}

.pilgrims-advanced-toggle {
    min-width: 162px;
    justify-content: center;
}

.pilgrims-advanced-toggle .toggle-chevron {
    margin-right: 3px;
    transition: transform .22s ease;
}

.pilgrims-advanced-toggle[aria-expanded="false"] .toggle-chevron {
    transform: rotate(180deg);
}

.pilgrims-filters {
    position: relative;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(6, minmax(145px, 1fr)) auto;
    align-items: end;
    gap: 12px;
    padding: 15px 22px 22px;
}

.pilgrims-filters[hidden] {
    display: none;
}

.pilgrims-filters .filter-field {
    min-width: 0;
}

.pilgrims-reset {
    /* Same size as .filter-reset on all filter panels */
    min-height: var(--field-select-height, 48px);
    height: var(--field-select-height, 48px);
}

.pilgrims-table-panel {
    padding-bottom: 0;
}

.pilgrims-table-header {
    padding-bottom: 17px;
    border-bottom: 1px solid #f1f5f9;
}

.table-subtitle {
    margin: 5px 0 0;
    color: var(--muted-2);
    font-size: var(--fs-md);
}

.pilgrims-table-tools {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 9px;
}

.pilgrims-table-tools .button {
    min-height: 40px;
    flex: 0 1 auto;
    white-space: nowrap;
}

.bulk-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 20px 0;
    padding: 11px 14px;
    color: var(--slate);
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    font-size: var(--fs-base);
}

.bulk-actions[hidden] {
    display: none;
}

.bulk-actions > div {
    display: flex;
    gap: 8px;
}

.bulk-actions button,
.bulk-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: var(--slate);
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 9px;
    text-decoration: none;
    font-size: var(--fs-base);
    font-weight: 600;
    transition: background .18s ease, border-color .18s ease;
}

.bulk-action-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.pilgrims-table-wrap {
    margin-top: 0;
    border-radius: 0;
}

.pilgrims-table {
    min-width: 1380px;
}

.pilgrims-table th,
.pilgrims-table td {
    padding-block: 14px;
    white-space: nowrap;
}

.pilgrims-table tbody tr {
    transition: background .18s ease, box-shadow .18s ease;
}

.pilgrims-table tbody tr:hover {
    background: #fbfdff;
}

.pilgrims-table tbody tr.is-selected {
    background: #f5f9ff;
}

.selection-cell {
    width: 46px;
    text-align: center !important;
}

.table-checkbox {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 19px;
    height: 19px;
}

.table-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.table-checkbox span {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    color: transparent;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    transition: all .18s ease;
}

.table-checkbox span i {
    font-size: var(--fs-xs);
}

.table-checkbox input:checked + span {
    color: var(--white);
    background: #475569;
    border-color: #475569;
}

.table-checkbox input:focus-visible + span {
    outline: 3px solid rgba(71, 85, 105, .15);
    outline-offset: 2px;
}

.pilgrim-id,
.passport-number {
    direction: ltr;
    display: inline-block;
    color: var(--slate);
    font-weight: 700;
    letter-spacing: .15px;
}

.pilgrim-name {
    min-width: 178px;
}

.pilgrim-name .avatar {
    border: 2px solid #fff;
    box-shadow: 0 5px 12px rgba(51, 65, 85, .09);
}

.avatar--four {
    color: var(--warning);
    background: #fff2df;
}

.center-chip {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 29px;
    padding: 0 9px;
    color: var(--slate);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    font-weight: 700;
}

.pilgrim-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 29px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 700;
}

.pilgrim-status i {
    font-size: var(--fs-sm);
}

.pilgrim-status--success {
    color: var(--success);
    background: #eaf8f1;
}

.pilgrim-status--waiting {
    color: var(--warning);
    background: #fff5df;
}

.pilgrim-status--warning {
    color: var(--warning);
    background: #fff0e5;
}

.pilgrim-status--neutral {
    color: var(--muted);
    background: #f1f5f9;
}

.nusuk-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 122px;
}

.nusuk-state > i {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 9px;
}

.nusuk-state span {
    display: grid;
    gap: 2px;
}

.nusuk-state strong {
    font-size: var(--fs-sm);
}

.nusuk-state small {
    direction: ltr;
    color: var(--muted-2);
    font-size: var(--fs-sm);
}

.nusuk-state--active > i {
    color: var(--success);
    background: #e8f7ef;
}

.nusuk-state--printed > i {
    color: var(--info);
    background: #eaf4ff;
}

.nusuk-state--processing > i {
    color: var(--warning);
    background: #fff3de;
}


.pilgrims-empty {
    display: none;
    min-height: 230px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted-2);
}

.pilgrims-empty i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 4px;
    color: var(--muted);
    background: #f1f5f9;
    border-radius: 50%;
    font-size: var(--fs-2xl);
}

.pilgrims-empty strong {
    color: var(--slate);
    font-size: var(--fs-lg);
}

.pilgrims-empty span {
    font-size: var(--fs-md);
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 20px 18px;
    color: var(--muted);
    border-top: 1px solid #f1f5f9;
    font-size: var(--fs-md);
}

.table-pagination strong {
    color: var(--slate);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    direction: rtl;
}

.pagination-controls button {
    display: grid;
    place-items: center;
    min-width: 33px;
    height: 33px;
    padding: 0 8px;
    color: var(--muted);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    transition: all .18s ease;
}

.pagination-controls a {
    display: grid;
    place-items: center;
    min-width: 33px;
    height: 33px;
    padding: 0 8px;
    color: var(--muted);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    text-decoration: none;
    transition: all .18s ease;
}

.pagination-controls button:hover,
.pagination-controls button.is-active,
.pagination-controls a:hover,
.pagination-controls a.is-active {
    color: var(--white);
    background: #475569;
    border-color: #475569;
}

.pagination-controls span {
    padding-inline: 3px;
}

.pagination-controls .is-disabled {
    opacity: .45;
    pointer-events: none;
}

/* Pilgrim detail modal */

body.is-modal-open {
    overflow: hidden;
}

.pilgrim-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 22px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .22s ease, visibility .22s ease;
}

.pilgrim-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.pilgrim-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(5px);
}

.pilgrim-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .25);
    transform: translateY(14px) scale(.985);
    transition: transform .22s ease;
}

.pilgrim-modal.is-open .pilgrim-modal__dialog {
    transform: translateY(0) scale(1);
}

.pilgrim-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid #eef2f7;
}

.pilgrim-modal__identity {
    display: flex;
    align-items: center;
    gap: 13px;
}

.pilgrim-modal__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    color: var(--white);
    background: linear-gradient(135deg, #64748b, #334155);
    border: 4px solid #f1f5f9;
    border-radius: 17px;
    font-size: var(--fs-3xl);
    font-weight: 700;
}

.pilgrim-modal__identity span {
    color: var(--muted-2);
    font-size: var(--fs-sm);
}

.pilgrim-modal__identity h2 {
    margin: 2px 0;
    color: var(--text);
    font-size: var(--fs-3xl);
}

.pilgrim-modal__identity small {
    direction: ltr;
    display: inline-block;
    color: var(--muted);
    font-size: var(--fs-sm);
}

.pilgrim-modal__body {
    padding: 20px 22px 24px;
}

.pilgrim-modal__status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 17px;
}

.pilgrim-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.pilgrim-details-grid article {
    display: grid;
    gap: 5px;
    min-height: 73px;
    padding: 13px 14px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 13px;
}

.pilgrim-details-grid article.is-wide {
    grid-column: span 2;
}

.pilgrim-details-grid span {
    color: var(--muted-2);
    font-size: var(--fs-sm);
}

.pilgrim-details-grid strong {
    color: var(--text-2);
    font-size: var(--fs-base);
    font-weight: 700;
}

.pilgrim-modal__footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
    padding: 15px 22px 18px;
    background: #fbfcfe;
    border-top: 1px solid #eef2f7;
}

/* Pointer coverage for the new page */

:is(
    .pilgrim-kpi,
    .table-checkbox,
    .pagination-controls button:not(:disabled),
    [data-pilgrim-view],
    [data-pilgrim-modal-close],
    .pilgrim-modal__backdrop,
    .pilgrims-advanced-toggle
) {
    cursor: pointer !important;
}

@media (max-width: 1480px) {
    .pilgrims-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pilgrims-filters {
        grid-template-columns: repeat(3, minmax(170px, 1fr));
    }
}

@media (max-width: 1100px) {
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .pilgrims-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pilgrims-search-row {
        grid-template-columns: 1fr;
    }

    .pilgrims-advanced-toggle {
        width: 100%;
    }

    .pilgrims-filters {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 700px) {
    .pilgrims-page {
        gap: 15px;
    }

    .page-heading__actions,
    .page-heading__actions .button {
        width: 100%;
    }

    .page-heading__actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .page-heading__actions .button--primary {
        grid-column: span 2;
    }

    .pilgrims-kpi-grid {
        grid-template-columns: 1fr;
    }

    .pilgrim-kpi {
        min-height: 110px;
    }

    .pilgrims-search-row,
    .pilgrims-filters {
        padding-inline: 15px;
    }

    .pilgrims-filters {
        grid-template-columns: 1fr;
    }

    .pilgrims-reset {
        width: 100%;
    }

    .pilgrims-table-header,
    .table-pagination,
    .bulk-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pilgrims-table-tools {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .pilgrims-table-tools .button {
        width: 100%;
    }

    .pilgrims-table-tools .access-selection-summary {
        grid-column: 1 / -1;
    }

    .pagination-controls {
        flex-wrap: wrap;
    }

    .pilgrim-modal {
        padding: 10px;
    }

    .pilgrim-modal__dialog {
        max-height: calc(100vh - 20px);
        border-radius: 17px;
    }

    .pilgrim-modal__header,
    .pilgrim-modal__body,
    .pilgrim-modal__footer {
        padding-inline: 15px;
    }

    .pilgrim-details-grid {
        grid-template-columns: 1fr;
    }

    .pilgrim-details-grid article.is-wide {
        grid-column: auto;
    }
}

/* Prevent the hidden modal layer from intercepting page interactions. */

.pilgrim-modal {
    pointer-events: none;
}

.pilgrim-modal.is-open {
    pointer-events: auto;
}

.language-switcher [data-language].is-active {
    color: var(--primary);
    background: #f1f5f9;
    font-weight: 800;
}

.language-switcher [data-language].is-active::after {
    content: "";
    margin-inline-start: auto;
    color: var(--success);
    font-family: "Font Awesome 6 Free";
    font-size: var(--fs-sm);
    font-weight: 900;
}

html[dir="ltr"] body,
html[dir="ltr"] button,
html[dir="ltr"] input,
html[dir="ltr"] textarea {
    direction: ltr;
}

html[dir="ltr"] .quick-view__item {
    text-align: left;
}

html[dir="ltr"] .quick-view__item:hover {
    transform: translateX(3px);
}

html[dir="ltr"] .quick-view__item > span:nth-child(2) {
    text-align: left;
}

html[dir="ltr"] .chart-top-metrics--financial .mini-figure,
html[dir="ltr"] .chart-top-metrics--financial .mini-figure > span,
html[dir="ltr"] .chart-top-metrics--financial .mini-figure > small {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .chart-top-metrics--financial .mini-figure > .money-value {
    justify-self: start;
    margin-inline: 0;
}

html[dir="rtl"] .chart-top-metrics--financial .mini-figure,
html[dir="rtl"] .chart-top-metrics--financial .mini-figure > span,
html[dir="rtl"] .chart-top-metrics--financial .mini-figure > small {
    text-align: right;
}

html[dir="rtl"] .chart-top-metrics--financial .mini-figure > .money-value {
    justify-self: end;
}

html[dir="ltr"] .mini-figure small.is-positive,
html[dir="ltr"] .trend {
    direction: ltr;
    unicode-bidi: isolate;
}

html[dir="ltr"] .sidebar {
    inset: 0 auto 0 0;
    border-right: 1px solid var(--border);
    border-left: 0;
    box-shadow: 12px 0 45px rgba(51, 65, 85, .045);
}

html[dir="ltr"] .brand,
html[dir="ltr"] .nav-item,
html[dir="ltr"] .dropdown__menu a,
html[dir="ltr"] .dropdown__menu button,
html[dir="ltr"] .profile-menu__text,
html[dir="ltr"] .date-card,
html[dir="ltr"] .appointments-table th,
html[dir="ltr"] .appointments-table td {
    text-align: left;
}

html[dir="ltr"] .nav-item:hover,
html[dir="ltr"] .nav-subitem:hover {
    transform: translateX(2px);
}

html[dir="ltr"] .nav-item.is-active {
    background: linear-gradient(270deg, #fff 0%, #f8fafc 100%);
    box-shadow: inset 3px 0 0 var(--primary-2), 0 8px 22px rgba(71, 85, 105, .07);
}

html[dir="ltr"] .nav-item--toggle {
    padding-right: 74px;
    padding-left: 10px;
}

html[dir="ltr"] .nav-badge {
    right: 34px;
    left: auto;
}

html[dir="ltr"] .nav-chevron {
    right: 12px;
    left: auto;
    transform: translateY(-50%) rotate(180deg);
}

html[dir="ltr"] .nav-group.is-open > .nav-item--toggle .nav-chevron {
    transform: translateY(-50%) rotate(90deg);
}

html[dir="ltr"] .nav-submenu {
    margin-right: 8px;
    margin-left: 18px;
}

html[dir="ltr"] .nav-group.is-open > .nav-submenu {
    margin: 4px 8px 9px 18px;
}

html[dir="ltr"] .nav-subitem {
    padding: 7px 9px 7px 12px;
}

html[dir="ltr"] .dropdown__menu {
    right: auto;
    left: 0;
}

html[dir="ltr"] .notification-panel {
    right: 0;
    left: auto;
    transform-origin: top right;
}

html[dir="ltr"] .notification-dot {
    right: auto;
    left: 10px;
}

html[dir="ltr"] .profile-menu__button {
    padding: 6px 12px 6px 8px;
}

html[dir="ltr"] .customer small {
    text-align: left;
}

html[dir="ltr"] .toggle-chevron,
html[dir="ltr"] .pagination-controls .fa-chevron-right,
html[dir="ltr"] .pagination-controls .fa-chevron-left {
    transform: scaleX(-1);
}

html[dir="ltr"] .pilgrims-advanced-toggle[aria-expanded="false"] .toggle-chevron {
    transform: rotate(180deg) scaleX(-1);
}

html[dir="ltr"] .toast {
    right: 22px;
    left: auto;
}

html[dir="ltr"] .pilgrim-name strong,
html[dir="ltr"] .pilgrim-modal__identity h2 {
    unicode-bidi: plaintext;
}

html[dir="ltr"] .passport-number,
html[dir="ltr"] .pilgrim-id,
html[dir="ltr"] .appointment-id,
html[dir="ltr"] .money-number,
html[dir="ltr"] [id^="modalPilgrimId"] {
    direction: ltr;
    unicode-bidi: isolate;
}

@media (max-width: 900px) {
    html[dir="ltr"] .sidebar {
        transform: translateX(-110%);
    }

    html[dir="ltr"] body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .topbar__group--profile > .dropdown.language-switcher {
        display: block;
    }

    .language-switcher .topbar-pill {
        width: 44px;
        padding: 0;
        justify-content: center;
    }

    .language-switcher .topbar-pill [data-language-current],
    .language-switcher .topbar-pill .dropdown-caret {
        display: none;
    }
}

@media (max-width: 620px) {
    html[dir="ltr"] .notification-panel {
        right: 14px;
        left: 14px;
        transform-origin: top center;
    }
}

html[dir="ltr"] .app-shell.is-collapsed .nav-badge {
    right: 3px;
    left: auto;
}

html[dir="ltr"] .breadcrumbs .fa-chevron-left {
    transform: rotate(180deg);
}

.components-page {
    display: grid;
    gap: 20px;
}

.components-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-sm);
}

.components-heading h1 {
    margin: 4px 0 7px;
    font-size: var(--fs-display);
    line-height: 1.25;
}

.components-heading p,
.component-card__header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.components-heading__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #dfe8f0;
    border-radius: 13px;
    color: var(--primary);
    background: #fff;
    font-size: var(--fs-base);
    font-weight: 700;
}

.components-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 20px;
}

.component-card,
.location-component {
    padding: 22px;
}

.component-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.component-card__header > div {
    min-width: 0;
}

.component-card__header h2 {
    margin: 3px 0 6px;
    font-size: var(--fs-3xl);
}

.component-card__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: var(--fs-3xl);
}

.component-card__icon--blue {
    color: var(--info);
    background: #eaf5fd;
}

.component-card__icon--purple {
    color: var(--purple);
    background: #f2edfa;
}

.component-card__icon--green {
    color: var(--success);
    background: #e9f7f0;
}

.media-uploader {
    display: grid;
    gap: 15px;
}

.media-preview {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px dashed #cad6e2;
    border-radius: 20px;
    background: linear-gradient(45deg, rgba(226, 232, 240, .45) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(226, 232, 240, .45) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(226, 232, 240, .45) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(226, 232, 240, .45) 75%),
        #f8fafc;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.media-preview img {
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: contain;
    background: #f8fafc;
}

.media-preview__empty {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

.media-preview__empty > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--primary);
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: var(--fs-4xl);
}

.media-preview__empty strong {
    color: var(--text);
    font-size: var(--fs-lg);
}

.media-preview__empty small {
    font-size: var(--fs-md);
}

.media-uploader__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button--danger-soft {
    color: var(--danger);
    border-color: #f0d7d7;
    background: #fff7f7;
}

.button--danger-soft:hover:not(:disabled) {
    border-color: #e5bcbc;
    background: #fff1f1;
}

.button:disabled,
.location-open-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.button.is-loading,
.button.is-loading:disabled {
    cursor: wait;
    opacity: 0.88;
}

.modal-demo-preview {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(145deg, #faf8fc 0%, #f8fafc 100%);
}

.modal-demo-preview__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--purple);
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: var(--fs-3xl);
}

.modal-demo-preview strong,
.modal-demo-preview small {
    display: block;
}

.modal-demo-preview small {
    max-width: 270px;
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.7;
}

.component-card__main-action {
    width: 100%;
    margin-top: 15px;
}

.location-component__header {
    margin-bottom: 18px;
}

.location-fields {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(180px, .8fr) minmax(280px, 1.6fr);
    gap: 14px;
    align-items: end;
}

.form-field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #dfe7ef;
    border-radius: 13px;
    color: var(--text);
    background: #fff;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea {
    min-height: 105px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, .12);
}

.form-field input[readonly] {
    color: var(--muted);
    background: #f8fafc;
}

.form-field--full {
    grid-column: 1 / -1;
}

.location-open-button {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 0;
    border-radius: 13px;
    color: var(--white);
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    box-shadow: 0 10px 22px rgba(71, 85, 105, .16);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.location-open-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(71, 85, 105, .22);
}

.location-open-button.is-selected {
    background: linear-gradient(135deg, #23825a 0%, #36a775 100%);
}

.location-selected-summary {
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #d6eee2;
    border-radius: 15px;
    background: #f2fbf6;
}

.location-selected-summary:not([hidden]) {
    display: flex;
}

.location-selected-summary__icon {
    color: var(--success);
    font-size: var(--fs-3xl);
}

.location-selected-summary > div {
    min-width: 0;
    flex: 1 1 auto;
}

.location-selected-summary strong,
.location-selected-summary small {
    display: block;
}

.location-selected-summary small {
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-selected-summary a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--success);
    font-size: var(--fs-base);
    font-weight: 700;
    cursor: pointer;
}

.ff-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    padding: 24px;
}

.ff-modal.is-open {
    display: grid;
}

.ff-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .54);
    backdrop-filter: blur(8px);
}

.ff-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(650px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(15, 23, 42, .24);
}

.ff-modal__dialog--large {
    width: min(920px, 100%);
}

.ff-modal__dialog--map {
    width: min(980px, 100%);
}

.ff-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 21px 23px 17px;
    border-bottom: 1px solid var(--border);
}

.ff-modal__header h2 {
    margin: 3px 0 5px;
    font-size: var(--fs-4xl);
}

.ff-modal__header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.ff-modal__body {
    padding: 20px 23px;
}

.ff-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 23px 21px;
    border-top: 1px solid var(--border);
}

body.has-open-modal {
    overflow: hidden;
}

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

.image-editor-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 235px;
    align-items: start;
    gap: 24px;
}

.image-editor-stage {
    --crop-ratio: 1;
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    justify-self: center;
    aspect-ratio: var(--crop-ratio);
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 18px;
    background: #f8fafc;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
    touch-action: none;
    cursor: grab;
}

.image-editor-stage.is-dragging {
    cursor: grabbing;
}

.image-editor-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

.image-editor-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to right, transparent 33.2%, rgba(255, 255, 255, .32) 33.3%, rgba(255, 255, 255, .32) 33.6%, transparent 33.7%, transparent 66.2%, rgba(255, 255, 255, .32) 66.3%, rgba(255, 255, 255, .32) 66.6%, transparent 66.7%),
        linear-gradient(to bottom, transparent 33.2%, rgba(255, 255, 255, .32) 33.3%, rgba(255, 255, 255, .32) 33.6%, transparent 33.7%, transparent 66.2%, rgba(255, 255, 255, .32) 66.3%, rgba(255, 255, 255, .32) 66.6%, transparent 66.7%);
    opacity: .6;
}

.image-editor-controls {
    display: grid;
    align-content: start;
    gap: 18px;
}

.image-editor-control-group {
    display: grid;
    gap: 8px;
}

.image-editor-control-group > span {
    color: var(--slate);
    font-size: var(--fs-base);
    font-weight: 700;
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
}

.segmented-control button {
    min-height: 36px;
    border: 0;
    border-radius: 9px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.segmented-control button.is-active {
    color: var(--white);
    background: var(--primary);
    box-shadow: var(--shadow-sm);
}

.image-editor-zoom input {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.image-editor-toolbar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.image-editor-toolbar button {
    min-height: 43px;
    border: 1px solid #dfe7ef;
    border-radius: 12px;
    color: var(--primary);
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.image-editor-toolbar button:hover {
    transform: translateY(-1px);
    border-color: #b8c5d2;
    background: #f8fafc;
}

.location-modal__body {
    display: grid;
    gap: 14px;
}

.location-modal__tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.location-search-box {
    position: relative;
    min-width: 0;
}

.location-search-box > i {
    position: absolute;
    inset-inline-start: 15px;
    top: 50%;
    z-index: 2;
    color: var(--muted);
    transform: translateY(-50%);
}

.location-search-box input {
    width: 100%;
    min-height: 47px;
    padding: 10px 43px 10px 14px;
    border: 1px solid #dfe7ef;
    border-radius: 13px;
    outline: 0;
}

html[dir="ltr"] .location-search-box input {
    padding: 10px 14px 10px 43px;
}

.location-search-box input:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, .12);
}

.location-search-results {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 7px);
    z-index: 1005;
    max-height: 250px;
    overflow: auto;
    padding: 6px;
    border: 1px solid #dfe7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.location-search-results button {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    color: var(--text);
    background: transparent;
    text-align: start;
    cursor: pointer;
}

.location-search-results button:hover {
    background: #f1f5f9;
}

.location-search-empty {
    padding: 14px;
    color: var(--muted);
    text-align: center;
    font-size: var(--fs-base);
}

.location-search-results i {
    margin-top: 4px;
    color: var(--primary-2);
}

.location-map-wrap {
    position: relative;
    height: min(470px, 52vh);
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: 18px;
    background: #eef2f6;
}

.location-map {
    width: 100%;
    height: 100%;
}

.location-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 500;
    width: 46px;
    height: 58px;
    pointer-events: none;
    transform: translate(-50%, -100%);
    filter: drop-shadow(0 7px 9px rgba(15, 23, 42, .22));
}

.location-center-pin__shape {
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    transform: translateX(-50%) rotate(-45deg);
}

.location-center-pin__shape i {
    width: 10px;
    height: 10px;
    display: block;
    border-radius: 50%;
    background: #fff;
}

.location-center-pin__shadow {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 22px;
    height: 7px;
    border-radius: 50%;
    background: rgba(15, 23, 42, .25);
    transform: translateX(-50%);
    filter: blur(2px);
}

.location-map-status {
    min-height: 45px;
    padding: 11px 13px;
    border-radius: 12px;
    color: var(--slate);
    background: #f1f5f9;
    line-height: 1.65;
}

.location-map-status.is-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-inline-end: 8px;
    border: 2px solid #cbd5e1;
    border-top-color: var(--primary);
    border-radius: 50%;
    vertical-align: -2px;
    animation: ff-spin .75s linear infinite;
}

.location-map-status.is-selected {
    color: var(--success);
    background: #eef9f3;
}

.location-share-button {
    margin-inline-end: auto;
    color: var(--success);
    border-color: #bfe1d8;
    background: #f0faf7;
}

.location-share-button:hover:not(:disabled) {
    border-color: #8bc9ba;
    background: #e4f6f0;
}

.location-share-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

@keyframes ff-spin {
    to {
        transform: rotate(360deg);
    }
}

.location-map .gm-style,
.location-map .gm-style-mtc,
.location-map .gm-style-iw,
.location-map .gm-style button {
    font-family: inherit !important;
}

.location-map .gm-style button,
.location-map .gm-style a {
    cursor: pointer !important;
}

.location-map .gm-control-active {
    border-radius: 8px !important;
}

@media (max-width: 1050px) {
    .components-grid {
        grid-template-columns: 1fr;
    }

    .location-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .components-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .component-card,
    .location-component {
        padding: 18px;
    }

    .location-fields,
    .modal-form-grid,
    .image-editor-body,
    .location-modal__tools {
        grid-template-columns: 1fr;
    }

    .location-fields .form-field,
    .form-field--wide {
        grid-column: auto;
    }

    .media-preview,
    .media-preview img {
        min-height: 245px;
    }

    .image-editor-stage {
        min-height: 0;
        justify-self: stretch;
    }

    .ff-modal {
        padding: 12px;
    }

    .ff-modal__dialog {
        max-height: calc(100svh - 24px);
        border-radius: 20px;
    }

    .ff-modal__header,
    .ff-modal__body,
    .ff-modal__footer {
        padding-inline: 17px;
    }

    .ff-modal__footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .location-map-wrap {
        height: 390px;
    }
}

@media (max-width: 520px) {
    .component-card__header {
        align-items: center;
    }

    .component-card__header p {
        display: none;
    }

    .media-uploader__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .location-selected-summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .location-selected-summary a {
        width: 100%;
        justify-content: center;
    }

    .ff-modal__footer {
        grid-template-columns: 1fr;
    }
}

.topbar__actions--desktop-tools {
    min-width: 0;
    flex-wrap: nowrap;
}

@media (min-width: 901px) {
    html[dir="rtl"] .topbar__actions--desktop-tools {
        direction: ltr;
    }

    html[dir="rtl"] .topbar__actions--desktop-tools > * {
        direction: rtl;
    }

    html[dir="ltr"] .topbar__actions--desktop-tools,
    html[dir="ltr"] .topbar__actions--desktop-tools > * {
        direction: ltr;
    }
}

.subsystem-launcher__trigger {
    gap: 9px;
}

.subsystem-grid-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    display: grid !important;
    grid-template-columns: repeat(3, 4px);
    grid-auto-rows: 4px;
    align-content: center;
    justify-content: center;
    gap: 2px;
}

.subsystem-grid-icon > span {
    width: 4px;
    height: 4px;
    display: block !important;
    border-radius: 1.5px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

.subsystem-launcher__trigger:hover .subsystem-grid-icon > span:nth-child(2),
.subsystem-launcher__trigger:hover .subsystem-grid-icon > span:nth-child(4),
.subsystem-launcher__trigger:hover .subsystem-grid-icon > span:nth-child(6),
.subsystem-launcher__trigger:hover .subsystem-grid-icon > span:nth-child(8) {
    transform: scale(.72);
    opacity: .72;
}

.subsystem-launcher.is-open .subsystem-launcher__trigger {
    color: var(--primary);
    border-color: rgba(45, 156, 151, .26);
    background: rgba(45, 156, 151, .07);
}

.subsystem-launcher__panel {
    right: auto;
    left: 0;
    width: min(520px, calc(100vw - 56px));
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 28px 75px rgba(15, 23, 42, .19), 0 8px 24px rgba(15, 23, 42, .08);
}

.dropdown.is-open > .subsystem-launcher__panel {
    display: block;
}

html[dir="ltr"] .subsystem-launcher__panel {
    right: 0;
    left: auto;
}

.subsystem-launcher__header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbfb 100%);
}

.subsystem-launcher__header > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.subsystem-launcher__header strong {
    color: var(--text);
    font-size: var(--fs-xl);
    font-weight: 900;
}

.subsystem-launcher__header small {
    color: var(--muted);
    font-size: var(--fs-sm);
}

.subsystem-launcher__brand {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(45, 156, 151, .16);
    border-radius: 13px;
    color: var(--primary);
    background: rgba(45, 156, 151, .08);
}

.subsystem-launcher__brand i {
    font-size: var(--fs-2xl);
}

.subsystem-apps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 16px;
}

.subsystem-launcher__panel .subsystem-app {
    position: relative;
    width: auto;
    min-width: 0;
    min-height: 122px;
    display: grid;
    grid-template-rows: 54px minmax(34px, auto) auto;
    align-content: start;
    justify-items: center;
    gap: 8px;
    padding: 12px 10px 10px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--slate);
    background: transparent;
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.subsystem-launcher__panel .subsystem-app:hover {
    color: var(--text-2);
    border-color: #e4ebf2;
    background: #f8fafc;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    transform: translateY(-2px);
}

.subsystem-launcher__panel .subsystem-app.is-current {
    border-color: rgba(45, 156, 151, .2);
    background: rgba(45, 156, 151, .065);
}

.subsystem-app__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--white);
    box-shadow: 0 10px 21px rgba(15, 23, 42, .13);
}

.subsystem-app__icon i {
    font-size: var(--fs-3xl);
}

.app-icon--teal {
    background: linear-gradient(145deg, #45b9b2, #208b86);
}

.app-icon--blue {
    background: linear-gradient(145deg, #4aa5ec, #2675c8);
}

.app-icon--violet {
    background: linear-gradient(145deg, #9a7aea, #6f4fc3);
}

.app-icon--orange {
    background: linear-gradient(145deg, #f4aa54, #df7f1f);
}

.app-icon--green {
    background: linear-gradient(145deg, #62bc83, #2f8f58);
}

.app-icon--pink {
    background: linear-gradient(145deg, #e985af, #c24e82);
}

.app-icon--indigo {
    background: linear-gradient(145deg, #6e8be8, #435eb8);
}

.app-icon--slate {
    background: linear-gradient(145deg, #7f91a6, #526477);
}

.subsystem-app__name {
    width: 100%;
    min-height: 34px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: inherit;
    font-size: var(--fs-md);
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
    word-break: break-word;
}

.subsystem-app__badge {
    min-height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    color: var(--teal-deep);
    background: rgba(45, 156, 151, .12);
    font-size: var(--fs-xs);
    font-weight: 900;
}

.subsystem-launcher__footer {
    padding: 10px 14px 13px;
    border-top: 1px solid #edf2f7;
    background: #fbfcfd;
}

.subsystem-launcher__panel .subsystem-launcher__footer button {
    min-height: 39px;
    justify-content: space-between;
    padding: 7px 10px;
    color: var(--primary-2);
    border-radius: 11px;
    font-weight: 800;
}

.subsystem-launcher__footer i {
    font-size: var(--fs-md);
}

.season-switcher .dropdown__menu button.is-active {
    color: var(--primary);
    background: #f1f8f7;
    font-weight: 800;
}

.season-switcher .dropdown__menu button.is-active::before {
    content: "";
    color: var(--success);
    font-family: "Font Awesome 6 Free";
    font-size: var(--fs-sm);
    font-weight: 900;
}

@media (max-width: 1180px) {
    .subsystem-launcher__current {
        display: none !important;
    }

    .subsystem-launcher__trigger .subsystem-grid-icon {
        display: grid !important;
    }
}

@media (max-width: 900px) {
    .topbar__actions--desktop-tools > .season-switcher,
    .topbar__actions--desktop-tools > .subsystem-launcher {
        display: none;
    }
}

@media (max-width: 620px) {
    .topbar__actions--desktop-tools {
        gap: 6px;
    }
}

html[dir="rtl"] .topbar__actions--desktop-tools > .language-switcher > .dropdown__menu,
html[dir="rtl"] .topbar__actions--desktop-tools > .season-switcher > .dropdown__menu {
    right: auto;
    left: 0;
    transform-origin: top left;
}

html[dir="ltr"] .topbar__actions--desktop-tools > .language-switcher > .dropdown__menu,
html[dir="ltr"] .topbar__actions--desktop-tools > .season-switcher > .dropdown__menu {
    right: 0;
    left: auto;
    transform-origin: top right;
}

.topbar .dropdown-caret {
    transform: rotate(-90deg);
}

.topbar .dropdown.is-open .dropdown-caret {
    transform: rotate(90deg);
}

html[dir="rtl"] .topbar__actions--desktop-tools .topbar-pill,
html[dir="rtl"] .profile-menu__button {
    direction: rtl;
}

html[dir="ltr"] .topbar__actions--desktop-tools .topbar-pill,
html[dir="ltr"] .profile-menu__button {
    direction: ltr;
}

html[dir="ltr"] .notification-panel__footer .fa-arrow-left,
html[dir="ltr"] .subsystem-launcher__footer .fa-arrow-left {
    transform: rotate(180deg);
}

html[dir="ltr"] .notification-panel__heading,
html[dir="ltr"] .notification-item,
html[dir="ltr"] .subsystem-launcher__header,
html[dir="ltr"] .subsystem-launcher__footer button {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .notification-panel__heading,
html[dir="rtl"] .notification-item,
html[dir="rtl"] .subsystem-launcher__header,
html[dir="rtl"] .subsystem-launcher__footer button {
    direction: rtl;
    text-align: right;
}

@media (min-width: 901px) {
    html[dir="ltr"] .topbar__actions--desktop-tools {
        flex-direction: row-reverse;
    }

    html[dir="ltr"] .topbar__actions--desktop-tools > * {
        direction: ltr;
    }
}

@media (min-width: 901px) {
    .topbar {
        z-index: 60;
    }

    .topbar .dropdown__menu,
    .topbar .subsystem-launcher__panel {
        z-index: 70;
    }
}



.nav-item.is-active {
    color: #475569;
    background: linear-gradient(90deg, #fff 0%, #f8fafc 100%);
    box-shadow: inset -3px 0 0 var(--primary-2), 0 8px 22px rgba(71, 85, 105, .07);
}

.nav-item.is-active .nav-item__icon {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(145deg, var(--primary-2), var(--primary));
    box-shadow: 0 8px 18px rgba(71, 85, 105, .22);
}

.nav-subitem.is-active {
    color: #475569;
    background: #f1f5f9;
}

.nav-item.is-active {
    color: #334155;
    background: linear-gradient(90deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: inset -3px 0 0 #64748b, 0 8px 22px rgba(15, 23, 42, .06);
}

.nav-item.is-active .nav-item__icon,
.notification-panel__icon {
    color: #fff;
    background: linear-gradient(145deg, #64748b, #334155);
    box-shadow: 0 8px 18px rgba(51, 65, 85, .18);
}

.nav-item.is-active {
    color: var(--primary);
    background: linear-gradient(90deg, #ffffff 0%, var(--teal-soft) 100%);
    box-shadow: inset -3px 0 0 var(--gold), 0 10px 24px rgba(61, 166, 163, .12);
}

.nav-item.is-active .nav-item__icon,
.notification-panel__icon {
    color: #fff;
    background: linear-gradient(145deg, var(--primary-2), var(--primary));
    box-shadow: 0 10px 18px rgba(61, 166, 163, .22);
}

html[dir="ltr"] .nav-item.is-active {
    background: linear-gradient(270deg, #fff 0%, #f8fafc 100%);
    box-shadow: inset 3px 0 0 var(--primary-2), 0 8px 22px rgba(71, 85, 105, .07);
}

.nav-item.is-active,
html[dir="ltr"] .nav-item.is-active {
    color: var(--primary);
    background: rgba(61, 166, 163, .055);
    box-shadow: none;
}

.nav-item.is-active .nav-item__label {
    font-weight: 700;
}

.nav-item.is-active .nav-item__icon,
html[dir="ltr"] .nav-item.is-active .nav-item__icon {
    color: var(--primary);
    border-color: rgba(61, 166, 163, .10);
    background: rgba(61, 166, 163, .10);
    box-shadow: none;
}

.nav-item.is-active:hover {
    background: rgba(61, 166, 163, .075);
}