:root {
    --map-ctrl-bg: #222222;
}

body {
    background-color: #e7e7e7 !important;
}
body.mobile {
    background-color: #f2f2f2 !important;
}
.pointer {
    cursor: pointer;
}

.ol-control {
    display: none;
}

.break {
    clear: both;
    width: 100%;
    flex-basis: 100%;
    height: 0;
}

.center {
    text-align: center;
}

.c.wrap, .r.wrap {
    flex-wrap: wrap;
}

.c {
    display: flex;
    flex-direction: column;
}

.r {
    display: flex;
    flex-direction: row;
}

.e {
    flex: 1;
    width: 100%;
}

.r.g10, .c.g10 {
    gap: 10px;
}
.r.g20, .c.g20 {
    gap: 20px;
}

.c.vcenter {
    justify-content: center;
}

.c.hcenter {
    align-items: center;
}

.r.vcenter {
    align-items: center;
}

.r.hcenter {
    justify-content: center;
}

.we {
    width: 100%;
}

.he {
    height: 100%;
}

.sm.pd {
    padding: 8px;
}

.mud-button-group-root.flat button {
    border-radius: 0px !important;
}

.md.pd {
    padding: 16px;
}

.mud-main-content {
    height: 100vh;
}

.mud-toolbar-appbar, .mud-toolbar-appbar span {
    color: white;
}

.mud-appbar {
    box-shadow: none !important;
    background: rgb(49, 120, 10) !important;
    clip-path: ellipse(100% 98.81% at 48.07% 1.19%);
}

.mud-drawer-content {
    background-color: #e6e6e6;
}

.drawer-header {
    background: rgb(49, 120, 10);
    color: white;
    padding-left: 10px;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    clip-path: ellipse(301% 86.81% at 101.07% 1.19%);
}

.drawer-body {
    height: 100%;
    background-color: #f2f2f2;
    /* background: rgb(32,91,48);
    background: linear-gradient(333deg, rgba(32,91,48,1) 0%, rgba(52,115,38,1) 27%, rgba(48,121,9,1) 50%, rgba(55,106,24,1) 100%); */
}

.drawer-body * {
    color: black;
}

.leaf-logo {
    padding-right: 4px;
    width: 70px;
}

.leaf-logo * {
    fill: white;
}

.state-loading {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    color: white;

    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
    justify-items: center;
}

.state-loading * {
    color: white;
}

.footer {
    background: #eee;
    border-top: 1px solid #ddd;
}

.drawer-body .footer-logo svg {
    width: 60px;
    height: 40px;
    padding: 10px;
}
.drawer-body .footer-logo .mud-icon-root {
    width: 30px;
    height: 30px;
    padding: 0px;
}
.drawer-body .footer-logo .logo * {
    fill: rgba(0, 0, 0, 0.476);
}
.map-popover-container {
    position: fixed;
}

.map-popover-container .mud-popover, .map-popover {
    background-color: #fefbcb !important;
}

.confirm-dialog-remove {
    color: #bb0000;
}

.td-sm {
    width: 32px;
}

.form-header {
    display: flex;
    width: 100%;
    padding: 8px;
    background: #e7e7e7;
    border-bottom: 1px solid #e1e1e1;
    align-items: center;
}

.form-header .title {
    color: #666;
}

.mobile .c-table thead th {
    position: sticky;
    top: 55px !important;
}

.c-table.responsive {
    width: 100%;
}
.c-table.responsive td {
    padding: 10px !important;
}
.c-table.responsive .title {
    font-weight: bold;
}
.c-table.responsive .value {
    flex: 1;
    text-align: right;
}
.c-table.responsive .column-data {
    display: flex;
    flex-direction: row;
    padding: 6px;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.c-table.responsive .column-data .r {
    border-radius: 6px;
}
.c-table.responsive .r .value .mud-icon-root {
    font-size: 1em !important;
}
.c-table.responsive .column-data .r .title {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    padding: 5px;
    font-weight: 400;
    color: #55592e;
    background-color: #dfc290;
}
.c-table.responsive .column-data .r .value {
    padding: 5px;
    background-color: #f3e9d8;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}
.c-table.responsive .column-data-merge {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: #e8f6d8;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid #d2d2d2;
}
.c-table.responsive .column-data-merge div .value {
    text-align: center;
}
.c-table.responsive .column-data-merge div:first-child .value {
    font-weight: 900;
    text-align: left !important;
}
.c-table.responsive .column-data-merge div:last-child .value {
    text-align: right;
}
.c-table.responsive .column-data-merge .r {
    flex: 1;
    width: 100%;
}
.c-table.responsive .column-actions {
    padding: 6px;
    justify-content: right;
    text-align: right;
}
.c-table.c-table.responsive .column-actions svg {
    color: #3e8320;
}
.c-table.responsive .column-container {
    padding: 0px;
    margin-bottom: 10px;
}
.c-table.responsive .column-container .r {
    padding: 2px;
    padding-left: 10px;
    padding-right: 10px;
}
.c-table.responsive td {
    border: 0px !important;
}
.c-table.responsive td .column-container {
    border: 0px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin: 4px;
    background: #f2ffe6;
    box-shadow: 1px 1px 1px #ccc, 0px 0px 2px rgba(0, 0, 0, 0.5);
}
.c-table.responsive .column-actions {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.form-container {
    overflow: auto;
    background-color: white;
    height: 100%;
}

.text-pending {
    color: #4085d3;
}

.text-success {
    color: #15c75d;
}

.text-danger {
    color: #f3453c;
}

@media (max-width: 900px) {
    .form-container .r.col-2 {
        flex-direction: column;
    }

    #map_dialog {
        height: 100vh !important;
        width: 100vw !important;
    }
}

.fixed-filters {
    position: fixed;
    top: 44px;
    right: 30px;
    width: 500px;
    z-index: 4;
    background: var(--mud-palette-primary);
    padding: 0px;
    border-radius: 4px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
    color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.fixed-filters .body {
    padding: 20px;
}
.fixed-filters .actions {
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid black;
    background-color: #1d4617;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.fixed-filters * {
    color: white !important;
}
.fixed-filters ::placeholder {
    color: white !important;
}
.mobile .fixed-filters {
    right: 0px;
    width: calc(100vw - 0px);
}
.chestnuts-table {
    border-collapse: collapse;
}
.chestnuts-table td, .chestnuts-table th {
    padding: 8px;
    text-align: center;
}

.input-images input {
    height: 30vh;
    width: 100%;
    border: 3px solid #000000;
    opacity: 0;
}

div .input-images {
    border: 1px solid #000000;
    text-align: center;
}

.filter-on {
    background-color: #f44336ff !important;
    width: 40px;
    height: 40px;
}

.input-images .images-paper-container {
    position: absolute;
    top: 0px;
    pointer-events: none;
    background: transparent;
}

.input-images .title {
    position: absolute;
    top: 0px;
    text-align: center;
    width: 100%;
}

.input-images .image-container {
    pointer-events: auto;
}

.add-fab {
    position: fixed !important;
    bottom: 5vh;
    right: 10px;
    z-index: 4;
}

.add-fab-mobile {
    position: fixed !important;
    bottom: 9vh;
    bottom: 20vh;
    right: 10px;
    z-index: 4;
}

.fix-color label.mud-input-label-animated {
    color: white !important;
}

.fix-color input {
    color: white !important;
}

button.fix-color span {
    color: white !important;
}

.footer-img{
    text-align: center;
    height: 100%;
    display: flex;
    justify-content: end;
    flex-direction: column;
}

.dialog-info {
    padding: 20px;
    text-align: center;
    width: auto;
    max-width: 48vw;
    color: #000000;
    font-size: 1vw;
    text-shadow: none;
}

.logo-img {
    width: 54px;
    height: 54px;
}
