﻿.error-text {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.modal-overlay {
    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: 1050;
}



.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    padding: 20px;
    position: relative;
}

uui-modal-close {
    cursor: pointer;
}



/* Info Modal Styling */
.field-list-modal {
    position: absolute;
    top: 50px; /* Adjust vertical position from the button */
    left: auto;
    right: 10%; /* Opens to the right of the button */
    width: 300px;
    background: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 20px;
    border-radius: 8px;
}

    /* Modal Header */
    .field-list-modal .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #ccc;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    /* Modal Body */
    .field-list-modal .modal-body ul {
        list-style: none;
        padding: 0;
    }

    .field-list-modal .modal-body li {
        margin-bottom: 5px;
    }

/* Info Button Style */
.info-btn {
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.descriptionTextArea {
    min-width: 700px;
    min-height: 250px;

}

.charts-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 20px;
    margin-bottom: 20px;
}

.bar-chart-container {
    width: 80%;
    max-width: 800px;
}

.pie-charts-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pie-chart {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    height: 250px;
}
/* Bold styling for header cells */
.table-header {
    font-weight: bold;
}

/* Subtle background colors */
.uui-bg-subtle-success {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.uui-bg-subtle-warning {
    background-color: #fff8e1;
    color: #ff8f00;
}

.uui-bg-subtle-danger {
    background-color: #ffebee;
    color: #c62828;
}

/* Optional: Adjust text color for readability */
.uui-table-cell {
    color: #333; /* A neutral text color */
}

.stock-report-cell {
    flex: 1;
    padding: 5px 10px;
    text-align: center;
    font-size: 14px;
}

.stock-report-row-header {
    font-weight: bold;
    background-color: #f4f4f4;
}

.hopper-reports {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.hopper-report {
    padding: 5px 10px;
    background-color: #e9f7f7;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-width: 185px;
}

.empty-hopper {
    color: #999;
    font-style: italic;
}

/* Modal Backdrop */
.log-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999; /* Must be higher than Umbraco sidebar */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto; /* This enables scrolling */
}

/* Modal Container */
.log-modal {
    background: white;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 100000;
    border-radius: 8px;
    transform: translateX(40px); /* adjust as needed */
}

/* Header */
.log-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
}

.log-modal__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}

/* Close button (inherits Umbraco .btn .btn-link) */
.log-modal__close {
    margin-left: 12px;
    white-space: nowrap;
}

/* Body */
.log-modal__body {
    padding: 18px;
    overflow: auto;
    max-height: calc(100vh - 48px - 56px);
}

/* Preformatted JSON */
.log-modal__pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12.5px;
    line-height: 1.45;
}
