@import url(https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap);

/*general*/
:root {
    --primary: #666564;
    --letras: #343239;
    --light: #ffffff;
    --grey: #bdbdbd;
    --dkgrey: #444444;
    --ltgrey: #efefef;
    --submenu: #848484;
    --crm: #1f77a9;
    --crmhov: #0099df;
    --ing: #1c837c;
    --inghov: #00a99d;
    --iot: #4766a5;
    --iothov: #6593e5;
    --op: #ba7c2a;
    --ophov: #fbb03b;
    --serv: #5a8446;
    --servhov: #78b550;
    --seeon: #2bbf8a;
    --seeonbtn: #90fd74;
    --seeonhov: #48997c;
    --agro: #f3912d;
    --agrohov: #ffc487;
    --refri: #0d88ff;
    --refrihov: #85acd3;
    --servencido: #eb7734;
    --tickets: #818081;
    --ticketshov: #bdbcbd;
    --inventario: #0d88ff;
    --inventariohov: #85acd3;
    --mi_erp: #ee8308d2;
    --doc_api: #787c73;
    --doc_apihov: #0099df;
    --capacitaciones: #7d2181;
    --capacitacioneshov: #ac4baf;
    --font-family-base: "Inter", ui-sans-serif, system-ui, sans-serif;
    --app-bg: #f8f8f8;
    --app-surface: #ffffff;
    --app-surface-muted: #f8fafc;
    --app-border: #dbe4f0;
    --app-text: #1f2937;
    --app-muted: #64748b;
    --app-hover: #eff6ff;
    --app-overlay: rgba(255, 255, 255, 0.94);
    --app-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    color-scheme: light;
}

html.dark {
    --primary: #c7d2fe;
    --letras: #e8ecff;
    --light: #0f172a;
    --grey: #334155;
    --dkgrey: #e8ecff;
    --ltgrey: #131c31;
    --submenu: #1e2a47;
    --app-bg: #070b16;
    --app-surface: #0f172a;
    --app-surface-muted: #131c31;
    --app-border: #24304f;
    --app-text: #e8ecff;
    --app-muted: #a5b4fc;
    --app-hover: #18233f;
    --app-overlay: rgba(7, 11, 22, 0.94);
    --app-shadow: 0 20px 50px rgba(2, 6, 23, 0.62);
    color-scheme: dark;
}
@font-face {
    font-family: 'Poppins-Regular';
    src: url('Poppins-Regular.otf');
}
@font-face {
    font-family: 'CherryBlue';
    src: url('CherryBlue.ttf');
}
@font-face {
    font-family: 'Muli';
    src: url('Muli.otf');
}
@font-face {
    font-family: 'FuturaMediumBT';
    src: url('FuturaMediumBT.otf');
}
@font-face {
    font-family: 'IntroRust';
    src: url('introheadr-base.otf');
}
body {
    font-family: var(--font-family-base) !important;
    font-optical-sizing: auto;
    font-weight: 400 !important;
    font-style: normal;
    font-size: 14px !important;
    color: var(--app-text) !important;
    background-color: var(--app-bg) !important;
    /* line-height: 1.5 !important; */
    /* letter-spacing: 0.00002em !important; */
}

.option-badge {
    padding: 4px 8px;
    color: var(--app-text);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

html,
body,
#app,
#content-wrapper,
main {
    background-color: var(--app-bg);
    color: inherit;
}
body[data-scroll-locked] {
    margin-right: 0px !important; /* For LTR layout */
    margin-left: 0px !important; /* For RTL layout */
}

.row {
    margin-left: 0px !important;
    margin-right: 0px !important;
    width: 100%;
}
.page-item.active .page-link {
    background-color: var(--seeon);
    border-color: var(--seeon);
}
.page-link {
    color: var(--app-text);
    background-color: var(--app-surface);
    border-color: var(--app-border);
}
.navbar {
    background-color: var(--app-surface-muted);
    height: 60px;
}
.table > :not(caption) > * > * {
    background-color: transparent !important;
    /* background-color: inherit !important; */
    /* esto esta dando problemas en tablas como la de disponibilidad de clientes por dia */
}

/*SCROLL*/
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar:hover {
    width: 15px;
    height: 15px;
}
::-webkit-scrollbar-track {
    background: var(--app-surface-muted);
}
::-webkit-scrollbar-thumb {
    background: var(--app-muted);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--grey);
}
/*switch Slider*/
/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: '';
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #2196f3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 17px;
}

.slider.round:before {
    border-radius: 50%;
}

/*botones que llaman a la accion*/
.acc_btn {
    transform: rotateX(40deg);
    animation: acc_btn 1s infinite;
    animation-direction: alternate;
}
@keyframes acc_btn {
    0% {
        transform: rotateX(0);
    }
    100% {
        transform: rotateX(50deg);
    }
}

/*sidebar*/
a:hover {
    text-decoration: none;
}
.logo img {
    height: 30px;
    border-radius: 5px;
}
.bg-crm {
    background-color: var(--crm) !important;
}
.bg-crm li:hover,
.bg-crm .active {
    background-color: var(--crmhov);
}
.bg-doc_api {
    background-color: var(--doc_api) !important;
}
.bg-doc_api li:hover,
.bg-doc_api .active {
    background-color: var(--doc_apihov);
}
.bg-operaciones {
    background-color: var(--op) !important;
}
.bg-operaciones li:hover,
.bg-operaciones .active {
    background-color: var(--ophov);
}
.bg-tickets {
    background-color: var(--tickets) !important;
}
.bg-tickets li:hover,
.bg-tickets .active {
    background-color: var(--ticketshov);
}
.bg-inventario {
    background-color: var(--inventario) !important;
}
.bg-inventario li:hover,
.bg-inventario .active {
    background-color: var(--inventariohov);
}
.bg-mi_erp {
    background-color: var(--mi_erp) !important;
}
.bg-capacitaciones {
    background-color: var(--capacitaciones) !important;
}
.bg-servicios {
    background-color: var(--serv) !important;
}
.bg-servicios li:hover,
.bg-servicios .active {
    background-color: var(--servhov);
}
.bg-agroindustrial {
    background-color: var(--agro) !important;
}
.bg-agroindustrial li:hover,
.bg-agroindustrial .active {
    background-color: var(--agrohov);
}
.bg-refrigeracion {
    background-color: var(--refri) !important;
}
.bg-refrigeracion li:hover,
.bg-refrigeracion .active {
    background-color: var(--refrihov);
}
.bg-documentos {
    background-color: var(--crm) !important;
}
.bg-documentos li:hover,
.bg-documentos .active {
    background-color: var(--crmhov);
}
.bg-comercial {
    background-color: var(--crm) !important;
}
.bg-comercial li:hover,
.bg-comercial .active {
    background-color: var(--crmhov);
}
.bg-iot {
    background-color: var(--iot) !important;
}
.bg-iot li:hover,
.bg-iot .active {
    background-color: var(--iothov);
}

.bg-seeon {
    background-color: var(--seeon) !important;
}
.bg-seeon li:hover,
.bg-seeon .active {
    background-color: var(--seeonhov);
}

.bg-primary {
    background-color: var(--seeon) !important;
}
.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active {
    color: var(--light) !important;
    background-color: var(--seeon) !important;
    border-color: var(--seeon) !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--seeonhov) !important;
    border-color: var(--seeonhov) !important;
}
#sidebar-container {
    min-height: 100%;
    margin-left: 0rem;
    transition: all 500ms;
    /* overflow-y: auto; */
    overflow-x: hidden;
    height: 500px;
    width: 270px;
}

#sidebar-container .logo {
    padding: 0.875rem 0.6rem;
}

#sidebar-container .menu {
    width: inherit;
}
.menu {
    overflow-y: auto;
    padding: 0;
    width: 100% !important;
}
.menu ul {
    height: calc(100% - 80px);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    padding-left: 0;
}

.menu ul li {
    line-height: 20px;
    margin-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.menu ul li div {
    display: block;
    border-left: 3px solid transparent;
    position: relative;
}
.menu ul li div:hover {
    border-left-color: #ffffff;
}
.menu ul ul {
    position: static;
    display: none;
}
.menu ul ul li {
    line-height: 15px;
    border-bottom: none;
}
.menu ul ul li div {
    font-size: 0.8rem;
    color: var(--grey);
    padding-left: 40px !important;
}
.menu ul li div .ion-md-arrow-dropdown {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    transition: transform 0.4s;
}
.menu ul li div:hover .ion-md-arrow-dropdown {
    transform: translateY(-50%) rotate(-180deg);
}
.menu .active {
    border-left-color: #ffffff;
}
.submenu {
    background-color: var(--submenu);
}
.list-group-item.active {
    background-color: var(--app-surface) !important;
    color: var(--app-text) !important;
    border-color: var(--app-border) !important;
}
/*Nav*/
.mmlogo {
    width: 35px;
    height: 35px;
    margin: 0 10px;
}
#ctrl-sidebar {
    font-size: 2.5rem;
    color: #777777;
    transition: transform(0.4s);
}
#ctrl-sidebar.toggled {
    transform: rotate(-180deg);
}
.btn-search {
    right: 5px;
}

.img-in-btn {
    width: 20px;
}

/*Contenido*/
#content {
    /*overflow: scroll;
	height: calc(100% - 100px);*/
}
.loadingimg {
    width: 50px;
    height: 50px;
    display: block;
    margin: 50px auto;
}

/* .dataTables_wrapper {
    display: flex;
    flex-direction: column;
} */
.dataTables_length {
    margin-bottom: 1rem;
}

.dataTables_filter {
    margin-bottom: 1rem;
}

table.dataTable {
    margin: 1rem 0;
}

table.dataTable {
    border: transparent;
    border-radius: 15px;
}

table.dataTable thead tr {
    border-top: 1px solid var(--app-border);
}
table.dataTable thead tr {
    border-bottom: 1px solid var(--app-border);
}

table.dataTable tbody tr td {
    border: transparent;
}

table.dataTable tbody tr td {
    padding: 8px;
}

.table.dataTable.no-footer {
    border-bottom: none;
}

.tableFixHead table {
    border-collapse: collapse;
    width: 100%;
}

.tableFixHead th {
    position: sticky;
    top: 0;
    background: var(--app-surface);
    padding: 5px;
}
.sticky-col {
    position: sticky;
    position: -webkit-sticky;
    background-color: var(--app-surface);
}
.first-col {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    left: 0px;
}
.second-col {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    left: 50px;
}
/*#content-wrapper.toggled #sidebar-container{
	margin-left: 0;
	transition: transform(0.4s);
}*/

@media (min-width: 768px) {
    #sidebar-container {
        margin-left: 0;
    }
    #page-container {
        min-width: 0;
        width: 100%;
    }
    #content-wrapper.toggled #sidebar-container {
        margin-left: -18rem;
    }
}

.galeriaimgprod {
    text-align: center;
    padding: 20px;
}
.delImgProd {
    display: inline-block;
    vertical-align: top;
}
.delImgProd img,
.delImgOPL img {
    max-height: 150px;
    margin-right: 20px;
    border: 1px solid #888888;
}
.delImgProd i {
    left: -45px;
    position: relative;
    top: -55px;
}

/*vista de restaurantes*/
.divrest {
    margin: 30px;
    width: 150px;
    height: 150px;
    border: 1px solid var(--dkgrey);
    border-radius: 10px;
    color: var(--dkgrey);
    background-color: var(--grey);
    text-align: center;
    display: inline-block;
    vertical-align: top;
}
.divrest i {
    width: 20px;
    height: 20px;
    zoom: 3;
}
.divrest img {
    width: calc(100% - 10px);
    margin: 5px;
    border-radius: 5px;
}

/*Pedidos*/
.tit-pedidos {
    text-align: center;
    vertical-align: middle;
    border: 1px solid #888888;
    width: 100%;
    height: 40px;
    font-size: 22px;
    border-radius: 10px 10px 0px 0px;
    margin-top: 10px;
    color: white;
    font-weight: bold;
}
.divpedidos {
    border: 1px solid #888888;
    width: 100%;
    height: calc(100% - 50px);
    border-radius: 0px 0px 10px 10px;
    overflow-y: auto;
}
.colpedidos {
    height: auto;
}
.card {
    margin: 4px;
    box-sizing: content-box;
}
.card-text {
    margin: 0;
}
.badge {
    padding: 0.2rem !important;
}
.badge-facturado {
    color: #fff;
    background-color: #075829;
}
.badge-enprogreso {
    color: #fff;
    background-color: #1ca2ca;
}
.badge-postfactura {
    color: #fff;
    background-color: #04743e;
}

/*css temporal. selectpicker no trabaja todavia con Bootstrap 4*/
.selectpicker {
    padding: 10px 20px;
    border-radius: 8px;
}

/*Vuetify*/
.v-application--wrap {
    min-height: calc(100% - 100px) !important;
}
.v-tabs > div {
    z-index: 10;
}
.v-tabs-list {
    height: 40px !important;
}

.border-top-warning {
    border-top: 5px solid var(--warning) !important;
}
.border-top-info {
    border-top: 5px solid var(--info) !important;
}
.border-top-success {
    border-top: 5px solid var(--success) !important;
}
.border-top-secondary {
    border-top: 5px solid var(--secondary) !important;
}
.border-top-danger {
    border-top: 5px solid var(--danger) !important;
}

.spinner-border {
    width: 1rem;
    height: 1rem;
    margin: 5px;
}
.spinner-border-small {
    width: 1rem;
    height: 1rem;
    margin-left: 20px;
}

/*ocultar mostrar sidebar*/
.sidebarhide {
    min-width: 50px !important;
    width: 50px !important;
}
.sidebarhide .menu div {
    padding-left: 10px !important;
}
.sidebarhide .menu span,
.sidebarhide #menulogo span {
    display: none;
}
.sidebarhide .logo {
    padding-left: 5px !important;
}
.sidebarhide #ctrlsidebar {
    transform: rotate(180deg);
    transition: transform 0.5s;
}

#ajaxresponse {
    height: calc(100% - 50px);
    overflow-y: auto;
}

/*items para mover*/
ol {
    list-style-type: none;
    width: 90%;
    margin: auto;
}
#items li {
    text-align: center;
    padding: 10px;
    margin: 10px;
    background-color: var(--grey);
    border-radius: 5px;
    cursor: pointer;
}

.objplantselected {
    border: 2px dashed green !important;
}

.subtitulo {
    background-color: var(--info) !important;
    color: white;
    font-weight: bold !important;
}

/*resultados busqueda api google maps*/
.pac-container {
    z-index: 1100 !important;
}

/*cards kanban*/
.card-body:hover .card-ops {
    display: inline-block !important;
}

.invisible {
    visibility: hidden !important;
}
td:hover div > .invisible {
    visibility: visible !important;
}

p,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 !important;
}

/*modal*/
.modal-content {
    border-radius: 0.8rem !important;
    border: 1px solid rgba(183, 183, 183, 0.2) !important;
    background-color: var(--app-surface) !important;
    color: var(--app-text) !important;
    box-shadow: var(--app-shadow);
    transition:
        opacity 0.5s ease,
        all 0.5s ease !important;
}

.dropdown-menu,
.card,
.form-control,
.form-select,
.input-group-text,
.table,
.list-group-item,
.page-link {
    background-color: var(--app-surface);
    color: var(--app-text);
    border-color: var(--app-border);
}

.form-control::placeholder,
.form-select::placeholder,
.text-muted,
.text-body-secondary {
    color: var(--app-muted) !important;
}

.form-control:focus,
.form-select:focus,
.page-link:focus,
.btn:focus,
.btn-close:focus {
    border-color: rgba(43, 191, 138, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(43, 191, 138, 0.18) !important;
}

.dropdown-menu {
    box-shadow: var(--app-shadow);
}

.close {
    color: var(--app-text);
    text-shadow: none;
}

html.dark .btn-outline-secondary,
html.dark .btn-light,
html.dark .btn-secondary {
    background-color: var(--app-surface) !important;
    border-color: var(--app-border) !important;
    color: var(--app-text) !important;
}

html.dark .btn-outline-secondary:hover,
html.dark .btn-light:hover,
html.dark .btn-secondary:hover,
html.dark .page-link:hover,
html.dark .list-group-item:hover:not(.active):not(.disabled) {
    background-color: var(--app-hover) !important;
    border-color: var(--app-border) !important;
    color: var(--app-text) !important;
}

html.dark .btn-close {
    filter: invert(1) grayscale(1);
}

html.dark .tableFixHead th,
html.dark .sticky-col,
html.dark .modal-content,
html.dark .dropdown-menu,
html.dark .card,
html.dark .form-control,
html.dark .form-select,
html.dark .input-group-text,
html.dark .page-link,
html.dark .list-group-item {
    background-color: var(--app-surface) !important;
    color: var(--app-text) !important;
    border-color: var(--app-border) !important;
}

html.dark .table .text-muted,
html.dark .table .text-body-secondary,
html.dark table.dataTable .text-muted,
html.dark table.dataTable .text-body-secondary,
html.dark .dataTables_wrapper .text-muted,
html.dark .dataTables_wrapper .text-body-secondary,
html.dark .tableFixHead .text-muted,
html.dark .tableFixHead .text-body-secondary {
    color: #cbd5e1 !important;
}

/* Legacy views dark mode (join, detalle cliente, detalle oportunidad) */
.join-dark {
    color: var(--legacy-text, var(--app-text));
}

.join-dark__panel {
    padding: 1rem;
    border: 1px solid var(--legacy-border, var(--app-border));
    border-radius: 8px;
    background-color: var(--legacy-surface, var(--app-surface));
}

.join-dark__title {
    margin-bottom: 1rem !important;
    color: inherit;
    font-weight: 600;
}

.join-dark__table-wrap {
    overflow-x: auto;
    border: 1px solid var(--legacy-border, var(--app-border));
    border-radius: 8px;
    background-color: var(--legacy-surface, var(--app-surface));
}

.join-dark__table {
    margin-bottom: 0 !important;
    border-color: var(--legacy-border, var(--app-border)) !important;
}

.join-dark__table thead th {
    background-color: var(
        --legacy-surface-muted,
        var(--app-surface-muted)
    ) !important;
    color: var(--legacy-text, var(--app-text)) !important;
    border-color: var(--legacy-border, var(--app-border)) !important;
    vertical-align: middle;
}

.join-dark__table tbody td {
    border-color: var(--legacy-border, var(--app-border)) !important;
    vertical-align: middle;
    background-color: var(--legacy-surface, var(--app-surface)) !important;
    color: var(--legacy-text, var(--app-text)) !important;
}

.join-dark__table.table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: var(
        --legacy-surface-muted,
        var(--app-surface-muted)
    ) !important;
    color: var(--legacy-text, var(--app-text)) !important;
}

.join-dark__save {
    border-color: var(--legacy-border, var(--app-border)) !important;
    color: var(--legacy-text, var(--app-text)) !important;
}

.join-dark__save:hover {
    background-color: var(--legacy-hover, var(--app-hover)) !important;
    border-color: var(--legacy-border, var(--app-border)) !important;
    color: var(--legacy-text, var(--app-text)) !important;
}

.join-dark input[type='checkbox'] {
    accent-color: var(--seeon);
}

.detalle-cliente-dark {
    color: var(--legacy-text, var(--app-text));
}

.detalle-cliente-dark__title {
    margin: 0;
    color: inherit;
    font-weight: 600;
}

.detalle-cliente-dark__navbar {
    background-color: var(
        --legacy-surface-muted,
        var(--app-surface-muted)
    ) !important;
    border: 1px solid var(--legacy-border, var(--app-border));
    border-radius: 8px;
}

.detalle-cliente-dark__tabs {
    width: 100%;
    border-bottom: 1px solid var(--legacy-border, var(--app-border));
}

.detalle-cliente-dark__tabs .nav-item {
    cursor: pointer;
}

.detalle-cliente-dark__tabs .nav-link {
    color: var(--legacy-text, var(--app-text)) !important;
    border: 1px solid transparent !important;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.detalle-cliente-dark__tabs .nav-item.active .nav-link {
    background-color: var(--legacy-surface, var(--app-surface)) !important;
    border-color: var(--legacy-border, var(--app-border))
        var(--legacy-border, var(--app-border)) transparent !important;
}

.detalle-cliente-dark__tabs .nav-item:not(.active) .nav-link:hover {
    background-color: var(--legacy-hover, var(--app-hover)) !important;
    border-color: var(--legacy-border, var(--app-border)) !important;
}

.detalle-cliente-dark__content {
    margin-top: 0.75rem;
    padding: 0.75rem;
    max-height: 800px;
    overflow: auto;
    border: 1px solid var(--legacy-border, var(--app-border));
    border-radius: 8px;
    background-color: var(--legacy-surface, var(--app-surface));
    color: var(--legacy-text, var(--app-text));
}

.detalle-cliente-dark__content .bg-light,
.detalle-cliente-dark__content .bg-white,
.detalle-cliente-dark__content .card,
.detalle-cliente-dark__content .table,
.detalle-cliente-dark__content .form-control,
.detalle-cliente-dark__content .form-select,
.detalle-cliente-dark__content .input-group-text,
.detalle-cliente-dark__content .list-group-item,
.detalle-cliente-dark__content .nav,
.detalle-cliente-dark__content .nav-tabs {
    background-color: var(--legacy-surface, var(--app-surface)) !important;
    color: var(--legacy-text, var(--app-text)) !important;
    border-color: var(--legacy-border, var(--app-border)) !important;
}

.detalle-cliente-dark__content
    .table-striped
    > tbody
    > tr:nth-of-type(odd)
    > * {
    background-color: var(--legacy-surface, var(--app-surface)) !important;
    color: var(--legacy-text, var(--app-text)) !important;
}

.detalle-cliente-dark__content
    .table-striped
    > tbody
    > tr:nth-of-type(even)
    > * {
    background-color: var(
        --legacy-surface-muted,
        var(--app-surface-muted)
    ) !important;
    color: var(--legacy-text, var(--app-text)) !important;
}

/* Slim scrollbars (shared with React / seeon-scrollbar-slim) */
.seeon-scrollbar-slim {
    scrollbar-width: thin;
    scrollbar-color: #999 #f1f1f1;
}

.seeon-scrollbar-slim::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.seeon-scrollbar-slim::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 9999px;
}

.seeon-scrollbar-slim::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 9999px;
}

.seeon-scrollbar-slim::-webkit-scrollbar-thumb:hover {
    background: #777;
}

html.dark .seeon-scrollbar-slim {
    scrollbar-color: #475569 #1e293b;
}

html.dark .seeon-scrollbar-slim::-webkit-scrollbar-track {
    background: #1e293b;
}

html.dark .seeon-scrollbar-slim::-webkit-scrollbar-thumb {
    background: #475569;
}

html.dark .seeon-scrollbar-slim::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.detalle-oportunidad-dark {
    color: var(--legacy-text, var(--app-text));
    background: transparent;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detalle-oportunidad-dark__content {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: 1rem 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detalle-oportunidad-dark__layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.detalle-oportunidad-dark__sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #999 #f1f1f1;
}

.detalle-oportunidad-dark__sidebar::-webkit-scrollbar,
.detalle-oportunidad-dark__panel-body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.detalle-oportunidad-dark__sidebar::-webkit-scrollbar-track,
.detalle-oportunidad-dark__panel-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 9999px;
}

.detalle-oportunidad-dark__sidebar::-webkit-scrollbar-thumb,
.detalle-oportunidad-dark__panel-body::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 9999px;
}

.detalle-oportunidad-dark__sidebar::-webkit-scrollbar-thumb:hover,
.detalle-oportunidad-dark__panel-body::-webkit-scrollbar-thumb:hover {
    background: #777;
}

html.dark .detalle-oportunidad-dark__sidebar,
html.dark .detalle-oportunidad-dark__panel-body {
    scrollbar-color: #475569 #1e293b;
}

html.dark .detalle-oportunidad-dark__sidebar::-webkit-scrollbar-track,
html.dark .detalle-oportunidad-dark__panel-body::-webkit-scrollbar-track {
    background: #1e293b;
}

html.dark .detalle-oportunidad-dark__sidebar::-webkit-scrollbar-thumb,
html.dark .detalle-oportunidad-dark__panel-body::-webkit-scrollbar-thumb {
    background: #475569;
}

.detalle-oportunidad-dark__main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.detalle-oportunidad-dark__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.detalle-oportunidad-dark__header-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.detalle-oportunidad-dark__header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detalle-oportunidad-dark__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid var(--legacy-border, var(--app-border));
    background: var(--legacy-surface, var(--app-surface));
    color: var(--legacy-text, var(--app-text));
    border-radius: 0.65rem;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.detalle-oportunidad-dark__back:hover {
    background: var(--legacy-hover, var(--app-hover));
}

.detalle-oportunidad-dark__back ion-icon {
    font-size: 1.15rem;
}

.detalle-oportunidad-dark__heading {
    min-width: 0;
}

.detalle-oportunidad-dark__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--legacy-muted, var(--app-muted));
    font-weight: 600;
}

.detalle-oportunidad-dark__title {
    margin: 0.1rem 0 0;
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.25;
    color: inherit;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: baseline;
}

.detalle-oportunidad-dark__title span {
    font-weight: 500;
    font-size: 1rem;
    color: var(--legacy-muted, var(--app-muted));
}

.detalle-oportunidad-dark__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.65rem;
    border: 1px solid var(--legacy-border, var(--app-border));
    background: var(--legacy-surface, var(--app-surface));
    color: var(--legacy-text, var(--app-text));
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.detalle-oportunidad-dark__icon-btn:hover {
    background: var(--legacy-hover, var(--app-hover));
}

.detalle-oportunidad-dark__icon-btn--sm {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.detalle-oportunidad-dark__info {
    border: 1px solid var(--legacy-border, var(--app-border));
    border-radius: 14px;
    background: var(--legacy-surface, var(--app-surface));
    box-shadow: var(--app-shadow);
    padding: 1rem 1.1rem;
}

.detalle-oportunidad-dark__info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.detalle-oportunidad-dark__field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

.detalle-oportunidad-dark__field--accent {
    border: none;
    background: transparent;
    grid-column: auto;
    padding-bottom: 0.85rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid var(--legacy-border, var(--app-border));
}

.detalle-oportunidad-dark__field--labels {
    grid-column: auto;
}

.detalle-oportunidad-dark__label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--legacy-muted, var(--app-muted));
}

.detalle-oportunidad-dark__value {
    font-size: 0.92rem;
    color: var(--legacy-text, var(--app-text));
    word-break: break-word;
    line-height: 1.35;
}

.detalle-oportunidad-dark__value--row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.detalle-oportunidad-dark__value--row strong {
    font-weight: 650;
}

.detalle-oportunidad-dark__muted {
    margin: 0.15rem 0 0;
    color: var(--legacy-muted, var(--app-muted));
    font-size: 0.82rem;
}

.detalle-oportunidad-dark__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.detalle-oportunidad-dark__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.4rem;
    border: 1px solid var(--legacy-border, var(--app-border));
    background: transparent;
    color: var(--legacy-text, var(--app-text));
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease,
        color 0.15s ease;
}

.detalle-oportunidad-dark__action.is-success:hover,
.detalle-oportunidad-dark__action.is-success {
    border-color: color-mix(in srgb, #16a34a 45%, var(--app-border));
    color: #15803d;
    background: color-mix(in srgb, #22c55e 12%, var(--app-surface));
}

.detalle-oportunidad-dark__action.is-danger:hover,
.detalle-oportunidad-dark__action.is-danger {
    border-color: color-mix(in srgb, #dc2626 45%, var(--app-border));
    color: #b91c1c;
    background: color-mix(in srgb, #ef4444 12%, var(--app-surface));
}

.detalle-oportunidad-dark__action.is-neutral:hover {
    background: var(--legacy-hover, var(--app-hover));
}

.detalle-oportunidad-dark__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 0.25rem;
    cursor: default;
    background: transparent;
    color: var(--legacy-muted, var(--app-muted));
}

button.detalle-oportunidad-dark__chip {
    cursor: pointer;
}

.detalle-oportunidad-dark__chip.is-success {
    background: transparent;
    border-color: color-mix(in srgb, #22c55e 35%, var(--app-border));
    color: #166534;
}

.detalle-oportunidad-dark__chip.is-danger {
    background: transparent;
    border-color: color-mix(in srgb, #ef4444 35%, var(--app-border));
    color: #991b1b;
}

.detalle-oportunidad-dark__chip.is-info {
    background: transparent;
    border-color: color-mix(in srgb, var(--crm) 35%, var(--app-border));
    color: var(--crm);
}

.detalle-oportunidad-dark__status {
    display: inline-flex;
    align-items: center;
    border-radius: 0;
    padding: 0;
    font-size: 0.92rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: inherit;
}

.detalle-oportunidad-dark__status.is-open {
    background: transparent;
    border: none;
    color: var(--crm);
}

.detalle-oportunidad-dark__status.is-won {
    background: transparent;
    border: none;
    color: #166534;
}

.detalle-oportunidad-dark__status.is-lost {
    background: transparent;
    border: none;
    color: #991b1b;
}

.detalle-oportunidad-dark__labels-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.detalle-oportunidad-dark__label-input {
    width: 100%;
    margin-top: 0.35rem;
    border: 1px solid var(--legacy-border, var(--app-border));
    border-radius: 0.55rem;
    background: var(--legacy-surface, var(--app-surface));
    color: var(--legacy-text, var(--app-text));
    padding: 0.35rem 0.55rem;
}

.detalle-oportunidad-dark__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.detalle-oportunidad-dark__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.2rem 0.55rem 0.2rem 0.7rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.detalle-oportunidad-dark__tag button {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    display: inline-flex;
    cursor: pointer;
    opacity: 0.85;
}

.detalle-oportunidad-dark__tag button:hover {
    opacity: 1;
}

.detalle-oportunidad-dark__footer {
    width: 100%;
    flex-shrink: 0;
    margin-top: 0;
    padding: 0.7rem 0 0.35rem;
    border-top: 1px solid var(--legacy-border, var(--app-border));
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--legacy-surface, var(--app-bg, var(--app-surface)));
    position: relative;
    z-index: 6;
}

.detalle-oportunidad-dark__kanban {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
}

.detalle-oportunidad-dark__progress {
    display: flex;
    width: 100%;
    height: auto !important;
    min-height: 2rem;
    overflow: hidden;
    border-radius: 999px !important;
    background: var(--legacy-surface-muted, var(--app-surface-muted)) !important;
    border: 1px solid var(--legacy-border, var(--app-border));
    box-shadow: none;
}

.detalle-oportunidad-dark__progress-step {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--legacy-text, var(--app-text)) !important;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease, filter 0.15s ease;
}

.detalle-oportunidad-dark__progress-step:hover {
    opacity: 0.95;
}

.detalle-oportunidad-dark__progress-step.is-active {
    opacity: 1;
    font-weight: 700;
    filter: saturate(1.05);
}

.detalle-oportunidad-dark__section-nav {
    border: none;
    border-radius: 0;
    background: transparent !important;
    padding: 0;
    box-shadow: none;
    overflow-x: auto;
    flex-shrink: 0;
}

.detalle-oportunidad-dark__tabs {
    list-style: none;
    margin: 0;
    padding: 0.2rem;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.15rem;
    width: fit-content;
    max-width: 100%;
    border-radius: 0.5rem;
    background: var(--muted, var(--app-surface-muted));
}

.detalle-oportunidad-dark__tabs > li {
    flex: 0 0 auto;
    min-width: 0;
}

.detalle-oportunidad-dark__tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: calc(2rem - 2px);
    border: 1px solid transparent;
    background: transparent;
    color: color-mix(
        in srgb,
        var(--muted-foreground, var(--app-muted)) 70%,
        transparent
    ) !important;
    border-radius: 0.375rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease,
        box-shadow 0.2s ease, font-weight 0.2s ease, border-color 0.2s ease;
}

.detalle-oportunidad-dark__tab:hover {
    background: transparent;
    color: var(--foreground, var(--app-text)) !important;
}

.detalle-oportunidad-dark__tab:not(.collapsed) {
    background: var(--card, #ffffff) !important;
    border-color: transparent !important;
    color: var(--foreground, var(--app-text)) !important;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

html.dark .detalle-oportunidad-dark__tab:not(.collapsed) {
    background: var(--card, var(--app-surface)) !important;
    border-color: var(--border, var(--app-border)) !important;
    box-shadow: 0 1px 2px rgba(2, 6, 23, 0.35);
}

.detalle-oportunidad-dark__panels {
    padding: 0;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detalle-oportunidad-dark__panels > .collapse {
    min-height: 0;
}

.detalle-oportunidad-dark__panels > .collapse.show {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
}

/* Tabs con listados/tablas largas: scroll interno (no se recortan) */
.detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__section-body,
.detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__disenos,
.detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__adjuntos-grid {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #999 #f1f1f1;
}

.detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__section-body::-webkit-scrollbar,
.detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__disenos::-webkit-scrollbar,
.detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__adjuntos-grid::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__section-body::-webkit-scrollbar-track,
.detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__disenos::-webkit-scrollbar-track,
.detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__adjuntos-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 9999px;
}

.detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__section-body::-webkit-scrollbar-thumb,
.detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__disenos::-webkit-scrollbar-thumb,
.detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__adjuntos-grid::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 9999px;
}

html.dark
    .detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__section-body,
html.dark
    .detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__disenos,
html.dark
    .detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__adjuntos-grid {
    scrollbar-color: #475569 #1e293b;
}

html.dark
    .detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__section-body::-webkit-scrollbar-track,
html.dark
    .detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__disenos::-webkit-scrollbar-track,
html.dark
    .detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__adjuntos-grid::-webkit-scrollbar-track {
    background: #1e293b;
}

html.dark
    .detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__section-body::-webkit-scrollbar-thumb,
html.dark
    .detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__disenos::-webkit-scrollbar-thumb,
html.dark
    .detalle-oportunidad-dark__panels
    > .collapse.show
    > .detalle-oportunidad-dark__adjuntos-grid::-webkit-scrollbar-thumb {
    background: #475569;
}

.detalle-oportunidad-dark__seguimiento {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(240px, 0.7fr) minmax(
            240px,
            0.7fr
        );
    grid-template-rows: minmax(280px, 1fr);
    gap: 0.85rem;
    align-items: stretch;
    flex: 1 1 auto;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
}

.detalle-oportunidad-dark__seguimiento-chat {
    min-width: 0;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    align-self: stretch;
    border: 1px solid var(--legacy-border, var(--app-border));
    border-radius: 14px;
    overflow: hidden;
    background: var(--legacy-surface, var(--app-surface));
    box-shadow: var(--app-shadow);
    display: flex;
    flex-direction: column;
}

/* Tareas y citas: altura según contenido, con tope de la fila para hacer scroll */
.detalle-oportunidad-dark__seguimiento > .detalle-oportunidad-dark__panel {
    height: auto;
    max-height: 100%;
    min-height: 0;
    align-self: start;
    width: 100%;
}

.detalle-oportunidad-dark__seguimiento
    > .detalle-oportunidad-dark__panel
    > .detalle-oportunidad-dark__panel-body {
    flex: 1 1 auto;
    min-height: 4.5rem;
}

.detalle-oportunidad-dark__seguimiento-chat > *,
.detalle-oportunidad-dark__seguimiento-chat > * > * {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100%;
    display: flex !important;
    flex-direction: column;
}

.detalle-oportunidad-dark__seguimiento-chat .tw\:h-full,
.detalle-oportunidad-dark__seguimiento-chat [class*='h-full'] {
    height: 100% !important;
    min-height: 0 !important;
}

.detalle-oportunidad-dark__panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    border: 1px solid var(--legacy-border, var(--app-border));
    border-radius: 14px;
    background: var(--legacy-surface, var(--app-surface));
    box-shadow: none;
    overflow: hidden;
}

.detalle-oportunidad-dark__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--legacy-border, var(--app-border));
    background: transparent;
    flex-shrink: 0;
}

.detalle-oportunidad-dark__panel-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.detalle-oportunidad-dark__panel-head h5 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--legacy-text, var(--app-text));
}

.detalle-oportunidad-dark__panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 650;
    color: var(--legacy-muted, var(--app-muted));
    background: var(--legacy-surface-muted, var(--app-surface-muted));
    border: 1px solid var(--legacy-border, var(--app-border));
}

.detalle-oportunidad-dark__panel-head a {
    color: var(--crm);
    font-weight: 600;
    text-decoration: none;
}

.detalle-oportunidad-dark__panel-head a:hover {
    text-decoration: underline;
}

.detalle-oportunidad-dark__panel-head--split {
    align-items: flex-start;
}

.detalle-oportunidad-dark__panel-body {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #999 #f1f1f1;
}

.detalle-oportunidad-dark__panel-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 0 0 auto;
    min-height: 0;
}

.detalle-oportunidad-dark__panel-list.is-empty {
    flex: 1 1 auto;
    min-height: 4.5rem;
    align-items: center;
    justify-content: center;
}

.detalle-oportunidad-dark__panel-foot {
    padding: 0.65rem 0.75rem 0.8rem;
    border-top: 1px solid var(--legacy-border, var(--app-border));
    background: transparent;
    flex-shrink: 0;
}

.detalle-oportunidad-dark__primary-btn {
    width: 100%;
    border: 0;
    border-radius: 0.65rem;
    padding: 0.55rem 0.8rem;
    font-weight: 650;
    font-size: 0.84rem;
    cursor: pointer;
    color: #ffffff !important;
    background: var(--crm) !important;
    transition: filter 0.15s ease, background-color 0.15s ease;
}

.detalle-oportunidad-dark__primary-btn:hover,
.detalle-oportunidad-dark__primary-btn:focus,
.detalle-oportunidad-dark__primary-btn:active {
    background: var(--crmhov) !important;
    color: #ffffff !important;
}

.detalle-oportunidad-dark__item {
    width: 100%;
    text-align: left;
    border: 1px solid var(--legacy-border, var(--app-border));
    border-radius: 10px;
    background: var(--legacy-surface, var(--app-surface));
    color: var(--legacy-text, var(--app-text));
    padding: 0.65rem 0.7rem 0.65rem 0.8rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    flex-shrink: 0;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.detalle-oportunidad-dark__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #94a3b8;
}

.detalle-oportunidad-dark__item:hover {
    border-color: color-mix(in srgb, var(--crm) 35%, var(--app-border));
    background: var(--legacy-surface-muted, var(--app-surface-muted));
    box-shadow: none;
}

.detalle-oportunidad-dark__item-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.detalle-oportunidad-dark__item-id {
    font-size: 0.7rem;
    font-weight: 650;
    color: var(--legacy-muted, var(--app-muted));
}

.detalle-oportunidad-dark__item-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 650;
    line-height: 1.2;
    text-transform: lowercase;
    background: var(--legacy-surface-muted, var(--app-surface-muted));
    color: var(--legacy-muted, var(--app-muted));
    border: 1px solid var(--legacy-border, var(--app-border));
}

.detalle-oportunidad-dark__item-title {
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.3;
    color: var(--legacy-text, var(--app-text));
    word-break: break-word;
}

.detalle-oportunidad-dark__item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.75rem;
    color: var(--legacy-muted, var(--app-muted));
}

.detalle-oportunidad-dark__item-note {
    margin: 0.15rem 0 0;
    font-size: 0.74rem;
    line-height: 1.35;
    color: var(--legacy-muted, var(--app-muted));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detalle-oportunidad-dark__item.is-closed::before {
    background: #64748b;
}
.detalle-oportunidad-dark__item.is-closed .detalle-oportunidad-dark__item-title {
    text-decoration: line-through;
    opacity: 0.75;
}
.detalle-oportunidad-dark__item.is-closed .detalle-oportunidad-dark__item-status {
    color: #64748b;
    border-color: color-mix(in srgb, #64748b 35%, var(--app-border));
}

.detalle-oportunidad-dark__item.is-ok::before {
    background: #16a34a;
}
.detalle-oportunidad-dark__item.is-ok .detalle-oportunidad-dark__item-status {
    color: #166534;
    border-color: color-mix(in srgb, #22c55e 35%, var(--app-border));
    background: color-mix(in srgb, #22c55e 10%, transparent);
}

.detalle-oportunidad-dark__item.is-pending::before {
    background: #dc2626;
}
.detalle-oportunidad-dark__item.is-pending .detalle-oportunidad-dark__item-status {
    color: #991b1b;
    border-color: color-mix(in srgb, #ef4444 35%, var(--app-border));
    background: color-mix(in srgb, #ef4444 10%, transparent);
}

.detalle-oportunidad-dark__item.is-warning::before {
    background: #d97706;
}
.detalle-oportunidad-dark__item.is-warning .detalle-oportunidad-dark__item-status {
    color: #92400e;
    border-color: color-mix(in srgb, #f59e0b 35%, var(--app-border));
    background: color-mix(in srgb, #f59e0b 10%, transparent);
}

.detalle-oportunidad-dark__item.is-info::before {
    background: var(--crm);
}
.detalle-oportunidad-dark__item.is-info .detalle-oportunidad-dark__item-status {
    color: var(--crm);
    border-color: color-mix(in srgb, var(--crm) 35%, var(--app-border));
    background: color-mix(in srgb, var(--crm) 10%, transparent);
}

.detalle-oportunidad-dark__item.is-overdue::before {
    background: var(--servencido);
}
.detalle-oportunidad-dark__item.is-overdue .detalle-oportunidad-dark__item-status {
    color: var(--servencido);
    border-color: color-mix(in srgb, var(--servencido) 35%, var(--app-border));
    background: color-mix(in srgb, var(--servencido) 10%, transparent);
}

.detalle-oportunidad-dark__item.is-neutral::before {
    background: #64748b;
}

.detalle-oportunidad-dark__item-delete {
    margin-left: auto;
    flex-shrink: 0;
}

.detalle-oportunidad-dark__item-head,
.detalle-oportunidad-dark__item-body {
    display: none;
}

.detalle-oportunidad-dark__empty {
    margin: 0;
    padding: 0.85rem 0.5rem;
    text-align: center;
    color: var(--legacy-muted, var(--app-muted));
    font-size: 0.85rem;
    line-height: 1.4;
}

.detalle-oportunidad-dark__section-body {
    padding: 0.25rem 0;
    min-height: 0;
}

.detalle-oportunidad-dark__cotizaciones,
.detalle-oportunidad-dark__contactos {
    display: block;
    min-height: 0;
}

.detalle-oportunidad-dark__disenos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
    align-content: start;
    padding: 0.15rem 0.15rem 0.5rem 0;
}

.detalle-oportunidad-dark__disenos > .detalle-oportunidad-dark__panel {
    height: auto;
    max-height: none;
}

.detalle-oportunidad-dark__disenos > .detalle-oportunidad-dark__panel > .detalle-oportunidad-dark__panel-body {
    flex: 0 0 auto;
    overflow: visible;
}

.detalle-oportunidad-dark__adjuntos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-content: start;
    padding: 0.15rem 0.15rem 0.5rem 0;
}

.detalle-oportunidad-dark__table-wrap {
    overflow: auto;
    max-height: 100%;
    border: 1px solid var(--legacy-border, var(--app-border));
    border-radius: 12px;
    background: var(--legacy-surface, var(--app-surface));
}

.detalle-oportunidad-dark__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    text-align: center;
    color: var(--legacy-text, var(--app-text));
}

.detalle-oportunidad-dark__table th,
.detalle-oportunidad-dark__table td {
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--legacy-border, var(--app-border));
    vertical-align: middle;
    background: var(--legacy-surface, var(--app-surface));
}

.detalle-oportunidad-dark__table thead th {
    background: var(--legacy-surface-muted, var(--app-surface-muted));
    font-size: 0.8rem;
    font-weight: 650;
}

.detalle-oportunidad-dark__table tbody tr:nth-child(even) td {
    background: var(--legacy-surface-muted, var(--app-surface-muted));
}

.detalle-oportunidad-dark__table a {
    color: var(--crm);
}

.detalle-oportunidad-dark .card,
.detalle-oportunidad-dark .card-body,
.detalle-oportunidad-dark .card-footer,
.detalle-oportunidad-dark .navbar,
.detalle-oportunidad-dark .form-control,
.detalle-oportunidad-dark .form-select,
.detalle-oportunidad-dark .input-group-text,
.detalle-oportunidad-dark .list-group-item,
.detalle-oportunidad-dark .bg-light,
.detalle-oportunidad-dark .bg-white,
.detalle-oportunidad-dark .table {
    background-color: var(--legacy-surface, var(--app-surface)) !important;
    color: var(--legacy-text, var(--app-text)) !important;
    border-color: var(--legacy-border, var(--app-border)) !important;
}

.detalle-oportunidad-dark .table > :not(caption) > * > * {
    background-color: var(--legacy-surface, var(--app-surface)) !important;
    color: var(--legacy-text, var(--app-text)) !important;
    border-color: var(--legacy-border, var(--app-border)) !important;
}

.detalle-oportunidad-dark .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--legacy-surface, var(--app-surface)) !important;
}

.detalle-oportunidad-dark .table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: var(
        --legacy-surface-muted,
        var(--app-surface-muted)
    ) !important;
}

html.dark .detalle-oportunidad-dark__chip.is-success,
html.dark .detalle-oportunidad-dark__status.is-won {
    color: #86efac;
}

html.dark .detalle-oportunidad-dark__chip.is-danger,
html.dark .detalle-oportunidad-dark__status.is-lost {
    color: #fca5a5;
}

html.dark .detalle-oportunidad-dark__action.is-success {
    color: #86efac;
}

html.dark .detalle-oportunidad-dark__action.is-danger {
    color: #fca5a5;
}

@media (max-width: 1200px) {
    .detalle-oportunidad-dark__layout {
        grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    }

    .detalle-oportunidad-dark__seguimiento {
        grid-template-columns: minmax(0, 1.5fr) minmax(210px, 0.65fr) minmax(
                210px,
                0.65fr
            );
    }

    .detalle-oportunidad-dark__kanban {
        max-width: 640px;
    }
}

@media (max-width: 992px) {
    .detalle-oportunidad-dark__content {
        overflow: auto;
    }

    .detalle-oportunidad-dark__layout {
        grid-template-columns: 1fr;
        overflow: visible;
        flex: 0 0 auto;
    }

    .detalle-oportunidad-dark__sidebar {
        max-height: none;
    }

    .detalle-oportunidad-dark__main {
        height: auto;
        overflow: visible;
    }

    .detalle-oportunidad-dark__panels {
        overflow: visible;
        flex: 0 0 auto;
    }

    .detalle-oportunidad-dark__panels > .collapse.show {
        height: auto;
        overflow: visible;
    }

    .detalle-oportunidad-dark__panels
        > .collapse.show
        > .detalle-oportunidad-dark__section-body,
    .detalle-oportunidad-dark__panels
        > .collapse.show
        > .detalle-oportunidad-dark__disenos,
    .detalle-oportunidad-dark__panels
        > .collapse.show
        > .detalle-oportunidad-dark__adjuntos-grid {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .detalle-oportunidad-dark__info-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem 1.25rem;
    }

    .detalle-oportunidad-dark__field--accent {
        grid-column: 1 / -1;
    }

    .detalle-oportunidad-dark__field--labels {
        grid-column: span 2;
    }

    .detalle-oportunidad-dark__seguimiento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        height: auto;
        min-height: 420px;
        overflow: visible;
    }

    .detalle-oportunidad-dark__seguimiento-chat {
        grid-column: 1 / -1;
        height: min(70vh, 560px);
    }

    .detalle-oportunidad-dark__panel {
        max-height: min(50vh, 420px);
    }

    .detalle-oportunidad-dark__seguimiento > .detalle-oportunidad-dark__panel {
        max-height: min(50vh, 420px);
        height: auto;
    }
}

@media (max-width: 720px) {
    .detalle-oportunidad-dark__content {
        padding: 0.75rem 0.75rem 0.5rem;
    }

    .detalle-oportunidad-dark__info-grid,
    .detalle-oportunidad-dark__seguimiento,
    .detalle-oportunidad-dark__adjuntos-grid {
        grid-template-columns: 1fr;
    }

    .detalle-oportunidad-dark__field--labels,
    .detalle-oportunidad-dark__seguimiento-chat {
        grid-column: auto;
    }

    .detalle-oportunidad-dark__tabs {
        width: 100%;
    }

    .detalle-oportunidad-dark__tabs > li {
        flex: 1 1 auto;
    }

    .detalle-oportunidad-dark__tab {
        width: 100%;
    }
}
