

      .elinom-currency-icon{font-style:normal;font-weight:700;font-family:inherit;}


      /* Fix modal positioning and inputs - Override accounting-inline.css conflicts */

      .modal.fade { 
        display: none !important;
        background: none !important; 
        background-color: transparent !important;
                -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
        overflow: hidden auto !important;

      }


      .modal.fade.show { 
        display: block !important; 

      }


      .modal-dialog { 
        margin: 1.75rem auto !important; 
        z-index: 1056 !important; 
        position: relative !important;
        pointer-events: auto !important;

      }


      #bulk-payment-modal select[multiple] {
        cursor: pointer !important;

      }


      #bulk-payment-modal select[multiple] option {
        padding: 8px !important;
        cursor: pointer !important;

      }


      #bulk-payment-modal select[multiple] option:checked {
        background: #0d6efd linear-gradient(0deg, #0d6efd 0%, #0d6efd 100%) !important;
        color: #fff !important;

      }

      

      /* Fix for Overdue Bills Modal */

      #overdue-bills-modal {
        z-index: 99999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

      }


      #overdue-bills-modal.show {
        display: flex !important;

      }


      #overdue-bills-modal .modal-dialog {
        z-index: 100000 !important;
        pointer-events: auto !important;
        margin: auto !important;
        display: flex !important;
        align-items: center !important;

      }


      #overdue-bills-modal .modal-content {
        z-index: 100001 !important;
        pointer-events: auto !important;

      }


      #overdue-bills-modal .modal-body,

      #overdue-bills-modal .modal-body *,

      #overdue-bills-modal table,

      #overdue-bills-modal tbody,

      #overdue-bills-modal tr,

      #overdue-bills-modal td,

      #overdue-bills-modal th {
        pointer-events: auto !important;

      }


      #overdue-bills-modal input[type="checkbox"],

      #overdue-bills-modal .form-check-input {
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 100010 !important;
        width: 20px !important;
        height: 20px !important;
        opacity: 1 !important;
        -webkit-appearance: auto !important;
           -moz-appearance: auto !important;
                appearance: auto !important;

      }

      

      /* Fix for modal vertical centering */

      .modal-dialog-centered {
        display: flex !important;
        align-items: center !important;
        min-height: calc(100% - 1rem) !important;

      }


      .modal-dialog-centered::before {
        display: block;
        height: calc(100vh - 1rem);
        height: -moz-min-content;
        height: min-content;
        content: "";

      }


      .modal.show .modal-dialog-centered {
        min-height: calc(100% - 3.5rem) !important;

      }


      #new-journal-entry-modal .modal-dialog {
        display: flex !important;
        align-items: center !important;
        min-height: 100% !important;
        margin: 1.75rem auto !important;

      }


      /* Fix for Journal Entry Modal inputs */

      #new-journal-entry-modal .modal-content {
        pointer-events: auto !important;

      }


      #new-journal-entry-modal .modal-body,

      #new-journal-entry-modal .modal-body * {
        pointer-events: auto !important;

      }


      #new-journal-entry-modal input,

      #new-journal-entry-modal select,

      #new-journal-entry-modal textarea,

      #new-journal-entry-modal .form-control,

      #new-journal-entry-modal .form-select {
        pointer-events: auto !important;
        -webkit-user-select: text !important;
           -moz-user-select: text !important;
                user-select: text !important;
        position: relative !important;
        z-index: 10 !important;
        background-color: #0f172a !important;
        color: #f1f5f9 !important;
        border: 1px solid #334155 !important;

      }


      #new-journal-entry-modal input:focus,

      #new-journal-entry-modal select:focus,

      #new-journal-entry-modal textarea:focus {
        outline: 2px solid #3b82f6 !important;
        border-color: #3b82f6 !important;

      }


      #new-journal-entry-modal input::-moz-placeholder {
        color: #64748b !important;

      }


      #new-journal-entry-modal input::placeholder {
        color: #64748b !important;

      }


      #new-journal-entry-modal .table {
        width: 100% !important;

      }


      #new-journal-entry-modal .table th,

      #new-journal-entry-modal .table td {
        padding: 0.5rem !important;
        vertical-align: middle !important;

      }


      #new-journal-entry-modal .journal-debit,

      #new-journal-entry-modal .journal-credit {
        width: 100% !important;
        min-width: 80px !important;

      }


      .modal-dialog-scrollable {
        max-height: calc(100% - 1rem) !important;

      }


      .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem) !important;
        overflow: hidden;

      }


      .modal-dialog-scrollable .modal-body {
        overflow-y: auto !important;

      }



      /* âââ NAVBAR COMPLETE STYLES âââ */

      .is-iframed .navbar { display: none !important; }

      .is-iframed .footer { display: none !important; }


      /* When iframed, hide the in-page mobile-toggle hamburger button.

         The erp_home shell has its own toggle, and the duplicate

         was rendering as a wide horizontal strip across the dashboard. */

      .is-iframed #mobile-toggle,

      .is-iframed .mobile-toggle { display: none !important; }

      

      .navbar { 
        background: rgb(15, 23, 42, 0.95) !important; 
                -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        padding: 0;
        border-bottom: 1px solid rgb(255, 255, 255, 0.08);

      }

      .navbar.scrolled { background: rgb(15, 23, 42, 1) !important; }



      .navbar .nav-container {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-height: 56px;
        padding: 0.3rem 16px;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.6rem;

      }



      .navbar .logo {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 1.3rem;
        font-weight: 800;
        text-decoration: none;
        flex-shrink: 0;

      }



      .navbar .nav-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        margin: 0 auto;
        padding: 0;
        list-style: none;
        flex: 1 1 auto;

      }



      .navbar .nav-menu li {
        list-style: none;

      }



      .navbar .nav-link {
        text-decoration: none;
        color: rgb(255, 255, 255, 0.85);
        font-weight: 600;
        font-size: 0.75rem;
        padding: 6px 10px;
        border-radius: 16px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        transition: all 0.3s ease;

      }

      .navbar .nav-link i { font-size: 0.8rem; }



      .navbar .nav-link:hover {
        color: #fff;
        background: linear-gradient(135deg, rgb(99, 102, 241, 0.3), rgb(56, 189, 248, 0.2));
        transform: translateY(-2px);

      }



      /* Colored navbar icons */

      .navbar .nav-menu .fa-house { color: #38bdf8; }

      .navbar .nav-menu .fa-briefcase { color: #f59e0b; }

      .navbar .nav-menu .fa-store { color: #22c55e; }

      .navbar .nav-menu .fa-handshake { color: #a855f7; }

      .navbar .nav-menu .fa-circle-info { color: #6366f1; }

      .navbar .nav-menu .fa-circle-question { color: #ec4899; }

      .navbar .nav-actions-group .fa-cart-shopping { color: #22c55e; }

      .navbar .nav-actions-group .fa-bell { color: #f59e0b; }



      .navbar .nav-actions-group {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        flex-shrink: 0;

      }



      .navbar .login-btn {
        padding: 5px 12px;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.72rem;
        text-decoration: none;
        color: #fff;
        border: 1px solid rgb(255,255,255,0.3);
        transition: all 0.3s ease;

      }



      .navbar .login-btn:hover {
        background: rgb(255,255,255,0.1);

      }



      .navbar .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;

      }



      /* Main content padding for fixed navbar */

      .main-content { margin-top: 66px !important; }

      .is-iframed .main-content { margin-top: 0 !important; }



      /* User dropdown styles */

      .user-dropdown .dropdown-menu a:hover { background: #f1f5f9; }



      /* Footer styles - positioned outside sidebar */

      .footer {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: #94a3b8;
        padding: 60px 0 30px;
        margin-top: 60px;
        margin-left: 280px;
        position: relative;
        clear: both;

      }

      .is-iframed .footer { margin-left: 0; display: none !important; }

      .footer .container { max-width: 100%; margin: 0 auto; padding: 0 40px; }


      .footer-content { 
        display: grid; 
        grid-template-columns: repeat(4, 1fr); 
        gap: 40px; 
        margin-bottom: 40px; 

      }

      .footer-section h3 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; }

      .footer-section p { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; }

      .footer-section span { display: block; margin-bottom: 10px; color: #94a3b8; cursor: pointer; font-size: 0.9rem; }

      .footer-section span:hover { color: #38bdf8; }


      .footer-bottom { 
        text-align: center; 
        padding-top: 30px; 
        border-top: 1px solid rgb(255,255,255,0.1); 

      }

      .footer-social { margin-bottom: 1.2rem; }


      .footer-social a { 
        margin: 0 8px; 
        display: inline-block; 
        font-size: 1.5rem; 
        transition: transform 0.2s, color 0.2s; 

      }

      .footer-social a:hover { transform: translateY(-3px); }



      @media (width <= 1024px) {

        .footer { margin-left: 0; }

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

      }


      @media (width <= 600px) {

        .footer-content { grid-template-columns: 1fr; }

      }



      @keyframes heroMarqueeGradient {

        0%, 100% { background-position: 0% 50%; }

        50% { background-position: 100% 50%; }

      }



      @media (width <= 992px) {

        .navbar .nav-menu { display: none; }


        .navbar .nav-menu.active { 
          display: flex; 
          flex-direction: column; 
          position: absolute; 
          top: 100%; 
          left: 0; 
          right: 0; 
          background: rgb(15, 23, 42, 0.98);
          padding: 20px;

        }

        .navbar .mobile-menu-btn { display: block; }

      }



      /* âââ ACCOUNTING SIDEBAR STYLES âââ */

      .accounting-sidebar {
        position: fixed;
        top: 85px;
        left: 0;
        width: 280px;
        height: calc(100vh - 85px);
        background: rgb(15, 23, 42, 0.95);
                -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
        border-right: 1px solid rgb(255,255,255,0.08);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        z-index: 9999;
        padding: 20px 0 0;
        transition: width 0.3s ease, transform 0.3s ease;
        border-radius: 0 16px 0 0;

      }


      .accounting-sidebar.collapsed {
        width: 84px;

      }


      /* Settings sticky footer */

      .acct-sidebar-footer {
        flex-shrink: 0;
        padding: 10px 12px 14px;
        border-top: 1px solid rgb(255,255,255,0.1);

      }


      .acct-sidebar-footer a {
        display: flex;
        align-items: center;
        padding: 11px 14px;
        color: rgb(255,255,255,0.9);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        background: linear-gradient(135deg, rgb(255,255,255,0.08), rgb(99,102,241,0.16));
        border-radius: 10px;
        transition: all 0.2s ease;
        gap: 0;

      }


      .acct-sidebar-footer a:hover {
        background: linear-gradient(135deg, rgb(255,255,255,0.14), rgb(99,102,241,0.28));
        color: #fff;

      }


      .acct-sidebar-footer a.active {
        background: linear-gradient(90deg, rgb(99,102,241,0.35), rgb(56,189,248,0.18));
        color: #fff;
        border: 1px solid rgb(99,102,241,0.35);

      }

      .acct-sidebar-footer a i { margin-right: 12px; width: 32px; height: 32px; font-size: 1.4rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }


      .accounting-sidebar.collapsed .acct-sidebar-footer a {
        justify-content: center;
        font-size: 0;
        padding-left: 0;
        padding-right: 0;

      }

      .accounting-sidebar.collapsed .acct-sidebar-footer a i { margin-right: 0; font-size: 1.25rem; }



      /* Sidebar scrollbar on the nav ul */

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

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

      .sidebar-nav::-webkit-scrollbar-thumb { background: rgb(255,255,255,0.2); border-radius: 3px; }



      .sidebar-header {
        padding: 0 20px 20px;
        border-bottom: 1px solid rgb(255,255,255,0.1);
        margin-bottom: 15px;

      }


      .sidebar-header h2 {
        color: #fff;
        font-size: 1.1rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 10px;

      }


      .accounting-sidebar.collapsed .sidebar-header {
        padding-left: 12px;
        padding-right: 12px;

      }


      .accounting-sidebar.collapsed .sidebar-header h2 {
        display: none;

      }



      .sidebar-nav { list-style: none; padding: 0; margin: 0; flex: 1; min-height: 0; overflow-y: auto; }

      .sidebar-nav > li { margin-bottom: 2px; }



      .acct-addon-section-label {
        padding: 10px 20px 5px;
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #a78bfa;
        font-weight: 800;
        margin-top: 6px;
        border-top: 1px solid rgb(167,139,250,0.35);
        text-shadow: 0 0 12px rgb(167,139,250,0.55);
        display: flex;
        align-items: center;
        gap: 7px;

      }


      .acct-addon-section-label::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #a78bfa;
        box-shadow: 0 0 6px #a78bfa;
        flex-shrink: 0;

      }



      /* Add-on modules ï¿½ distinct background block */

      .acct-addon-group { margin-bottom: 4px; }


      .acct-addon-block {
        background: rgb(109, 40, 217, 0.13);
        border: 1px solid rgb(167, 139, 250, 0.22);
        border-radius: 10px;
        margin: 2px 10px 6px;
        overflow: hidden;

      }


      .acct-addon-block .acct-addon-section-label {
        border-top: none;
        margin-top: 0;
        padding: 8px 14px 5px;

      }


      .acct-addon-block a.direct-link {
        display: flex;
        align-items: center;
        padding: 10px 14px;
        color: rgb(255,255,255,0.9);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        transition: all 0.2s ease;

      }


      .acct-addon-block a.direct-link:hover {
        background: rgb(139, 92, 246, 0.22);
        color: #fff;

      }


      .acct-addon-block a.direct-link i {
        margin-right: 12px;
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;

      }


      .acct-addon-trial-row {
        display: flex;
        justify-content: flex-end;
        padding: 0 14px 10px;

      }


      .acct-addon-trial-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid rgb(74, 222, 128, 0.38);
        background: rgb(74, 222, 128, 0.12);
        color: #86efac;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.18s ease, border-color 0.18s ease;

      }


      .acct-addon-trial-btn:hover {
        background: rgb(74, 222, 128, 0.2);
        border-color: rgb(74, 222, 128, 0.55);
        color: #dcfce7;

      }


      .acct-addon-trial-btn.is-disabled {
        opacity: 0.7;
        pointer-events: none;

      }



      .sidebar-nav .nav-item-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        color: rgb(255,255,255,0.9);
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.9rem;
        font-weight: 600;

      }


      .accounting-sidebar.collapsed .sidebar-nav .nav-item-header {
        justify-content: center;
        padding-left: 12px;
        padding-right: 12px;

      }


      .sidebar-nav .nav-item-header:hover {
        background: rgb(99, 102, 241, 0.15);
        color: #fff;

      }


      .sidebar-nav .nav-item-header.active {
        background: linear-gradient(90deg, rgb(99, 102, 241, 0.3), transparent);
        color: #fff;
        border-left: 3px solid #6366f1;

      }

      .sidebar-nav .nav-item-header > span { display: flex; align-items: center; flex: 1; min-width: 0; }

      .sidebar-nav .nav-item-header i.menu-icon { margin-right: 12px; width: 32px; height: 32px; font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

      .sidebar-nav .nav-item-header i.chevron { font-size: 0.7rem; transition: transform 0.3s ease; flex-shrink: 0; }



      /* -- Sidebar icon colours (CSS-driven, same approach as agropro) -- */


      /* Nav-group headers */

      #sidebar-grp-banking       i.menu-icon { color: #22c55e; }

      #sidebar-grp-sales         i.menu-icon { color: #f59e0b; }

      #sidebar-grp-ledger        i.menu-icon { color: #6366f1; }

      #sidebar-grp-payables      i.menu-icon { color: #ef4444; }

      #sidebar-grp-fixed-assets  i.menu-icon { color: #a855f7; }

      #sidebar-grp-ifrs          i.menu-icon { color: #818cf8; }

      #sidebar-grp-budgeting     i.menu-icon { color: #ec4899; }

      #sidebar-grp-cashflow      i.menu-icon { color: #14b8a6; }

      #sidebar-grp-tax           i.menu-icon { color: #f97316; }

      #sidebar-grp-ete           i.menu-icon { color: #8b5cf6; }

      #sidebar-grp-rre           i.menu-icon { color: #10b981; }

      #sidebar-grp-reports       i.menu-icon { color: #0ea5e9; }

      #sidebar-grp-multi-entity  i.menu-icon { color: #fb923c; }

      #sidebar-grp-fx            i.menu-icon { color: #06b6d4; }

      #sidebar-grp-dimensional   i.menu-icon { color: #a78bfa; }

      #sidebar-grp-governance    i.menu-icon { color: #f43f5e; }

      #sidebar-grp-treasury      i.menu-icon { color: #10b981; }

      #sidebar-grp-expense       i.menu-icon { color: #fbbf24; }

      #sidebar-grp-bankrules     i.menu-icon { color: #22d3ee; }

      #sidebar-grp-payroll       i.menu-icon { color: #10b981; }

      #sidebar-grp-leases        i.menu-icon { color: #3b82f6; }

      #sidebar-grp-costing       i.menu-icon { color: #f59e0b; }

      #sidebar-grp-collections   i.menu-icon { color: #ef4444; }

      #sidebar-grp-subscriptions i.menu-icon { color: #8b5cf6; }

      #sidebar-grp-openbanking   i.menu-icon { color: #06b6d4; }

      #sidebar-grp-audit         i.menu-icon { color: #6366f1; }

      #sidebar-grp-cost-accounting i.menu-icon { color: #f97316; }

      #sidebar-grp-spend         i.menu-icon { color: #ec4899; }


      /* Direct-link items */

      .accounting-sidebar a[data-section="dashboard"] i         { color: #38bdf8; }

      .accounting-sidebar a[data-section="accountant-portal"] i { color: #8b5cf6; }

      .accounting-sidebar a[data-section="customer-portal"] i   { color: #a78bfa; }

      .accounting-sidebar a[data-section="corp-tax"] i          { color: #ef4444; }

      .accounting-sidebar a[data-section="customer-profitability"] i { color: #10b981; }

      .accounting-sidebar a[data-section="inventory-cogs"] i    { color: #f97316; }

      .accounting-sidebar a[data-section="custom-reports"] i    { color: #6366f1; }

      .accounting-sidebar a[data-section="document-library"] i  { color: #fbbf24; }

      .accounting-sidebar a[data-section="anomaly-alerts"] i    { color: #ec4899; }

      .accounting-sidebar a[data-section="esg-metrics"] i       { color: #22c55e; }

      .accounting-sidebar a[data-section="controlled-transactions"] i { color: #f59e0b; }

      .accounting-sidebar a[data-section="hedging-instruments"] i     { color: #3b82f6; }

      .accounting-sidebar a[data-section="group-tax-returns"] i       { color: #ef4444; }

      .accounting-sidebar a[data-section="wc-snapshots"] i      { color: #10b981; }

      .accounting-sidebar a[data-section="netting-runs"] i      { color: #8b5cf6; }

      .accounting-sidebar a[data-section="health-scores"] i     { color: #22c55e; }

      .accounting-sidebar a[data-section="einvoices"] i         { color: #6366f1; }

      .accounting-sidebar a[data-section="settings"] i          { color: #94a3b8; }


      /* Keep colours on hover/active */

      .accounting-sidebar .nav-item-header:hover i.menu-icon,

      .accounting-sidebar .nav-item-header.active i.menu-icon,

      .accounting-sidebar .direct-link:hover i,

      .accounting-sidebar .direct-link.active i { opacity: 1; }

      .sidebar-nav .nav-item-header.expanded i.chevron { transform: rotate(180deg); }


      .accounting-sidebar.collapsed .sidebar-nav .nav-item-header > span {
        justify-content: center;
        font-size: 0;

      }


      .accounting-sidebar.collapsed .sidebar-nav .nav-item-header i.menu-icon {
        margin-right: 0;
        font-size: 1.25rem;

      }


      .accounting-sidebar.collapsed .sidebar-nav .nav-item-header i.chevron {
        display: none;

      }



      .sidebar-nav .submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.15s ease;
        background: rgb(0,0,0,0.2);

      }

      .sidebar-nav .submenu.open { max-height: 2000px; }


      .accounting-sidebar.collapsed .acct-addon-group {
        display: none;

      }


      .accounting-sidebar.collapsed .sidebar-nav .submenu,

      .accounting-sidebar.collapsed .sidebar-nav .submenu.open {
        max-height: 0 !important;
        overflow: hidden !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;

      }



      .sidebar-nav .submenu a {
        display: block;
        padding: 10px 20px 10px 50px;
        color: rgb(255,255,255,0.7);
        text-decoration: none;
        font-size: 0.85rem;
        transition: all 0.2s ease;

      }


      .sidebar-nav .submenu a:hover {
        color: #fff;
        background: linear-gradient(90deg, #ff0f9b 0%, #ff4bb8 100%);
        box-shadow: inset 3px 0 0 rgb(255,255,255,0.95), 0 2px 10px rgb(255,15,155,0.35);
        padding-left: 55px;

      }


      .sidebar-nav .submenu a.active {
        color: #6366f1;
        background: rgb(99, 102, 241, 0.15);
        border-left: 2px solid #6366f1;

      }



      /* Direct nav links (no submenu) */

      .sidebar-nav > li > a.direct-link {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        color: rgb(255,255,255,0.9);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        transition: all 0.2s ease;

      }


      .accounting-sidebar.collapsed .sidebar-nav > li > a.direct-link {
        justify-content: center;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 0;

      }


      .sidebar-nav > li > a.direct-link:hover {
        background: rgb(99, 102, 241, 0.15);
        color: #fff;

      }


      .sidebar-nav > li > a.direct-link.active {
        background: linear-gradient(90deg, rgb(99, 102, 241, 0.3), transparent);
        color: #fff;
        border-left: 3px solid #6366f1;

      }

      .sidebar-nav > li > a.direct-link i { margin-right: 12px; width: 32px; height: 32px; font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center; }


      .accounting-sidebar.collapsed .sidebar-nav > li > a.direct-link i {
        margin-right: 0;
        font-size: 1.25rem;

      }



      /* Main content with sidebar */

      .main-content {
        margin-left: 280px !important;
        margin-top: 85px !important;
        min-height: calc(100vh - 85px);
        padding: 30px;
        transition: margin-left 0.3s ease;
        display: flex;
        flex-direction: column;

      }


      .main-content.expanded {
        margin-left: 84px !important;

      }


      .main-content > .content-section {
        flex: 1;

      }


      /* Section visibility: .active class is the sole source of truth. !important ensures

         no inline style from any script can override the CSS-controlled display state.

         :target provides browser-native fallback ï¿½ when the URL hash matches a section ID,

         that section is shown even if JavaScript navigation fails. */

      .content-section { display: none !important; }

      .content-section.active { display: block !important; }

      .content-section:target { display: block !important; }


      /* In iframe mode, disable :target ï¿½ _nav_override CSS + .active class are the sole visibility controls.

         Without this, :target keeps the OLD section visible after the parent navigates away from it. */

      .is-iframed .content-section:target { display: none !important; }


      /* .active MUST beat :target in iframe mode ï¿½ same specificity (0-3-0), later in source wins */

      .is-iframed .content-section.active { display: block !important; }



      /* Embedded mode: keep the Accounting sidebar visible (submenus live inside the frame). */

      .is-iframed .main-content { margin-top: 0 !important; min-height: 100vh !important; }


      .is-iframed .accounting-sidebar {
        display: flex !important;
        flex-direction: column !important;
        top: 0 !important;
        height: 100vh !important;
        border-radius: 0 !important;
        padding-top: 0 !important;

      }


      .is-iframed .accounting-sidebar.collapsed {
        transform: none !important;

      }

      .is-iframed .accounting-footer { display: none !important; }



      .sidebar-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 12px;
        left: 10px;
        z-index: 10001;
        background: rgb(15, 23, 42, 0.96);
        color: #fff;
        border: 1px solid rgb(99, 102, 241, 0.24);
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 12px;
        cursor: pointer;
        box-shadow: 0 10px 28px rgb(15, 23, 42, 0.18);

      }


      .sidebar-toggle-btn:hover {
        background: rgb(30, 41, 59, 0.98);
        transform: translateY(-1px);

      }



      /* In iframe mode, hide the floating toggle ï¿½ replaced by the pill inside the sidebar */

      .is-iframed .sidebar-toggle-btn {
        display: none !important;

      }


      /* In iframe mode, hide the h2 and tighten padding ï¿½ brand shown via .acct-iframe-brand */

      .is-iframed .sidebar-header h2 { display: none; }

      .is-iframed .sidebar-header { padding-top: 0; padding-bottom: 0; border-bottom: none; margin-bottom: 0; }



      /* Accounting brand-as-hamburger toggle (in iframe) */

      .acct-iframe-brand {
        display: none;
        padding: 0.5rem;
        justify-content: center;
        align-items: center;

      }

      .is-iframed .acct-iframe-brand { display: flex; }


      /* Brand acts as the sidebar collapse toggle */

      .is-iframed .acct-iframe-brand[role="button"] {
        cursor: pointer;
        border-radius: 12px;
        transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;

      }

      .is-iframed .acct-iframe-brand[role="button"]:hover { filter: brightness(1.08); transform: translateY(-1px); }

      .is-iframed .acct-iframe-brand[role="button"]:focus-visible { outline: 2px solid #f97316; outline-offset: 3px; }


      /* Hide the redundant pill toggle now that the brand IS the toggle */

      .is-iframed .acct-iframe-toggle { display: none !important; }



      /* (legacy pill toggle styles kept for any non-iframe fallback) */

      .acct-iframe-toggle { display: none; padding: .35rem .5rem .7rem; }


      .acct-iframe-toggle-btn {
        width: 100%; min-height: 44px; display: inline-flex; align-items: center;
        justify-content: center; gap: 10px; padding: 0.6rem 1rem;
        background: transparent; border: 1px solid rgb(255,255,255,.22);
        border-radius: 12px; color: #fff; cursor: pointer;
        transition: background .2s; font-size: .9rem;

      }

      .acct-iframe-toggle-btn:hover { background: rgb(255,255,255,.12); }

      .acct-iframe-toggle-label { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }

      .accounting-sidebar.collapsed .acct-iframe-toggle-btn { justify-content: center; padding-left: 0; padding-right: 0; }

      .accounting-sidebar.collapsed .acct-iframe-toggle-label { display: none; }


      /* Accounting & Finance section label (iframe only) */

      .acct-section-label { display: none; margin-top: 1.5rem; padding: 0.4rem 0.75rem; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1rem; color: rgb(255,255,255,0.45); flex-direction: column; gap: 4px; align-items: center; white-space: nowrap; overflow: hidden; }

      .is-iframed .acct-section-label { display: flex; }

      .acct-label-short { display: none; }

      .accounting-sidebar.collapsed .acct-label-full { display: none; }

      .accounting-sidebar.collapsed .acct-label-short { display: inline; }

      .accounting-sidebar.collapsed .acct-section-label i { display: none; }

      .accounting-sidebar.collapsed .acct-section-label { margin-top: 0.6rem; }



      .is-iframed .accounting-sidebar.collapsed ~ .main-content {
        margin-left: 84px !important;

      }



      @media (width <= 1024px) {

        .accounting-sidebar {
          transform: translateX(-100%);

        }


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

        }


        .main-content {
          margin-left: 0 !important;

        }


        .sidebar-toggle-btn {
          display: block;

        }

      }



      /* Mobile iframe scroll: touch-friendly document scroll inside embedded modules. */
      @media (width <= 1280px) {
        html.is-iframed,
        html.is-iframed body {
          width: 100% !important;
          height: 100% !important;
          min-height: 100% !important;
          max-height: none !important;
          overflow-x: hidden !important;
          overflow-y: auto !important;
          -webkit-overflow-scrolling: touch !important;
          overscroll-behavior-y: contain;
          touch-action: pan-y;
        }

        html.is-iframed .main-content {
          min-height: auto !important;
          overflow: visible !important;
        }

        html.is-iframed .content-section.active {
          overflow: visible !important;
        }
      }

