﻿:root {
    --colifegreen: #26bfb8;
    --colifegray: #575757;
    --colifeorange: #fba618;
    --colifegold: #faa61a;
    --colifeblack: #2e2d2d;
    --colifeheader: #ced3dd;
    --qmsgreen: #05000e;
    --qmsgray: #575757;
    --qmsorange: #fba618;
    --qmsgold: #c99ecf;
    --qmsblack: #2e2d2d;
    --qmsblack: #2e2d2d;
    --qmsbar: #3b3b3b
}
/* ===== Laboratory Background Colors ===== */

/* ٪ آزمایشگاه Bias */
.bias-bg {
    background-color: #FFF6E5 !important; /* Soft Cream */
}

/* ٪ CV آزمایشگاه */
.cv-bg {
    background-color: #E8F8FF !important; /* Pale Sky Blue */
}

/* خطای کل مجاز آزمایشگاه */
.totalerror-bg {
    background-color: #F9F0FF !important; /* Light Lavender */
}

/* سیگما آزمایشگاه */
.sigma-bg {
    background-color: #E9FFF0 !important; /* Mint Green */
}

/* عدم دقت تکرار پذیری */
.repeatability-bg {
    background-color: #FFF1F3 !important; /* Soft Rose */
}

/* عدم دقت بین دور */
.betweenrun-bg {
    background-color: #F4FFF7 !important; /* Very Pale Green */
}

/* عدم دقت درون آزمایشگاهی */
.withinlab-bg {
    background-color: #F5F9FF !important; /* Mist Blue */
}

/* عدم دقت طولانی مدت */
.longterm-bg {
    background-color: #FFF9E8 !important; /* Pale Golden */
}

/* کمینه اندازه گیری */
.minmeasure-bg {
    background-color: #F7F7FF !important; /* Icy Lilac */
}

/* بیشینه اندازه گیری */
.maxmeasure-bg {
    background-color: #EFFFFB !important; /* Aquamarine Tint */
}

/* Optional: add light padding and rounded corners for aesthetic use */
.lab-bg {
    padding: 8px 12px;
    border-radius: 6px;
}


::-webkit-scrollbar-button {
    display: none !important
}

.mud-drawer-header {
    padding: 0;
    margin-bottom: 1rem
}

.bg-silver {
    background: #f1f6c1
}

.text-violet {
    color: #c80fa2 !important;
    color: #c80fa2 !important
}

.bg-5x-light-yellow {
    background: #FFFEF5 !important
}

.bg-4x-light-yellow {
    background: #FFFDE7 !important
}

.bg-3x-light-yellow {
    background: #FFF9C4 !important
}

.bg-2x-light-yellow {
    background: #FFF59D !important
}

.bg-1x-light-yellow {
    background: #FFF176 !important
}

.bg-3x-light-purple {
    background: #E1BEE7 !important
}

.bg-2x-light-purple {
    background: #CE93D8 !important
}

.bg-1x-light-purple {
    background: #BA68C8 !important
}

.bg-5x-light-green {
    background: #F2FBF2 !important
}

.bg-4x-light-green {
    background: #E8F5E9 !important
}

.bg-3x-light-green {
    background: #C8E6C9 !important
}

.bg-2x-light-green {
    background: #A5D6A7 !important
}

.bg-1x-light-green {
    background: #81C784 !important
}

.bg-5x-light-orange {
    background: #FFF8F0 !important
}

.bg-4x-light-orange {
    background: #FFF3E0 !important
}

.bg-3x-light-orange {
    background: #FFE0B2 !important
}

.bg-2x-light-orange {
    background: #FFCC80 !important
}

.bg-1x-light-orange {
    background: #FFB74D !important
}

.bg-5x-light-blue {
    background: #F5FAFF !important
}

.bg-4x-light-blue {
    background: #E3F2FD !important
}

.bg-3x-light-blue {
    background: #BBDEFB !important
}

.bg-2x-light-blue {
    background: #90CAF9 !important
}

.bg-1x-light-blue {
    background: #64B5F6 !important
}

.bg-5x-light-magenta {
    background: #FEF4F8 !important
}

.bg-4x-light-magenta {
    background: #FCE4EC !important
}

.bg-3x-light-magenta {
    background: #F8BBD0 !important
}

.bg-2x-light-magenta {
    background: #F48FB1 !important
}

.bg-1x-light-magenta {
    background: #F06292 !important
}

option {
    font-family: vazirmatn,Tahoma !important
}

.mud-picker-inline {
    flex: unset;
    position: relative
}

.text-green {
    color: green
}

.bg-yellow {
    background: #ff0 !important;
    padding: 2px;
    border-radius: 3px
}

.gold-row {
    background-color: #FFE082 !important
}

.pink-row {
    background-color: #FFC1E3 !important
}

.rtl-caption {
    direction: rtl !important;
    text-align: left
}

.mud-divider-fullwidth {
    margin-top: 1px;
    margin-bottom: 1px;
    border-color: #add8e6;
    border-width: thin !important
}

.mud-tabs {
    border-radius: 3px !important
}

.mud-tab {
    font-size: 12px !important;
    font-weight: 700 !important
}

.mud-tab-active {
    font-size: 12px !important;
    color: red !important;
    font-weight: 700 !important
}

.mud-expand-panel-text {
    font-size: 12px !important
}

.bg-5x-light-purple, .bg-4x-light-purple {
    background: #F3E5F5 !important
}

@media print {
    .no-print {
        display: none
    }
}

@media (max-width: 440px) {
    .xs-hide {
        display: none
    }

    .xs-show {
        display: block
    }
}

@media (min-width: 441px) {
    .xs-hide {
        display: block
    }

    .xs-show {
        display: none
    }
}

@media (max-width: 766px) {
    .mobile-hide {
        display: none
    }

    .mobile-show {
        display: block
    }
}

@media (min-width: 767px) {
    .mobile-hide {
        display: block
    }

    .mobile-show {
        display: none
    }
}

.mud-input::placeholder {
    background-color: #fff;
    color: #258cfb
}

.bg-nika {
    background: #faf0fd !important
}

.mudformcontrol {
    border: 1px solid silver;
    border-radius: 4px
}

.align-center {
    text-align: center
}

.dirrtl {
    direction: rtl !important;
    text-align: start
}

.mud-input-adornment-end {
    margin-inline-end: .5rem
}

.mud-dialog .mud-dialog-title {
    background-color: var(--colifeheader);
    height: 40px
}

    .mud-dialog .mud-dialog-title .mud-button-close {
        top: 10px;
        left: 12px;
        right: unset;
        padding: 3px
    }

.mud-table td, .mud-table th {
    border: 1px solid #eee
}

.mud-table-header {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.mud-table-sticky-header * .mud-table-root .mud-table-head * .mud-table-cell {
    background-color: #fffff0
}

.mud-container {
    max-width: 2800px;
    padding-top: 0;
    padding-right: 15px
}

:root {
    --appbar-height: 128px;
    --footer-height: 64; /* optional if you have footer */
}

.mud-table-container {
    padding: 0;
    padding-top: 0;
    padding-bottom: 14px;
    max-height: calc(80vh - var(--appbar-height));
}

.mud-input-numeric-spin {
    visibility: hidden;
    font-family: Vazirmatn !important
}

.mud-input {
    font-family: Vazirmatn !important;
    font-size: 12px !important;
    padding: 1px
}

.mud-dialog {
    border-radius: 12px !important
}

.mud-table-pagination-toolbar {
    border-top: 0 solid;
    flex-flow: row-reverse !important;
    gap: 1rem
}

.mud-snackbar-location-top-center {
    top: 30% !important
}

.mud-table-cell {
    height: 35px !important;
    font-size: .78rem !important;
    padding: 7px;
    padding-top: 0;
    padding-bottom: 0
}

.data-text {
    border: 1px solid gray;
    border-radius: 4px;
    vertical-align: middle !important;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 5px
}

.forgot-gutter {
    --bs-gutter-x: 0 !important
}

main {
    height: 100%
}

html, body {
    font-family: Vazirmatn,sans-serif;
    font-variant-numeric: lining-nums;
    overflow-x: hidden !important;
    height: 100%
}

span, mudpaper, mudlink, a {
    margin: 0;
    padding: 0;
    font-family: vazirmatn !important;
    font-size: 14px;
    word-spacing: -1px;
    height: 100%
}

.bg-green {
    background: green
}

.mud-typography-body1 {
    font-size: 13px;
    font-size: .8rem !important;
    padding: .2rem
}

.ip-notes {
    color: red;
    background-color: #faebd7;
    border-radius: 2px;
    padding: 2px;
    font-size: 10px
}

.pagetitle {
    font-size: 13px !important;
    font-weight: 700 !important
}

.navbar {
    padding: 20px
}

.tooltip-inner {
    font-family: Vazirmatn;
    font-size: 11px
}

.mud-tooltip {
    background-color: var(--qmsgray) !important;
    color: #fff;
    border-radius: 4px;
    padding: 8px
}

.text-english-bold {
    font-weight: 700
}

a, .btn-link {
    color: #006bb7
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 .1rem white,0 0 0 .25rem #258cfb
}

.content {
    padding-top: 1.1rem
}

h1:focus {
    outline: none
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050
}

.invalid {
    outline: 1px solid #e50000
}

.validation-message {
    color: #e50000;
    font-size: 11px;
    color: #dc3545
}

.text-cyan {
    color: #0ff !important
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem,#b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: #fff
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292
}

.text-qmsblack {
    color: var(--qmsblack)
}

.text-qmsgray {
    color: var(--qmsgray)
}

.text-qmsgreen {
    color: var(--qmsgreen)
}

.text-qmsgold {
    color: var(--qmsgold)
}

.ltr {
    direction: ltr !important
}

.txc {
    text-align: center !important
}

h1, h2, h3, h4, h5, h6, p {
    font-family: Vazirmatn !important
}

.login-wrapper {
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    background-color: var(--qmsgray)
}

.center-dialog-div {
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 100px
}

.card {
    max-width: 400px;
    min-width: 280px;
    margin-left: 5%;
    margin-right: 5%
}

.centerdiv {
    max-width: 400px !important;
    min-width: 280px !important;
    margin: 5% !important
}

.error {
    max-width: 400px;
    min-width: 280px
}

.center-div {
    width: 100px;
    height: 100px;
    background-color: red;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto
}

.tree-item-highlighter {
    justify-self: start;
    margin-left: 5px !important;
    margin-right: 0 !important;
    margin-top: 3px !important;
    padding: 0 !important
}

.mud-ripple-checkbox {
    padding: 0 !important
}

.xs-hidden {
    visibility: hidden
}

.input-group-lg .custom-file-label {
    font-size: 1.4rem;
    margin: 0
}

.mud-dialog-title {
    padding: 8px 18px 1px 12px !important;
    background-color: #dcdcdc;
    color: navy
}

.mud-dialog-content {
    padding: 8px 18px 1px 12px !important;
    overflow-x: hidden !important
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: 14px !important;
    border-radius: 5px;
    padding: 2px;
    top: -2px
}

.mud-input-label {
    padding: 4px !important
}

.mud-typography-body2 {
    font-size: .8rem !important;
    padding: 0
}

.mud-typography-h6 {
    font-size: 1rem !important
}

.mud-nav-link-text {
    font-size: .75rem !important;
    padding-top: 4px;
    margin-inline-start: 10px !important
}

.sortable-column-header {
    font-size: .78rem !important
}

.column-header {
    font-size: .78rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto
}

.mud-icon-size-small {
    font-size: 1rem !important;
    margin: 2px
}

.mud-icon-size-medium {
    font-size: 1.2rem !important
}

.mud-icon-size-large {
    font-size: 2rem !important;
    margin: 4px !important
}

p {
    font-size: .8rem !important
}

.me-auto {
    font-size: .7rem !important
}

.mud-treeview-item {
    font-size: .75rem;
    justify-content: end;
    margin: 0;
    border-radius: 20px
}

.mud-treeview-item-arrow {
    margin-top: 0;
    margin-bottom: 8px;
    margin-top: 0;
    margin-top: 0
}

.mud-button-filled-size-medium {
    padding: .5rem
}

.mud-button-label {
    margin: 0;
    font-size: .8rem !important
}

.mud-table-head {
    background-color: #fffaf0
}

.mud-badge {
    margin: 5px
}

.top-corner-round {
    border-radius: 5px 5px 0 0 !important
}

.bg-caption {
    background-color: #f1f6c1 !important
}

.bg-header {
    background-color: #ffe4c4 !important
}

.text-blue {
    color: blue !important
}

.text-red {
    color: red !important
}

.col {
    height: 100% !important;
    margin: 0
}

#components-reconnect-modal, .components-reconnect-modal {
    display: none !important
}

@media (min-width: 1200px) {
    .max-vh {
        height: 80vh !important;
        overflow-y: auto !important
    }
}

@media (max-width: 1199px) {
    .max-vh {
        height: 80vh !important;
        overflow-y: auto !important
    }
}

@media (min-width: 767px) {
    .max-vh-60 {
        height: 60vh !important;
        overflow-y: auto !important
    }
}

@media (max-width: 450px) {
    .w-xs-100 {
        width: 100%
    }
}

@media (max-width: 2460px) {
    .btn-sm-30 {
        margin-top: 20px !important
    }
}

@media (min-width: 1024px) {
    .sm-hieght-2 {
        height: 80vh !important;
        overflow-y: auto !important
    }
}

@media (max-width: 1023px) {
    .sm-hieght-2 {
        max-height: 1200px !important;
        height: 1200px !important
    }
}

.equal-height-A {
    display: flex;
    flex-direction: column;
    overflow: auto;
    height: 100%
}

.equal-height-B {
    display: flex;
    flex-direction: column;
    overflow: auto;
    height: 100% !important;
    max-height: 475px
}

.equal-height {
    display: flex;
    flex-direction: column;
    overflow: auto;
    overflow: auto;
    max-height: 580px
}

    .equal-height .mud-paper {
        flex: 1;
        display: flex;
        flex-direction: column
    }

.bs-5 {
    border-radius: 5px;
    margin-top: 0 !important
}

.scrollable-content {
    max-height: 800px;
    overflow-y: auto;
    padding: 16px
}

.fixed-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px;
    box-shadow: 0 -2px 5px #00001a
}

.mud-button-group-text.mud-button-group-override-styles.mud-button-group-horizontal.mud-button-group-rtl .mud-button-root:not(:first-child), .mud-button-group-text.mud-button-group-override-styles.mud-button-group-horizontal.mud-button-group-rtl > :not(:first-child) .mud-button-root {
    border-color: #fff
}

.mud-icon-button {
    padding: 2px
}

.mud-tabs-panels {
    padding-top: .7rem
}

.mud-tab mud-ripple {
    min-width: 1px
}

.mud-tabs .mud-tab .mud-tab-indicator {
    right: 0 !important;
    left: auto !important;
    transform: none !important
}

.mud-typography-subtitle1 {
    color: blue
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.custom-chip {
    padding: 6px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 300px;
    position: relative;
    height: 35px
}

.chip-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 0 solid #ccc;
    padding-bottom: 4px
}

.chip-header-text {
    flex-grow: 1;
    text-align: right !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.chip-header-actions {
    display: flex;
    gap: 8px
}

.chip-content {
    display: flex;
    gap: 2px;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.chip-header-icon {
    margin: 0;
    margin-left: 4px;
    margin-bottom: 2px
}

.org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 10px
}

.org-title {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
    min-width: 120px;
    box-shadow: 2px 2px 5px #00001a
}

.org-children {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    position: relative
}

.org-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 10px
}

input[inputmode="numeric"] {
    font-family: 'Vazirmatn',sans-serif !important
}

.spinner1 {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 20px auto
}

.org-line, .org-connector {
    position: absolute;
    height: 20px;
    width: 100%
}

    .org-line line, .org-connector line {
        stroke: #ccc;
        stroke-width: 2
    }

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.custom-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: border-color .3s ease
}

    .custom-select:focus {
        border-color: #007bff;
        outline: none
    }

.resultheader {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.full-height {
    height: 100%;
    display: flex;
    flex-direction: column
}

.card-result {
    max-width: 100%;
    min-width: 400px;
    max-height: 85vh;
    margin-left: 1%;
    margin-right: 1%;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    height: 530px
}

.bggreen {
    background: lime
}

.bgyellow {
    background: #ff0
}

.result-table-container {
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ddd
}

.result-custom-table {
    width: 100%;
    border-collapse: collapse
}

    .result-custom-table th, .result-custom-table td {
        padding: 8px;
        border: 1px solid #ddd;
        text-align: left
    }

    .result-custom-table th {
        background-color: #f2f2f2;
        position: sticky;
        top: 0
    }

.yellow-input {
    background-color: #ff0;
    border: none;
    width: 50px;
    text-align: center;
    background-color: #ff0;
    border: none;
    width: 50px;
    text-align: center
}

.ics {
    font-size: 12px
}

.compact-grid .mud-table {
    direction: ltr !important;
    font-family: Arial !important;
    border-collapse: collapse;
    width: 100%;
    table-layout: auto;
    background: red;
}

    .compact-grid .mud-table td, .compact-grid .mud-table th {
        padding: 4px !important;
        border: 1px solid #ddd !important;
        text-align: left;
        font-size: .7rem;
        font-family: Arial !important;
        white-space: nowrap
    }

    .compact-grid .mud-table th {
        background-color: #f7f7f7;
        font-family: Arial !important;
        font-weight: 700
    }

.compact-grid .mud-table-cell {
    font-size: .7rem;
    text-align: center
}

.result-col {
    text-align: center;
    padding: 3px
}

.low-value {
    background-color: #D3E3F5 !important;
    color: #000
}

.normal-value {
    background-color: #DDF5CC !important;
    color: #000
}

.high-value {
    background-color: #FDE3CC !important;
    color: #000
}

.bg-low-row {
    background-color: #E9F1FA !important
}

.bg-normal-row {
    background-color: #EFFAE5 !important
}

.bg-high-row {
    background-color: #FEF0E3 !important
}

.mud-grid > .mud-item {
    display: flex;
    flex-direction: column
}

.blue-panel {
    min-height: 400px;
    background-color: #D3E3F5 !important
}

.peach-panel {
    min-height: 400px;
    background-color: #FDE3CC !important
}

.green-panel {
    min-height: 400px;
    background-color: #DDF5CC !important
}

.silver-panel {
    min-height: 300px;
    background-color: lightgray !important
}

.orange-panel {
    min-height: 300px;
    background-color: #f5deb3 !important
}

.levey-table {
    width: 100%;
    border-color: silver;
    text-align: center;
    font-size: 10px;
}

    .levey-table th td {
        background: #e3f2fd;
        padding: 4px !important;
    }

    .levey-table tr {
        height: 20px;
    }

.pointer-rows .mud-table-row {
    cursor: pointer !important
}

.clicked-row {
    background-color: #e0f7fa
}

.thin-table-container {
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100%;
    margin: 10px;
    padding-bottom: 10px;
    max-height: 420px;
    position: relative;
    padding-right: 0;
    background-color: #fff
}

.thin-editable-table {
    border-collapse: collapse;
    width: 600px;
    font-family: Arial,sans-serif;
    width: 100%
}

    .thin-editable-table th, .thin-editable-table td {
        white-space: nowrap;
        font-family: vazirmatn !important;
        font-size: 12px;
        border: 1px solid #ddd;
        padding: 4px;
        text-align: center;
        white-space: nowrap;
        background-color: #fff
    }

    .thin-editable-table thead th {
        position: sticky;
        top: 0;
        padding: 6px;
        z-index: 2
    }

.bg-rt {
    background-color: #bbdefb
}

.thin-editable-table td {
    border: 1px solid #ddd;
    padding: 2px;
    text-align: center;
    white-space: nowrap;
    background-color: #fff
}

    .thin-editable-table td input {
        width: 50px;
        box-sizing: border-box;
        border: none;
        padding: 4px;
        font-size: 12px;
        text-align: center;
        outline: none;
        color: #000
    }

        .thin-editable-table td input.silver {
            color: silver
        }

        .thin-editable-table td input:focus {
            background-color: #faafff;
            color: #000 !important;
        }

.thin-editable-table th {
    background-color: #f8f8f8;
    position: sticky;
    z-index: 1
}

.title-band {
    background: #f2fbf2;
    padding: 4px;
    border-radius: 4px;
    margin: 2px
}

.ctrl-panel {
    min-height: 380px !important;
}

.radius-5 {
    border-radius: 5px
}

.mud-tabs-rounded {
    background: #e1f9fb;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    padding: 0 1rem;
    height: 60px;
    color: #fff;
    position: relative
}

.navbar-logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0
}

.menu-item {
    position: relative
}

    .menu-item a {
        color: #fff;
        padding: 1rem;
        display: block;
        text-decoration: none
    }

    .menu-item:hover .mega-menu {
        display: flex
    }

.mud-table-row-expander {
    margin: 1rem
}

.mud-tabs-panels {
    overflow: auto
}

.fixed-dialog .dialog-layout {
    display: flex;
    flex-direction: column;
    height: 80vh;
    max-height: 700px;
}

.fixed-dialog-sm .dialog-layout-sm {
    display: flex;
    flex-direction: column;
    max-height: 700px;
}

.custom-radio, .custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px
}

    .custom-radio input[type="radio"], .custom-checkbox input[type="checkbox"] {
        margin-right: 10px
    }

.diagnosis-table, .comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    direction: rtl;
    font-size: 16px
}

    .diagnosis-table th, .diagnosis-table td, .comparison-table th, .comparison-table td {
        border: 1px solid #000;
        padding: 8px
    }

@media (min-height: 900px) {
    .fixed-dialog .dialog-layout {
        height: 90vh
    }
}

@media (min-height: 840px) {
    .fixed-dialog .dialog-layout {
        height: 85vh
    }
}

@media (max-height: 639px) {
    .fixed-dialog .dialog-layout {
        height: 70vh
    }
}

@media (max-height: 339px) {
    .fixed-dialog .dialog-layout {
        height: 60vh
    }
}

.fixed-dialog .dialog-title {
    flex-shrink: 0;
    padding: 8px;
    background-color: #fff;
    z-index: 1
}

.fixed-dialog .dialog-actions {
    flex-shrink: 0;
    padding: 8px;
    background-color: #fff;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    gap: 12px
}

.fixed-dialog .dialog-content {
    overflow-y: auto;
    flex-grow: 1;
    padding-left: 10px
}

.fixed-dialog .dialog-tabs {
    flex-shrink: 0;
    background-color: #fff;
    z-index: 1;
    margin-top: -8px;
}

.divider {
    border-color: #000000;
    border-width: 1px;
    max-height: 20px;
    margin-top: 6px;
}

.qc-flat-form, qc-flat-group {
    direction: rtl;
    font-size: 12px;
    color: #000;
    max-width: 400px;
    margin: 6px;
}

.qc-flat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qc-flat-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin-bottom: 4px;
}

.qc-flat-readonly {
    height: 24px;
    border: 1px solid silver;
    border-radius: 0;
    background-color: #fff;
    font-size: 14px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 3px;
    width: 140px;
    padding-top: 4px;
}

.form-group label {
    font-size: 11px;
    text-align: right;
    margin-left: 10px;
    font-weight: 500;
}

.qc-flat-group span {
    font-size: 12px;
    text-align: right;
    margin-left: 10px;
    font-weight: 500;
    min-width: 60px;
}

/* Textbox & select */
.qc-flat-input,
.qc-flat-select {
    height: 24px;
    border: 1px solid silver;
    border-radius: 0;
    background-color: #fff;
    font-size: 12px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 3px;
    width: 140px;
}

    .qc-flat-input:focus,
    .qc-flat-select:focus {
        outline: none;
        border-color: #888;
    }

/* Button */
.qc-flat-button {
    margin-top: 6px;
    width: 100%;
    height: 24px;
    border: 1px solid silver;
    background-color: #f2f2f2;
    border-radius: 0;
    color: #000;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .qc-flat-button:hover {
        background-color: #e0e0e0;
    }

/* Checkbox & Radio */
.qc-flat-check,
.qc-flat-radio {
    width: 16px;
    height: 16px;
    border: 1px solid silver;
    border-radius: 0;
    appearance: none;
    position: relative;
    cursor: pointer;
    background-color: #fff;
}

    .qc-flat-check:checked::after {
        content: "";
        position: absolute;
        top: 1px;
        left: 5px;
        width: 5px;
        height: 10px;
        border: solid #000;
        border-width: 0 1px 1px 0;
        transform: rotate(45deg);
    }

.qc-flat-radio {
    border-radius: 50%;
}

    .qc-flat-radio:checked::after {
        content: "";
        position: absolute;
        top: 2px;
        left: 2px;
        width: 4px;
        height: 4px;
        background-color: #000;
        border-radius: 50%;
    }

.qc-flat-display {
    min-width: 50px;
    height: 22px;
    border: 1px solid silver;
    border-radius: 0;
    font-size: 12px;
    line-height: 24px;
    padding: 0 4px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    color: #000;
    text-align: center;
}

.thingrid {
    padding-top: 6px;
    padding-left: 6px;
    margin-top: 0px;
    margin-left: 6px;
    margin-left: 3px;
    margin-right: 0;
    width: auto !important;
}

.thinitem {
    padding-top: 4px !important;
    padding-left: 4px !important;
}

    .thinitem .mud-input input.mud-input-root-outlined,
    .thinitem .mud-input-slot.mud-input-root-outlined.mud-input-root-adorned-end,
    .thinitem .mud-input .mud-input-outlined .mud-input-outlined-with-label .mud-shrink .mud-typography-subtitle1 {
        padding: 12px 16px 4px 10px !important;
        font-size: 12px;
    }

.thinfield {
    margin-top: 8px;
    border: 1px solid silver;
    padding: 2px;
    padding-right: 4px;
}

.thinitem .mud-input-label {
    font-size: 10px !important;
    color: #1861ac;
}

.thinitem .mud-button-filled-size-medium {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 6px;
    padding-left: 6px;
    margin-top: 8px !important;
    width: 100% !important;
}


/* OUTER WRAPPER */

/* OUTER WRAPPER */
.round-table {
    border: 1px solid silver;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 4px;
    background: #f0f8ff;
}

    /* TABLE (normal table structure) */
    .round-table table {
        border-collapse: collapse;
        width: 100%;
        table-layout: fixed; /* critical for column alignment */
    }

    /* FIXED HEADER */
    .round-table thead {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    /* SCROLLABLE BODY */
    .round-table tbody {
        display: block;
        max-height: 150px;
        overflow-y: auto;
        width: 100%;
    }

        /* BODY ROWS */
        .round-table tbody tr {
            display: table;
            width: 100%;
            table-layout: fixed;
        }

    /* CELLS */
    .round-table th,
    .round-table td {
        padding: 4px;
        border-bottom: 1px solid silver;
        white-space: pre-line;
        word-wrap: break-word;
        word-break: break-word;
        background: white;

    }

    .round-table th {
        background: #e6f2ff;
    }
        /* REMOVE RIGHT BORDER FOR LAST CELL */
        .round-table th:last-child,
        .round-table td p {
            border-right: none;
            font-size: 10px !important;
        }


/* OUTER WRAPPER */
/* OUTER WRAPPER */
/* OUTER WRAPPER */
/* OUTER WRAPPER */
.round-table-1 {
    border: 1px solid silver;
    border-radius: 5px;
    overflow: hidden;
    margin: 4px 0 0 0;
    background: #f0f8ff;
    padding: 0;
    font-size: 11px !important;
}

    /* TABLE (no border, fixed layout) */
    .round-table-1 table {
        border-collapse: collapse;
        width: 100%;
        table-layout: auto;
        background: transparent;
    }

    /* HEADER + BODY ROWS — fixed layout */
    .round-table-1 thead tr,
    .tbody-scroll tr {
        display: contents;
        width: 100%;
        table-layout: auto;
    }

/* SCROLLABLE BODY */
.tbody-scroll {
    display: block;
    max-height: 250px;
    overflow-y: auto;
}

/* CELLS — shared rules */
.round-table-1 th,
.round-table-1 td {
    padding: 8px;
    border-bottom: 1px solid silver;
    border-right: 0px solid silver;
    white-space: normal;
    background: white;
    font-size: 12px !important;
}

    /* LAST CELL IN ROW — remove right border */
    .round-table-1 th:last-child,
    .round-table-1 td:last-child {
        border-right: none;
    }

/* LAST ROW — remove bottom border */
.round-table-1 tr:last-child td {
    border-bottom: none;
}



