/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-89kddve2oz] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-89kddve2oz] {
    flex: 1;
}

.sidebar[b-89kddve2oz] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

/* ===================== */
/*  Top Row / Header     */
/* ===================== */

.top-row[b-89kddve2oz] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

@media (min-width: 641px) {
    .page[b-89kddve2oz] {
        flex-direction: row;
    }

    .sidebar[b-89kddve2oz] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }
}

/* ===================== */
/*  Custom User Toolbar  */
/* ===================== */

:root[b-89kddve2oz] {
    --sidebar-width: 260px;
}

.userbar[b-89kddve2oz] {
    position: fixed;
    top: 8px;
    left: calc(var(--sidebar-width) + 12px);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 9999;
}

.userbar-sticky[b-89kddve2oz] {
    position: sticky;
    top: 0;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    z-index: 2;
}

/* ===================== */
/*  Auth / Logout        */
/* ===================== */

.logout-btn[b-89kddve2oz] {
    margin-left: 6px;
    padding: 8px 14px;
    border: 1px solid #6b7280;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.15s ease;
}

    .logout-btn:hover[b-89kddve2oz] {
        background: #f3f4f6;
    }

/* ===================== */
/*  Toolbar Buttons      */
/* ===================== */

.toolbar-btn[b-89kddve2oz] {
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #6b7280;
    background: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .toolbar-btn:hover[b-89kddve2oz] {
        background: #f3f4f6;
    }

    .toolbar-btn.toolbar-danger[b-89kddve2oz] {
        border-color: #dc2626;
        color: #dc2626;
    }

/* ===================== */
/*  Counter — PLAIN TEXT */
/* ===================== */

/* RenderFragment-safe, no pill, no box */
.userbar-sticky[b-89kddve2oz]  .toolbar-pill {
    background: none;
    border: none;
    padding: 0;
    margin: 0 8px; /* breathing room near +/- */

    font-size: 25px; /* as requested */
    line-height: 28px;
    font-weight: 400;
    color: #111827; /* same as main text */
}

/* ===================== */
/*  Scoped fix for RenderFragment buttons */
/* ===================== */

.userbar-sticky[b-89kddve2oz]  button {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #6b7280;
    background: #ffffff;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .userbar-sticky[b-89kddve2oz]  button:hover {
        background: #f3f4f6;
    }

    .userbar-sticky[b-89kddve2oz]  button:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

/* ===================== */
/*  EXTRA SAFETY GAP BEFORE TERMINAR */
/* ===================== */

.userbar-sticky[b-89kddve2oz]  .toolbar-danger {
    margin-left: 65px;
}

/* ===================== */
/*  Reload button        */
/* ===================== */

.wq-reload-btn[b-89kddve2oz] {
    position: fixed;
    top: 8px;
    right: 12px;
    z-index: 10050;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.25);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    cursor: pointer;
    font-size: 18px;
    line-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .wq-reload-btn:hover[b-89kddve2oz] {
        transform: translateY(-1px);
    }

    .wq-reload-btn:active[b-89kddve2oz] {
        transform: translateY(0px);
    }

/* ===================== */
/*  Blazor error UI      */
/* ===================== */

#blazor-error-ui[b-89kddve2oz] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-89kddve2oz] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-6cqseypouf] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-6cqseypouf] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-6cqseypouf] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-6cqseypouf] {
    font-size: 1.1rem;
}

.bi[b-6cqseypouf] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-6cqseypouf] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-6cqseypouf] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-6cqseypouf] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-6cqseypouf] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-6cqseypouf] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-6cqseypouf] {
        padding-bottom: 1rem;
    }

    .nav-item[b-6cqseypouf]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-6cqseypouf]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-6cqseypouf]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-6cqseypouf] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-6cqseypouf] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-6cqseypouf] {
        display: none;
    }

    .nav-scrollable[b-6cqseypouf] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Pages/ProductionOrder.razor.rz.scp.css */
/* =======================
   DAY BLOCKS
   ======================= */

.day-block[b-mljkfyf5yu] {
    margin-bottom: 20px;
    border-radius: 6px;
    background: #ffffff;
    /* stronger, thin blue outline so days are clearly separated */
    border: 2px solid #88aee6;
}

    /* TODAY: keep special red look, with its own stronger border */
    .day-block.today[b-mljkfyf5yu] {
        background: #dc8889 !important;
        border-left: 4px solid #b84d4e;
        border: 2px solid #b84d4e;
        color: #000;
    }

/* STRONG BLUE DAY HEADER (clearly different from grey tiles) */
.day-block-header[b-mljkfyf5yu] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #bcd6ff, #9cbfff);
    border-bottom: 2px solid #6b93d6;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0f1d40;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* TODAY stays unique and red */
.day-block.today .day-block-header[b-mljkfyf5yu] {
    background: linear-gradient(90deg, #b84d4e, #dc8889);
    border-bottom: 2px solid #8e3637;
    color: #000000;
}

.day-block-date[b-mljkfyf5yu] {
    font-size: 15px;
}

.day-block-summary[b-mljkfyf5yu] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
}

    .day-block-summary span[b-mljkfyf5yu] {
        padding: 2px 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(0, 0, 0, 0.08);
        font-weight: 600;
    }


/* =======================
   OPL CARD BASE
   ======================= */

.opl-card[b-mljkfyf5yu] {
    position: relative;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}


/* =======================
   STATUS COLORS
   ======================= */

.opl-card-header[b-mljkfyf5yu] {
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-weight: 600;
}

/* No Iniciada */
.opl-not-started .opl-card-header[b-mljkfyf5yu] {
    background: #e0e0e0;
    color: #000;
}

/* Iniciada */
.opl-started .opl-card-header[b-mljkfyf5yu] {
    background: #e8e9b0;
    color: #000;
}

/* Finalizada */
.opl-finished .opl-card-header[b-mljkfyf5yu] {
    background: #a1d6a2;
    color: #000;
}

/* Pausada */
.opl-paused .opl-card-header[b-mljkfyf5yu] {
    background: #212529;
    color: #fff;
}


/* =======================
   OPL BODY
   ======================= */

.opl-card-body[b-mljkfyf5yu] {
    padding: 7px;
}

.opl-fields[b-mljkfyf5yu] {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.opl-field[b-mljkfyf5yu] {
    flex: 1 1 0;
    min-width: 0;
}

.opl-field-client[b-mljkfyf5yu] {
    flex: 2 1 0;
}

.opl-field-header[b-mljkfyf5yu] {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 2px;
}

.opl-field-value[b-mljkfyf5yu] {
    font-size: 12px;
    font-weight: 500;
    overflow: visible;
    word-break: break-word;
}


/* =======================
   MACHINE COUNTERS
   ======================= */

.opl-field-machines .opl-field-value[b-mljkfyf5yu] {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.opl-machine-counter[b-mljkfyf5yu] {
    min-width: 1.8rem;
    text-align: center;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.12);
}

.opl-machine-notstarted[b-mljkfyf5yu] {
    background: #f5f5f5;
}

.opl-machine-inprogress[b-mljkfyf5yu] {
    background: #fff7e0;
}

.opl-machine-finished[b-mljkfyf5yu] {
    background: #e6ffea;
}


/* =======================
   FLAGS (ICON-ONLY)
   ======================= */

.opl-card-markers.opl-card-markers-header[b-mljkfyf5yu] {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    margin-left: 10px; /* space after OPL/Item */
    max-width: none;
}

.opl-paused .opl-card-markers-header .opl-flag-icon[b-mljkfyf5yu] {
    filter: brightness(1.15);
}

/* Icon-only flags: remove pill background, borders, and circles */
.opl-flag[b-mljkfyf5yu] {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 0; /* icon-only */
    line-height: 1;
    font-weight: normal;
    text-transform: none;
    white-space: nowrap;
}

/* Remove per-flag badge colors/backgrounds */
.opl-flag-stock[b-mljkfyf5yu],
.opl-flag-sn[b-mljkfyf5yu],
.opl-flag-date[b-mljkfyf5yu],
.opl-flag-res[b-mljkfyf5yu],
.opl-flag-noterm[b-mljkfyf5yu] {
    background: transparent;
    border: none;
    color: inherit;
}

/* Force the icon itself to shrink to fit the wrapper */
.opl-flag-icon[b-mljkfyf5yu] {
    width: 20px;
    height: 100%;
    object-fit: contain; /* keeps correct proportions */
    display: block;
}


/* =======================
   ROTURA STOCK GLOBAL
   ======================= */

.rotura-stock-container[b-mljkfyf5yu] {
    margin-left: auto !important;
    margin-right: auto !important;
}

.rotura-stock-table[b-mljkfyf5yu] {
    width: 100%;
    table-layout: auto !important;
}

    .rotura-stock-table th[b-mljkfyf5yu],
    .rotura-stock-table td[b-mljkfyf5yu] {
        text-align: center !important;
        vertical-align: middle !important;
    }

    .rotura-stock-table th[b-mljkfyf5yu] {
        background: #f0f3f7;
        font-weight: 600;
    }


/* =======================
   MISC
   ======================= */

.opl-empty[b-mljkfyf5yu] {
    padding: 8px;
    font-style: italic;
    color: #777;
}

.working-queue-layout-left[b-mljkfyf5yu] {
    position: relative;
}


/* =======================
   CLIENT + STOCK FILTER PANEL
   ======================= */

.working-queue-filters.wq-filters-dropdown[b-mljkfyf5yu] {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1020;
    pointer-events: none;
    display: flex;
    justify-content: flex-start;
    padding: 0 16px;
}

.wq-filters-row[b-mljkfyf5yu] {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    pointer-events: auto;
    max-width: 900px;
    width: 100%;
}

.wq-filter-card[b-mljkfyf5yu],
.wq-client-filter[b-mljkfyf5yu] {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 12px;
    font-size: 13px;
    min-width: 260px;
}

.wq-client-filter-header[b-mljkfyf5yu] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.wq-client-filter-title[b-mljkfyf5yu] {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
}

.wq-client-filter-summary[b-mljkfyf5yu] {
    font-size: 11px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
    text-align: right;
}

.wq-client-filter-menu[b-mljkfyf5yu] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wq-client-filter-menu-actions[b-mljkfyf5yu] {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    margin-bottom: 4px;
}

.wq-filter-btn[b-mljkfyf5yu] {
    border-radius: 999px;
    border: 1px solid #ccc;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
    background: #f5f7fb;
    color: #394867;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

    .wq-filter-btn:hover[b-mljkfyf5yu] {
        background: #e4e8f5;
    }

.wq-filter-btn-secondary[b-mljkfyf5yu] {
    border-color: rgba(57, 72, 103, 0.25);
}

.wq-filter-btn-clear[b-mljkfyf5yu] {
    background: #fbeaea;
    color: #b3261e;
    border-color: rgba(179, 38, 30, 0.35);
}

    .wq-filter-btn-clear:hover[b-mljkfyf5yu] {
        background: #f6d0d0;
    }

.wq-client-filter-list[b-mljkfyf5yu] {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #eee;
}

.wq-filter-empty[b-mljkfyf5yu] {
    font-size: 12px;
    color: #777;
    padding: 2px 0;
    font-style: italic;
}

.wq-client-filter-item[b-mljkfyf5yu] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    cursor: pointer;
    font-size: 13px;
    color: #222;
}

    .wq-client-filter-item input[type="checkbox"][b-mljkfyf5yu] {
        margin: 0;
        cursor: pointer;
    }

.wq-client-filter-item-text[b-mljkfyf5yu] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

@media (max-width: 768px) {
    .wq-filters-row[b-mljkfyf5yu] {
        flex-direction: column;
        max-width: 100%;
    }
}

/* Comentario field: allow wrapping */
.opl-field-comentario[b-mljkfyf5yu] {
    min-width: 0; /* allow flex item to shrink so text can wrap */
}

.opl-field-value-comentario[b-mljkfyf5yu] {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

/* =======================
   MACHINE COLUMN (LEFT)
   ======================= */

.opl-main-row[b-mljkfyf5yu] {
    display: flex;
    gap: 12px;
    align-items: flex-start; /* align content to the top */
}

/* Left side: container stays the same */
.opl-machine-column[b-mljkfyf5yu] {
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* center vertically since we now only have one element */
}

/* New combined color+abbr chip */
.opl-machine-chip[b-mljkfyf5yu] {
    width: 52px;
    height: 36px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
    background: #f0f0f0; /* fallback, overridden by .color-* */
    text-align: center;
    font-size: 16px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

/* You can keep .opl-machine-color / .opl-machine-photo-placeholder if used elsewhere;
   for the tiles they’re no longer needed. */


/* Color marker: small circle using the color-* classes */
.opl-machine-color[b-mljkfyf5yu] {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d0d0d0; /* fallback; overridden by .color-* */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* so image-based colors fill the circle */
    box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
}

/* Photo placeholder (for future machine image) */
.opl-machine-photo-placeholder[b-mljkfyf5yu] {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 1px dashed rgba(0,0,0,0.30);
    background: #f0f0f0 url('/Images/machine-placeholder.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    text-align: center;
    font-size: 11px;
    line-height: 1.1;
    color: #555;
}

/* Small code text inside the placeholder */
.opl-machine-photo-code[b-mljkfyf5yu] {
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Right side: all existing fields stay here */
.opl-fields-column[b-mljkfyf5yu] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Default fallback */
.color-DEFAULT[b-mljkfyf5yu] {
    background-color: #ff00ff;
    color: white;
}

/* ALUMINIO */
.color-ALUMINIO[b-mljkfyf5yu] {
    background-color: #bfc1c2 !important;
    color: black;
}

/* AZUL TIFFANY 325C */
.color-AZUL-TIFFANY-325C[b-mljkfyf5yu] {
    background-color: #02BDB0 !important;
    color: white;
}

/* AZUL + NARANJA split */
.color-AZUL-NARANJA[b-mljkfyf5yu] {
    background: linear-gradient(90deg, #02BDB0 50%, #e7703a 50%) !important;
    color: black;
}

/* BLANCO */
.color-BLANCO[b-mljkfyf5yu] {
    background-image: url('https://maquinas.iberital.com/Images/clr_white_small.png');
    background-size: cover;
    color: black;
}

/* NARANJA */
.color-NARANJA[b-mljkfyf5yu] {
    background-color: #e7703a !important;
    color: black;
}

/* NEGRO */
.color-NEGRO[b-mljkfyf5yu] {
    background-image: url('https://maquinas.iberital.com/Images/clr_black_small.png');
    background-size: cover;
    color: white;
}

/* PARKLEX */
.color-PARKLEX[b-mljkfyf5yu] {
    background-image: url('/Images/Parklex.png');
    background-size: cover;
    color: black;
}

/* ROJO FERRARI */
.color-ROJO-FERRARI-3020[b-mljkfyf5yu] {
    background-color: #DE0000 !important;
    color: white;
}

/* TERRACOTA */
.color-TERRACOTA-2002[b-mljkfyf5yu],
.color-TERRACOTA[b-mljkfyf5yu] {
    background-image: url('https://maquinas.iberital.com/Images/clr_terracota_small.png');
    background-size: cover;
    color: white;
}

/* VERDE AZULADO */
.color-VERDE-AZULADO[b-mljkfyf5yu],
.color-VERDE-AZULADO-6004[b-mljkfyf5yu] {
    background-image: url('https://maquinas.iberital.com/Images/clr_blue_green_small.png');
    background-size: cover;
    color: white;
}

/* ==========================================
   FIXED COLUMN WIDTHS FOR OPL TILE FIELDS
   ========================================== */

/* Cliente — 200px */
.opl-field-client[b-mljkfyf5yu] {
    flex: 0 0 200px;
    max-width: 200px;
}

/* Máquinas — 100px */
.opl-field-machines[b-mljkfyf5yu] {
    flex: 0 0 100px;
    max-width: 100px;
}

/* Horario — 70px */
.opl-field-horario[b-mljkfyf5yu] {
    flex: 0 0 70px;
    max-width: 70px;
}

/* Prod — 50px */
.opl-field-prod[b-mljkfyf5yu] {
    flex: 0 0 50px;
    max-width: 50px;
}

/* Comentario — takes the remaining space */
.opl-field-comentario[b-mljkfyf5yu] {
    flex: 1 1 auto;
    min-width: 0; /* allows wrapping instead of blowing up */
}

.opl-field-inici[b-mljkfyf5yu] {
    flex: 0 0 80px;
    max-width: 80px;
}

/* ===============================
   RESERVAS TABLE – FIXED WIDTHS
   =============================== */

.reservas-table th[b-mljkfyf5yu],
.reservas-table td[b-mljkfyf5yu] {
    white-space: wrap;
    vertical-align: middle;
}

/* Cliente — 300px */
.res-col-cliente[b-mljkfyf5yu] {
    width: 300px;
    max-width: 300px;
}

/* Para nº — 90px */
.res-col-paranum[b-mljkfyf5yu] {
    width: 90px;
    max-width: 90px;
}

/* Cantidad — 50px */
.res-col-cant[b-mljkfyf5yu] {
    width: 50px;
    max-width: 50px;
    text-align: center !important;
}

/* Fecha — 80px */
.res-col-fecha[b-mljkfyf5yu] {
    width: 80px;
    max-width: 80px;
}

/* ===============================
   ROTURA STOCK – FIXED WIDTHS
   =============================== */

.rotura-col-articulo[b-mljkfyf5yu] {
    width: 300px;
    max-width: 300px;
    white-space: normal !important;
    word-break: break-word;
}

.rotura-col-acum[b-mljkfyf5yu] {
    width: 90px;
    max-width: 90px;
    text-align: center !important;
    white-space: wrap;
}

.rotura-col-necesario[b-mljkfyf5yu] {
    width: 90px;
    max-width: 90px;
    text-align: center !important;
    white-space: wrap;
}

.rotura-col-sf[b-mljkfyf5yu] {
    width: 90px;
    max-width: 90px;
    text-align: center !important;
    white-space: wrap;
}

.rotura-col-fecha[b-mljkfyf5yu] {
    width: 110px;
    max-width: 110px;
    text-align: center !important;
    white-space: wrap;
}

/* ---------- COMMENT VISIBILITY ---------- */

/* Base comment cell */
.opl-field-value-comentario[b-mljkfyf5yu] {
    max-width: 245px;
    white-space: pre-wrap; /* keeps line breaks if comment contains them */
    word-break: break-word; /* avoids overflow on long words */
}

    /* Only when there is a comment */
    .opl-field-value-comentario.has-comment[b-mljkfyf5yu] {
        font-weight: 700;
        padding: 6px 8px;
        border-radius: 6px;
        background: rgba(255, 235, 59, 0.22); /* soft highlight */
        border: 1px solid rgba(0, 0, 0, 0.10);
        box-shadow: 0 1px 2px rgba(0,0,0,0.08);
        position: relative;
    }

        /* Left accent bar */
        .opl-field-value-comentario.has-comment[b-mljkfyf5yu]::before {
            content: "";
            position: absolute;
            left: 0;
            top: 6px;
            bottom: 6px;
            width: 4px;
            border-radius: 6px;
            background: rgba(255, 193, 7, 0.95);
        }

/* Subtle red tint on BODY when the OPL has a stock break */
.opl-card.opl-has-stockbreak .opl-card-body[b-mljkfyf5yu] {
    background: rgba(220, 53, 69, 0.08); /* soft red */
}

/* Optional: slightly stronger tint on hover, still subtle */
.opl-card.opl-has-stockbreak:hover .opl-card-body[b-mljkfyf5yu] {
    background: rgba(220, 53, 69, 0.12);
}




/* /Components/Shared/UserBadge.razor.rz.scp.css */
.ubadge[b-s7ml64nayi] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.ubadge-avatar[b-s7ml64nayi] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #f2f2f2;
}

.ubadge-name[b-s7ml64nayi] {
    font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
