#colorbox
{
	position:fixed !important;
	top:50px !important;
}

* {
    margin:0px;
    padding:0px;
}

/* Breadcrumb */
.cook {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 16px;
    background: #fff;
    border-bottom: 1px solid #ececec;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
}
.cook-item {
    color: #888;
    text-decoration: none;
    transition: color .15s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cook-item:hover { color: #900; }
.cook-item i     { font-size: 11px; }
.cook-sep {
    color: #ccc;
    font-size: 9px;
    display: flex;
    align-items: center;
}
.cook-parent { color: #aaa; }
.cook-current {
    color: #900;
    font-weight: 600;
}

.fieldset
{
	background-color:#fcfcfc;
	border:1px solid #eee;
	padding:10px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	margin-bottom:10px;
}

body, html
{
    background-color:#fff;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    font-size:12px;
}
pre {
    margin:20px;
    background-color:#000;
    color:#0F0;
    text-align:left;
    padding:10px;
}
a:link, a:visited, a:active 
{
    color:#900;
    text-decoration:none;
}
a:hover {
    color:#000;
}

.cellHead a:link, .cellHead a:visited, .cellHead a:active 
{
    color:#ff0;
    text-decoration:none;
    font-weight:bold;
}
.cellHead a:hover {
    color:#fff;
}

a.linkNew:link, a.linkNew:visited, a.linkNew:active 
{
    color:#900;
    text-decoration:none;
    font-weight:bold;
	font-size:10px;
	padding:5px 10px;
	background: -webkit-gradient(linear, left top, left bottom, from( #ffffff ), to( #EEEEEE )); 
    background: -moz-linear-gradient(top, #ffffff, #EEEEEE ); 
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#EEEEEE');
	border-top:1px solid #f4f4f4;
	border-left:1px solid #f4f4f4;
	border-bottom:1px solid #ccc;
	border-right:1px solid #ccc;
}

a.linkNew:hover 
{
    color:#fff;
	vertical-align:middle;
	background: -webkit-gradient(linear, left top, left bottom, from( #E31E25 ), to( #BD2125 )); 
    background: -moz-linear-gradient(top, #E31E25, #BD2125 ); 
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#E31E25', endColorstr='#BD2125');
}

.cellLogin
{
	padding:10px;
}

.infoData
{
	color:#900;
}

#page
{
    display: flex;
    min-height: 100vh;
    background-color: #f4f4f4;
}

#main-area
{
    flex: 1;
    margin-left: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left .25s ease;
}
#main-area.sidebar-open {
    margin-left: 240px;
}

#header
{
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: #555;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 20px;
    min-height: 38px;
}
.topbar-left  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-sep   { color: #ccc; }
.topbar-icon  { color: #900; font-size: 14px; text-decoration: none; }
.topbar-icon:hover { color: #600; }

.infoHead
{
	color:#222;
	padding:10px 20px;
	background-color:#fff;
	border-top:1px solid #f4f4f4;
	border-left:1px solid #f4f4f4;
	border-bottom:1px solid #ccc;
	border-right:1px solid #ccc;
}

#content
{
    flex: 1;
    padding: 20px;
    padding-top: 10px;
    background-color: #fff;
}

#footer 
{
    width:auto;
	background: -webkit-gradient(linear, left top, left bottom, from( #ffffff ), to( #EEEEEE )); 
    background: -moz-linear-gradient(top, #ffffff, #EEEEEE ); 
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#EEEEEE');
    padding:20px;
	vertical-align:middle;
	border-bottom:1px solid #ccc;
	border-top:1px solid #EEE;
}

#login 
{
    border-bottom:1px solid #eee;
    width:auto;    
    background: -webkit-gradient(linear, left top, left bottom, from( #EEEEEE ), to( #DDDDDD )); 
    background: -moz-linear-gradient(top, #EEEEEE, #DDDDDD ); 
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#EEEEEE', endColorstr='#DDDDDD');
    color:#003366;
	font-weight:bold;
    padding:10px;
}

h1
{
	color:#900;
	text-align:left;
	margin-bottom:20px;
}

h2, h3, h4 
{
    color:#000;
    text-align:center;
	text-shadow: 0 1px 1px #ccc;
}

h3
{
	color:#900;
}

.fg-button 
{
    outline: 0;
    margin:0 4px 0 0;
    padding: .4em 1em;
    text-decoration:none !important;
    cursor:pointer;
    position: relative;
    text-align: center;
    zoom: 1;
}

/* ==========================================
   SIDEBAR
========================================== */
#sidebar {
    width: 240px;
    min-height: 100vh;
    background: #f4f4f4;
    border-right: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    box-shadow: 2px 0 6px rgba(0,0,0,.08);
    transition: transform .25s ease;
}
/* Oculto por defecto en CSS -- sin JS necesario al cargar */
#sidebar {
    transform: translateX(-240px);
}
#sidebar.open {
    transform: translateX(0);
}

/* Scrollbar del sidebar */
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-track { background: #e8e8e8; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 4px; }

/* Brand */
.sidebar-brand {
    padding: 14px 14px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
}
.sidebar-logo {
    max-height: 44px;
    max-width: 180px;
    object-fit: contain;
}

/* Buscador */
.sidebar-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    background: #fff;
    flex-shrink: 0;
}
.sidebar-search-icon { color: #aaa; font-size: 11px; flex-shrink: 0; }
#sidebarSearch {
    flex: 1;
    border: none;
    outline: none;
    font-size: 11px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: transparent;
    min-width: 0;
}
#sidebarSearch::placeholder { color: #bbb; }
#sidebarSearchClear {
    color: #bbb;
    cursor: pointer;
    font-size: 11px;
    display: none;
    flex-shrink: 0;
}
#sidebarSearchClear:hover { color: #900; }

/* Nav lista base */
.sidebar-nav { flex: 1; padding: 6px 0; }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }

/* Inicio */
.nav-item-home .nav-link-home {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #444;
    text-decoration: none;
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
}
.nav-item-home .nav-link-home:hover {
    background: #e8e8e8;
    color: #900;
    border-left-color: #900;
}

/* Grupo padre */
.nav-group-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 9px 16px;
    color: #444;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
    gap: 10px;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    text-align: left;
}
.nav-group-toggle:hover,
.nav-group.open > .nav-group-toggle {
    background: #e8e8e8;
    color: #900;
    border-left-color: #900;
}

.nav-icon   { width: 16px; text-align: center; flex-shrink: 0; color: #900; }
.nav-label  { flex: 1; }
.nav-arrow  {
    font-size: 10px;
    transition: transform .2s;
    flex-shrink: 0;
    color: #aaa;
}
.nav-group.open > .nav-group-toggle .nav-arrow {
    transform: rotate(90deg);
}

/* Sub-menu */
.nav-sub {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,.03);
    border-left: 3px solid #e0e0e0;
    margin-left: 16px;
}
.nav-sub li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 14px;
    color: #555;
    text-decoration: none;
    font-size: 11px;
    transition: background .15s, color .15s;
    border-left: 2px solid transparent;
}
.nav-sub li a:hover,
.nav-sub li a.active {
    background: #ebebeb;
    color: #900;
    border-left-color: #900;
}
.nav-sub li a.active {
    font-weight: 600;
    color: #900;
}
.sub-arrow { font-size: 9px; opacity: .4; }

/* Footer del sidebar */
.sidebar-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid #ddd;
    background: #fff;
}
.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}
.sidebar-user-avatar {
    font-size: 26px;
    color: #bbb;
    flex-shrink: 0;
}
.sidebar-user-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sidebar-user-name {
    color: #333;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-role {
    color: #888;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-logout {
    color: #aaa;
    font-size: 16px;
    text-decoration: none;
    flex-shrink: 0;
    transition: color .15s;
    padding: 4px 6px;
}
.sidebar-logout:hover { color: #900; }

/* -- main-area transicion (definida arriba junto a #main-area) -- */

/* -- Toggle button en topbar -- */
#sidebarToggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .15s, color .15s;
    line-height: 1;
    margin-right: 8px;
}
#sidebarToggle:hover { background: #e8e8e8; color: #900; }


.mes_cal
{
	font-size:35px;
	color:#fff;
}

.dia_cal
{
	color:#000;
	font-size:150px;
	padding-top:15px;
	font-weight:bold;
}

.cellHead
{
    background-color:#2980b9;
    padding:7px;
    color:#fff;
    text-align:center;
    font-weight:bold;
	font-size:12px;
	text-shadow: 0 1px 1px #555;
}

.cellInfo
{
    padding:3px 7px;
    font-size:12px;
    border:1px solid #ddd;
    background-color:#fff;
}

.cellInfo img
{
    max-height:18px;
    width:auto; 
}

.cellAcceso
{
    font-size:16px;
    color:#900;
}

.errorImpo
{
	padding:3px;
	color:#900;
	width:60%;
}

#panelComp .inputForm
{
	font-size:10px !important;
}

.divBloquedo{
    padding: 20px;
    background-color: #000;
    color:#0F0;
    font-size:30px;
    text-align: center;
}

.boton-rojo {
    background: linear-gradient(135deg, #e63946, #d62828);
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.boton-rojo:hover {
    background: linear-gradient(135deg, #ff4d6d, #e63946);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.boton-rojo:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.boton-verde {
background: linear-gradient(135deg, #2ecc71, #27ae60);
color: #fff;
font-weight: bold;
font-size: 16px;
padding: 12px 24px;
border: none;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
transition: all 0.3s ease;
}

.boton-verde:hover {
background: linear-gradient(135deg, #3fd07f, #2ecc71);
transform: translateY(-2px);
box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.boton-verde:active {
transform: scale(0.97);
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.btn-excel-custom {
    background: linear-gradient(135deg, #1D6F42, #2E8B57);
    color: white !important;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-excel-custom:hover {
    background: linear-gradient(135deg, #155734, #1D6F42);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.btn-excel-custom:active {
    transform: translateY(0px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}