﻿.selected {
    background-color: #1E88E5 !important;
    cursor: default !important;
}

.selected>td {
    color: white !important;
}

.selected>td .mud-input {
    color: white !important;
}

.mud-table-row-pointer {
    cursor: pointer;
}

.h-100 {
    height: 100%;
}


.box-container {
    position: relative;
    padding-top: 0.5rem;
    height: 100%;
}

.box {
    border-radius: var(--mud-default-borderradius);
    border-color: var(--mud-palette-lines-inputs);
    border-width: 1px;
    border-style: solid;
    transition: border-width, border-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    padding: 0;
    margin: 0;
    height: 100%;
}

.box-label {
    float: none;
    visibility: visible;
    font-size: .75rem;
    font-weight: inherit;
    width: auto;
    height: auto;
    margin: 0 11px;
    padding: 0 5px;
    position: relative;
}

.box-content {
    padding: 1rem;
}

.contact-card {
    max-height: 20vh;
    /* Default for larger screens */
}

@media (max-width: 768px) {
    .contact-card {
        max-height: 40vh;
        /* Increase height for smaller screens */
    }
}

@media (max-width: 480px) {
    .contact-card {
        max-height: unset;
        /* Remove max-height for very small screens */
    }
}

/* Badge and Card Styles */
.material-badge-card:hover,
.material-display-card:hover,
.po-item-card:hover {
    border-color: var(--mud-palette-primary) !important;
}

.material-badge-card .mud-button-root:hover,
.po-item-card .mud-button-root:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

/* New Part Indicator Styles */
.new-part-indicator-wrapper {
    display: inline-block;
    width: 200px;
    height: 32px;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
}

.new-part-indicator-wrapper:hover .new-part-indicator {
    width: 180px;
    border-radius: 12px;
    padding: 9px 14px;
}

.new-part-indicator-wrapper:hover .new-part-text {
    opacity: 1;
    font-size: 0.75rem;
}

.new-part-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mud-palette-primary);
    color: white;
    border-radius: 50%;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    width: 16px;
    height: 16px;
    transition: width 0.3s ease-in-out, border-radius 0.3s ease-in-out, padding 0.3s ease-in-out;
    z-index: 10;
    pointer-events: none;
}

.new-part-text {
    white-space: nowrap;
    opacity: 0;
    font-size: 0;
    transition: opacity 0.2s ease-in-out 0.1s, font-size 0.3s ease-in-out;
}

.new-part-indicator::before {
    content: '';
}

/* On larger screens (lg and above), show expanded by default */
@media (min-width: 1280px) {
    .new-part-indicator {
        width: 180px;
        border-radius: 12px;
        padding: 9px 14px;
    }

    .new-part-text {
        opacity: 1;
        font-size: 0.75rem;
    }
}
