.select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
  padding-top: 4px !important
}

.cursor-pointer {
  cursor: pointer
}

body:not(.sidebar-collapse) .hide-on-sidebar-deploy {
  display: none
}

a.btn {
  text-decoration: none !important
}

.modal-xl {
  width: calc(100vw - 40px) !important
}

.blink {
  animation: blinker 1s linear infinite
}

@keyframes blinker {
  50% {
    opacity: 0.55
  }
}

.notifyjs-corner {
  max-width: 100vw
}

.notifyjs-corner .notifyjs-bootstrap-base {
  white-space: initial
}

.label>.fa:only-child {
  padding-top: 3px;
  padding-bottom: 3px
}

*[aspect-ratio] {
  display: block;
  width: 100%
}

*[editable]:hover {
  text-decoration: underline;
  cursor: pointer
}

.editable-input {
  width: 60px;
  text-align: center
}

.content-header h1 {
  margin: 0;
  font-size: 24px
}

.link-look {
  color: #3c8dbc;
  cursor: pointer
}

.link-look:hover {
  color: #72afd2
}

.notes {
  white-space: pre-line
}

.dropdown-menu>li.disabled>a {
  color: #ccc !important
}

.dropdown-menu>li>label {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: 400;
  line-height: 1.42857143;
  color: #333;
  white-space: nowrap
}

#statistics-calc-progress {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 999;
  min-width: 300px;
  background-color: #fae4ba;
  padding: 15px;
  transform: translateX(calc(100% + 15px));
  opacity: 0;
  transition-duration: 0.3s;
  transition-property: transform, opacity
}

#statistics-calc-progress.show {
  transform: translateX(0);
  opacity: 1
}

.label.label-black {
  background-color: #3d3d3d !important
}

dropdown-checkboxes {
  display: inline-block;
  position: relative
}

dropdown-checkboxes.dropdown-menu-right ul {
  left: auto !important;
  right: 0
}

dropdown-checkboxes.open ul {
  display: block !important
}

dropdown-checkboxes ul {
  position: absolute;
  display: none;
  z-index: 10;
  top: 100%;
  left: 0;
  padding: 5px 0;
  margin: 2px 0 0;
  font-size: 14px;
  text-align: left;
  list-style: none;
  background-color: #fff;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175)
}

dropdown-checkboxes ul li {
  list-style: none
}

dropdown-checkboxes ul li label {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: 400;
  line-height: 1.42857143;
  color: #777;
  white-space: nowrap
}

dropdown-checkboxes ul li label:hover {
  background-color: #e1e3e9;
  color: #333
}

.input-group .input-group-btn:not(:first-child) dropdown-checkboxes .toggle {
  border-left: 0
}

trend {
  display: inline-block
}

.ui-autocomplete {
  z-index: 9999 !important
}

.file-upload-dropzone {
  border: 2px dashed #c9c9c9;
  position: relative;
  cursor: pointer
}

.file-upload-dropzone::before {
  content: '';
  display: block;
  padding-top: 75%
}

.file-upload-dropzone::after {
  content: 'Subir un archivo';
  width: 100%;
  text-align: center;
  display: block;
  position: absolute;
  color: #c9c9c9;
  top: 50%;
  left: 0;
  transform: translateY(-50%)
}

.file-upload-dropzone:hover {
  border-color: #9a9a9a
}

.file-upload-dropzone:hover::after {
  color: #9a9a9a
}

.main-sidebar .user-panel .image {
  border-radius: 50%;
  width: 100%;
  max-width: 45px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center
}

.main-sidebar .user-panel .image::before {
  display: block;
  padding-top: 100%;
  content: ''
}

#advanced-search,
[expand-by] {
  height: 0;
  overflow: hidden;
  transition-property: height;
  transition-duration: 0.3s
}

#advanced-search .filter-content,
[expand-by] .filter-content {
  border-top: 2px solid #f4f4f4;
  margin-top: 10px;
  padding-top: 10px
}

img {
  max-width: 100%
}

.btn-group a.btn-default {
  color: #fff
}

.overlay-wrapper {
  position: relative
}

body {
  opacity: 1;
  transition-duration: 0.5s;
  transition-property: opacity
}

body.ng-cloak {
  opacity: 0
}

.custom-fields-row .col-sm-4:nth-child(3n+1) {
  clear: left
}

.text-multiline {
  white-space: pre-line
}

.ui-datepicker {
  z-index: 9999 !important
}

.main-header .logo img {
  max-height: 45px
}

.main-header .dropdown-toggle {
  height: 50px
}

.main-header .user-header .user-image {
  width: 90px;
  height: 90px;
  margin: 10px auto;
  float: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 3px solid;
  border-color: transparent;
  border-color: rgba(255, 255, 255, 0.2)
}

.dropdown-menu {
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4)
}

.btn-personal {
  color: #fff !important;
  background-color: #674f97;
  border-color: #5b4588
}

.btn-personal:hover {
  background-color: #614991 !important;
  border-color: #553f82 !important
}

.st-ok,
.st-working,
.st-warning {
  display: none
}

.visit.visit-effective {
  border-color: #00a65a
}

.visit.visit-effective .st-ok {
  display: inline-block
}

.visit.visit-no_effective,
.visit.visit-no_finished {
  border-color: #f39c12
}

.visit.visit-no_effective .st-warning,
.visit.visit-no_finished .st-warning {
  display: inline-block
}

.ng-controller {
  opacity: 0;
  transition-property: opacity;
  transition-duration: 1s
}

.ng-controller.content-wrapper {
  transition-property: opacity, margin, transform;
  transition-duration: 0.3s
}

.ng-controller.show-controller {
  opacity: 1
}

input.required,
input.ng-invalid-required,
input.ng-invalid-pattern,
select.required,
select.ng-invalid-required,
select.ng-invalid-pattern,
textarea.required,
textarea.ng-invalid-required,
textarea.ng-invalid-pattern {
  background-color: #f5f4e4;
  border-color: #f39c12
}

input[type="date"] {
  line-height: 1.42857143 !important
}

.progress .progress-bar {
  position: relative
}

.progress .progress-bar .right-indicator {
  position: absolute;
  left: 100%;
  top: calc(100% + 15px);
  transform: translateX(-50%);
  font-size: 0.8em;
  color: #333
}

.progress.multiple {
  position: relative
}

.progress.multiple .progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%
}

.static-map-link {
  display: block;
  background-position: center;
  background-repeat: no-repeat
}

.static-map-link .aspect-keeper {
  display: block
}

@media (min-width: 1354px) {
  .static-map-link {
    background-size: cover
  }
}

@media (min-width: 595px) and (max-width: 767px) {
  .static-map-link {
    background-size: cover
  }
}

.save-status-ok {
  display: inline-block
}

.save-status-pending,
.save-status-fail {
  display: none !important
}

.save-pending .save-status-ok {
  display: none !important
}

.save-pending div.save-status-pending {
  display: block !important
}

.save-pending span.save-status-pending,
.save-pending i.save-status-pending,
.save-pending b.save-status-pending,
.save-pending strong.save-status-pending {
  display: inline-block !important
}

.save-fail .save-status-ok {
  display: none !important
}

.save-fail div.save-status-fail {
  display: block !important
}

.save-fail span.save-status-fail,
.save-fail i.save-status-fail,
.save-fail b.save-status-fail,
.save-fail strong.save-status-fail {
  display: inline-block !important
}

.alert::after {
  content: '';
  display: block;
  clear: both
}

.comment,
.visit-comments {
  position: relative;
  padding: 10px;
  border-radius: 3px;
  color: #878787;
  background-color: #E5E5E5;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 8px
}

.comment::before,
.visit-comments::before {
  position: absolute;
  content: '';
  display: block;
  width: 0;
  height: 0;
  top: 15px;
  left: -9px;
  border-right: 10px solid #E5E5E5;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent
}

.comment .comment-content,
.visit-comments .comment-content {
  white-space: pre-line
}

@media (max-width: 767px) {

  .comment,
  .visit-comments {
    margin-left: 0;
    margin-top: 15px
  }

  .comment::before,
  .visit-comments::before {
    top: -9px;
    left: 15px;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg)
  }
}

.visits-timeline>li {
  margin-right: 0;
  margin-bottom: 20px
}

.visits-timeline .timeline-item {
  -webkit-box-shadow: none;
  box-shadow: none;
  border-radius: 0
}

.visits-timeline .timeline-item.visit-resume,
.visits-timeline .timeline-item .visit-resume {
  cursor: pointer;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  background-color: #f6f6f6;
  border-radius: 3px
}

.visits-timeline .timeline-item.visit-resume:hover,
.visits-timeline .timeline-item .visit-resume:hover {
  background-color: #f0f0f0
}

.visits-timeline .timeline-item.visit-resume .timeline-header,
.visits-timeline .timeline-item .visit-resume .timeline-header {
  border-bottom-color: #e7e7e7
}

.visits-timeline .timeline-item.visit-no_finished .status,
.visits-timeline .timeline-item.visit-no_effective .status {
  color: #f39c12
}

.visits-timeline .timeline-item.visit-effective .status {
  color: #00a65a
}

.visits-timeline .timeline-item.visit-pending .status {
  color: #0073b7
}

.visits-timeline .timeline-item .comment-seller .seller-image {
  float: left;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden
}

.visits-timeline .timeline-item .comment-seller .seller-image img {
  max-width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%)
}

.visits-timeline .timeline-item .comment-seller .seller-name {
  float: left;
  width: calc(100% - 30px);
  padding: 4px
}

@media (max-width: 767px) {
  .visits-timeline .timeline-item .comment-seller {
    height: 30px;
    margin: 10px 0 10px 5px
  }
}

.image-preview {
  min-width: 70px;
  display: block;
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #ededed;
  margin-bottom: 30px
}

.image-preview::before {
  display: block;
  content: ''
}

.image-preview.aspect-1-1::before {
  padding-top: 100%
}

.image-preview.aspect-4-3::before {
  padding-top: 75%
}

.image-preview.aspect-16-9::before {
  padding-top: 56.25%
}

.image-preview .loading {
  display: block;
  position: absolute;
  top: calc(50% - 15px);
  left: calc(50% - 15px);
  font-size: 30px;
  color: #b8b8b8
}

.image-preview.featured::after {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  font: normal normal normal 14px/1 FontAwesome;
  content: '\f005';
  color: #fbdf1f
}

.image-preview.featured+.popover .featured-image-btn {
  display: none
}

.image-preview .corner {
  position: absolute;
  display: block;
  overflow: hidden;
  top: 0;
  left: 0;
  width: 35px;
  height: 35px;
  z-index: 2
}

.image-preview .corner::before {
  content: '';
  display: block;
  position: absolute;
  width: 50px;
  height: 50px;
  top: -25px;
  left: -25px;
  border-bottom: 2px solid #fff;
  background-color: #3177BC;
  -webkit-transform: rotateZ(-45deg);
  transform: rotateZ(-45deg)
}

.image-preview .corner .symbol {
  display: block;
  position: relative;
  z-index: 2;
  margin: 1px 0 0 3px;
  color: #fff;
  font-size: 0.9em
}

#confirm-modal {
  z-index: 1061
}

.globe {
  position: relative;
  padding: 10px;
  border-radius: 3px;
  color: #878787;
  background-color: #E5E5E5;
  margin: 15px 0
}

.globe::before {
  position: absolute;
  content: '';
  display: block;
  width: 0;
  height: 0
}

.globe.up::before {
  top: -9px;
  left: calc(50% - 2.5px);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid #E5E5E5
}

.box .box-body .row {
  margin-right: -10px;
  margin-left: -10px
}

.box .box-body .row *[class*="col-"] {
  padding-right: 10px;
  padding-left: 10px
}

.box .box-body .row .row {
  margin-right: -15px;
  margin-left: -15px
}

.box .box-body .row .row *[class*="col-"] {
  padding-right: 15px;
  padding-left: 15px
}

.color-sample {
  display: inline-block;
  height: 1em;
  width: 1.5em;
  margin-right: 0.5em
}

.chart-wrapper {
  position: relative
}

.chart-wrapper::before {
  content: '';
  display: block;
  padding-top: 100%
}

.chart-wrapper .chart {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%
}

.nav-tabs-custom>.nav-tabs>li.has-error {
  color: #dd4b39 !important
}

.nav-tabs-custom>.nav-tabs>li.has-error.active {
  border-top-color: #dd4b39
}

.nav-tabs-custom>.nav-tabs>li.has-error a {
  color: #dd4b39 !important
}

.chosen-container {
  width: 100% !important
}

#user-form.has-user-image .image-upload,
#user-form:not(.has-user-image) .image-display {
  display: none
}

#user-form .image-display {
  min-height: 150px;
  text-align: center
}

#user-form .image-display .user-image-container {
  margin-bottom: 20px
}

#user-form .image-display img {
  max-width: 70%
}

.main-header .navbar-nav work-activity-link .status-text,
.main-header .navbar-nav work-activity-stop .status-text {
  padding: 15px;
  line-height: 20px
}

/* Modern UI Components extracted from profile.html */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

.modern-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef2f5;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}

.modern-card-header {
  padding: 20px 25px;
  border-bottom: 1px solid #eef2f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.modern-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-card-body {
  padding: 20px 25px;
}

.modern-table {
  width: 100%;
  margin-bottom: 0;
}

.modern-table th {
  background: white;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 12px 15px;
  border-bottom: 2px solid #e2e8f0;
}

.modern-table td {
  padding: 12px 15px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.modern-table tr:hover td {
  background: rgba(248, 250, 252, 0.6);
}

.modern-tag-primary {
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #bfdbfe;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.modern-tag-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.modern-tag-warning {
  background: #fefce8;
  color: #ca8a04;
  border: 1px solid #fef08a;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.modern-tag-muted {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.modern-tag-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Additional Modern styles for Profile and general UI */
#file-establishment-controller {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: fadeIn 0.4s ease-out;
  padding: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-client {
  background: linear-gradient(135deg, #605ca8 0%, #605ca8 100%);
  border-radius: 12px;
  padding: 25px 30px;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

.hero-client::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-client-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-subtitle {
  opacity: 0.9;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
}

.action-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.action-btn:hover {
  background: white !important;
  color: #605ca8 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.action-btn.btn-success-alt {
  background: #2ed573 !important;
  border-color: #2ed573 !important;
  color: white !important;
}

.action-btn.btn-success-alt:hover {
  background: #27ae60 !important;
  box-shadow: 0 6px 8px rgba(46, 213, 115, 0.3);
}

.nav-controls {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none !important;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px);
}

.nav-tabs-modern {
  display: flex;
  gap: 10px;
  padding-left: 0;
  list-style: none;
  margin-bottom: 25px;
  border-bottom: 2px solid #eef2f5;
  flex-wrap: wrap;
}

.nav-tabs-modern li a {
  color: #64748b;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  display: block;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  text-decoration: none !important;
  border-radius: 8px 8px 0 0;
}

.nav-tabs-modern li a:hover {
  color: #334155;
  background: rgba(248, 250, 252, 0.8);
}

.nav-tabs-modern li.active a {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.nav-tabs-modern li.disabled a {
  color: #cbd5e1;
  pointer-events: none;
}

.link-look {
  color: #3b82f6 !important;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
}

.link-look:hover {
  text-decoration: underline !important;
}

.tab-pane.ng-hide {
  display: none !important;
}

/* Fixing tab-pane visibility when using ng-show */
#file-establishment-controller .tab-pane {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}

#file-establishment-controller .tab-pane.ng-hide {
  display: none !important;
}

/* Hero info bar (profile) */
.hero-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
}

.hero-info-item {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.hero-info-item:hover {
  color: white !important;
}

.hero-info-item.hero-info-danger {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 8px;
  border-radius: 5px;
  color: #fca5a5 !important;
}

.hero-info-item.hero-info-warning {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 2px 8px;
  border-radius: 5px;
  color: #fde68a !important;
}

/* Modern form inputs for establishment edit */
#form-establishment-controller {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#form-establishment-controller .form-control {
  border-radius: 10px;
  height: 42px;
  border-color: #e2e8f0;
  font-weight: 500;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-color: white;
}

#form-establishment-controller textarea.form-control {
  height: auto;
  min-height: 80px;
}

#form-establishment-controller .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  outline: none;
}

#form-establishment-controller .form-control[readonly],
#form-establishment-controller .form-control[disabled] {
  background-color: #f8fafc;
  color: #64748b;
}

#form-establishment-controller label {
  color: #64748b;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
}

#form-establishment-controller .has-error .form-control {
  border-color: #ef4444;
  box-shadow: none;
}

#form-establishment-controller .has-error .form-control:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

#form-establishment-controller .input-group .form-control {
  border-radius: 10px 0 0 10px;
}

#form-establishment-controller .input-group-btn:last-child > .btn {
  border-radius: 0 10px 10px 0;
  height: 42px;
}

#form-establishment-controller .btn-default {
  border-color: #e2e8f0;
  color: #475569;
  font-weight: 600;
  border-radius: 8px;
}

#form-establishment-controller .help-block {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}