/* ---------------------------------------------------------------------------------------------------------- */
/* NOU Full d'estils de la web del Col·legi Oficial de Farmacèutics de les Illes Balears */
/* www.cofib.es */
/* ---------------------------------------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------------------------------------*/
/* Definició General*/
/* -----------------------------------------------------------------------------------------------------------*/

/* Cos General */
html {
  position: relative;
  min-height: 100%;
}

body {
    margin: 0px 0px 20px;
}

/* Elements de Taula */
caption {
	padding: 0 0 5px 0;
	width: 500px;	 
	font: italic 14px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	text-align: left;
}

th {
	font: bold 12px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	color: #4f6b72;
	border-right: 1px solid #CCCCCC;
	border-bottom: 1px solid #CCCCCC;
	border-top: 1px solid #CCCCCC;
	letter-spacing: 1px;
	padding: 2px 2px 2px 4px;
	text-transform: uppercase;
	text-align: center;
	background: #CAE8EA url(../../images/bg_header.jpg) repeat-x;
}

th.nobg {
	border-top: 0;
	border-left: 0;
	border-right: 1px solid #CCCCCC;
	background: none;
}

td {
	background: #fff;
	padding: 2px 2px 2px 4px;
	/*font: bold 14px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;	
	color: #4f6b72;*/
}

td.alt {
	/*background: #F5FAFA;
	font: bold 14px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;	
	color: #797268;*/
    background-color: #F5FAFA;
}

td.no {
    font: 11px Arial, Helvetica, sans-serif;
    color: white;
}

th.spec {
	border-left: 1px solid #CCCCCC;
	border-top: 0;
	background: #fff url(/images/cofib_point.jpg) no-repeat;
	font: 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
}

th.specalt {
	border-left: 1px solid #CCCCCC;
	border-top: 0;
	background: #f5fafa url() no-repeat;
	font: 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	color: #797268;
}

table.taulacontent td{
    font-size: 14px;	
    font-weight: bold;
	color: #4f6b72;
}

table.taulacontent td.alt{
    color: #797268;
}

img.dreta {
    float: right;
}

/* Icona versió imprimible */
.versioimp{
    float:right;
}
.versioimp img{
    margin-right: 0px;
    border: 0px;
}

/*General*/
.bg-rellevant {
    background-color: #d8eded;
}

.rellevant{
    border: 1px solid #AEB7BC;
    background-color: #d8eded;
    padding: 10px;
    margin-bottom: 10px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 20px;
  background-color: #006c6c;
  color: #EEE
}

.footer a{
    color: #EEE
}

.footer p{
    text-align: center;
}

/*.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}*/

p.bg-danger {
    padding: 10px;
    text-align: center;
    font-weight: bold;
}


/* Index */
.destacats > h3 > a {
    color: #333;
}
/*.destacats{
    background-color: #fff;
}*/
.destacats > ul {
    padding-left: 0px;
}
.destacats > ul > li{
    list-style:none;
    margin: 5px 0px;
}
#datepicker .ui-datepicker-title:hover{ cursor:pointer}
     

/* Carousel */
/* #TODO: Estan a index.aspx, mourer-los aquí en acabar*/

/* enquestasatisfaccio */
.panell, .panelldestacat {
    margin: 20px 10px;
}

.panelldestacat > span {
    color: red;
}

/* llistats farmàcies */
.lstgpob {
    color: #00F;
    font-size: medium;
    font-weight: bold;
    line-height: 2;
    vertical-align: bottom;
}

.lstgtitol {
    color: #008080;
    font-size: medium;
    font-weight: bold;
    font-style: italic;
}

.lstgnom {
    /*color: #990033;*/
    color: #006c6c;
    font-size: medium;
}

.lstgdir {
    /*color: #333399;*/
    color: #399;
    font-size: small;
}

.lstgmapa > img {
    height: 16px;
    width: 16px;
}

/* formularis, altausuari */
.camp {
    margin: 10px 0px;
}

div.dades {
    padding: 10px;
    max-width: 600px;
}

.centrat {
    text-align: center;
}

img.centrat{
    display: block;
}

img.centrat, table.centrat {
    margin-left: auto;
    margin-right: auto;
}

td.colesq {
    text-align: right;
    width: 50%;
}

td.coldre {
    text-align: left;
    width: 50%;
}

span.atencio {
    color: red;
}

/* Llistes (fundació) */
ol.numsimple li {
    list-style-type: decimal;
}

ol.alfabetic li {
    list-style-type: lower-latin;
}

/* Revista Mon Apotecari */
.revistaMon { margin: 15px 10px; width: 250px; }
.revistaMon a { font-size: 10px; color: #399; }
.escriucomentari 
{
    border: 1px solid #AEB7BC;
    background-color: #d8eded;
    margin: 15px 0px;
    padding: 10px;
}
.escriucomentari textarea { width: 90%; margin: 10px 0px; }
.escriucomentari ul {
    /*width: 220px;*/
    margin: 10px 0px;
    /*float: right;*/
}

.comentaris {
    margin-bottom: 10px;
    clear: both;
}
.comentari {
    padding: 5px 10px;
    background-color: #d8eded;
}
.comentari-info {
    margin-bottom: 10px;
    height: 18px;
    font-size: 12px;
}
.comentari-eines{
    float:left;
    max-width: 50%;
    overflow: hidden;
    display: inline;
}
.comentari-eines a{
    color: #399;
}
.comentari-dades{
    float:right;
    min-width: 50%;
    text-align: right;
    display: inline;
}

/* Món Apotecari */
#menuAnys {
    margin: 10px 0px;
}

.revista{
    text-align: center;
}

.portada{
    width: 140px;
    height: 178px;
}

.mon {
    margin-bottom: 5px;
    text-align: center;
}

.mon > span {
    display: block;
    width: 99%;
    font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
    color: #4f6b72;
    border-right: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
    border-top: 1px solid #CCCCCC;
    margin-bottom: 4px;
    letter-spacing: 1px;
    padding: 2px 2px 2px 4px;
    text-transform: uppercase;
    text-align: center;
    background: #CAE8EA url(/images/bg_header.jpg) no-repeat;
}

ul.menu-blocs
{
	padding-left: 0px;
	margin-bottom: 0px;
}

ul.menu-blocs > li {
    display: inline;
	list-style-type: none;
    padding: 4px 4px 4px 6px;
    background: #F5FAFA;
	font: bold 14px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;	
	color: #797268;
}

/* Menú */
/*li.ecol {background: transparent url(/images/ambcarnet.png) 3px 4px no-repeat;}
span.ecol {background: transparent url(/images/ambcarnet.png) 3px 4px no-repeat;}*/
li.permis {
    background-color: #CAE8EA;
}

/* Submenus dropdown*/
.dropdown-submenu{position:relative;}
.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px;}
.dropdown-submenu:hover>.dropdown-menu{display:block;}
.dropdown-submenu>a:after{display:block;content:" ";float:right;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#cccccc;margin-top:5px;margin-right:-10px;}
.dropdown-submenu:hover>a:after{border-left-color:#ffffff;}
.dropdown-submenu.pull-left{float:none;}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px;}

/* Integració part privada */
/* ajuda_rss */
h3.toggler {
    cursor: pointer;
    border: 2px solid #f5f5f5;
    border-right-color: #ddd;
    border-bottom-color: #ddd;
    font-family: 'Andale Mono', sans-serif;
    font-size: 14px;
    background: #B3D4D3;
    color: #528CE0;
    margin: 0 0 4px 0;
    padding: 3px 0px 1px;
}

div.justified p {
    text-align: justify;
}

/* Llistat guàrdies farmàcia */
div.atencio {
    border: 2px solid red;
    padding: 10px;
    margin: 15px 0px 30px 0px;
    border-radius: 10px;
}

#taulacontent tr.dissabte td {
    color: black;
}

#taulacontent tr.diumenge td {
    color: red;
}

#opcionsFiltre {
    background-color: #B3D4D3;
    width: 250px;
    border: 2px solid #399;
    position: absolute;
    right: 1px;
    border-radius: 10px;
}

    #opcionsFiltre h3 {
        padding: 5px 10px;
        margin: 0px;
        display: block;
        background-color: #399;
        margin: 5px auto;
    }

    #opcionsFiltre div {
        padding: 0px 10px;
        text-align: right;
    }

    #opcionsFiltre label {
        font-size: 14px;
    }

/* Promocions comercials */
        .promo_imatge {
            padding: 10px;
        }
        .promo_descripcio {
            padding: 10px;
        }
        .promo_detalls {
            padding: 10px;
            text-align: right;
        }
        .promo_detalls a {
            font-size: 0.9em;
        }
        .promocio {
            margin: 20px 0px;
        }
        .imatgePromo img {
            max-height: 80px;
            max-width: 140px;
        }

/* Farmàcies */
.SelectorFarmacies {
    float: right;
}

/* Borsa */
.notitols > label {
    font-weight: unset;
}

.vtop {
    vertical-align: top;
}

.borsapetit {
    font-size: 10px;
    font-family: Arial;
}

.borsafull {
    width: 95%
}

/* Nova Borsa */
.offer-card {
    margin-top: 5px;
    margin-bottom: 5px;
}

    .offer-card a {
        text-decoration: none;
    }

    .offer-card:hover {
        transform: translateY(-5px);
    }

    .offer-card .offer-card-body {
        padding: 22px 18px;
        color: rgb(33, 37, 41);
        font-size: 16px;
        min-height: 188.8px !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
    }

    .offer-card .offer-card-header {
        width: 100%;
        display: flex;
        flex-direction: row;
        /*justify-content: flex-end;*/
        justify-content: space-between;
        /*margin-bottom: 32px;*/
    }

    .offer-card .offer-card-info {
        display: flex;
        flex-direction: column;
    }

    .offer-card .offer-card-info .offer-card-title {
        min-height: 110px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .offer-card .offer-card-profile {
        color: #00968f;
        height: 24px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        padding-right: 15px;
    }

    .offer-card .offer-card-date {
        color: rgb(33, 37, 41);
        font-weight: 600;
    }

    .offer-card .offer-card-empresa {
        height: 18px;
        line-height: 18px;
        color: #b3b3b3;
    }


/* COLORS PART PÚBLICA */
.blanc-xines {
    background-color: #e1e1e1;
}

/* COMPATIBILITAT PART PÚBLICA */
.h5 {
    font-size: 1.25em;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    --bs-heading-color: inherit;
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--bs-heading-color);
}

/* CUSTOM INPUTS*/

/* Checkbox */
/* 1. Amaguem el checkbox natiu (el que genera l'ASP.NET) */
.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* 2. Estilitzem l'element 'span' que actuarà com la nostra casella */
.custom-checkbox .custom-checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee; 
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: background-color 0.2s;
}

/* 3. Estil per al hover */
.custom-checkbox:hover input ~ .custom-checkmark {
    background-color: #ccc;
}

/* 4. Estil quan la casella està marcada */
.custom-checkbox input:checked ~ .custom-checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

/* 5. Creem la marca de verificació (el "tick") */
.custom-checkbox .custom-checkmark:after {
    content: ""; /* És un pseudo-element */
    position: absolute;
    display: none;
}

/* 6. Mostrem el "tick" quan la casella està marcada */
.custom-checkbox input:checked ~ .custom-checkmark:after {
    display: block;
}

/* 7. Estil i posició del "tick" */
.custom-checkbox .custom-checkmark:after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* 8. Ajustem el padding per al text de l'etiqueta (MOLT IMPORTANT) */
.custom-checkbox label {
    padding-left: 25px; /* Crea espai a l'esquerra per al nou check */
    position: relative; /* Necessari per posicionar el checkmark */
    cursor: pointer;
}
