﻿.modalCustomer {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 13000;
    left: 0px;
    top:0px;
    right: 0%;
    height: calc(100vh);
    overflow: auto; /* Enable scroll if needed */
    background-color: #fefefe; /* Fallback color */
    border: 1px solid #888;
}

.modalCustomer-content {
    background-color: #fefefe;
    padding: 10px;
    border: 6px solid #888;
    width: 100%; /* Could be more or less, depending on screen size */
    height: 100%; /* Could be more or less, depending on screen size */
    overflow:auto
}

.modalCustomer-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.gridCustomer {
    border: 1px solid #ddd; /* Basic grid border */
    margin-top: 10px;
    height: 40%; /* Adjust based on your needs */
    /* You may want to add more styling based on the Toast UI Grid documentation */
}

.modalCustomer-footer {
    text-align: right;
    margin-top: 10px;
}

.filter-content {
    align-content:center;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.filter-row {
    text-align:center;
    margin: 5px 0;
}

.filter-basis {
   
    margin-left: 10px;
}

.filter-row input[type="text"] {
    margin-left: 10px;
    padding: 5px;
}

    .filter-row input[type="text"]:disabled {
        background-color: #f0f0f0;
    }

.filter-row button {
    margin-left: auto;
    padding: 5px 15px;
}



.messagemodal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.messagemodal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    max-width: 500px;
}

.messagemodal-header {
    display: flex;
    align-items: center;
    font-size: 1.5em;
}

.messagemodal-body p {
    font-size: 1em;
    margin: 10px 0;
}

.messagemodal-footer {
    text-align: right;
}

.messagemodal-footer button {
    margin-left: 10px;
}

.messagemodal-icon {
        font-size: 1.2em; /* Adjusts the size of the icon */
        margin-right: 10px; /* Adds some space between the icon and the text */
    }


.modalYpeftinos {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000;
    left: 0px;
    top: 0px;
    right: 0%;
    height: calc(100vh);
    overflow: auto; /* Enable scroll if needed */
    background-color: #fefefe; /* Fallback color */
    border: 1px solid #888;
}

.modalYpeftinos-content {
    background-color: #fefefe;
    padding: 10px;
    border: 6px solid #888;
    width: 100%; /* Could be more or less, depending on screen size */
    height: 100%; /* Could be more or less, depending on screen size */
    overflow: auto
}

.modalYpeftinos-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.gridYpeftinos {
    border: 1px solid #ddd; /* Basic grid border */
    margin-top: 10px;
    height: 40%; /* Adjust based on your needs */
    /* You may want to add more styling based on the Toast UI Grid documentation */
}

.modalYpeftinos-footer {
    text-align: right;
    margin-top: 10px;
}

.financeModalWrapper {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.financeModalContent {
    background: white;
    width: 80vw;
    height: 80vh;
    min-width: 800px;
    min-height: 600px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.financeModalTitle {
    margin-bottom: 20px;
}

.financeModalGrid {
    flex-grow: 1; /* Ensures the grid takes up all available space minus button and title */
    width: 100%;
    overflow: auto;
}

.financeModalButton {
    align-self: flex-end;
    margin-top: 20px;
    padding: 10px 20px;
}


.executedJobsGrid {
    flex-grow: 1; /* Ensures the grid takes up all available space minus button and title */
    width: 100%;
    overflow: auto;
}


.equipmemoModalBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* High z-index to be on top of other content */
}

.equipmemoModal {
    width: 600px;
    height: 600px;
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.equipmemoTextarea {
    flex-grow: 1; /* Makes the textarea expand to fill the modal */
    margin: 20px 0;
}

.equipmemoButtons {
    display: flex;
    justify-content: flex-end;
}

.equipmemoButtons button {
    margin-left: 10px;
}

#editModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

    #editModal > div {
        background: white;
        width: 300px;
        padding: 20px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #editModal input[type="text"] {
        width: 100%;
    }


.modalLookup {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000;
    left: 0px;
    top: 0px;
    right: 0%;
    height: calc(100vh);
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(235, 235, 235,.5); /* Fallback color */
    border: 1px solid #888;
}

.modalLookup-content {
    background-color: #fefefe;
    padding: 10px;
    border: 6px solid #888;
    margin-left:calc( 50vw - 200px);
    width: 400px; /* Could be more or less, depending on screen size */
    height: 100%; /* Could be more or less, depending on screen size */
    overflow: auto;

}

.modalLookup-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.popup_menu {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
    border-radius: 5px;
}

.popup_menu-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #007BFF;
    color: white;
    text-align: left;
}

    .popup_menu-button:hover {
        background-color: #0056b3;
    }

.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    overflow: hidden;
    background-color: #e9ecef;
}

.message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    z-index: 9999; /* Makes sure it appears on top of everything */
    cursor: pointer;
    transition: opacity 0.5s ease; /* Fade out transition */
}

    .message-box.error {
        background-color: red;
        color: white;
    }

    .message-box.warning {
        background-color: yellow;
        color: black;
    }

    .message-box.info {
        background-color: blue;
        color: white;
    }

.allpersons-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.allpersons-modal-content {
    width: 80%;
    height: 90%;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.allpersons-modal-header {
        padding: 1em;
        background-color: #f5f5f5;
        border-bottom: 1px solid #ddd;
    }

    .allpersons-modal-header h2 {
        margin: 0;
        font-size: 1.5em;
    }


.allpersons-modal-body {
    flex-grow: 1;
    padding: 1em;
    overflow: auto;
}

.allpersons-grid {
    width: 100%;
    height: calc(100% - 50px);
}

.allpersons-modal-footer {
    padding: 1em;
    text-align: right;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
}

.allpersons-button {
    margin-left: 1em;
    padding: 0.5em 1em;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
}

    .allpersons-button:hover {
        background-color: #0056b3;
    }

.allpersons-search-input {
    width: 100%;
    padding: 0.5em;
    margin-top: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}
