:root {
    --packitta-primary: #1b92ed;
    --packitta-primary-soft: rgba(27, 146, 237, 0.1);
    --packitta-success: #008000;
    --packitta-success-soft: rgba(0, 128, 0, 0.1);
    --packitta-error: #ed1b24;
    --packitta-error-soft: rgba(237, 27, 36, 0.1);
    --packitta-pending: #ff6b35;
    --packitta-pending-soft: rgba(255, 107, 53, 0.1);
    --packitta-muted: #757575;
    --packitta-muted-soft: rgba(117, 117, 117, 0.1);
    --packitta-sidebar: #0a566b;
    --packitta-page: #eff3f8;
    --packitta-card: #ffffff;
    --packitta-heading: #212529;
    --packitta-shadow: 0 2px 10px rgba(124, 141, 181, 0.12);
    --packitta-radius: 8px;
    --packitta-scrollbar: #ED582F;
    --packitta-scrollbar-hover: #d94b26;
    --packitta-scrollbar-track: rgba(237, 88, 47, 0.08);

    /* Bootstrap semantic primary overridden to match dashboard brand tone. */
    --bs-primary: #0a566b;
    --bs-primary-rgb: 10, 86, 107;
    --bs-focus-ring-color: rgba(10, 86, 107, 0.24);
    --bs-dropdown-link-active-bg: rgba(10, 86, 107, 0.12);
    --bs-dropdown-link-active-color: #0a566b;
}

* {
    box-sizing: border-box;
}

:where(
    html,
    body,
    .dashboard-main,
    .dashboard-content,
    .chat-conversation-list,
    .chat-message-scroller,
    .support-messages-scroll
) {
    scrollbar-width: thin;
    scrollbar-color: var(--packitta-scrollbar) var(--packitta-scrollbar-track);
}

:where(
    html,
    body,
    .dashboard-main,
    .dashboard-content,
    .chat-conversation-list,
    .chat-message-scroller,
    .support-messages-scroll
)::-webkit-scrollbar {
    width: 8px;
}

:where(
    html,
    body,
    .dashboard-main,
    .dashboard-content,
    .chat-conversation-list,
    .chat-message-scroller,
    .support-messages-scroll
)::-webkit-scrollbar-track {
    border-radius: 999px;
    background: var(--packitta-scrollbar-track);
}

:where(
    html,
    body,
    .dashboard-main,
    .dashboard-content,
    .chat-conversation-list,
    .chat-message-scroller,
    .support-messages-scroll
)::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--packitta-scrollbar) content-box;
}

:where(
    html,
    body,
    .dashboard-main,
    .dashboard-content,
    .chat-conversation-list,
    .chat-message-scroller,
    .support-messages-scroll
)::-webkit-scrollbar-thumb:hover {
    background-color: var(--packitta-scrollbar-hover);
}

body {
    margin: 0;
    background: radial-gradient(circle at 0% 0%, #f7fbff 0, var(--packitta-page) 40%);
    color: var(--packitta-heading);
    font-family: "Poppins", sans-serif;
}

html[lang="ar"] body {
    font-family: "Cairo", sans-serif;
}

a {
    text-decoration: none;
}

.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #0a566b;
    --bs-btn-border-color: #0a566b;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #084c5f;
    --bs-btn-hover-border-color: #084c5f;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #083f50;
    --bs-btn-active-border-color: #083f50;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #0a566b;
    --bs-btn-disabled-border-color: #0a566b;
    --bs-btn-focus-shadow-rgb: 10, 86, 107;
}

.btn-orange {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #ff6438;
    --bs-btn-border-color: #ff6438;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #f05a2d;
    --bs-btn-hover-border-color: #f05a2d;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #df4f25;
    --bs-btn-active-border-color: #df4f25;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #f3b29e;
    --bs-btn-disabled-border-color: #f3b29e;
    --bs-btn-disabled-opacity: 0.55;
    --bs-btn-focus-shadow-rgb: 255, 100, 56;
}

/* Notification inbox: compact enough for the top bar but visually separate
   from Bootstrap's generic dropdowns. */
.dashboard-notification-bell {
    border-color: #dce4ec;
    color: #164f65;
}

.dashboard-notification-bell:hover,
.dashboard-notification-bell.show {
    background: #eaf5f8;
    border-color: #a9d7e1;
    color: #0a566b;
}

.dashboard-notification-menu {
    width: min(390px, calc(100vw - 1rem));
    border: 1px solid #dce4ec;
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(12, 40, 55, 0.18);
    overflow: hidden;
}

.dashboard-notification-header,
.dashboard-notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
}

.dashboard-notification-header {
    background: linear-gradient(135deg, #f4fbfc, #ffffff);
    border-bottom: 1px solid #e6edf2;
}

.dashboard-notification-status {
    display: block;
    margin-top: 0.16rem;
    color: #71808d;
    font-size: 0.72rem;
    line-height: 1.25;
}

.dashboard-notification-status.is-enabled {
    color: #168f4b;
}

.dashboard-notification-item {
    padding: 0.75rem 0.9rem;
    border-color: #edf1f4;
    white-space: normal;
}

.js-notification-list {
    max-height: min(340px, 48vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #bad4dc transparent;
}

.js-notification-list::-webkit-scrollbar {
    width: 6px;
}

.js-notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.js-notification-list::-webkit-scrollbar-thumb {
    background: #bad4dc;
    border-radius: 99px;
}

.js-notification-list::-webkit-scrollbar-thumb:hover {
    background: #8fbecb;
}

.dashboard-notification-item.is-unread {
    background: #f1fafc;
    border-inline-start: 3px solid #0e7e9b;
}

.dashboard-notification-title {
    color: #1d3442;
    font-size: 0.86rem;
    font-weight: 600;
}

.dashboard-notification-body {
    display: block;
    margin-top: 0.18rem;
    color: #657480;
    font-size: 0.78rem;
    line-height: 1.35;
}

.dashboard-notification-empty {
    padding: 1.25rem 0.9rem;
    color: #71808d;
    font-size: 0.84rem;
    text-align: center;
}

.dashboard-notification-footer {
    border-top: 1px solid #e6edf2;
    background: #fbfcfd;
}

.dashboard-notification-more-wrap {
    padding: 0.55rem 0.42rem 0.62rem;
    border-top: 1px solid #edf1f4;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.84), #ffffff);
    text-align: center;
}

.dashboard-notification-action {
    --bs-btn-color: #0a566b;
    --bs-btn-hover-color: #084c5f;
    --bs-btn-active-color: #083f50;
    --bs-btn-disabled-color: #8aa8b2;
    --bs-btn-focus-shadow-rgb: 10, 86, 107;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-border-color: transparent;
    --bs-btn-active-bg: rgba(10, 86, 107, 0.08);
    color: var(--bs-btn-color);
    font-weight: 600;
    text-decoration: none;
}

.dashboard-notification-action:hover,
.dashboard-notification-action:focus-visible {
    color: var(--bs-btn-hover-color);
    text-decoration: underline;
}

.dashboard-notification-action:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(10, 86, 107, 0.22);
}

.orders-list-page.is-refreshing .orders-table-card {
    opacity: 0.78;
    transition: opacity 150ms ease;
}

.dashboard-modal-back-btn {
    border: 0;
    background: transparent;
    color: #8a9099;
    font-weight: 700;
    padding: 0.55rem 0.35rem;
    text-decoration: none;
}

.dashboard-modal-back-btn:hover,
.dashboard-modal-back-btn:focus {
    color: #6d7481;
    box-shadow: none;
    text-decoration: none;
}

.btn {
    --bs-btn-focus-shadow-rgb: 10, 86, 107;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:focus,
.btn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(10, 86, 107, 0.24);
}

.dropdown-item.active,
.dropdown-item:active {
    background: rgba(10, 86, 107, 0.12);
    color: #0a566b;
}

.dropdown-item.text-danger.active,
.dropdown-item.text-danger:active {
    background: rgba(237, 27, 36, 0.12);
    color: #ed1b24;
}

.auth-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.auth-screen {
    /* Relative URL lets ManifestStaticFilesStorage rewrite to the hashed file in production. */
    background: url("../../home/img/background.c13e3a06b4c4.png") center/cover no-repeat;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 86, 111, 0.78) 0%, rgba(5, 96, 123, 0.74) 50%, rgba(7, 93, 119, 0.74) 100%);
    z-index: -1;
}

.auth-topbar {
    position: relative;
    z-index: 2;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-footer {
    height: 2rem;
    background-color: #065166;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.auth-shell {
    width: min(100%, 430px);
}

.auth-brand {
    display: flex;
    justify-content: center;
}

.auth-logo-text {
    width: min(240px, 78%);
}

.auth-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.form-title {
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: #ffffff;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.84);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.auth-label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
    text-align: start;
}

.auth-field .form-control {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    min-height: 48px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.13);
}

.auth-field .form-control:focus {
    border-color: var(--packitta-primary);
    box-shadow: 0 0 0 0.2rem rgba(27, 146, 237, 0.24);
}

.auth-field .form-control::placeholder {
    color: #8b95a6;
}

.auth-password-control {
    position: relative;
}

.auth-password-control .form-control {
    padding-inline-end: 3.25rem;
}

.auth-password-toggle {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 0.38rem;
    width: 2.3rem;
    height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    color: #5f6b7a;
    background: transparent;
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.auth-password-toggle:hover {
    color: var(--packitta-sidebar);
    background: rgba(10, 86, 107, 0.08);
}

.auth-password-toggle:focus-visible {
    outline: 0;
    color: var(--packitta-sidebar);
    background: rgba(10, 86, 107, 0.08);
    box-shadow: 0 0 0 0.18rem rgba(27, 146, 237, 0.22);
}

.auth-submit {
    border-radius: 10px;
    background: var(--packitta-sidebar);
    border-color: var(--packitta-sidebar);
    min-height: 48px;
    font-weight: 600;
}

.auth-submit:hover,
.auth-submit:focus {
    background: #0a4e62;
    border-color: #0a4e62;
}

.auth-footnote {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.auth-link-accent {
    color: #ff6b35;
    font-weight: 500;
}

.auth-link-accent:hover,
.auth-link-accent:focus {
    color: #ff6b35;
    text-decoration: underline;
}

.auth-copyright {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.tooltip {
    --bs-tooltip-max-width: none;
}

.tooltip .tooltip-inner {
    font-size: 0.78rem;
    white-space: nowrap;
    max-width: none;
}

.auth-screen .language-btn {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.auth-screen .language-btn:hover,
.auth-screen .language-btn:focus {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.auth-screen .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 0;
}

.auth-screen .dropdown-item.active,
.auth-screen .dropdown-item:active {
    background: rgba(10, 86, 107, 0.12);
    color: #0a566b;
}

.auth-screen .dashboard-messages .alert {
    border: 0;
}

.auth-screen .iti {
    width: 100%;
    direction: ltr;
}

.auth-screen .iti__flag-container {
    direction: ltr;
}

.auth-screen .iti--allow-dropdown input,
.auth-screen .iti--allow-dropdown input[type="text"],
.auth-screen .iti--allow-dropdown input[type="tel"],
.auth-screen .iti--separate-dial-code input,
.auth-screen .iti--separate-dial-code input[type="text"],
.auth-screen .iti--separate-dial-code input[type="tel"] {
    padding-left: 104px;
}

.auth-screen .iti__selected-flag {
    background: transparent;
    border-right: 1px solid #e4ebf3;
}

.auth-screen .iti__selected-dial-code {
    color: #556174;
    font-weight: 600;
}

html[dir="rtl"] .auth-screen .mobile-number-input,
html[dir="rtl"] .auth-screen .iti input {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .auth-screen .iti {
    direction: ltr;
}

html[dir="rtl"] .auth-screen .iti__flag-container {
    left: 0 !important;
    right: auto !important;
}

html[dir="rtl"] .auth-screen .iti--allow-dropdown input,
html[dir="rtl"] .auth-screen .iti--allow-dropdown input[type="text"],
html[dir="rtl"] .auth-screen .iti--allow-dropdown input[type="tel"],
html[dir="rtl"] .auth-screen .iti--separate-dial-code input,
html[dir="rtl"] .auth-screen .iti--separate-dial-code input[type="text"],
html[dir="rtl"] .auth-screen .iti--separate-dial-code input[type="tel"] {
    padding-left: 4.5rem !important;
    padding-right: 0.75rem !important;
}

html[dir="rtl"] .auth-screen .iti__selected-flag {
    border-right: 1px solid #e4ebf3;
    border-left: 0;
}

html[dir="rtl"] .auth-screen .auth-label {
    text-align: right;
}

.language-btn {
    border-radius: 999px;
    box-shadow: var(--packitta-shadow);
}

.dashboard-layout {
    min-height: 100vh;
    display: flex;
}

.dashboard-sidebar {
    width: 240px;
    background: var(--packitta-sidebar);
    color: #fff;
    padding: 0rem 0.9rem 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
}

.sidebar-brand {
    flex: 0 0 auto;
    padding: 0.3rem 0.5rem;
}

.brand-logo {
    width: 128px;
}

.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-link {
    display: block;
    color: #eaf2f6;
    font-weight: 600;
    border-radius: var(--packitta-radius);
    padding: 0.72rem 0.75rem;
    transition: all 0.2s ease;
}

.sidebar-chat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sidebar-chat-badge {
    min-width: 1.55rem;
    height: 1.55rem;
    padding-inline: 0.38rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ed1b24;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.sidebar-chat-link.is-active .sidebar-chat-badge {
    background: #ed1b24;
    color: #fff;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-link.is-active {
    color: var(--packitta-pending);
    background: #ffffff;
}

.sidebar-dropdown-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: start;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-dropdown-icon {
    font-size: 0.78rem;
    transition: transform 0.2s ease;
}

.sidebar-dropdown-toggle[aria-expanded="true"] .sidebar-dropdown-icon {
    transform: rotate(180deg);
}

.sidebar-dropdown-toggle.is-group-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.sidebar-sublinks {
    margin-top: 0.3rem;
    padding-inline-start: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.sidebar-sublink {
    display: block;
    color: #dbe8ee;
    font-weight: 500;
    border-radius: var(--packitta-radius);
    padding: 0.5rem 0.72rem;
    transition: all 0.2s ease;
}

.sidebar-sublink:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-sublink.is-active {
    color: var(--packitta-pending);
    background: #ffffff;
    font-weight: 600;
}

.sidebar-sublink.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.sidebar-help-link {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-help-link-external {
    margin-inline-start: auto;
    font-size: 0.75rem;
    opacity: 0.7;
}

.sidebar-logout-form {
    flex: 0 0 auto;
    margin-top: auto;
}

.sidebar-logout-btn {
    color: #ff6666;
    font-weight: 700;
    width: 100%;
    text-align: start;
    padding: 0.6rem 0.55rem;
}

.sidebar-logout-btn:hover {
    color: #ff7777;
}

.dashboard-main {
    flex: 1;
    padding: 1.35rem;
}

.dashboard-topbar {
    background: var(--packitta-card);
    border-radius: 14px;
    box-shadow: var(--packitta-shadow);
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-topbar-main {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-topbar-actions {
    min-width: 0;
    flex: 0 0 auto;
}

.dashboard-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-pill {
    border: 1px solid #d9dee8;
    border-radius: 999px;
    padding: 0.38rem 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
}

.account-pill-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12rem;
}

.account-pill-link {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.account-pill-link:hover {
    border-color: #c7d4e3;
    background: #f8fbff;
}

.account-pill-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(10, 86, 107, 0.2);
}

.account-logo-img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    object-fit: cover;
    background: #f3f6fb;
    display: block;
}

.avatar-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7f8fa6, #212529);
}

.content-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-size: 1.65rem;
    font-weight: 700;
}

.actions-row {
    row-gap: 0.55rem;
}

.btn-add-product {
    border: 0;
    background: transparent;
    color: #0b6b83;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.4rem;
}

.btn-add-product:hover,
.btn-add-product:focus {
    color: #084f62;
}

.btn-scope-sales {
    background: #0a566b;
    border: 1px solid #0a566b;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.57rem 1.15rem;
}

.btn-scope-sales:hover,
.btn-scope-sales:focus {
    background: #084c5f;
    border-color: #084c5f;
    color: #fff;
}

.stat-card,
.panel-card {
    background: var(--packitta-card);
    border-radius: 14px;
    box-shadow: var(--packitta-shadow);
}

.stat-card {
    padding: 1rem;
    min-height: 110px;
}

.stat-title {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1;
}

.stat-danger .stat-value {
    color: var(--packitta-error);
}

.panel-card {
    padding: 1.1rem;
}

.panel-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.year-filter-btn {
    border: 0;
    background: transparent;
    color: #7a8190;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.1rem 0.1rem;
}

.year-filter-btn:hover,
.year-filter-btn:focus {
    color: #5f6777;
}

.chart-shell {
    border: 1px solid #e7ebf3;
    border-radius: 12px;
    overflow: hidden;
    background:
        linear-gradient(to right, rgba(216, 224, 236, 0.35) 1px, transparent 1px) 0 0/10% 100%,
        linear-gradient(to top, rgba(216, 224, 236, 0.25) 1px, transparent 1px) 0 0/100% 20%,
        #ffffff;
    height: 280px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.line-orders,
.line-sales {
    fill: none;
    stroke-width: 3;
}

.line-orders {
    stroke: var(--packitta-pending);
}

.line-sales {
    stroke: #107b98;
}

.line-orders-fill {
    fill: url(#ordersFill);
    stroke: none;
    opacity: 0.75;
}

.line-sales-fill {
    fill: url(#salesFill);
    stroke: none;
    opacity: 0.75;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: #637088;
    font-size: 0.9rem;
    font-weight: 500;
}

.legend-label {
    line-height: 1;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.legend-orders {
    background: var(--packitta-pending);
}

.legend-sales {
    background: #107b98;
}

.mobile-number-input {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

html[dir="rtl"] .mobile-number-input {
    direction: ltr;
    text-align: left;
}

.dashboard-table thead th {
    color: #6f7687;
    font-weight: 600;
    border-bottom-width: 1px;
}

.multiline-text {
    white-space: pre-line;
}

.state-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 11px;
    border-radius: var(--packitta-radius);
    border: 0.5px solid transparent;
    box-shadow: var(--packitta-shadow);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.state-default {
    background: var(--packitta-primary-soft);
    border-color: var(--packitta-primary);
    color: var(--packitta-primary);
}

.state-success {
    background: var(--packitta-success-soft);
    border-color: var(--packitta-success);
    color: var(--packitta-success);
}

.state-error {
    background: var(--packitta-error-soft);
    border-color: var(--packitta-error);
    color: var(--packitta-error);
}

.state-pending {
    background: var(--packitta-pending-soft);
    border-color: var(--packitta-pending);
    color: var(--packitta-pending);
}

.state-out {
    background: var(--packitta-muted-soft);
    border-color: var(--packitta-muted);
    color: var(--packitta-muted);
}

.dashboard-messages .alert {
    box-shadow: var(--packitta-shadow);
    border: none;
}


[dir=rtl] .iti--separate-dial-code.iti--show-flags .iti__selected-dial-code {
    margin-left: 6px !important;
    margin-right: auto !important;
}

@media (max-width: 991.98px) {
    .dashboard-layout {
        position: relative;
    }

    .dashboard-sidebar {
        position: fixed;
        inset-inline-start: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 1040;
    }

    html[dir="rtl"] .dashboard-sidebar {
        transform: translateX(100%);
    }

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

    .dashboard-main {
        width: 100%;
        padding: 0.9rem;
    }

    .dashboard-topbar {
        padding: 0.72rem 0.82rem;
    }

    .dashboard-page-title {
        font-size: 1.08rem;
        max-width: 38vw;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .auth-main {
        min-height: calc(100vh - 60px);
    }

    .auth-shell {
        width: min(100%, 500px);
    }
}

@media (max-width: 767.98px) {
    .dashboard-page-title,
    .account-pill-text {
        display: none;
    }

    .dashboard-topbar-actions {
        gap: 0.4rem !important;
    }

    .account-pill {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .account-logo-img {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }
}

/* Store suspension banner: shown on every dashboard page while the store is hidden from buyers. */
.dashboard-store-suspension { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.1rem; padding: .85rem 1rem; border: 1px solid #f4c8cc; border-radius: 12px; background: #fff7f8; color: #5b1d24; }
.dashboard-store-suspension-icon { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fde7e9; color: #b42332; font-size: 1rem; }
.dashboard-store-suspension-body { flex: 1 1 auto; min-width: 0; }
.dashboard-store-suspension-body strong { display: block; color: #b42332; font-size: .95rem; }
.dashboard-store-suspension-body p { margin: .2rem 0 .35rem; color: #6b3a40; font-size: .82rem; }
.dashboard-store-suspension-body ul { margin: 0; padding: 0; list-style: none; font-size: .84rem; font-weight: 600; }
.dashboard-store-suspension-body ul span { color: #8a4a52; font-weight: 700; }
.dashboard-store-suspension-action { flex: 0 0 auto; align-self: center; font-weight: 700; }
@media (max-width: 600px) { .dashboard-store-suspension { flex-wrap: wrap; } .dashboard-store-suspension-action { width: 100%; } }

/* Admin "Login as owner": the link landing page and the support-session banner. */
.login-as-card { padding: 1.4rem 1.4rem 1.25rem; border-radius: 16px; background: #fff; color: #1f2933; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.login-as-head { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1rem; }
.login-as-icon { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e7f2f5; color: #0a566b; font-size: 1.35rem; }
.login-as-head.is-error .login-as-icon { background: #fde7e9; color: #b42332; }
.login-as-title { margin: 0 0 .2rem; font-size: 1.1rem; font-weight: 700; }
.login-as-lead { margin: 0; color: #5b6472; font-size: .88rem; line-height: 1.6; }
.login-as-head.is-error + .btn { margin-top: .25rem; }
.login-as-facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 12px; background: #f6f8fa; font-size: .88rem; }
.login-as-facts dt { color: #5b6472; font-weight: 600; }
.login-as-facts dd { margin: 0; font-weight: 600; }
.login-as-warning { display: flex; gap: .6rem; margin-bottom: 1rem; padding: .7rem .85rem; border: 1px solid #f3d38a; border-radius: 10px; background: #fff8e6; color: #6b4e00; font-size: .84rem; line-height: 1.6; }
.login-as-warning i { color: #c58a00; }
.login-as-notes { margin: 0 0 1.1rem; padding-inline-start: 1.1rem; color: #5b6472; font-size: .8rem; line-height: 1.7; }
.dashboard-support-session { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; padding: .75rem 1rem; border: 1px solid #ffd2c2; border-radius: 12px; background: #fff4ef; color: #5c2a17; }
.dashboard-support-session-icon { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #ff6438; color: #fff; font-size: 1.05rem; }
.dashboard-support-session-body { flex: 1 1 auto; min-width: 0; }
.dashboard-support-session-body strong { display: block; color: #c2410c; font-size: .95rem; }
.dashboard-support-session-body p { margin: .15rem 0 0; font-size: .82rem; }
.dashboard-support-session-action { flex: 0 0 auto; margin: 0; }
@media (max-width: 600px) { .dashboard-support-session { flex-wrap: wrap; } .dashboard-support-session-action, .dashboard-support-session-action .btn { width: 100%; } }
