/* CSS Variables */
:root {
  --text-lg: 1.2rem;
  --text-md: 1rem;
  --text-sm: 0.8rem;
  --spacing-row: 40px;
}

/* GENERAL UTILITY & GLOBAL STYLES */
.text-right {
    text-align: right;
}
.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}

input[type="file"]::file-selector-button {
    border: 2px solid #3A6EA5;
    /* border-radius: 10px; Seems overridden by the next border-radius */
    background-color: #3A6EA5;
    padding: 0.2em 0.4em;
    border-radius: 0.2em;
    transition: 1s;
    color: #FFFFFF;
    font-family: Inter, sans-serif;
    font-size: 18px;
}

/* MAP SPECIFIC STYLES */
#detail-map-full { /* Default state: sidebar assumed hidden or not affecting via .toggled */
    position:fixed !important;
    top: 52px !important;
    left: 70px !important; /* Full width when sidebar is not 'toggled' to be 250px */
    height: calc(100% - 52px) !important;
    width: 100% !important; /* Full width */
    z-index: 10;
    transition: left 0.35s ease-in-out, width 0.35s ease-in-out;
}

#wrapper.toggled #detail-map-full { /* State when sidebar is visible and toggled */
    left: 250px !important; /* Space for the sidebar */
    width: calc(100% - 250px) !important; /* Adjust width for the sidebar */
}
#detail-map-window {
    height: 500px;
    width: 592px;
}

/* ==========================================================================
   WINDOW NOTICE STYLES
   ========================================================================== */
.window-notice {    
    background: black;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(33, 41, 52, .75);
    box-sizing: content-box;
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 320px;
    min-width: 150px !important;
    overflow: hidden;
    position: absolute;
    top: 60px;
    left: 20px;
    width: 100%;
    padding: 2rem;
    font-size: 18px; /* User changed this from 1.3rem */
    z-index:15;
    color: #FFF;
}

.window-notice.min-width-200 {
    min-width: 200px !important;
}
.window-notice.min-width-400 {
    min-width: 400px !important;
}
.window-notice.min-width-600 {
    min-width: 600px !important;
}

#window-notice-header {
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    cursor: move;
}

#window-notice-collapse {
    max-height: 700px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    padding: 4px;
    width: 100%;
}

/* General elements within .window-notice */
.window-notice .white {
    color: #FFF !important;
}
.window-notice .add,
.window-notice .fa-plus { /* Merged .add and .fa-plus */
    color: #4285F4 !important;
}

/* Estilo específico para el icono de New Company */
.window-notice .company-table.new-company .fa-plus {
    font-size: 16px; /* Mismo tamaño que los iconos de compañía */
    width: 16px;
    height: 16px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}
.window-notice i { /* General icon color, can be overridden */
    color: #FFF !important;
}
.window-notice .fa-building, 
.window-notice .fa-industry, 
.window-notice .fa-map-marker-alt, 
.window-notice .fa-draw-polygon {
    font-size: inherit;
    vertical-align: middle;
    margin-right: 8px;
}

/* Ajuste específico para iconos según jerarquía */
.window-notice .company-header i.fa {
    font-size: 16px; /* Tamaño fijo para iconos en company-header */
    vertical-align: middle;
    line-height: inherit;
    display: inline-block;
    width: 16px; /* Ancho fijo para alineación consistente */
    text-align: center;
}

.window-notice .plant-header i.fa,
.window-notice .plant-row i.fa,
.window-notice .plant-row img.list-icon {
    font-size: 14px; /* Tamaño fijo para iconos en plant-header/row */
    vertical-align: middle;
    line-height: inherit;
    height: 14px;
    width: 14px; /* Ancho fijo para alineación consistente */
    text-align: center;
}

.window-notice .patio-header i.fa,
.window-notice .patio-row i.fa,
.window-notice .patio-row img.list-icon,
.window-notice .area-interest-header i.fa {
    font-size: 12px; /* Tamaño fijo para iconos en patio-header/row */
    vertical-align: middle;
    line-height: inherit;
    height: 12px;
    width: 12px; /* Ancho fijo para alineación consistente */
    text-align: center;
}

.window-notice .form-group label,
.window-notice .form-group .control-label { 
    color: white; 
    font-size: 14px;
}

.window-notice .form-control + .help-block {
    font-size: 10px;
}

.window-notice h1,
.window-notice h2 { 
    color: white;
    margin-top: 0px;    
}
.window-notice h2.title,
.window-notice h2.subtitle { 
    font-family: Inter, sans-serif;
    font-size: var(--text-lg);
    color: #FFFFFF;
}

/* Headers within .window-notice (not necessarily in company-table) */
.window-notice .txt-header { 
    color: #FFF !important;
    font-size: var(--text-lg); /* Mismo tamaño que los headers de compañía */
    font-weight: 500;
}

/* Estilo específico para el texto "New Company" */
.window-notice .company-table.new-company .nav_link {
    font-size: var(--text-lg); /* Mismo tamaño que los headers de compañía */
    font-weight: 500;
    color: #FFFFFF !important;
}
/* Company header styles - General style for standalone headers */
.window-notice .company-header { 
  font-size: var(--text-lg); /* 1.2rem - Larger size for standalone headers */
  font-weight: 500;
  color: #FFFFFF;
  width: 100%;
  text-transform: uppercase;
  display: flex; /* Usamos flexbox para alinear mejor los elementos */
  align-items: center;
  /* Eliminamos justify-content para permitir alineación natural a la izquierda */
  text-align: left; /* Alineación a la izquierda */
}

.window-notice .company-header .pull-right {
    margin-left: auto; /* Empuja este elemento a la derecha */
    display: flex; /* Alinea los botones hijos en una fila */
    align-items: center; /* Centra verticalmente los botones hijos */
}

/* Asegurar que el texto de la compañía esté alineado a la izquierda */
.window-notice .company-header a.nav_link {
  text-align: left !important;
  /* Eliminamos justify-content */
  display: inline-block !important; /* Cambiamos a inline-block para comportamiento más predecible */
  vertical-align: middle !important;
}
.window-notice .plant-header { 
    color: #C4C4C4 !important;
}
.window-notice .patio-header { 
    color: #CBCBCB !important;
}
.window-notice .area-interest-header { 
    color: #BEBEBE !important;
}

/* Buttons and Icons */
.window-notice .list-icon { 
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.window-notice .btn-basic {
  color: #FFFFFF;
  background: transparent;
  border: none; /* Quitamos el borde */
  padding: 4px 4px; /* Reducimos el padding horizontal */
  margin-left: 4px; /* Reducimos el margen izquierdo */
  border-radius: 4px;
  transition: all 0.2s;
  position: relative; /* Para el efecto hover con línea debajo */
  display: inline-flex; /* Mejor alineación */
  align-items: center;
  justify-content: center;
}

.window-notice .btn-basic:hover { /* Efecto hover mejorado */
  background: transparent; /* Sin fondo en hover */
}

/* Línea debajo del icono en hover */
.window-notice .btn-basic:hover:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 1px;
  background-color: #FFFFFF;
}

.window-notice .collapse-button {
    background-color: transparent;
    border: none;
    color: white;
    padding: 0;
    font-size: 16px;
    cursor: pointer;
    margin-left: 4px; /* Margen fijo en lugar de auto */
    display: inline-flex; /* Mejor alineación */
    align-items: center;
    justify-content: center;
    width: 24px; /* Ancho fijo */
    height: 24px; /* Altura fija */
}
.window-notice .collapse-button span {
    vertical-align: middle;
}

/* Rows and Indenters */
.window-notice .company-row,
.window-notice .plant-row,
.window-notice .patio-row { 
    width: 100%;
    display: table-row;
    line-height: 1.2; /* Reduce la altura de línea */
}

/* Ajuste específico para las filas de patio */
.window-notice .patio-row td {
    white-space: nowrap; /* Evita saltos de línea */
    overflow: visible; /* Permite que el contenido sea visible incluso si desborda */
    /* El padding se establece en la regla general para todas las celdas */
}
.window-notice .small-indenter {
    display: inline-block;
    width: 3px;
}
.window-notice .indenter {
    display: inline-block;
    width: 10px; 
    min-width: 10px;
}

/* Options (e.g. edit/delete links) */
.window-notice a.option {
    color: #FFFFFF;
    font-family: Inter, sans-serif;
    font-size: var(--text-md); 
}
.window-notice .option i {
    background-color: #3A6EA5;
    border: solid #3A6EA5; 
    border-radius: 10px;
    height: 40px;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Generic table.list within .window-notice (NOT company-table) */
.window-notice table.list,
.window-notice table.list a,
.window-notice table.list thead tr,
.window-notice table.list thead th {
    color: #FFFFFF; 
}
.window-notice table.list {
    border-collapse: separate;
    border-spacing: 0 15px;
}
.window-notice table.list thead tr,
.window-notice table.list tbody tr {
    border: none !important;
}
.window-notice table.list td {
    border: none;
}

/* table-details specific styling */
.window-notice .table-details tr td span { 
    padding-left: 20px; 
}


/* --- COMPANY TABLE specific styles within .window-notice --- */
.window-notice .company-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; 
  line-height: 1.4; 
  padding-bottom: 5px; 
  margin-bottom: 5px;
  background-color: transparent; /* Asegura fondo transparente */
  max-width: none; /* Evita restricciones de ancho máximo */
  min-width: 100%; /* Garantiza que ocupe todo el ancho disponible */
  text-align: left; /* Fuerza alineación a la izquierda para toda la tabla */
}

/* Asegurar que las filas ocupen todo el ancho */
.window-notice .company-table tr {
  width: 100%;
}

/* Asegurar que las celdas ocupen todo el ancho */
.window-notice .company-table td {
  width: 100%;
}

/* Ensure inner tables within .company-table also span full width */
.window-notice .company-table > table {
  width: 100%;
  table-layout: fixed;
}

/* Asegurar que las áreas colapsadas permanezcan ocultas */
.window-notice .collapse:not(.in) {
  display: none !important;
}

/* Asegurar que las líneas blancas abarquen el 100% */
.window-notice .company-table tr td,
.window-notice .company-table tr th {
  position: relative;
  padding-top: 2px;
  padding-bottom: 2px;
}

.window-notice .company-table tr td:after,
.window-notice .company-table tr th:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #FFFFFF;
  z-index: 1; /* Asegura que la línea esté por encima de otros elementos */
}

.window-notice .company-table th,
.window-notice .company-table td {
  vertical-align: middle;
  /* Eliminamos border-bottom ya que usamos el pseudo-elemento :after */
  border-bottom: none;
  line-height: 1.2; /* Reducido para compactar más */
  width: 100%; /* Asegura que ocupe todo el ancho */
  box-sizing: border-box; /* Incluye bordes en el cálculo de ancho */
  padding: 2px 0; /* Espaciado uniforme para todas las filas */
  text-align: left !important; /* Fuerza alineación a la izquierda */
}

.window-notice .company-table tr:last-child th,
.window-notice .company-table tr:last-child td {
  border-bottom: none;
}

/* Headers within .company-table */
/* Company header styles - More compact version for headers inside tables */
.window-notice .company-table .company-header { 
  font-size: var(--text-md); /* 1rem - Smaller size when in tables */
  font-weight: 500;
  color: #FFFFFF;
}

.window-notice .company-table .plant-header,
.window-notice .company-table .patio-header,
.window-notice .company-table .area-header, 
.window-notice .company-table .area-interest-header { 
  font-size: var(--text-sm); /* .8rem */
  font-weight: 400;
  color: #E0E0E0;
  line-height: 1.2; 
  vertical-align: middle; 
}

/* Nav links within .company-table */
.window-notice .company-table .nav_link { /* General nav_link within company-table */
  font-size: var(--text-sm); /* .8rem */
  color: #C4C4C4;
  text-decoration: none;
  transition: color 0.2s;
}
.window-notice .company-table .nav_link:not(.txt-header) { /* More specific nav_link, likely for actual list items */
  font-size: 16px; /* Mantenemos este valor fijo para compatibilidad con el diseño actual */
  color: #C4C4C4; 
  font-weight: 400;
  vertical-align: middle; 
}
.window-notice .company-table .nav_link:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.window-notice .company-table .nav_link:hover {
    color: #FFFFFF !important;
    text-decoration: none; /* Remove underline on hover for nav_links */
}

.window-notice .fs-10 {
    font-size: 10px !important;
    vertical-align: middle;
}

.window-notice .fs-12 {
    font-size: 12px !important;
}

.window-notice .fs-14 {
    font-size: 14px !important;  
}

/* Styles for Plant Add Action Badges */
.plant-add-actions-row td {
    padding-left: 20px !important; /* Align with plant/patio content, adjust as needed */
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    border-bottom: none !important; /* No underline for this container row */
}

/* Add similar styling for the 'Add Plant' badge's container row if it's different */
/* For example, if we use a class like 'company-add-actions-row' for the 'Add Plant' badge's <tr> */
.company-add-actions-row td {
    padding-left: 5px !important; /* Or desired indent for 'Add Plant' badge */
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    border-bottom: none !important;
}

.plant-add-actions-container {
    display: flex; /* To line up badges */
    align-items: center;
    gap: 10px; /* Space between badges */
}

.btn-add-badge-outline {
    display: inline-flex; /* Align icon and text */
    align-items: center;
    padding: 3px 7px; /* Smaller padding for a compact badge */
    border: 1px solid #4285F4; /* Outline color */
    border-radius: 12px; /* More rounded for a badge feel */
    color: #4285F4 !important; /* Text color */
    background-color: transparent;
    text-decoration: none !important;
    font-size: 0.6em; /* Slightly smaller text */
    line-height: 1.1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-add-badge-outline:hover {
    background-color: rgba(66, 133, 244, 0.15); /* Slight hover effect */
    border: 1px solid #4285F4;
    color: #4285F4 !important;
    text-decoration: none !important;
}

.btn-add-badge-outline .fa-plus {
    margin-right: 4px;
    font-size: 0.6em; /* Adjust icon size within badge */
    color: #4285F4 !important; /* Ensure icon color matches */
}

/* Specificity for icons within .window-notice */

/* ==========================================================================
   OTHER GLOBAL STYLES (Badges, Forms, etc.)
   ========================================================================== */
/* Style for add margin top*/
.p-0 {
    padding: 0;
}
.p-2 {
    padding: 0.5rem;
}
/* ... (other p-*, m-* classes would go here if present) ... */

.info-window {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.info-window p {
    margin: 0;
}

.nav-tabs > li.active > a {
    color: #337ab7 !important;
    font-weight: bold;
}
.nav-tabs > li > a{
    color: #333 !important;
}

.badge-primary {
    background-color: #337ab7 !important;
}
.badge-danger {
    background-color: #d9534f !important;
}
.badge-success {
    background-color: #5cb85c !important;
}
.badge-secondary {
    background-color: #6c757d !important;
}
.badge-warning {
    color: #212529 !important;
    background-color: #ffc107 !important;
}
.form-group > .select2-container {
    width: 100% !important;
}

/* Commented out block from original file */
.sidebar-actions {
    padding: 20px;
}

/* Sidebar-actions not found in other files */
.sidebar-actions .company-table {
    cursor: pointer;
    margin-bottom: 20px;
}
.sidebar-actions .list-icon {
    height: 20px;
    width: 20px;
    vertical-align: middle;
    margin-right: 8px;
    color: #004E98;
}
.sidebar-actions .company-header {
    font-size: 16px;
    font-weight: bold;
    color: #004E98;
}
.sidebar-actions .plant-header,
.sidebar-actions .patio-header,
.sidebar-actions .area-interest-header {
    font-size: 14px;
    color: #333;
}
.sidebar-actions .nav_link {
    color: #333;
    text-decoration: none;
}
.sidebar-actions .nav_link:hover {
    color: #004E98;
    text-decoration: underline;
}
.sidebar-actions .slider-container {
    width: 80%;
    margin: 20px auto;
}
.sidebar-actions .slider {
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    width: 100%; 
    height: 25px; 
    background: #d3d3d3; 
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}
.sidebar-actions .slider:hover {
    opacity: 1; 
}
.sidebar-actions .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #004E98; 
    cursor: pointer;
}
.sidebar-actions .slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #004E98;
    cursor: pointer;
}
.sidebar-actions .table {
    background-color: white;
}

/* Add these at the end of the file or in an appropriate section */

.nav_link.plant-name {
    font-size: 15px !important;
}

.nav_link.patio-name {
    font-size: 14px !important;
}

/* Ensure other .nav_link styles don't conflict too strongly */
/* For example, if .nav_link has its own font-size, these specific classes will override it */

/* --- Styles for Current Item and Hover Effects in Detail Views --- */

/* Default state for nav_link items (not bold, default color for hover) */
.window-notice .nav_link {
    font-weight: normal;
    color: #c8c8c8; /* Light gray for non-active items, good for hover */
    /* transition: color 0.2s ease-in-out, font-weight 0.2s ease-in-out; */ /* Optional: smooth transition */
}

/* Hover effect for nav_link items */
.window-notice .nav_link:hover,
.window-notice .nav_link:hover i,
.window-notice .nav_link:hover img.list-icon {
    color: #FFFFFF !important; /* White on hover for text and icons */
    /* text-decoration: underline; */ /* Optional: underline on hover */
}

/* Currently active item - Text */
.window-notice .current-item-name {
    font-weight: bold !important;
    color: #FFFFFF !important; /* White and bold for the current item name */
    cursor: default;
}

/* Ensure icons within a link that is NOT current-item-name also get hover effect */
.window-notice a:hover .list-icon,
.window-notice a:hover > i { /* For FontAwesome or similar */
    /* This might be redundant if .nav_link:hover i/img is sufficient, but good for robustness */
    color: #FFFFFF !important; 
}
.window-notice .btn-default i.fas {
    color: #333 !important;
}

/* --- End of Styles for Current Item and Hover Effects --- */

/* Switch style for input checkbox */ 
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    vertical-align: middle;
}
.switch input {
    display:none;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #fff;
    transition: .4s;
    border-radius: 22px;
    border: 2px solid #2b5d88;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 1px;
    background-color: #2b5d88;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    /* background-color: #fff; */
    background-color: #2196F3;
}
input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
    -webkit-transform: translateX(14px);
    -ms-transform: translateX(14px);
    transform: translateX(14px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}

.text-white {
    color: #999999 !important;
}

#downloadPopup .modal-dialog {
    background-color: rgba(0, 0, 0, 0.5);
    margin-top: 15%;
}

#downloadPopup .modal-content {
    background-color: #fff;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#downloadPopup .modal-body {
    padding: 20px;
}
#table-images-modal .table-responsive {
    height: 50vh;
}

.table-borderless,
.table-borderless tr,
.table-borderless td {
    border-top-style: none !important;
    border-left-style: none !important;
    border-right-style: none !important;
    border-bottom-style: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

.mt-2 {
    margin-top: 2px;
}
.mt-4 {
    margin-top: 4px;
}

#progress-bar {
    border: 2px solid #555;
    width:100%;
    height:25px;
    position: relative;
}
#progress-level {
    background-color: #4285F4;
    width:0%;
    height:21px;
    float: left;
    -webkit-transition: width 1s; /* Safari */
    transition: width 1s;
}
.progress-parts {
    border-radius: 6px;
}
.progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 15px;
}
.process-button {
    font-size: 25px;
    color: white;
}

.border {
    border: 2px solid black;
    border-radius: 22px;
}

.row.display-flex {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap to the next line if needed */
}

.row.display-flex > [class*='col-'] {
    display: flex; /* Makes the column itself a flex container */
    flex-direction: column; /* Stacks content vertically within the column */
}

/* Optional: To make panel content fill the column height */
.row.display-flex > [class*='col-'] .panel {
    flex-grow: 1; /* Allows the panel to grow and fill available space */
}

.row.display-flex > [class*='col-'] .panel .panel-body {
    display: flex;
    align-items: center;
    justify-content: center; 
}

.not-allowed-cursor {
    cursor: not-allowed;   
}
