﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body, #app {
    font-family: 'Roboto', sans-serif;
    height: 100%;
    overflow: hidden;
}

body  {
    --mud-typography-button-text-transform: none;
    --mud-palette-action-default:rgb(66, 66, 66, 1);
    --component-colors-bg-main:rgba(236, 236, 238, 1);
    --theme-colors-default-surface-0:rgba(255, 255, 255, 1);
    --component-colors-grouping-element: rgba(247, 246, 248, 1);
    --component-colors-empty-state-bg: rgba(247, 246, 248, 1);
    --theme-colors-default-on-surface-high-emphasis-87:rgba(0, 0, 0, 0.87);
    --theme-colors-default-surface-overlay-8: rgba(0, 0, 0, 0.08);
    --mud-palette-primary: rgba(90, 90, 230, 1);
    --mud-palette-error: rgba(216, 44, 73, 1);
    --mud-palette-error-darken: rgb(179 20 47);
    --mud-palette-text-primary: rgba(0, 0, 0, 0.87);

    .mud-input.mud-input-filled{
        background-color: var(--theme-colors-default-surface-overlay-8);
    }

    .mud-dialog .mud-dialog-content{
        margin: 0;
    }
}

a, .btn-link {
    color: #0366d6;
}

mark{
    padding: 0 !important;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.table-sticky-header {
    position: sticky;
    top: 0;
    z-index: 101;
    background-color: var(--mud-palette-surface);
}

.table-bordered .mud-table-root.table-empty {
    height: 100%;
}

.table-bordered .mud-table-root .mud-table-body .mud-table-empty-row .my-3 {
    height: 100%;
}

.table-bordered .mud-table-root .mud-table-body .mud-table-loading {
    border: 0;
}

.table-bordered .mud-table-root .mud-table-cell{
    position: inherit !important;
}

.table-bordered .mud-table-root .mud-table-body:last-child .mud-table-row:last-child .mud-table-cell {
    border: 1px solid #dee2e6;
}

.mud-table-pagination-information {
    margin-top: 2px;
}

.mud-table-page-number-information {
    margin-top: 4px;
}

.grid-search-bar,
.grid-search-bar.gallery {
    background: rgba(33, 33, 33, 0.08);
}

.grid-search-bar.mud-input-control {
    border-radius: 4px;
    max-width: 248px;
}

.grid-search-bar.gallery.mud-input-control {
    min-width: 260px;
}

.grid-search-bar .mud-input.mud-input-outlined .mud-input-outlined-border,
.grid-search-bar.gallery .mud-input.mud-input-outlined .mud-input-outlined-border {
    border: none;
}

.filter-panel-search-bar {
    background: rgba(33, 33, 33, 0.08);
}

.filter-panel-search-bar.mud-input-control {
    border-radius: 4px;
    max-width: 248px;
}

.filter-panel-search-bar .mud-input.mud-input-outlined .mud-input-outlined-border {
    border: none;
}

.sort-column-filter-applied .sort-icon {
    color: #5A5AE6;
}

.display-mode-popup .mud-radio-button .mud-radio-icons.mud-checked,
.sort-popup .mud-radio-button .mud-radio-icons.mud-checked {
    color: #5A5AE6;
}

.filter-column-filter-applied .filter-icon {
    color: #5A5AE6;
}

.filter-popup .mud-radio-button .mud-radio-icons.mud-checked {
    color: #5A5AE6;
}

.upl-filter-applied .filter-icon {
    color: #5A5AE6;
}

.upl-filter-popup .upl-filter-checkbox-checked .mud-icon-root {
    color: #5A5AE6;
}

/*MAP COMPONENT STYLES*/
.btn-leaflet {
    position: relative;
    padding: 1px 1px 1px 1px !important;
    width: 30px;
    height: 30px;
    float: right;
    z-index: 400;
}

.leaflet-control-container .leaflet-bar.leaflet-control{
    margin-left: 16px;
    margin-top: 16px;
}

.btn-leaflet-settings-wrapper {
    position: absolute !important;
    top: 10px;
    right: 10px;
}

.btn-leaflet-fs-mode-wrapper {
    z-index: 400;
    position: absolute;
    height: 42px;
    top: 96px;
    left: 16px;
    background: var(--theme-colors-default-surface-0);
    border: 1px solid var(--mud-palette-table-lines);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.map-wraper:has(.fs-on) {
    .btn-leaflet-fs-mode-wrapper, .geo-location-button {
        position: fixed;
    }
}

.map-wraper:has(.btn-leaflet-fs-mode-wrapper) {
    .btn-leaflet-fs-mode-wrapper .btn-leaflet-bottom {
        padding: 8px;
    }

    .leaflet-container.leaflet-touch .leaflet-bar {
        border: 1px solid var(--mud-palette-table-lines);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom: 0;
    }

    .leaflet-container .leaflet-bar a, .leaflet-bar a:hover {
        border-bottom: 1px solid var(--mud-palette-table-lines);
    }
}

.btn-leaflet-legend-wrapper {
    position: absolute !important;
    top: 55px;
    right: 10px;
}

.btn-leaflet-collapse-wrapper {
    position: absolute !important;
    left: 0;
    bottom: 0;
    z-index: 1001
}

.btn-leaflet-collapse {
    padding: 1px 1px 1px 1px;
    width: 22px;
    height: 55px;
    float: left;
    z-index: 400;
    background-size: cover;
}

.form-leaflet {
    top: 76px;
    right: 10px;
    float: right;
    z-index: 1301;
    position: absolute !important;
}

.map-parameter-header {
    background-clip: border-box;
    background-color: #F5F5F7;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 10px;
    letter-spacing: 1.5px;
}

.img-border {
    border:2px dashed #FFFFFF;
}

/* *** */

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.no-padding {
    padding: 0;
}

.white-backgroud {
    background-color: rgb(255,255,255);
}

.text-center {
    text-align: center;
}

.margin-auto {
    margin: auto !important;
}

.text-ellipsis {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.break-spaces{
    white-space: break-spaces;
}

.outlet-task-description {
    font-family: 'Roboto';
    font-style: normal;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.4px;
    margin-right: 35px;
    white-space: break-spaces;
    max-width: 400px;
}

.text-ellipsis.outlet-task-name {
    font-family: 'Roboto';
    font-style: normal;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1px;
    margin-right: 35px;
    /*padding-left: 15px;*/
}

label.mud-checkbox {
    margin: 0;
}

/* Loader */
.splash-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column nowrap;
    height: 100vh;
    font-family: "Segoe UI",Roboto,"Helvetica Neue","-apple-system",BlinkMacSystemFont,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    font-size: .88rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.splash-screen .spinner-border {
    border: .2em solid;
    border-color: #5f368d #bfbfbf #bfbfbf;
    width: 120px;
    height: 120px;
}

.splash-screen-caption {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.splash-screen-text {
    color: #a1a1a1;
    margin-top: .5rem;
}

.border-radius-0 .leaflet-popup-content-wrapper {
    -ms-border-radius: 0px;
    border-radius: 0px;
}

.border-radius-0 .leaflet-popup-close-button {
    padding: 8px 25px 0px 0px !important;
    font: 20px/14px Tahoma, Verdana, sans-serif !important;
}

.border-radius-0.leaflet-popup {
    bottom: 50px !important;
}
/* Loader */

.h-100-tab-panel {
    height: calc(100% - 48px);
}

.mud-nav-link.active:not(.mud-nav-link-disabled) {
    background: rgba(90, 90, 230, 0.08)!important;
}

.sm-borders {
    border: 1px solid var(--mud-palette-table-lines);
}

.sm-border-top {
    border-top: 1px solid var(--mud-palette-table-lines);
}

.sm-border-bottom {
    border-bottom: 1px solid var(--mud-palette-table-lines);
}

.sm-border-right {
    border-right: 1px solid var(--mud-palette-table-lines);
}

.leaflet-touch .leaflet-bar a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
}
.filter-dialog .mud-ripple-icon:after {
    transform: scale(0);
}

.btn-create-task-text {
    float:right;
    text-transform: none;
    font-size: 14px;
    color: var(--mud-palette-primary);
    padding: 4px 5px;
    font-family: var(--mud-typography-button-family);
    font-weight: var(--mud-typography-button-weight);
    line-height: var(--mud-typography-button-lineheight);
    letter-spacing: var(--mud-typography-button-letterspacing);
    cursor: pointer;
}

.create-task-button {
    padding-left: 2px;
    padding-right: 2px;
    cursor: pointer;
}

.create-task-div-button {
    display: flex;
    height: 64px;
    align-items: center;
    margin: 5px 10px 0px 5px;
}

.main-mud-menu .mud-list-item.mud-list-item-gutters.mud-list-item-clickable.mud-ripple .mud-list-item-text .mud-typography.mud-typography-body1
{
    display: flex;
}

.main-mud-menu .mud-list-item.mud-list-item-gutters.mud-list-item-clickable.mud-ripple .mud-list-item-text .mud-typography.mud-typography-body1 .mud-icon-root {
    min-width: 30px;
    margin-left: 5px;
    margin-right: 15px;
}
/* update mobile style*/
.mobile-menu-task .mud-menu-item {
    padding: 0;
}
.mobile-menu-task .mud-menu-item .mud-menu-item-text {
    margin: 0;
}
.mobile-menu-task .menu-item-text {
    padding: 0px 12px 0 20px;
}
.mobile-menu-task .menu-item-text .mud-button-root{
    margin-right: 4px;
}

.error-snackbar-general {
    gap: 16px;
    padding: 6px 10px 6px 16px;
    max-width: 600px;
    background: #D82C49;
    font-family: 'Roboto';
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1px;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.2), 0 3px 14px 0 rgba(0, 0, 0, 0.12), 0 8px 10px 0 rgba(0, 0, 0, 0.14);
}

    @media (max-width: 1199.98px) {
        #mud-snackbar-container {
            z-index: 1550;
            max-width: 500px;
            width: calc(100dvw - 16px);
            right: max(8px, calc((100dvw - 500px)/2));
            justify-content: space-between;
        }
        
        #mud-snackbar-container:has(.error-snackbar) {
            bottom: 70px;
            padding-left: 8px;
        }

        .mud-snackbar.error-snackbar {
            gap: 16px;
            padding: 6px 10px 6px 16px;
            max-width: 600px;
            background: #D82C49;
            box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.2), 0 3px 14px 0 rgba(0, 0, 0, 0.12), 0 8px 10px 0 rgba(0, 0, 0, 0.14);
        }

        .mud-snackbar-content-action > button {
            padding: 6px;
            margin-left: 0;
        }

        .mud-snackbar-content-message {
            padding: 8px 0;
            font-family: 'Roboto';
            font-size: 14px;
            line-height: 20px;
            letter-spacing: 0.1px;
        }

        .mud-snackbar-content-action {
            margin: 0;
            padding: 0;
            margin-inline-start: unset;
            margin-inline-end: unset;
            padding-inline-start: unset;
            padding-inline-end: unset;
        }
    }

.main-app  .mud-icon-button:focus-within {
    background-color: transparent
}
.mud-ripple-icon:after,.mud-ripple-checkbox:after,.mud-ripple-switch:after,.mud-ripple-radio:after {
    transform: none
}
.mud-ripple:after {
    display: none
}

img.no-callout {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
}

.mud-dialog-container{
    min-height: 100dvh;
}

.mud-switch-base-medium.mud-switch-base {
    color: rgb(255, 255, 255);
}

.mud-switch-span .mud-switch-track {
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2);
    background: var(--theme-colors-default-surface-overlay-8, rgba(0, 0, 0, 0.08));
}

.mud-nav-link:hover:not(.mud-nav-link-disabled) {
    color: rgba(0, 0, 0, 0.87);
}

.mud-select .mud-select-input {
    color: rgba(0, 0, 0, 0.87) !important;
}

.mud-input-control .mud-radio-group .mud-typography {
    color: rgba(0, 0, 0, 0.87);
}

.mud-button-label .mud-button-icon-end {
    margin-inline-start: 0px;
}

.mud-button-icon-size-medium > *:first-child {
    font-size: 24px;
}

.mud-button-filled {
    box-shadow: none !important;
}

.mud-button-filled:disabled {
    background-color: var(--theme-colors-default-surface-overlay-8, rgba(0, 0, 0, 0.08)) !important;
}
/*mobile style*/
@media (max-width: 1200px) {
    .mud-snackbar-location-bottom-right {
        margin-bottom: 8px;
    }
}

.fs-mode.fs-off {
    max-height: 100px;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fs-mode.fs-on {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}

.drag-c{
    transition: height 0.25s;
}
.drag-c.collapsed {
    height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0 !important;
}
.drag-c.expanded {
}

.body1{
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: rgba(0, 0, 0, 0.87);;
}

.subtitle1{
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    font-size: 16px;
    letter-spacing: 0.15px;
    color: rgba(0, 0, 0, 0.87);
}

.subtitle2{
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    font-size: 14px;
    letter-spacing: 0.1px;
    color: rgba(0, 0, 0, 0.87);
}

.caption1{
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    font-size: 12px;
    letter-spacing: 0.4px;
    color: rgba(0, 0, 0, 0.6);
}

.headline6 {
    font-family: Roboto;
    font-weight: 500;
    font-style: normal;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.15px;
}

.overline{
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
}
.mud-picker-calendar-container:has(.mud-picker-calendar-week){
    margin:0 8px 8px 16px;
}

.permition-request-modal {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
    margin: 10px;
    padding: 10px;
    z-index: 10000;
    background: lightgray;
    border-radius: 10px;
    border: 1px gray solid;
}

.prm-title {
    margin-bottom: 5px;
    text-align: center;
}

.prm-actions {
    display: flex;
    gap: 5px;
}

.prm-action {
    padding: 5px;
    border-radius: 5px;
    border: 1px gray solid;
    background: white;
    min-width: 100px;
}

/* Task detail-header-menu styles */
.task-detail-header-menu {
    .mud-menu-list {
        padding: 8px 0;
    }
    .mud-menu-item{
        padding: 8px 16px 8px 20px;
        gap: 4px;
    }
}