div.patient-data.sales-data .rdt_TableCol > div > div {
  white-space: nowrap !important;
}

div.patient-info-row {
  display: flex;
}

div.patient-info-row1 {
  display: flex;
  /* width: 100%; */
  gap: 20px;
  justify-content: space-between;
}

div.patient-info-row2 {
  display: flex;
}

div.screen-option {
  width: 100%;
  height: 100%;
}

div.menu-item {
  width: 100%;
}

.section-todo-tests {
  display: flex;
  justify-content: flex-start;
  border-radius: 10px;
  background-color: var(--white);
  box-shadow: 0px 2px 8px 0px var(--shadow);
  padding: 20px;
  width: 100%;
}

div.data-field-tests {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: flex-start;
}

/*div.data-field-tests span {
  width: 100%;
  text-align: left;
}*/

div.data-field-tests span:not(:first-child) {
  margin-top: 10px;
}

div.topBarDiv {
  background-color: white;
  height: 65%;
  width: 3px;
  margin: 0px 3px 0px 3px;
}

div.topbar div.user-content {
  flex-direction: row;
  width: unset;
  padding: 0px 16px;
  margin-right: 10px;
}

.user-avatar {
  width: 22px !important;
  height: 22px !important;
}

div.topbar div.h4-2 {
  font-size: 14px;
}

div.topbar div.user-info {
  grid-column-gap: 10px;
}

div.sidebar-app {
  min-width: 260px;
}

div.optics-op {
  min-width: max-content;
}

/* Small menu */

body div.sidebar-app {
  transition: width 0.25s ease;
}

body div.sidebar-app-hidden {
  width: 60px !important;
  min-width: 60px !important;
  background-color: #4abeff;
}

body div.sidebar-app-hidden-abs {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
  background-color: #4abeff;
}

body div.sidebar-app-hidden div.h4-p2.white {
  display: none;
}

body div.sidebar-app-hidden div.user-content {
  opacity: 0;
}

body img.optiwin-logo-small {
  width: 38px;
  margin: 15px 0px 31px 0px;
}

body div.sidebar-app-hidden img.optiwin-logo {
  display: none !important;
}

body div:not(.sidebar-app-hidden) img.optiwin-logo {
  display: inline-block;
}

body div.sidebar-app-hidden img.optiwin-logo-small {
  display: inline-block !important;
}

body div:not(.sidebar-app-hidden) img.optiwin-logo-small {
  display: none;
}

body div.dashboard-app-reduced {
  width: calc(100% - 60px) !important;
  margin-left: 60px;
}

div.contacto-trabajo {
  display: flex;
}

div.section-content-info.sec-3:last-child {
  margin-left: 10px;
}

div.sidebar-app {
  height: 100% !important;
}

div.sidebar-top {
  height: 100%;
  overflow-y: auto;
}

div.sidebar-top img.optiwin-logo {
  position: sticky;
  top: 0px;
}

div.menu {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

div.siderbar-down {
  margin-top: 15px;
}

div.optica-dropdown {
  grid-column-gap: 0px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

div.optics-container {
  left: 206px;
}

div.cfg-section-fill {
  width: 100%;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: space-between;
}

div.cfg-card-section {
  width: 32%;
  margin-top: 20px;
}

.cfg-log-input {
  padding-right: 12px !important;
}

div.menu-item div.h4-p2 {
  white-space: nowrap;
}

::-webkit-scrollbar {
  width: 5px !important;
}

.action-card {
  width: 16%;
  max-width: 220px;
}

div.delivery-note-table div.optic-item {
  flex-wrap: wrap;
}

@media screen and (max-width: 1500px) /*and (max-width: 1600px) */ {
  body .sidebar-app {
    width: 230px !important;
    min-width: 230px !important;
  }

  .subsection-op {
    margin-left: 8px !important;
  }

  div.menu-inicio .h4-p2.white {
    text-align: left;
  }

  div.section-title.subsection-op {
    grid-column-gap: 9px !important;
  }

  div.section-title.subsection-op div.h4-p2.white {
    font-size: 13px !important;
  }

  .cards-row {
    grid-column-gap: 2% !important;
  }

  .action-card {
    width: 200px !important;
  }

  div#root .action-bar {
    width: 100% !important;
    padding: 0px 20px;
  }

  body .patient-search-content,
  .patient-search-result-content {
    width: calc(100% - 40px) !important;
  }

  /*.ps-parameters {
    flex-direction: column;
  }*/

  .parameters-dropdown-content {
    margin-top: 20px;
    width: 100%;
    justify-content: space-between;
  }

  .ps-parameters .input-data.input-icon-search {
    width: 100%;
  }

  body .patient-search-content,
  body .patient-search-result-content,
  body .store-info,
  body .store-panel {
    width: calc(100% - 40px) !important;
  }

  div.psr-parameters div.combobox.combobox-medium {
    width: 200px !important;
  }

  div.psr-table-header div {
    width: 10% !important;
  }

  div.ps-sr-patient div.table-content {
    width: 10% !important;
    overflow: hidden;
  }

  div.patient-info {
    flex-direction: column;
    width: calc(100% - 40px) !important;
    padding: 15px 20px;
  }

  .patient-info-row1 {
    display: flex;
    justify-content: space-between;
  }

  .patient-info-3 {
    justify-content: center !important;
    padding-top: 10px;
  }

  .patient-info-4 {
    flex-direction: row !important;
  }

  .patient-sections {
    width: calc(100% - 40px) !important;
    padding-right: 0px !important;
  }

  div.menu div.h4-p2.white {
    font-size: 14px !important;
  }

  div.menu-item div.menu-inicio {
    padding-left: 10px !important;
  }

  div.menu-item div.section-title {
    grid-column-gap: 14px !important;
  }

  div.patient-search-result-content div.custom-datatable div.rdt_TableCol,
  div.patient-search-result-content div.custom-datatable div.rdt_TableCell {
    min-width: 50px;
    padding-left: 0px;
    padding-right: 0px;
  }

  div.patient-search-result-content div.custom-datatable img.ps-user-img {
    width: 30px !important;
    height: 30px !important;
  }

  div.patient-search-result-content div.custom-datatable #cell-1-undefined,
  div.patient-search-result-content div.custom-datatable #cell-10-undefined {
    display: flex;
    justify-content: center;
  }

  div.patient-info-4 {
    width: 100%;
    justify-content: space-between;
  }

  div.patient-info-4 div.patient-actions,
  div.patient-info-4 div.patient-action-buttons,
  div.patient-info-4 div.delete-patient {
    width: unset;
    margin-right: 18px;
  }

  div.patient-actions div.action span {
    display: none;
  }

  div.patient-actions div.action img {
    width: 18px;
    height: 18px;
  }

  div.patient-action-buttons div.button-icon-ver {
    height: 23px;
  }

  div.patient-action-buttons div.button-icon-ver span {
    font-size: 12px;
  }

  div.delete-patient span {
    font-size: 12px !important;
  }

  div.patient-actions {
    gap: 15px;
  }

  img.patient-img {
    width: 140px;
    height: 140px;
  }

  div.section-content-info.sec-1 {
    width: 100%;
    order: 1;
  }

  div.section-content-info.sec-2.combined-section-child {
    width: 100%;
  }

  div.section-content-info.sec-2 {
    width: 32%;
    order: 2;
  }

  div.combined-section {
    width: 28%;
    order: 4;
  }

  div.contacto-trabajo {
    width: 37%;
    flex-direction: column;
    order: 3;
  }

  div.section-content-info.sec-3 {
    width: 100%;
    height: 50%;
  }

  div.section-content-info.sec-3:first-child {
    margin-bottom: 5px;
  }

  div.section-content-info.sec-3:last-child {
    margin-top: 5px;
    margin-left: 0px;
  }

  div.section-content-info.sec-4 {
    width: 100%;
    order: 5;
  }

  div.section-content-info.sec-5 {
    width: 100%;
  }

  div.section-content-info.sec-1 div.data-field-row {
    justify-content: flex-start;
  }

  div.section-content-info.sec-1 div.data-field-row div.data-field.d-small {
    margin-left: 65px;
  }

  /* Optometria */

  div.section-todo {
    padding: 10px;
  }

  div.optometry-icon-header {
    padding: 0px;
    margin-bottom: 15px;
  }

  button.optometry-icon-header-icon {
    display: flex;
    flex-direction: column;
  }

  .popup-screen {
    width: 97% !important;
    height: 95% !important;
    padding: 60px 10px 10px 10px !important;
  }

  .popup-screen div.tab-content {
    padding: 20px 10px 20px 10px !important;
  }

  .popup-screen #rx-anterior,
  .popup-screen #rx-nueva {
    grid-template-columns: 0.5fr 1fr 1fr 1fr 0.1fr 1fr 1fr 1fr 1fr 0.5fr !important;
  }

  .popup-screen #rx-nueva-correccion {
    width: 60%;
  }

  .popup-screen div.opt-table-container {
    padding: 10px !important;
  }

  .popup-screen #prisma {
    grid-template-columns: 0.5fr 1fr 1fr 1fr 1fr 1fr 0.3fr 1fr 1fr 0.5fr !important;
  }

  .popup-screen div.opt-table-container input {
    font-size: 13px !important;
  }

  .popup-screen div.popup-screen-box-info div.input-data.input-full,
  .popup-screen
    div.popup-screen-box-info
    div.combobox.combobox-default.combobox-filter {
    max-width: 150px;
  }

  .popup-screen div.popup-screen-box-info div.input-data.input-full input {
    padding: 0px !important;
    display: block !important;
  }

  div.patient-search-content.store-search-content {
    width: 100% !important;
  }

  div.store-data-content div.store-product-filter div.input-data {
    width: 180px;
  }

  div.store-products-table div.rdt_Table div.rdt_TableHeadRow > div,
  div.store-products-table div.rdt_Table div.rdt_TableBody > div > div {
    padding: 8px !important;
  }

  div.input-search-panel {
    padding: 10px;
  }

  div.input-search-panel div.input-search-panel-header {
    height: unset !important;
    margin-bottom: 10px;
  }

  div.albaran-data .delivery-note-filters-container .cell-extra {
    padding-right: 3px !important;
  }

  div.albaran-data div.delivery-note-table > div:first-child > div {
    display: unset !important;
  }

  div.albaran-data div.delivery-note-table div.rdt_TableHeadRow > div,
  div.albaran-data div.delivery-note-table div.rdt_TableRow > div > div {
    font-size: 11px !important;
  }

  div.albaran-data div.delivery-note-table div.rdt_TableCell,
  div.albaran-data div.delivery-note-table div.rdt_TableCol {
    padding: 5px !important;
  }

  div.albaran-data div.delivery-note-table div.rdt_TableRow input {
    font-size: 11px !important;
  }

  div.delivery-note-filters-container.opt-table-content span {
    font-size: 13px !important;
  }

  div.patient-search-content div.ps-parameters > div {
    width: 25% !important;
  }

  div.patient-search-content
    div.advanced-search-cols
    div.combobox.combobox-large,
  div.patient-search-content
    div.advanced-search-cols
    div.input-data.input-large {
    max-width: 190px !important;
  }

  .custom-datatable div.rdt_Table .rdt_TableHeadRow {
    font-size: 12px !important;
  }

  .custom-datatable div.rdt_Table .rdt_TableRow .rdt_TableCell div {
    font-size: 11px !important;
  }

  div.rdt_Table div {
    overflow: unset !important;
    white-space: unset !important;
    text-overflow: unset !important;
  }

  div.patient-data-content div.patient-info {
    gap: 25px !important;
  }

  div.patient-info-row1 {
    justify-content: space-evenly !important;
  }

  div.patient-info-row2:last-child > div {
    flex-direction: row !important;
    justify-content: flex-end !important;
    width: 100%;
    gap: 15px;
    border-left: 0px !important;
  }

  div.optometry-icon-header {
    gap: 5px;
  }

  .optometry-icon-header-icon {
    min-width: 50px !important;
  }

  /* Ventas - búsqueda de operaciones */

  div.sales-content div.general-header-info div.screen-row-content {
    flex-wrap: wrap;
    gap: 10px;
  }

  div.sales-content
    div.general-header-info
    div.screen-row-content
    > div.screen-row-3:nth-child(1) {
    width: 60%;
  }

  div.sales-content
    div.general-header-info
    div.screen-row-content
    > div.screen-row-3:nth-child(2) {
    width: 38%;
  }

  div.sales-content
    div.general-header-info
    div.screen-row-content
    > div.screen-row-3:nth-child(3) {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
  }

  div.sales-content
    div.general-header-info
    div.screen-row-content
    > div.screen-row-3:nth-child(3)
    div.screen-item {
    flex: 1;
    min-width: 0;
  }

  div.sales-content
    div.general-header-info
    div.screen-row-content
    > div.screen-row-3:nth-child(3)
    div.cell-extra-big-label {
    min-width: unset !important;
    flex-shrink: 0;
  }

  div.sales-content
    div.general-header-info
    div.screen-row-content
    > div.screen-row-3:nth-child(3)
    div.combobox-medium {
    width: 100%;
    min-width: 0;
  }

  div.sales-content
    div.general-header-info
    div.screen-row-content
    > div.screen-row-3:nth-child(3)
    div.screen-item.dummy-line {
    display: none;
  }

  div.patient-data.sales-data div.general-header-buttons {
    width: 90px;
  }

  div.patient-data.sales-data
    div.screen-row.screen-row-space-between.screen-row-title {
    flex-wrap: wrap;
  }

  div.patient-data.sales-data
    div.screen-row.screen-row-space-between.screen-row-title
    > * {
    width: 100%;
  }

  div.patient-data.sales-data
    div.screen-row.screen-row-space-between.screen-row-title
    > *:first-child {
    order: 2;
    margin-bottom: 0;
  }

  div.patient-data.sales-data
    div.screen-row.screen-row-space-between.screen-row-title
    > *:last-child {
    order: 1;
    margin-bottom: 10px;
  }

  div.patient-data.sales-data.sale-data
    div.screen-row.screen-row-space-between.screen-row-title
    > *:first-child {
    order: unset;
    margin-bottom: 0;
  }

  div.patient-data.sales-data.sale-data
    div.screen-row.screen-row-space-between.screen-row-title
    > *:last-child {
    order: unset;
    margin-bottom: 0;
  }

  div.patient-data.sales-data
    div.general-header-info
    div.screen-row.screen-row-space-between.screen-row-title {
    flex-wrap: nowrap;
  }

  div.patient-data.sales-data
    div.general-header-info
    div.screen-row.screen-row-space-between.screen-row-title
    > * {
    width: auto;
    order: unset;
    margin-bottom: 0;
  }

  div.sale-fact-body {
    padding-top: 0px !important;
  }

  div.sale-fact-body-data {
    position: absolute;
    margin-top: 4px;
  }

  div.patient-data.sales-data.sale-data div.general-header-buttons {
    justify-content: flex-start;
    gap: 20px;
  }

  div.patient-data.sales-data.sale-data
    div.sales-right
    div.combobox.combobox-default.combobox-filter {
    width: 180px;
  }

  div.patient-data.sales-data:not(.sale-data)
    div.sales-right
    div.combobox.combobox-default.combobox-filter {
    width: 180px;
  }

  div.patient-data.sales-data.sale-data
    div.screen-row.screen-row-space-between.screen-row-content {
    flex-wrap: wrap;
  }

  div.patient-data.sales-data.sale-data
    div.screen-row.screen-row-space-between.screen-row-content
    > *:nth-child(1),
  div.patient-data.sales-data.sale-data
    div.screen-row.screen-row-space-between.screen-row-content
    > *:nth-child(2) {
    width: 48%;
  }

  div.patient-data.sales-data.sale-data
    div.screen-row.screen-row-space-between.screen-row-content
    > *:nth-child(3) {
    width: 100%;
    margin-left: 52%;
    flex-direction: column;
    gap: 5px;
    margin-top: -33px;
  }

  div.patient-data.sales-data.sale-data.sale-order-data
    div.screen-row.screen-row-space-between.screen-row-content
    > *:nth-child(3) {
    margin-top: 0px;
  }

  div.patient-data.sales-data.sale-data.sale-order-data button.button-icon-ver {
    width: unset !important;
  }

  div.patient-data.sales-data.sale-data
    div.screen-row-accept-venta
    button.button-icon-ver {
    width: unset !important;
  }

  div.sales-notification {
    max-width: 500px !important;
  }

  div.screen-item.sales-button-checks {
    margin-top: 5px;
  }

  div.store-data-content
    div.store-info
    div.input-data.input-icon-search.input-large {
    width: 285px;
  }

  div.store-data-content div.store-product-filter {
    flex-wrap: wrap;
    padding-top: 10px !important;
    padding-left: 0px;
  }

  div.store-data-content div.store-product-filter:nth-child(3) {
    margin-bottom: 30px;
  }

  div.store-data-content div.rdt_TableHead * {
    white-space: normal !important;
  }

  div.store-data-content div.store-products-table div.custom-datatable,
  div.store-data-content div.store-products-table div.custom-datatable > div,
  div.store-data-content
    div.store-products-table
    div.custom-datatable
    > div
    > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  div.store-data-content div.store-products-table div.rdt_Table {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  div.store-data-content
    div.store-products-table
    div.rdt_Table
    div.rdt_TableHeadRow
    > div,
  div.store-data-content
    div.store-products-table
    div.rdt_Table
    div.rdt_TableBody
    > div
    > div {
    padding: 3px !important;
  }

  div.store-data-content
    .custom-datatable
    div.rdt_Table
    .rdt_TableRow
    .rdt_TableCell
    div {
    font-size: 11px !important;
  }

  div.store-data-content .custom-datatable div.rdt_Table .rdt_TableHeadRow {
    font-size: 11px !important;
  }

  div.store-data-content div.store-product-buttons {
    position: relative;
    order: -1;
    flex-basis: 100%;
    justify-content: flex-end;
    padding-bottom: 10px;
  }

  div.store-data-content div.store-product-filter div.input-data {
    width: 270px;
  }

  div.delivery-note-content #delivery-note-filters-grid {
    grid-template-columns: 140px 1fr 5px 140px 5px 140px 0px 140px 140px !important;
  }

  div.invoice-content #invoices-filters-grid {
    grid-template-columns: 90px 335px 30px 90px 160px 20px 80px 30px !important;
  }

  div.suppliers-content .custom-datatable div.rdt_Table .rdt_TableHeadRow {
    padding-left: 3px;
    padding-right: 3px;
  }

  div.suppliers-content .custom-datatable .rdt_TableRow {
    padding-left: 3px;
    padding-right: 10px;
  }

  div.suppliers-content .custom-datatable div.rdt_Table .rdt_TableHeadRow {
    padding: 0px 3px !important;
  }

  div.suppliers-content .custom-datatable .rdt_TableHeadRow .rdt_TableCol {
    padding: 0px !important;
  }

  div.crm-content .dashboard-content-data > div {
    gap: 10px !important;
  }

  div.crm-content div.rdt_TableHeadRow * {
    white-space: nowrap !important;
  }

  div.crm-content
    div.crm-autosend-container.thin-rounded-border
    > div.autosend-container {
    width: 100%;
    max-width: unset;
  }

  div.crm-content #crm-campaigns-lists {
    grid-template-columns: 60px 1fr 20px 92px 150px 20px 50px 1fr 20px 100px !important;
  }

  /* Fecha hasta label → fila 2, col 4 */
  div.crm-content #crm-campaigns-lists > div:nth-child(7) {
    grid-row: 2;
    grid-column: 4;
  }

  /* Fecha hasta date → fila 2, col 5 */
  div.crm-content #crm-campaigns-lists > div:nth-child(8) {
    grid-row: 2;
    grid-column: 5;
  }

  /* sep → fila 2, col 6 */
  div.crm-content #crm-campaigns-lists > div:nth-child(9) {
    grid-row: 2;
    grid-column: 6;
  }

  /* Canal label → fila 1, col 7 */
  div.crm-content #crm-campaigns-lists > div:nth-child(10) {
    grid-row: 1;
    grid-column: 7;
  }

  /* Canal input → fila 1, col 8 */
  div.crm-content #crm-campaigns-lists > div:nth-child(11) {
    grid-row: 1;
    grid-column: 8;
  }

  /* sep → fila 1, col 9 */
  div.crm-content #crm-campaigns-lists > div:nth-child(12) {
    grid-row: 1;
    grid-column: 9;
  }

  /* Limpiar filtros → fila 1, col 10 */
  div.crm-content #crm-campaigns-lists > div:nth-child(13) {
    grid-row: 1;
    grid-column: 10;
  }

  div.crm-content .crm-list-container {
    min-width: unset !important;
    max-height: 690px !important;
  }

  /* CRM - Filtros de lista (mismas reglas que Dashboard > Resumen de pacientes) */

  div.crm-content div.dashboard-sec-filters:has(#patient-file-filters) {
    flex-direction: column !important;
    gap: 2px !important;
  }

  div.crm-content
    div.dashboard-sec-filters:has(#patient-file-filters)
    div.store-col-sec:first-child {
    width: 100% !important;
  }

  div.crm-content
    div.dashboard-sec-filters:has(#patient-file-filters)
    div.store-col-sec:last-child {
    width: 50% !important;
  }

  div.crm-content div.dashboard-subsection-content > div:has(#glasses-type) {
    flex-direction: column !important;
    gap: 8px !important;
  }

  div.crm-content #glasses-type {
    grid-template-columns: repeat(6, auto) !important;
    margin-top: 0 !important;
    margin-bottom: 32px;
    column-gap: 15px !important;
  }

  div.crm-content div.dashboard-subsection-content div.dashboard-sec-filters {
    flex-direction: column !important;
  }

  div.crm-content
    div.dashboard-subsection-content
    div.dashboard-sec-filters
    div.store-col-sec {
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: wrap;
  }

  div.crm-content
    div.dashboard-subsection-content
    div.dashboard-sec-filters
    div.store-col-sec
    .opt-table-subtitle {
    flex-basis: 100%;
  }

  div.crm-content
    div.dashboard-subsection-content
    div.dashboard-sec-filters
    div.store-col-sec
    .data-field {
    flex: 1;
  }

  div.crm-content
    div.dashboard-subsection-content
    > div:has(#glasses-type)
    > div.store-col-sec {
    margin-top: 0 !important;
  }

  div.crm-content #patient-purchase-filters {
    grid-template-columns: auto 1fr 40px auto 1fr !important;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(6) {
    display: none;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(14) {
    display: none;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(22) {
    display: none;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(25) {
    display: none;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(9) {
    grid-row: 2;
    grid-column: 1;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(10) {
    grid-row: 2;
    grid-column: 2;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(11) {
    grid-row: 2;
    grid-column: 3;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(12) {
    grid-row: 2;
    grid-column: 4;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(13) {
    grid-row: 2;
    grid-column: 5;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(17) {
    grid-row: 3;
    grid-column: 1;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(18) {
    grid-row: 3;
    grid-column: 2;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(19) {
    grid-row: 3;
    grid-column: 3;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(20) {
    grid-row: 3;
    grid-column: 4;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(21) {
    grid-row: 3;
    grid-column: 5;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(7) {
    grid-row: 4;
    grid-column: 1 / 2 !important;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(8) {
    grid-row: 4;
    grid-column: 2 / 3 !important;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(23) {
    grid-row: 4;
    grid-column: 4;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(24) {
    grid-row: 4;
    grid-column: 5;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(15) {
    grid-row: 5;
    grid-column: 1 / 2 !important;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(16) {
    grid-row: 5;
    grid-column: 2 / 3 !important;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(26) {
    grid-row: 5;
    grid-column: 4;
  }
  div.crm-content #patient-purchase-filters > div:nth-child(27) {
    grid-row: 5;
    grid-column: 5;
  }

  div.crm-content #patient-general-filters {
    grid-template-columns: auto 1fr 20px auto 1fr 20px auto 1fr !important;
  }
  div.crm-content #patient-general-filters > div:nth-child(9) {
    display: none;
  }
  div.crm-content #patient-general-filters > div:nth-child(10) {
    grid-row: 3;
    grid-column: 1;
  }
  div.crm-content #patient-general-filters > div:nth-child(11) {
    grid-row: 3;
    grid-column: 2;
  }
  div.crm-content #patient-general-filters > div:nth-child(12) {
    grid-row: 3;
    grid-column: 3;
  }
  div.crm-content #patient-general-filters > div:nth-child(13) {
    grid-row: 3;
    grid-column: 4;
  }
  div.crm-content #patient-general-filters > div:nth-child(14) {
    grid-row: 3;
    grid-column: 5;
  }
  div.crm-content #patient-general-filters > div:nth-child(15) {
    grid-row: 2;
    grid-column: 1;
  }
  div.crm-content #patient-general-filters > div:nth-child(16) {
    grid-row: 2;
    grid-column: 2;
  }
  div.crm-content #patient-general-filters > div:nth-child(17) {
    grid-row: 2;
    grid-column: 3;
  }
  div.crm-content #patient-general-filters > div:nth-child(18) {
    grid-row: 2;
    grid-column: 4;
  }
  div.crm-content #patient-general-filters > div:nth-child(19) {
    grid-row: 2;
    grid-column: 5;
  }
  div.crm-content #patient-general-filters > div:nth-child(20) {
    grid-row: 2;
    grid-column: 6;
  }
  div.crm-content #patient-general-filters > div:nth-child(21) {
    grid-row: 2;
    grid-column: 7;
  }
  div.crm-content #patient-general-filters > div:nth-child(22) {
    grid-row: 2;
    grid-column: 8;
  }
  div.crm-content #patient-general-filters > div:nth-child(23) {
    display: none;
  }
  div.crm-content #patient-general-filters > div:nth-child(24) {
    grid-row: 4;
    grid-column: 1;
  }
  div.crm-content #patient-general-filters > div:nth-child(25) {
    grid-row: 4;
    grid-column: 2;
  }
  div.crm-content #patient-general-filters > div:nth-child(26) {
    grid-row: 4;
    grid-column: 3;
  }
  div.crm-content #patient-general-filters > div:nth-child(27) {
    grid-row: 4;
    grid-column: 4;
  }
  div.crm-content #patient-general-filters > div:nth-child(28) {
    grid-row: 4;
    grid-column: 5;
  }

  /* CRM - popup Estadísticas de campaña */
  div.crm-content
    .popup-screen.fullscreen
    .container-panel:has(.crm-summary-box-subsection) {
    width: 100%;
    align-items: stretch !important;
    box-sizing: border-box;
  }
  div.crm-content
    .popup-screen.fullscreen
    .container-panel:has(.crm-summary-box-subsection)
    > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100%;
    box-sizing: border-box;
  }
  div.crm-content
    .popup-screen.fullscreen
    .container-panel:has(.crm-summary-box-subsection)
    > div:first-child
    > .crm-summary-box-subsection {
    width: auto !important;
    min-width: 0 !important;
  }
  div.crm-content
    .popup-screen.fullscreen
    .container-panel:has(.crm-summary-box-subsection)
    > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100%;
    box-sizing: border-box;
  }
  div.crm-content
    .popup-screen.fullscreen
    .container-panel:has(.crm-summary-box-subsection)
    > div:last-child
    > .crm-summary-box-subsection {
    width: auto !important;
    min-width: 0 !important;
  }

  body div.crm-content .popup-screen.fullscreen #search-patient-campaign {
    grid-template-columns: auto 1fr 15px auto 1fr 15px auto 30px 80px 80px !important;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-content-data
    > div:first-child {
    gap: 10px !important;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-content-data
    > div:first-child
    > div:first-child {
    gap: 10px !important;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-content-data
    > div.thin-rounded-border
    > div:last-child {
    gap: 15px;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-section
    > div.dashboard-sec-row {
    flex-direction: column !important;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-section
    > div.dashboard-sec-row
    > div.dashboard-sec-row:last-child {
    padding-right: 10px;
  }

  div.patient-data-content.dashboard-content #dashboard-output-setting-2 {
    grid-template-columns: 180px 100px 30px 20px 150px 20px 200px !important;
  }

  div.patient-data-content.dashboard-content
    div.thin-section-rounded-border
    > div
    > div:first-child {
    gap: 7px !important;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-sec-filters:has(#patient-file-filters) {
    flex-direction: column !important;
    gap: 2px !important;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-sec-filters:has(#patient-file-filters)
    div.store-col-sec:first-child {
    width: 100% !important;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-sec-filters:has(#patient-file-filters)
    div.store-col-sec:last-child {
    width: 50% !important;
  }

  /* Gafas: outer container → column, gap reducido */
  div.patient-data-content.dashboard-content
    div.dashboard-subsection-content
    > div:has(#glasses-type) {
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* Gafas: Vista/Sol/Vista y sol → horizontal en una fila con más espaciado */
  div.patient-data-content.dashboard-content #glasses-type {
    grid-template-columns: repeat(6, auto) !important;
    margin-top: 0 !important;
    margin-bottom: 32px;
    column-gap: 15px !important;
  }

  /* Gafas: Datos de la montura y Datos de la lente → filas separadas */
  div.patient-data-content.dashboard-content
    div.dashboard-subsection-content
    div.dashboard-sec-filters {
    flex-direction: column !important;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-subsection-content
    div.dashboard-sec-filters
    div.store-col-sec {
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: wrap;
  }

  /* Subtítulo ocupa fila completa */
  div.patient-data-content.dashboard-content
    div.dashboard-subsection-content
    div.dashboard-sec-filters
    div.store-col-sec
    .opt-table-subtitle {
    flex-basis: 100%;
  }

  /* Proveedores y Marcas en horizontal */
  div.patient-data-content.dashboard-content
    div.dashboard-subsection-content
    div.dashboard-sec-filters
    div.store-col-sec
    .data-field {
    flex: 1;
  }

  /* Tipo gafa: sin margen superior */
  div.patient-data-content.dashboard-content
    div.dashboard-subsection-content
    > div:has(#glasses-type)
    > div.store-col-sec {
    margin-top: 0 !important;
  }

  div.patient-data-content.dashboard-content #patient-purchase-filters {
    grid-template-columns: auto 1fr 40px auto 1fr !important;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(6) {
    display: none;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(14) {
    display: none;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(22) {
    display: none;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(25) {
    display: none;
  }
  /* Row 2: Fecha compra hasta + Volumen compra hasta */
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(9) {
    grid-row: 2;
    grid-column: 1;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(10) {
    grid-row: 2;
    grid-column: 2;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(11) {
    grid-row: 2;
    grid-column: 3;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(12) {
    grid-row: 2;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(13) {
    grid-row: 2;
    grid-column: 5;
  }
  /* Row 3: Sea última compra + No incluir compras devueltas */
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(17) {
    grid-row: 3;
    grid-column: 1;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(18) {
    grid-row: 3;
    grid-column: 2;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(19) {
    grid-row: 3;
    grid-column: 3;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(20) {
    grid-row: 3;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(21) {
    grid-row: 3;
    grid-column: 5;
  }
  /* Row 4: Puntos disponibles desde (col1) + Con fidelización (col4) */
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(7) {
    grid-row: 4;
    grid-column: 1 / 2 !important;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(8) {
    grid-row: 4;
    grid-column: 2 / 3 !important;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(23) {
    grid-row: 4;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(24) {
    grid-row: 4;
    grid-column: 5;
  }
  /* Row 5: Puntos disponibles hasta (col1) + Sin fidelización (col4) */
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(15) {
    grid-row: 5;
    grid-column: 1 / 2 !important;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(16) {
    grid-row: 5;
    grid-column: 2 / 3 !important;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(26) {
    grid-row: 5;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #patient-purchase-filters
    > div:nth-child(27) {
    grid-row: 5;
    grid-column: 5;
  }

  div.patient-data-content.dashboard-content #patient-general-filters {
    grid-template-columns: auto 1fr 20px auto 1fr 20px auto 1fr !important;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(9) {
    display: none;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(10) {
    grid-row: 3;
    grid-column: 1;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(11) {
    grid-row: 3;
    grid-column: 2;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(12) {
    grid-row: 3;
    grid-column: 3;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(13) {
    grid-row: 3;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(14) {
    grid-row: 3;
    grid-column: 5;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(15) {
    grid-row: 2;
    grid-column: 1;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(16) {
    grid-row: 2;
    grid-column: 2;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(17) {
    grid-row: 2;
    grid-column: 3;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(18) {
    grid-row: 2;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(19) {
    grid-row: 2;
    grid-column: 5;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(20) {
    grid-row: 2;
    grid-column: 6;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(21) {
    grid-row: 2;
    grid-column: 7;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(22) {
    grid-row: 2;
    grid-column: 8;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(23) {
    display: none;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(24) {
    grid-row: 4;
    grid-column: 1;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(25) {
    grid-row: 4;
    grid-column: 2;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(26) {
    grid-row: 4;
    grid-column: 3;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(27) {
    grid-row: 4;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #patient-general-filters
    > div:nth-child(28) {
    grid-row: 4;
    grid-column: 5;
  }

  div.patient-data-content.dashboard-content #dashboard-store-stats {
    grid-template-columns: auto 1fr 20px auto 1fr 20px auto !important;
  }
  div.patient-data-content.dashboard-content
    #dashboard-store-stats
    > div:nth-child(7) {
    grid-row: 2;
    grid-column: 1;
  }
  div.patient-data-content.dashboard-content
    #dashboard-store-stats
    > div:nth-child(8) {
    grid-row: 2;
    grid-column: 2;
  }
  div.patient-data-content.dashboard-content
    #dashboard-store-stats
    > div:nth-child(9) {
    grid-row: 2;
    grid-column: 3;
  }
  div.patient-data-content.dashboard-content
    #dashboard-store-stats
    > div:nth-child(10) {
    grid-row: 2;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #dashboard-store-stats
    > div:nth-child(11) {
    grid-row: 2;
    grid-column: 5;
  }
  div.patient-data-content.dashboard-content
    #dashboard-store-stats
    > div:nth-child(12) {
    grid-row: 1;
    grid-column: 7;
  }
  div.patient-data-content.dashboard-content
    #dashboard-store-stats
    > div:nth-child(13) {
    grid-row: 2;
    grid-column: 7;
    justify-self: end;
  }
  div.patient-data-content.dashboard-content
    #dashboard-store-stats
    > div:nth-child(14) {
    grid-row: 3;
    grid-column: 1 / -1;
  }

  div.patient-data-content.dashboard-content #dashboard-patient-stats {
    grid-template-columns: auto 1fr 20px auto 1fr 20px auto !important;
  }
  div.patient-data-content.dashboard-content
    #dashboard-patient-stats
    > div:nth-child(4) {
    grid-row: 2;
    grid-column: 1;
  }
  div.patient-data-content.dashboard-content
    #dashboard-patient-stats
    > div:nth-child(5) {
    grid-row: 2;
    grid-column: 2;
  }
  div.patient-data-content.dashboard-content
    #dashboard-patient-stats
    > div:nth-child(6) {
    grid-row: 2;
    grid-column: 3;
  }
  div.patient-data-content.dashboard-content
    #dashboard-patient-stats
    > div:nth-child(7) {
    grid-row: 2;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #dashboard-patient-stats
    > div:nth-child(8) {
    grid-row: 2;
    grid-column: 5;
  }
  div.patient-data-content.dashboard-content
    #dashboard-patient-stats
    > div:nth-child(9) {
    grid-row: 1;
    grid-column: 7;
  }
  div.patient-data-content.dashboard-content
    #dashboard-patient-stats
    > div:nth-child(10) {
    grid-row: 2;
    grid-column: 7 !important;
    justify-self: end;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-section-title
    button.cell-label {
    white-space: nowrap !important;
    width: auto !important;
  }

  div.patient-data-content.dashboard-content #dashboard-filter-report-type {
    grid-template-columns: auto 1fr 20px auto 1fr 20px auto 1fr !important;
  }
  div.patient-data-content.dashboard-content
    #dashboard-filter-report-type
    > div:nth-child(9) {
    display: none;
  }
  div.patient-data-content.dashboard-content
    #dashboard-filter-report-type
    > div:nth-child(23) {
    display: none;
  }
  div.patient-data-content.dashboard-content
    #dashboard-filter-report-type
    > div:nth-child(10) {
    grid-row: 3;
    grid-column: 1;
  }
  div.patient-data-content.dashboard-content
    #dashboard-filter-report-type
    > div:nth-child(11) {
    grid-row: 3;
    grid-column: 2;
  }
  div.patient-data-content.dashboard-content
    #dashboard-filter-report-type
    > div:nth-child(12) {
    grid-row: 3;
    grid-column: 3;
  }
  div.patient-data-content.dashboard-content
    #dashboard-filter-report-type
    > div:nth-child(13) {
    grid-row: 3;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #dashboard-filter-report-type
    > div:nth-child(14) {
    grid-row: 3;
    grid-column: 5;
  }
  div.patient-data-content.dashboard-content
    #dashboard-filter-report-type
    > div:nth-child(24) {
    grid-row: 4;
    grid-column: 1;
  }
  div.patient-data-content.dashboard-content
    #dashboard-filter-report-type
    > div:nth-child(25) {
    grid-row: 4;
    grid-column: 2;
  }
  div.patient-data-content.dashboard-content
    #dashboard-filter-report-type
    > div:nth-child(26) {
    grid-row: 4;
    grid-column: 3;
  }
  div.patient-data-content.dashboard-content
    #dashboard-filter-report-type
    > div:nth-child(27) {
    grid-row: 4;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #dashboard-filter-report-type
    > div:nth-child(28) {
    grid-row: 4;
    grid-column: 5;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-summary-table.thin-rounded-border
    div.rdt_TableCell:last-child {
    font-size: 11px !important;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-summary-chart.thin-rounded-border
    > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-summary-chart.thin-rounded-border
    > div
    > *:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 20px;
    justify-self: end;
  }

  div.patient-data-content.dashboard-content #sales-dashboard-grid {
    grid-template-columns: 70px 1fr 30px 90px 150px 30px 100px !important;
  }
  div.patient-data-content.dashboard-content
    #sales-dashboard-grid
    > div:nth-child(4) {
    grid-row: 2;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #sales-dashboard-grid
    > div:nth-child(5) {
    grid-row: 2;
    grid-column: 5;
  }
  div.patient-data-content.dashboard-content
    #sales-dashboard-grid
    > div:nth-child(6) {
    grid-row: 2;
    grid-column: 6 / -1;
  }
  div.patient-data-content.dashboard-content
    #sales-dashboard-grid
    > div:nth-child(7) {
    grid-row: 1;
    grid-column: 4;
  }
  div.patient-data-content.dashboard-content
    #sales-dashboard-grid
    > div:nth-child(8) {
    grid-row: 1;
    grid-column: 5;
  }
  div.patient-data-content.dashboard-content
    #sales-dashboard-grid
    > div:nth-child(9) {
    grid-row: 1;
    grid-column: 6;
  }
  div.patient-data-content.dashboard-content
    #sales-dashboard-grid
    > div:nth-child(10) {
    grid-row: 1;
    grid-column: 7;
  }
  div.patient-data-content.dashboard-content
    #sales-dashboard-grid
    .combined-cells-8 {
    grid-column: 3;
  }
  div.patient-data-content.dashboard-content
    #sales-dashboard-grid
    .combined-cells-10 {
    grid-column: span 7;
  }

  div.dashboard-sales-filter > div > div:first-child {
    gap: 15px !important;
  }

  div.dashboard-sales-filter
    > div
    > div:first-child
    div.rdt_TableCell:last-child {
    font-size: 11px;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-content-panel
    .recharts-legend-wrapper {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    top: 12px !important;
  }

  div.patient-data-content.dashboard-content
    div.dashboard-content-panel
    svg.recharts-surface[role="application"] {
    margin-top: 15px;
  }

  div.patient-data.sales-data.sale-data
    div.screen-row.screen-row-space-between.screen-row-content
    > *:nth-child(3)
    div.cell-extra.cell-extra-big-label {
    min-width: 120px !important;
  }

  div.patient-data.sales-data.sale-data
    div.screen-row.screen-row-space-between.screen-row-title {
    flex-wrap: nowrap;
  }

  div.patient-data.sales-data.sale-data
    div.screen-row.screen-row-space-between.screen-row-title.screen-row-total {
    flex-wrap: wrap;
  }

  div.patient-data.sales-data.sale-data
    div.screen-row.screen-row-space-between.screen-row-title.screen-row-total
    div.sales-right {
    margin-top: 10px;
  }

  div.patient-data.sales-data.sale-data
    div.screen-row.screen-row-space-between.screen-row-title.screen-row-total
    div.sales-left {
    justify-content: flex-end;
  }

  div.sales-right.sales-right-total {
    width: unset !important;
  }

  div.sale-table-header.sale-table-pagos > div:nth-child(2) {
    width: 35%;
  }

  div.sale-table-header.sale-table-pagos > div:nth-child(3) {
    width: 45%;
  }

  div.patient-data.sales-data.sale-data
    div.patient-search-content.store-search-content:nth-child(1)
    div.input-data {
    width: unset !important;
  }

  div.patient-data.sales-data.sale-data
    div.patient-search-content.store-search-content:nth-child(3)
    div.input-data.input-full.inactive-bkg {
    max-width: 93px;
  }

  div.sales-table-left,
  div.sales-table-right {
    width: 50%;
  }

  div.patient-data.sales-data
    div.presupuestos-search-content
    div.screen-row.screen-row-space-between.screen-row-title {
    flex-wrap: nowrap;
  }

  div.patient-data.sales-data
    div.presupuestos-search-content
    div.screen-row.screen-row-space-between.screen-row-title
    > * {
    width: auto;
    order: unset;
    margin-bottom: 0;
  }

  div.screen-row.screen-row-space-between.screen-row-content span {
    font-size: 13px;
  }

  div.screen-row.screen-row-space-between.screen-row-content div.cell-extra {
    min-width: 100px !important;
  }

  /* Calendario - menú lateral */

  div.calendar-menu {
    min-width: 200px !important;
    width: 200px;
  }

  div.calendar-menu .calendar-calendar-footer-info {
    font-size: 15px !important;
  }

  div.calendar-menu .calendar-calendar-footer-info.calendarFooterText {
    white-space: nowrap;
    flex: 1;
    text-align: center;
  }

  div.calendar-menu div.calendar-calendar-footer.mes {
    width: 100%;
    column-gap: 5px;
  }

  div.calendar-menu div.calendar-calendar-footer.mes .calendarArrow {
    flex-shrink: 0;
  }

  div.calendar-calendar.semana:not(.diario)
    div.calendar-calendar-horas-menu-semana
    div.calendar-calendar-footer-info.calendarArrow.calendarArrowLeft {
    left: -5px !important;
  }

  div.calendar-calendar.semana.diario
    div.text-dias-semanas-dia
    div.calendar-calendar-footer-info.calendarArrow.calendarArrowRight {
    right: -25px !important;
  }

  div.calendar-calendar.semana.diario
    div.calendar-calendar-horas-menu-semana
    div.calendar-calendar-footer-info.calendarArrow.calendarArrowLeft {
    left: -25px !important;
  }

  div.calendar-menu > div.calendar-menu-header:nth-child(2) {
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-bottom: 15px;
  }

  div.calendar-menu > div.calendar-menu-header:nth-child(2) div.button-today {
    width: 110px !important;
    min-width: 110px !important;
  }

  div#calendar-types {
    margin-top: 15px;
  }

  div.calendar-menu > div.calendar-menu-header:nth-child(2) div.combobox {
    width: 100%;
  }

  /* Gafas - cabecera de ficha */

  #Gafas div.history-box-header {
    height: auto;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  #Gafas div.history-box-header-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    height: auto !important;
    gap: 5px 20px;
  }

  /* Compras - resumen */

  div.section-patient-sale-history-summary-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  div.section-patient-sale-history-summary-info > span {
    margin-right: 0px;
  }

  /* Dashboard - Resumen de almacén - popup gráficos */
  div.dashboard-content .sales-export-popup .w-auto {
    max-width: 1120px !important;
  }

  body
    div.dashboard-content
    .sales-export-popup
    div.popup-body.container-panel
    div.dashboard-section.rdbtn-selectable-on {
    width: 95% !important;
  }

  body .sales-export-popup .popup-message-extra {
    min-width: 950px !important;
  }

  div.dashboard-content .sales-export-popup .popup-body > div:first-child {
    flex-wrap: wrap;
  }

  div.dashboard-content
    .sales-export-popup
    div:has(> .recharts-responsive-container) {
    height: 440px !important;
  }

  div.dashboard-content .sales-export-popup div.recharts-wrapper > svg {
    height: 94% !important;
  }

  /* Dashboard - Resumen de pacientes - popup gráficos */
  div.dashboard-content .sales-export-popup .popup-message-extra:not(.w-auto) {
    max-width: 1120px !important;
  }

  div.dashboard-content
    .sales-export-popup
    .popup-body
    .thin-section-rounded-border
    > div:first-child {
    flex-wrap: wrap;
  }

  div.dashboard-content
    .sales-export-popup
    .popup-body
    .thin-section-rounded-border
    > div:last-child
    > div {
    height: 440px !important;
  }

  /* Almacén - Edición masiva */
  div.external-window.external-window-suppliers .section-content-info {
    flex-wrap: wrap !important;
  }
  div.external-window.external-window-suppliers
    .section-content-info
    > .flex-col-gap:nth-child(3) {
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  /* Proveedores - ficha */
  body div.ap-container:has(.supplier-info-container) {
    width: 95% !important;
    max-width: 95% !important;
  }
  div.suppliers-content .supplier-info-container,
  body div.ap-container .supplier-info-container {
    gap: 15px !important;
  }
  div.suppliers-content .supplier-info-container-col,
  body div.ap-container .supplier-info-container-col {
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }
  body div.ap-container .supplier-info-container-col:nth-child(1) .input-large {
    width: 275px !important;
  }
  body div.ap-container .supplier-info-container-col:nth-child(1) .combobox-large {
    width: 275px !important;
  }
  body div.ap-container .supplier-info-container-col:nth-child(1) .data-field .label {
    min-width: 90px !important;
    text-align: left !important;
  }
  body div.ap-container .supplier-info-container-col:nth-child(2) .input-large {
    width: 180px !important;
  }
  body
    div.ap-container
    .supplier-info-container-col:nth-child(2)
    .data-field
    .label {
    min-width: 150px !important;
    text-align: left !important;
  }

  /* Venta */
  body div.popup-control-sanitario div.popup-message {
    width: 1140px !important;
  }

  /* Optometría */
  body #popup-optometry .store-tab {
    font-size: 12px !important;
    padding: 3px 5px !important;
  }
  body #popup-optometry .w-220 {
    width: 150px !important;
  }
  body #popup-optometry .content-grid:has(#rx-anterior) {
    grid-template-columns: repeat(3, 2fr) repeat(3, 1.33fr) !important;
  }
  body #popup-optometry .content-grid:has(#accomodative-grid) {
    grid-template-columns: repeat(4, 1.15fr) repeat(4, 0.85fr) !important;
  }
  body #popup-optometry .content-grid:not(:has(#rx-anterior)):not(:has(#accomodative-grid)) {
    grid-template-columns: repeat(3, 1.14fr) repeat(3, 0.86fr) !important;
  }
  body #popup-optometry #prisma {
    grid-template-columns:
      minmax(0, 0.5fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 0.5fr) !important;
  }
  body #popup-optometry .cell,
  body #popup-optometry .cell-label {
    font-size: 12px !important;
  }
  body #popup-optometry .cell-extra .label {
    font-size: 13px !important;
  }
  body #popup-optometry .opt-table-title {
    font-size: 14px !important;
  }

  /* Optometría - pestañas avanzadas */
  body #popup-optometry .layer-grid-container {
    width: 100% !important;
  }
  body #popup-optometry #cover-test {
    grid-template-columns: 80px 80px 80px 45px 80px 80px 80px !important;
  }
  body #popup-optometry #eye-health-grid {
    grid-template-columns: 35px 35px 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr !important;
  }
  body #popup-optometry #accomodative-grid {
    grid-template-columns: 90px 120px 25px 25px !important;
  }

  /* Audiometría */
  body div.popup-screen:has(#audiometry-grid) .popup-screen-actions .popup-screen-box:nth-child(1) {
    width: 60% !important;
  }
  body div.popup-screen:has(#audiometry-grid) .popup-screen-actions .popup-screen-box:nth-child(2) {
    width: 38% !important;
  }
  body div.popup-screen:has(#audiometry-grid) .cell,
  body div.popup-screen:has(#audiometry-grid) .cell-label {
    font-size: 12px !important;
  }
  body div.popup-screen:has(#audiometry-grid) .popup-screen-actions .cell-extra .label {
    font-size: 12px !important;
  }
  body div.popup-screen:has(#audiometry-grid) .opt-table-title {
    font-size: 14px !important;
  }
  body div.popup-screen:has(#audiometry-grid) #audiometry-grid {
    grid-template-columns:
      1fr 0.25fr 0.6fr 1fr 0.85fr 1fr 1.15fr 1fr 1.35fr 0.85fr !important;
  }
  body div.popup-screen:has(#audiometry-grid) #audiometry-data-grid {
    grid-template-columns: 120px 1fr 10px !important;
  }

  /* Ficha de gafas */
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-actions .popup-screen-box:nth-child(1) {
    width: 50% !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-actions .popup-screen-box:nth-child(2) {
    width: 48% !important;
    display: grid !important;
    grid-template-columns: repeat(5, auto) !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .w-220 {
    width: 150px !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .cell,
  body div.popup-screen:has(#glasses-content-grid) .cell-label {
    font-size: 12px !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .cell-extra .label {
    font-size: 12px !important;
  }
  body div.popup-screen:has(#glasses-content-grid) div.cell.cell-label.combined-cells-2.cell-start-content {
    min-width: 80px !important;
  }
  body div.popup-screen:has(#glasses-content-grid) div.cell.cell-label.combined-cells-2:not(.cell-start-content),
  body div.popup-screen:has(#glasses-content-grid) div.cell.cell-label.combined-cells-2:not(.cell-start-content) + div.cell {
    margin-left: 20px !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .total-summary-info {
    grid-template-columns: 80px 1fr !important;
    width: 100% !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .total-summary-content {
    width: 100% !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .grid-8-summary {
    grid-template-columns: 50px auto !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-content-col.w-70 > div.container-panel:first-child .grid-8-summary {
    margin-top: 0px !important;
    margin-left: -80px !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-content-col.w-70 > div.container-panel:not(:first-child) .grid-8-summary {
    margin-top: 0px !important;
    margin-left: -55px !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .grid-8-summary .cell:empty {
    display: none !important;
  }
  body div.popup-screen:has(#glasses-content-grid) #glasses-content-grid .cell:has(> .button-icon-ver):not(:has(input)) {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
  }
  body div.popup-screen:has(#glasses-content-grid) #glasses-content-grid .cell-label,
  body div.popup-screen:has(#glasses-content-grid) #glasses-content-grid .cell:has(input),
  body div.popup-screen:has(#glasses-content-grid) #glasses-content-grid .cell:has(.button-icon-ver) {
    align-self: start !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-content-col.w-70 > div.container-panel #glasses-content-grid .cell:has(input):has(.button-icon-ver) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
    align-items: center !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-content-col.w-70 > div.container-panel #glasses-content-grid .cell:has(input):has(.button-icon-ver) > *:first-child {
    grid-column: 1 / -1 !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .opt-table-title {
    font-size: 14px !important;
  }

  /* Ficha de audífonos */
  body div.popup-screen:has(.popup-screen-content-col.w-70.full-height) .popup-screen-content-col.w-70.full-height > div.container-panel:first-child .grid-8-summary {
    margin-left: -80px !important;
  }

  /* Añadir montura / lente */
  body div.ap-container:has(#associate-product-grid) div.rdt_Table {
    max-width: 1020px !important;
  }

  /* Ficha pruebas lentes de contacto */
  body div.popup-screen:has(#cl-test-content-grid) .popup-screen-actions .popup-screen-box:nth-child(1) {
    width: 55% !important;
  }
  body div.popup-screen:has(#cl-test-content-grid) .popup-screen-actions .popup-screen-box:nth-child(2) {
    width: 43% !important;
    display: grid !important;
    grid-template-columns: repeat(4, auto) !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
  }
  body div.popup-screen:has(#cl-test-content-grid) .cell-extra .label {
    font-size: 12px !important;
  }
  body div.popup-screen:has(#cl-test-content-grid) .cell-label {
    white-space: nowrap !important;
  }
  body div.popup-screen:has(#cl-test-content-grid) .w-220 {
    width: 150px !important;
  }

  /* Albaranes - general */
  div.external-window.external-window-suppliers .albaran-data .data-field {
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  /* Albaranes - paso 2 */
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3) {
    flex-wrap: wrap !important;
    align-items: flex-end !important;
  }
  /* Fila 1: IVA, Recargo */
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)
    > *:nth-child(1),
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)
    > *:nth-child(2) {
    order: 1 !important;
    flex: 0 0 auto !important;
  }
  /* Salto de línea después de fila 1 */
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)::after {
    content: "" !important;
    order: 1 !important;
    flex: 0 0 100% !important;
    height: 0 !important;
  }
  /* Fila 2: PCB, DTO, PCN, Marca */
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)
    > *:nth-child(3),
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)
    > *:nth-child(4),
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)
    > *:nth-child(5),
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)
    > *:nth-child(6) {
    order: 2 !important;
    flex: 1 1 auto !important;
  }
  /* Fila 2: gap reducido entre label e input */
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)
    > *:nth-child(3),
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)
    > *:nth-child(4),
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)
    > *:nth-child(5),
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)
    > *:nth-child(6) {
    gap: 4px !important;
  }
  /* Fila 3: botones */
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)
    > *:nth-child(n + 7) {
    order: 4 !important;
    flex: 0 0 auto !important;
    margin-top: 10px !important;
  }
  /* Salto de línea antes de botones (::before es source-first, order 3 lo coloca justo antes de order-4) */
  div.external-window.external-window-suppliers
    .delivery-note-table-info-container
    > div:nth-child(3)::before {
    content: "" !important;
    order: 3 !important;
    flex: 0 0 100% !important;
    height: 0 !important;
  }

  /* Albaranes - paso 6 (Codificación): campos en fila 1, botones en fila 2 alineados a la derecha */
  div.external-window.external-window-suppliers
    .albaran-step6
    .delivery-note-table-info-container
    > div:nth-child(3) {
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
  }
  div.external-window.external-window-suppliers
    .albaran-step6
    .delivery-note-table-info-container
    > div:nth-child(3)
    > div {
    flex: 1 1 0 !important;
    order: 1 !important;
    min-width: 0 !important;
  }
  div.external-window.external-window-suppliers
    .albaran-step6
    .delivery-note-table-info-container
    > div:nth-child(3)
    > button {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin-top: 10px !important;
  }
  div.external-window.external-window-suppliers
    .albaran-step6
    .delivery-note-table-info-container
    > div:nth-child(3)::after {
    content: "" !important;
    order: 1 !important;
    flex: 0 0 100% !important;
    height: 0 !important;
  }

  /* Albaranes - paso 4 (Datos de venta): campos en fila 1, botones en fila 2 alineados a la derecha */
  div.external-window.external-window-suppliers
    .albaran-step4
    .delivery-note-table-info-container
    > div:nth-child(3) {
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
  }
  div.external-window.external-window-suppliers
    .albaran-step4
    .delivery-note-table-info-container
    > div:nth-child(3)
    > div {
    flex: 1 1 auto !important;
    order: 1 !important;
  }
  div.external-window.external-window-suppliers
    .albaran-step4
    .delivery-note-table-info-container
    > div:nth-child(3)
    > button {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin-top: 10px !important;
  }
  div.external-window.external-window-suppliers
    .albaran-step4
    .delivery-note-table-info-container
    > div:nth-child(3)::after {
    content: "" !important;
    order: 1 !important;
    flex: 0 0 100% !important;
    height: 0 !important;
  }

  /* Albaranes */
  div.external-window.external-window-suppliers
    div.albaran-data
    > div:first-child {
    gap: 20px !important;
  }
  div.external-window.external-window-suppliers
    div.albaran-data
    > div:first-child
    > * {
    width: 50% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  body div.external-window.external-window-suppliers #delivery-note-grid {
    grid-template-columns: 110px 150px 0.1fr 110px 140px !important;
  }

  /* Facturas de Albaranes */
  body #invoice-grid {
    grid-template-columns: 100px 200px 15px 120px 200px 15px 120px 200px !important;
  }
  div.tab-content.ap-content > div:nth-child(2) > div:first-child {
    width: 65% !important;
  }
  div.tab-content.ap-content > div:nth-child(2) > div:last-child {
    width: 35% !important;
  }
  body #duedates-generator-grid {
    grid-template-columns: auto 1fr auto 1fr !important;
  }
  body #duedates-generator-grid > div:nth-child(3),
  body #duedates-generator-grid > div:nth-child(6),
  body #duedates-generator-grid > div:nth-child(9) {
    display: none !important;
  }
  body #duedates-generator-grid > div:nth-child(4) {
    grid-row: 2;
    grid-column: 1;
  }
  body #duedates-generator-grid > div:nth-child(5) {
    grid-row: 2;
    grid-column: 2;
  }
  body #duedates-generator-grid > div:nth-child(7) {
    grid-row: 2;
    grid-column: 3;
  }
  body #duedates-generator-grid > div:nth-child(8) {
    grid-row: 2;
    grid-column: 4;
  }
  body #duedates-generator-grid > div:nth-child(10) {
    grid-row: 3;
    grid-column: 4;
  }

  /* Almacén */
  body div.external-window.external-window-suppliers {
    width: 98% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  div.external-window.external-window-suppliers > div:last-child {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }
  div.external-window.external-window-suppliers div:has(> div.product-info) {
    max-height: 730px !important;
  }
  div.external-window.external-window-suppliers
    div.container-panel.popup-screen-box {
    width: auto !important;
    flex-direction: column !important;
  }
  div.external-window.external-window-suppliers
    div.container-panel:has(> #product-content-grid) {
    width: auto !important;
    flex: 1 !important;
  }
  body div.external-window.external-window-suppliers #product-content-grid {
    grid-template-columns: auto 200px 10px auto 200px !important;
  }
  body
    div.external-window.external-window-suppliers
    #advanced-product-content-grid {
    grid-template-columns: auto 160px 15px auto 160px 15px auto 1fr !important;
  }
  div.external-window.external-window-suppliers div.product-info {
    flex-wrap: wrap !important;
  }
  div.external-window.external-window-suppliers
    div.product-info
    > div.product-info-col:first-child {
    width: 100% !important;
  }
  div.external-window.external-window-suppliers
    div.product-info
    > div.product-info-col:nth-child(2) {
    width: calc(50% - 5px) !important;
    box-sizing: border-box !important;
  }
  div.external-window.external-window-suppliers
    div.product-info
    > div.product-info-col:last-child {
    width: calc(50% - 5px) !important;
    box-sizing: border-box !important;
  }
}

@media screen and (max-width: 1080px) /*and (max-width: 1600px) */ {
  div.menu-item div.menu-inicio {
    padding-left: 0px !important;
  }

  div.menu-item div.section-title {
    margin-left: 10px;
    transition: margin-left 0.25s ease;
  }

  div.sidebar-app-hidden div.menu-item div.section-title {
    margin-left: 17px !important;
  }

  div.menu-item img.new-section {
    display: none;
  }

  div.menu {
    overflow-x: hidden;
  }

  /* Optometría */

  .popup-screen div.opt-table-container input {
    font-size: 12px !important;
  }

  .popup-screen {
    width: 98% !important;
    height: 98% !important;
  }

  .popup-screen div.cell-extra span.label {
    text-wrap: nowrap;
  }

  .popup-screen div.tab-content {
    padding: 20px 5px 20px 5px !important;
  }

  .popup-screen .popup-screen-box {
    width: 49% !important;
    gap: 8px;
    justify-content: flex-end;
  }

  .popup-screen div.popup-screen-box-info div.input-data.input-full,
  .popup-screen
    div.popup-screen-box-info
    div.combobox.combobox-default.combobox-filter {
    max-width: 140px;
  }

  div.patient-data.sales-data:not(.sale-data)
    div.sales-right
    div.combobox.combobox-default.combobox-filter {
    width: 150px;
  }

  .popup-screen-actions .cell-extra {
    justify-content: flex-end;
  }

  .popup-screen-actions .cell-extra-optometrista {
    grid-column: span 2;
  }

  .popup-screen-actions .combined-cells-3 {
    grid-column: span 2;
  }

  /*div.menu-item div.subsection-op {
    padding-right: 0px;
    margin-left: 0px !important;
  }

  div.menu-item div.subsection-row img {
    margin-right: 0px;
  }*/

  /* */

  div.external-window.external-window-obs {
    min-width: unset;
  }

  div#audiometry-testing div.combobox.combobox-medium {
    width: 128px;
  }

  div#audiometry-testing div.cell.cell-label.cell-start-content,
  div#audiometry-grid div.cell.cell-label.cell-start-content,
  div#DatosAudiometria div.cell.cell-label.cell-start-content {
    justify-content: flex-end !important;
    text-align: right;
    margin-right: 3px;
    align-items: flex-start;
    margin-bottom: 5px;
    min-width: 10%;
  }

  div.store-products-table div.rdt_Table div.rdt_TableHeadRow > div,
  div.store-products-table div.rdt_Table div.rdt_TableBody > div > div {
    padding: 4px !important;
  }

  div.store-products-table div.rdt_Table div.rdt_TableHeadRow,
  div.store-products-table div.rdt_Table div.rdt_TableBody {
    font-size: 12px !important;
  }

  div.product-info {
    flex-wrap: wrap;
  }

  div.product-info div.product-info-col:nth-child(2) {
    width: 30% !important;
  }

  div.product-info-col:last-child {
    flex-direction: row !important;
    width: 100% !important;
    justify-content: space-between;
  }

  div.product-info-col:last-child > div {
    width: 30% !important;
  }

  div.section-full-secs div.section-content-info {
    flex-wrap: wrap;
  }

  div.albaran-data {
    padding: 20px 20px !important;
  }

  div.albaran-data > div:first-child {
    flex-direction: column !important;
    gap: 15px;
  }

  div.albaran-data > div:first-child > div {
    width: 100% !important;
  }

  div.albaran-data > div:first-child > div > div {
    width: 100% !important;
  }

  div.albaran-data div.delivery-note-options-container > div:last-child {
    flex-direction: row !important;
  }

  div.albaran-data > div:first-child > div > div.opt-table-title {
    flex-direction: row !important;
  }

  div.albaran-data
    div.delivery-note-options-container
    div.delivery-note-buttons-container {
    flex-direction: row;
  }

  div.albaran-data div.delivery-note-buttons-container button.button-icon-ver {
    min-width: 125px;
  }

  div.albaran-data div.delivery-note-table-info-container > div:nth-child(3) {
    flex-direction: column !important;
    gap: 10px !important;
  }

  div.albaran-data
    div.delivery-note-table-info-container
    > div:nth-child(3)
    div.data-field {
    justify-content: flex-start;
  }

  div.albaran-data div.code-reading-container {
    min-width: 500px;
    margin-bottom: 30px;
  }

  div.delivery-note-filters-container.opt-table-content span {
    font-size: 11px !important;
  }

  /* Almacén */

  div.store-search-content div.input-data {
    width: 280px;
  }

  div.supplier-card-info div.section-content-data.store-content-data {
    flex-direction: column;
    gap: 0px;
  }

  div.input-search-panel-header {
    font-size: 12px;
  }

  div.store-data-content
    div.store-product-filter:nth-child(2)
    div.data-field:first-child
    span {
    display: none;
  }

  div.store-products-table div.custom-datatable div.sc-egiyK,
  div.store-products-table div.custom-datatable div.sc-hKwDye div {
    font-size: 11px !important;
  }

  div.store-products-table div.custom-datatable div.rdt_TableHeadRow div {
    overflow: unset;
    white-space: unset;
    text-overflow: unset;
  }

  /*div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(1)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(1) {
    min-width: 12%;
    max-width: 12%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(1)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(2) {
    min-width: 20%;
    max-width: 20%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(2) {
    min-width: 14%;
    max-width: 14%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(4),
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(5),
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(10),
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(11) {
    min-width: 0%;
    max-width: 0%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(2) {
    min-width: 18%;
    max-width: 18%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(3) {
    min-width: 31%;
    max-width: 31%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(13) {
    min-width: 10%;
    max-width: 10%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(4),
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(5),
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(6) {
    min-width: 0%;
    max-width: 0%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(2) {
    min-width: 14%;
    max-width: 14%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(3) {
    min-width: 23%;
    max-width: 23%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(14) {
    min-width: 9%;
    max-width: 9%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(4)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(1) {
    min-width: 11%;
    max-width: 11%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(4)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(2) {
    min-width: 15%;
    max-width: 15%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(4)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(7) {
    min-width: 8%;
    max-width: 8%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(5),
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(9),
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(10) {
    min-width: 0%;
    max-width: 0%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(2) {
    min-width: 17%;
    max-width: 17%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(3) {
    min-width: 14%;
    max-width: 14%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(4) {
    min-width: 17%;
    max-width: 17%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(12) {
    min-width: 10%;
    max-width: 10%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(6)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(1) {
    min-width: 12%;
    max-width: 12%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(6)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(2) {
    min-width: 17%;
    max-width: 17%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(6)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(4) {
    min-width: 21%;
    max-width: 21%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(6)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(7) {
    min-width: 9%;
    max-width: 9%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(5),
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(6),
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(10),
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(11) {
    min-width: 0%;
    max-width: 0%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(2) {
    min-width: 16%;
    max-width: 16%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(3) {
    min-width: 16%;
    max-width: 16%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(4) {
    min-width: 16%;
    max-width: 16%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(13) {
    min-width: 10%;
    max-width: 10%;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(1)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(4)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(1)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(5)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(1)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(6)
    div.sc-egiyK {
    display: none;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(4)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(5)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(6)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(7)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(8)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(9)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(10)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(2)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(11)
    div.sc-egiyK {
    display: none;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(4)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(5)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(6)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(7)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(8)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(9)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(10)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(11)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(3)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(12)
    div.sc-egiyK {
    display: none;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(4)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(5)
    div.sc-egiyK {
    display: none;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(5)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(6)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(7)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(8)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(9)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(5)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(10)
    div.sc-egiyK {
    display: none;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(6)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(5)
    div.sc-egiyK {
    display: none;
  }

  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(5)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(6)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(7)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(8)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(9)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(10)
    div.sc-egiyK,
  div.store-panel:has(
      div.store-tab-container div.store-tab.store-tab-selected:nth-child(7)
    )
    div.store-products-table
    div.custom-datatable
    div.sc-hKwDye:nth-child(11)
    div.sc-egiyK {
    display: none;
  }*/

  div.external-window.external-window-suppliers
    div.container-panel.popup-screen-box {
    width: 20% !important;
    display: flex;
    flex-direction: column;
  }

  div.external-window.external-window-suppliers
    div
    div:first-child
    div.container-panel:first-child {
    width: 78% !important;
    display: flex;
    align-items: center;
  }

  div.external-window.external-window-suppliers
    div
    div:first-child
    div.container-panel:first-child
    div.opt-table-content.grid-5 {
    row-gap: 15px;
  }

  div.external-window.external-window-suppliers
    div.product-info
    div.container-panel.product-info-col:first-child {
    width: 68% !important;
  }

  /* Almacén 1080px */
  div.external-window.external-window-suppliers
    div.container-panel.product-info-col {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  div.external-window.external-window-suppliers div.opt-table-content.grid-5 {
    width: 100% !important;
  }
  div.external-window.external-window-suppliers div:has(> div.product-info) {
    max-height: 650px !important;
  }
  body div.external-window.external-window-suppliers div.product-info {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  body
    div.external-window.external-window-suppliers
    div.product-info
    > div.product-info-col:first-child {
    width: 100% !important;
  }
  body
    div.external-window.external-window-suppliers
    div.product-info
    > div.product-info-col:nth-child(2) {
    width: calc(50% - 5px) !important;
    box-sizing: border-box !important;
  }
  body
    div.external-window.external-window-suppliers
    div.product-info
    > div.product-info-col:last-child {
    width: calc(50% - 5px) !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
  }
  div.external-window.external-window-suppliers
    div.product-info
    > div.product-info-col:last-child
    > div {
    width: unset !important;
  }
  div.external-window.external-window-suppliers
    div.product-stock-list-container {
    width: 100% !important;
  }

  div.external-window.external-window-suppliers {
    width: 95% !important;
  }

  /* Almacén - Edición masiva */
  div.external-window.external-window-suppliers .section-content-info {
    flex-wrap: nowrap !important;
  }

  /* Albaranes */
  body
    div.external-window.external-window-suppliers
    div.albaran-data
    > div:first-child {
    gap: 20px !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
  }
  div.external-window.external-window-suppliers
    div.albaran-data
    > div:first-child
    > * {
    width: 50% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 1 !important;
  }
  body div.external-window.external-window-suppliers #delivery-note-grid {
    grid-template-columns: auto 120px 0.1fr auto 110px !important;
  }
  div.external-window.external-window-suppliers
    .delivery-note-buttons-container
    button {
    min-width: 170px !important;
  }
  body
    div.external-window.external-window-suppliers
    div.albaran-data
    div.delivery-note-table-info-container
    > div:nth-child(3) {
    flex-direction: row !important;
  }

  /* Dashboard - popup gráficos */
  body
    div.dashboard-content
    .sales-export-popup
    .popup-message-extra:not(.w-auto) {
    max-width: 950px !important;
    min-width: 950px !important;
  }

  body div.dashboard-content .sales-export-popup .w-auto {
    max-width: 950px !important;
  }

  body div.dashboard-content .sales-export-popup #dashboard-stats-popup-grid {
    grid-template-columns: 270px 20px 270px 20px 270px !important;
  }

  body
    div.dashboard-content
    .sales-export-popup
    div:has(> .recharts-responsive-container) {
    height: 400px !important;
  }

  body div.dashboard-content .sales-export-popup #sales-export-data1 {
    grid-template-columns: 20px 110px 10px 20px 140px 10px 20px 140px 10px 20px 30px 10px 70px 150px !important;
  }

  body
    div.dashboard-content
    .sales-export-popup
    div.popup-body.container-panel
    div.dashboard-section.rdbtn-selectable-on {
    width: 95% !important;
  }

  /* CRM */
  div.crm-content .crm-list-container {
    max-height: 630px !important;
  }

  /* Facturas de Albaranes */
  body #invoice-grid {
    grid-template-columns: 100px 160px 10px 120px 160px 10px 120px 160px !important;
  }
  div.tab-content.ap-content > div:nth-child(2) > div:first-child {
    width: 50% !important;
  }
  div.tab-content.ap-content > div:nth-child(2) > div:last-child {
    width: 50% !important;
  }
  body #duedates-generator-grid {
    grid-template-columns: auto 1fr !important;
  }
  body #duedates-generator-grid > div:nth-child(4) {
    grid-row: 2;
    grid-column: 1;
  }
  body #duedates-generator-grid > div:nth-child(5) {
    grid-row: 2;
    grid-column: 2;
  }
  body #duedates-generator-grid > div:nth-child(7) {
    grid-row: 3;
    grid-column: 1;
  }
  body #duedates-generator-grid > div:nth-child(8) {
    grid-row: 3;
    grid-column: 2;
  }
  body #duedates-generator-grid > div:nth-child(10) {
    grid-row: 4;
    grid-column: 2;
    justify-self: end;
  }
  body #delivery-note-invoice-filters-grid {
    grid-template-columns: 70px 120px 10px 140px 160px 10px 140px 160px !important;
  }

  /* Venta */
  body div.popup-control-sanitario div.popup-message {
    width: 995px !important;
  }

  /* Optometría */
  body #popup-optometry .store-tab {
    font-size: 12px !important;
    padding: 3px 5px !important;
  }
  body #popup-optometry .popup-screen-box {
    width: auto !important;
  }
  body #popup-optometry .w-220 {
    width: 100px !important;
  }
  body #popup-optometry .content-grid {
    grid-template-columns: repeat(3, 2fr) repeat(3, 1.33fr) !important;
  }
  body #popup-optometry .cell,
  body #popup-optometry .cell-label {
    font-size: 12px !important;
  }
  body #popup-optometry .cell-extra .label {
    font-size: 13px !important;
  }
  body #popup-optometry .popup-screen-box .cell-extra .label {
    font-size: 11px !important;
  }
  body #popup-optometry .popup-screen-box .check-container-content span {
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  body #popup-optometry .opt-table-title {
    font-size: 14px !important;
  }
  body #popup-optometry .content-grid:has(#rx-anterior) {
    grid-template-columns: repeat(3, 2fr) repeat(3, 1.33fr) !important;
  }
  body #popup-optometry .content-grid:has(#accomodative-grid) {
    grid-template-columns: repeat(4, 1.05fr) repeat(4, 0.95fr) !important;
  }
  body #popup-optometry .content-grid:not(:has(#rx-anterior)):not(:has(#accomodative-grid)) {
    grid-template-columns: repeat(3, 1.05fr) repeat(3, 0.95fr) !important;
  }
  body #popup-optometry .content-grid:not(:has(#rx-anterior)) .popup-screen-box-info {
    grid-template-columns: auto 100px auto 75px !important;
  }
  body #popup-optometry .content-grid:not(:has(#rx-anterior)) .popup-screen-box {
    justify-content: flex-start !important;
  }
  body #popup-optometry .content-grid:not(:has(#rx-anterior)) .popup-screen-box .combobox-medium {
    width: 190px !important;
  }
  body #popup-optometry #accomodative-grid {
    grid-template-columns: 70px 90px 20px 20px !important;
  }
  body #popup-optometry #fv-grid {
    grid-template-columns: 20px 1fr 10px 20px 1fr !important;
  }
  body #popup-optometry #fv-grid .cell-label {
    white-space: nowrap !important;
  }
  body #popup-optometry #prisma {
    grid-template-columns:
      minmax(0, 0.5fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 0.5fr) !important;
  }
  body #popup-optometry #rx-nueva,
  body #popup-optometry #rx-anterior {
    grid-template-columns: 1fr 1fr 1fr 1fr 0.1fr 1fr 1fr 1fr 1fr 0.5fr !important;
  }
  body #popup-optometry #rx-nueva-correccion {
    max-width: 150px !important;
  }
  body #popup-optometry #rx-nueva .combined-cells-3 .check-container-content {
    white-space: nowrap !important;
  }

  /* Audiometría */
  body div.popup-screen:has(#audiometry-grid) .popup-screen-actions .popup-screen-box:nth-child(1) {
    width: 54% !important;
  }
  body div.popup-screen:has(#audiometry-grid) .popup-screen-actions .popup-screen-box:nth-child(2) {
    width: 44% !important;
  }
  body div.popup-screen:has(#audiometry-grid) .popup-screen-actions .popup-screen-box-info .combobox.combobox-filter {
    width: 120px !important;
    max-width: 120px !important;
  }

  /* Ficha de gafas */
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-content-col.w-70 {
    width: 65% !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-content-col.w-30 {
    width: 33% !important;
  }
  body div.popup-screen:has(#glasses-content-grid) #glasses-content-grid {
    grid-template-columns: 110px 1fr 10px 90px 1fr !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-content-col.w-70 > div.container-panel:first-child .grid-8-summary {
    margin-top: 0px !important;
    margin-left: 0px !important;
    grid-template-columns: 50px auto !important;
    justify-content: flex-start !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-content-col.w-70 > div.container-panel:not(:first-child) .grid-8-summary {
    margin-top: 0px !important;
    margin-left: 0px !important;
    grid-template-columns: 60px auto !important;
    justify-content: flex-start !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-content-col.w-70 > div.container-panel .grid-8-summary .cell:empty {
    display: none !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-content-col.w-70 > div.container-panel #glasses-content-grid > .cell.combined-cells-2:has(.grid-8-summary) {
    display: flex !important;
    justify-content: flex-end !important;
  }
  body div.popup-screen:has(#glasses-content-grid) #glasses-content-grid > .cell.combined-cells-2:has(.grid-8-summary) {
    grid-column: 1 / -1 !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-actions .popup-screen-box:nth-child(1) {
    width: 58% !important;
    justify-content: flex-start !important;
  }
  body div.popup-screen:has(#glasses-content-grid) .popup-screen-actions .popup-screen-box:nth-child(2) {
    width: 40% !important;
    display: grid !important;
    grid-template-columns: repeat(3, auto) !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 18px !important;
  }

  /* Añadir montura / lente */
  body div.ap-container:has(#associate-product-grid) div.rdt_Table {
    max-width: 880px !important;
  }

  /* Proveedores - ficha */
  body div.ap-container .supplier-info-container-col:nth-child(1) .input-large {
    width: 230px !important;
  }
  body div.ap-container .supplier-info-container-col:nth-child(1) .combobox-large {
    width: 230px !important;
  }
  body div.ap-container .supplier-info-container-col:nth-child(2) .input-large {
    width: 135px !important;
  }
  body div.ap-container .supplier-info-container-col:nth-child(2) .data-field .label {
    min-width: 145px !important;
  }
}
