/*
 * AQUILA_PLATFORM_CONFLICT_CLOSURE_R1
 *
 * PRESENTATION SUPPORT ONLY.
 *
 * Canonical navigation:
 *   Ubuzima+ Menu-Deck / dropdown navigation.
 *
 * This file does NOT:
 * - render a workspace
 * - write a route
 * - intercept clicks
 * - load data
 * - replace business workflows
 *
 * Existing native controls/handlers remain mounted.
 */


/* ==========================================================
   1. POS & SALES
   Retire duplicate "Operational modules /
   Choose where you want to work" navigation cards.
   Preserve analytics and operational content.
   ========================================================== */

.pos-sales-overview:not(.inventory-module-home):not(.procurement-module-home):not(.aquila-hrm-platform-home)
  > section.pos-overview-modules {
    display: none !important;
    visibility: hidden !important;
}


/* ==========================================================
   2. INVENTORY
   Menu-Deck/dropdown is now navigation authority.
   Preserve Inventory analytics and actual operational pages.
   ========================================================== */

.inventory-module-home
  > section.inventory-home-menu-section {
    display: none !important;
    visibility: hidden !important;
}


/* ==========================================================
   3. PROCUREMENT
   Preserve suppliers, purchase orders, receiving,
   General Items and analytics.
   Retire only the duplicate home navigation-card section.
   ========================================================== */

.procurement-module-home:not(.aquila-hrm-platform-home)
  > section.procurement-home-menu-section {
    display: none !important;
    visibility: hidden !important;
}


/* ==========================================================
   4. HRM
   Shared Menu-Deck handles HRM workspace navigation.
   Preserve workforce analytics, payroll and operational UI.
   ========================================================== */

.aquila-hrm-platform-home
  > section.procurement-home-menu-section {
    display: none !important;
    visibility: hidden !important;
}


/* ==========================================================
   5. FINANCE
   Retire the old Finance Modules launcher.
   Preserve Finance Overview, charts, filters and workspaces.
   ========================================================== */

.finance-overview__module-launcher,
[data-finance-module-launcher="active"] {
    display: none !important;
    visibility: hidden !important;
}


/* ==========================================================
   6. INVENTORY LEGACY INTERNAL RAIL
   Current Menu-Deck is the workspace navigation authority.
   Preserve the actual workspace stage/content.
   ========================================================== */

.inventory-workspace-shell
  > aside.module-section-rail {
    display: none !important;
    visibility: hidden !important;
}

.inventory-workspace-shell
  > .module-section-stage {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
}


/* ==========================================================
   7. OLD DOCK / RECENT-TASK PRESENTATION
   V3 Menu-Deck already retired these.
   This rule prevents legacy presentation from returning.
   ========================================================== */

.ubuzima-workspace-dock-v5__recent-card,
.ubuzima-workspace-dock-v5__recent-separator,
.pos-dock-recent-tasks {
    display: none !important;
    visibility: hidden !important;
}


/* ==========================================================
   8. RESPONSIVE SAFETY
   Suppression remains identical at every supported viewport.
   ========================================================== */

@media (max-width: 768px) {
    .inventory-workspace-shell
      > .module-section-stage {
        width: 100% !important;
        min-width: 0 !important;
    }
}
