html, body {
    direction: rtl;
    text-align: right;
    font-family: "Calibri", sans-serif;
    font-weight: bold;
    background-color: #E2E8F3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1:focus {
    outline: none;
}

/*a, .btn-link {
    color: #0071c1;
}*/

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.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;
}

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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzI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3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "MS-ERP");
    }

code {
    color: #c02d76;
}

.form-group {
    margin-bottom: 10px; /* Space between input fields */
}

.form-control {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
}

.submit-btn {
    margin-top: 15px; /* Space above the submit button */
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full page height */
    background-color: #E2E8F3; /* Light gray background */
}

.login-box {
    width: 60%;
    max-width: 900px;
    background: #fefefe;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.app-logo img {
    /*width: 100px;*/ /* Adjust size as needed */
    margin-bottom: 10px;
    max-height: 71px;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center; /* horizontal centering */
    gap: 12px; /* space between image and label */
}

    .user-info label {
        font-size: 1.2rem; /* or larger like 1.4rem */
        margin: 0;
    }

.user-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.icon.user-image {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    cursor: pointer;
}

.login-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.login-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

    .login-left img {
        max-width: 100%;
        height: auto;
    }

.login-right {
    flex: 1;
    padding: 20px;
}

.blinking-icon {
    animation: blink 1s step-start 0s infinite;
    color: red;
    margin-left: 6px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.box {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 10px;
    margin: 10px auto;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.icon-box {
    border-radius: 10px;
    padding: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: inline-block;
    width: 80%;
    text-decoration: none;
}

    .icon-box:hover {
        background-color: #ffffbb;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .icon-box i {
        font-size: 50px;
        margin-bottom: 5px;
        display: block;
        color: navy;
    }

.icon-caption {
    color: navy;
    font-size: 1.1rem;
    font-weight: bolder;
    font-family: Arial;
}

h1 {
    font-weight: 600;
    text-align: center;
    color: #0F2551;
    margin-bottom: 20px;
}

h2 {
    font-family: Arial;
    font-weight: 900;
    color: #0F2551;
    margin-bottom: 20px;
}

h3 {
    font-weight: 900;
    color: #0F2551;
    margin-bottom: 20px;
}

thead {
    background-color: silver;
    font-size: 18px;
    font-weight: 900;
    height: 25px;
    text-align: center;
}

.table tr {
    height: 15px;
}

.form-check {
    align-content: end;
    display: flex;
    align-items: center;
    direction: rtl;
    margin-left: 10px;
}

.image-container {
    position: relative;
    cursor: pointer;
    height: 200px;
    width: 200px;
    border: 1px solid #000055;
}

.preview-img {
    height: 100%;
    object-fit: cover;
}

.lens-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 22px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-container:hover .lens-icon {
    opacity: 1;
    pointer-events: auto;
}

.header-line {
    height: 1px;
    background-color: #0F2551;
    margin: 0 0 20px 0;
}

.icon-button {
    font-size: 20px;
    color: #060;
    cursor: pointer;
    margin: 1px 2px 1px 2px;
}

    .icon-button:hover {
        color: #0a0;
    }

    .icon-button.red {
        color: maroon;
    }

        .icon-button.red:hover {
            color: red;
        }

    .icon-button.xl {
        font-size: 28px;
    }

    .icon-button.block {
        border: 1px solid gray;
        border-radius: 5px;
        background-color: #eee;
        padding: 2px;
        font-size: 28px;
        min-width: 35px;
        text-align: center;
    }

    .icon-button.inside {
        position: absolute;
        top: 47px;
        left: 20px;
        transform: translateY(-50%);
        z-index: 55;
        padding: 3px;
        border: 1px solid gray;
        color: navy;
        border-radius: 5px;
        background-color: #eee;
    }

        .icon-button.inside:hover {
            color: #55f;
        }

    .icon-button.disabled {
        color: lightgray;
        pointer-events: none;
    }

.btn-function {
    cursor: pointer;
    font-size: 35px;
    color: navy;
    margin-left: 10px;
}

    .btn-function.red {
        color: maroon;
    }

        .btn-function.red:hover {
            color: red;
        }

    .btn-function:hover {
        color: blue;
    }

    .btn-function.disabled {
        color: lightgray;
        pointer-events: none;
    }

/*        .btn-function.disabled:hover {
            color: darkgray !important;
            opacity: 0.5;
        }*/

/*.table-control {
    border-radius: 2px;
    width: 100%;
    border: 1px solid #258cfb;
    box-sizing: border-box;*/ /* ensures padding doesn't overflow the cell */
/*height: 25px;
}

    .table-control:focus {
        outline-color: #1b6ec2;
    }*/

.page-box {
    background-color: white;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: auto;
    min-height: 500px;
    width: 95%;
    margin: 10px auto 10px auto;
    position: relative;
    display: flex;
    flex: 1;
    align-content: flex-start; /* Top */
    justify-content: center; /* Right and Left */
    overflow-y: auto;
}

    .page-box.row-dir { /* Table forms */
        flex-direction: column;
        justify-content: flex-start;
        width: 70%;
    }

.page-title {
    justify-content: flex-start;
    display: flex;
    background-color: #f1f1f9;
    border-bottom: 2px solid #d6d5d5;
    height: 52px;
    color: #01024f;
    padding: 9px 20px 5px 20px;
    font-size: 25px;
    font-weight: 900;
    z-index: 10;
    user-select: none;
}

.pagination-bar {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px 0;
    border-top: 1px solid #ccc;
    text-align: center;
    z-index: 10;
}

.suggestion-list {
    position: absolute;
    top: 100%; /* Place above the input */
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    max-height: 180px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.suggestion-item {
    padding: 3px 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

    .suggestion-item.highlighted {
        background-color: #e0e0e0;
    }

.floating-msg {
    position: absolute;
    top: 99%; /* directly below the button */
    left: 0;
    z-index: 1000;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    font-size: 15px;
}

    .floating-msg.search {
        width: 100%;
    }

    .floating-msg::before {
        content: "";
        position: absolute;
        top: -10px; /* position above the message box */
        left: 15px; /* adjust to align arrow under icon */
        border-width: 0 7px 10px 7px;
        border-style: solid;
        border-color: transparent transparent #ccc transparent;
    }

    .floating-msg::after {
        content: "";
        position: absolute;
        top: -9px; /* slightly below ::before to create inner arrow */
        left: 15px;
        border-width: 0 6px 9px 6px;
        border-style: solid;
        border-color: transparent transparent #f5f5f5 transparent;
    }

    .floating-msg a {
        padding: 10px;
        text-decoration: none;
        color: #333;
        border-bottom: 1px solid #eee;
    }

        .floating-msg a:last-child {
            border-bottom: none;
        }

        .floating-msg a:hover {
            background-color: #f0f0f0;
        }

.group-box {
    border: 1px solid #aaa;
    border-radius: 9px;
    padding: 5px;
}

.link-row {
    cursor: pointer;
    /*transition: background-color 0.2s ease-in-out;*/
}

    .link-row:hover {
        background-color: #fefeed;
    }

.entry-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

    .entry-table th {
        background-color: #ddd;
        text-align: right;
        padding: 5px 10px;
        font-weight: 600;
        font-size: 16px;
        border-bottom: 1px solid #ccc;
    }

    .entry-table td {
        padding: 2px;
        border-bottom: 1px solid #eee;
    }

    .entry-table input, .entry-table select {
        width: 100%;
        box-sizing: border-box;
        padding: 1px;
        font-size: 15px;
        border: none;
        border-bottom: 1px solid #999;
        outline: none;
        background-color: #fdfdfd;
        transition: border-color 0.2s;
    }

        .entry-table input:focus, .entry-table select:focus {
            border-bottom: 1px solid #1b6ec2;
        }

.table-control {
    border: none;
    border-bottom: 1px solid #aaa;
    width: 100%;
    box-sizing: border-box;
    height: 25px;
    background-color: transparent; /* optional: for cleaner look */
}

    .table-control:focus {
        outline: none; /* remove default focus outline */
        border-bottom: 1px solid #1b6ec2;
    }

    .table-control.new {
        border: 1px solid #aaa;
        border-radius: 2px;
    }

        .table-control.new:focus {
            outline: 1px solid #555;
        }
