@import url('https://fonts.googleapis.com/css2?family=Quattrocento:wght@400;700&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color:#404040;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

body {
    display: flex;
    flex-wrap: wrap;
}

body.no-scroll {
    overflow: hidden;
    position: fixed;
}

#template {
    order:1;
}

#main {
    order:2;
    width: 100%;
}

#footer {
    order:3;
}

a {
    color:#2165AD;
}

html[lang="ca"] {
    .english {
        display: none;
    }
}

html[lang="en"] {
    .catala {
        display: none;
    }
}

body {
    /*background-image: url('../assets/fons.gif');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;*/
}

#template {
    position: fixed;
    width: 100%;
    height: fit-content;
    top: 0;
    margin: 0;
    padding: 0;
    z-index: 4;
}

#footer {
    width: 100%;
}

header {
    /*background-color: #2165AD;*/
    background-color: #fff;
    color: white;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding-left:10px;
    padding-right:10px;
    position: relative;
    padding-top:20px;
    width:calc(100vw - 20px);
}

header .ub-logo img {
    max-width: 130px;
    height:auto;
}

@media screen and (min-width: 768px) {
    header .ub-logo img {
        max-width: 140px;
    }
}

header #titol {
    color: #2165AD;
    font-family: Quattrocento, Arial, Helvetica, sans-serif;
}

header #titol h4 {
    font-size: 16px;
}

header #titol > a {
    font-size:14px;
}

@media screen and (min-width: 768px) {
    header #titol {
        margin-right: 10px;
    }

    header .ub-logo img {
        max-width: 160px;
    }

    header #titol h4 {
        font-size: 24px;
    }
}

header a,
header span {
    text-decoration: none;
    color: #2165AD;
    padding: 3px;
    vertical-align: middle;
}

header a:hover,
header span:hover,
header input[type=submit]:hover {
    color: #2165AD;
    cursor: pointer;
}

#titol {
    display: block;
    text-align: left;
    align-items: center;
}

#titol h4 {
    font-size: 24px;
    font-weight: normal;
    margin: auto;
}

#crespo a {
    display: flex;
    align-items: center;
}

#crespo a span {
    color:#000 !important;
    font-size: 13px;
}

#crespo img {
    width: auto;
    height:35px;
}

@media screen and (min-width:768px) {
    #crespo a span {
        font-size: 15px;
    }

    #crespo img {
        height: 50px;
    }
}

#header-dreta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    align-content: center;
    position: absolute;
    right: 10px;
    justify-content: flex-end;
    top:0px;
    width: calc(100% - 20px);
    overflow: visible;
    height: 24px;
}

@media screen and (min-width: 992px) {
    #header-dreta {
        top:5px;
        right: 15px;
    }
}

#header-dreta .username {
    font-weight: bold;
    color:#404040;
    display: none;
}

#header-dreta .username::after {
    content:":";
    display: none;
}

#header-dreta .usermenu {
    width: 100%;
    flex-wrap: nowrap;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top:5px;
}

@media screen and (min-width: 768px) {
    #header-dreta .usermenu {
        margin-top:10px;
        margin-right: 10px;
    }
}

#header-dreta .usermenu .usermenu-toggle {
    background-image:url(/llulldb/assets/avatar.svg);
    background-repeat: no-repeat;
    background-position: left center;
    background-size:20px;
    padding-left:25px;
}

#header-dreta .usermenu .username {
    font-size: 14px;
}

#header-dreta .usermenu .usermenu-content {
    display: none;
    position: absolute;
    top: 30px;
    background-color: #fff;
    flex-wrap: wrap;
    padding:10px;
    z-index: 1;
    border:1px solid #ccc;
}

#header-dreta .usermenu .usermenu-content.expanded {
    display: flex;
    flex-flow: column;
}

#header-dreta .usermenu .usermenu-content a {
    display: block;
}

#header-dreta .usermenu a {
    font-size: 15px;
    color:#404040;
}

#header-dreta .language-selector input {
    font-size: 15px;
    color:#404040;

}

#top-nav {
    height: fit-content;
    border-collapse: collapse;
    background-color:#2165AD;
    padding-left:15px;
    padding-right: 15px;
    padding-top:7px;
    padding-bottom:7px;
    width: calc(100vw - 30px);
    position: relative;
    height: 25px;
    overflow: visible;
}

#top-nav .menu-toggle {
    position:absolute;
    top:5px;
    right:10px;
    width: 25px;
    height:25px;
    background-image:url(/llulldb/assets/menu-toggle-closed.svg);
    background-size: auto 20px;
    background-repeat: no-repeat;
    background-position: center center;
    cursor: pointer;
}

#top-nav .menu-toggle.expanded {
    background-image: url(/llulldb/assets/menu-toggle-expanded.svg);
}

@media screen and (min-width: 992px) {
    #top-nav {
        padding-top:0;
        padding-bottom: 0;
    }

    #top-nav .menu-toggle {
        display: none;
    }
}

#top-nav .menu-items {
    display: none;
    position: inherit;
    top:33px;
    left:-15px;
    width: calc(100vw - 20px);
    background-color: #2165AD;
    padding:10px;
}

#top-nav .menu-items.expanded {
    display: block;
}

@media screen and (min-width: 992px) {
    #top-nav {
        width: calc(100% - 30px);
        display: flex;
        justify-content: space-between;
        height: auto;
    }

    #top-nav .menu-items {
        border-top:none;
        position: relative;
        top: auto;
        left: auto;
        display: flex;
        justify-content: space-between;
    }
}

#top-nav a {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 15px;
    padding-right: 15px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 5px;
}

#top-nav a.active {
    background-color:#fff;
    color:#2165AD;
}

#top-nav a:hover {
    background-color: #fff;
    color: #2165AD;
}

#top-nav a.pag-cercador {
    background-image:url(../assets/search.svg);
    background-position: 3px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-left:25px;
}

#top-nav a.pag-cercador:hover,
#top-nav a.pag-cercador.active {
    background-image: url(../assets/search-active.svg);
}

#footerlinks {
    border-top: 1px solid #fff;
    margin-top:15px;
    padding-top:10px;
}

@media screen and (min-width: 992px) {
    #footerlinks {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }
}

#footerlinks a {
    padding-left: 15px;
    padding-right: 15px;
    color: #fff;
    text-decoration: none;
    border-right: 1px solid #fff;
}

#footerlinks a:first-child {
    padding-left: 0;
}

#footerlinks a.catala:last-child,
#footerlinks a.english:last-child {
    padding-right: 0;
}

@media screen and (min-width: 768px) {
    #footerlinks a {
        padding-left: 15px;
        padding-right: 15px;
        color: #fff;
        text-decoration: none;
        border-right: 1px solid #fff;
    }
}

#top-left a {
    display: block;
}

@media screen and (min-width: 768px) {
    #top-left,
    #menu-top,
    #bottom-left,
    #bottom-right {
        display: flex;
    }
}

#top-left {
    align-items: center;
}

#menu-top {
    position: absolute;
    top:0;
    right:15px;
    background-color:#f1f1f1;
}

#menu-top a {
    color: #404040;
    border-left:1px solid #404040;
    padding-left:10px;
    padding-right:10px;
}

#menu-top a:first-child {
    border:none;
}

#main {
    margin-top: 145px;
    padding: 15px;
    padding-bottom: 70px;
}

@media screen and (min-width: 768px) {
    #main {
        margin-top:165px;
    }
}

#footerlinks {
    /*width: 100%;
    height: 70%;*/
    display: flex;
    justify-content: space-between;
}

#blueline {
    width: 100%;
    background-color: #2165AD;
    height: 1em;
}

.frances p {
    text-indent: -11pt;
    margin: 0px 9px 6px 33px !important;
}

.canviidioma {
    /*background: none!important;*/
    border: none;
    padding: 0!important;
    cursor: pointer;
    color: white;
    font-size: 16px;
    margin-left: 3px;
}

form,
form input {
    margin: 0;
    padding: 0;
    width: fit-content;
    height: fit-content;
}

h2 {
    padding: 3px;
    color:#2165AD;
    font-size: 32;
    font-family: "Quattrocento";
}

#main > h2 {
    border-bottom: 1px solid #2165AD;
}

#quadratgroc {
    background-color: #E9F0F7;
    margin: auto auto 22px auto;
    max-width: 480px;
    padding: 15px;
    width: fit-content;
    height: fit-content;
    display: flex;
    font-size: 16px;
    display: flex;
    align-items: center;
}

@media screen and (min-width: 992px) {
    #quadratgroc {
        margin-right: 15px;
        margin-top: 15px;
    }
}

#quadratgroc .actions {
    margin-left:15px;
}

#quadratgroc .actions a {
    text-decoration: none;
    background-color:#2165AD;
    padding:10px 24px;
    color:#fff;
}

#quadratgroc .actions a:hover {
    text-decoration: none !important;
}

.tomata {
    color: tomato;
}

input[type=text]:read-only,
textarea:read-only {
    background-color: #eee;
    color: gray;
}

#footer #footer-top-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid #2165AD;
    padding-top: 10px;
    padding-bottom: 10px;
}

#footer #footer-top-links a {
    text-decoration: none;
    padding-left:10px;
    padding-right:10px;
    border-left:1px solid #2165AD;
}

#footer #footer-top-links a:first-child {
    border-left: none;
}

@media screen and (min-width: 768px) {
    #footer #footer-top-links {
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    #footer #footer-top-links a {
        text-decoration: none;
        padding-left: 10px;
        padding-right: 10px;
        border-left: 1px solid #2165AD;
    }

    #footer #footer-top-links a:first-child {
        border-left: 1px solid #2165AD;
    }
}

#footer-bottom {
    background-color:#2165AD;
    display: flex;
    flex-wrap: wrap;
    padding-left:15px;
    padding-right:15px;
    padding-top:50px;
    padding-bottom:50px;
    justify-content: space-between;
    align-items: center;
}


#footer-bottom .legend {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

#footer-bottom .legend .legend-left {
    color:#fff;
    font-size:20;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    border-bottom: 1px solid #fff;
    margin-bottom: 5px;
    width: 100%;

}

@media screen and (min-width: 992px) {
    #footer-bottom {
        flex-wrap: nowrap;
    }

    #footer-bottom .legend {
        flex-wrap: nowrap;
        align-items: center;
    }

    #footer-bottom .legend .legend-left {
        width: 120px;
        padding-right: 30px;
        margin-right: 30px;
        border-right: 1px solid #fff;
        border-bottom: none;
        margin-bottom: 0;
        width: auto;
    }
}

#footer-bottom .legend .legend-right {
    color:#fff;

}

#footer-bottom .legend .legend-right a {
    color:#fff;
    text-decoration: none;
}

#footer-bottom .legend .legend-right p {
    margin-top:0;
    margin-bottom: 0;
}

#bottom-left {
    background:none;
}

#top-right {
    display: flex;
    justify-content: center;
    padding-top:10px;
    margin-top:10px;
    border-top:1px solid #fff;
    color:#fff;
}

@media screen and (min-width: 992px) {
    #top-right {
        justify-content: flex-end;
        padding-top: 0;
        margin-top: 0;
        border-top: none;
    }
}

#top-right .language-selector .cat {
    width:30px;
    height:20px;
    background-image:url(../assets/cat.png);
    background-repeat: no-repeat;
    margin-left:10px;
    background-color: transparent;
    color:transparent;
}

#top-right .language-selector .eng {
    width: 30px;
    height: 20px;
    background-image: url(../assets/eng.png);
    background-repeat: no-repeat;
    margin-left: 5px;
    background-color: transparent;
    color:transparent;
}

input[type="text"] {
    background: #FFFFFF;
    border: 1px solid rgba(33, 101, 173, 0.8);
    border-radius: 2px;
    padding:5px 10px;
}

select {
    background: #FFFFFF;
    padding: 5px 10px;
    border: 1px solid rgba(33, 101, 173, 0.8);
}

input[type="checkbox"] {
    background: #FFFFFF;
    width: 18px;
    height: 18px;
}

input[type="submit"] {
    background-color:#2165AD;
    padding:8px 20px;
    border:none;
    color:#fff;
}

h1 {
    border-bottom: 1px solid #2165AD;
    padding: 3px;
    color: #2165AD;
    font-size: 38;
    font-family: "Quattrocento";
}

#main {
    max-width: 1024px;
    margin-left:auto;
    margin-right: auto;
}

@media screen and (min-width: 768px) {
    #main>h1 {
        display: flex;
        justify-content: space-between;
    }
}

#main > h2 {
    padding: 5px 0px 5px 15px;
    border-left: 4px solid #2165AD;
    border-bottom: none;
}

#main > h3 {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    color: #2165AD;
}

.fotter-patros {
    text-align: center;
    padding:15px;
    font-size: 14px;
    background-color: #2165AD;
    color:#fff;
}

.fotter-patros img {
    max-height: 35px;
    width:auto;
    margin-top:5px;
}

#action-menu {
    margin-bottom: 30px;
}

#action-menu ul {
    list-style: none;
    display: flex;
    padding:0;
}

#action-menu ul li {
    padding: 5px 10px;
    border-right:1px solid #000;
}

#action-menu ul li.active {
    background-color: #eee;
}

#action-menu ul li:last-child {
    border-right: 0;
}

.add-icon {
    background-image:url(/llulldb/assets/add.svg);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.preview-icon {
    background-image: url(/llulldb/assets/preview.svg);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.edit-icon {
    background-image: url(/llulldb/assets/edit.svg);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.content-icon {
    background-image: url(/llulldb/assets/content.svg);
    padding-left: 24px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.undo-icon {
    background-image: url(/llulldb/assets/undo.svg);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.delete-icon {
    background-image: url(/llulldb/assets/delete.svg);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.top-icon {
    background-image: url(/llulldb/assets/top.svg);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.search-icon {
    background-image: url(/llulldb/assets/search-blue.svg);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.copy-icon {
    background-image: url(/llulldb/assets/copy.svg);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.categories-icon {
    background-image: url(/llulldb/assets/categories.svg);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.sort-icon {
    background-image: url(/llulldb/assets/sort.svg);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.print-icon {
    background-image: url(/llulldb/assets/print.svg);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.editauthor-icon {
    background-image: url(/llulldb/assets/edit-author.svg);
    padding-left: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 18px;
}

.text-align-center {
    text-align: center;
}

.text-align-right {
    text-align: right;
}

.top-actions {
    margin-top:15px;
}

.top-actions a {
    margin-right:15px;
}

table tr th.fixed.cell,
table tr th.fixed.header {
    background-color: #2165AD;
    color:#fff;
}

.item-actions a {
    margin-right:15px;
}
