
.container-fluid.offcanvas-parent {
    padding-top: 0px;
}

.navbar-inverse {
    background-color: #4ab4af;
    border-color: #4ab4af;
}

.navbar-inverse .navbar-nav>.open>a, .navbar-inverse .navbar-nav>.open>a:focus, .navbar-inverse .navbar-nav>.open>a:hover,
.navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:focus, .navbar-inverse .navbar-nav>.active>a:hover{
	background-color: #39908c;
	border-color: #39908c;	
}
.navbar-inverse .navbar-nav>li>a {
    color: #ddd;
}

/* Extra icon */

.navbar-brand {
    padding-top: 9px;
    height: 50px;
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

.navbar-inverse {
    height: 50px;
}

.navbar-nav {
    margin-top: 0px;
}

.navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse {
    max-height: 400px;
}

.navbar-header button[data-toggle="offcanvas"] {
    margin-left: 15px;
    font-size: inherit;
    line-height: inherit;
    height: auto;
    padding-top: 9px;
    padding-bottom: 9px;
} 

.navbar-header button[data-toggle="offcanvas"]:after {
    font-family: 'Glyphicons Halflings';
    content: "\e080";    
    float: right;
    width: 12px;
    height: 17px;
    margin-top: -3px;
} 
.navbar-header button[data-toggle="offcanvas"].opened:after {
    content: "\e079";    
}

button[data-toggle="offcanvas"].btn:focus{
    outline: 0px;
}

.btn-wrapper {
  margin-left: 15px;
  margin-top: 13px;
}
.btn-wrapper button {
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 15px;
  padding-right: 15px;
}

/* Alturas */
html,body{
	height:100%;
	
}

body {
    padding-top: 50px; /* Fixed top menu */
    overflow: hidden; /* Avoid hor scrolling */
	background:#eee;
}

body.page {
    padding-top: 0px;
    overflow-y: auto;
    height: auto;
    background: #fff;
}

body.fullpage { padding-top:0!important; }
body.fullpage #menu {display:none!important}
body.fullpage #sidebar {width:0!important;display:none!important}
body.fullpage #frame-container {width:100%!important;}

.bg-info {
    background-color: transparent;
}

#frame-container{
  position:relative;
  padding:0!important;   
  height: 100%;
  background:#fff;
}

#frame{
  margin:0;  
  height: 100%;
  width:100%;
}

.offcanvas-parent{
	height:100%;	
}

.row-offcanvas{  
  height:100%;    
}

.sidebar-offcanvas{
  overflow-y: auto; 
  padding:0px; /* Reducido para que el list-group toque los bordes */
  height:100%;    
}

.sidebar-offcanvas h4 {
	padding: 15px 15px 5px 15px;
/* Estilos Administrador */
.admin-only {
    display: none;
}

.admin-search-container {
    background: #fdfdfd;
    padding: 15px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.admin-curse-card {
    background: #fff;
    margin-bottom: 5px;
    padding: 12px 20px;
    border: 1px solid #eee;
    transition: background 0.2s;
}

.admin-curse-card:hover {
    background: #f9f9f9;
}
	margin-top: 0;
	color: #4ab4af;
	font-weight: bold;
}

.sidebar-offcanvas .progress {
	margin: 10px 15px;
}

.sidebar-nav .list-group-item {
	border-radius: 0;
	border-left: 0;
	border-right: 0;
	border-top: 0; /* Para evitar doble borde con el panel */
}

.sidebar-nav .panel {
	border-radius: 0;
	box-shadow: none;
	border-left: 0;
	border-right: 0;
	margin-bottom: 0;
}

.sidebar-nav .panel-heading {
	background-color: #f8f8f8;
	border-radius: 0;
	padding: 0;
}

.sidebar-nav .panel-title a {
	display: block;
	padding: 10px 15px;
	color: #777;
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: bold;
	text-decoration: none;
}

.sidebar-nav .panel-title a:hover, .sidebar-nav .panel-title a:focus {
	background-color: #f0f0f0;
}

.sidebar-nav .sco.list-group-item-success {
	background-color: #e8f5f4;
	color: #39908c;
	font-weight: bold;
}

.sidebar-nav .sco .status-icon {
	margin-right: 5px;
	color: #ccc;
}

.sidebar-nav .sco.visited .status-icon {
	color: #4ab4af;
}

.sidebar-nav .sco .badge {
	background-color: transparent;
	color: #999;
	font-weight: normal;
}

.row-offcanvas .col-xs-12{
  padding-top:32px;
}



/* Off Canvas */
@media screen and (max-width: 767px) {
  .row-offcanvas {
    position: relative;
    -webkit-transition: all .25s ease-out;
         -o-transition: all .25s ease-out;
            transition: all .25s ease-out;
  }

  .row-offcanvas-right {
    right: 0;
  }

  .row-offcanvas-left {
    left: 0;
  }

  .row-offcanvas-right
  .sidebar-offcanvas {
    right: -75%; /* 6 columns */
  }

  .row-offcanvas-left
  .sidebar-offcanvas {
    left: -75%; /* 6 columns */
  }

  .row-offcanvas-right.active {
    right: 75%; /* 6 columns */
  }

  .row-offcanvas-left.active {
    left: 75%; /* 6 columns */
  }

  .sidebar-offcanvas {
    position: absolute;
    top: 0;
    width: 75%; /* 6 columns */	
  }
  
  .row-offcanvas-left.active .sidebar-offcanvas{
    position: fixed;
    left: 0;
    top: 50px;
    max-height: 92%;
    overflow-y: auto;
    left: -15px;
    padding-left: 20px;
  }
}

/*----tree---------------*/

.tree{
	margin:0;
}

.tree, .tree ul {    
    padding:0;
    list-style:none
}
.tree ul {
    margin:0 0 0 1em;
    position:relative
}
.tree ul ul {
    margin-left:.5em
}
.tree ul:before {
    content:"";
    display:block;
    width:0;
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    border-left:1px solid
}
.tree li {
    margin:0;
    padding:0.5em 0 0.5em 1em;	
    line-height:1.2em;
    color:#4ab4af;
    font-weight:400;
    position:relative;
	border-bottom:1px solid #ddd;
}
.tree ul li:before {
    content:"";
    display:block;
    width:10px;
    height:0;
    border-top:1px solid;
    margin-top:-1px;
    position:absolute;
    top:1em;
    left:0
}
.tree ul li:last-child:before {
    background:#eee;
    height:auto;
    top:1em;
    bottom:0
}
.indicator {
    margin-right:5px;
}
.tree li a {	
    text-decoration: none;
    color:#4ab4af;		
	display:inline-block;	
	max-width:70%;
	width:70%;
}

.tree a.selected {	
	color:#000;
	font-weight:bold;
}

.tree li.sco span {	
	color:#999;
	float:right;		
}

.tree li.sco.visited span:after {	
	font-family:"glyphicons halflings";
	color:#0a0;
	content:"\e089";		
	position:relative;
	left:4px;
	top:2px;
}

#tiempo { float:right;}
#tiempo:before {	
	font-family:"glyphicons halflings";
	color:#bbb;
	content:"\231b";		
	margin-right:4px;
	padding-top:2px;
}

.progress{ background: #fff;}

/* Estilos de botones de navegación SCORM */
.scorm-nav-container {
    margin: 10px 15px 20px 15px; /* Alineado con .sidebar-offcanvas .progress */
}

.btn-scorm-nav {
    background-color: #4ab4af;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-scorm-nav:hover, .btn-scorm-nav:focus {
    background-color: #39908c;
    color: #fff;
    outline: none;
}

.btn-scorm-nav:active {
    box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
}

.btn-scorm-nav[disabled] {
    background-color: #eee !important;
    color: #bbb !important;
    cursor: not-allowed;
    opacity: 0.7;
}