/*
============================================================================================================================
				LOGIN
======================================
*/
body{
    margin: 0;
    box-sizing: border-box;
	font-family: 'sans-serif;', sans-serif;
}
.div_menu{
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
}
.div_filter{ display: flex; backdrop-filter: blur(30px); background: rgba(255, 255, 255, .8); }
.backpaper{
	background-image: url('../backpaper3.png');
	background-attachment: fixed;
	background-size: cover;
	background-repeat: no-repeat;
}
.login{
	color: white;
	text-align: center;
}
.table_login{
	color: white;
	text-align: center;
	width: 30rem;
	border: solid rgba(255, 255, 255, 0.3) 1px;
	border-radius: 10px;
	margin-left: -9px;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(6px);
	padding: 1rem;
	box-shadow: 0px 0px 30px black;
}
.table_login_input{
	color: white;
	width: 60%;
	border-radius: 30px;
	border: solid black 1px;
	padding-left: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
	font-size: 1rem;
	background-color: rgba(0, 0, 0, 0);
	border: solid rgba(0, 0, 0, 0);
	border-bottom: solid rgba(255, 255, 255, 0.8) 1px;
}
.table_login_input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}
.check_view_pass{ width: 1.2rem; height: 1.2rem; cursor: pointer; }
.divbutton1{ display: flex; align-items: center; justify-content: center; }
.tdlogin{ padding:1rem; }
.trlogin{ background-color: rgba(0, 103, 148, 0.5); }
.tdth{ border-radius: 10px; color: white; text-align: center; }
.divforgot_pass{ padding-top: 25px; }
.aforgot_pass{ color: white; text-decoration: none; text-shadow: 0px 2px 2px black; }
.aforgot_pass:hover{ color: orange; }
.content{ display: grid; place-items: center; height: 100vh; }
.div_content{ backdrop-filter: blur(10px); background-size: cover; }

.title_table{
	background: rgba(0, 103, 148, 0.8);
	border-radius: 8px 8px 0 0;
	color: white; padding: 0.8rem;
}

/*
============================================================================================================================
			BUTTON ADD
======================================*/
.th{
	border: none;
	border-bottom: solid 1px;
}
.btn_add{
	text-decoration: none;

	background: white;
	color: green;
	font-weight: bold;
	letter-spacing: 1px;
	width: 9rem;
	height: 2.5rem;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: .3s ease;

	/*margin-top: 2rem;
	margin-left:auto;
	margin-right:2rem;
	display:block;*/

	/*position: absolute;*/
	/*position: fixed;*/
	text-align: center;
	border: solid 1px black;
	left: 85%;
}

.btn_add::before{
	content: "";
	top: 0;
	left: -130%;
	width: 60%;
	height: 100%;

	background: rgba(255,255,255,.30);
	transform: skewX(-25deg);
	pointer-events: none;
}

.btn_add:hover{
	background: rgba(0, 153, 6, 1.0);
	color: white;
	box-shadow: 0px 0px 15px greenyellow;
	transform: translateY(-2px);
}
.grp{ color: rgba(0, 6, 153, 1.0); }
.grp:hover{ background: rgba(0, 6, 253, 1.0); box-shadow: 0 0 15px skyblue; }
.centercheck{ place-items: center; }

#agency-group-agencies-list {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #bfbfbf;
    border-radius: 8px;
    padding: 8px;
    background: #f5f5f5;
}

.btn_add:hover::before{
	left: 150%;
	transition: left .55s ease;
}

/* Button de login */
.btn_login, .selectAgency{
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: linear-gradient(135deg, #ffffff, #dcdcdc);
	color: rgba(0,69,99,1);
	font-weight: bold;
	letter-spacing: 1px;
	width: 9rem;
	height: 2.5rem;
	border-radius: 8px;
	box-sizing: border-box;
	margin: 0.7rem;
	position: relative;
	overflow: hidden;
	box-shadow: 0 6px 15px rgba(0,0,0,.45);
	transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .2s ease;
	cursor: pointer;
	border: solid transparent;
	padding-left: 9rem;
	padding-right: 9rem;
}

.btn_login::before{
	content: "";
	position: absolute;
	top: 0;
	left: -130%;
	width: 60%;
	height: 100%;
	background: rgba(255,255,255,.35);
	transform: skewX(-25deg);
	transition: left .55s ease;
	pointer-events: none;
}

.btn_login:hover{
	background: linear-gradient(135deg, rgba(0,103,148,1), rgba(0,160,190,1));
	color: white;
	box-shadow: 0 0 22px rgba(0,255,255,.45);
}

.btn_login:hover::before{ left: 150%; }
.login_icons{ margin-right: 1rem; }

.selectAgency{
	margin: 0rem;
	display: initial;
	position: initial;
	color: white;

	background: rgba(0, 103, 148, 0.8);
}

/* Message */
.d-message{
	transition: opacity 1s ease; opacity: 1;
	border-radius: 10px; position: absolute;
	left: 0; right: 0; text-align: center;
	margin-left: auto; margin-right: auto;
	width: 20rem; pointer-events: none;
}
.oculto {
	opacity: 0;
	pointer-events: none;
}

/*
============================================================================================================================
			MENU Eco-Rent
======================================
*/

.bckppr_2{
    min-height: 100vh;
    width: 100%;
    margin: 0px;
    /*backdrop-filter: blur(30px);*/
}

/*.bckppr_3{
    background: rgba(0, 0, 0, 0.3);
}*/

.c_menu{
	display: grid;
    place-items: center;
    height: 100vh;
}

.table_menu{
	color: white;
	text-align: center;
	border-radius: 10px;
	background-color: rgba(255, 255, 255, 0.6);
	box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	margin: 20px auto;
	table-layout: fixed;
	width: 35%;
	border: none;
}
.table_menu th{ height: 60px; background: rgba(0,103,148,0.6); }
/*.table_menu td{ color: rgba(0, 103, 148, 1.0); }*/
.tbody{ color: black; }

.t_menu{
	padding: 1rem;
}

.t_user{
	width: 95% !important;
}
/*.t_user{
	width: 50% !important;
}*/

.t_user th{ height: 50px; }

.btn_menu{
	padding-left: 0;
	padding-right: 0;
	width: 80%;
	font-size: 1.2rem;
	height: 3.5rem;
	margin: 0rem auto;
	/*display: block;*/
}

option{
	border-radius:10px;
	text-align: center;
	background:white;
	color:black;
}

main{
    flex: 1;
}

.input_m{
	color: rgba(0,69,99,1);
	font-weight: bold;
	letter-spacing: 1px;
	border-radius: 8px;
	box-sizing: border-box;
	box-shadow: none;
	border: solid 2px rgba(0,69,99,1);

	padding-left: 0.5rem;
	padding-right: 0.5rem;
	width: 90%;
	font-size: 1rem;
	height: 2.5rem;
	/*margin: 0rem auto;*/
}

/*
============================================================================================================================
    		HEADER Eco-Rent
====================================== */
.header_menu{
	text-align: center;
    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.7);
    
    padding-left: 2rem; padding-right: 3.5rem;
    border-bottom: solid 2px rgba(0, 103, 148, .8);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, .7);
    display: flex;
    height: 12rem;
    flex-direction: column;
}

.div_ecorent{ padding: 1rem; text-align: center; }
.div_ecorent label{ padding-top: 2rem; }

.logout_ico{
    width: 45px;
    height: auto;
    z-index: 2;
}

.a_logout_ico{
    display: block;
    position: absolute;
    z-index: 2;
    left: 1.5%;
    margin-top: 20px;
    width: 60px;
    height: 45px;
}

.logout_ico:hover{ filter: drop-shadow(0px 0px 10px red); }

.body_menu{
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    font-weight: bold;
}

.text_salir{
    position: absolute; left: 5.5%; font-size: 22px;
    margin-top: 2rem; color: red;
}
.text_salir a{ color: red; }
.txt_salir { color:darkgreen; text-shadow:none; }

.h1_menu   { color: rgba(0,63,108,1); font-size: 1.8rem; font-weight:bold; }
.h2-2_menu { font-size: 1.3rem; }
.h2_menu   { text-align: left; left:30px; }
.h3_menu   { text-align: right; transform:translateY(-110px); } /* ROL */

.logo_ico{
    position: fixed;
    right: 1.5rem;
    top: 2.5rem;
    /*padding: 0px;*/
    border-radius: 100px;
    background: rgba(0, 103, 148, 0.7);
}
.logo{
    width: 200px;
    filter: drop-shadow(0px 0px 7px rgba(50, 70, 70, 1));
}
.inf_log{
	transform: translateY(-70px);
	background: rgba(0,103,148,0.8);
	width: 35%;
	border-radius: 10px;
}
.inf_log h2{
	margin: 0px;
	color: white;
	padding: 0.5rem;
}

/*
============================================================================================================================
    		FOOTER Eco-Rent
====================================== */
.general_footer{
	/*margin-top: 10rem;*/
    text-align: center;
    padding: 1rem;
    position: relative;
    backdrop-filter: blur(20px);
    background: rgba(0, 103, 148, .8);
    border-top: solid 1px rgba(0, 103, 148, 1.0);
    font-weight: bold;
    color: white;
    clear: both;
    /*bottom: 0;*/
}

/*
============================================================================================================================
			TOP MENU 📜✏️
======================================*/
.menu_tool{
	text-align: center;
	margin-top: 0rem;
    backdrop-filter: blur(20px);
    background-color: rgba(0, 103, 148, 0.8);
}
.menu_tool .li2_menu .a2_menu{
    text-decoration: none;
    color: white;
    padding: 20px;
    padding-inline-end: 50px;
    padding-inline-start: 50px;
    display: block;
    /*transition: background-color 0.1s ease-in-out;*/
}
.menu_tool .li2_menu, .l_menu{
    display: inline-block;
    text-align: center;
}
.menu_tool .li2_menu .a2_menu:hover, .a_menu:hover{
    background: white;
    color: rgba(0, 103, 148, 1.0);
    box-shadow: 0px 5px 15px darkcyan;
    border-radius: 8px;
}

/*
============================================================================================================================
				EMERGENTE 🚀
======================================*/
/* Background */
body.sin-scroll {
    overflow: hidden;
}

/* Fondo oscuro del modal */
.modal-fondo {
    display: none;

    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100dvh;

    background: linear-gradient(135deg, rgba(0,13,38,.8), rgba(0,0,0,.8));
    backdrop-filter: blur(8px);

    z-index: 9999;
}

/* Cuando el modal está abierto */
.modal-fondo.activo {
    display: block;
}

/* Caja del formulario */
.modal-contenido {
    position: fixed;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: rgba(245, 245, 245, 0.95);

    width: 600px;
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 2rem);

    overflow-y: auto;
    overflow-x: hidden;

    padding: 1.2rem;
    border-radius: 14px;
    box-sizing: border-box;

    box-shadow: 0 0 30px rgba(0,0,0,.5);
}

/* Espaciado de las celdas */
.modal-contenido td {
    padding: 8px;
}

/* Header del modal */
.modal-header {
    /*margin-top: 0;
    margin-left: 0;*/
    /*display: flex;*/
    /*width: 100% !important;*/

    /*justify-content: space-between;*/
    /*align-items: center;*/
}

/* Botón cerrar */
.cerrar {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    margin: 1.7rem;
    font-size: 22px;
    font-weight: bold;
    background: rgba(100, 0, 0, 0.5);
    padding: 3px 10px 5px 10px;
    border-radius: 8px;
}

.cerrar:hover {
    color: white;
    background: red;
    box-shadow: 0px 0px 20px red;
}

/* Inputs, selects */
.form_add_agent {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Botón guardar */
.btn_save {
    width: 100%;
    background: rgba(210, 255, 210, 1.0);
    position: initial;
    left: initial;
    margin: 0;
}

@keyframes aparecer{
    from{
        transform: scale(.8);
        opacity: 0;
    }
    to{
        transform: scale(1);
        opacity: 1;
    }
}

/* Required */
.required:required{
	background: rgba(255, 245, 245, 1.0);
	border: solid rgba(255, 80, 80, 1.0) 1px;
}
.required:required:valid{
	background: white;
	border: 1px solid #ccc;
}

/*option{ box-shadow: 0px 0px 20px black; }*/

/*
============================================================================================================================
			EDIT & DELETE ICONS
======================================*/
.actions{
	padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn_icon{
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    background: #8A0002;
    color: white;
    transition: .3s ease;
}

.edit{ background: #217dbb; }
.view{ background: #BD950A; color: black; }

.edit:hover{ background: #3498db; transform: scale(1.08); box-shadow: 0px 0px 30px black; }
.disable:hover{ background: red; transform: scale(1.08); box-shadow: 0px 0px 30px black; }
.view:hover{ background: #FFC90E; transform: scale(1.08); box-shadow: 0px 0px 30px black; }


/* 
============================================================================================================================
 	CALENDARY 📆    
==================== 
*/
.end_date[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(30%);
}
.end_date:hover{ cursor: pointer; }

/* V.2 */
.date-box { position: relative; width: 100%; }
/*.custom-calendar { display: none;
    position: absolute; top: -390px; left: 0; width: 320px; background: #ffffff;
    border: 1px solid lightgray; border-radius: 18px;
    padding: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    z-index: 99999;
}*/
.custom-calendar {
    display: none;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 320px;
    background: #ffffff;
    border: 1px solid lightgray;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    z-index: 99999;
}
.custom-calendar.active { display: block; }
.calendar-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 15px;
    color: #111;
}
.calendar-header button {
    width: 36px; height: 36px; border: none;
    border-radius: 50%; background: rgba(0, 103, 148, .7);
    color: white; font-size: 24px;
    cursor: pointer;
}
.week-days,
.calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 7px; text-align: center;
}
.week-days span { font-weight: bold; color: #555; font-size: 13px; }
.calendar-grid button {
    border: none; border-radius: 10px; padding: 9px 0;
    background: #f2f2f2; cursor: pointer; font-size: 14px;
}
.calendar-grid button:hover { background: rgba(0, 103, 148, .7); color: white; }
.calendar-grid button.disabled { background: #e0e0e0;color: #aaa; cursor: not-allowed; }
.calendar-grid button.today { background: #0066ff; color: white; }
.calendar-grid button.selected { background: #00a000; color: white; }
.calendar-actions { display: flex; justify-content: space-between; margin-top: 12px; }
.calendar-actions button { border: none; background: transparent; color: #0066cc;
    font-size: 13px; cursor: pointer; padding: 5px 8px; border-radius: 6px;
}
.calendar-actions button:hover { background: #eaf2ff; }
.label-end-date{
    color: rgba(150, 70, 70, 1);
}

.calendar-header {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    gap: 6px;
}

.calendar-header strong {
    text-align: center;
}

/*
=====================================================
			TYPE RELATION
*/
.div_t_relation{ display: flex; font-weight: bold; }
.title_table{
	padding: 1.5rem;
	font-size: 1.5rem;
	letter-spacing: 5px;
	font-weight: bold;
}
.r_select{
	cursor: pointer;
	font-weight: bold;
	width: 90%;
	font-size: 1.2rem;
	height: 3.5rem;
	margin: 1rem auto;

	color: white;
	background: rgba(0, 103, 148, 0.8);
	border: solid darkcyan 2px;
	border-radius: 10px;
}

a{ text-decoration:none; }

.btn_s{
	width: 100%;
	/*width: 4rem;*/
    height: 3.5rem;
    font-size: 1.1rem;

	display: inline-flex;
	align-items: center; /* Centrado Vertical */
	justify-content: center; /* Centrado Horizontal */
	/*text-decoration: none;*/

	background: white;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: .3s ease;
	text-align: center;
	border: solid 1px black;
}

.btn_s::before{
	content: "";
	position: absolute;
	top: 0;
	left: -130%;
	width: 60%;
	height: 100%;

	background: rgba(255,255,255,.30);
	transform: skewX(-25deg);
	pointer-events: none;
}

.btn_s:hover{
	background: rgba(0, 103, 148, .8);
	color: white;
	transform: translateY(-2px);
}

.btn_s:hover::before{
	left: 150%;
	transition: left .55s ease;
}

.t_relation{
	background: rgba(255, 255, 255, 0.8);
	text-align: center;
	color: rgba(0, 103, 148, 1.0);
	width: 100% !important;
	margin-left: 3rem;
	margin-right: 3rem;
	padding: 0px;
	border-radius: 10px;
	font-size: 1.2rem;
	border-spacing: 0px;
	/*background: rgba(0, 103, 148, 1);*/
	/*cursor: pointer;*/
	border: solid darkcyan 2px;
}

/* 
=======================================
	SUCURSALES
=================
*/
.branches-view { width: 95%; margin: 20px auto; }
.branches-view .table_menu { width: 100% !important; margin: 20px auto; }
.hidden { display: none; }
.branches-tabs { width: 95%; margin: 10px auto; display: flex; gap: 10px;
    justify-content: center;
}
.branches-tab { border: none; border-radius: 8px; padding: 10px 18px;
    font-weight: bold; color: white; background: rgba(0,103,148,0.8);
    cursor: pointer;
}
.branches-tab.danger {
    background: rgba(150, 30, 30, 0.8);
}
.branches-table-disabled th {
    background: rgba(150, 30, 30, 0.65);
}
.branches-table-disabled {
    box-shadow: 0px 0px 15px rgba(120, 20, 20, 0.45);
}

/*
============================================================================================================================
    		📲 MOBILE VIEW
====================================== */
@media (max-width: 1359px) {

    .inf_log h2{
    	background:transparent;
    	color: white;
    	/*width: 95% !important;*/
    	/*left: 2%; right: 2%;*/
    	font-size: 0.9rem;
    	/*margin-top: 10px;*/
		padding: 0px auto;
    }

    .inf_log{
		border-radius: 10px;
    	margin-top: 1rem;
    	/*padding-bottom: 0.8rem;*/
    	padding-bottom: 0;
		/*width: 40% !important;*/
		background: rgba(0,103,148,0.6);
    }
    
    .header_menu{
        padding: 20px;
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        height: 140px;
        /*flex-direction: column;*/
    }

    .a_logout_ico{
        margin-top: 6px;
        width: auto;
    }

    .logout_ico { width:35px; }
    .h1_menu    { font-size:120%; font-weight:bold; margin:0px; }
    /*.h2_menu    { font-size:120%; font-weight:bold; margin-top:2rem; margin-right: -20px; }*/
    .h2-2_menu  { pointer-events: none; display:none; }
    .h2_hora    { font-size:120%; font-weight:bold; margin-top:-1rem; }
    /*.h3_menu    { text-align: center; margin:0px; transform: translateY(-55px);  }*/
    .h3_menu    { display:none; pointer-events:none; }
    .sucursal   {
    	font-size: 100%; font-weight: bold;
    	display: flex; position: absolute; 
    	margin: 0px; text-align: center;
    	/*background: cyan;*/
    	right: 40px;
    	top: 50px;
    	/*transform: translate(100%,-10px);*/
    }

    .logo_ico{
        /*position: static;
        margin: -10px;
        margin-bottom: -20px;
        padding: 10px;*/
        background: transparent;
    }

    .logo{ width: 150px; }
    .logo_smart{ display:none; }

    .table_menu{ width: 95% !important; margin: 20px auto; }
    /*.table_menu{ width: 50% !important; margin: 20px auto; }*/
    .table_login{ width: 100% !important; margin: 20px auto; }

    .btn_menu{
        width: 90% !important;
        height: 3.5rem;
        font-size: 1.1rem;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .t_menu{ padding: 0.5rem; }
    .text_salir{ pointer-events:none; display:none; }

    .table_login input{
		font-weight: bold;
		border-radius: 0px;
		width: 75%;
	}

	.table_login input::placeholder {
	    color: rgba(255, 255, 255, 0.6);
	    opacity: 0.5;
	}

	.menu_tool{
		margin-top: 0px;
	}

	footer{
		right: 0; left: 0;
	    font-size: 13px;
	    backdrop-filter: blur(20px);
	    background-color: rgba(255, 255, 255, 0.6);
	    font-weight: bold; color: black;
	    margin-top: 1rem;
	}

	.bckppr_3{ background: rgba(255, 255, 255, 1.0); background-image: none; }

	/*
	============================================================================================================================
				TOP MENU 📜✏️
	======================================*/
	.menu_tool{
		padding-left: 0;
		text-align: center;
	    backdrop-filter: blur(0px);
	}
	.menu_tool .li2_menu .a2_menu{
		font-weight: bold;
	    text-decoration: none;
	    color: white;
	    padding: 20px;
	    padding-inline-end: 10px;
	    padding-inline-start: 10px;
	}
	.menu_tool .li2_menu, .l_menu{
	    display: inline-block;
	    text-align: center;
	}
	===================================================
}

@media (max-width: 1229px) { .btn_add{ left: 83%; } }
@media (max-width: 1024px) { .btn_add{ left: 80%; } }
@media (max-width: 1000px) { .btn_add{ left: 79%; } }
@media (max-width: 800px)  { 
	.btn_add{ left: 74%; }
	
}
@media (max-width: 700px)  { .btn_add{ left: 71%; } }
@media (max-width: 600px)  { .btn_add{ position: initial; width: 90%; }
    .inf_log{ width: 100% !important; }
    .sucursal   { left: 20px; top: 103px; }
    .header_menu{ height: 170px; }
}
@media (max-width: 360px)  {
	.menu_tool .li2_menu .a2_menu{
	    padding: 10px;

	    /*padding-left: 0px; padding-right: 0px;*/
	    padding-inline-end: 10px;
	    padding-inline-start: 10px;
	}
    .title_table{ letter-spacing: 0; }
}