﻿.dashboard-layout {
    background-color: #f1f5f4;
}

p {
    margin-bottom: 1em;
}

.dashboardcards {
    background-color: #F8F9FA;
}

.dashboardcard {
    width: 10em;
    height: 10em;
    border-radius: 0.5em;
    margin: 5px;
    margin: 2vw;
    text-align: center;
    overflow: hidden;
}

.culture {
    cursor: pointer;
    opacity: 0.5;
}

.selected-culture {
    cursor: pointer;
    background-color: transparent;
}

.col-25 {
    width: 25%;
}

.col-40 {
    width: 40%;
}

.col-60 {
    width: 60%;
}

.w-40 {
    width: 40%;
}

.quantity {
    width: 3em;
}

.quantity-wide {
    min-width: 6.5em;
    max-width: 6.5em;
}

.sum-manual {
    width: 6.2em;
}

.text-middle .mud-input-slot {
    text-align: center;
}

.fixed-button-width {
    width: 8.15em;
}

.type-select {
    max-width: 9em;
}

.excel-uploader-button {
    width: 9em;
}

.hide-error-text .mud-input-control-helper-container { /* leave for compatibility (not all forms use form-compact yet...) */
    height: 0;
    margin: 0;
    visibility: collapse;
}

.form-compact .mud-input-control,
.form-compact .mud-picker {
    margin-bottom: 0;
}

/* Hide error containers everywhere inside form */
.form-compact .mud-input-control-helper-container,
.form-compact .mud-input-helper-text,
.form-compact .mud-input-errors {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.counting-list ul {
    list-style-type: disc;
    padding-left: 20px;
}

.counting-selection {
    opacity: 0.5;
}

.counting-selection.selected {
    opacity: 1;
    background-color: #f8f9fa;
    border-color: #ff0000;
}

.counting-selection:hover {
    background-color: #f8f9fa;
    border-color: #ff0000;
}

.counting-app-bar {
    background-color: #f8f9fa;
}

@media (min-width: 960px) {
    .counting-app-bar.mud-appbar-fixed-bottom {
        left: var(--mud-drawer-width-left, 240px);
        right: var(--mud-drawer-width-right, 0);
    }
}

@media (max-width: 959.98px) {
    .counting-app-bar.mud-appbar-fixed-bottom {
        left: 0;
        right: 0;
    }
}

.counting-app-bar .full-width {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 16px;
}

@media (min-width: 960px) {
    .counting-app-bar .full-width {
        margin-right: var(--mud-drawer-width-left, 240px);
    }
}

@media (max-width: 959.98px) {
    .counting-app-bar .full-width {
        margin-right: 0;
    }
}

.full-width {
    width: 100%;
}

.lang-menu .mud-list {
    min-width: auto;
    width: auto;
    padding: 4px;
}

.lang-menu .mud-list-item {
    padding: 4px;
    min-width: 0;
}

.no-wrap {
    white-space: nowrap;
}

.timeline-container {
    width: 70%;
    max-width: 44em;
}

.timeline-container .selected {
    font-weight: 700;
}

.timeline-line-horizontal {
    background-color: #dddddd; /* Color of the connecting lines */
    height: 2px; /* Thickness of the lines */
    width: 50px; /* Width of each connecting line between steps */
    align-self: center; /* Center-aligns the line between the steps */
    margin-top: -18px; /* Align line to the icon baseline */
}

@media (max-width: 768px) {
    .timeline-container {
        width: 100%;
        max-width: none;
        padding: 0 1em;
    }

    .timeline-line-horizontal {
        margin-top: 0;
        width: 10px;
    }
}

.date-container {
    min-width: 10em;
}

.date-divider {
    height: 0.25em;
    width: 6em;
    background-color: #d33777;
}

.room-select {
    flex: 0 0 auto;
    width: auto;
}

.room-select .mud-select-input {
    color: #ffffff;
    height: 2.5em;
    font-weight: 700;
}

.room-select .mud-input-adornment-icon {
    color: #ffffff;
}

.counting-status.open {
    color: #00204b;
}

.counting-status.counted {
    color: #618041;
}

.service-date {
    align-content: center;
    color: #ffffff;
    height: 3.2em;
    width: 8em;
}

.service-date.inactive {
    background-color: #5d5d5D;
}

.service-date.past-due {
    background-color: #cc4716;
}

.service-date.unknown {
    background-color: transparent;
}

.service-date.upcoming {
    background-color: #87a759;
}

.rz-slider {
    width: 95% !important;
    margin-left: 1.5em;
}

.inventory-status {
    align-content: center;
    color: #ffffff;
    height: 3.2em;
    width: 8em;
    cursor: not-allowed;
}

.inventory-status.open {
    background-color: #5D5D5D;
}

.inventory-status.closed {
    background-color: #F1A83B;
}

.inventory-status.can-change {
    cursor: pointer;
}

.inventory-status.accepted {
    background-color: #87A759;
}

.inventory-status.canceled {
    background-color: #CC4716;
}

.inventory-status.default {
    background-color: #9E9E9E;
}

.inventory-cursor {
    cursor: not-allowed;
}

.inventory-cursor.can-change {
    cursor: pointer;
}

.icon-open {
    color: #5D5D5D;
}

.icon-closed {
    color: #F1A83B;
}

.icon-accepted {
    color: #87A759;
}

.icon-canceled {
    color: #CC4716;
}

.icon-default {
    color: #9E9E9E;
}

.scanner-popover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border: solid;
    border-width: 1px;
    border-color: #000000;
    transform: translate(0%, 5%);
    width: calc(100% - 20px);
}

.scanned-row {
    background-color: #e8147a;
}

.fixed-width-select {
    width: 14em !important;
    min-width: 14em !important;
    max-width: 14em !important;
    display: inline-block;
}

.fixed-width-dialog {
    width: 85%;
    max-width: 30em;
}

.zxing-source-select-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.zxing-container p {
    text-align: center;
}

.zxing-source-select-container {
    font-size: 16px;
}

.zxing-video-select {
    font-size: 16px;
}

.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.mud-dialog-actions {
    margin-right: 1.1em;
}

.fixed-table-height .mud-table-container {
    height: 50vh;
    max-height: 50vh;
}

.inventory-pager .mud-table-pagination-toolbar {
    margin-bottom: 70px;
}

.dimmed-input .mud-input-root {
    opacity: 0.5;
    color: gray;
}

.hidden-column {
    width: 0px;
}

.mud-dialog.dialog-full {
    width: calc(100% - 10px) !important;
}

.dialog-full .mud-dialog-title {
    padding: 16px 14px !important;
}

.dialog-full .mud-dialog-content {
    padding: 0px 4px !important;
}

.dialog-full .mud-dialog-actions {
    justify-content: center !important;
    margin: 0 0 8px 0;
}

.print-control {
    background-color: #fcfbfb;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    .no-print {
        display: none !important;
    }
}

.selected-item {
    background-color: #efefef;
}

.alert-link:hover {
    background-color: #F8F9FA;
}

.mud-table-row.selected-inventory-row > td {
    border-top: 2px solid #e84b80;
    border-bottom: 2px solid #e84b80;
}

.mud-table-row.selected-inventory-row > td:first-child {
    border-left: 2px solid #e84b80;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.mud-table-row.selected-inventory-row > td:last-child {
    border-right: 2px solid #e84b80;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.white {
    color: red;
}

.goback {
    width: var(--mud-drawer-width-left, 240px);
}

@media (max-width: 959.98px) {
    .goback {
        width: auto;
        margin-right: 20px;
    }
}

.partner-banner {
    height: 63px;
    width: 240px;
    background-color: #FDF8ED;
}

.logo {
    background-color: #e8147a;
}

.not-found {
    height: 80vh;
}

/* MudBlazor color mappings */
.bg-primary {
    background-color: var(--mud-palette-primary);
}

.bg-secondary {
    background-color: var(--mud-palette-secondary);
}

.bg-tertiary {
    background-color: var(--mud-palette-tertiary);
}

.bg-info {
    background-color: var(--mud-palette-info);
}

.bg-success {
    background-color: var(--mud-palette-success);
}

.bg-warning {
    background-color: var(--mud-palette-warning);
}

.bg-error {
    background-color: var(--mud-palette-error);
}

.bg-dark {
    background-color: var(--mud-palette-dark);
}

.bg-transparent {
    background-color: transparent;
}

/* Portal */
.portal-banner {
    background-color: #0A2850;
    color: white;
    border-radius: 4px;
}

.portal-divider {
    background-color: white;
    width: 40px;
    height: 2px;
}

.portal-module-col {
    display: flex;
    justify-content: center;
}

.portal-module-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    max-width: 320px;
    height: 380px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.portal-module-header {
    color: white;
    padding: 22px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.portal-module-title {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.2;
}

.portal-module-content {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.portal-module-description {
    margin: 0;
    color: rgba(0,0,0,.85);
}

.portal-module-actions {
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

.selected-portal-module {
    font-size: 1.5em;
    text-transform: uppercase;
}

/* Reports */
.report-banner {
    background-color: transparent;
    color: #000000;
    border-radius: 4px;
}

.report-divider {
    background-color: #71B5E3;
    width: 40vw;
    height: 3px;
}

.report-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    max-width: 280px;
    height: 280px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.report-action-button {
    min-width: 160px;
    background-color: var(--mud-palette-primary-lighten);
}

/* Country selection (login) */
.country-card {
    height: 200px;
    width: 240px;
    box-shadow: var(--mud-elevation-3);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.country-card:hover {
    box-shadow: var(--mud-elevation-8);
    transform: translateY(-2px);
}

/* flag styling */
.country-flag {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    padding: 6px;
}

/* Power BI */
.powerbi-container {
    width: 100%;
    height: 100vh;
}
