
///////////////////


/** Forms **/
form {
	clear: both;
	margin-right: 20px;
	padding: 0;
	width: 95%;
}
fieldset {
	border: 1px solid rgba(0, 0, 0, 0.2);
	margin-bottom: 1em;
	padding: 16px 10px;
}
fieldset legend {
	color: #e32;
	font-size: 160%;
	font-weight: bold;
}
fieldset fieldset {

	margin-top: 0;
	padding: 0px 0 0;
}
fieldset fieldset legend {
	font-size: 120%;
	font-weight: normal;
}
fieldset fieldset div {
	clear: left;
	margin: 0 20px;
}

/*
form div {
	clear: both;
	margin-bottom: 1em;
	padding: .5em;
	vertical-align: text-top;
}
*/

form .input {
	color: #444;
}
form .required {
	font-weight: bold;
}
form .required label:after {
	color: #e32;
	content: '*';
	display:inline;
}
form div.submit {
	border: 0;
	clear: both;
	margin-top: 10px;
}
label {
	display: block;
	font-size: 110%;
	margin-bottom:3px;
}
input, textarea {
	clear: both;
	font-size: 140%;
	font-family: "frutiger linotype", "lucida grande", "verdana", sans-serif;
	padding: 1%;
	width:98%;
}
select {
	clear: both;
	font-size: 120%;
	vertical-align: text-bottom;
}
select[multiple=multiple] {
	width: 100%;
}
option {
	font-size: 120%;
	padding: 0 3px;
}
input[type=checkbox] {
	clear: left;
	float: left;
	margin: 0px 6px 7px 2px;
	width: auto;
}
div.checkbox label {
	display: inline;
}
input[type=radio] {
	float:left;
	width:auto;
	margin: 6px 0;
	padding: 0;
	line-height: 26px;
	margin-bottom:20px;
}
.radio label {
	margin-left:30px;
	line-height: 26px;
	margin-bottom:20px;

}

.radio p{
	margin:0px;
	padding:0px;
	margin-left:30px;
}

input[type=submit] {
	display: inline;
	font-size: 110%;
	width: auto;
}



////////




.texteditor{
	height:200px;
}



.div_pregunta_opciones{
	margin-top:50px;
	position:relative;
	margin-left:20px;

}


.div_pregunta_opciones fieldset p{
	padding-left:30px;

}


.contestado_1 .input input{
	visibility:hidden;
	background:#f00;
}



.label_pregunta{
	text-align:left;
	font-size:20px;
	color: rgb(44,80, 140);
}



////////////////////////





.sub_1_menu{
	padding-left:20px;
	font-size:12px;
	font-weight:bold;
}



.altrow{
	background:#dddddd;

}

.noaltrow{
	background-color:#aaaaaa;

}


/*  Actions  */
div.actions ul {
	margin: 0px 0;
	padding: 0;
}
div.actions li {
	display: inline;
	list-style-type: none;
	line-height: 2em;
	margin: 0 2em 0 0;
	white-space: nowrap;
}
div.actions ul li a {
	color: #003d4c;
	text-decoration: none;
}
div.actions ul li a:hover {
	color: #333;
	text-decoration: underline;
}

/* Paging */
div.paging {
	color: #ccc;
	margin-bottom: 2em;
}
div.paging div.disabled {
	color: #aaa;
	display: inline;
}
div.paging span {
}
div.paging span.current {
	color: #000;
}
div.paging span a {
}


table{
	width:100%;
}

table tr td{
	text-align:center;
}

table tr td{
 color:#000;
}

a{
	text-decoration:underline;
}

.LcellContentInPar{
	background:#ccc;
}

.menu{
	width:100%;
	background:none;
	height:auto;
	margin-top:20px;
	margin-bottom:20px;
}

.menu  ul {
	margin: 0px 0;
	padding: 0;
}
.menu  li {
	display: inline;
	list-style-type: none;
	line-height: 2em;
	white-space: nowrap;
	padding:10px;
	padding-left:20px;
	padding-right:20px;
	margin-right:5px;
}

.menu  li a{
	color:#fff;
	text-decoration:none;
	font-size:14px;
}

.menu_li_1{
	background:#d8616f;
}


.menu_li_0{
	background:#cb1c38;
}

.form{
	text-align:left;
}


.btn-accion {
	display: inline-block;
	padding: 4px 10px;
	margin: 2px;
	border-radius: 4px;
	border: none;
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
	color: #fff !important;
	cursor: pointer;
}
.btn-ver       { background: #5b9bd5; }
.btn-editar    { background: #f0a500; }
.btn-preguntas { background: #5aab5a; }
.btn-eliminar  { background: #cc3333; }
.btn-accion:hover { opacity: 0.85; }

/* ── Exam editor ── */
.exam-header {
    background: linear-gradient(135deg, #cb1c38, #a01528);
    color: #fff;
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
    display: flex;
    gap: 24px;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.exam-header span { opacity: 0.65; }
.exam-header strong { margin-right: 4px; }

.exam-card {
    border: 1px solid #dde;
    border-radius: 6px;
    margin-bottom: 22px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.exam-card-title {
    cursor: pointer;
    padding: 11px 16px;
    background: #f7f7f9;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dde;
}
.exam-card-title:hover { background: #efeff3; }
.exam-card-body { padding: 18px 20px; }

.preguntas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.preguntas-header h3 { margin: 0; font-size: 17px; color: #333; }

.preguntas-table { width: 100%; border-collapse: collapse; }
.preguntas-table th {
    background: #cb1c38;
    color: #fff;
    padding: 9px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
}
.preguntas-table td {
    padding: 9px 12px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    text-align: left;
    color: #333;
}
.preguntas-table tr.altrow td { background: #f9f9fb; }
.preguntas-table tr:hover td  { background: #fff3f4; }
.preguntas-table .num-col     { width: 40px; text-align: center; }
.preguntas-table .resp-col    { width: 90px; text-align: center; }
.preguntas-table .activo-col  { width: 60px; text-align: center; }
.preguntas-table .actions-col { width: 130px; text-align: center; }

.pregunta-panel {
    display: none;
    margin-top: 28px;
    border: 2px solid #5aab5a;
    border-radius: 8px;
    padding: 22px 24px;
    background: #fafffe;
    box-shadow: 0 2px 10px rgba(90,171,90,0.12);
}
.pregunta-panel h3 {
    margin: 0 0 18px 0;
    font-size: 17px;
    color: #2a6e2a;
    border-bottom: 1px solid #c3e6c3;
    padding-bottom: 10px;
}
.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.panel-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.sin-preguntas {
    color: #999;
    padding: 18px;
    text-align: center;
    font-style: italic;
    background: #fafafa;
    border-radius: 4px;
    border: 1px dashed #ddd;
}

.btn-guardar {
    display: inline-block;
    padding: 8px 20px;
    background: #2a6e2a;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}
.btn-guardar:hover { background: #235923; opacity: 1; }

.btn-cancelar {
    display: inline-block;
    padding: 8px 16px;
    background: #888;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* ── Admin tables ── */
.admin-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.admin-table thead tr { background: #cb1c38; }
.admin-table thead th {
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.admin-table thead th a { color: #ffd0d8 !important; text-decoration: none; }
.admin-table thead th a:hover { color: #fff !important; }
.admin-table tbody td {
    padding: 9px 14px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    color: #333;
    text-align: left;
}
.admin-table tbody tr.altrow td { background: #f9f9fb; }
.admin-table tbody tr:hover td  { background: #fff0f2; }

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    color: #fff !important;
    white-space: nowrap;
}
.badge-activo   { background: #3a9c3a; }
.badge-inactivo { background: #aaa; }

.index-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.index-toolbar h2 { margin: 0; }

.paging-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #666;
}
.paging-bar a {
    color: #cb1c38;
    text-decoration: none;
    padding: 3px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}
.paging-bar a:hover { background: #faf0f1; }
.paging-bar span.current {
    background: #cb1c38;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
}
