/* Victor Scientific native UI styles. */

/* Restore the Bootstrap-era border-box baseline used by the storefront grid.
   Keep the reset scoped to the public storefront; Admin has its own foundation. */
:where(body:not(.vsc-premium-admin), body:not(.vsc-premium-admin) *, body:not(.vsc-premium-admin) *::before, body:not(.vsc-premium-admin) *::after) {
    box-sizing: border-box;
}

:root {
    --vsc-ui-border: #dbe3ed;
    --vsc-ui-muted: #64748b;
    --vsc-ui-ink: #172033;
    --vsc-ui-primary: #0b3b82;
    --vsc-ui-surface: #ffffff;
    --vsc-ui-shadow: 0 12px 34px rgba(15, 23, 42, .12);
}
.vsc-searchable-select { display: grid; gap: 6px; min-width: 0; }
.vsc-searchable-select__search {
    display: block; width: 100%; min-height: 36px; padding: 7px 10px;
    border: 1px solid var(--vsc-ui-border); border-radius: 8px;
    background: #fff; color: var(--vsc-ui-ink); font: inherit; font-size: 13px;
}
.vsc-searchable-select__search:focus,
.vsc-searchable-select__native:focus {
    outline: 0; border-color: #4c83c6; box-shadow: 0 0 0 3px rgba(11, 59, 130, .12);
}
.vsc-searchable-select__native { width: 100%; max-width: 100%; }
.vsc-searchable-select__native[multiple] { min-height: 112px; }

.vsc-rich-editor { width: 100%; border: 1px solid var(--vsc-ui-border); border-radius: 10px; background: #fff; overflow: hidden; }
.vsc-rich-editor__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 7px; border-bottom: 1px solid var(--vsc-ui-border); background: #f8fafc; }
.vsc-rich-editor__tool {
    min-height: 31px; padding: 4px 9px; border: 1px solid #dbe3ed; border-radius: 6px;
    background: #fff; color: #334155; font: inherit; font-size: 12px; cursor: pointer;
}
.vsc-rich-editor__tool:hover { border-color: #9db6d7; background: #eff6ff; }
.vsc-rich-editor__surface { min-height: 190px; padding: 13px 15px; color: #1f2937; line-height: 1.65; outline: none; overflow-wrap: anywhere; }
.vsc-rich-editor__surface:focus { box-shadow: inset 0 0 0 2px rgba(11, 59, 130, .10); }
.vsc-rich-editor__surface:empty::before { content: "Write content…"; color: #94a3b8; pointer-events: none; }
.vsc-rich-editor__surface img { max-width: 100%; height: auto; }
.vsc-rich-editor__surface table { width: 100%; border-collapse: collapse; }
.vsc-rich-editor__surface td, .vsc-rich-editor__surface th { border: 1px solid #cbd5e1; padding: 6px; }
.vsc-rich-editor__source { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.vsc-data-grid { width: 100%; min-width: 0; }
.vsc-data-grid__toolbar, .vsc-data-grid__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 0; }
.vsc-data-grid__search { flex: 1 1 210px; width: min(100%, 320px); min-height: 38px; padding: 7px 11px; border: 1px solid var(--vsc-ui-border); border-radius: 8px; background: #fff; color: var(--vsc-ui-ink); }
.vsc-data-grid__page-size { min-height: 38px; padding: 6px 9px; border: 1px solid var(--vsc-ui-border); border-radius: 8px; background: #fff; color: var(--vsc-ui-ink); }
.vsc-data-grid__action, .vsc-data-grid__page { min-height: 34px; padding: 6px 10px; border: 1px solid var(--vsc-ui-border); border-radius: 7px; background: #fff; color: #334155; font: inherit; font-size: 12px; cursor: pointer; }
.vsc-data-grid__action:hover, .vsc-data-grid__page:hover:not(:disabled) { border-color: #8aa9d0; background: #f1f6fc; }
.vsc-data-grid__page:disabled { opacity: .45; cursor: not-allowed; }
.vsc-data-grid__page.is-active { border-color: var(--vsc-ui-primary); background: var(--vsc-ui-primary); color: #fff; }
.vsc-data-grid__summary { color: var(--vsc-ui-muted); font-size: 12px; }
.vsc-data-grid__pagination { display: flex; flex-wrap: wrap; gap: 5px; }
.vsc-data-grid__sortable { cursor: pointer; user-select: none; }
.vsc-data-grid__sortable[aria-sort="ascending"]::after { content: " ↑"; }
.vsc-data-grid__sortable[aria-sort="descending"]::after { content: " ↓"; }
.vsc-data-grid__table { width: 100%; }
.vsc-data-grid__table tr[hidden] { display: none !important; }

.vsc-native-switch {
    appearance: none; -webkit-appearance: none; position: relative; display: inline-block;
    width: 42px; min-width: 42px; height: 24px; margin: 0; vertical-align: middle;
    border: 1px solid #cbd5e1; border-radius: 999px; background: #cbd5e1;
    cursor: pointer; transition: background .18s ease, border-color .18s ease;
}
.vsc-native-switch::before {
    content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18);
    transition: transform .18s ease;
}
.vsc-native-switch:checked { background: #16a34a; border-color: #16a34a; }
.vsc-native-switch:checked::before { transform: translateX(18px); }
.vsc-native-switch:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }

.modal { display: none; position: fixed; inset: 0; z-index: 1055; overflow: auto; outline: 0; }
.modal.show { display: block; }
.modal-backdrop, .vsc-modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(15, 23, 42, .48); opacity: 0; transition: opacity .15s ease; }
.vsc-modal-backdrop.is-visible { opacity: 1; }
.vsc-modal-open { overflow: hidden; }
.modal-dialog { position: relative; width: auto; max-width: min(640px, calc(100% - 28px)); margin: 7vh auto 24px; pointer-events: none; }
.modal-content { position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; background: #fff; border: 1px solid rgba(15,23,42,.12); border-radius: 14px; box-shadow: var(--vsc-ui-shadow); }
.modal-header, .modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e5eaf1; }
.modal-footer { justify-content: flex-end; border-top: 1px solid #e5eaf1; border-bottom: 0; }
.modal-body { padding: 18px; }
.collapse { display: none; }
.collapse.show { display: block; }
.dropdown-menu { display: none; }
.dropdown-menu.show { display: block; }
.accordion-button { cursor: pointer; }
.vsc-confirm-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; color: var(--vsc-ui-ink); box-shadow: 0 24px 70px rgba(15,23,42,.28); }
.vsc-confirm-dialog::backdrop { background: rgba(15,23,42,.5); backdrop-filter: blur(2px); }
.vsc-confirm-dialog__panel { padding: 22px; }
.vsc-confirm-dialog h2 { margin: 0 0 9px; font-size: 18px; font-weight: 750; }
.vsc-confirm-dialog p { margin: 0; color: var(--vsc-ui-muted); line-height: 1.55; }
.vsc-confirm-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.vsc-confirm-dialog__actions button { min-height: 38px; padding: 8px 13px; border: 1px solid var(--vsc-ui-border); border-radius: 8px; background: #fff; color: #334155; cursor: pointer; }
.vsc-confirm-dialog__actions .vsc-confirm-dialog__ok { border-color: var(--vsc-ui-primary); background: var(--vsc-ui-primary); color: #fff; }
.vsc-confirm-dialog__actions .vsc-confirm-dialog__ok.is-danger { border-color: #dc2626; background: #dc2626; }

.vsc-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.vsc-icon--star { fill: currentColor; }
.vsc-icon--star-half { fill: none; }
.vsc-icon--spin { animation: vsc-icon-spin .9s linear infinite; }
@keyframes vsc-icon-spin { to { transform: rotate(360deg); } }

@media print {
    .vsc-data-grid__toolbar, .vsc-data-grid__footer { display: none !important; }
    .vsc-data-grid__table tr[hidden] { display: table-row !important; }
}

/* Small first-party grid/form utility layer for the storefront. */
body:not(.vsc-premium-admin) .container { width: 100%; margin-inline: auto; padding-inline: 12px; }
body:not(.vsc-premium-admin) .container-fluid { width: 100%; padding-inline: 12px; }
body:not(.vsc-premium-admin) .row { display: flex; flex-wrap: wrap; margin-inline: -12px; }
body:not(.vsc-premium-admin) .row > * { box-sizing: border-box; flex-shrink: 0; max-width: 100%; padding-inline: 12px; }
/* Default full-width row children only; :where keeps this fallback below every explicit .col-* width. */
:where(body:not(.vsc-premium-admin) .row > *) { width: 100%; }
body:not(.vsc-premium-admin) .col-12 { width: 100%; }
body:not(.vsc-premium-admin) .col-6 { width: 50%; }
body:not(.vsc-premium-admin) .d-flex { display: flex !important; }
body:not(.vsc-premium-admin) .d-inline-flex { display: inline-flex !important; }
body:not(.vsc-premium-admin) .d-inline { display: inline !important; }
body:not(.vsc-premium-admin) .d-block { display: block !important; }
body:not(.vsc-premium-admin) .d-none { display: none !important; }
body:not(.vsc-premium-admin) .flex-wrap { flex-wrap: wrap !important; }
body:not(.vsc-premium-admin) .align-items-center { align-items: center !important; }
body:not(.vsc-premium-admin) .align-items-start { align-items: flex-start !important; }
body:not(.vsc-premium-admin) .justify-content-center { justify-content: center !important; }
body:not(.vsc-premium-admin) .justify-content-between { justify-content: space-between !important; }
body:not(.vsc-premium-admin) .justify-content-end { justify-content: flex-end !important; }
body:not(.vsc-premium-admin) .w-100 { width: 100% !important; }
body:not(.vsc-premium-admin) .h-100 { height: 100% !important; }
body:not(.vsc-premium-admin) .text-center { text-align: center !important; }
body:not(.vsc-premium-admin) .text-end { text-align: right !important; }
body:not(.vsc-premium-admin) .text-start { text-align: left !important; }
body:not(.vsc-premium-admin) .text-danger { color: #dc3545 !important; }
body:not(.vsc-premium-admin) .text-success { color: #198754 !important; }
body:not(.vsc-premium-admin) .text-muted { color: #6c757d !important; }
body:not(.vsc-premium-admin) .fw-bold { font-weight: 700 !important; }
body:not(.vsc-premium-admin) .fw-semibold { font-weight: 600 !important; }
body:not(.vsc-premium-admin) .small { font-size: .875em; }
body:not(.vsc-premium-admin) .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
body:not(.vsc-premium-admin) .position-relative { position: relative !important; }
body:not(.vsc-premium-admin) .position-absolute { position: absolute !important; }
body:not(.vsc-premium-admin) .overflow-hidden { overflow: hidden !important; }
body:not(.vsc-premium-admin) .border { border: 1px solid #dee2e6 !important; }
body:not(.vsc-premium-admin) .rounded { border-radius: .375rem !important; }
body:not(.vsc-premium-admin) .rounded-pill { border-radius: 50rem !important; }
body:not(.vsc-premium-admin) .gap-1 { gap: .25rem !important; }
body:not(.vsc-premium-admin) .gap-2 { gap: .5rem !important; }
body:not(.vsc-premium-admin) .gap-3 { gap: 1rem !important; }
body:not(.vsc-premium-admin) .gap-4 { gap: 1.5rem !important; }
body:not(.vsc-premium-admin) .mb-0 { margin-bottom: 0 !important; }
body:not(.vsc-premium-admin) .mb-1 { margin-bottom: .25rem !important; }
body:not(.vsc-premium-admin) .mb-2 { margin-bottom: .5rem !important; }
body:not(.vsc-premium-admin) .mb-3 { margin-bottom: 1rem !important; }
body:not(.vsc-premium-admin) .mb-4 { margin-bottom: 1.5rem !important; }
body:not(.vsc-premium-admin) .mt-0 { margin-top: 0 !important; }
body:not(.vsc-premium-admin) .mt-1 { margin-top: .25rem !important; }
body:not(.vsc-premium-admin) .mt-2 { margin-top: .5rem !important; }
body:not(.vsc-premium-admin) .mt-3 { margin-top: 1rem !important; }
body:not(.vsc-premium-admin) .mt-4 { margin-top: 1.5rem !important; }
body:not(.vsc-premium-admin) .px-3 { padding-inline: 1rem !important; }
body:not(.vsc-premium-admin) .px-4 { padding-inline: 1.5rem !important; }
body:not(.vsc-premium-admin) .py-2 { padding-block: .5rem !important; }
body:not(.vsc-premium-admin) .py-3 { padding-block: 1rem !important; }
body:not(.vsc-premium-admin) .form-group { margin-bottom: 1rem; }
body:not(.vsc-premium-admin) .form-label { display: inline-block; margin-bottom: .45rem; font-weight: 600; }
body:not(.vsc-premium-admin) .form-control,
body:not(.vsc-premium-admin) .form-select { display: block; width: 100%; min-height: 40px; padding: .48rem .75rem; border: 1px solid #ced4da; border-radius: .5rem; background-color: #fff; color: #212529; font: inherit; }
body:not(.vsc-premium-admin) textarea.form-control { min-height: 96px; }
body:not(.vsc-premium-admin) .form-check { display: flex; align-items: flex-start; gap: .5rem; min-height: 1.5rem; margin-bottom: .5rem; }
body:not(.vsc-premium-admin) .form-check-input { width: 1rem; height: 1rem; margin-top: .2rem; }
body:not(.vsc-premium-admin) .form-check-label { line-height: 1.45; }
body:not(.vsc-premium-admin) .invalid-feedback { display: block; margin-top: .25rem; color: #dc3545; font-size: .875em; }
body:not(.vsc-premium-admin) .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 38px; padding: .48rem .85rem; border: 1px solid transparent; border-radius: .5rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
body:not(.vsc-premium-admin) .btn-primary { color: #fff; background: #0b3b82; border-color: #0b3b82; }
body:not(.vsc-premium-admin) .btn-outline-primary { color: #0b3b82; background: transparent; border-color: #0b3b82; }
body:not(.vsc-premium-admin) .btn-success { color: #fff; background: #198754; border-color: #198754; }
body:not(.vsc-premium-admin) .btn-danger { color: #fff; background: #dc3545; border-color: #dc3545; }
body:not(.vsc-premium-admin) .btn-warning { color: #212529; background: #ffc107; border-color: #ffc107; }
body:not(.vsc-premium-admin) .btn-sm { min-height: 31px; padding: .25rem .55rem; font-size: .875rem; }
body:not(.vsc-premium-admin) .btn-lg { min-height: 46px; padding: .65rem 1.1rem; font-size: 1.1rem; }
body:not(.vsc-premium-admin) .alert { position: relative; padding: .85rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: .5rem; }
body:not(.vsc-premium-admin) .alert-danger { color: #842029; background: #f8d7da; border-color: #f5c2c7; }
body:not(.vsc-premium-admin) .alert-success { color: #0f5132; background: #d1e7dd; border-color: #badbcc; }
body:not(.vsc-premium-admin) .table { width: 100%; border-collapse: collapse; color: inherit; vertical-align: top; }
body:not(.vsc-premium-admin) .table th, body:not(.vsc-premium-admin) .table td { padding: .55rem .65rem; border-bottom: 1px solid #dee2e6; }
body:not(.vsc-premium-admin) .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body:not(.vsc-premium-admin) .card { background: #fff; border: 1px solid #e5e7eb; border-radius: .8rem; }
body:not(.vsc-premium-admin) .card-body { padding: 1rem; }
body:not(.vsc-premium-admin) .card-header { padding: .85rem 1rem; border-bottom: 1px solid #e5e7eb; font-weight: 650; }
@media (min-width: 576px) {
    body:not(.vsc-premium-admin) .container { max-width: 540px; }
    body:not(.vsc-premium-admin) .col-sm-2 { width: 16.666667%; }
    body:not(.vsc-premium-admin) .col-sm-3 { width: 25%; }
    body:not(.vsc-premium-admin) .col-sm-4 { width: 33.333333%; }
    body:not(.vsc-premium-admin) .col-sm-5 { width: 41.666667%; }
    body:not(.vsc-premium-admin) .col-sm-6 { width: 50%; }
    body:not(.vsc-premium-admin) .col-sm-7 { width: 58.333333%; }
    body:not(.vsc-premium-admin) .col-sm-8 { width: 66.666667%; }
    body:not(.vsc-premium-admin) .col-sm-9 { width: 75%; }
    body:not(.vsc-premium-admin) .col-sm-10 { width: 83.333333%; }
    body:not(.vsc-premium-admin) .col-sm-12 { width: 100%; }
}
@media (min-width: 768px) {
    body:not(.vsc-premium-admin) .container { max-width: 720px; }
    body:not(.vsc-premium-admin) .col-md-2 { width: 16.666667%; }
    body:not(.vsc-premium-admin) .col-md-3 { width: 25%; }
    body:not(.vsc-premium-admin) .col-md-4 { width: 33.333333%; }
    body:not(.vsc-premium-admin) .col-md-5 { width: 41.666667%; }
    body:not(.vsc-premium-admin) .col-md-6 { width: 50%; }
    body:not(.vsc-premium-admin) .col-md-8 { width: 66.666667%; }
    body:not(.vsc-premium-admin) .col-md-9 { width: 75%; }
    body:not(.vsc-premium-admin) .col-md-12 { width: 100%; }
}
@media (min-width: 992px) {
    body:not(.vsc-premium-admin) .container { max-width: 960px; }
    body:not(.vsc-premium-admin) .col-lg-3 { width: 25%; }
    body:not(.vsc-premium-admin) .col-lg-4 { width: 33.333333%; }
    body:not(.vsc-premium-admin) .col-lg-5 { width: 41.666667%; }
    body:not(.vsc-premium-admin) .col-lg-6 { width: 50%; }
    body:not(.vsc-premium-admin) .col-lg-7 { width: 58.333333%; }
    body:not(.vsc-premium-admin) .col-lg-8 { width: 66.666667%; }
    body:not(.vsc-premium-admin) .col-lg-9 { width: 75%; }
    body:not(.vsc-premium-admin) .col-lg-10 { width: 83.333333%; }
    body:not(.vsc-premium-admin) .col-lg-12 { width: 100%; }
}
@media (min-width: 1200px) {
    body:not(.vsc-premium-admin) .container { max-width: 1140px; }
    body:not(.vsc-premium-admin) .col-xl-4 { width: 33.333333%; }
    body:not(.vsc-premium-admin) .col-xl-6 { width: 50%; }
    body:not(.vsc-premium-admin) .col-xl-8 { width: 66.666667%; }
    body:not(.vsc-premium-admin) .col-xl-9 { width: 75%; }
}
@media (min-width: 1400px) {
    body:not(.vsc-premium-admin) .container { max-width: 1320px; }
}
@media (prefers-reduced-motion: reduce) {
    .vsc-rich-editor__tool, .vsc-data-grid__page, .vsc-searchable-select__search { transition: none !important; }
}


/* Native pagination */
.vsc-pagination-wrap { display: flex; justify-content: center; width: 100%; margin: 18px 0; }
.vsc-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.vsc-pagination li a, .vsc-pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 6px 11px; border: 1px solid #dbe3ed; border-radius: 8px; background: #fff; color: #334155; text-decoration: none; font-size: 13px; }
.vsc-pagination li.is-active span { border-color: var(--vsc-ui-primary); background: var(--vsc-ui-primary); color: #fff; }
.vsc-pagination li.is-disabled span { opacity: .45; }
@media (max-width: 575.98px) { .vsc-pagination li a, .vsc-pagination li span { min-width: 32px; min-height: 32px; padding: 5px 8px; } }

body:not(.vsc-premium-admin) .mx-auto { margin-inline: auto !important; }
body:not(.vsc-premium-admin) .m-auto { margin: auto !important; }
body:not(.vsc-premium-admin) .text-left { text-align: left !important; }
body:not(.vsc-premium-admin) .text-right { text-align: right !important; }
body:not(.vsc-premium-admin) .text-primary { color: #0b3b82 !important; }
body:not(.vsc-premium-admin) .text-reset { color: inherit !important; }
body:not(.vsc-premium-admin) .flex-grow-1 { flex-grow: 1 !important; }
body:not(.vsc-premium-admin) .d-grid { display: grid !important; }
body:not(.vsc-premium-admin) .btn-block { display: flex; width: 100%; }
body:not(.vsc-premium-admin) .bg-cover { background-size: cover !important; }
body:not(.vsc-premium-admin) .bg-center { background-position: center !important; }
body:not(.vsc-premium-admin) .p-4 { padding: 1.5rem !important; }
body:not(.vsc-premium-admin) .py-5 { padding-block: 3rem !important; }
body:not(.vsc-premium-admin) .mb-5 { margin-bottom: 3rem !important; }
body:not(.vsc-premium-admin) .mt-5 { margin-top: 3rem !important; }
body:not(.vsc-premium-admin) .fs-14 { font-size: 14px !important; }
body:not(.vsc-premium-admin) .mw-100 { max-width: 100% !important; }
body:not(.vsc-premium-admin) .h3 { font-size: 1.75rem; line-height: 1.2; }
@media (min-width: 992px) {
    body:not(.vsc-premium-admin) .col-lg-3 { width: 25%; }
    body:not(.vsc-premium-admin) .col-lg-4 { width: 33.333333%; }
    body:not(.vsc-premium-admin) .col-lg-5 { width: 41.666667%; }
    body:not(.vsc-premium-admin) .col-lg-6 { width: 50%; }
    body:not(.vsc-premium-admin) .col-lg-7 { width: 58.333333%; }
    body:not(.vsc-premium-admin) .col-lg-8 { width: 66.666667%; }
    body:not(.vsc-premium-admin) .col-lg-9 { width: 75%; }
    body:not(.vsc-premium-admin) .col-lg-10 { width: 83.333333%; }
    body:not(.vsc-premium-admin) .col-lg-12 { width: 100%; }
}
@media (min-width: 1200px) {
    body:not(.vsc-premium-admin) .col-xl-4 { width: 33.333333%; }
    body:not(.vsc-premium-admin) .col-xl-6 { width: 50%; }
    body:not(.vsc-premium-admin) .col-xl-8 { width: 66.666667%; }
    body:not(.vsc-premium-admin) .col-xl-9 { width: 75%; }
}


/* Brand glyph geometry for the first-party SVG icon component. */
.vsc-icon--messenger { display: inline-block; overflow: visible; }
.vsc-icon--messenger path { stroke: none !important; }
.vsc-icon--messenger path:first-of-type { fill: url(#vsc-messenger-gradient) !important; }
.vsc-icon--messenger path:nth-of-type(2) { fill: #ffffff !important; }
.vsc-icon--whatsapp path:first-child { fill: none; stroke: currentColor; }
.vsc-icon--whatsapp path:nth-child(2) { fill: currentColor; stroke: none; }
