.slider {
  width: 50%;
  height: 50%; /*50vh*/
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 20px;  
  position: fixed;
    bottom: 1px;
    width: 100%;
}

/* Make wallpaper delete icon fully visible inside the thumbnail */
#wallpapers label {
  overflow: visible;
}

#wallpapers label .delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  border-width: 2px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
	font-family: 'Glyphicons Halflings';
}

#wallpapers label .delete:before {
  content: "\e014";
  font-size: 13px;
  line-height: 1; 
}

/* Force wallpapers list into a neat grid */
#wallpapers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px 20px;
  align-items: start;
}

#wallpapers label {
  margin: 0 !important;
  width: 140px;
}

#wallpapers label img {
  width: 120px;
  height: 120px;
}


.circular-slider {
  width: 100%;
  height: 100%; /*bottom position*/
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  /*background-color: #222; */
}
  .circular-slider .wrapper {
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    position: relative;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    padding: 20px 20px 0px 20px;
    overflow: hidden; }
    .circular-slider .wrapper .controls__left, .circular-slider .wrapper .controls__right, .circular-slider .wrapper .controls__autoplay {
      position: absolute;
      z-index: 101;
      -webkit-transition: .6s all;
      -o-transition: .6s all;
      transition: .6s all; }
      .circular-slider .wrapper .controls__left:hover .icon-wrapper, .circular-slider .wrapper .controls__right:hover .icon-wrapper, .circular-slider .wrapper .controls__autoplay:hover .icon-wrapper {
        font-size: 1.7em;
        opacity: 1; }
      .circular-slider .wrapper .controls__left .icon-wrapper, .circular-slider .wrapper .controls__right .icon-wrapper, .circular-slider .wrapper .controls__autoplay .icon-wrapper {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        width: 100%;
        height: 100%;
        color: #fff;
        font-size: 1.5em;
        opacity: .7; }
    .circular-slider .wrapper .controls__left, .circular-slider .wrapper .controls__right {
      top: 50%; }
    .circular-slider .wrapper .controls__left {
      left: 0;
      -webkit-transform: translateY(-50%);
          -ms-transform: translateY(-50%);
              transform: translateY(-50%); }
      .circular-slider .wrapper .controls__left:hover {
        left: 0; }
    .circular-slider .wrapper .controls__right {
      right: 0;
      -webkit-transform: translate(0%, -50%);
          -ms-transform: translate(0%, -50%);
              transform: translate(0%, -50%); }
    .circular-slider .wrapper .controls__autoplay {
      bottom: 0;
      left: 50%;
      -webkit-transform: translate(-50%, 0%);
          -ms-transform: translate(-50%, 0%);
              transform: translate(-50%, 0%); }
      .circular-slider .wrapper .controls__autoplay_running .pause {
        display: block; }
      .circular-slider .wrapper .controls__autoplay_running .run {
        display: none; }
      .circular-slider .wrapper .controls__autoplay_paused .pause {
        display: none; }
      .circular-slider .wrapper .controls__autoplay_paused .run {
        display: block; }
    .circular-slider .wrapper .slides-holder {
      border-radius: 50%;
      /*border: 2px solid #fff;*/
      -webkit-transform-origin: center;
          -ms-transform-origin: center;
              transform-origin: center;
      -webkit-box-sizing: border-box;
              box-sizing: border-box;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-pack: center;
          -ms-flex-pack: center;
              justify-content: center;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center;
      position: relative;
      z-index: 100; }
      .circular-slider .wrapper .slides-holder__item {
        border-radius: 50%;
        /*border: 2px solid #7C99B4;*/
        position: absolute;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
        -webkit-transform-origin: center;
            -ms-transform-origin: center;
                transform-origin: center;
       /* background-color: red;*/
        -webkit-transition: .3s linear all;
        -o-transition: .3s linear all;
        transition: .3s linear all;
        -webkit-filter: brightness(70%);
                filter: brightness(70%); }
        .circular-slider .wrapper .slides-holder__item img {
          width: 100%; /*60% sin href*/
          height: 100%;
          /*border-radius: 50%;*/
          -webkit-user-select: none;
             -moz-user-select: none;
              -ms-user-select: none;
                  user-select: none; }
        .circular-slider .wrapper .slides-holder__item_active {
          -webkit-filter: brightness(100%);
                  filter: brightness(100%); 
        background-color: #E52D1A}
    .circular-slider .wrapper .descriptions {
      position: absolute;
      bottom: 0%;
      z-index: 0; }
      .circular-slider .wrapper .descriptions__item {
        width: 100%;
        height: 0%;
        opacity: 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-transition: opacity 0s 0s linear;
        -o-transition: opacity 0s 0s linear;
        transition: opacity 0s 0s linear; }
        .circular-slider .wrapper .descriptions__item_visible {
          height: 100%;
          opacity: 1;
          -webkit-transition: opacity .6s 0s linear;
          -o-transition: opacity .6s 0s linear;
          transition: opacity .6s 0s linear; }
        .circular-slider .wrapper .descriptions__item h1, .circular-slider .wrapper .descriptions__item .description {
          font-family: Helvetica, sans-serif;
          color: white;
          text-align: center; }
        .circular-slider .wrapper .descriptions__item h1 {
          font-size: 2.5em;
          padding-top: 5px; 
          font-family: "Roboto Slab", serif;
        }
        .circular-slider .wrapper .descriptions__item .description {
          font-size: 100%;
          margin-top: 5px;
          padding: 0% 10%;
          -o-text-overflow: ellipsis;
             text-overflow: ellipsis;
          overflow-y: hidden;
        }

.icon-menu{
	    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    -o-border-radius: 100%;
    border-radius: 100%;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    display: inline-flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    background: rgba(0, 0, 0, 0.3);
    margin: 0 5px;
}
.icon-menu > a {
    width: 45%;
}
.svg-icon path {
  background-color: #fff;;
}
/*figure {
  margin: none !important;
}*/

.search-results img {
    width: 200px;
}


.search-results figure.case-number {
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    -o-border-radius: 100%;
    border-radius: 100%;
    display: inline-flex;
    border: 2px solid white;
    background: #E52D1A;
    color: white !important;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

/* Estilos para drag and drop del menú de casos (solo admin) */
#case-menu-sortable.admin-sortable > a {
    cursor: move;
    position: relative;
}

#case-menu-sortable.admin-sortable > a:hover {
    opacity: 0.8;
}

#case-menu-sortable.admin-sortable > a.dragging {
    opacity: 0.5;
    background: rgba(229, 45, 26, 0.1);
}

.menu-sortable-placeholder {
    background: rgba(229, 45, 26, 0.2);
    border: 2px dashed #E52D1A;
    visibility: visible !important;
    height: 50px;
    margin: 10px 0;
}

#save-menu-order {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Alineación de imágenes en CKEditor */
img.align-left {
    float: left;
    margin: 10px 20px 10px 0;
}

img.align-right {
    float: right;
    margin: 10px 0 10px 20px;
}

img.align-center {
    display: block;
    margin: 10px auto;
}

/* Limpiar floats */
.content:after,
#geographical:after,
#demographic:after,
#strategy:after,
#actors:after,
#advances:after {
    content: "";
    display: table;
    clear: both;
}

/* Sortable menu sidebar para administradores */
#case-menu-sidebar.admin-sortable > a {
    cursor: move;
    position: relative;
    will-change: transform, opacity;
    transition: background-color 0.2s ease-out;
}

#case-menu-sidebar.admin-sortable > a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#case-menu-sidebar.ui-sortable-helper {
    opacity: 0.8 !important;
    background-color: rgba(179, 224, 242, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-sortable-placeholder {
    background-color: rgba(179, 224, 242, 0.2);
    border: 2px dashed #B3E0F2;
    visibility: visible !important;
    height: auto;
    min-height: 40px;
    margin: 5px 0;
    pointer-events: none;
}

/* Menu item publish/unpublish button */
.menu-item-publish-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    padding: 5px 8px;
    background: #4D4D4D;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease-out;
}

.menu-item-publish-btn:hover {
    background: #666;
    border-color: #B3E0F2;
    box-shadow: 0 0 8px rgba(179, 224, 242, 0.4);
}

.menu-item-publish-btn .glyphicon {
    font-size: 14px;
    color: white;
    pointer-events: none;
}

.menu-item-status-unpublished {
    color: #B3E0F2;
    font-size: 0.8em;
    font-style: italic;
    display: block;
    margin-top: 2px;
}

#case-menu-sidebar > a.menu-item-unpublished {
    opacity: 0.6;
    background: rgba(200, 200, 200, 0.08);
}

/* Case publish/unpublish status */
#case-status-container {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-status-unpublished {
    color: #B3E0F2;
    font-size: 0.85em;
    font-style: italic;
}

.case-publish-btn {
    padding: 5px 10px;
    font-size: 14px;
}

.case-publish-btn .glyphicon {
    margin-right: 4px;
}
/* Access Modality Classifiers Section */
.access-modality-section {  
    border-radius: 4px; 
}

.access-modality-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #B3E0F2;
    padding-bottom: 10px;
}

.sub-classifier-group {
    margin-bottom: 25px;
    background: white;
    padding: 15px;
    border-left: 4px solid #E52D1A;
	  border-radius: 5px 0 0 5px;
}

.sub-classifier-header h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.sub-classifier-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.sub-classifier-options .checkbox {
    margin: 0;
}

.sub-classifier-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.sub-classifier-options input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 0;
}

/* Valores seleccionados para usuarios no autorizados */
.selected-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #e8f4f8;
    border-radius: 3px;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.selected-option .glyphicon {
    color: #27ae60;
    margin-right: 8px;
    font-size: 12px;
}

/* Botón de autores en mapa */
#btn-autores {
    position: absolute;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    border-radius: 25px;
    padding: 10px 20px;
}

/* Modal de autores - tabla scrolleable */
.modal-autores-body {
    max-height: 500px;
    overflow-y: auto;
    background-color: white;
}

.modal-autores-table {
    background-color: white;
    margin-bottom: 0;
}

.modal-autores-table tbody tr {
    background-color: white !important;
}

.modal-autores-table tbody tr:hover {
    background-color: #f9f9f9 !important;
}

.modal-autores-table thead th {
    position: sticky;
    top: 0;
    background-color: #f5f5f5;
    z-index: 10;
    border-top: 1px solid #ddd;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

.modal-autores-table th.col-count {
    text-align: center;
    width: 100px;
}

.modal-autores-table td.col-count {
    text-align: center;
}

.autores-badge {
    background-color: #e52d1a;
    font-size: 14px; 
}

.caso-circle {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #e52d1a;
    color: white !important;
    text-align: center;
    line-height: 35px;
    font-size: 12px;
    border-radius: 50%;
    margin: 2px;
    text-decoration: none;
    font-weight: bold;
}

.caso-circle:hover {
    background: #c91e0f;
    color: white;
    text-decoration: none;
}
