* start tree structure */ .item-level-details {
    ul.tree {
        list-style: none;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 6px;
        margin: 0;
        min-width: 200px;
        height: fit-content;
    }

    ul.tree>li {
        padding: 8px;
        margin-bottom: 6px;
    }

    ul.tree li .material-icons {
        cursor: pointer;
        font-size: 20px;
        color: #6c757d;
        vertical-align: middle;
        margin-inline-end: 6px;
        transition: color 0.2s ease;
    }

    ul.tree li .material-icons:hover {
        color: #495057;
    }

    ul.tree li .material-icons.ng-hide {
        display: none !important;
    }

    ul.tree li .pointer {
        cursor: pointer;
        color: #212529;
        font-size: 14px;
        vertical-align: middle;
        transition: color 0.2s ease;
    }

    ul.tree li .pointer:hover {
        color: #0d6efd;
    }

    ul.tree li .glyphicon-ok {
        color: #198754;
        font-size: 16px;
        margin-inline-start: 8px;
        vertical-align: middle;
    }

    ul.tree ol {
        list-style: none;
        padding-inline-start: 28px;
        margin-top: 6px;
        margin-bottom: 0;
    }

    ul.tree ol li {
        padding: 4px 0;
        margin-bottom: 4px;
    }

    ul.tree li:has(.glyphicon-ok) {
        background: rgba(25, 135, 84, 0.08);
        border-radius: 4px;
        padding: 6px 8px;
    }

    ul.tree li:has(.glyphicon-ok) .pointer {
        color: #198754;
        font-weight: 500;
    }
}


/* start item details */
.item-details {
    .actions {
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid var(--border-color);

        label {
            margin-bottom: 0 !important;
        }
    }

    .radio-inputs {
        padding-inline-end: 16px;
        border-inline-end: 1px solid var(--border-color);

    }
}

/* end item details */

/* start sub stock request */
.sub-stock-request-detail {
    md-autocomplete .md-show-clear-button button {
        top: 0 !important;
    }
}

/* end sub stock request */
/* start main stock issue details */
.main-stock-issue-details {
    .actions {
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid var(--border-color);

        label {
            margin-bottom: 0 !important;
        }
    }
}

/* end main stock issue details */

/* start patient stock issue return detail */
.patient-stock-issue-return-detail {
    .actions {
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid var(--border-color);

        label {
            margin-bottom: 0 !important;
        }
    }
}

/* end patient stock issue return detail */
/* start stock inventory detail */
.stock-inventory-detail {
    .actions {
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid var(--border-color);

        label {
            margin-bottom: 0 !important;
        }
    }
}

/* end stock inventory detail */
/* start sterilization detail */
.sterilization-detail {
    .actions {
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid var(--border-color);

        label {
            margin-bottom: 0 !important;
        }
    }
}

/* end sterilization detail */

/* start sale detail */
.sale-details {
    .favourite-items {
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border: 1px solid #e0e4e8;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: all 0.3s ease;
    }

    .favourite-items:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        border-color: #d0d5dd;
    }

    .favourite-items legend {
        font-size: 16px;
        font-weight: 600;
        color: #1a202c;
        padding: 0 12px;
        margin-bottom: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .fav-items-wrapper {
        padding: 12px 0 0;
    }

    .fav-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #ffffff;
        border-radius: 24px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 14px;
        font-weight: 500;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
        position: relative;
        overflow: hidden;
        user-select: none;
        min-height: 40px;
    }

    .fav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .fav-item:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .fav-item:hover::before {
        opacity: 1;
    }

    .fav-item:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }

    .fav-item span {
        position: relative;
        z-index: 1;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        white-space: nowrap;
    }

    /* Alternative color schemes for variety */
    .fav-item:nth-child(3n+1) {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    }

    .fav-item:nth-child(3n+1):hover {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .fav-item:nth-child(3n+2) {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        box-shadow: 0 2px 8px rgba(240, 147, 251, 0.25);
    }

    .fav-item:nth-child(3n+2):hover {
        box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
    }

    .fav-item:nth-child(3n+3) {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        box-shadow: 0 2px 8px rgba(79, 172, 254, 0.25);
    }

    .fav-item:nth-child(3n+3):hover {
        box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .favourite-items {
            padding: 16px;
        }

        .fav-item {
            padding: 8px 16px;
            font-size: 13px;
            min-height: 36px;
        }
    }
}

/* end sale detail */

.sale-search-modal {
    .total {
        background-color: var(--sky-blue-light);
        padding: 4px 10px;
        border-radius: 8px;
        color: var(--sky-blue);
        font-size: 16px;
        font-weight: 500;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid;
        width: fit-content;
        margin: 0 auto;
        font-size: 20px;
    }
}