/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    /*font-size: 1em;
    line-height: 1.4;*/
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html
{
}

body
{
    background-color: white;
    font-family: 'Raleway', sans-serif;
    color: #003868;
}

.main, header, footer
{
    width: 960px;
    margin: 0 auto;
}

header
{
    position: relative;
    height: 160px;
}

header nav
{
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 30px;
}

header #logo_egeo
{
    position: absolute;
    bottom: 5px;
    left: 0;
    margin: 30px;
}

header #numero_verde
{
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    margin: 30px;
}

header .apl
{
    position: absolute;
    top: 0;
    left: 190px;
    margin-top: 30px;
    width: 80px;
    padding: 26px;
}

header .apl h3
{
    line-height: 30px;
    font-weight: normal;
}

header ul
{
    margin: 0;
    text-align: center;
    padding: 0;
}

header li
{
    display: inline-block;
    margin-left: 20px;
    color: #474747;
    font-weight: normal;
    font-size: 16px;
}

a
{
    color: #003868;
    text-decoration: none;
}

a.active
{
    color: #90cc5b;
    text-decoration: none;
}

a:hover, a:focus
{
    text-decoration: none;
    color: #90cc5b;
}

.nowrap
{
    white-space: nowrap;
}

/**
 *  SLIDES
 */

section.slider
{
}

section.slider .main
{
    height: 250px;
    overflow: hidden;
}

#slides
{
    position: relative;
}

#slides .slidesjs-control img
{
}

#slides .slidesjs-pagination
{
    list-style: none;
    position: absolute;
    text-align: center;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 10;
    margin: 0;
    padding: 0;
}

#slides .slidesjs-pagination li
{
    display: inline-block;
}

#slides .slidesjs-pagination a
{

    width:16px;
    height:16px;
    background:url(../img/website/slider_bullet.png) no-repeat;
    text-indent:-9999px;
    border:0;
    margin-right:3px;
    display: inline-block;
}

#slides .slidesjs-pagination a.active
{
    background:url(../img/website/slider_bullet_active.png) no-repeat;
}


/**
 * CONTENT MAIN
 */

section.content .main
{
    padding: 0;
}

section.content .main section
{
    width: 600px;
    padding: 0 30px;
    float: left;
}

section.content .main section article
{
    width: 600px;
    display: inline-block;
    vertical-align: top;
    margin: 15px 0;
}

section.content .main section article img
{
}

section.content .main section article img+p,
section.content .main section article img+ol
{
    margin-top: 10px;
}

section.content .main section article.l50, section.content .main section article.r50
{
    width: 250px;
}

section.content .main section article.l50 img, section.content .main section article.r50 img
{
    margin-bottom: 10px;
}

section.content .main section article.l50
{
    margin-right: 18px;
}

section.content .main section article.r50
{
    margin-left: 78px;
}

section.content .main section article h3
{
    background-image: url('../img/website/header_prefix.png');
    background-position: top left;
    background-repeat: no-repeat;
    padding-left: 37px;
    line-height: 35px;
    padding-top: 10px;
    color: #003868;
    font-weight: normal;
    font-size: 22px;
}

section.content .main section article h3 > a
{
    color: #003868;
}

section.content .main section article h3 > a:hover
{
    color: #90cc5b;
}

div.noticias
{
    margin: 10px 0 5px 0;
    width: 600px;
}

div.noticias h4, div.noticias h4 a
{
    margin-bottom: 3px;
    color: #003868;
}

div.noticias h4 a:hover
{
    text-decoration: underline;
}

section.content.noticias div.noticias
{
    margin-top: 25px;
}

ul.circle {list-style-type:circle}
ul.square {list-style-type:square}
ol.upper-roman {list-style-type:upper-roman}
ol.lower-alpha {list-style-type:lower-alpha}
ol.lower-latin {list-style-type:lower-alpha}

ul.nobullet
{
    list-style: none;
    margin-left: 0;
}

ul.nobullet li
{
    margin-bottom: 10px;
}

h4.overline
{

}

h4.overline:before
{
    content: "";
    display: block;
    width: 90px;
    height: 2px;
    border-top: 2px solid #7bca30;
}

div.noticias p
{
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 20px;
}

div.noticias span, div.noticias a.ler_mais
{
    font-size: 12px;
    line-height: 16px;
}

span.date
{
    font-size: 12px;
    line-height: 16px;
}

table.tarifarios
{
    margin: 10px 0;
    border-spacing: 2px !important;
    border-collapse: separate;
}

table.tarifarios thead th
{
    background-color: #01366c;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
}

table.tarifarios thead th small
{
    font-size: 13px;
    font-weight: normal;
}

table.tarifarios tbody td
{
    background-color: #e4e4e4;
    padding: 5px 10px;
    font-size: 13px;
    height: 50px;
    color: #01366c;
}

div.footnotes
{
    padding: 15px;
    font-size: 13px;
}

/**
 *  SIDEBAR
 */

section.content .main .sidebar
{
    width: 280px;
    float: right;
    padding: 0 10px;
    text-align: center;
}

section.content .main .sidebar ul, section.content .main .sidebar .widget
{
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 252px;
    margin: 30px 0;
}

section.content .main .sidebar .widget h3
{
    color: white;
    background-color: #01366c;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    text-align: center;
    font-weight: normal;
    margin: 0;
    font-size: 21px;
}

section.content .main .sidebar .widget form,
section.content .main .sidebar .widget div.logged_in
{
    background-color: #e4e4e4;
    padding: 15px;
    text-align: center;
}

section.content .main .sidebar .widget div.logged_in
{
    color: #003868;
    font-size: 14px;
}

section.content .main .sidebar .widget div.logged_in a
{
    color: #003868;
    text-decoration: underline;
}

section.content .main .sidebar .widget div.logged_in a:hover
{
    color: #90cc5b;
}

section.content .main .sidebar .widget form a
{
    font-size: 12px;
    line-height: 14px;
    float: left;
    color: #003868;
}

section.content .main .sidebar .widget form a.registo_cliente:hover
{
    color: #90cc5b;
}

section.content .main .sidebar .widget form a.submit,
section.content .main .sidebar .widget div.logged_in a.logout
{
    display: block;
    float: right;
    background-image: url('../img/website/form_entrar.png');
    background-repeat: none;
    width: 95px;
    height: 26px;
    text-indent: -9999px;
}

section.content .main .sidebar .widget div.logged_in a.logout
{
    margin-top: 10px;
    background-image: url('../img/website/form_logout.png');
    width: 158px;
}

section.content .main .sidebar ul a
{
    display: inline-block;
    font-size: 18px;
    vertical-align: middle;
    padding: 0 10px;
}

section.content .main .sidebar ul li 
{
    margin-bottom: 30px;
}

/**
 *  Abertura contrato
 *  Enviar sugestões/reclamações
 *  Formulário de contactos
 */

sup
{
    font-family: arial;
    font-size: 100%;
    top: 0;
    color: #90cc5b;
}

form#abertura_contrato,
form#sugestoes_reclamacoes,
form#registo_cliente,
form#editar_cliente,
form.egeo
{
    margin: 30px 0;
}

form#abertura_contrato .input-prepend label,
form#sugestoes_reclamacoes .input-prepend label,
form#registo_cliente .input-prepend label,
form#editar_cliente .input-prepend label,
form.egeo .input-prepend label
{
    display: inline-block;
    -webkit-border-radius: 14px 0 0 14px;
    -moz-border-radius: 14px 0 0 14px;
    border-radius: 14px 0 0 14px;
    background-color: #01366c;
    color: white;
    padding: 5px 12px;
    font-size: 13px;
    line-height: 20px;
    width: 100px;
}

form#sugestoes_reclamacoes .input-prepend label,
form#registo_cliente .input-prepend label,
form#editar_cliente .input-prepend label,
form.egeo .input-prepend label
{
    width: 140px;
    vertical-align: top;
    margin-right: -1px;
}

form#sugestoes_reclamacoes .input-prepend label.radio,
form#registo_cliente .input-prepend label.radio,
form#editar_cliente .input-prepend label.radio,
form.egeo .input-prepend label.radio
{
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    background-color: #ededed;
    color: #003868;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    margin-left: 0px;
    width: 100px;
    padding: 4px 12px;
}

form#sugestoes_reclamacoes .input-prepend label.radio.last,
form#registo_cliente .input-prepend label.radio.last,
form#editar_cliente .input-prepend label.radio.last,
form.egeo .input-prepend label.radio.last
{
    -webkit-border-radius: 0 14px 14px 0;
    -moz-border-radius: 0 14px 14px 0;
    border-radius: 0 14px 14px 0;
    border-right: 1px solid #cccccc;
    width: 120px;
}

form#sugestoes_reclamacoes .input-prepend label.radio input,
form#registo_cliente .input-prepend label.radio input,
form#editar_cliente .input-prepend label.radio input,
form.egeo .input-prepend label.radio input
{
    margin-left: 10px;
    margin-right: 5px;
    margin-top: 3px;
}

form#abertura_contrato .input-prepend input,
form#sugestoes_reclamacoes .input-prepend input,
form#sugestoes_reclamacoes .input-prepend textarea,
form#registo_cliente .input-prepend input,
form#editar_cliente .input-prepend input,
form .input-prepend select,
form.egeo .input-prepend input,
form.egeo .input-prepend select,
form.egeo .input-prepend textarea
{
    background-color: #ededed;
    -webkit-border-radius: 0 14px 14px 0;
    -moz-border-radius: 0 14px 14px 0;
    border-radius: 0 14px 14px 0;
    color: #003868;
}

form .input-prepend select,
form.egeo .input-prepend select
{
    padding-right: 10px;
}

form#sugestoes_reclamacoes .input-prepend textarea,
form.egeo .input-prepend textarea
{
    width: 422px !important;
}

form#abertura_contrato .input-prepend input.input-xxlarge
{
    width: 462px !important;
}

form#registo_cliente .input-prepend input.input-xxlarge,
form#editar_cliente .input-prepend input.input-xxlarge
{
    width: 422px !important;
}

form#sugestoes_reclamacoes .input-prepend input.input-xxlarge,
form.egeo .input-prepend input.input-xxlarge
{
    width: 422px !important;
}

form#abertura_contrato .input-prepend input.input-small,
form#sugestoes_reclamacoes .input-prepend input.input-small,
form.egeo .input-prepend input.input-small
{
    width: 110px !important;
}

form#registo_cliente .input-prepend input.input-small,
form#editar_cliente .input-prepend input.input-small
{
    width: 121px !important;
}

#abertura_contrato a.submit,
#sugestoes_reclamacoes a.submit,
#registo_cliente a.submit,
#editar_cliente a.submit,
form.egeo a.submit
{
    display: block;
    float: right;
    background-image: url('../img/website/form_enviar.png');
    background-repeat: none;
    width: 95px;
    height: 26px;
    margin-top: 30px;
    text-indent: -9999px;
}

article.contactos address
{
    display: inline-block;
    margin: 0 37px;
}

section.content.contactos h4.overline
{
    margin-top: 35px;
}

section.content.contactos form.egeo
{
    margin-top: 15px;
}

/**
 * POPOVER
 */

a.pop
{
    cursor: pointer;
}

div.popover h3.popover-title
{
    background-image: none !important;
    padding: 8px 14px !important;
    font-size: 18px !important;
    line-height: 20px !important;
}

/**
 * GALERIA
 */

ul.galeria
{
    list-style: none;
    margin: 30px 0 0 0;
    padding: 0;
}

ul.galeria li
{
    display: inline-block;
    margin: 5px;
    -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

ul.galeria li img
{
    display: block;
    width: 185px;
    height: 139px;
    margin: 0 !important;
}


/**
 * FOOTER
 */

footer
{
    margin: 50px auto 20px auto;
    height: 160px;
    clear: both;
    text-align: center;
}

footer .ruler
{
    width: 480px;
    height: 30px;
}

footer .ruler.green
{
    float: right;
    border-top: 4px solid #90cc5b;
}

footer .ruler.blue
{
    float: left;
    border-top: 4px solid #003868;
}

footer p.copyright
{
    color: #003868;
    font-size: 12px;
    padding: 40px;
}

footer p.copyright a
{
    text-decoration: underline;
}

footer ul
{
    clear: both;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer li
{
    display: inline-block;
    margin: 0 10px;
    font-size: 16px;
}


/**
 * CLIENTES
 */

article.clientes h4
{
    margin-top: 20px;
}

div.personal, div.pedidos
{
    margin-top: 30px;
}

div.pedidos table.tarifarios
{
    width: 600px;
}

div.pedidos table.tarifarios th
{
    padding: 5px 10px;
    font-size: 15px;
}

div.pedidos table.tarifarios td
{
    padding: 5px 10px;
    font-size: 13px;
    height: auto;
}

div.pedidos table.tarifarios tr.fechado td
{
    /*background-color: #d4d4d4;*/
}

div.pedidos table.tarifarios tr.aberto td
{
    /*background-color: #ededed;*/
}

div.pedidos table.tarifarios td.options
{
    width: 14px;
}

div.pedidos tr.empty
{
    height: 0px;
}

div.pedidos tr.empty > td > div
{
    display: none;
}

div.pedidos tr.empty > td
{
    background-color: transparent;
    padding: 0 0 0 20px;
}

div.pedidos td.date
{
    width: 125px;
    white-space: nowrap;
}

div.pedidos td.status
{
    width: 85px;
    white-space: nowrap;
}

div.pedidos table.feedback td.status
{
    width: 75px;
}

div.pedidos table.messages
{
    float: right;
    margin: 5px 0 10px 0;
    border-spacing: 2px !important;
    border-collapse: separate;
    width: 475px;
}

div.pedidos table.messages th
{
    padding: 2px 5px;
    font-size: 14px;
}

div.pedidos table.messages td
{
    padding: 2px 5px;
    font-size: 13px;
}

div.pedidos table.messages td
{
    background-color: #efefef;
}

/**
 *  EXTRA
 *  BOOTSTRAP OVERRIDE
 */

div.alert
{
    margin: 15px 0 0 0;
}

div.clear
{
    clear: both;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
