/* 3. List Styling */
.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 400px;
    margin: 0;
    overflow-y: auto;
}

.product-list .no-sales-text,
#images-tab-content .images-container ul>h4 {
    text-align: center;
    margin: 64px 0 0;
    color: var(--color-shade-dark-500);
    font-weight: 500;
    width: 100%;
}

/* 4. List Item (Card) Styling */
.product-item {
    background-color: var(--md-sys-color-surface);
    border-radius: 0;
    padding: 16px;
    /*
  box-shadow: var(--md-sys-elevation-1);
  */

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

.product-item:hover {
    box-shadow: var(--md-sys-elevation-2);

    /*cursor: pointer;

   Subtle border on hover for accessibility */
    border-color: var(--md-sys-color-outline-variant);
}

.product-item .p-meta-info.p-meta-info-first {
    display: none;
}

.product-item.project-product-type-1 .p-meta-info.p-meta-info-first {
    display: flex;
}

/* 5. Content Layout */
.product-item .p-main-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    width: 100%;
    flex-grow: 1;
    flex-shrink: 0;
}

.product-item .p-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    flex-grow: 1;
    margin: 0 0 8px;
}

/* Badges for Product Type */
.product-item .p-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 16px;
    border-width: 1px;
    border-color: var(--default-frame-border-color);
    border-style: solid;
    box-shadow: var(--default-card-shadow);
    border-radius: calc(var(--default-card-border-radius) / 1.4);

}

.product-item .type-product {
    /**/
    background-color: var(--badge-product-bg);
    color: var(--badge-product-text);

    color: var(--color-shade-dark-700);
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;

    flex-shrink: 0;
}

.product-item .type-mjete {
    background-color: var(--badge-mjete-bg);
    color: var(--badge-mjete-text);
}

/* Meta Info (Serial, Qty, Date) */
.product-item .p-meta-info {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 4px;
    /* Slight spacing on mobile wrap */
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.875rem;
    width: 100%;
}

.product-item .p-detail strong {
    color: var(--md-sys-color-on-surface);
    font-weight: 600;
}

.product-item .p-date {
    font-size: 0.75rem;
    opacity: 0.8;
}



#scheduled-event-finished-form {
    min-width: 700px;
}

#scheduled-event-finished-form .tab-content {
    min-height: 400px;
}

#scheduled-event-finished-form .tittle {
    margin: 0 0 calc(var(--default-items-margin) * 3);
}

#scheduled-event-finished-form h3 {
    margin-top: 32px;
}

#scheduled-event-finished-form .tittle .above-tittle {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: calc(100% - 64px);
}

#scheduled-event-finished-form .tittle .above-tittle>div {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

#scheduled-event-finished-form .tittle .above-tittle>div span {
    color: var(--color-shade-dark-700);
    fill: var(--color-shade-dark-700);
    font-size: 0.9em;
}

#scheduled-event-finished-form .tittle .above-tittle>div span {
    color: var(--color-shade-dark-700);
    fill: var(--color-shade-dark-700);
    font-size: 0.9em;
}

#scheduled-event-finished-form .tittle .above-tittle>div span svg {
    width: 16px;
    height: 16px;
    fill: inherit;
}

#scheduled-event-finished-form .tittle h2 {
    margin-block-start: 0.5em;
    margin-block-end: 0;
}

#images-tab-content .images-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

#images-tab-content .images-container .opened-image {
    width: 100%;
    height: 400px;
    display: none;
}

#images-tab-content .images-container.have-images .opened-image {
    display: block;
}

#images-tab-content .images-container .opened-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#images-tab-content .images-container ul {
    width: 100%;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0;
}

#images-tab-content .images-container ul li {
    width: 64px;
    height: 64px;
}

#images-tab-content .images-container ul li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 6. Responsive Adjustments */
@media (max-width: 600px) {
    .product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .p-meta-info {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        font-size: 0.8rem;
    }
}

/* 7. Feedback Tab Styling */
.feedback-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-card {
    padding: 20px;
    background-color: var(--card-background-color);
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    border: 1px solid var(--md-sys-color-outline-variant);
    position: relative;
    overflow: hidden;
}

.feedback-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--md-sys-color-surface-variant);
}

.feedback-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-icon {
    color: var(--md-sys-color-secondary);
    font-size: 20px;
}

.feedback-id {
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    font-size: 1em;
}

.feedback-date {
    font-size: 0.85em;
    color: var(--md-sys-color-outline);
    background: var(--md-sys-color-surface-variant);
    padding: 4px 8px;
    border-radius: 4px;
}

.feedback-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.feedback-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(var(--md-sys-color-primary-rgb), 0.04);
    padding: 10px;
    border-radius: 8px;
}

.feedback-score-label {
    margin-bottom: 4px;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--md-sys-color-outline);
}

.feedback-score-value {
    color: var(--md-sys-color-primary);
    font-size: 1.4em;
    font-weight: 700;
}

.feedback-score-denominator {
    font-size: 0.5em;
    opacity: 0.7;
}

.feedback-recommendation-value {
    font-size: 1.6em;
    display: flex;
    align-items: center;
    height: 32px;
}

.feedback-recommendation-value.thumbs-up {
    color: var(--md-sys-color-primary);
}

.feedback-recommendation-value.thumbs-down {
    color: var(--md-sys-color-error);
}

.feedback-recommendation-icon {
    font-size: 28px;
}