/* ESCADA B2B kiegészítő stílusok (build nélkül, Filament assetként betöltve) */

.fi-ta-row.b2b-row-problematic {
    box-shadow: inset 4px 0 0 0 rgb(220 38 38);
    background-color: rgb(254 242 242);
}

.dark .fi-ta-row.b2b-row-problematic {
    background-color: rgb(127 29 29 / 0.25);
}

.fi-ta-row.b2b-row-muted {
    opacity: 0.6;
}

.b2b-mobile-row {
    display: grid;
    gap: 2px;
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.35;
    white-space: normal;
}

.b2b-mobile-row__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.b2b-mobile-row__id {
    font-weight: 700;
}

.b2b-mobile-row__when {
    font-weight: 600;
}

.b2b-mobile-row__when--today {
    color: rgb(220 38 38);
}

.b2b-mobile-row__foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    font-weight: 600;
}

.b2b-muted {
    color: rgb(100 116 139);
}

/* Dashboard állapotkártyák */
.b2b-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .b2b-cards {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.b2b-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    border: 1px solid transparent;
    text-align: left;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    color: rgb(15 23 42);
}

.b2b-card:hover,
.b2b-card:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
    outline: none;
}

.b2b-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .b2b-card:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

.b2b-card__label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.b2b-card__count {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.1;
}

.b2b-card__unit {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.7;
}

.b2b-card--orange { background: rgb(255 237 213); border-color: rgb(253 186 116); }
.b2b-card--yellow { background: rgb(254 249 195); border-color: rgb(253 224 71); }
.b2b-card--sky { background: rgb(219 234 254); border-color: rgb(147 197 253); }
.b2b-card--purple { background: rgb(243 232 255); border-color: rgb(216 180 254); }
.b2b-card--indigo { background: rgb(224 231 255); border-color: rgb(165 180 252); }
.b2b-card--red { background: rgb(254 226 226); border-color: rgb(252 165 165); }

.dark .b2b-card { color: rgb(241 245 249); }
.dark .b2b-card--orange { background: rgb(124 45 18 / 0.45); border-color: rgb(194 65 12); }
.dark .b2b-card--yellow { background: rgb(113 63 18 / 0.45); border-color: rgb(161 98 7); }
.dark .b2b-card--sky { background: rgb(30 58 138 / 0.45); border-color: rgb(29 78 216); }
.dark .b2b-card--purple { background: rgb(88 28 135 / 0.45); border-color: rgb(126 34 206); }
.dark .b2b-card--indigo { background: rgb(49 46 129 / 0.45); border-color: rgb(67 56 202); }
.dark .b2b-card--red { background: rgb(127 29 29 / 0.45); border-color: rgb(185 28 28); }

.b2b-card--empty {
    opacity: 0.55;
}

@media (max-width: 767px) {
    .b2b-hide-mobile {
        display: none !important;
    }
}

.b2b-journal {
    max-height: 24rem;
    overflow-y: auto;
}

.b2b-journal p {
    margin: 0 0 0.375rem;
}

.b2b-journal img {
    max-width: 100%;
    height: auto;
}

.b2b-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Kompakt rendelés táblák (dashboard listák és rendeléslisták) */
.b2b-bucket .fi-section-content {
    padding: 0 !important;
}

.b2b-bucket .fi-ta-ctn {
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: none;
    --tw-ring-shadow: 0 0 #0000;
}

.b2b-bucket .fi-ta-header-cell,
.fi-main .fi-ta-header-cell {
    padding-block: 0.5rem;
}

.b2b-bucket .fi-ta-text:not(.fi-inline),
.fi-main .fi-ta-text:not(.fi-inline) {
    padding: 0.4rem 0.6rem;
}

.b2b-bucket .fi-ta-text,
.b2b-bucket .fi-ta-text-item,
.fi-main .fi-ta-text,
.fi-main .fi-ta-text-item {
    font-size: 0.8125rem;
    line-height: 1.25rem;
}

.b2b-bucket .fi-ta-text.fi-ta-text-has-descriptions,
.fi-main .fi-ta-text.fi-ta-text-has-descriptions {
    row-gap: 0;
}

.b2b-bucket .fi-ta-text-description,
.fi-main .fi-ta-text-description {
    font-size: 0.75rem;
    line-height: 1.1rem;
}

.b2b-bucket .fi-ta-col,
.b2b-bucket .fi-ta-text,
.fi-main .fi-ta-col,
.fi-main .fi-ta-text {
    white-space: nowrap;
}

.b2b-bucket .fi-pagination {
    padding: 0.375rem 0.75rem;
}

.b2b-cards {
    gap: 0.5rem;
}

.b2b-card {
    padding: 0.625rem 0.875rem;
}

.b2b-card__count {
    font-size: 1.5rem;
}

.fi-wi-widget + .fi-wi-widget,
.b2b-bucket {
    margin-top: 0;
}

.b2b-card__label {
    font-size: 0.8125rem;
    min-width: 0;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .b2b-card__label > span[aria-hidden] {
        display: none;
    }
}

/* Mobil sorkártyák belső margója */
.b2b-mobile-row {
    padding: 0.75rem 1rem;
}

@media (max-width: 767px) {
    .b2b-bucket .fi-ta-table thead {
        display: none;
    }

    .b2b-row-problematic .b2b-mobile-row {
        padding-left: 1.125rem;
    }
}

.b2b-prose p {
    margin: 0 0 0.5rem;
}

.b2b-prose a {
    text-decoration: underline;
}

/* Admin "átlépés" sáv a virágbolt felületén */
.b2b-admin-banner {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding: 0.5rem 1rem;
    background: rgb(124 58 237);
    color: #fff;
    font-size: 0.875rem;
}

.b2b-admin-banner a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}

.b2b-bucket-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: rgb(255 255 255 / 0.6);
    border: 1px dashed rgb(203 213 225);
    font-size: 0.875rem;
}

.dark .b2b-bucket-empty {
    background: transparent;
    border-color: rgb(255 255 255 / 0.15);
}

.b2b-bucket-empty__icon {
    width: 1.125rem;
    height: 1.125rem;
    color: rgb(148 163 184);
}

.b2b-bucket-empty__label {
    font-weight: 600;
}

@media (max-width: 1535px) {
    .b2b-hide-below-2xl {
        display: none !important;
    }

    .fi-resource-orders .fi-ta-actions-cell:has(.b2b-hide-below-2xl),
    .fi-resource-orders .fi-ta-actions-header-cell {
        display: none;
    }
}
