@import url("open-iconic/font/css/open-iconic-bootstrap.min.css");

.presence-badges {
}
.presence-badge {
    background-color: #fff3cd;
    color: #856404;
}
.presence-badge--self {
    background-color: #ffeeba;
    color: #856404;
}
.presence-badge--others {
    background-color: #fff3cd;
    color: #856404;
}

/* Floating presence widget */
.presence-floating {
    position: fixed;
    top: 4rem;
    right: 1.5rem;
    z-index: 1100;
    font-size: 0.85rem;
}
.presence-floating-panel {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 6px 16px rgba(238, 90, 82, 0.25);
    max-width: 300px;
}
.presence-floating-header {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.presence-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    color: #555;
}
.presence-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.presence-list > li {
    padding: 2px 0;
}
.presence-floating-collapsed {
    display: flex;
    justify-content: flex-end;
}
.presence-floating-dot {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(238, 90, 82, 0.3);
    animation: presence-pulse 2s infinite;
    transition: transform 0.2s ease;
}
.presence-floating-dot:hover {
    transform: scale(1.1);
}
@keyframes presence-pulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(238, 90, 82, 0.7),
            0 4px 8px rgba(238, 90, 82, 0.3);
    }
    70% {
        box-shadow:
            0 0 0 18px rgba(238, 90, 82, 0),
            0 4px 8px rgba(238, 90, 82, 0.3);
    }
    100% {
        box-shadow:
            0 0 0 0 rgba(238, 90, 82, 0),
            0 4px 8px rgba(238, 90, 82, 0.3);
    }
}

html,
body {
    font-family:
        "Source Sans Pro",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol";
    height: 100%;
    background-color: #ffffff !important;
}

a,
.btn-link {
    color: #0366d6;
}

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

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

.rz-navigation-item-link {
    cursor: pointer !important;
}

.top-row .top-menu ul {
    z-index: 50;
}

.top-row .top-menu > div > .rz-navigation-item-link {
    color: #ffffff !important;
}

div.form-dirty-background {
    display: block;
    position: fixed;
    /*z-index: 1; !* Sit on top *!*/
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: RGBA(224, 224, 224, 0.4); /* the translucent effect*/
}

form button {
    position: relative;
}

.property-wrapper {
    /*display: grid;*/
    /*grid-template-columns: repeat(auto-fit, minmax(5em, 15em));*/

    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 21.2em;
    overflow: auto;
}

@media (max-width: 576px) {
    .property-wrapper {
        flex-wrap: nowrap;
    }
}

.datalist-toolbar > div:not(:first-child) {
    margin-left: 1rem;
}

.rz-dropdown-items-wrapper {
    max-height: 400px !important;
}

.clickable {
    cursor: pointer;
}

.rz-state-highlight td > .rz-cell-data a {
    /* prevent links being hidden(blue on blue) when datagrid row is highlighted/selected */
    color: white !important;
}

.spinner-delayed {
    opacity: 0;
    animation-name: rotate, fadeIn;
    animation-duration: 450ms, 800ms;
    animation-timing-function: linear, ease;
    animation-iteration-count: infinite, 1;

    animation-delay: 400ms;
    animation-fill-mode: forwards;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.rz-button-text {
    white-space: nowrap;
}

.rz-panel-content-wrapper {
    border-top: 1px solid #e0e0e0;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.product-attribute-table > tbody > tr > td {
    padding: 0 1rem 0 0;
}

.product-attribute-table {
    line-height: 1.2em;
}

.attributes-text {
    --first-column-width: 240px;
}

.product-attribute-table td:first-child {
    display: flex;
    align-items: baseline;
    padding-right: 0;
}

.product-attribute-table td:first-child::after {
    content: "";
    flex-grow: 1;
    border-bottom: 2px dotted #ccc;
    margin: 0 0.75em;
    position: relative;
    top: -0.2em;
}

.product-attribute-table > tbody > tr > td:first-child {
    width: var(--first-column-width);
}

.dimensions-container > span:first-child {
    width: var(--first-column-width);
}

.dimensions-container span:first-child {
    display: flex;
    align-items: baseline;
    padding-right: 0;
}

.dimensions-container span:first-child::after {
    content: "";
    flex-grow: 1;
    border-bottom: 2px dotted #ccc;
    margin: 0 0.75em;
    position: relative;
    top: -0.2em;
}

.dimensions-container {
    display: flex;
    flex-direction: row;
}

.smaller-text {
    font-size: 0.9em;
}

.attributes-text {
    margin-left: 3rem;
}

div.content-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
}

div.content-table-header {
    display: flex;
    flex-direction: row;
    border-bottom: solid 2px;
    margin-bottom: 5px;
}

div.content-table-row {
    display: flex;
    flex-direction: row;
    margin-bottom: 5px;
}

.content-table-header-cell {
    font-weight: bold;
    padding: 0 5px 5px 0;
}

.content-table-cell {
    padding: 0 5px 0 0;
    line-height: 26px;
}

.content-table-row-info {
    display: flex;
    flex-direction: row;
    margin-bottom: 5px;
}

/* Cell widths */
.cell-row-number {
    flex: 0 0 70px;
    width: 70px;
}

.cell-product {
    flex: 1 1 auto;
}

.cell-quantity {
    display: flex;
    justify-content: center;
    flex: 0 0 90px;
    width: 90px;
}

.cell-price {
    flex: 0 0 160px;
    width: 160px;
    text-align: right;
}

.cell-discount {
    flex: 0 0 80px;
    width: 80px;
    text-align: right;
}

.cell-total {
    flex: 0 0 160px;
    width: 160px;
    text-align: right;
}

.cell-info {
    flex: 1;
}

table.footer-upper-table {
    border-collapse: collapse;
    width: 100%;
}

table.footer-upper-table tr:first-child td {
    border-top: solid 2px;
}

/* Main container with page structure */
div.order-container {
    display: flex;
    flex-direction: column;
}

/* Header section that will appear at the top of the first page */
.order-header {
    margin-bottom: 10px;
}

/* Footer that will be fixed at the bottom of each page */
.order-footer {
    height: 110px;
    background-color: white;
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 0;
}

/* Add page break control for multi-page PDFs */
.page-break {
    page-break-after: always;
}

/* Ensure certain elements don't break across pages */
.no-break {
    page-break-inside: avoid;
}

.cell-actions {
    flex: 0 0 130px;
}

