﻿
/*------------------ TABLES ----------------*/

.table.t-mp-table {
    text-align: left;
    border-collapse: separate;
    border: 1px solid #ddd;
    border-spacing: 1px;
    background: #fdfdfd;
    margin-top: 10px;
}

    .table.t-mp-table tr:hover {
        background-color: #E7E7E7;
    }

    .table.t-mp-table th, td {
        border: 1px solid #ddd;
        border-radius: 2px;
    }

    .table.t-mp-table th {
        background: #E4E4E4;
        vertical-align: middle;
    }

        .table.t-mp-table th.row-records {
            font-style: italic;
            height: 34px;
        }

            .table.t-mp-table th.row-records span {
                line-height: 35px;
            }

        .table.t-mp-table tr.success,
        .table.t-mp-table td.success,
        .table.t-mp-table th.success,
        .table.t-mp-table tr.success > td,
        .table.t-mp-table tr.success > th {
            background-color: #E5EAE3;
        }

            .table.t-mp-table tr.scrolled,
            .table.t-mp-table td.scrolled,
            .table.t-mp-table th.scrolled,
            .table.t-mp-table tr.scrolled > td,
            .table.t-mp-table tr.scrolled > th,
            .table.t-mp-table tr.success.scrolled,
            .table.t-mp-table td.success.scrolled,
            .table.t-mp-table th.success.scrolled,
            .table.t-mp-table tr.success.scrolled > td,
            .table.t-mp-table tr.success.scrolled > th {
                background-color: #ffcb77;
            }

    .table.t-mp-table .col-delete {
        width: 45px;
        text-align: center;
    }

    .table.t-mp-table .col-export {
        width: 105px;
        text-align: center;
    }

    .table.t-mp-table .col-date {
        width: 90px;
    }

    .table.t-mp-table .col-contract_type {
        width: 147px;
    }

    .table.t-mp-table .col-annexes {
        width: 100px;
    }

    .table.t-mp-table .col-contract_name {
        width: 300px;
    }

    .table.t-mp-table .col-contract_name_inwork {
        width: 100px;
    }

    .table.t-mp-table .col-contract_customer {
        width: 180px;
    }

    .table.t-mp-table .col-comment {
        width: 120px;
    }
    
    .table.t-mp-table .col-account {
        width: 100px;
    }

    .table.t-mp-table .col-services {
        width: 200px;
    }

    .table.t-mp-table .col-finance {
        width: 120px;
    }

    .table.t-mp-table .col-finance_client {
        width: 250px;
    }

    .table.t-mp-table .col-project_client-name {
        width: 250px;
    }

    .table.t-mp-table .col-project_sum {
        width: 120px;
    }
    .table.t-mp-table .col-goods {
        width: 50px;
    }

@media (max-width: 1199px) {
    .table.t-mp-table,
    .table.t-mp-table th,
    .table.t-mp-table td {
        font-size: 12px;
    }
}


.btn-mp-delete_table {
    float: right;
    width: 145px;
}

/*----------------- END TABLES--------------*/

/* -----------------  GRID  ---------------*/ 

.mp-grid {
    border-radius: 2px;
    border-collapse: separate;
    border: 1px solid #ddd;
    border-spacing: 1px;
    background: #fdfdfd;
    padding: 5px;
}
.mp-grid {
    margin-bottom: 3px;
}
.mp-grid .name,
.mp-grid .name a,
.mp-grid .name span {
    font-weight: bold; 
    color:  black;
}

.mp-grid .name a:hover {
    cursor: pointer;
}

.mp-grid button i {
    margin-right: 0;
}

.visible-xs .row {
    margin-right: -10px;
    margin-left: -10px;
}

.visible-xs .col-xs-1, 
.visible-xs .col-xs-2, 
.visible-xs .col-xs-3,
.visible-xs .col-xs-4, 
.visible-xs .col-xs-5,
.visible-xs .col-xs-6,
.visible-xs .col-xs-7,
.visible-xs .col-xs-8,
.visible-xs .col-xs-9,
.visible-xs .col-xs-10,
.visible-xs .col-xs-11,
.visible-xs .col-xs-12 {
    padding-right: 7px;
    padding-left: 7px;
}

@media (max-width: 1199px) {
    .mp-grid {
        font-size: 12px;
    }
}

/* -----------------  END GRID ---------------*/


/* -----------------  BUTTONS ---------------*/

button i {
    margin-right: 10px;
}


@media (max-width: 1199px){
    /* apply style .btn-sm */
    .btn.mp-sizable-sm,
    .btn-group.mp-sizable-sm > .btn,
    .mp-sizable-sm .btn {
        padding: 5px 10px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
    }

    .form-group.mp-sizable-sm .form-control {
        height: 30px;
        padding: 5px 10px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
    }
}
@media (max-width: 767px) {
     .btn-to-work {
        font-size: 10px;
    }
}

/* ---------------- END BUTTONS --------------*/

.b-mp-page_size {
}

.b-mp-pagination {
    text-align: right;
}

    .b-mp-pagination ul {
        margin: 0;
    }

.h-title {
    font-style: italic;
    margin-bottom: 30px;
}

.required-field .form-control {
    border-left: 2px solid red;
}

.form-control.required-control {
    border-left: 2px solid red;
}

/* ----------------  CALCULATION project -------------------- */

.calculation-project-panel {
    font-size: 12px;
    line-height: 1.22;
}

    .calculation-project-panel.panel-heading {
        font-size: inherit;
        padding: 5px 15px;
    }

    .calculation-project-panel .form-control {
        font-size: 11px;
        height: 26px;
    }

    .calculation-project-panel .input-group-addon {
        font-size: inherit;
        padding: 4px 9px;
    }

    .calculation-project-panel .form-group {
        margin-top: 10px;
    }

    .old-price, 
    .calculation-project-panel .old-price {
        font-style: italic;
        font-size: 11px;
        color: #999;
    }
/* ----------------  End CALCULATION project -------------------- */


.upload-button input[type=file],
.upload-button input[type=button] {
    opacity: 0;
    position: absolute;
    z-index: -1;
}
.upload-button label {
    cursor: pointer;
    display: inline-block;
    padding: 3px 0px 3px 10px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
}
.upload-button .fa-remove{
    cursor: pointer;
    color: red;
}

.pointer {
    cursor: pointer;
}

/*.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -6px;
        margin-left: -1px;
        -webkit-border-radius: 0 6px 6px 6px;
        -moz-border-radius: 0 6px 6px;
        border-radius: 0 6px 6px 6px;
        
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > a:after {
        display: block;
        content: " ";
        float: right;
        width: 0;
        height: 0;
        border-color: transparent;
        border-style: solid;
        border-width: 5px 0 5px 5px;
        border-left-color: #ccc;
        margin-top: 5px;
        margin-right: -10px;
    }

    .dropdown-submenu:hover > a:after {
        border-left-color: #fff;
    }

    .dropdown-submenu.pull-left {
        float: none;
    }

        .dropdown-submenu.pull-left > a:after {
            content: " ";
        }

        .dropdown-submenu.pull-left > .dropdown-menu {
            left: -100%;
            margin-left: 10px;
            -webkit-border-radius: 6px 0 6px 6px;
            -moz-border-radius: 6px 0 6px 6px;
            border-radius: 6px 0 6px 6px;
        }
        
        .dropdown-submenu.pull-left > a:after {
            border-width: 5px 5px 5px 0;*/ /* flip arrow */
            /*border-left-color: transparent;
            border-right-color: #ccc;
            margin-right: 0;
            margin-left: -10px;*/ /* adjust positioning */
        /*}

        .dropdown-submenu.pull-left:hover > a:after {
            border-right-color: #fff;
        }*/

/* Submenu positioning (default: right) */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
        margin-left: -1px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-10px);
        transition: all 0.2s ease;
        box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
        z-index: 1001;
        min-width: 180px;
    }

    /* Variant: open submenu to the left */
    .dropdown-submenu.dropdown-submenu-left > .dropdown-menu {
        left: auto;
        right: 100%;
        margin-left: 0;
        margin-right: -1px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        transform: translateX(10px);
    }

    /* Auto-positioning for viewport edge detection */
    .dropdown-submenu.dropdown-submenu-auto > .dropdown-menu {
        left: auto;
        right: auto;
    }

    /* Reveal submenus on hover/focus with smooth animation */
    .dropdown-submenu:hover > .dropdown-menu,
    .dropdown-submenu:focus-within > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    /* Enhanced submenu behavior to prevent sticky states */
    .dropdown-submenu > .dropdown-menu {
        pointer-events: auto;
    }
    
    /* Ensure submenu items don't interfere with dropdown closing */
    .dropdown-submenu .dropdown-menu > li > a[ng-click="$event.stopPropagation();"] {
        position: relative;
    }
    
    /* Force dropdown to close when mouse leaves the submenu area completely */
    .dropdown-submenu:not(:hover) > .dropdown-menu {
        transition-delay: 0.2s; /* Small delay to prevent flickering */
    }

    /* Visual connection between parent and submenu */
    .dropdown-submenu:hover > .dropdown-menu::before,
    .dropdown-submenu:focus-within > .dropdown-menu::before {
        content: '';
        position: absolute;
        left: -3px;
        top: 12px;
        width: 3px;
        height: calc(100% - 24px);
        background: linear-gradient(to bottom, 
            rgba(59, 130, 246, 0.2) 0%, 
            rgba(59, 130, 246, 0.05) 50%, 
            rgba(59, 130, 246, 0.2) 100%);
        border-radius: 0 1px 1px 0;
        z-index: -1;
    }

    /* Left-opening submenu connection line */
    .dropdown-submenu.dropdown-submenu-left:hover > .dropdown-menu::before,
    .dropdown-submenu.dropdown-submenu-left:focus-within > .dropdown-menu::before {
        left: auto;
        right: -3px;
        border-radius: 1px 0 0 1px;
    }

    /* Enhanced focus indicators for accessibility */
    .dropdown-submenu > a:focus,
    .dropdown-submenu > a:focus-visible {
        outline: 2px solid #007bff;
        outline-offset: -2px;
        background-color: #f8f9fa;
    }

    /* Default: right arrow at the end */
    .dropdown-submenu > a {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Align text to left consistently */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 30px; /* More space for arrow */
        position: relative;
        transition: background-color 0.15s ease;
    }

        .dropdown-submenu > a:after {
            content: "\25B8"; /* ▶ */
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.8;
            font-size: 12px;
            transition: all 0.2s ease;
        }

    /* Left-opening submenu: arrow before text */
    .dropdown-submenu.dropdown-submenu-left > a {
        justify-content: flex-start; /* Keep text aligned left */
        padding-left: 30px;
        padding-right: 15px;
    }

        .dropdown-submenu.dropdown-submenu-left > a:after {
            content: none;
        }

        .dropdown-submenu.dropdown-submenu-left > a:before {
            content: "\25C2"; /* ◂ */
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.8;
            font-size: 12px;
            transition: all 0.2s ease;
        }

    /* Enhanced hover effects for submenu triggers - subtle approach */
    .dropdown-submenu > a:hover,
    .dropdown-submenu > a:focus {
        background: rgba(0, 0, 0, 0.03);
        color: #1f2937;
        text-decoration: none;
        border-left: 3px solid rgba(0, 0, 0, 0.1);
        transform: translateX(2px);
    }

    /* Parent item highlighting when submenu is open and active */
    .dropdown-submenu:hover > a,
    .dropdown-submenu:focus-within > a {
        background: rgba(59, 130, 246, 0.08);
        color: #1e293b;
        border-left: 3px solid rgba(59, 130, 246, 0.4);
        transform: translateX(2px);
        box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
    }

    /* Stronger highlight when submenu is being interacted with */
    .dropdown-submenu .dropdown-menu:hover ~ a,
    .dropdown-submenu:hover > .dropdown-menu:hover ~ a {
        background: rgba(59, 130, 246, 0.12);
        border-left-color: rgba(59, 130, 246, 0.6);
    }

    /* Special styling for category headers when submenu is active */
    .dropdown-submenu > a.category-header:hover {
        background: rgba(0, 0, 0, 0.03);
        transform: none;
        border-left-color: #d1d5db;
    }

    .dropdown-submenu:hover > a.category-header,
    .dropdown-submenu:focus-within > a.category-header {
        background: rgba(107, 114, 128, 0.08);
        border-left-color: rgba(107, 114, 128, 0.4);
        color: #374151;
        font-weight: 600;
    }

    /* Right arrow hover */
    .dropdown-submenu > a:hover:after,
    .dropdown-submenu > a:focus:after {
        opacity: 1;
        transform: translateY(-50%) translateX(2px);
        color: #007bff;
    }

    /* Left arrow hover */
    .dropdown-submenu.dropdown-submenu-left > a:hover:before,
    .dropdown-submenu.dropdown-submenu-left > a:focus:before {
        opacity: 1;
        transform: translateY(-50%) translateX(-2px);
        color: #007bff;
    }

/* Enhanced main dropdown behavior */
.dropdown-menu {
    min-width: 220px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    padding: 6px 0;
    margin: 2px 0 0;
    background-clip: padding-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

/* Show dropdown with animation */
.dropdown.open > .dropdown-menu,
.btn-group.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Enhanced dropdown items with consistent text alignment */
.dropdown-menu > li > a {
    padding: 4px 30px 4px 20px; /* Consistent right padding to align with arrow space */
    transition: all 0.15s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Always align text to left */
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: #f8f9fa;
    color: #16181b;
    transform: translateX(2px);
}

/* Divider improvements */
.dropdown-menu .divider {
    margin: 6px 0;
    border-top: 1px solid #e9ecef;
}

/* Icon spacing improvements - clean without backgrounds */
.dropdown-menu i {
    width: 16px;
    text-align: center;
    margin-right: 8px;
    color: #6b7280;
    transition: all 0.2s ease;
    background: transparent;
}

/* Informational icons remain muted */
.dropdown-menu .fa-file-text-o {
    color: #9ca3af;
    opacity: 0.7;
    pointer-events: none;
    background: transparent;
}

/* File name truncation for long names */
.dropdown-menu .file-name {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

/* Make first-level dropdown open on hover for button groups */
.btn-group.open-on-hover:hover > .dropdown-menu,
.btn-group.open-on-hover:focus-within > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Keep menus visible when moving across small gaps */
.dropdown-menu > li {
    position: relative;
}

/* Loading state for dynamic content */
.dropdown-menu .loading {
    padding: 10px 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.dropdown-menu .loading:after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #6c757d;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile and tablet optimizations */
@media (max-width: 991px) {
    .dropdown-menu {
        min-width: 200px;
        font-size: 14px;
    }
    
    .dropdown-submenu > .dropdown-menu {
        min-width: 160px;
    }
    
    .dropdown-menu > li > a {
        padding: 6px 15px;
    }
    
    .dropdown-submenu > a {
        padding: 6px 35px 6px 15px;
    }
    
    .dropdown-submenu.dropdown-submenu-left > a {
        padding: 6px 15px 6px 35px;
    }
}

@media (max-width: 767px) {
    /* Touch-friendly sizing */
    .dropdown-menu {
        min-width: 180px;
        max-width: 90vw;
    }
    
    .dropdown-menu > li > a {
        padding: 8px 15px;
        font-size: 16px; /* Larger touch targets */
    }
    
    .dropdown-submenu > a {
        padding: 8px 40px 8px 15px;
    }
    
    .dropdown-submenu.dropdown-submenu-left > a {
        padding: 8px 15px 8px 40px;
    }
    
    /* Simplified animations on mobile for better performance */
    .dropdown-menu,
    .dropdown-submenu > .dropdown-menu {
        transition: none;
    }
    
    /* Stack submenus vertically on small screens */
    .dropdown-submenu > .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin: 0;
        border-radius: 0;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        background-color: rgba(0,0,0,0.05);
    }
    
    /* Hide arrows on mobile since submenus are stacked */
    .dropdown-submenu > a:after,
    .dropdown-submenu.dropdown-submenu-left > a:before {
        display: none;
    }
    
    /* Mobile submenu indicator */
    .dropdown-submenu > a {
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dropdown-menu {
        border: 2px solid;
        box-shadow: none;
    }
    
    .dropdown-submenu > a:focus,
    .dropdown-submenu > a:focus-visible {
        outline: 3px solid;
        outline-offset: -3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dropdown-menu,
    .dropdown-submenu > .dropdown-menu,
    .dropdown-submenu > a:after,
    .dropdown-submenu.dropdown-submenu-left > a:before,
    .dropdown-menu > li > a {
        transition: none;
        transform: none;
    }
    
    .dropdown-menu .loading:after {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dropdown-menu {
        background-color: #343a40;
        border-color: #495057;
        color: #fff;
    }
    
    .dropdown-menu > li > a {
        color: #fff;
    }
    
    .dropdown-menu > li > a:hover,
    .dropdown-menu > li > a:focus,
    .dropdown-submenu > a:hover,
    .dropdown-submenu > a:focus {
        background-color: #495057;
        color: #fff;
    }
    
    .dropdown-menu .divider {
        border-top-color: #495057;
    }
    
    .dropdown-submenu > .dropdown-menu {
        background-color: #343a40;
        border-color: #495057;
    }
}

/* Print styles - hide dropdowns */
@media print {
    .dropdown-menu,
    .dropdown-submenu > .dropdown-menu {
        display: none !important;
    }
}

/* Additional utility classes for dropdown variants */
.dropdown-menu.dropdown-menu-compact {
    min-width: 160px;
    padding: 2px 0;
}

.dropdown-menu.dropdown-menu-compact > li > a {
    padding: 4px 12px;
    font-size: 12px;
}

.dropdown-menu.dropdown-menu-wide {
    min-width: 300px;
}

.dropdown-menu.dropdown-menu-no-arrow .dropdown-submenu > a:after,
.dropdown-menu.dropdown-menu-no-arrow .dropdown-submenu.dropdown-submenu-left > a:before {
    display: none;
}

/* ========== ACTIONABLE vs INFORMATIONAL ITEMS ========== */

/* Default: Actionable items (clickable) */
.dropdown-menu > li > a {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: #f8f9fa;
    color: #16181b;
    transform: translateX(2px);
    text-decoration: none;
}

/* Actionable items with subtle visual cues */
.dropdown-menu .action-item,
.dropdown-menu > li > a[ng-click]:not([ng-click="$event.stopPropagation();"]) {
    background: transparent;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-menu .action-item:hover,
.dropdown-menu > li > a[ng-click]:not([ng-click="$event.stopPropagation();"]):hover {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: rgba(0, 0, 0, 0.1);
    transform: translateX(3px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Generate new items - primary actions with subtle styling */
.dropdown-menu .generate-action,
.dropdown-menu > li > a[ng-click*="startExport"],
.dropdown-menu > li > a[ng-click*="Export"] {
    border-left-color: transparent;
    background: transparent;
}

.dropdown-menu .generate-action:hover,
.dropdown-menu > li > a[ng-click*="startExport"]:hover,
.dropdown-menu > li > a[ng-click*="Export"]:hover {
    background: rgba(0, 0, 0, 0.04);
    border-left-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Download actions with muted styling */
.dropdown-menu .download-action,
.dropdown-menu > li > a[ng-click*="downloadFile"] {
    border-left-color: transparent;
}

.dropdown-menu .download-action:hover,
.dropdown-menu > li > a[ng-click*="downloadFile"]:hover {
    background: rgba(0, 0, 0, 0.04);
    border-left-color: rgba(59, 130, 246, 0.3);
}

/* ========== INFORMATIONAL ITEMS ========== */

/* Informational items (non-clickable) */
.dropdown-menu .info-item,
.dropdown-menu > li > a[ng-click="$event.stopPropagation();"] {
    cursor: default;
    color: #6b7280;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid #e5e7eb;
    font-style: italic;
    pointer-events: auto; /* Allow hover but prevent click propagation issues */
}

.dropdown-menu .info-item:hover,
.dropdown-menu > li > a[ng-click="$event.stopPropagation();"]:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: none;
    color: #6b7280;
    text-decoration: none;
    box-shadow: none;
}

/* Prevent sticky hover states on informational items */
.dropdown-menu > li > a[ng-click="$event.stopPropagation();"]:active,
.dropdown-menu .info-item:active {
    background: rgba(0, 0, 0, 0.02) !important;
    color: #6b7280 !important;
}

/* Ensure informational items don't prevent dropdown from closing */
.dropdown-menu .info-item {
    user-select: none; /* Prevent text selection which can interfere with hover states */
}

/* Force submenu to hide when not actively hovering over the parent */
.dropdown-submenu:not(:hover) > .dropdown-menu:not(:hover) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none !important;
}

/* Category headers (non-actionable section titles) */
.dropdown-menu .category-header {
    cursor: default;
    font-weight: 600;
    color: #374151;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid #d1d5db;
    position: relative;
}

.dropdown-menu .category-header:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: none;
    text-decoration: none;
}

/* File info icons - non-actionable */
.dropdown-menu .fa-file-text-o {
    color: #9ca3af;
    opacity: 0.7;
    pointer-events: none;
}

/* ========== ICON STYLING ========== */

/* Clean icon styling without backgrounds */
.dropdown-menu .fa-plus,
.dropdown-menu .fa-download {
    color: #6b7280;
    background: transparent;
    padding: 3px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-menu .fa-remove {
    color: #ef4444;
    background: transparent;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-left: 8px;
}

.dropdown-menu .fa-remove:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: scale(1.05);
}

/* Alternative: Use typography weight to distinguish action types */
.dropdown-menu > li > a[ng-click*="startExport"] {
    font-weight: 500;
}

.dropdown-menu > li > a[ng-click*="downloadFile"] {
    font-weight: 400;
}

/* Hover effects for action icons - no background */
.dropdown-menu > li > a:hover .fa-plus,
.dropdown-menu > li > a:hover .fa-download {
    background: transparent;
    color: #374151;
    transform: scale(1.02);
}

/* Alternative styling approach - use borders instead of colors */
.dropdown-menu > li > a[ng-click*="startExport"]:hover {
    border-left-color: rgba(107, 114, 128, 0.3);
}

.dropdown-menu > li > a[ng-click*="downloadFile"]:hover {
    border-left-color: rgba(107, 114, 128, 0.2);
}

/* ========== SUBMENU ITEM CONSISTENCY ========== */

/* Force submenu items to have same compact height as main menu items */
.dropdown-submenu .dropdown-menu > li > a,
.dropdown-submenu > .dropdown-menu > li > a,
.dropdown-menu .dropdown-menu > li > a {
    padding: 4px 20px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease;
    height: auto !important;
    min-height: auto !important;
}

/* Override Bootstrap default padding for nested dropdowns with consistent alignment */
.dropdown-menu .dropdown-menu > li > a {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    padding-left: 20px !important;
    padding-right: 30px !important; /* Same right padding as main menu items */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Consistent left alignment */
}

/* Ensure all dropdown items have consistent text alignment */
.dropdown-menu li a {
    text-align: left;
    padding-right: 30px; /* Reserve space for potential arrows */
}

/* Items without submenus should still align with items that have arrows */
.dropdown-menu > li:not(.dropdown-submenu) > a {
    padding-right: 30px; /* Same padding as items with arrows */
}

/* Submenu items responsive padding - same as main menu */
@media (max-width: 991px) {
    .dropdown-submenu .dropdown-menu > li > a,
    .dropdown-submenu > .dropdown-menu > li > a,
    .dropdown-menu .dropdown-menu > li > a {
        padding: 6px 15px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 767px) {
    .dropdown-submenu .dropdown-menu > li > a,
    .dropdown-submenu > .dropdown-menu > li > a,
    .dropdown-menu .dropdown-menu > li > a {
        padding: 8px 15px !important;
        font-size: 16px !important;
    }
}

/* ========== VISUAL HIERARCHY ========== */

/* Primary actions (most important) */
.dropdown-menu .primary-action {
    font-weight: 500;
    color: #1f2937;
}

/* Secondary actions */
.dropdown-menu .secondary-action {
    font-weight: 400;
    color: #374151;
}

/* Tertiary/info items */
.dropdown-menu .tertiary-info {
    font-weight: 400;
    color: #6b7280;
    font-size: 13px;
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */

/* Focus indicators for actionable items */
.dropdown-menu > li > a[ng-click]:focus,
.dropdown-menu .action-item:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* No focus outline for non-actionable items */
.dropdown-menu .info-item:focus,
.dropdown-menu > li > a[ng-click="$event.stopPropagation();"]:focus {
    outline: none;
    box-shadow: none;
}

/* ========== TOOLTIPS AND HELP TEXT ========== */

/* Removed tooltip pseudo-elements to prevent dark spots on hover */

/* Info badge for non-actionable items */
.dropdown-menu .info-badge {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== LOADING AND DISABLED STATES ========== */

/* Disabled action items */
.dropdown-menu .action-item.disabled,
.dropdown-menu > li > a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading state for action items */
.dropdown-menu .action-item.loading::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ========== RESPONSIVE IMPROVEMENTS ========== */

@media (max-width: 767px) {
    /* Simplified styling for mobile */
    .dropdown-menu .action-item,
    .dropdown-menu > li > a[ng-click]:not([ng-click="$event.stopPropagation();"]) {
        border-left-width: 2px;
    }
    
    /* Larger touch targets for action icons */
    .dropdown-menu .fa-remove {
        padding: 8px;
        margin-left: 12px;
    }
    
    /* Mobile-specific adjustments */
}

/* ========== ANIMATION KEYFRAMES ========== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}