@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';

/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-74gfwe6xn6] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-74gfwe6xn6] {
    flex: 1;
}

.sidebar[b-74gfwe6xn6] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-74gfwe6xn6] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-74gfwe6xn6]  a, .top-row[b-74gfwe6xn6]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-74gfwe6xn6]  a:hover, .top-row[b-74gfwe6xn6]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-74gfwe6xn6]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-74gfwe6xn6] {
        justify-content: space-between;
    }

    .top-row[b-74gfwe6xn6]  a, .top-row[b-74gfwe6xn6]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-74gfwe6xn6] {
        flex-direction: row;
    }

    .sidebar[b-74gfwe6xn6] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-74gfwe6xn6] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-74gfwe6xn6]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-74gfwe6xn6], article[b-74gfwe6xn6] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-85wac4s03o] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-85wac4s03o] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-85wac4s03o] {
    font-size: 1.1rem;
}

.bi[b-85wac4s03o] {
    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-85wac4s03o] {
    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-85wac4s03o] {
    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-85wac4s03o] {
    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-85wac4s03o] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-85wac4s03o] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-85wac4s03o] {
        padding-bottom: 1rem;
    }

    .nav-item[b-85wac4s03o]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-85wac4s03o]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-85wac4s03o]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-85wac4s03o] {
        display: none;
    }

    .collapse[b-85wac4s03o] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-85wac4s03o] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Articulos.razor.rz.scp.css */
/* Modal sizing and scroll behavior for Articulos editor */
.app-modal-dialog[b-y5uhkgc3oz] {
  max-width: 900px; /* larger editor */
}

.app-modal-content[b-y5uhkgc3oz] {
  height: auto;
}

.app-modal-body[b-y5uhkgc3oz] {
  max-height: 70vh;
  overflow-y: auto;
}

.app-modal-footer[b-y5uhkgc3oz] {
  position: sticky;
  bottom: 0;
  background: var(--bs-body-bg);
}
/* /Pages/CajaConsolidado.razor.rz.scp.css */
:root[b-7fwix9vo6b] {}

/* Stacked table on small screens */
@media (max-width: 576px) {
  .responsive-table thead[b-7fwix9vo6b] {
    display: none;
  }
  .responsive-table tbody tr[b-7fwix9vo6b],
  .responsive-table tfoot tr[b-7fwix9vo6b] {
    display: block;
    border-top: 1px solid var(--bs-border-color);
    margin-bottom: .5rem;
  }
  .responsive-table tbody tr td[b-7fwix9vo6b],
  .responsive-table tfoot tr td[b-7fwix9vo6b] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding-left: .5rem;
    padding-right: .5rem;
  }
  .responsive-table tbody tr td[b-7fwix9vo6b]::before,
  .responsive-table tfoot tr td[b-7fwix9vo6b]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--bs-body-color);
    opacity: .85;
  }
  .responsive-table tfoot tr[b-7fwix9vo6b] {
    background: var(--bs-primary-bg-subtle);
    font-weight: 700;
    border: 1px solid var(--bs-primary-border-subtle);
  }
}

/* Dark theme adjustments (match app theme attribute) */
:root[data-theme="dark"] .responsive-table[b-7fwix9vo6b] {
  --pv-border: rgba(255, 255, 255, .15);
  --pv-row: rgba(255, 255, 255, .04);
  --pv-head: rgba(255, 255, 255, .08);
}
:root[data-theme="dark"] .responsive-table[b-7fwix9vo6b] {
  color: var(--bs-body-color);
  border-color: var(--pv-border);
}
:root[data-theme="dark"] .responsive-table thead th[b-7fwix9vo6b] {
  background-color: var(--pv-head);
  color: var(--bs-emphasis-color, var(--app-fg));
  border-color: var(--pv-border);
}
:root[data-theme="dark"] .responsive-table tbody tr[b-7fwix9vo6b] {
  background-color: var(--pv-row);
}
:root[data-theme="dark"] .responsive-table tbody tr + tr[b-7fwix9vo6b] {
  border-top: 1px solid var(--pv-border);
}
:root[data-theme="dark"] .responsive-table td[b-7fwix9vo6b],
:root[data-theme="dark"] .responsive-table th[b-7fwix9vo6b] {
  border-color: var(--pv-border);
}
:root[data-theme="dark"] .responsive-table tfoot tr[b-7fwix9vo6b] {
  background: var(--pv-head);
  border-top: 1px solid var(--pv-border);
}

/* Dark theme stacked mode */
@media (max-width: 576px) {
  :root[data-theme="dark"] .responsive-table tbody tr[b-7fwix9vo6b] {
    background-color: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: .35rem;
  }
  :root[data-theme="dark"] .responsive-table tbody tr td[b-7fwix9vo6b]::before {
    color: var(--bs-emphasis-color, var(--app-fg));
    opacity: .95;
  }
  :root[data-theme="dark"] .responsive-table tfoot tr[b-7fwix9vo6b] {
    background-color: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
  }
}

/* Override Bootstrap contextual classes in dark for better contrast */
:root[data-theme="dark"] .responsive-table tr.table-success[b-7fwix9vo6b] {
  background-color: rgba(25, 135, 84, .25);
}
:root[data-theme="dark"] .responsive-table tr.table-danger[b-7fwix9vo6b] {
  background-color: rgba(220, 53, 69, .25);
}
:root[data-theme="dark"] .responsive-table tr.table-primary[b-7fwix9vo6b] {
  background-color: rgba(13, 110, 253, .35);
}

/* High contrast mode */
@media (forced-colors: active) {
  .responsive-table tbody tr td[b-7fwix9vo6b]::before,
  .responsive-table tfoot tr td[b-7fwix9vo6b]::before {
    color: CanvasText;
  }
}

/* Dark mode form readability fixes in this page */
:root[data-theme="dark"] .form-label[b-7fwix9vo6b],
:root[data-theme="dark"] label[b-7fwix9vo6b] {
  color: var(--bs-emphasis-color, var(--app-fg));
}

/* Improve date inputs appearance in dark theme (calendar button was too dark) */
:root[data-theme="dark"] input[type="date"][b-7fwix9vo6b] {
  color-scheme: dark; /* let the UA use dark native controls */
}

/* Chromium/WebKit calendar icon */
:root[data-theme="dark"] input[type="date"][b-7fwix9vo6b]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.2); /* turn the black icon light */
  opacity: .9;
}
:root[data-theme="dark"] input[type="date"][b-7fwix9vo6b]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Edge/Chromium clear/spin buttons (make sure they are visible) */
:root[data-theme="dark"] input[type="date"][b-7fwix9vo6b]::-webkit-clear-button,
:root[data-theme="dark"] input[type="date"][b-7fwix9vo6b]::-webkit-inner-spin-button {
  filter: invert(1);
}
/* /Pages/CajaTiposMov.razor.rz.scp.css */
:root[b-ljbxaf5gov] {
}

/* Ensure the dialog uses content height and a reasonable max width */
.app-modal-dialog[b-ljbxaf5gov] {
  max-width: 600px;
}

/* Make modal content adapt to body content without forcing full viewport height */
.app-modal-content[b-ljbxaf5gov] {
  height: auto;
}

/* Allow modal body to size naturally and scroll only if needed */
.app-modal-body[b-ljbxaf5gov] {
  max-height: 70vh;
  overflow-y: auto;
}
/* /Pages/CarteraClientes.razor.rz.scp.css */
/* Mejora el contraste del bot�n de cerrar en el modal de detalle en modo oscuro (scoped al componente) */

/* Soporta tema oscuro controlado por la app */
:root[data-theme="dark"] .modal-header .btn-close[b-h00f5wu033] {
 filter: invert(1) grayscale(100%) brightness(190%) contrast(200%);
 opacity:1;
}
:root[data-theme="dark"] .modal-header .btn-close:hover[b-h00f5wu033] { opacity:0.85; }
:root[data-theme="dark"] .modal-header .btn-close:focus-visible[b-h00f5wu033] {
 outline: none;
 box-shadow: 0 0.25rem rgba(255,255,255,0.35);
}

/* Soporta tema oscuro del sistema si no se usa data-theme */
@media (prefers-color-scheme: dark) {
 .modal-header .btn-close[b-h00f5wu033] {
 filter: invert(1) grayscale(100%) brightness(190%) contrast(200%);
 opacity:1;
 }
 .modal-header .btn-close:hover[b-h00f5wu033] { opacity:0.85; }
 .modal-header .btn-close:focus-visible[b-h00f5wu033] {
 outline: none;
 box-shadow: 0 0.25rem rgba(255,255,255,0.35);
 }
}
/* /Pages/Compras/Devoluciones.razor.rz.scp.css */
.table th[b-wys2d8a6iq], .table td[b-wys2d8a6iq] { vertical-align: middle; }
.badge.bg-info[b-wys2d8a6iq] { background-color: #0dcaf0 !important; }
.badge.bg-success[b-wys2d8a6iq] { background-color: #198754 !important; }
.badge.bg-secondary[b-wys2d8a6iq] { background-color: #6c757d !important; }

/* Improve modal backdrop perception */
.modal.d-block[b-wys2d8a6iq] { backdrop-filter: blur(1px); }

/* Tighten small inputs in rows */
input.form-control-sm.text-end[b-wys2d8a6iq] { padding-right: .5rem; }

/* Dark mode tweaks */
:root[data-theme='dark'] .table[b-wys2d8a6iq] { color: #ddd; }
:root[data-theme='dark'] .table thead th[b-wys2d8a6iq] { color: #fff; }
/* /Pages/Compras/OrdenEditar.razor.rz.scp.css */
:root[data-theme='dark'] .form-select[b-oq9f1bsd17]{
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
  border-color: var(--bs-border-color) !important;
  color-scheme: dark;
}

:root[data-theme='dark'] .form-select:disabled[b-oq9f1bsd17]{
  background-color: var(--bs-secondary-bg) !important;
  color: var(--bs-secondary-color) !important;
  border-color: var(--bs-border-color) !important;
}

/* Fix select and inputs on dark theme for this page (scoped) */
:root[data-theme='dark'] .card .form-select[b-oq9f1bsd17],
:root[data-theme='dark'] .card .form-control[b-oq9f1bsd17],
:root[data-theme='dark'] .card .input-group-text[b-oq9f1bsd17]{
  background-color: color-mix(in srgb, var(--app-card) 90%, var(--app-bg) 10%) !important;
  color: var(--app-fg) !important;
  border-color: var(--app-border) !important;
}

/* Extend to table inputs outside card (detalle) */
:root[data-theme='dark'] table .form-control[b-oq9f1bsd17],
:root[data-theme='dark'] table .input-group-text[b-oq9f1bsd17],
:root[data-theme='dark'] table .form-select[b-oq9f1bsd17]{
  background-color: color-mix(in srgb, var(--app-card) 92%, var(--app-bg) 8%) !important;
  color: var(--app-fg) !important;
  border-color: var(--app-border) !important;
}

:root[data-theme='dark'] table .form-control:disabled[b-oq9f1bsd17],
:root[data-theme='dark'] table .form-select:disabled[b-oq9f1bsd17]{
  background-color: color-mix(in srgb, var(--app-card) 80%, var(--app-bg) 20%) !important;
  color: var(--bs-secondary-color) !important;
  border-color: var(--app-border) !important;
  opacity: 1 !important; /* evitar demasiado claro */
}

/* Ensure the dropdown list items are readable in dark */
:root[data-theme='dark'] .card select.form-select option[b-oq9f1bsd17],
:root[data-theme='dark'] .card select.form-select optgroup[b-oq9f1bsd17]{
  background-color: var(--app-card) !important;
  color: var(--app-fg) !important;
}

/* Focus state consistent in dark */
:root[data-theme='dark'] .card .form-select:focus[b-oq9f1bsd17],
:root[data-theme='dark'] .card .form-control:focus[b-oq9f1bsd17],
:root[data-theme='dark'] table .form-select:focus[b-oq9f1bsd17],
:root[data-theme='dark'] table .form-control:focus[b-oq9f1bsd17]{
  border-color: var(--app-accent) !important;
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--app-accent) 20%, transparent) !important;
}

/* Disabled state contrast inside cards */
:root[data-theme='dark'] .card .form-select:disabled[b-oq9f1bsd17],
:root[data-theme='dark'] .card .form-control:disabled[b-oq9f1bsd17]{
  background-color: color-mix(in srgb, var(--app-card) 85%, var(--app-bg) 15%) !important;
  color: var(--bs-secondary-color) !important;
  border-color: var(--app-border) !important;
}
/* /Pages/Dashboard.razor.rz.scp.css */
.filter-bar[b-0cqstpcru2]{top:56px; z-index:1010}
.kpi-card .kpi-val[b-0cqstpcru2]{font-weight:600}
.xsmall[b-0cqstpcru2]{font-size:.75rem}
.break-anywhere[b-0cqstpcru2]{overflow-wrap:anywhere; word-break:break-word}
.chart-box[b-0cqstpcru2]{position:relative;width:100%}
.chart-box--sm[b-0cqstpcru2]{height:220px}
.chart-box--md[b-0cqstpcru2]{height:260px}
.chart-box--lg[b-0cqstpcru2]{height:300px}
@media (max-width:576px){
 .chart-box--sm[b-0cqstpcru2]{height:200px}
 .chart-box--md[b-0cqstpcru2]{height:220px}
 .chart-box--lg[b-0cqstpcru2]{height:260px}

  /* Rentabilidad: m�s columnas en m�vil */
  .table[b-0cqstpcru2]{font-size:.78rem}
  .table td[b-0cqstpcru2],.table th[b-0cqstpcru2]{padding:.25rem .35rem}
  .table td.text-end[b-0cqstpcru2],.table th.text-end[b-0cqstpcru2]{white-space:nowrap}
}
/* /Pages/PaymentTerms.razor.rz.scp.css */
:root[b-xy5tu9pijq] {
}

.app-modal-dialog[b-xy5tu9pijq] {
  max-width: 600px;
}

.app-modal-content[b-xy5tu9pijq] {
  height: auto;
}

.app-modal-body[b-xy5tu9pijq] {
  max-height: 70vh;
  overflow-y: auto;
}
/* /Pages/Remisiones.razor.rz.scp.css */
/* Remisiones.razor.css - estilos scoped para el componente Remisiones */

/**** M�s separaci�n solo en pantallas t�ctiles ****/
@media (pointer: coarse) {
 .top-actions[b-vjklatgjhg] { gap:1.5rem !important; } /* equivalente a gap-4 */
 .top-actions .vr[b-vjklatgjhg] { margin-left: .75rem !important; margin-right: .75rem !important; }
}

/* Ajustes responsive para botones de art�culos en Remisiones */
.product-card[b-vjklatgjhg] { padding: .35rem .5rem; }
.product-card img[b-vjklatgjhg] { width:34px !important; height:34px !important; }
.product-name[b-vjklatgjhg] { font-size: .95rem; line-height:1.1; }

/* En pantallas peque�as reducir m�s el tama�o */
@media (max-width:576px) {
 .product-card[b-vjklatgjhg] { padding: .25rem .4rem; }
 .product-card[b-vjklatgjhg] { width:112px !important; /* caben m�s por fila en m�viles */ }
 .product-card img[b-vjklatgjhg] { width:30px !important; height:30px !important; }
 .product-name[b-vjklatgjhg] { font-size: .85rem; }
}

@media (max-width:380px) {
 .product-card[b-vjklatgjhg] { width:100px !important; }
 .product-name[b-vjklatgjhg] { font-size: .8rem; }
}

/* Modo oscuro: barra de tabs ajustada a tono Bootstrap dark y mejor contraste */
:global(html[data-theme='dark']) .remisiones-tabs-wrapper[b-vjklatgjhg] {
 background-color: var(--bs-dark) !important; /* normalmente #212529 */
 border-bottom: 1px solid rgba(255,255,255,0.06);
}
:global(html[data-theme='dark']) .remisiones-tabs-wrapper .nav-pills .nav-link[b-vjklatgjhg] {
 color: #cfd3d6;
 background-color: transparent;
 transition: background-color .15s ease, color .15s ease;
}
:global(html[data-theme='dark']) .remisiones-tabs-wrapper .nav-pills .nav-link:hover[b-vjklatgjhg] {
 background-color: rgba(255,255,255,0.08);
 color: #ffffff;
}
:global(html[data-theme='dark']) .remisiones-tabs-wrapper .nav-pills .nav-link.active[b-vjklatgjhg] {
 background-color: #2d3236; /* un poco m�s claro que var(--bs-dark) */
 color: #fff;
 box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
/* /Shared/IconPicker.razor.rz.scp.css */
.icon-picker .icon-btn[b-aa58nv3n46]{ 
  display:flex; align-items:center; gap:.5rem; width:100%;
  background-color: color-mix(in srgb, var(--app-card) 92%, var(--app-bg) 8%);
  color: var(--app-fg);
  border: 1px solid var(--app-border);
  border-radius: .35rem;
  box-shadow: none;
}
.icon-picker .icon-btn:hover[b-aa58nv3n46],
.icon-picker .icon-btn:focus[b-aa58nv3n46]{ 
  background-color: color-mix(in srgb, var(--app-accent) 12%, transparent);
  border-color: var(--app-accent);
  color: var(--app-fg);
}
.icon-picker .icon-btn:focus[b-aa58nv3n46]{ 
  outline: none;
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--app-accent) 20%, transparent);
}
.icon-picker .icon-btn i[b-aa58nv3n46]{ width:1.25rem; text-align:center; }

/* Ajusta el badge para buen contraste en ambos temas */
.icon-picker .badge.bg-secondary[b-aa58nv3n46]{
  background-color: color-mix(in srgb, var(--app-fg) 12%, transparent) !important;
  color: var(--app-fg) !important;
  border: 1px solid var(--app-border);
}
