:root {
    --mdc-theme-primary: #832ABB;
    --mdc-theme-secondary: #673AB7;
    --mdc-theme-on-primary: #f7eaf9;
    --mdc-theme-on-secondary: #d3cae4;
}

.mdc-select--outlined .mdc-select__anchor {
    display: flex;
    align-items: center;
    overflow: visible;
}

.mdc-select .mdc-select__menu .mdc-list-item {
    border-radius: 0;
    margin: 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    color: #222;
}

.mdc-select .mdc-select__menu .mdc-list-item:hover {
    color: #eee;
}

.mdc-text-field__icon--leading {
    opacity: 0;
    margin-left: 0px;
    font-size: 25px;
    color: #222 !important;
}

.mdc-text-field--focused .mdc-text-field__icon--leading {
    color: #5813b3 !important;
}

.mdc-text-field--label-floating .mdc-text-field__icon--leading {
    opacity: 1;
}

.mdc-select__menu .mdc-list .mdc-list-item {
    transition: all 100ms;
}

.mdc-select__menu .mdc-list .mdc-list-item:hover {
    background-color: #5813b3 !important;
    color: #eee;
    transition: all 100ms;
}

.mdc-select__menu .mdc-list .mdc-list-item--selected {
    color: #5813b3 !important;
    font-weight: bold;
    transition: all 100ms;
}

.mdc-select__menu .mdc-list .mdc-list-item--selected:hover {
    color: #eee !important;
    transition: all 100ms;
}

.mdc-touch-target-wrapper {
    display: flex;
    align-items: center;
}

/******************************************************/
* {
    box-sizing: border-box;
    outline: none;
    text-align: left;
}

html,
body {
    font-family: sans-serif;
    position: relative;
    margin: 0;
    min-height: 100vh;
}

html {
    margin: 0;
    overflow-y: scroll !important;
    background: #832ABB;
    position: relative;
}

body:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    background-image: url(../img/pattern.png);
    opacity: .1;
    filter: invert(1);
}

html.light {
    background-color: #ddd;
}

html.light body:before {
    opacity: .4;
    filter: invert(0) contrast(0) sepia(100%) hue-rotate(226deg) brightness(1) saturate(1.48);
}

.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

.h2 {
    font-size: 40px;
}

.h3 {
    font-size: 20px;
}

.bold {
    font-weight: bold;
}

.text-primary {
    color: #5813b3;
}

#header {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    position: relative;
}

#header #logo {
    background-size: contain;
    background-image: url('../img/logo_white.png');
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    margin: auto;
    height: 100px;
}

html.light #header #logo {
    background-image: url('../img/logo.png');
}

#content {
    width: 100%;
    padding-bottom: 30px;
    position: relative;
}

div#login {
    max-width: 350px;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, .9);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#login .mdc-text-field:first-of-type {
    margin-bottom: 15px;
}

#login .mdc-text-field {}

#login .mensaje {
    color: #832abb;
    font-weight: bold;
    text-align: center;
    margin: 10px;
    height: 0em;
    font-size: 12px;
}

div#dashboard {
    max-width: 900px;
    margin: auto;
    position: relative;
}

div#dashboardMenu {
    background-color: rgba(255, 255, 255, .2);
    padding: 0;
    border-radius: 5px 5px 0 0;
    display: flex;
}

html.light div#dashboardMenu {
    background-color: rgb(152 99 185 / 0.8);
}

div#dashboardMenu ul {
    display: flex;
    width: 100%;
    align-items: stretch;
    justify-content: space-between;
}

ul {
    margin: 0;
    padding: 0;
}

#dashboardMenu li {
    width: 100%;
    display: flex;
    align-items: center;
    list-style: none;
    padding: 15px 10px;
    margin: 3px;
    margin-bottom: 5px;
    border: 1px solid rgba(0, 0, 0, .1);
    background-color: rgba(255, 255, 255, .1);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 200ms;
}

#dashboardMenu li:hover {
    background-color: #5813b3;
    transition: all 200ms;
}

#dashboardMenu li.selected {
    background-color: #5813b3;
    border-right: 0px;
    font-weight: bold;
    margin-bottom: 0;
    padding-bottom: 20px;
    border-radius: 5px 5px 0 0;
}

#dashboardMenu li>i {
    margin-right: 8px;
    font-size: 1.3em;
    line-height: 1em;
    vertical-align: bottom;
}

div#dashboardContainer {
    width: 100%;
    flex-grow: 0;
    flex-shrink: 1;
    background-color: rgba(255, 255, 255, .7);
    padding: 30px;
    border-radius: 0 0 5px 5px;
    border-top: 2px solid #5813b3;
    position: relative;
    overflow: hidden;
}

h1,
h3 {
    margin: 0;
}

h2 {
    margin: 20px 0 10px;
    color: #356;
}

.listHeader {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #5813b3;
}

.listHeader h1 {
    width: 100%;
}

.buttonsRibbon {
    padding: 10px 30px;
    background-color: rgba(255, 255, 255, .1);
    margin: 0 -30px;
    display: flex;
    align-items: center;
    justify-content: start;
}

.buttonsRibbon.between {
    justify-content: space-between;
}

.buttonsRibbon .mdc-button {
    flex-shrink: 0;
}

.buttonsRibbon .mdc-text-field {
    align-self: flex-end;
    justify-self: flex-end;
    text-align: right;
    width: 100%;
    margin: 0;
}

.buttonsRibbon:nth-of-type(3) {
    background-color: rgba(0, 0, 0, .2);
    margin: 0 0 -20px 0;
    padding: 10px;
}

.buttonsRibbon:nth-of-type(3) button {
    background-color: white;
    border-radius: 50px;
    padding: 5px 15px;
    font-size: 12px;
    color: #5813b3;
}

.buttonsRibbon:nth-of-type(3) button.active {
    background-color: #5813b3;
    color: white;
}

.list {
    margin-top: 20px;
}

.listPrincipal {
    display: none;
}

.listItem {
    width: 100%;
    background-color: rgba(255, 255, 255, .7);
    margin-bottom: 2px;
    border-radius: 2px;
    padding: 8px;
    transition: all 100ms;
}

.listItem.hidden {
    height: 0;
    overflow: hidden;
    transition: all 100ms;
}

.listItem:hover {
    background-color: rgba(255, 255, 255, .9);
    transition: all 100ms;
}

.noItems {
    font-size: 14px;
    color: #777;
    background-color: rgba(0, 3, 8, .04);
    padding: 10px;
    text-align: center;
}

.listItem.posicionProyecto {
    border-top: 1px solid rgba(0, 0, 0, .1);
    padding: 0 8px;
}

.listItem.proyecto_tipoPoliticos {
    padding: 0px;
    margin-bottom: 10px;
}

.listItem.proyecto_tipoPoliticos>div>div>span {
    font-size: 20px;
    font-weight: bold;
}

.listPoliticosPorTipo {
    display: none;
    max-height: 400px;
    overflow: auto;
}

.listItemEdit {
    display: none;
}

.listItemEdit .content {
    display: none;
    padding: 20px;
    background-color: rgb(249 240 255);
    border-radius: 0 0 10px 10px;
}

.listItemEdit .content--active {
    display: block;
}

.listItemData {
    display: flex;
    align-items: center;
}

.listItemData .nombre {
    font-weight: bold;
}

.listItemData .itemColor {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 20px;
    border: 4px solid rgba(0, 0, 0, .2);
}

.listItemData>span,
.editHeader>span,
.editInline>.mdc-text-field {
    width: 100%;
}

.listItemData>*,
.editInline>* {
    margin: auto 5px;
}

.listItemData> :last-child,
.editInline> :last-child {
    margin: auto 0px;
}

.listItemData .labelBloque,
.listItemData .labelTipo,
.listItemData .labelProvincia {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 3px;
    background-color: #edd4fd;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    margin-top: 3px;
    margin-left: 0;
}

.listItemData .labelBloque {
    color: #fff !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}

.listItemData .labelProvincia {
    background-color: #324;
    color: #fff !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}


.listItem.inactive {
    color: #999;
    background-color: #ddd;
}

.listItem.inactive .listItemData img,
.listItem.inactive .listItemData div:nth-of-type(1) {
    filter: grayscale(1);
}


input.colorPicker {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: 2px solid rgba(0, 0, 0, .2);
    cursor: pointer;
    color: rgba(0, 0, 0, .6) !important;
    font-weight: bold;
    font-size: 23px;
    text-align: center;
    position: relative;
}

input.colorPicker:before {
    content: "\F03EB";
    display: block !important;
    z-index: 1;
    font: normal normal normal 24px/1 "Material Design Icons";
    font-size: 17px;
    text-rendering: auto;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.buttonsContainer {
    flex-shrink: 0;
    display: flex;
}

button {
    border: 1px solid rgba(0, 0, 0, .05);
    border-bottom-width: 2px;
    margin-left: 2px;
    margin-right: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 200ms;
}

button.iconed {
    width: 30px;
    height: 30px;
}

button:hover {
    background-color: #ccc;
    transition: all 200ms;
}

button.iconed:before {
    display: inline-block;
    font: normal normal normal 24px/1 "Material Design Icons";
    font-size: 17px;
    text-rendering: auto;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button.activate {
    background-color: #c3d2ea;
    color: #5d83c7;
}

button.activate:hover {
    background-color: #5d8cc7;
    color: #c3d2ea;
}

button.activate[data-status='1']:before {
    content: "\F0209";
}

button.activate[data-status='0']:before {
    content: "\F0208";
}

button.edit {
    background-color: #eadec3;
    color: #c7a55d;
}

button.edit:hover {
    background-color: #c7a55d;
    color: #eadec3;
}

button.edit:before {
    content: "\F03EB";
}

button.delete {
    background-color: #eac3c3;
    color: #cc7474;
}

button.delete:hover {
    background-color: #cc7474;
    color: #eac3c3;
}

button.delete:before {
    content: "\F0A79";
}

button.save {
    background-color: #c3eac3;
    color: #5aa067;
}

button.save:hover {
    background-color: #74cc84;
    color: #dbf1db;
}

button.save:before {
    content: "\F0193";
}

button.cancel:before {
    content: "\F05AD";
}

button.addMensaje:before,
button.addContenido:before,
button.addHito:before {
    content: "\F0415";
}

.editHeader,
.editInline {
    display: flex;
    align-items: center;
}

.editHeader {
    margin-bottom: 20px;
}

input[type=file] {
    display: none;
}

img.imageFrame {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border: 3px solid transparent;
    overflow: hidden;
    display: block;
    object-fit: contain;
}

img.imageFrame.big {
    width: 100px;
    height: 100px;
}

img.imageFrame.big {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

img.imageFrame.larga {
    width: 200px;
}

img.imageFrame.full {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

img.imageFrame.circle {
    border-radius: 100px;
    padding: 3px;
    object-fit: cover;
}

img.imageFrame.imageUpload {
    cursor: pointer;
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .2);
    border-radius: 10px;
    position: relative;
    padding: 10px;
}

img.imageFrame.imageUpload[src*='#']:before {
    content: 'Seleccionar imagen';
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color: #fff;
    position: absolute;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    left: 4px;
    top: 4px;
    border-radius: 10px;
}

.imageUpload_label {
    position: relative;
    width: auto;
}

.imageUpload_label.big {
    width: 150px;
}

.imageUpload_label.larga {
    width: 200px;
    flex-shrink: 0;
}

.imageUpload_label.full {
    width: 100%;
}

.imageUpload_label:after {
    content: 'SELECCIONAR UNA IMAGEN';
    position: absolute;
    left: 0;
    top: 0;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border: 15px solid rgba(255, 255, 255, .3);
    background-color: rgba(0, 0, 0, .1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: all 200ms;
}

.imageUpload_label.circle:after {
    border-radius: 100vh;
}

.imageUpload_label:hover:after {
    opacity: 1;
}

.input-toggle {
    flex-shrink: 0;
}

.input-toggle input {
    display: none;
}

.input-toggle input+label {
    background-color: #fff;
    color: #5813b3;
    border: 1px solid #5813b3;
    padding: 5px;
    transition: all 200ms;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.input-toggle input+label:first-of-type {
    border-radius: 5px 0 0 5px;
    border-right: 0;
}

.input-toggle input+label:last-of-type {
    border-radius: 0 5px 5px 0;
    border-left: 0;
}

.input-toggle input:checked+label {
    background-color: #5813b3;
    color: #fff;
    transition: all 200ms;
}

.input-toggle input:checked+label.aFavor {
    background-color: #4CAF50;
}

.input-toggle input:checked+label.seAbstiene {
    background-color: #607D8B;
}

.input-toggle input:checked+label.enContra {
    background-color: #F44336;
}

.input-toggle input+label i {
    font-size: 20px;
    line-height: 20px;
}

.input-checkIcon {
    flex-shrink: 0;
}

.input-checkIcon input {
    display: none;
}

.input-checkIcon input+label {
    background-color: #fff;
    color: #5813b3;
    border: 1px solid #5813b3;
    border-radius: 5px;
    padding: 5px;
    transition: all 200ms;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.input-checkIcon input:checked+label {
    background-color: #5813b3;
    color: #fff;
    transition: all 200ms;
}

.input-checkIcon input:checked+label.destacado {
    background-color: #f4c136;
}

.input-checkIcon input+label i {
    font-size: 20px;
    line-height: 20px;
}

#descripcionEditor {
    background-color: rgba(255, 255, 255, .8);
    height: 350px;
    padding-bottom: 66px;
}

.mensajeProyecto,
.hitoProyecto {
    background-color: rgba(255, 255, 255, .5);
    border: 1px solid rgba(0, 0, 0, .2);
    border-left-width: 0;
    border-right-width: 0;
    margin: 0;
    margin-top: -1px;
}

.mensajesHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
    border: 1px solid;
    border-bottom: 0px;
}

.mensajesHeader.noSabe {
    color: rgb(131 42 187);
    background-color: rgb(231 222 239);
}

.mensajesHeader.aFavor {
    color: rgb(76 175 80);
    background-color: rgb(219 245 221);
}

.mensajesHeader.abstencion {
    color: #607D8B;
    background-color: rgb(212 217 233);
}

.mensajesHeader.enContra {
    color: #F44336;
    background-color: rgb(233 209 209);
}

.listMensajes {
    margin-bottom: 20px;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.listMensajes.noSabe {
    background-color: rgb(231 222 239);
    color: rgb(131 42 187);
    border: 1px solid;
    border-top: 0px;
}

.listMensajes.aFavor {
    background-color: rgb(219 245 221);
    color: rgb(76 175 80);
    border: 1px solid;
    border-top: 0px;
}

.listMensajes.abstencion {
    background-color: rgb(212 217 233);
    color: #607D8B;
    border: 1px solid;
    border-top: 0px;
}

.listMensajes.enContra {
    background-color: rgb(233 209 209);
    color: #F44336;
    border: 1px solid;
    border-top: 0px;
}