
:root {
    --ef-app-bg: #f7f7f8;
    --ef-surface: #ffffff;
    --ef-surface-subtle: #fafafb;
    --ef-surface-hover: #f6f6f8;
    --ef-text: #18181b;
    --ef-text-secondary: #60606b;
    --ef-text-tertiary: #8a8a96;
    --ef-border: #e7e7ec;
    --ef-border-subtle: #efeff2;
    --ef-brand: #7c3aed;
    --ef-brand-hover: #6d28d9;
    --ef-brand-soft: #f4f1ff;
    --ef-success: #16803d;
    --ef-success-soft: #edf8f1;
    --ef-warning: #9a5b08;
    --ef-warning-soft: #fff7e8;
    --ef-danger: #c9372c;
    --ef-danger-soft: #fff0ee;
    --ef-info: #2563a6;
    --ef-info-soft: #eef6fc;
    --ef-radius-xs: 5px;
    --ef-radius-sm: 7px;
    --ef-radius-md: 9px;
    --ef-radius-lg: 12px;
    --ef-sidebar: 248px;
    --ef-topbar: 60px;
}

.ef-app-shell,
.ef-app-shell button,
.ef-app-shell input,
.ef-app-shell select,
.ef-app-shell textarea {
    font-family: Inter, Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ef-app-shell {
    min-height: 100vh;
    background: var(--ef-app-bg);
    color: var(--ef-text);
    font-size: 13px;
    line-height: 1.5;
}

.ef-app-shell *,
.ef-app-shell *::before,
.ef-app-shell *::after {
    box-sizing: border-box;
}

.ef-app-shell a {
    color: inherit;
}

.ef-app-shell :focus-visible {
    outline: 2px solid color-mix(in srgb, var(--ef-brand) 72%, white);
    outline-offset: 2px;
}

.ef-app-loading {
    display: grid;
    min-height: 100vh;
    grid-template-columns: var(--ef-sidebar) 1fr;
    background: var(--ef-app-bg);
}

.ef-app-loading-sidebar {
    background: var(--ef-surface);
    border-right: 1px solid var(--ef-border);
}

.ef-app-loading-topbar {
    height: var(--ef-topbar);
    background: var(--ef-surface);
    border-bottom: 1px solid var(--ef-border);
}

.ef-app-loading-lines {
    display: grid;
    max-width: 680px;
    gap: 12px;
    padding: 32px;
}

.ef-app-loading-lines span {
    display: block;
    height: 92px;
    background: #eeeeF2;
    border-radius: var(--ef-radius-md);
    animation: ef-skeleton 1.4s ease-in-out infinite;
}


.ef-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    width: var(--ef-sidebar);
    min-width: var(--ef-sidebar);
    flex-direction: column;
    overflow: visible;
    background: var(--ef-surface);
    border-right: 1px solid var(--ef-border);
}

.ef-sidebar-brand {
    display: flex;
    min-height: 66px;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid var(--ef-border-subtle);
}

.ef-sidebar-brand .brand,
.ef-mobile-brand .brand {
    display: block;
    color: var(--ef-brand);
    text-decoration: none;
}

.ef-sidebar-brand .brand img,
.ef-sidebar-brand .brand svg {
    display: block;
    max-width: 156px;
    max-height: 34px;
}

.ef-workspace-switcher {
    margin: 12px 12px 8px;
}

.ef-workspace-switcher > button {
    display: grid;
    width: 100%;
    min-height: 48px;
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    gap: 9px;
    align-items: center;
    padding: 7px 8px;
    color: var(--ef-text);
    text-align: left;
    background: var(--ef-surface-subtle);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-sm);
}

.ef-workspace-switcher > button:hover {
    background: var(--ef-surface-hover);
    border-color: #d9d9e0;
}

.ef-company-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #5b21b6;
    background: var(--ef-brand-soft);
    border-radius: 6px;
}

.ef-company-mark img {
    width: 15px;
    height: 15px;
}

.ef-workspace-copy {
    min-width: 0;
}

.ef-workspace-name,
.ef-workspace-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ef-workspace-name {
    font-size: 12px;
    font-weight: 650;
}

.ef-workspace-meta {
    color: var(--ef-text-tertiary);
    font-size: 11px;
}

.ef-workspace-chevron {
    width: 12px;
    opacity: .55;
}

.ef-sidebar-scroll {
    min-height: 0;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 10px 18px;
    scrollbar-width: thin;
}

.ef-nav-section {
    margin-top: 16px;
}

.ef-nav-section:first-child {
    margin-top: 4px;
}

.ef-nav-label {
    padding: 0 10px 6px;
    color: var(--ef-text-tertiary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ef-nav-link {
    position: relative;
    display: flex;
    height: 38px;
    align-items: center;
    gap: 10px;
    margin: 1px 0;
    padding: 0 10px;
    color: #53535f !important;
    font-size: 13px;
    font-weight: 520;
    text-decoration: none;
    border-radius: var(--ef-radius-sm);
    transition: background-color 140ms ease, color 140ms ease;
}

.ef-nav-link:hover {
    color: var(--ef-text) !important;
    background: var(--ef-surface-hover);
}

.ef-nav-link.active {
    color: #5b21b6 !important;
    background: var(--ef-brand-soft);
}

.ef-nav-link.active::before {
    position: absolute;
    inset: 10px auto 10px 0;
    width: 2px;
    content: "";
    background: var(--ef-brand);
    border-radius: 2px;
}

.ef-nav-link > img {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    opacity: .72;
}

.ef-nav-link.active > img {
    opacity: .9;
}

.ef-sidebar-footer {
    position: relative;
    z-index: 3;
    padding: 10px 12px 12px;
    background: var(--ef-surface);
    border-top: 1px solid var(--ef-border-subtle);
}

.ef-sidebar-version {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    margin-bottom: 7px;
    padding-inline: 8px;
    color: var(--ef-text-tertiary);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    text-align: left;
    background: transparent;
    border: 0;
}

.ef-sidebar-version:hover {
    color: var(--ef-brand);
}

.ef-sidebar-version-new {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ef-danger);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.ef-sidebar-version-new > span {
    width: 7px;
    height: 7px;
    background: var(--ef-danger);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--ef-danger-soft);
    animation: ef-version-pulse 1.8s ease-in-out infinite;
}

@keyframes ef-version-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .65; transform: scale(.85); }
}

.ef-test-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 6px 8px;
    color: #8a4d00;
    font-size: 11px;
    background: var(--ef-warning-soft);
    border: 1px solid #f2dfbd;
    border-radius: 6px;
}

.ef-sidebar-account {
    display: grid;
    width: 100%;
    min-height: 42px;
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    color: var(--ef-text);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: var(--ef-radius-sm);
}

.ef-sidebar-account:hover {
    background: var(--ef-surface-hover);
}

.ef-account-dropdown {
    position: relative;
    width: 100%;
}

.ef-account-more {
    width: 15px;
    height: 15px;
    opacity: .5;
}

.ef-account-menu {
    inset: auto auto 0 calc(100% + 10px) !important;
    width: 264px;
    min-width: 264px;
    max-height: min(460px, calc(100vh - 24px));
    overflow-y: auto;
    transform: none !important;
}

.ef-account-menu-header {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 8px;
}

.ef-account-menu-header .ef-avatar {
    width: 32px;
    height: 32px;
}

.ef-account-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ef-account-menu .dropdown-item .icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 0;
    opacity: .72;
}

.ef-account-copy {
    min-width: 0;
}

.ef-account-copy strong,
.ef-account-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ef-account-copy strong {
    font-size: 12px;
    font-weight: 650;
}

.ef-account-copy span {
    color: var(--ef-text-tertiary);
    font-size: 11px;
}

.ef-avatar {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #5b21b6;
    font-size: 11px;
    font-weight: 700;
    background: var(--ef-brand-soft);
    border: 1px solid #e8dfff;
    border-radius: 7px;
}

.ef-app-main {
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--ef-sidebar);
}

.ef-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    height: var(--ef-topbar);
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #ececf0;
}

.ef-topbar-context {
    min-width: 0;
    color: var(--ef-text-secondary);
    font-size: 12px;
}

.ef-topbar-context strong {
    color: var(--ef-text);
    font-weight: 600;
}

.ef-topbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ef-topbar-button,
.ef-mobile-menu {
    position: relative;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
}

.ef-topbar-button:hover,
.ef-mobile-menu:hover {
    background: var(--ef-surface-hover);
    border-color: var(--ef-border-subtle);
}

.ef-topbar-button img,
.ef-mobile-menu img {
    width: 18px;
    height: 18px;
}

.ef-notification-count {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    background: var(--ef-danger);
    border: 2px solid white;
    border-radius: 999px;
}

.ef-notifications-menu {
    width: min(390px, calc(100vw - 24px));
    max-height: min(520px, calc(100vh - 80px));
    overflow-y: auto;
    padding: 6px;
}

.ef-dropdown-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 9px 10px;
    font-size: 12px;
    font-weight: 650;
}

.ef-activity-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 9px;
    border-top: 1px solid var(--ef-border-subtle);
}

.ef-activity-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-top: 6px;
    background: var(--ef-border);
    border-radius: 50%;
}

.ef-activity-item.is-unread .ef-activity-dot {
    background: var(--ef-brand);
}

.ef-activity-copy {
    min-width: 0;
    flex: 1;
}

.ef-activity-copy strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 600;
}

.ef-activity-copy small {
    color: var(--ef-text-tertiary);
    font-size: 11px;
}

.ef-mobile-brand,
.ef-mobile-menu {
    display: none;
}


.ef-workspace {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 28px 32px 48px;
}

.ef-workspace > .container-xxl,
.ef-workspace > .container,
.ef-workspace > .container-fluid {
    max-width: none;
    padding: 0;
}

.ef-page-header {
    display: flex;
    min-height: 62px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.ef-page-heading {
    min-width: 0;
}

.ef-page-heading h1 {
    margin: 0;
    color: var(--ef-text);
    font-size: 24px;
    font-weight: 650;
    line-height: 30px;
    letter-spacing: -.02em;
}

.ef-page-heading p {
    max-width: 680px;
    margin: 4px 0 0;
    color: var(--ef-text-secondary);
    font-size: 13px;
}

.ef-page-eyebrow {
    margin-bottom: 4px;
    color: var(--ef-text-tertiary);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ef-page-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ef-workspace h2,
.ef-workspace .h4 {
    color: var(--ef-text);
    font-size: 14px;
    font-weight: 650;
    line-height: 20px;
}

.ef-workspace h4,
.ef-workspace h5,
.ef-workspace h6 {
    color: var(--ef-text);
}

.ef-workspace .text-muted,
.ef-workspace .text-body-secondary {
    color: var(--ef-text-secondary) !important;
}

.ef-money,
.ef-workspace td:nth-last-child(n+1),
.ef-workspace input[type="number"] {
    font-variant-numeric: tabular-nums;
}


.ef-app-shell .btn {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    border-radius: var(--ef-radius-sm);
    box-shadow: none !important;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease;
}

.ef-app-shell .btn-sm {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 12px;
}

.ef-app-shell .btn-primary {
    color: #fff;
    background: var(--ef-brand);
    border-color: var(--ef-brand);
}

.ef-app-shell .btn-primary:hover,
.ef-app-shell .btn-primary:focus-visible {
    color: #fff;
    background: var(--ef-brand-hover);
    border-color: var(--ef-brand-hover);
}

.ef-app-shell .btn-outline-primary,
.ef-app-shell .btn-outline-secondary,
.ef-app-shell .btn-light,
.ef-app-shell .btn-label-primary {
    color: #27272a;
    background: var(--ef-surface);
    border: 1px solid #dcdce3;
}

.ef-app-shell .btn-outline-primary:hover,
.ef-app-shell .btn-outline-secondary:hover,
.ef-app-shell .btn-light:hover,
.ef-app-shell .btn-label-primary:hover {
    color: var(--ef-text);
    background: var(--ef-surface-hover);
    border-color: #cacad3;
}

.ef-app-shell .btn-link {
    min-height: auto;
    padding: 0;
    color: #5b21b6;
    text-decoration: none;
}

.ef-app-shell .btn-danger {
    background: var(--ef-danger);
    border-color: var(--ef-danger);
}

.ef-app-shell .btn-outline-secondary .filter-white,
.ef-app-shell .btn-outline-primary .filter-white {
    filter: none !important;
    opacity: .65;
}

.ef-app-shell .icon-btn,
.ef-icon-button {
    display: inline-grid;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    place-items: center;
    padding: 0;
    color: var(--ef-text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
}

.ef-app-shell .icon-btn:hover,
.ef-icon-button:hover {
    color: var(--ef-text);
    background: var(--ef-surface-hover);
    border-color: var(--ef-border-subtle);
}

.ef-app-shell .icon-btn img,
.ef-icon-button img {
    width: 16px;
    height: 16px;
    opacity: .75;
}

.ef-app-shell .form-control,
.ef-app-shell .form-select,
.ef-app-shell .input-group-text {
    min-height: 38px;
    color: var(--ef-text);
    font-size: 13px;
    background-color: var(--ef-surface);
    border-color: #dcdce3;
    border-radius: var(--ef-radius-sm);
}

.ef-app-shell textarea.form-control {
    min-height: 86px;
    resize: vertical;
}

.ef-app-shell .input-group > .form-control,
.ef-app-shell .input-group > .form-select {
    border-radius: 0 var(--ef-radius-sm) var(--ef-radius-sm) 0;
}

.ef-app-shell .input-group > .input-group-text {
    padding-right: 7px;
    border-right: 0;
    border-radius: var(--ef-radius-sm) 0 0 var(--ef-radius-sm);
}

.ef-app-shell .input-group-text img {
    width: 16px;
    height: 16px;
    opacity: .55;
}

.ef-app-shell .form-control:focus,
.ef-app-shell .form-select:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .08);
}

.ef-app-shell .form-control:disabled,
.ef-app-shell .form-select:disabled,
.ef-app-shell .form-control[readonly] {
    color: var(--ef-text-secondary);
    background: var(--ef-surface-subtle);
    opacity: 1;
}

.ef-app-shell .form-label,
.ef-app-shell .control-label,
.ef-app-shell label:not(.form-check-label) {
    margin-bottom: 6px;
    color: #3f3f46;
    font-size: 12px;
    font-weight: 550;
}

.ef-app-shell .form-text {
    color: var(--ef-text-tertiary);
    font-size: 12px;
}

.ef-app-shell .validation-message,
.ef-app-shell .text-danger:has(.validation-message) {
    margin-top: 4px;
    color: var(--ef-danger) !important;
    font-size: 12px;
}

.ef-app-shell .form-check-input {
    border-color: #cfcfd7;
    box-shadow: none;
}

.ef-app-shell .form-check-input:checked {
    background-color: var(--ef-brand);
    border-color: var(--ef-brand);
}

.ef-app-shell .select-tile {
    position: relative;
    display: block;
    min-height: 132px;
    padding: 16px;
    color: var(--ef-text-secondary);
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-md);
    transition: background-color 140ms ease, border-color 140ms ease;
}

.ef-app-shell .select-tile:hover {
    background: var(--ef-surface-subtle);
    border-color: #cbcbd4;
}

.ef-app-shell .btn-check:checked + .select-tile {
    color: #5b21b6;
    background: var(--ef-brand-soft);
    border-color: #cfc1f5;
}

.ef-app-shell .select-tile > img {
    width: 24px;
    height: 24px;
    margin-block: 12px !important;
    opacity: .7;
}

.ef-app-shell .select-tile .title {
    color: var(--ef-text);
    font-size: 13px;
    font-weight: 650;
}


.ef-workspace .card {
    color: var(--ef-text);
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-md);
    box-shadow: none;
}

.ef-workspace .card-header {
    min-height: 48px;
    padding: 13px 16px;
    color: var(--ef-text);
    font-size: 13px;
    font-weight: 650;
    background: transparent;
    border-bottom: 1px solid var(--ef-border-subtle);
}

.ef-workspace .card-body {
    padding: 16px;
}

.ef-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px;
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-md);
}

.ef-list-toolbar .input-group,
.ef-list-search {
    width: min(320px, 100%);
}

.ef-active-filters {
    display: flex;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--ef-border-subtle);
}

.ef-active-filters::before {
    margin-right: 2px;
    color: var(--ef-text-tertiary);
    font-size: 11px;
    font-weight: 600;
    content: "Filtre active";
}

.ef-app-shell .ef-active-filters .badge.bg-secondary {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 7px;
    padding: 4px 6px 4px 8px;
    color: #4c3b72 !important;
    background: #f6f3fd !important;
    border-color: #ded5f3;
}

.ef-active-filters .badge .btn-close {
    width: 16px;
    height: 16px;
    margin: 0 !important;
    padding: 0;
    background-size: 7px;
    filter: none !important;
    opacity: .58;
}

.ef-active-filters .badge .btn-close:hover {
    opacity: 1;
}

.ef-active-filters > .btn-link {
    color: var(--ef-text-secondary) !important;
    font-size: 12px;
    text-decoration: none;
}

.ef-active-filters > .btn-link:hover {
    color: var(--ef-danger) !important;
}

.ef-app-shell .badge {
    min-height: 22px;
    padding: 4px 7px;
    color: var(--ef-text-secondary);
    font-size: 11px;
    font-weight: 600;
    line-height: 14px;
    background: var(--ef-surface-subtle);
    border: 1px solid var(--ef-border);
    border-radius: 6px !important;
}

.ef-app-shell .badge.bg-success,
.ef-app-shell .badge.text-bg-success {
    color: var(--ef-success) !important;
    background: var(--ef-success-soft) !important;
    border-color: #cfe9d8;
}

.ef-app-shell .badge.bg-danger,
.ef-app-shell .badge.text-bg-danger {
    color: var(--ef-danger) !important;
    background: var(--ef-danger-soft) !important;
    border-color: #f4d1cc;
}

.ef-app-shell .badge.bg-warning,
.ef-app-shell .badge.text-bg-warning {
    color: var(--ef-warning) !important;
    background: var(--ef-warning-soft) !important;
    border-color: #f3dfba;
}

.ef-app-shell .badge.bg-primary,
.ef-app-shell .badge.text-bg-primary {
    color: #5b21b6 !important;
    background: var(--ef-brand-soft) !important;
    border-color: #ded3fb;
}

.ef-app-shell .badge.bg-secondary,
.ef-app-shell .badge.text-bg-secondary {
    color: var(--ef-text-secondary) !important;
    background: var(--ef-surface-subtle) !important;
    border-color: var(--ef-border);
}

.ef-app-shell .badge.bg-info,
.ef-app-shell .badge.text-bg-info {
    color: var(--ef-info) !important;
    background: var(--ef-info-soft) !important;
    border-color: #d3e6f2;
}

.ef-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-md);
}

.ef-app-shell .ef-table-wrap .dropdown-menu,
.ef-app-shell .table-responsive .dropdown-menu,
.ef-app-shell .ef-table-dropdown-portal {
    z-index: 1080;
}

.ef-table-wrap .table,
.ef-workspace .ef-data-table {
    width: 100%;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

.ef-workspace .ef-data-table:not(.ef-table-wrap .table) {
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-md);
}

.ef-workspace .table > thead,
.ef-workspace .table > thead.table-primary {
    background: var(--ef-surface-subtle) !important;
}

.ef-workspace .table > thead th {
    height: 40px;
    padding: 9px 12px;
    color: #686874;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .01em;
    vertical-align: middle;
    background: var(--ef-surface-subtle) !important;
    border: 0;
    border-bottom: 1px solid #ececf0;
}

.ef-workspace .table > tbody > tr {
    min-height: 56px;
    background: var(--ef-surface);
    transition: background-color 140ms ease;
}

.ef-workspace .table > tbody > tr:hover {
    background: #fafafc;
}

.ef-workspace .table > tbody > tr > td {
    height: 56px;
    padding: 10px 12px;
    color: #34343a;
    font-size: 12px;
    line-height: 18px;
    vertical-align: middle;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ef-border-subtle);
}

.ef-workspace .table > tbody > tr:last-child > td {
    border-bottom: 0;
}

.ef-workspace .table .custom-collapse-a,
.ef-workspace .table td > a {
    color: var(--ef-text) !important;
    font-weight: 600;
    text-decoration: none;
}

.ef-table-primary {
    color: var(--ef-text);
    font-weight: 620;
}

.ef-table-secondary {
    display: block;
    margin-top: 1px;
    color: var(--ef-text-tertiary);
    font-size: 11px;
}

.ef-table-money {
    color: var(--ef-text);
    font-weight: 620;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}


.ef-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    color: var(--ef-text-secondary);
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
    background: var(--ef-surface-subtle);
    border: 1px solid var(--ef-border);
    border-radius: 6px;
}

.ef-status img {
    width: 12px;
    height: 12px;
}

.ef-status--success {
    color: var(--ef-success);
    background: var(--ef-success-soft);
    border-color: #cfe9d8;
}

.ef-status--warning {
    color: var(--ef-warning);
    background: var(--ef-warning-soft);
    border-color: #f3dfba;
}

.ef-status--danger {
    color: var(--ef-danger);
    background: var(--ef-danger-soft);
    border-color: #f4d1cc;
}

.ef-status--info {
    color: var(--ef-info);
    background: var(--ef-info-soft);
    border-color: #d3e6f2;
}

.ef-status-button {
    cursor: pointer;
}


.ef-dashboard .ef-page-header {
    margin-bottom: 0;
}

.ef-dashboard .fs-3 {
    font-size: 20px !important;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.ef-dashboard-notice {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid;
    border-radius: var(--ef-radius-md);
}

.ef-dashboard-notice-info {
    background: var(--ef-info-soft);
    border-color: #cee2f3;
}

.ef-dashboard-notice-warning {
    background: var(--ef-warning-soft);
    border-color: #f0ddb7;
}

.ef-dashboard-notice-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    background: rgba(255, 255, 255, .72);
    border-radius: 50%;
    place-items: center;
}

.ef-dashboard-notice-icon img {
    width: 18px;
    height: 18px;
    opacity: .75;
}

.ef-dashboard-notice-content {
    min-width: 0;
    flex: 1;
}

.ef-dashboard-notice-content strong,
.ef-dashboard-notice-content span {
    display: block;
}

.ef-dashboard-notice-content strong {
    color: var(--ef-text);
    font-size: 13px;
    font-weight: 700;
}

.ef-dashboard-notice-content span {
    margin-top: 2px;
    color: var(--ef-text-secondary);
    font-size: 12px;
}

.ef-kpi {
    --ef-kpi-accent: var(--ef-brand);
    --ef-kpi-soft: var(--ef-brand-soft);
    position: relative;
    display: grid;
    border-radius: var(--ef-radius-md);
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    overflow: hidden;
    padding: 16px;
    background:#ffffff;
    border: 1px solid var(--ef-border);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ef-kpi-violet {
    --ef-kpi-accent: #7038ed;
    --ef-kpi-soft: #f3efff;
}

.ef-kpi-green {
    --ef-kpi-accent: #16a34a;
    --ef-kpi-soft: #edf8f1;
}

.ef-kpi-blue {
    --ef-kpi-accent: #2f73ec;
    --ef-kpi-soft: #eef5ff;
}

.ef-kpi-orange {
    --ef-kpi-accent: #f17a1a;
    --ef-kpi-soft: #fff2e9;
}

.ef-kpi-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--ef-kpi-accent);
    background: var(--ef-kpi-soft);
    border: 1px solid color-mix(in srgb, var(--ef-kpi-accent) 7%, transparent);
    border-radius: 12px;
}

.ef-kpi-icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ef-kpi-copy {
    min-width: 0;
}

.ef-kpi-label {
    color: var(--ef-text-secondary);
    font-size: 12px;
    font-weight: 560;
    line-height: 1.25;
}

.ef-kpi-value {
    margin-top: 5px;
    overflow: hidden;
    color: var(--ef-text);
    font-size: clamp(19px, 1.55vw, 23px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ef-kpi-value small {
    font-size: .7em;
    font-weight: 700;
    letter-spacing: -.01em;
}

.ef-kpi-meta {
    margin-top: 5px;
    color: var(--ef-text-tertiary);
    font-size: 11px;
    line-height: 1.25;
}

.ef-dashboard-content > [class*="col-"] {
    display: flex;
}

.ef-dashboard-content .card {
    width: 100%;
    overflow: hidden;
}

.ef-dashboard-content .card-header {
    min-height: 52px;
    gap: 10px;
}

.ef-dashboard-card-heading {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.ef-dashboard-card-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    background: var(--ef-brand-soft);
    border-radius: 8px;
}

.ef-dashboard-card-icon img {
    width: 15px;
    height: 15px;
    filter: brightness(0) saturate(100%) invert(28%) sepia(94%) saturate(3799%) hue-rotate(255deg) brightness(93%) contrast(98%);
}

.ef-app-shell .progress {
    height: 6px !important;
    background: #eeeeF2;
    border-radius: 3px;
}

.ef-app-shell .progress-bar {
    background: var(--ef-brand);
    border-radius: 3px;
}


.ef-settings-nav {
    position: sticky;
    top: calc(var(--ef-topbar) + 20px);
    padding: 8px;
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-md);
}

.ef-settings-nav-heading {
    padding: 4px 9px 8px;
    color: var(--ef-text-tertiary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ef-settings-page .settings-tabs .nav-link {
    display: flex;
    width: 100%;
    min-height: 36px;
    justify-content: flex-start !important;
    gap: 9px;
    padding: 7px 9px;
    color: var(--ef-text-secondary);
    font-size: 12px;
    font-weight: 550;
    text-align: left;
    border-radius: 6px;
}

.ef-settings-nav .settings-tabs{
    flex-direction: column;
}

.ef-settings-page .settings-tabs .nav-link:hover {
    color: var(--ef-text);
    background: var(--ef-surface-hover);
}

.ef-settings-page .settings-tabs .nav-link.active {
    color: #5b21b6;
    background: var(--ef-brand-soft);
}

.ef-settings-page .settings-tabs .nav-link img {
    width: 16px;
    height: 16px;
    opacity: .75;
}

.ef-settings-content {
    min-width: 0;
}

.ef-settings-content > .tab-pane > .card {
    margin-bottom: 16px !important;
}


.ef-client-dialog {
    width: calc(100% - 32px);
    max-width: 760px;
}

.ef-client-modal-header {
    align-items: flex-start;
}

.ef-client-modal-header p {
    margin: 3px 0 0;
    color: var(--ef-text-secondary);
    font-size: 12px;
}

.ef-client-edit-form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.ef-client-modal .modal-body {
    min-height: 0;
    max-height: min(68vh, 700px);
    overflow-y: auto;
}

.ef-client-step-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 18px;
}

.ef-step-number {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    color: #5b21b6;
    font-size: 12px;
    font-weight: 700;
    background: var(--ef-brand-soft);
    border: 1px solid #e5dcfb;
    border-radius: 6px;
}

.ef-client-step-heading h2 {
    margin: 0;
    color: var(--ef-text);
    font-size: 14px;
    font-weight: 650;
    line-height: 20px;
}

.ef-client-step-heading p {
    margin: 2px 0 0;
    color: var(--ef-text-secondary);
    font-size: 12px;
}

.ef-client-lookup {
    max-width: 560px;
    margin: 2px auto;
}

.ef-client-type-list {
    display: grid;
    gap: 8px;
}

.ef-client-type-option {
    display: grid !important;
    min-height: 66px;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    margin: 0 !important;
    padding: 11px 13px;
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-sm);
    transition: background-color 140ms ease, border-color 140ms ease;
}

.ef-client-type-option:hover {
    background: var(--ef-surface-subtle);
    border-color: #cbcbd4;
}

.ef-client-type-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    background: var(--ef-surface-subtle);
    border: 1px solid var(--ef-border-subtle);
    border-radius: 7px;
}

.ef-client-type-icon img {
    width: 18px;
    height: 18px;
    opacity: .72;
}

.ef-client-type-copy {
    min-width: 0;
}

.ef-client-type-copy strong,
.ef-client-type-copy small {
    display: block;
}

.ef-client-type-copy strong {
    color: var(--ef-text);
    font-size: 12px;
    font-weight: 650;
}

.ef-client-type-copy small {
    margin-top: 2px;
    color: var(--ef-text-secondary);
    font-size: 12px;
}

.ef-choice-indicator {
    position: relative;
    width: 16px;
    height: 16px;
    border: 1px solid #c7c7d0;
    border-radius: 50%;
}

.ef-client-type-list .btn-check:checked + .ef-client-type-option {
    background: var(--ef-brand-soft);
    border-color: #cfc1f5;
}

.ef-client-type-list .btn-check:checked + .ef-client-type-option .ef-choice-indicator {
    border: 5px solid var(--ef-brand);
}

.ef-client-type-list .btn-check:focus-visible + .ef-client-type-option {
    outline: 2px solid color-mix(in srgb, var(--ef-brand) 72%, white);
    outline-offset: 2px;
}

.ef-client-lookup-field {
    max-width: 390px;
    margin-left: 35px;
    padding: 14px;
    background: var(--ef-surface-subtle);
    border: 1px solid var(--ef-border-subtle);
    border-radius: var(--ef-radius-sm);
}

.ef-field-error,
.ef-required {
    color: var(--ef-danger);
}

.ef-field-error {
    margin-top: 5px;
    font-size: 12px;
}

.ef-client-details-heading {
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ef-border-subtle);
}

.ef-client-type-badge {
    margin-left: auto;
    padding: 4px 7px;
    color: var(--ef-text-secondary);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--ef-surface-subtle);
    border: 1px solid var(--ef-border);
    border-radius: 6px;
}

.ef-client-details textarea.form-control {
    min-height: 64px;
    resize: vertical;
}

.ef-client-switch {
    width: max-content;
    margin-top: 3px;
    padding: 9px 12px 9px 42px;
    background: var(--ef-surface-subtle);
    border: 1px solid var(--ef-border-subtle);
    border-radius: var(--ef-radius-sm);
}

.ef-client-modal-footer {
    justify-content: space-between;
}

.ef-settings-content .sec-grid {
    display: grid;
    gap: 16px;
}

.ef-settings-content .sec-tile {
    padding: 0 0 20px;
    border: 0;
    border-bottom: 1px solid var(--ef-border-subtle);
    border-radius: 0;
    box-shadow: none;
}

.ef-settings-content .sec-tile:last-child {
    border-bottom: 0;
}

.ef-settings-content .sec-icon {
    display: none;
}

.ef-settings-content .spv-settings {
    padding: 10px;
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-md);
}

.ef-settings-content .spv-banner {
    padding: 12px 14px;
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-md);
    box-shadow: none;
}

.ef-settings-content .spv-banner::before {
    display: none;
}

.ef-settings-content .spv-banner::after {
    width: 2px;
    border-radius: var(--ef-radius-md) 0 0 var(--ef-radius-md);
}

.ef-settings-content .spv-banner .spv-ico {
    width: 30px;
    height: 30px;
    background: var(--ef-surface-subtle);
    border-radius: 6px;
}

.ef-settings-content .spv-setting-row {
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--ef-border-subtle);
    border-radius: 0;
}

.ef-settings-content .spv-setting-row:last-child {
    border-bottom: 0;
}

.ef-settings-content .spv-note {
    padding: 4px 7px;
    font-size: 12px;
    border-radius: 6px;
}

.ef-settings-content .notif-list::before {
    display: none;
}

.ef-settings-content .notif-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    margin: 0;
    padding: 12px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ef-border-subtle);
    border-radius: 0;
    box-shadow: none !important;
}

.ef-settings-content .notif-item:last-child {
    border-bottom: 0;
}

.ef-settings-content .notif-marker {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.ef-settings-content .notif-meta {
    min-width: 0;
}

.ef-settings-content .notif-badge {
    padding: 3px 6px;
    font-size: 11px;
    border-radius: 6px;
}

.ef-invoice-editor .ef-page-header {
    margin-bottom: 20px;
}

.ef-invoice-editor > .row {
    --bs-gutter-x: 24px;
}

.ef-invoice-editor .card {
    overflow: visible;
}

.ef-invoice-editor .form-label,
.ef-invoice-editor .form-check-label {
    font-size: 13px;
}

.ef-invoice-editor .form-control,
.ef-invoice-editor .form-select {
    font-size: 14px;
}

.ef-editor-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ef-editor-section-heading h2,
.ef-editor-section-heading h3,
.ef-invoice-products-card .card-header h2,
.ef-invoice-summary h2 {
    margin: 0;
    color: var(--ef-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.ef-editor-section-heading h3 {
    font-size: 15px;
}

.ef-editor-section-heading p,
.ef-invoice-products-card .card-header p {
    margin: 4px 0 0;
    color: var(--ef-text-secondary);
    font-size: 13px;
}

.ef-editor-section-heading-compact {
    margin-bottom: 14px;
}

.ef-editor-step,
.ef-summary-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--ef-brand);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ef-section-divider,
.ef-summary-divider {
    height: 1px;
    margin: 22px 0;
    background: var(--ef-border-subtle);
}

.ef-inline-control {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.ef-inline-control .form-select {
    min-width: 0;
}

.ef-inline-control .btn {
    min-height: 38px;
}

.ef-exchange-rate {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ef-text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

.ef-exchange-rate .form-control {
    width: 104px;
    min-width: 104px;
}

.ef-invoice-products-card .card-header {
    min-height: 78px;
    padding: 16px;
}

.ef-count-badge,
.ef-document-badge {
    color: #5b21b6;
    background: var(--ef-brand-soft);
    border: 1px solid #ddd3fb;
}

.ef-count-badge {
    min-width: 30px;
    padding: 6px 9px;
    font-size: 12px;
}

.ef-product-entry {
    background: var(--ef-surface-subtle);
}

.ef-add-product-column {
    align-items: flex-start;
    padding-top: 25px;
}

.ef-add-product-button {
    min-width: 0;
    padding-inline: 9px;
    white-space: nowrap;
}

.ef-invoice-editor .table-responsive {
    padding: 0 !important;
    border-radius: 0 0 var(--ef-radius-md) var(--ef-radius-md);
}

.ef-empty-products {
    display: flex;
    min-height: 108px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px;
    color: var(--ef-text-secondary);
    background: var(--ef-surface);
}

.ef-empty-products-mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--ef-brand);
    font-size: 14px;
    font-weight: 750;
    background: var(--ef-brand-soft);
    border-radius: 50%;
    place-items: center;
}

.ef-empty-products h3 {
    margin: 0 0 3px;
    color: var(--ef-text);
    font-size: 14px;
    font-weight: 650;
}

.ef-empty-products p,
.ef-character-count {
    font-size: 12px;
}

.ef-invoice-summary {
    top: calc(var(--ef-topbar) + 20px);
    border-color: #ddd8eb !important;
    box-shadow: 0 12px 30px rgba(35, 22, 58, .07) !important;
}

.ef-document-badge {
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 700;
}

.ef-summary-client {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px;
    background: var(--ef-brand-soft);
    border: 1px solid #e3dcfb;
    border-radius: var(--ef-radius-md);
}

.ef-summary-client strong {
    overflow: hidden;
    color: var(--ef-text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ef-summary-client small {
    color: var(--ef-text-secondary);
    font-size: 12px;
}

.ef-summary-label {
    display: block;
    color: var(--ef-text-tertiary);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.ef-summary-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    margin-top: 18px;
}

.ef-summary-meta strong {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--ef-text);
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ef-summary-products {
    display: grid;
    max-height: 210px;
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
}

.ef-summary-product-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--ef-border-subtle);
}

.ef-summary-product-row:last-child {
    border-bottom: 0;
}

.ef-summary-product-row > div {
    min-width: 0;
}

.ef-summary-product-row strong,
.ef-summary-product-row span {
    display: block;
}

.ef-summary-product-row strong {
    overflow: hidden;
    color: var(--ef-text);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ef-summary-product-row span {
    margin-top: 2px;
    color: var(--ef-text-tertiary);
    font-size: 11px;
}

.ef-summary-product-row b {
    flex-shrink: 0;
    color: var(--ef-text);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ef-summary-products-empty {
    padding: 11px;
    color: var(--ef-text-tertiary);
    font-size: 12px;
    text-align: center;
    background: var(--ef-surface-subtle);
    border-radius: var(--ef-radius-sm);
}

.ef-summary-totals {
    display: grid;
    gap: 10px;
}

.ef-summary-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    color: var(--ef-text-secondary);
    font-size: 13px;
}

.ef-summary-total-row strong {
    color: var(--ef-text);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ef-summary-grand-total {
    margin-top: 2px;
    padding-top: 13px;
    color: var(--ef-text);
    font-size: 15px;
    font-weight: 700;
    border-top: 1px solid var(--ef-border);
}

.ef-summary-grand-total strong {
    color: var(--ef-brand-hover);
    font-size: 21px;
    letter-spacing: -.02em;
}

.ef-summary-conversion {
    padding: 7px 9px;
    color: var(--ef-text-secondary);
    font-size: 12px;
    text-align: right;
    background: var(--ef-surface-subtle);
    border-radius: var(--ef-radius-sm);
}

.ef-summary-hint {
    margin-top: 18px;
    padding: 10px 11px;
    color: var(--ef-text-secondary);
    font-size: 12px;
    line-height: 1.45;
    background: var(--ef-info-soft);
    border-radius: var(--ef-radius-sm);
}

.ef-mention-presets {
    margin-bottom: 14px;
    padding: 13px;
    background: var(--ef-surface-subtle);
    border: 1px solid var(--ef-border-subtle);
    border-radius: var(--ef-radius-md);
}

.ef-mention-presets strong {
    color: var(--ef-text);
    font-size: 13px;
}

.ef-mention-presets .text-muted {
    margin-top: 2px;
    font-size: 12px;
}

.ef-mention-presets code {
    padding: 1px 4px;
    color: #5b21b6;
    font-size: 11px;
    background: #eee9ff;
    border-radius: 4px;
}

.ef-mention-template-button {
    overflow: hidden;
    max-width: 210px;
    color: #5b21b6;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--ef-surface);
    border: 1px solid #d8cdf8;
}

.ef-mention-template-button:hover {
    color: #4c1d95;
    background: var(--ef-brand-soft);
    border-color: #c5b5f1;
}

.ef-custom-mention-template .ef-mention-template-button {
    border-radius: var(--ef-radius-sm) 0 0 var(--ef-radius-sm);
}

.ef-mention-template-delete {
    color: var(--ef-text-tertiary);
    background: var(--ef-surface);
    border: 1px solid #d8cdf8;
    border-left: 0;
    border-radius: 0 var(--ef-radius-sm) var(--ef-radius-sm) 0;
}

.ef-mention-template-delete:hover {
    color: var(--ef-danger);
    background: var(--ef-danger-soft);
}

.ef-mention-template-editor {
    padding-top: 12px;
    border-top: 1px solid var(--ef-border-subtle);
}

.ef-automatic-exchange-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 12px;
    color: var(--ef-text-secondary);
    background: var(--ef-success-soft);
    border: 1px solid #cdebd7;
    border-radius: var(--ef-radius-sm);
}

.ef-automatic-exchange-icon {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    background: var(--ef-success);
    border-radius: 50%;
    place-items: center;
}

.ef-automatic-exchange-note strong,
.ef-automatic-exchange-note span,
.ef-automatic-exchange-note small {
    display: block;
}

.ef-automatic-exchange-note strong {
    color: #126331;
    font-size: 13px;
}

.ef-automatic-exchange-note span {
    margin-top: 2px;
    color: #205e38;
    font-size: 12px;
}

.ef-automatic-exchange-note small {
    margin-top: 3px;
    color: #4e725b;
    font-size: 11px;
}


.ef-app-shell .alert {
    padding: 10px 12px;
    color: var(--ef-text-secondary);
    font-size: 12px;
    background: var(--ef-surface-subtle);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-sm);
}

.ef-app-shell .alert-danger {
    color: #8e2c25;
    background: var(--ef-danger-soft);
    border-color: #f1cbc6;
}

.ef-app-shell .alert-warning {
    color: #80500e;
    background: var(--ef-warning-soft);
    border-color: #f0ddb7;
}

.ef-empty-state {
    display: grid;
    min-height: 150px;
    place-items: center;
    padding: 24px;
    text-align: center;
}

.ef-empty-state-content {
    max-width: 420px;
}

.ef-empty-state img {
    width: 24px;
    height: 24px;
    margin-bottom: 10px;
    opacity: .45;
}

.ef-empty-state h3 {
    margin: 0;
    color: var(--ef-text);
    font-size: 13px;
    font-weight: 650;
}

.ef-empty-state p {
    margin: 4px 0 0;
    color: var(--ef-text-secondary);
    font-size: 12px;
}

.ef-empty-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

.ef-app-shell .placeholder,
.ef-app-shell .skeleton-cell {
    background-color: #ececf0 !important;
    border-radius: 4px;
    animation: ef-skeleton 1.4s ease-in-out infinite;
}

@keyframes ef-skeleton {
    0%, 100% { opacity: .55; }
    50% { opacity: .9; }
}

.ef-app-shell .toast-container {
    z-index: 1090;
    padding: 18px !important;
}

.ef-app-shell .toast-container.ef-notification-container {
    right: 10px !important;
    bottom: 10px !important;
    left: auto !important;
    padding: 0 !important;
}

.ef-app-shell .toast {
    min-width: 280px;
    color: var(--ef-text) !important;
    background: var(--ef-surface) !important;
    border: 1px solid var(--ef-border) !important;
    border-left: 3px solid var(--ef-success) !important;
    border-radius: var(--ef-radius-md);
    box-shadow: 0 12px 32px rgba(24, 24, 27, .12);
}

.ef-app-shell .toast.ef-toast-error,
.ef-app-shell .toast.text-bg-danger {
    border-left-color: var(--ef-danger) !important;
}

.ef-app-shell .toast .btn-close {
    filter: none;
}

@media (max-width: 575.98px) {
    .ef-app-shell .toast-container.ef-notification-container {
        right: 10px !important;
        left: 10px !important;
        width: auto;
        max-width: calc(100vw - 20px);
    }

    .ef-app-shell .ef-notification-container .toast {
        width: 100%;
        min-width: 0;
    }
}


.ef-app-shell .dropdown-menu {
    padding: 4px;
    color: var(--ef-text);
    font-size: 12px;
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08) !important;
}

.ef-app-shell .dropdown-item {
    display: flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 9px;
    color: #34343a;
    font-size: 12px;
    border-radius: 5px;
}

.ef-app-shell .dropdown-item:hover,
.ef-app-shell .dropdown-item:focus {
    color: var(--ef-text);
    background: var(--ef-surface-hover);
}

.ef-app-shell .dropdown-item.active,
.ef-app-shell .dropdown-item:active {
    color: #5b21b6;
    background: var(--ef-brand-soft);
}

.ef-app-shell .dropdown-item.text-danger {
    color: var(--ef-danger) !important;
}

.ef-app-shell .dropdown-divider {
    margin: 4px -4px;
    border-color: var(--ef-border-subtle);
}

.ef-app-shell .modal,
.ef-app-overlays .modal {
    --bs-modal-border-radius: var(--ef-radius-lg);
}

.ef-app-shell .modal-backdrop,
.modal-backdrop.show {
    opacity: .36;
}

.ef-app-shell .modal-content,
.ef-app-overlays .modal-content {
    overflow: hidden;
    color: var(--ef-text);
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .14);
}

.ef-app-shell .modal-header,
.ef-app-shell .modal-footer,
.ef-app-overlays .modal-header,
.ef-app-overlays .modal-footer {
    border-color: var(--ef-border-subtle);
}

.ef-app-overlays .modal-body {
    padding: 18px;
}

.ef-app-shell .modal-title,
.ef-app-overlays .modal-title {
    font-size: 14px;
    font-weight: 650;
}

.ef-app-shell .btn-close-white,
.ef-app-overlays .btn-close-white {
    filter: none;
}

.ef-app-overlays .btn {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    border-radius: var(--ef-radius-sm);
    box-shadow: none !important;
}

.ef-app-overlays .btn-primary {
    color: #fff;
    background: var(--ef-brand);
    border-color: var(--ef-brand);
}

.ef-app-overlays .btn-outline-primary,
.ef-app-overlays .btn-outline-secondary,
.ef-app-overlays .btn-light {
    color: #27272a;
    background: var(--ef-surface);
    border-color: #dcdce3;
}

.ef-app-overlays .form-control,
.ef-app-overlays .form-select {
    min-height: 38px;
    color: var(--ef-text);
    font-size: 13px;
    background-color: var(--ef-surface);
    border-color: #dcdce3;
    border-radius: var(--ef-radius-sm);
}

.ef-app-overlays .form-control:focus,
.ef-app-overlays .form-select:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .08);
}

.ef-app-overlays label {
    margin-bottom: 6px;
    color: #3f3f46;
    font-size: 12px;
    font-weight: 550;
}

.ef-app-shell .offcanvas {
    color: var(--ef-text);
    background: var(--ef-surface);
    border-color: var(--ef-border);
}

.ef-app-shell .offcanvas-end {
    width: min(400px, calc(100vw - 24px));
}

.ef-app-shell .offcanvas-header,
.ef-app-shell .offcanvas-footer {
    padding: 14px 16px;
    border-color: var(--ef-border-subtle) !important;
}

.ef-app-shell .offcanvas-body {
    padding: 16px;
}

.ef-app-shell .accordion-item {
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-md) !important;
}

.ef-app-shell .accordion-button {
    min-height: 52px;
    padding: 12px 14px;
    color: var(--ef-text);
    font-size: 12px;
    background: var(--ef-surface);
    box-shadow: none;
}

.ef-app-shell .accordion-button:not(.collapsed) {
    color: var(--ef-text);
    background: var(--ef-surface-subtle);
}

.ef-app-shell .nav-tabs {
    gap: 2px;
    border-bottom: 1px solid var(--ef-border);
}

.ef-app-shell .nav-tabs .nav-link {
    min-height: 36px;
    padding: 7px 10px;
    color: var(--ef-text-secondary);
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.ef-app-shell .nav-tabs .nav-link.active {
    color: #5b21b6;
    background: transparent;
    border-bottom-color: var(--ef-brand);
}

.ef-app-shell .droparea-min {
    min-height: 130px;
    padding: 24px;
    color: var(--ef-text-secondary);
    background: var(--ef-surface-subtle);
    border: 1px dashed #cfcfd8;
    border-radius: var(--ef-radius-md);
}

.ef-app-shell .file-row {
    min-height: 48px;
    border-bottom: 1px solid var(--ef-border-subtle);
}

.ef-app-shell .pagination {
    gap: 3px;
    margin: 0;
}

.ef-app-shell .pagination .btn {
    display: grid;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    place-items: center;
    padding: 0;
}

.ef-app-shell .pagination .active {
    color: #5b21b6;
    background: var(--ef-brand-soft);
    border-color: #ded3fb;
}


@media (max-width: 1199.98px) {
    .ef-workspace {
        padding-inline: 24px;
    }

}

@media (max-width: 991.98px) {
    .ef-app-loading {
        grid-template-columns: 1fr;
    }

    .ef-app-loading-sidebar {
        display: none;
    }

    .ef-sidebar {
        z-index: 1090 !important;
        width: min(286px, calc(100vw - 48px));
        min-width: 0;
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }

    .ef-sidebar.show,
    .ef-sidebar.showing {
        transform: none;
    }

    .ef-app-main {
        margin-left: 0;
    }

    .ef-topbar {
        padding: 0 16px;
    }

    .ef-mobile-menu,
    .ef-mobile-brand {
        display: grid;
    }

    .ef-mobile-brand {
        place-items: center;
        max-width: 132px;
    }

    .ef-mobile-brand .brand img,
    .ef-mobile-brand .brand svg {
        display: block;
        max-width: 126px;
        max-height: 30px;
    }

    .ef-topbar-context {
        display: none;
    }

    .ef-account-menu {
        inset: auto 0 calc(100% + 8px) 0 !important;
        width: 100%;
        min-width: 0;
        max-height: min(380px, calc(100vh - 150px));
    }

    .ef-settings-nav {
        position: static;
        overflow: visible;
        padding: 6px;
    }

    .ef-settings-page .settings-tabs .nav-link {
        width: 100%;
        justify-content: center !important;
        white-space: nowrap;
    }

    .ef-settings-page .settings-tabs .nav-link span {
        display: inline !important;
    }
}

@media (max-width: 1199.98px) {
    .ef-invoice-summary.position-sticky {
        position: static !important;
    }
}

@media (max-width: 767.98px) {
    .ef-workspace {
        padding: 20px 16px 36px;
    }

    .ef-page-header {
        min-height: 0;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 20px;
    }

    .ef-page-heading h1 {
        font-size: 22px;
        line-height: 28px;
    }

    .ef-page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .ef-list-toolbar {
        align-items: stretch;
    }

    .ef-list-toolbar .input-group,
    .ef-list-search {
        width: 100%;
        max-width: none !important;
        flex-basis: 100%;
    }

    .ef-kpi {
        min-height: 96px;
        padding: 14px;
    }

    .ef-kpi-value {
        font-size: 18px;
    }

    .ef-dashboard-notice {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ef-dashboard-notice .btn {
        width: 100%;
        margin-left: 50px;
    }

    .ef-table-wrap .table {
        min-width: 720px;
    }

    .ef-invoice-editor .card-body {
        padding: 14px;
    }

    .ef-invoice-editor .ef-editor-actions {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }

    .ef-invoice-editor .ef-editor-actions .btn {
        flex: 1 1 0;
    }

    .ef-invoice-products-card .card-header {
        min-height: 0;
    }

    .ef-app-shell .modal-header,
    .ef-app-shell .modal-footer {
        padding-inline: 14px;
    }

    .ef-client-dialog {
        width: auto;
        max-width: none;
        margin: 10px;
    }

    .ef-client-modal .modal-content {
        max-height: calc(100dvh - 20px);
    }

    .ef-client-modal .modal-body {
        max-height: none;
        flex: 1;
    }

    .ef-client-lookup-field {
        max-width: none;
        margin-left: 0;
    }
}

@media (max-width: 479.98px) {
    .ef-topbar {
        height: 56px;
        padding: 0 10px;
    }

    .ef-topbar-actions {
        gap: 0;
    }

    .ef-inline-control {
        flex-direction: column;
    }

    .ef-inline-control .btn,
    .ef-add-product-button {
        width: 100%;
    }

    .ef-add-product-column {
        padding-top: 0;
    }

    .ef-mention-template-button {
        max-width: 170px;
    }

    .ef-invoice-products-card .card-header {
        align-items: flex-start !important;
    }

    .ef-empty-products {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .ef-summary-grand-total {
        align-items: flex-end;
        flex-direction: column;
        gap: 4px;
    }

    .ef-page-actions .btn {
        flex: 1 1 auto;
    }

    .ef-settings-page .settings-tabs .nav-link {
        justify-content: flex-start !important;
    }

    .ef-client-step-heading {
        margin-bottom: 14px;
    }

    .ef-client-details-heading {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .ef-client-type-badge {
        grid-column: 2;
        width: max-content;
        margin: 2px 0 0;
    }

    .ef-client-modal-footer .btn {
        flex: 1 1 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ef-app-shell *,
    .ef-app-shell *::before,
    .ef-app-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
