﻿@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css");
/*
#app {
    min-height: 100vh;
     background-image: url('../media/weblapa_fons_3.gif');
    background: rgb(24,25,23);
    background: linear-gradient(90deg, rgba(24,25,23,0.4995040252429097) 0%, rgba(32,121,9,0) 78%, rgba(97,125,96,0) 100%);
}*/
:root {
    --color-primary: #415936;
    --mud-palette-success: #000;
}
html, body {
    font-family: 'Montserrat', sans-serif;
}

.primary-font-thin {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
}
.primary-font {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
.primary-font-bold {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
    .form-signin {
    width: 100%;
    max-width: 440px;
    padding-top: 10vh;
    margin: auto;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
    .form-signin form {
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 24px;
        padding-right: 24px;
    }
    .form-signin .checkbox {
        font-weight: 400;
    }

    .form-signin .form-floating:focus-within {
        z-index: 2;
    }

    .form-signin input[type="email"] {
        margin-bottom: -1px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .form-signin input[type="password"] {
        
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    .form-signin .btn-sign-in {
        margin-top: 20px;
        margin-bottom: 15px;
        background-color: var(--color-primary);
    }
    .form-signin .forgot-password {
        margin-top: 20px;

    }
    .form-signin .login-logo {
        width: 80%;
        height: 102px;
        margin-bottom: 20px

    }

.form-floating:has(.validation-message) .form-control {
    border-color: red;
}
.form-floating > label {
    top: 4px;
}

#blazor-error-ui {
    background: red;
    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;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.textbox-container {
    position: relative;
    flex-grow: 1;
    height: 3rem; /* Match the height of the textbox */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Ensures content remains centered */
}

.validation-message {
    color: red;
    font-size: 0.85rem;
    margin-top: 4px;
    position: absolute;
    bottom: -20px;
    left: 0;
    display: block;
    height: 0; /* Reserve space even if not visible */
    visibility: hidden; /* Hide message initially */
}

    .validation-message.show {
        visibility: visible;
        height: auto; /* Adjust height when message is visible */
    }
.button-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-left: 0px;
    margin-bottom: 0px;
    bottom: -20px;

}

.user-card-avatar {
    box-shadow: 1px 1px 3px 1px lightgrey;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
}

.user-card {
    box-shadow: 1px 1px 1px 2px lightgrey;
}

.chat-user-list {
    list-style: none;
}

.chat-messages {
    background-color: lightgray;
    border-radius: 25px;
    padding: 5px 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    position: relative;
}

.receiver-message .chat-messages {
    background-color: lightsteelblue;
    width: 80%;
    float: right;
}

.sender-message .chat-messages {
    width: 80%;
    float: left;
}
.receiver-message { 
    clear: both;
}

.sender-message { 
    clear: both;
}

.message-time {
    position: absolute;
    bottom: -14px;
    right: 22px;
}

.chat-title {
    padding: 7px;
}

.message-list {
    list-style: none;
    padding-left: 0px;
}

.user-card .card-body {
    padding-top: 0px;
    padding-bottom: 0px;
}

.user-card-image-column {
    min-width: 72px;
}

.chat-controls {
    padding: 5px;
}

.chat-controls .col-8 .e-input-group {
    padding: 5px;
    width: 100%;
    height: 100%;
}

.chat-controls .col-4 .e-btn{
    padding: 5px;
    width: 100%;
    height: 100%;
}

.chat-controls .col-4 .e-btn .bi-chat-text {
    font-size: 27px;
    padding-right: 15px;

}

.chat-sender-name {
    font-weight: 600;
}

.mapContainer {
    height: 100%;
}

    .mapContainer .leafletMap {
        height: 100%;
    }

.forems-title .title-info-icon {
   margin-left: auto;
   padding-right: 1rem;
}

.forems-title .card-title {
    margin-bottom: 0;
}

.forems-title .card-body {
    display: flex;
    align-items: center;
    justify-content: left;
}

.sidebar-toggler {
    padding: 0px;
    margin-left: -15px;
    margin-right: 6px;
}
.sf-toast {
    z-index: 1100;
    margin-top: 70px;
}

.mud-app-bar {
    z-index: 1000;
}
#toastApi.e-toast-container {
    top: 100px;
    z-index: 1002;
}
.e-tab .e-tab-header {
    display: flex;
    background-color: transparent; 
    border-radius: 4px;
    padding: 0;  /* Spacing between tabs */
}

    .e-tab .e-tab-header .e-toolbar-item .e-tab-wrap {
        background-color: #fff; 
        color: #000;
        border: 1px solid #ccc;
        border-radius: 4px; 
        padding: 5px 15px;  
        cursor: pointer; 
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: none;
    }

        .e-tab .e-tab-header .e-toolbar-item:hover {
            background-color: #e0e0e0;
            color: #000; 
            border-color: #bbb; 
        }

        .e-tab .e-tab-header .e-toolbar-item.e-active {
            background-color: #e0e0e0; 
            color: #000; 
            font-weight: bold;
            border-color: #bbb; 
        }

        .e-tab .e-tab-header .e-toolbar-item:focus {
            outline: none;
            border: 1px solid #888;
            background-color: #e0e0e0; 
        }

.e-tab .e-content {
    background-color: #f9f9f9;
    border-radius: 4px; 
    padding: 15px; 
    color: #000; 
}

.audit-container {
    margin: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.audit-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
    text-align: left;
}

    .audit-table th,
    .audit-table td {
        padding: 10px;
        border: 1px solid #ddd;
    }

    .audit-table th {
        background-color: #f4f4f4;
        font-weight: bold;
        text-align: left;
        color: #555;
    }

    .audit-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .audit-table tr:hover {
        background-color: #f1f1f1;
    }

    .audit-table .text-danger {
        color: #dc3545;
        font-weight: bold;
    }

    .audit-table .text-success {
        color: var(--color-primary) !important;
        font-weight: bold;
    }

.no-changes-message {
    margin-top: 15px;
    padding: 10px;
    color: #777;
    font-size: 14px;
    text-align: center;
    background-color: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 5px;
}


.dialog-header {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 10px;
}

.dialog-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.sortable-header {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}

    .sortable-header:hover {
        color: #0056b3;
        text-decoration: none;
    }
.custom-help-button {
    background: none;
    border: none;
    color: #6c757d; 
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}


.dropdown-container {
    display: flex;
    align-items: center;
    position: relative; 
    gap: 8px; 
}


.e-tooltip .fa-info-circle {
    color: #6c757d; 
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

    .e-tooltip .fa-info-circle:hover {
        color: #007bff; 
    }


.info-button {
    position: absolute;
    top: 5px;
    right: 10px;
}
.dropdown-button-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.centered-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .centered-button:hover {
        background-color: #0056b3;
    }


.e-tip-content {
    position: relative;
    z-index: 1051;
}
.mud-list {
    padding-right:20px;
}


body {
    padding-bottom: 100px;
}

.grid-container {
    margin-bottom: 50px;
}
.e-dialog .e-footer-content {
    display: flex !important;
    justify-content: flex-start !important;
    padding: 1rem !important;
    flex-direction: row !important;
}

    .e-dialog .e-footer-content .e-btn {
        margin-right: 0.5rem !important;
    }

.e-dialog .e-btn.e-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;    
    order: 1 !important;
}

.e-dialog .e-btn.e-flat:not(.e-primary) {

    color: white !important;
    order: 2 !important;
}

:has(+ .validation-messages) {
    box-shadow: 0 0 0 1px rgba(255, 0, 0, 1) !important;
}

.validation-messages {
    /* TODO nostilot smuki ar bold un atstarpēm    */
}
/*SaveButton*/
.e-toolbar-item button:has(.e-update) {
    background-color: lightgreen !important;
}
/*CancelButton*/
.e-toolbar-item button:has(.e-cancel) {
    background-color: #ff000078 !important;
}
.e-dlg-container.e-edit-dialog.e-dlg-center-center {
    position: relative;
    z-index: 9999 !important;
} 
/*#modal-PersonAddressCardGrid_dialogEdit_wrapper {
    z-index: 9999 !important;
    display: flex !important;
    position: fixed !important;
}*/