/* E.Muwafaq Professional Accounting Workspace UI v3.3.0
 * Compact, production-oriented accounting workspace for Dolibarr 22.0.5.
 * Presentation only. No accounting or workflow behavior is implemented here.
 */

body.emu3-workspace-page {
    --emu3-sidebar:var(--emu-soft,#f8fafc);
    --emu3-sidebar-strong:var(--emu-primary-100,#eaf2f7);
    --emu3-canvas:var(--emu-bg,#f6f7f9);
    --emu3-panel:var(--emu-panel,#ffffff);
    --emu3-panel-soft:var(--emu-soft,#f8fafc);
    --emu3-heading:var(--emu-ink,#1d2939);
    --emu3-text:var(--emu-ink-soft,#344054);
    --emu3-muted:var(--emu-muted,#667085);
    --emu3-faint:var(--emu-muted-2,#98a2b3);
    --emu3-line:var(--emu-line,#e1e5ea);
    --emu3-line-strong:var(--emu-line-strong,#cfd6de);
    --emu3-blue:var(--emu-primary-700,#1f648e);
    --emu3-blue-dark:var(--emu-primary-900,#103755);
    --emu3-blue-soft:var(--emu-primary-100,#eaf2f7);
    --emu3-teal:var(--emu-primary-800,#175278);
    --emu3-teal-soft:var(--emu-primary-100,#eaf2f7);
    --emu3-gold:var(--emu-accent,#b8892b);
    --emu3-gold-soft:var(--emu-accent-soft,#f8f3e8);
    --emu3-green:var(--emu-success,#237a52);
    --emu3-green-soft:#edf6f1;
    --emu3-red:var(--emu-danger,#b04444);
    --emu3-red-soft:#fbeeee;
    --emu3-amber:var(--emu-warning,#946200);
    --emu3-amber-soft:#fff3e4;
    --emu3-shadow:0 1px 2px rgba(24,34,44,.04),0 7px 24px rgba(24,34,44,.045);
    --emu3-font:"Segoe UI","Noto Sans Arabic",Tahoma,Arial,sans-serif;
    overflow-x:hidden;
    background:var(--emu3-canvas) !important;
}

body.emu3-workspace-page,
body.emu3-workspace-page button,
body.emu3-workspace-page input,
body.emu3-workspace-page select,
body.emu3-workspace-page textarea {
    font-family:var(--emu3-font) !important;
}

body.emu3-workspace-page #id-container {
    display:block !important;
    width:100% !important;
}

body.emu3-workspace-page #id-left,
body.emu3-workspace-page .vmenu:not(.emu3-sidebar-nav) {
    display:none !important;
}

body.emu3-workspace-page #id-right {
    display:block !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    background:var(--emu3-canvas) !important;
}

body.emu3-workspace-page #id-right > .fiche,
body.emu3-workspace-page #id-right .fiche:first-child {
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
}

.emu3-workspace,
.emu3-workspace *,
.emu3-workspace *::before,
.emu3-workspace *::after {
    box-sizing:border-box;
}

.emu3-workspace {
    display:flex;
    width:100%;
    min-height:calc(100vh - 52px);
    background:var(--emu3-canvas);
    color:var(--emu3-text);
    font-family:var(--emu3-font);
    font-size:13px;
    line-height:1.42;
}

.emu3-workspace a {
    text-decoration:none !important;
}

.emu3-workspace .emu-icon {
    display:block !important;
    width:20px !important;
    min-width:20px !important;
    max-width:20px !important;
    height:20px !important;
    min-height:20px !important;
    max-height:20px !important;
    flex:0 0 20px !important;
    overflow:visible;
}

/* Light, compact sidebar intentionally follows the accounting-software
 * reference: dense grouping, calm contrast and persistent reachability. */
.emu3-sidebar {
    position:sticky;
    top:0;
    z-index:42;
    display:flex;
    width:238px;
    height:calc(100vh - 52px);
    flex:0 0 238px;
    flex-direction:column;
    overflow:hidden;
    border-inline-end:1px solid var(--emu3-line-strong);
    background:var(--emu3-sidebar);
    box-shadow:2px 0 10px rgba(24,34,44,.025);
    transition:width .18s ease,flex-basis .18s ease,transform .2s ease;
}

.emu3-sidebar-brand {
    display:flex;
    min-height:68px;
    align-items:center;
    gap:10px;
    padding:11px 12px;
    border-bottom:1px solid var(--emu3-line);
    background:var(--emu3-panel);
}

.emu3-company-mark {
    position:relative;
    display:grid;
    width:40px;
    height:40px;
    flex:0 0 40px;
    place-items:center;
    overflow:hidden;
    border:1px solid #c9d5dd;
    border-radius:9px;
    background:linear-gradient(145deg,#fff,#eef3f6);
    color:var(--emu3-blue-dark);
    box-shadow:0 2px 6px rgba(24,34,44,.07);
    font-size:17px;
    font-weight:800;
    text-transform:uppercase;
}

.emu3-company-mark::after {
    position:absolute;
    right:-7px;
    bottom:-8px;
    width:18px;
    height:18px;
    border-radius:50%;
    background:var(--emu3-gold);
    content:"";
    opacity:.86;
}

.emu3-company-mark img {
    position:relative;
    z-index:1;
    display:block;
    width:100%;
    height:100%;
    padding:4px;
    object-fit:contain;
}

.emu3-company-mark span {
    position:relative;
    z-index:1;
}

.emu3-brand-copy {
    min-width:0;
    flex:1 1 auto;
}

.emu3-brand-copy strong,
.emu3-brand-copy span {
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.emu3-brand-copy strong {
    color:var(--emu3-heading);
    font-size:12px;
    font-weight:750;
}

.emu3-brand-copy span {
    margin-top:2px;
    color:var(--emu3-muted);
    font-size:9.5px;
}

.emu3-icon-button {
    display:inline-grid;
    width:32px;
    height:32px;
    min-width:32px;
    min-height:32px;
    padding:0 !important;
    place-items:center;
    border:1px solid transparent !important;
    border-radius:7px !important;
    background:transparent !important;
    color:#6f7d87 !important;
    box-shadow:none !important;
    cursor:pointer;
}

.emu3-icon-button:hover {
    border-color:var(--emu3-line) !important;
    background:var(--emu3-sidebar-strong) !important;
    color:var(--emu3-blue-dark) !important;
}

.emu3-icon-button .emu-icon {
    width:17px !important;
    min-width:17px !important;
    max-width:17px !important;
    height:17px !important;
    min-height:17px !important;
    max-height:17px !important;
    flex-basis:17px !important;
}

.emu3-sidebar-close,
.emu3-sidebar-open {
    display:none;
}

.emu3-nav-search {
    position:relative;
    display:flex;
    flex:0 0 auto;
    align-items:center;
    margin:9px 8px 2px;
}

.emu3-nav-search-icon {
    position:absolute;
    inset-inline-start:9px;
    z-index:1;
    display:grid;
    width:16px;
    height:16px;
    place-items:center;
    color:#86939c;
    pointer-events:none;
}

.emu3-nav-search-icon .emu-icon {
    width:14px !important;
    min-width:14px !important;
    max-width:14px !important;
    height:14px !important;
    min-height:14px !important;
    max-height:14px !important;
    flex-basis:14px !important;
}

.emu3-nav-search input[type="search"] {
    width:100%;
    height:32px;
    min-height:32px;
    padding:5px 9px 5px 31px !important;
    border:1px solid #dce2e6 !important;
    border-radius:7px !important;
    outline:0;
    background:#fff !important;
    color:var(--emu3-heading) !important;
    box-shadow:0 1px 2px rgba(24,34,44,.025) !important;
    font-size:10px !important;
}

[dir="rtl"] .emu3-nav-search input[type="search"] {
    padding-right:31px !important;
    padding-left:9px !important;
}

.emu3-nav-search input[type="search"]:focus {
    border-color:#9ab9ca !important;
    box-shadow:0 0 0 3px rgba(33,107,145,.09) !important;
}

.emu3-nav-search input[type="search"]::placeholder {
    color:#9aa4ab;
    opacity:1;
}

.emu3-sidebar-nav {
    flex:1 1 auto;
    overflow:auto;
    padding:9px 8px 18px;
    scrollbar-color:#ccd3d9 transparent;
    scrollbar-width:thin;
}

.emu3-nav-group + .emu3-nav-group {
    margin-top:10px;
    padding-top:9px;
    border-top:1px solid #e7eaed;
}

.emu3-nav-heading {
    padding:0 8px 5px;
    color:#919ba3;
    font-size:8.5px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.emu3-nav-item {
    position:relative;
    display:flex;
    min-height:34px;
    align-items:center;
    gap:9px;
    margin:1px 0;
    padding:6px 8px;
    border:1px solid transparent;
    border-radius:7px;
    color:#53636f !important;
    transition:background-color .12s ease,border-color .12s ease,color .12s ease;
}

.emu3-nav-item:hover {
    border-color:#e0e5e9;
    background:#fff;
    color:var(--emu3-blue-dark) !important;
}

.emu3-nav-item.is-disabled {
    cursor:not-allowed;
    opacity:.52;
}

.emu3-nav-item.is-disabled:hover {
    border-color:transparent;
    background:transparent;
    color:#53636f !important;
}

.emu3-nav-lock {
    display:grid;
    width:18px;
    height:18px;
    flex:0 0 18px;
    place-items:center;
    color:#8f9aa2;
}

.emu3-nav-lock .emu-icon {
    width:12px !important;
    min-width:12px !important;
    max-width:12px !important;
    height:12px !important;
    min-height:12px !important;
    max-height:12px !important;
    flex-basis:12px !important;
}

.emu3-nav-item.is-active {
    border-color:#cbdce6;
    background:var(--emu3-blue-soft);
    color:var(--emu3-blue-dark) !important;
    box-shadow:inset 3px 0 0 var(--emu3-blue);
}

.emu3-nav-icon {
    display:grid;
    width:24px;
    height:24px;
    flex:0 0 24px;
    place-items:center;
    border-radius:6px;
    color:#7e8d97;
}

.emu3-nav-icon .emu-icon {
    width:16px !important;
    min-width:16px !important;
    max-width:16px !important;
    height:16px !important;
    min-height:16px !important;
    max-height:16px !important;
    flex-basis:16px !important;
}

.emu3-nav-item.is-active .emu3-nav-icon {
    background:#fff;
    color:var(--emu3-blue);
    box-shadow:0 1px 2px rgba(24,34,44,.05);
}

.emu3-nav-label {
    min-width:0;
    flex:1 1 auto;
    overflow:hidden;
    font-size:11px;
    font-weight:600;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.emu3-nav-item .emu-nav-badge {
    display:inline-grid;
    min-width:21px;
    height:18px;
    padding:0 5px;
    place-items:center;
    border:1px solid #d8dee3;
    border-radius:999px;
    background:#fff;
    color:#65737e;
    font-size:9px;
    font-weight:800;
    font-variant-numeric:tabular-nums;
}

.emu3-nav-empty {
    margin:18px 7px;
    padding:13px 8px;
    border:1px dashed #d4dce1;
    border-radius:7px;
    color:var(--emu3-muted);
    font-size:9.5px;
    text-align:center;
}

.emu3-sidebar-footer {
    padding:10px;
    border-top:1px solid var(--emu3-line);
    background:var(--emu3-panel);
}

.emu3-security-row {
    display:flex;
    align-items:center;
    gap:8px;
}

.emu3-security-icon {
    display:grid;
    width:29px;
    height:29px;
    flex:0 0 29px;
    place-items:center;
    border-radius:7px;
    background:var(--emu3-green-soft);
    color:var(--emu3-green);
}

.emu3-security-icon .emu-icon {
    width:15px !important;
    min-width:15px !important;
    max-width:15px !important;
    height:15px !important;
    min-height:15px !important;
    max-height:15px !important;
    flex-basis:15px !important;
}

.emu3-security-row strong,
.emu3-security-row span {
    display:block;
}

.emu3-security-row strong {
    color:#3d5048;
    font-size:9.5px;
    font-weight:750;
}

.emu3-security-row div > span {
    margin-top:1px;
    color:#8a9690;
    font-size:8.5px;
}

.emu3-version {
    margin-top:7px;
    color:#a0a8ae;
    font-size:8px;
    text-align:center;
}

body.emu-workspace-sidebar-collapsed .emu3-sidebar {
    width:66px;
    flex-basis:66px;
}

body.emu-workspace-sidebar-collapsed .emu3-sidebar-brand {
    justify-content:center;
    padding-right:7px;
    padding-left:7px;
}

body.emu-workspace-sidebar-collapsed .emu3-company-mark {
    width:38px;
    height:38px;
    flex-basis:38px;
}

body.emu-workspace-sidebar-collapsed .emu3-brand-copy,
body.emu-workspace-sidebar-collapsed .emu3-nav-search,
body.emu-workspace-sidebar-collapsed .emu3-nav-heading,
body.emu-workspace-sidebar-collapsed .emu3-nav-label,
body.emu-workspace-sidebar-collapsed .emu-nav-badge,
body.emu-workspace-sidebar-collapsed .emu3-nav-lock,
body.emu-workspace-sidebar-collapsed .emu3-security-row div,
body.emu-workspace-sidebar-collapsed .emu3-version {
    display:none;
}

body.emu-workspace-sidebar-collapsed .emu3-sidebar-collapse {
    position:absolute;
    top:55px;
    width:26px;
    height:23px;
    min-width:26px;
    min-height:23px;
    border-color:var(--emu3-line) !important;
    background:var(--emu3-panel) !important;
}

body.emu-workspace-sidebar-collapsed .emu3-sidebar-nav {
    padding-top:18px;
    padding-right:7px;
    padding-left:7px;
}

body.emu-workspace-sidebar-collapsed .emu3-nav-group + .emu3-nav-group {
    margin-top:7px;
    padding-top:7px;
}

body.emu-workspace-sidebar-collapsed .emu3-nav-item {
    justify-content:center;
    padding-right:5px;
    padding-left:5px;
}

body.emu-workspace-sidebar-collapsed .emu3-security-row {
    justify-content:center;
}

/* Main workspace */
.emu3-main {
    min-width:0;
    flex:1 1 auto;
}

.emu3-topbar {
    position:sticky;
    top:0;
    z-index:30;
    display:flex;
    min-height:62px;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:9px 20px;
    border-bottom:1px solid var(--emu3-line);
    background:rgba(255,255,255,.97);
    box-shadow:0 2px 8px rgba(24,34,44,.025);
    backdrop-filter:blur(10px);
}

.emu3-topbar-start,
.emu3-topbar-end {
    display:flex;
    align-items:center;
}

.emu3-topbar-start {
    gap:9px;
}

.emu3-topbar-end {
    gap:8px;
}

.emu3-breadcrumb {
    color:#8a959d;
    font-size:8.5px;
    font-weight:700;
    letter-spacing:.03em;
}

.emu3-topbar h1 {
    margin:2px 0 0 !important;
    color:var(--emu3-heading) !important;
    font-size:16px !important;
    font-weight:750 !important;
    letter-spacing:-.015em !important;
    line-height:1.15 !important;
}

.emu3-period-chip,
.emu3-user-chip {
    display:flex;
    min-height:34px;
    align-items:center;
    gap:7px;
    border:1px solid var(--emu3-line);
    border-radius:8px;
    background:#fff;
    color:#5a6873;
}

.emu3-period-chip {
    padding:6px 9px;
    font-size:9.5px;
    font-weight:700;
}

.emu3-period-chip .emu-icon {
    width:15px !important;
    min-width:15px !important;
    max-width:15px !important;
    height:15px !important;
    min-height:15px !important;
    max-height:15px !important;
    flex-basis:15px !important;
    color:var(--emu3-blue);
}

.emu3-user-chip {
    padding:3px 8px 3px 4px;
}

.emu3-user-avatar {
    display:grid;
    width:27px;
    height:27px;
    place-items:center;
    border-radius:6px;
    background:var(--emu3-blue-dark);
    color:#fff;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
}

.emu3-user-name {
    display:block;
    max-width:125px;
    overflow:hidden;
    color:#495761;
    font-size:9.5px;
    font-weight:700;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.emu3-content {
    width:min(100%,1500px);
    margin:0 auto;
    padding:16px 20px 30px;
}

.emu3-context-bar {
    display:flex;
    min-height:88px;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:15px 17px;
    border:1px solid var(--emu3-line);
    border-inline-start:4px solid var(--emu3-blue);
    border-radius:8px;
    background:var(--emu3-panel);
    box-shadow:var(--emu3-shadow);
}

.emu3-context-copy {
    min-width:0;
}

.emu3-context-date {
    display:block;
    color:var(--emu3-blue);
    font-size:8.5px;
    font-weight:800;
    letter-spacing:.055em;
    text-transform:uppercase;
}

.emu3-context-copy h2 {
    margin:3px 0 0 !important;
    color:var(--emu3-heading) !important;
    font-size:17px !important;
    font-weight:750 !important;
    letter-spacing:-.015em !important;
    line-height:1.25 !important;
}

.emu3-context-copy p {
    margin:4px 0 0;
    color:var(--emu3-muted);
    font-size:10.5px;
}

.emu3-context-actions {
    display:flex;
    flex:0 0 auto;
    align-items:center;
    gap:8px;
}

.emu3-button {
    display:inline-flex;
    min-height:36px;
    align-items:center;
    gap:7px;
    padding:5px 11px 5px 6px;
    border:1px solid transparent;
    border-radius:7px;
    font-size:10px;
    font-weight:750;
    transition:background-color .12s ease,border-color .12s ease,transform .12s ease;
}

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

.emu3-button-icon {
    display:grid;
    width:25px;
    height:25px;
    place-items:center;
    border-radius:5px;
}

.emu3-button-icon .emu-icon {
    width:14px !important;
    min-width:14px !important;
    max-width:14px !important;
    height:14px !important;
    min-height:14px !important;
    max-height:14px !important;
    flex-basis:14px !important;
}

.emu3-button-primary {
    border-color:var(--emu3-blue-dark);
    background:var(--emu3-blue-dark);
    color:#fff !important;
}

.emu3-button-primary .emu3-button-icon {
    background:rgba(255,255,255,.12);
}

.emu3-button-primary:hover {
    background:#123f59;
}

.emu3-button-secondary {
    border-color:var(--emu3-line-strong);
    background:#fff;
    color:#46545e !important;
}

.emu3-button-secondary .emu3-button-icon {
    background:var(--emu3-blue-soft);
    color:var(--emu3-blue);
}

.emu3-button-secondary:hover {
    border-color:#b9c8d1;
    background:#f9fbfc;
}

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

.emu3-kpi-card {
    position:relative;
    display:flex;
    min-height:82px;
    align-items:center;
    gap:11px;
    overflow:hidden;
    padding:12px;
    border:1px solid var(--emu3-line);
    border-radius:8px;
    background:var(--emu3-panel);
    color:var(--emu3-text) !important;
    box-shadow:0 1px 2px rgba(24,34,44,.025);
    transition:border-color .12s ease,box-shadow .12s ease,transform .12s ease;
}

.emu3-kpi-card::before {
    position:absolute;
    inset-block:0;
    inset-inline-start:0;
    width:3px;
    background:var(--emu3-kpi-color,#7a8790);
    content:"";
}

.emu3-kpi-card:hover {
    border-color:#cad4db;
    box-shadow:var(--emu3-shadow);
    transform:translateY(-1px);
}

.emu3-kpi-icon {
    display:grid;
    width:38px;
    height:38px;
    flex:0 0 38px;
    place-items:center;
    border-radius:8px;
    background:var(--emu3-kpi-soft,#f0f3f5);
    color:var(--emu3-kpi-color,#667783);
}

.emu3-kpi-icon .emu-icon {
    width:18px !important;
    min-width:18px !important;
    max-width:18px !important;
    height:18px !important;
    min-height:18px !important;
    max-height:18px !important;
    flex-basis:18px !important;
}

.emu3-kpi-copy {
    min-width:0;
    flex:1 1 auto;
}

.emu3-kpi-label {
    display:block;
    overflow:hidden;
    color:var(--emu3-muted);
    font-size:9.5px;
    font-weight:650;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.emu3-kpi-value {
    display:flex;
    align-items:baseline;
    gap:5px;
    margin-top:4px;
    overflow:hidden;
    color:var(--emu3-heading);
    font-size:15px;
    font-weight:800;
    font-variant-numeric:tabular-nums;
    letter-spacing:-.02em;
    white-space:nowrap;
}

.emu3-kpi-value .emu-money-currency,
.emu3-account-head .emu-money-currency,
.emu3-result-row .emu-money-currency {
    margin-inline-start:4px;
    color:var(--emu3-muted);
    font-size:8px;
    font-weight:700;
    letter-spacing:.02em;
}

.emu3-kpi-arrow {
    display:grid;
    width:22px;
    height:22px;
    flex:0 0 22px;
    place-items:center;
    border-radius:50%;
    color:#a3adb4;
}

.emu3-kpi-arrow .emu-icon,
.emu3-action-arrow .emu-icon,
.emu3-report-link .emu-icon {
    width:13px !important;
    min-width:13px !important;
    max-width:13px !important;
    height:13px !important;
    min-height:13px !important;
    max-height:13px !important;
    flex-basis:13px !important;
}

.emu3-tone-blue { --emu3-kpi-color:var(--emu3-blue); --emu3-kpi-soft:var(--emu3-blue-soft); }
.emu3-tone-teal { --emu3-kpi-color:var(--emu3-teal); --emu3-kpi-soft:var(--emu3-teal-soft); }
.emu3-tone-green { --emu3-kpi-color:var(--emu3-green); --emu3-kpi-soft:var(--emu3-green-soft); }
.emu3-tone-red { --emu3-kpi-color:var(--emu3-red); --emu3-kpi-soft:var(--emu3-red-soft); }
.emu3-tone-amber { --emu3-kpi-color:var(--emu3-amber); --emu3-kpi-soft:var(--emu3-amber-soft); }
.emu3-tone-slate { --emu3-kpi-color:#667783; --emu3-kpi-soft:#eff2f4; }

/* Statement board mirrors the reference's calm two-column accounting sheet. */
.emu3-statement-board,
.emu3-panel {
    margin-top:12px;
    overflow:hidden;
    border:1px solid var(--emu3-line);
    border-radius:8px;
    background:var(--emu3-panel);
    box-shadow:var(--emu3-shadow);
}

.emu3-board-header,
.emu3-panel-header {
    display:flex;
    min-height:57px;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:10px 14px;
    border-bottom:1px solid var(--emu3-line);
    background:var(--emu3-panel-soft);
}

.emu3-section-kicker {
    display:block;
    color:var(--emu3-muted);
    font-size:8.5px;
    font-weight:750;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.emu3-board-header h3,
.emu3-panel-header h3 {
    margin:2px 0 0 !important;
    color:var(--emu3-heading) !important;
    font-size:13px !important;
    font-weight:750 !important;
    line-height:1.2 !important;
}

.emu3-report-link {
    display:inline-flex;
    min-height:30px;
    align-items:center;
    gap:5px;
    padding:5px 8px;
    border:1px solid var(--emu3-line);
    border-radius:6px;
    background:#fff;
    color:var(--emu3-blue) !important;
    font-size:9px;
    font-weight:750;
}

.emu3-report-link:hover {
    border-color:#bed0da;
    background:var(--emu3-blue-soft);
}

.emu3-statement-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1px;
    background:var(--emu3-line);
}

.emu3-statement-column {
    min-width:0;
    padding:12px;
    background:#fff;
}

.emu3-statement-title {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:7px;
    padding:0 2px;
}

.emu3-statement-title span {
    color:var(--emu3-heading);
    font-size:10.5px;
    font-weight:800;
}

.emu3-statement-title small {
    color:var(--emu3-faint);
    font-size:8.5px;
    font-weight:650;
}

.emu3-account-block {
    overflow:hidden;
    margin-top:7px;
    border:1px solid #e2e6e9;
    border-radius:6px;
    background:#fff;
}

.emu3-account-head {
    display:flex;
    min-height:38px;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 10px;
    border-bottom:1px solid #eee9d9;
    background:#fcfaf2;
}

.emu3-account-head > span {
    position:relative;
    padding-inline-start:13px;
    color:#38454e;
    font-size:10px;
    font-weight:750;
}

.emu3-account-head > span::before {
    position:absolute;
    top:50%;
    inset-inline-start:0;
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--emu3-account-color,var(--emu3-blue));
    content:"";
    transform:translateY(-50%);
}

.emu3-account-head strong,
.emu3-result-row > strong {
    color:#26343e;
    font-size:11px;
    font-weight:800;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
}

.emu3-account-detail {
    display:flex;
    min-height:33px;
    align-items:center;
    gap:10px;
    padding:7px 10px;
    color:#7b8790;
    font-size:9px;
}

.emu3-account-detail span {
    min-width:0;
    flex:0 1 auto;
}

.emu3-account-detail i {
    height:1px;
    flex:1 1 auto;
    background:linear-gradient(90deg,#e5e9ec,transparent);
}

[dir="rtl"] .emu3-account-detail i {
    background:linear-gradient(270deg,#e5e9ec,transparent);
}

.emu3-account-assets { --emu3-account-color:var(--emu3-blue); }
.emu3-account-liabilities { --emu3-account-color:var(--emu3-amber); }
.emu3-account-equity { --emu3-account-color:var(--emu3-teal); }
.emu3-account-revenue { --emu3-account-color:var(--emu3-green); }
.emu3-account-expense { --emu3-account-color:var(--emu3-gold); }

.emu3-result-row {
    display:flex;
    min-height:56px;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:10px;
    padding:10px 11px;
    border:1px solid #cfe1d7;
    border-radius:6px;
    background:var(--emu3-green-soft);
}

.emu3-result-row.is-loss {
    border-color:#ebcaca;
    background:var(--emu3-red-soft);
}

.emu3-result-row span,
.emu3-result-row small {
    display:block;
}

.emu3-result-row span {
    color:#34483d;
    font-size:10px;
    font-weight:800;
}

.emu3-result-row small {
    margin-top:2px;
    color:#778a80;
    font-size:8.5px;
}

.emu3-result-row > strong {
    color:var(--emu3-green);
    font-size:13px;
}

.emu3-result-row.is-loss > strong {
    color:var(--emu3-red);
}

.emu3-balance-status {
    display:flex;
    min-height:46px;
    align-items:center;
    gap:9px;
    padding:8px 14px;
    border-top:1px solid;
}

.emu3-balance-status.is-balanced {
    border-color:#d4e5db;
    background:#f5faf7;
    color:var(--emu3-green);
}

.emu3-balance-status.is-review {
    border-color:#eadcc2;
    background:#fffbf3;
    color:#8f6124;
}

.emu3-status-icon {
    display:grid;
    width:28px;
    height:28px;
    flex:0 0 28px;
    place-items:center;
    border-radius:50%;
    background:rgba(255,255,255,.74);
}

.emu3-status-icon .emu-icon {
    width:15px !important;
    min-width:15px !important;
    max-width:15px !important;
    height:15px !important;
    min-height:15px !important;
    max-height:15px !important;
    flex-basis:15px !important;
}

.emu3-balance-status strong,
.emu3-balance-status small {
    display:block;
}

.emu3-balance-status strong {
    font-size:9.5px;
    font-weight:800;
}

.emu3-balance-status small {
    margin-top:1px;
    color:inherit;
    font-size:8.5px;
    opacity:.82;
}

.emu3-operations-grid {
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
    gap:12px;
}

.emu3-action-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    padding:10px;
}

.emu3-action-item,
.emu3-attention-row {
    display:flex;
    min-width:0;
    align-items:center;
    color:var(--emu3-text) !important;
}

.emu3-action-item {
    min-height:61px;
    gap:9px;
    padding:8px;
    border:1px solid #e4e8eb;
    border-radius:7px;
    background:#fff;
    transition:border-color .12s ease,background-color .12s ease,transform .12s ease;
}

.emu3-action-item:hover {
    border-color:#cbd5dc;
    background:#fafcfd;
    transform:translateY(-1px);
}

.emu3-action-icon,
.emu3-attention-icon {
    display:grid;
    width:34px;
    height:34px;
    flex:0 0 34px;
    place-items:center;
    border-radius:7px;
}

.emu3-action-icon .emu-icon,
.emu3-attention-icon .emu-icon {
    width:16px !important;
    min-width:16px !important;
    max-width:16px !important;
    height:16px !important;
    min-height:16px !important;
    max-height:16px !important;
    flex-basis:16px !important;
}

.emu3-action-primary .emu3-action-icon { background:var(--emu3-blue-soft); color:var(--emu3-blue); }
.emu3-action-teal .emu3-action-icon { background:var(--emu3-teal-soft); color:var(--emu3-teal); }
.emu3-action-gold .emu3-action-icon { background:var(--emu3-gold-soft); color:var(--emu3-gold); }
.emu3-action-slate .emu3-action-icon { background:#eff2f4; color:#667783; }

.emu3-action-copy,
.emu3-attention-row > span:nth-child(2) {
    min-width:0;
    flex:1 1 auto;
}

.emu3-action-copy strong,
.emu3-action-copy small,
.emu3-attention-row strong,
.emu3-attention-row small {
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.emu3-action-copy strong,
.emu3-attention-row strong {
    color:#34424d;
    font-size:9.5px;
    font-weight:750;
}

.emu3-action-copy small,
.emu3-attention-row small {
    margin-top:2px;
    color:#8a959d;
    font-size:8.3px;
}

.emu3-action-arrow {
    display:grid;
    width:20px;
    height:20px;
    flex:0 0 20px;
    place-items:center;
    color:#a0a9af;
}

.emu3-attention-list {
    padding:6px 10px 9px;
}

.emu3-attention-row {
    min-height:53px;
    gap:9px;
    padding:7px 4px;
    border-bottom:1px solid #eceff1;
}

.emu3-attention-row:last-child {
    border-bottom:0;
}

.emu3-attention-row:hover {
    background:#fafbfc;
}

.emu3-attention-icon.is-overdue { background:var(--emu3-amber-soft); color:var(--emu3-amber); }
.emu3-attention-icon.is-sales { background:var(--emu3-blue-soft); color:var(--emu3-blue); }
.emu3-attention-icon.is-purchase { background:var(--emu3-teal-soft); color:var(--emu3-teal); }

.emu3-attention-row > b {
    display:grid;
    min-width:28px;
    height:23px;
    padding:0 6px;
    place-items:center;
    border:1px solid #dde2e5;
    border-radius:999px;
    background:#f3f5f6;
    color:#5d6b75;
    font-size:9px;
    font-weight:800;
    font-variant-numeric:tabular-nums;
}

.emu3-mobile-overlay {
    display:none;
}

[dir="rtl"] .emu3-nav-item.is-active {
    box-shadow:inset -3px 0 0 var(--emu3-blue);
}

[dir="rtl"] .emu3-kpi-arrow .emu-icon,
[dir="rtl"] .emu3-action-arrow .emu-icon,
[dir="rtl"] .emu3-report-link .emu-icon {
    transform:scaleX(-1);
}

[dir="rtl"] .emu3-user-chip {
    padding:3px 4px 3px 8px;
}

@media (max-width:1180px) {
    .emu3-sidebar { width:218px; flex-basis:218px; }
    .emu3-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:920px) {
    .emu3-sidebar {
        position:fixed;
        top:0;
        bottom:0;
        left:0;
        width:278px;
        height:100vh;
        transform:translateX(-105%);
    }
    [dir="rtl"] .emu3-sidebar {
        right:0;
        left:auto;
        transform:translateX(105%);
    }
    body.emu-workspace-sidebar-open .emu3-sidebar { transform:translateX(0); }
    .emu3-sidebar-open,.emu3-sidebar-close { display:inline-grid; }
    .emu3-sidebar-collapse { display:none; }
    body.emu-workspace-sidebar-collapsed .emu3-sidebar { width:278px; }
    body.emu-workspace-sidebar-collapsed .emu3-brand-copy,
    body.emu-workspace-sidebar-collapsed .emu3-nav-search,
    body.emu-workspace-sidebar-collapsed .emu3-nav-heading,
    body.emu-workspace-sidebar-collapsed .emu3-nav-label,
    body.emu-workspace-sidebar-collapsed .emu-nav-badge,
    body.emu-workspace-sidebar-collapsed .emu3-nav-lock,
    body.emu-workspace-sidebar-collapsed .emu3-security-row div,
    body.emu-workspace-sidebar-collapsed .emu3-version { display:block; }
    body.emu-workspace-sidebar-collapsed .emu3-nav-search { display:flex; }
    body.emu-workspace-sidebar-collapsed .emu3-sidebar-brand { justify-content:flex-start; padding:11px 12px; }
    body.emu-workspace-sidebar-collapsed .emu3-sidebar-nav { padding:9px 8px 18px; }
    body.emu-workspace-sidebar-collapsed .emu3-nav-item { justify-content:flex-start; padding:6px 8px; }
    body.emu-workspace-sidebar-collapsed .emu3-security-row { justify-content:flex-start; }
    .emu3-mobile-overlay {
        position:fixed;
        z-index:41;
        inset:0;
        background:rgba(21,31,40,.44);
        backdrop-filter:blur(2px);
    }
    body.emu-workspace-sidebar-open .emu3-mobile-overlay { display:block; }
    .emu3-operations-grid { grid-template-columns:1fr; }
}

@media (max-width:700px) {
    .emu3-topbar { min-height:58px; padding:8px 11px; }
    .emu3-breadcrumb,.emu3-user-name,.emu3-period-chip span { display:none; }
    .emu3-period-chip { width:34px; padding:0; justify-content:center; }
    .emu3-user-chip { padding:3px; }
    .emu3-content { padding:10px 10px 24px; }
    .emu3-context-bar { align-items:flex-start; flex-direction:column; gap:12px; padding:13px; }
    .emu3-context-actions { width:100%; }
    .emu3-button { flex:1 1 auto; justify-content:center; }
    .emu3-kpi-grid { grid-template-columns:1fr; gap:7px; margin-top:9px; }
    .emu3-kpi-card { min-height:72px; }
    .emu3-statement-board,.emu3-panel { margin-top:9px; }
    .emu3-statement-grid { grid-template-columns:1fr; }
    .emu3-action-grid { grid-template-columns:1fr; }
}

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

@media print {
    body.emu3-workspace-page #id-top,
    .emu3-sidebar,
    .emu3-topbar,
    .emu3-context-actions,
    .emu3-kpi-arrow,
    .emu3-action-arrow,
    .emu3-mobile-overlay {
        display:none !important;
    }
    body.emu3-workspace-page,.emu3-workspace { background:#fff !important; }
    .emu3-workspace { display:block; min-height:0; }
    .emu3-content { width:100%; padding:0; }
    .emu3-context-bar,.emu3-kpi-card,.emu3-statement-board,.emu3-panel { box-shadow:none; break-inside:avoid; }
}

/* v3.4.0 - dedicated Accounting Settings entry in the Accountant Workspace. */
.emu3-topbar-settings {
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-height:34px;
    padding:6px 10px;
    border:1px solid var(--emu3-border, #d8e0e8);
    border-radius:7px;
    background:var(--emu3-panel, #fff);
    color:var(--emu3-text, #243746) !important;
    font-size:12px;
    font-weight:600;
    text-decoration:none !important;
    white-space:nowrap;
}
.emu3-topbar-settings:hover {
    background:var(--emu3-sidebar-strong, #eaf2f7);
}
.emu3-topbar-settings .emu-icon {
    width:16px;
    height:16px;
}
@media (max-width: 720px) {
    .emu3-topbar-settings span { display:none; }
    .emu3-topbar-settings { padding:7px; }
}
