html {
  position: relative;
  min-height: 100%;
}
section.content > .main-container,
section.content > .tab-content > .main-container {
  margin: 0 11px;
  min-height: 60vh;
}
.content-wrapper {
  min-height: calc(100vh); /*calc(100vh - 59px);   */
}
.left {
  float: left;
}
.right {
  float: right;
}
.alert {
  margin: 10px 0 0 0;
}
.progressbar {
  position: relative;
  left: -50%;
  width: 200px;
  background-color: #777777;
  border: solid 1px #aac2d5;
  margin-top: 10px;
  border-radius: 4px;
  border-radius: 4px;
  text-align: center;
}
.bar {
  border-radius: 4px;
  border-radius: 4px;
  width: 1%;
  height: 19px;
  background-color: #236192;
  text-align: center;
}
.percent {
  position: absolute;
  left: 85px;
  font-size: 14px;
  color: white;
}
.page-title {
  margin-top: 0;
}
.panel-atlas {
  text-align: center;
}
.panel-atlas .pagination {
  margin: auto;
}
.dropdown-center li {
  text-align: center;
}
/**/
.container-header .navbar-brand {
  height: 55px;
}
.container-header .logo {
  width: 96px;
  height: 50px;
}
.login-box .poweredby {
  width: 220px;
}
.login-box-footer {
  text-align: center;
  margin-top: 10px;
}
.vertical-center {
  min-height: 100%; /* Fallback for browsers do NOT support vh unit */
  min-height: 100vh; /* These two lines are counted as one :-)       */

  display: flex;
  align-items: center;
}

/**/
/* .footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  / * Set the fixed height of the footer here * /
  height: 40px;
  background-color: #222;  
}
.footer .container-fluid{
    text-align: center;
    padding-top: 10px;
}
.footer .text-muted{    
    color:#9d9d9d;
} */
.dropdown-menu-center {
  left: 50%;
  right: auto;
  text-align: center;
  transform: translate(-50%, 0);
}
.viewer .range {
  width: 80px;
  margin: 0 10px;
}
.center-img {
  display: flex;
  justify-content: center;
  align-items: center;
}
.border-rounded {
  border-radius: 20px;
  /* padding: 1.5%; */
}
.border-rounded-left {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.border-rounded-right {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}
.btn.border-rounded {
  border-radius: 16px;
}
label.border-rounded {
  padding: 0.5em;
}
.text-size-16 {
  font-size: 16px;
}
.estudios-fmt {
  text-align: center;
}
.estudios-fmt-text {
  font-weight: bold;
  color: #236192;
}
.text-primary {
  color: #236192;
}
.skin-atlas .content .encabezado-paciente,
.encabezado-paciente {
  background-color: #3a6dbc;
  font-weight: bold;
  color: white;
  text-align: center;
}
.skin-atlas .btn-primary {
  background-color: #3a6dbc;
  font-weight: bold;
  color: white;
  text-align: center;
  cursor: pointer;
}
.skin-atlas .btn-primary:hover {
  background-color: #054b86;
  box-shadow: 3px 3px 5px gray;
}
.main-header .bg-atlas-new {
  background-color: #054b86 !important;
  color: white !important;
  text-align: center !important;
  min-height: 70px;
}
.skin-blue .main-header .logo {
  background-color: #054b86 !important;
}
.skin-blue .main-header .navbar .sidebar-toggle {
  margin-top: 15px;
}
.skin-blue .main-header .navbar .sidebar-toggle:hover {
  background-color: #3a6dbc;
}
.skin-white-atlas {
  background: #fff url(../../atlas/images/atlas-blue-md.png) bottom right
    no-repeat;
}
.label-on-top {
  z-index: 10;
}
.col-md-back {
  margin-left: -30px;
}
.col-md-back > .input-back {
  padding-left: 20px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
.col-datetime {
  width: 140px;
  white-space: nowrap;
  text-align: center;
}
.btn-color-white {
  color: white !important;
}
.ml-1 {
  margin-left: 1.5rem;
}
.ml-2 {
  margin-left: 3rem;
}
.ml-3 {
  margin-left: 4.5rem;
}
.panel-heading {
  cursor: pointer;
}
.panel-heading.encabezado-paciente.collapsed {
  border-radius: 20px;
}
.panel-heading.encabezado-paciente {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.panel-row-atlas {
  min-height: 200px;
  background: transparent url(../images/atlas-white-sm.png) bottom right
    no-repeat;
  background-position: right 20px bottom;
  /* margin-right: 5px; */
  position: relative;
}
.study-header {
  margin: 5px 0 2px 0;
}
.panel-row-atlas .vertical-bottom {
  /* position: absolute; */
  bottom: 0;
  /* right: 80px; */
}
.study-view {
  display: flex;
  justify-content: end;
}
.study-view .item {
  background-color: white;
  width: 140px;
  /* float: right; */
}
.study-view .item:last-child {
  margin-right: 0;
}
.icon-atlas-viewer {
  width: 45px;
  height: 54px;
}
.skin-blue .main-header li.user-header,
.navbar-toolbar .nav > .dropdown > .dropdown-menu {
  background-color: #054b86 !important;
}
section.content > .container-fluid,
section.content > .tab-content > .container-fluid {
  padding-top: 15px;
  padding-bottom: 15px;
}
#main-logo-atlas {
  display: block;
  /* width: 180px; */
  height: 70px;
  background: transparent url("../images/atlas-logo-blanco.png") no-repeat
    center center;
  background-size: 180px 70px;
}
/* #backend #main-logo-atlas{
    width: 230px;
} */
.backend.sidebar-collapse #main-logo-atlas {
  width: 50px;
  background: transparent url("../images/atlas-white.png") no-repeat center
    center;
  background-size: 23px 50px;
}
/**
Visor
**/
.container-white {
  background-color: white;
}
.container-black {
  background-color: black;
}
.skin-atlas .viewportWrapper {
  border: 3px solid #3a6dbc;
}
a.list-group-item.active,
a.list-group-item.active:hover,
a.list-group-item.active:focus {
  background-color: #054b86;
  border: 2px solid #3a6dbc;
}
a.list-group-item {
  background-color: #29373d;
  padding: 2px;
  border: 2px solid #3a6dbc;
}
a.list-group-item,
button.list-group-item {
  color: white;
}
.viewportWrapper .overlay div,
.viewportWrapper .overlay span {
  color: white;
  text-shadow: 1px 1px 1px #333;
}
.thumbnailSelector {
  /* width: 121px; */
  width: 100%;
  overflow: scroll;
}
.no-gutters [class^="col-"],
.no-gutters {
  padding-left: 0;
  padding-right: 0;
}
.text-box-info {
  border: black;
  color: blue;
}
.form-inline {
  display: inline;
}
.col-i {
  width: 40px;
}
td.col-i {
  text-align: right;
}
.col-1icon {
  width: 60px;
}
.col-2icon {
  width: 110px;
}
.col-3icon {
  width: 155px;
}
.col-4icon {
  width: 200px;
}
.col-5icon {
  width: 240px;
}
.col-6icon {
  width: 280px;
}
.pr-1 {
  padding-right: 15px;
}
.pdata {
  padding-top: 7px;
}
.firma {
  height: 200px;
}
.firmamin {
  height: 100px;
  border: 1px solid #ccc;
  vertical-align: top;
}
.loadergif {
  height: 80px;
  width: 100%;
  background: transparent url(../images/loaders/gears.gif) center bottom
    no-repeat;
}
.btn-app.btn-toolbar {
  background: none;
  margin: 0;
  border-bottom-left-radius: 0%;
  border-bottom-right-radius: 0%;
  min-width: 75px;
  padding: 15px 10px;
}
.btn-app.btn-appstudy,
.skin-blue .main-header .navbar .nav>li>.btn-appstudy {
  color: #666;
  padding: 5px 10px;
}
.skin-blue .main-header .navbar .nav>li>.btn-appstudy.disabled:hover{
  cursor: not-allowed;
}
.btn-app.btn-appstudy > .fa{
  display: inline-block;
  font-size: 1rem;
}
/***/
.skin-blue .main-header .navbar .nav>li>.btn-appstudy.btn-right,
.skin-blue .main-header .navbar .nav>li>.btn-appstudy.btn-left{
  display: flex;
  min-width: 250px;
}
.skin-blue .main-header .navbar .nav>li>.btn-appstudy.btn-right .study-icon,
.skin-blue .main-header .navbar .nav>li>.btn-appstudy.btn-left .study-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    font-size: 20px;
    text-align: center;
}
.skin-blue .main-header .navbar .nav>li>.btn-appstudy.btn-right .study-data,
.skin-blue .main-header .navbar .nav>li>.btn-appstudy.btn-left .study-data{
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 0 10px;
  line-height: 1.8;
}
.btn-app.btn-appstudy .study-type {
  font-size: 1rem;
  line-height: 1.1rem;
  font-weight: bold;
  display: block;
}
.btn-app.btn-appstudy .study-date {
  font-size: 1rem;
  line-height: 1.1rem;
  display: block;
}
.btn-app.btn-appstudy .study-desc {
  font-size: 1.1rem;
  line-height: 1.2rem;
  display: block;
  font-style: italic;  
}
.btn-app.btn-appstudy .study-patient {
  font-size: 1.3rem;
  line-height: 1.4rem;
  font-weight: bold;
  display: block;
}
.study-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.btn-app.btn-right .study-type,
.btn-app.btn-right .study-date,
.btn-app.btn-right .study-patient,
.btn-app.btn-right .study-desc{
  text-align: left;
}
.btn-app.btn-left .study-type,
.btn-app.btn-left .study-date,
.btn-app.btn-left .study-patient,
.btn-app.btn-left .study-desc{
  text-align: right;
}
/*******/
.dropdown-menu > li > a {
  color: white;
}
.dropdown-menu.choose-layout > li > a {
  min-width: 220px;
}
.cornerstone .sidebar-toggle,
.cornerstone .main-sidebar {
  display: none;
}
.cornerstone .col-thumbs {
  padding-left: 0;
  padding-right: 0;
}
.cornerstone .col-viewer {
  padding-left: 0;
  padding-right: 0;
}
/** Cornerstone Viewer**/
.cornerstone .main-container {
  /*Header: 70px + 30px padding gutters*/
  height: calc(100vh - 100px);
}
.viewer {
  /*Header: 70px + 30px padding gutters + 30px padding gutters*/
  height: calc(100vh - 130px); /*calc(100vh - 130px);*/
}
.thumbnailSelector {
  /*Header: 70px + 30px padding gutters + 30px padding gutters*/
  height: calc(100vh - 180px); /*calc(100vh - 130px);*/
}
.viewer {
  width: 100%;
}
.viewportWrapper .overlay.patient-info,
.viewportWrapper .overlay.top-left {
  top: 10px;
  left: 10px;
}
.viewportWrapper .overlay.study-info,
.viewportWrapper .overlay.top-right {
  top: 10px;
  right: 10px;
}
.viewportWrapper .overlay.bottom-left {
  bottom: 10px;
  left: 10px;
}
.viewportWrapper .overlay.bottom-right {
  bottom: 10px;
  right: 10px;
}
.viewportWrapper .overlay.left {
  top: 55%;
  left: 10px;
}
.viewportWrapper .overlay.right {
  top: 55%;
  right: 10px;
}
/*scrollbar test*/
/* width */
.cornerstone ::-webkit-scrollbar {
  width: 5px;
  height: 3px;
}

/* Track */
.cornerstone ::-webkit-scrollbar-track {
  background: #3a6dbc;
}

/* Handle */
.cornerstone ::-webkit-scrollbar-thumb {
  background: #f1f1f1;
}

/* Handle on hover */
.cornerstone ::-webkit-scrollbar-thumb:hover {
  background: #f1f1f1;
}
#deletedModal {
  color: white;
}
.table thead a {
  color: #333;
}
.table thead a:hover {
  color: #3c8dbc;
}
.table .programmed td {
  font-style: italic;
}
/**
** sync modal
**/
.fixed-bottom-right {
  position: fixed;
  bottom: 0px;
  right: 0px;
}
.sync-container {
  position: relative;
  padding: 10px 20px;
  background-color: #222d32 !important;
}
.sync-container h5 {
  margin: 5px 30px 5px 10px;
}
.sync-container img {
  margin-right: 5px;
}
.text-white {
  color: white;
}
/* .sidebar-mini.sidebar-collapse .content-wrapper, .sidebar-mini.sidebar-collapse .right-side, .sidebar-mini.sidebar-collapse .main-footer{
    margin-left: 0!important;
} */
.modal {
  color: #fff;
}
.modal .modal-header .close {
  color: #fff;
  opacity: 0.9;
}
.modal.modal-form {
  color: #333;
}
.col-btn-messagge {
  margin-top: 170px;
}
.table-responsive .label-responsive {
  display: none;
  margin-right: 5px;
}
.navbar-custom-menu > .navbar-nav > li.refresh {
  display: none;
}
.thumbnailButtonsX {
  display: block;
}
.thumbnailButtonsY {
  display: none;
}
.scroll-thumb-up {
  width: 100%;
  height: 25px;
}
.scroll-thumb-down {
  width: 100%;
  height: 25px;
}
/* ==========================================================================
  Gemini AI Prompt Interface for Atlas Cornerstone
  ========================================================================== */
.gemini-prompt-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background-color: #131316;
  color: #e3e3e3;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  padding-top: 15px;
  padding-bottom: 15px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

/* Header */
.gemini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(19, 19, 22, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 10;
  flex-shrink: 0;
}

.gemini-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gemini-sparkle-icon {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #1a73e8 0%, #a142f4 50%, #fbbc04 100%);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z"/></svg>') no-repeat center / contain;
  animation: sparkle-glow 3s infinite alternate;
}

@keyframes sparkle-glow {
  0% { filter: drop-shadow(0 0 4px rgba(26, 115, 232, 0.6)); }
  50% { filter: drop-shadow(0 0 8px rgba(161, 66, 244, 0.8)); }
  100% { filter: drop-shadow(0 0 6px rgba(251, 188, 4, 0.7)); }
}

.gemini-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, #d3e3fd 0%, #e8def8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.gemini-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(26, 115, 232, 0.15);
  color: #a8c7fa;
  border: 1px solid rgba(26, 115, 232, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gemini-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gemini-icon-btn {
  background: transparent;
  border: none;
  color: #9aa0a6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gemini-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e3e3e3;
}

/* Body & Scroll Area */
.gemini-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.gemini-body::-webkit-scrollbar {
  width: 6px;
}
.gemini-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.gemini-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Welcome Screen */
.gemini-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px;
  margin: auto 0;
}

.gemini-welcome-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1a73e8, #a142f4, #fbbc04);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z"/></svg>') no-repeat center / contain;
}

.gemini-welcome-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px 0;
  background: linear-gradient(90deg, #a8c7fa, #d3e3fd, #e8def8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gemini-welcome-subtitle {
  font-size: 13px;
  color: #9aa0a6;
  margin-bottom: 24px;
  max-width: 90%;
  line-height: 1.4;
}

/* Suggestions Grid */
.gemini-suggestions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.gemini-suggestion-chip {
  background: #1e1f26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: #c4c7c5;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gemini-suggestion-chip i {
  color: #a8c7fa;
  font-size: 14px;
}

.gemini-suggestion-chip:hover {
  background: #282932;
  border-color: rgba(168, 199, 250, 0.3);
  color: #e3e3e3;
  transform: translateY(-1px);
}

/* Messages Stream */
.gemini-messages-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.gemini-msg {
  display: flex;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.gemini-msg.user {
  flex-direction: row-reverse;
}

.gemini-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.gemini-msg.user .gemini-msg-avatar {
  background: #3c4043;
  color: #e3e3e3;
}

.gemini-msg.ai .gemini-msg-avatar {
  background: linear-gradient(135deg, #1a73e8, #a142f4);
  color: #fff;
}

.gemini-msg-content {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}

.gemini-msg.user .gemini-msg-content {
  background: #2b2d38;
  color: #e3e3e3;
  border-bottom-right-radius: 4px;
}

.gemini-msg.ai .gemini-msg-content {
  background: #1e1f26;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e3e3e3;
  border-bottom-left-radius: 4px;
}

.gemini-msg-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.gemini-copy-btn {
  background: transparent;
  border: none;
  color: #8e918f;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.gemini-copy-btn:hover {
  color: #e3e3e3;
  background: rgba(255, 255, 255, 0.08);
}

/* Typing Indicator */
.gemini-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: #1e1f26;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.gemini-typing-dot {
  width: 6px;
  height: 6px;
  background: #a8c7fa;
  border-radius: 50%;
  animation: wave 1.3s infinite ease-in-out;
}
.gemini-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.gemini-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes wave {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Input Footer Area */
.gemini-footer {
  padding: 12px 16px 16px 16px;
  background: #131316;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.gemini-input-container {
  background: #1e1f26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gemini-input-container:focus-within {
  border-color: #a8c7fa;
  box-shadow: 0 0 0 2px rgba(168, 199, 250, 0.2);
}

.gemini-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #e3e3e3;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  max-height: 140px;
  min-height: 24px;
  font-family: inherit;
}

.gemini-textarea::placeholder {
  color: #8e918f;
}

.gemini-input-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.gemini-input-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gemini-tool-btn {
  background: transparent;
  border: none;
  color: #8e918f;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.gemini-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #c4c7c5;
}

.gemini-tool-btn.recording {
  color: #ea4335 !important;
  background: rgba(234, 67, 53, 0.2) !important;
  animation: mic-pulse 1.5s infinite;
}

@keyframes mic-pulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 67, 53, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(234, 67, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 67, 53, 0); }
}

.gemini-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1a73e8, #a142f4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.5;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.gemini-send-btn.active {
  opacity: 1;
  pointer-events: auto;
}

.gemini-send-btn.active:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(161, 66, 244, 0.4);
}
.gemini-disclaimer {
  font-size: 11px;
  color: #727775;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
}
.badge-primary{
  background-color: #054b86 !important;
}
.badge-danger {
  background-color: #dc3545!important;
}

/**
* Desktop convencionales
* landscape=horizontal
* portrait=vertical
**/
@media (min-width: 1200px) and (orientation: landscape) {
  /*
  * View Estudios con Informes
  */
  .viewport-wrapper {
    display: flex;
    flex-direction: row;
  }
  .study-viewport{
    width: 70vw;
    margin-left: 0;
    /* float: left; */
  }
  .report-viewport{
    width: 30vw;
    /* float: left; */
    height: calc(100vh - 85px);
    overflow-y: auto;
    padding-bottom: 0;
  }
  .nav.navbar-nav .nav-full-study {
    display: block;
  }
  .nav.navbar-nav .nav-dropdown-studies{
    display: none;
  }
}

/**
* Dispostivo Desktop con resolucion bajas,
* Tambien usadas para algunos mobiles
**/
@media (max-width: 767px) and (orientation: portrait) {
  .navbar-custom-menu > .navbar-nav > li.refresh {
    display: inline;
  }
  .thumbnailButtonsX {
    display: none;
  }
  .thumbnailButtonsY {
    display: inline;
  }
  .scroll-thumb-left {
    float: left;
    width: 25px;
    height: 125px;
  }
  .scroll-thumb-right {
    float: right;
    width: 25px;
    height: 125px;
  }
  .cornerstone ::-webkit-scrollbar {
    height: 10px;
  }
  .cornerstone section.content,
  .cornerstone section.content > .container-fluid {
    padding: 0;
    margin: 0;
  }
  .cornerstone .col-thumbs,
  .cornerstone .col-viewer {
    padding-left: 10px;
    padding-right: 10px;
  }
  .cornerstone .col-thumbs {
    padding-top: 5px;
  }
  .cornerstone .border-rounded, .gemini-prompt-wrapper {
    border-radius: 0px;
  }
  .cornerstone .main-container {
    /*Header: 120px */
    height: calc(100vh - 54px); /*calc(100vh - 120px);*/
  }
  .cornerstone .col-thumbs {
    height: 80px;
  }
  .thumbnailSelector {
    height: 75px;
    width: calc(100% - 54px);
    overflow-x: scroll;
  }
  .thumbnailSelector a.list-group-item {
    float: left;
  }
  .thumbnailSelector a.list-group-item .csthumbnail {
    height: 50px;
  }
  .thumbnailSelector a.list-group-item .small{
    font-size: 1rem;
    line-height: 1rem;
  }
  .thumbnailSelector .minloader{
    top:20px;
  }
  .viewer {
    /*Header: 120px 
          SerieList: 135px
          10px padding gutters
          2px border
        */
    height: calc(100vh - 267px);
  }
  .navbar-toolbar .btn-app.btn-app.btn-toolbar {
    border-radius: 0%;
    margin: 0;
    height: auto;
    border: none;
    min-width: auto;
  }
  .navbar-toolbar .nav > li > a {
    padding-left: 10px;
    padding-right: 10px;
  }
  .navbar-toolbar .btn-app.btn-app.btn-toolbar > span {
    display: none;
  }
  .table-responsive > .table > thead > tr > th {
    display: none;
  }
  .table-responsive > .table > tbody > tr > th,
  .table-responsive > .table > tfoot > tr > th,
  .table-responsive > .table > thead > tr > td,
  .table-responsive > .table > tbody > tr > td,
  .table-responsive > .table > tfoot > tr > td {
    display: flex;
  }
  .table-responsive .label-responsive {
    display: inline;
  }
}
/**
* Dispostivo Desktop
**/
@media (min-width: 768px) and (orientation: portrait) {
  
  /* #backend #main-logo-atlas{
        width: 100%;
    } */
  .navbar-custom-menu > .navbar-nav > li.refresh {
    display: inline;
  }
  .thumbnailSelector {
    overflow-x: scroll;
  }
  .thumbnailButtonsX {
    display: none;
  }
  .thumbnailButtonsY {
    display: inline;
  }
  .scroll-thumb-left {
    float: left;
    width: 25px;
    height: 125px;
  }
  .scroll-thumb-right {
    float: right;
    width: 25px;
    height: 125px;
  }
  .container-fluid.container-header {
    height: 70px;
  }
  .container-header .navbar-brand {
    height: 73px;
  }
  .container-header .logo {
    width: 140px;
    height: 73px;
  }
  .navbar-collapse {
    padding-left: 0;
    padding-right: 0;
  }
  .navbar-form {
    padding-left: 0;
  }
  .navbar-form .input-group > .form-control.bigtext {
    width: 400px;
  }
  .navbar-form .form-control.mediumbutton {
    width: 200px;
  }
}

/**
* Mobile Vertical
**/
@media (max-width: 991px) and (orientation: portrait) {  
  .viewport-wrapper {
    flex-direction: column;
  }
  .gemini-header {
    padding: 5px 18px 2px 18px;
  }
  .gemini-footer{
    padding:4px 8px
  }
  .gemini-disclaimer {
    margin-top:2px;
  }


  .navbar-custom-menu > .navbar-nav > li.refresh {
    display: inline;
  }
  .thumbnailSelector {
    overflow-x: scroll;
  }
  .thumbnailButtonsX {
    display: none;
  }
  .thumbnailButtonsY {
    display: inline;
  }
  .scroll-thumb-left {
    float: left;
    width: 25px;
    height: 75px;
  }
  .scroll-thumb-right {
    float: right;
    width: 25px;
    height: 75px;
  }
  #backend #main-logo-atlas {
    /* width: 100%; */
    float: left;
    height: 50px;
    width: 45px;
    background: transparent url(../images/atlas-white-xs.png) no-repeat center
      center;
  }
  .username {
    display: none;
  }
  .col-md-back {
    margin-left: 0;
  }
  .col-md-back > .input-back {
    padding-left: 0 !important;
    border-top-left-radius: 30px !important;
    border-bottom-left-radius: 30px !important;
  }
  .label-on-top {
    margin-left: 15px;
    margin-right: 15px;
  }

  .panel-row-atlas {
    margin-right: 0;
    background-size: 50px;
  }
  .panel-row-atlas .vertical-bottom {
    position: static;
  }
  .viewer {
    /* height: calc(100vh - 195px); */
    height: calc(100vh - 185px);
  }
  .study-view .item {
    /* float: none; */
    margin: 10px auto;
  }
  .skin-blue .main-header .navbar .sidebar-toggle {
    margin-top: 0;
  }
  .main-header .bg-atlas-new,
  .skin-atlas .main-header .logo {
    min-height: auto;
  }
  .main-header > .navbar {
    -webkit-transition: margin-left 0.3s ease-in-out;
    -o-transition: margin-left 0.3s ease-in-out;
    transition: margin-left 0.3s ease-in-out;
    margin-bottom: 0;
    margin-left: 45px;
    border: none;
    min-height: 50px;
    border-radius: 0;
    width: inherit;
  }

  .fixed .content-wrapper,
  .fixed .right-side {
    padding-top: 50px;
  }

  .studyRow .toolbar {
    display: none;
  }

  /* .studyRow .thumbnailSelector{
        display: none;
    } */
  /* .viewportWrapper .overlay{
        display: none;
    } */
  .viewportWrapper .overlay.study-info,
  .viewportWrapper .overlay.top-right {
    top: 10px;
    left: 10px;
  }
  .viewportWrapper .overlay.top-left {
    top: 30px;
  }

  .col-btn-messagge {
    margin-top: 0px;
  }

  /* #main-logo-atlas {
        width: 125px;
        height: 50px;
        background: transparent url(../images/atlas-logo-blanco.png) no-repeat center center;
        background-size: 125px 50px;
    }     */

  /* .thumbnails {
        margin: 0px;
        margin-top: 10px;
        margin-bottom: 0px;
        overflow-x: scroll;
        overflow-y: hidden;
    }
    .thumbnailSelector{
        width: 100%;
        height: 105px;
    } */
  .thumbnailSelector {
    width: calc(100% - 54px);
  }
  .navbar-mainmenu-atlas.navbar-custom-menu > .navbar-nav{
    float:left;
  }
  .nav .user-menu.extra-option{
    display: none;
  }
  .nav.navbar-nav .nav-full-study{
    display: none;
  }
  .nav.navbar-nav .nav-dropdown-studies{
    display: block;
  }
  .study-viewport,
  .report-viewport {
    width: 100%;
    /* clear: both; */
  }
  .cornerstone section.study-viewport, 
  .cornerstone section.study-viewport > .container-fluid,
  .study-viewport{
    height: calc(40vh + 80px);
  }
  .study-viewport .viewer {
    /* height: calc(100vh - 195px); */
    /* height: calc(50vh + 225px); */
    height: 40vh;
  }
  .report-viewport{
    height: calc(60vh - 180px);
    overflow: hidden;
  }
  .report-viewport .gemini-prompt-wrapper {
    border-radius: 0px;
    height: 100%;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav-dropdown-studies .study-desc{
    display: block;
    border-bottom: 1px solid white;
    padding-bottom: 10px;
  }
  .nav-dropdown-studies .study-patient{
    font-weight: bold;
  }

  .nav-dropdown-studies ul.dropdown-menu > li:last-child .study-desc{
    border-bottom: none;
    padding-bottom: 2px;
  }
/*
  .study-view {
      flex-direction: column; /* Cambia la dirección del flex a columna en móviles * /
      align-items: flex-start; /* Alinea los elementos al inicio (izquierda) * /
  }
  .study-view .item:last-child{
      margin: 10px auto;
  }
  
  .mailbox-attachments {
      width: 100%; /* Asegura que ocupe el 100% del contenedor * /
  }
*/
}

/**
* Mobile Horizontal
* antes 767
**/
@media (max-width: 991px) and (orientation: landscape) {  
  .navbar-custom-menu > .navbar-nav > li.refresh {
    display: inline;
  }
  .thumbnailButtonsX {
    display: block;
  }
  .cornerstone ::-webkit-scrollbar {
    width: 10px;
  }
  .cornerstone .main-container {
    height: calc(100vh - 50px);
  }
  .fixed .content-wrapper,
  .fixed .right-side {
    padding-top: 50px;
  }
  .cornerstone section.content,
  .cornerstone section.content > .container-fluid {
    padding: 0;
    margin: 0;
  }
  .cornerstone .border-rounded {
    border-radius: 0px;
  }
  .cornerstone .col-thumbs {
    padding-left: 10px;
  }
  .cornerstone .col-viewer {
    padding-right: 10px;
  }
  .cornerstone .col-thumbs,
  .cornerstone .col-viewer {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  body.layout1x2 .overlay.top-left,
  body.layout2x2 .overlay.top-left {
    top: 30px;
  }
  .navbar-custom-menu.navbar-toolbar {
    /* margin-top: 20px; */
  }
  .navbar-toolbar .btn-app.btn-app.btn-toolbar {
    border-radius: 0%;
    margin: 0;
    height: auto;
    border: none;
    min-width: auto;
  }
  .navbar-toolbar .nav > li > a {
    padding-left: 12px;
    padding-right: 12px;
  }
  .navbar-toolbar .btn-app.btn-app.btn-toolbar > span {
    display: none;
  }

  .main-header .navbar {
    -webkit-transition: margin-left 0.3s ease-in-out;
    -o-transition: margin-left 0.3s ease-in-out;
    transition: margin-left 0.3s ease-in-out;
    margin-bottom: 0;
    margin-left: 55px;
    border: none;
    min-height: 50px;
    border-radius: 0;
    width: inherit;
  }
  #main-logo-atlas {
    float: left;
    height: 50px;
    width: 55px;
    background: transparent url(../images/atlas-white-xs.png) no-repeat center
      center;
  }
  .main-header {
    max-height: 70px;
  }
  .username {
    display: none;
  }
  .col-xs-12.col-thumbs {
    width: 16.66666667%;
  }
  .col-xs-12.col-viewer {
    width: 83.33333333%;
  }

  /* .cornerstone section.content, .cornerstone section.content > .container-fluid {
        padding: 0;
        margin: 0;
    }
    .cornerstone .col-thumbs,.cornerstone .col-viewer{
        padding-left: 10px;
        padding-right: 10px;
    }
    .cornerstone .col-thumbs{
        padding-top: 10px;
    }
    .cornerstone .border-rounded {
        border-radius: 0px;
    }
    .cornerstone .main-container{
        / *Header: 120px * /
        height: calc(100vh - 120px);
    } */
  .col-btn-messagge {
    margin-top: 0px;
  }
  .nav.navbar-nav .nav-full-study {
    display: none;
  }
  .nav.navbar-nav .nav-dropdown-studies{
    display: block;
  }
  .report-viewport {
    width: 100%;
    height: calc(100vh - 50px);
    overflow: hidden;
  }
  .report-viewport .gemini-prompt-wrapper {
    border-radius: 0px;
    height: 100%;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}
.m-0 {
  margin: 0px !important;
}
.mt-0 {
  margin-top: 0px !important;
}
.p-0 {
  padding: 0px !important;
}
.input-atlas {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  width: 100%;
}
/*div label*/
.input-atlas-prepend {
  margin-right: -1px;
}
.input-atlas-append,
.input-atlas-prepend {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
/*label*/
.input-atlas
  > .input-atlas-append:last-child
  > .btn:not(:last-child):not(.dropdown-toggle),
.input-atlas
  > .input-atlas-append:last-child
  > .input-atlas-text:not(:last-child),
.input-atlas > .input-atlas-append:not(:last-child) > .btn,
.input-atlas > .input-atlas-append:not(:last-child) > .input-atlas-text,
.input-atlas > .input-atlas-prepend > .btn,
.input-atlas > .input-atlas-prepend > .input-atlas-text {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-atlas-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  /* padding: 0.375rem 0.75rem; */
  margin-bottom: 0;
  /* font-size: 1rem; */
  font-weight: 400;
  /* line-height: 1.5; */
  /* color: #495057; */
  text-align: center;
  white-space: nowrap;
  /* background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.25rem; */
}
.input-atlas-text label.control-label {
  padding: 0.5em 2em;
  margin: 0;
}
/*input*/
.input-atlas > .custom-select:not(:first-child),
.input-atlas > .form-control:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.input-atlas > .custom-file,
.input-atlas > .custom-select,
.input-atlas > .form-control {
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  width: 1%;
  margin-bottom: 0;
}
/* .input-atlas .form-control{
    margin-left: -15px;
    padding-left: 20px;
} */
.input-atlas .input-atlas-prepend + .form-control {
  margin-left: -15px;
  padding-left: 20px;
}
.input-atlas .form-control + .input-atlas-append {
  margin-left: -25px;
  z-index: 10;
}
.no-btn {
  border: none;
  background: none;
}
.orthanctech {
  position: relative;
  top: 8px;
  color: #054b86;
}
.ck-editor__editable_inline:not(.ck-comment__input *) {
  height: 300px;
  overflow-y: auto;
}



@media (max-width: 768px) {
  /* Cambia 768px al tamaño que desees para móviles */
  .study-view {
    flex-direction: column; /* Cambia la dirección del flex a columna en móviles */
    align-items: flex-start; /* Alinea los elementos al inicio (izquierda) */
  }
  .study-view .item:last-child {
    margin: 10px auto;
  }

  .mailbox-attachments {
    width: 100%; /* Asegura que ocupe el 100% del contenedor */
  }
}
