/* ================================================
   INLINE INVOICE DISCOUNTS - Custom Styles
   ================================================ */

/* Discount column styling */
.bill_col_discount {
    min-width: 150px;
}

.bill_col_discount .input-group-append {
    width: 60px;
}

.bill_col_discount .js_item_discount_type {
    font-size: 12px;
    padding: 0.25rem;
}

/* Hide discount column when needed */
.bill_col_discount.hidden {
    display: none !important;
}

/* Disabled button styling */
button.disabled,
a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Custom Submenu for Dropdowns */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0 !important;
    bottom: auto !important;
    left: 100% !important;
    margin-top: -6px !important;
    margin-left: 0 !important;
    border-radius: 0.25rem;
    display: none; /* Hidden by default */
    position: absolute !important;
    z-index: 9999 !important;
}

.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;
}

/* Red Card Alert for Delayed Leads in 'Novo' Pipeline */
.card-delayed-alert {
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%) !important;
    border: 1px solid #ffcdd2 !important;
}

.card-delayed-alert .text-muted {
    color: #6c757d !important;
}

.card-delayed-alert .x-title {
    color: #333333 !important;
}

/* Money Label */
.card-delayed-alert .label-light-info {
    background-color: rgba(23, 162, 184, 0.1) !important;
    color: #17a2b8 !important;
    border: none !important;
}

/* Name Label */
.card-delayed-alert .label-outline-default {
    border-color: #dee2e6 !important;
    color: #6c757d !important;
}

/* Source Value - Darker purple for readability on light bg */
.card-delayed-alert strong[style*="purple"] {
    color: #6f42c1 !important;
}

/* Icons */
.card-delayed-alert .x-icon i {
    color: #6c757d !important;
}

.card-delayed-alert .text-warning,
.card-delayed-alert .text-warning i {
    color: #ffc107 !important;
}

.card-delayed-alert .text-success,
.card-delayed-alert .text-success i {
    color: #28a745 !important;
}

.card-delayed-alert .text-info,
.card-delayed-alert .text-info i {
    color: #17a2b8 !important;
}

.card-delayed-alert .x-action-button i {
    color: #6c757d !important;
}
