:root {
    --color-white: #ffffff;
    --color-gray-25: #fcfcfd;
    --color-gray-50: #fafafc;
    --color-gray-100: #eef2f6;
    --color-gray-200: #e3e8ef;
    --color-gray-300: #cdd5df;
    --color-gray-400: #9aa4b2;
    --color-gray-500: #697586;
    --color-gray-600: #4b5565;
    --color-gray-700: #364152;
    --color-gray-800: #202939;
    --color-gray-900: #121926;
    --color-brand-50: #dfffff;
    --color-brand-100: #c9feff;
    --color-brand-300: #71d5d5;
    --color-brand-400: #45c1c1;
    --color-brand-500: #19b2b2;
    --color-brand-600: #169a9a;
    --color-brand-700: #0f7b7b;
    --color-brand-800: #0a5f5f;
    --color-brand-900: #083535;
    --color-error-500: #f04438;
    --color-warning-500: #f79009;
    --color-success-500: #12b76a;
    --border-subtle: 1px solid var(--color-gray-200);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --control-height: 44px;
    --shadow-card: 0 1px 3px rgba(18, 25, 38, 0.08);
    --shadow-popover: 0 12px 32px rgba(18, 25, 38, 0.16);
}

html {
    background: var(--color-gray-25);
}

body {
    color: var(--color-gray-700);
    background: var(--color-gray-25);
}

.unsupported-browser {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--color-gray-25);
    font-family: IranSans, Tahoma, Arial, sans-serif;
}

.unsupported-browser[hidden] {
    display: none !important;
}

.unsupported-browser--visible {
    display: grid;
}

.unsupported-browser__panel {
    box-sizing: border-box;
    width: min(100%, 680px);
    max-height: calc(100vh - 48px);
    padding: 32px;
    overflow: auto;
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-popover);
    font-family: IranSans, Tahoma, Arial, sans-serif;
    text-align: center;
}

.unsupported-browser__logo {
    width: 112px;
    height: 80px;
    margin-bottom: 16px;
    object-fit: contain;
}

.unsupported-browser h1 {
    margin: 0 0 12px;
    color: var(--color-gray-900);
    font-size: 1.35rem;
    line-height: 1.7;
}

.unsupported-browser p {
    margin: 0;
    color: var(--color-gray-700);
    font-size: 0.95rem;
    line-height: 2;
}

.unsupported-browser__hint {
    margin-top: 10px !important;
    color: var(--color-gray-500) !important;
    font-size: 0.85rem !important;
}

.unsupported-browser__details {
    display: grid;
    margin: 24px 0 0;
    gap: 10px;
    text-align: right;
}

.unsupported-browser__details div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
    border: var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--color-gray-25);
}

.unsupported-browser__details dt {
    color: var(--color-gray-600);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.8;
}

.unsupported-browser__details dd {
    margin: 0;
    color: var(--color-gray-900);
    font-size: 0.9rem;
    line-height: 1.9;
}

.auth-main-content {
    min-height: 100dvh;
    padding-top: 0 !important;
    background:
        radial-gradient(circle at 12% 18%, rgba(113, 213, 213, 0.24), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(205, 213, 223, 0.42), transparent 32%),
        linear-gradient(145deg, #f8fcfc 0%, #f5f7fa 52%, #ffffff 100%);
}

.auth-layout-container {
    padding-block: 24px;
}

.login-page {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    min-height: calc(100dvh - 48px);
    padding: 16px;
}

.login-card {
    width: min(100%, 480px);
    padding: 28px 32px;
    border: var(--border-subtle);
    border-radius: var(--radius-lg) !important;
    background: var(--color-white) !important;
    box-shadow: var(--shadow-card) !important;
}

.login-card__brand {
    display: flex;
    justify-content: center;
}

.login-logo {
    width: min(100%, 136px);
    height: 96px;
    object-fit: contain;
}

.login-card__title {
    margin-top: 16px;
    color: var(--color-gray-900);
}

.login-card__subtitle {
    margin: 6px 0 20px;
}

.login-card__alert {
    margin-bottom: 12px;
}

.login-card__submit {
    color: var(--color-white) !important;
    background: var(--color-brand-700) !important;
    box-shadow: var(--shadow-card) !important;
}

.login-card__submit:hover {
    background: var(--color-brand-800) !important;
}

.login-card__help {
    display: block;
    margin-top: 12px;
    line-height: 1.8;
}

.login-card__footer {
    display: grid;
    margin-top: 24px;
    color: var(--color-gray-500);
    gap: 4px;
}

.verification-card {
    max-width: 440px;
}

.verification-card__phone {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    color: var(--color-brand-800);
    font-weight: 600;
}

.verification-code {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 8px 0 4px;
    gap: 10px;
}

.verification-code__native {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: text;
    opacity: 0;
}

.verification-code__box {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    min-width: 0;
    color: var(--color-gray-900);
    font-size: 1.25rem;
    font-weight: 600;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    background: var(--color-gray-25);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.verification-code__box--active {
    border-color: var(--color-brand-500);
    box-shadow: 0 0 0 3px rgba(25, 178, 178, 0.14);
    background: var(--color-white);
}

.verification-code__box--filled {
    color: var(--color-brand-900);
    border-color: var(--color-brand-300);
    background: var(--color-brand-50);
}

.verification-code__error {
    display: block;
    min-height: 24px;
    margin-top: 4px;
    color: var(--color-error-500);
    font-size: 0.75rem;
}

.verification-card__resend {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 8px;
}

.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-gray-900);
    box-shadow: 0 0 0 1000px var(--color-gray-50) inset !important;
    transition: background-color 9999s ease-out;
}

@media (max-width: 600px) {
    .login-page {
        min-height: calc(100dvh - 32px);
        padding: 8px 0;
    }

    .auth-layout-container {
        padding-block: 16px;
    }

    .login-card {
        padding: 24px 20px;
        border-radius: var(--radius-lg) !important;
    }

    .login-logo {
        width: min(100%, 120px);
        height: 80px;
    }

    .login-card__footer {
        margin-top: 20px;
    }

    .verification-code {
        gap: 6px;
    }

    .unsupported-browser {
        padding: 12px;
    }

    .unsupported-browser__panel {
        padding: 24px 16px;
    }

    .unsupported-browser__details div {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
}

.sample {
    color: white !important;
    background-color: #003659 !important;
    border-radius: 25px 0 0 25px;
    margin-left: 10px !important;
}

.table-header {
    background-color: #90caf9;
}

.table-row:hover {
    border: 1px solid black !important;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 35vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #f5f5dc;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #00005c;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-image {
    text-align: center;
    margin: 15% auto 1% auto;
}

.loading-progress-text {
    position: absolute;
    color: #00005c;
    text-align: center;
    font-weight: bold;
    inset: calc(35vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.linear-progress {
    background: silver;
    width: 20vw;
    margin: 3% auto;
    height: .5rem;
    border-radius: 10rem;
    overflow: hidden;
    position: relative;
}

.linear-progress:after {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffc63b;
    scale: var(--blazor-load-percentage, 0%) 100%;
    transform-origin: left top;
    transition: scale ease-out 0.5s;
}

.selected {
    background-color: #ffc63b !important;
}

.selected > td,
.selected > td .mud-input {
    color: black !important;
}


.legend {
    display: flex;
    flex-direction: column;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    cursor: pointer;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
}

.table {
    overflow: hidden;
}

@media (min-width: 961px) {
    .eighty-percent {
        width: 70%;
        margin: auto;
    }
}

.text-align-center {
    overflow: hidden;
    width: 60%;
    margin: auto;
}

.growth-align-center {
    overflow: hidden;
    width: 70%;
    margin: auto;
}

.active-period-data {
    font-weight: 900 !important;
}

.report-radar-section {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(0, 680px);
    align-items: center;
    gap: 2rem;
    width: 100%;
    min-height: 700px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.report-radar-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 650px;
}

.report-indicator-legend {
    display: flex;
    flex-direction: column;
    align-self: center;
    max-height: 650px;
    padding: 0.75rem;
    overflow-y: auto;
}

.report-table-section {
    position: relative;
    z-index: 1;
    clear: both;
    width: 100%;
    overflow-x: auto;
}

@media (max-width: 960px) {
    .growth-align-center {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .report-radar-section {
        grid-template-columns: 1fr;
        min-height: auto;
        overflow-x: auto;
    }

    .report-radar-chart {
        min-height: 600px;
    }

    .report-responsive-table .mud-table-container {
        overflow-x: auto;
    }

    .report-responsive-table table {
        width: max-content;
        min-width: 720px;
        table-layout: auto;
    }

    .report-responsive-table th,
    .report-responsive-table td {
        min-width: 88px;
        padding: 9px 10px !important;
        white-space: normal;
        overflow-wrap: normal;
    }

    .report-responsive-table th:first-child,
    .report-responsive-table td:first-child {
        min-width: 180px;
    }

    .report-detail-table table {
        min-width: 920px;
    }

    .report-detail-table th:first-child,
    .report-detail-table td:first-child {
        min-width: 260px;
    }

    .report-detail-table th:last-child,
    .report-detail-table td:last-child {
        min-width: 360px;
        text-align: right !important;
        line-height: 1.9;
    }
}

.table tr th,
.table tr td {
    text-align: center !important;
}

.table thead tr {
    background-color: #b2ccff;
    color: #000000
}

.colorful-header {
    background-color: #d3e0fd;
    color: #000000
}

.mud-simple-table.mud-table-bordered .mud-table-container table tbody tr td {
    border-right: 1px solid #e3e8ef !important;
}

.table_header {
    background-color: #fcfcfd;
}

.grid_header {
    background-color: #FCFCFD;
    color: #4b5565;
    
}

.mud-table-toolbar{
    border-bottom: 1px solid #e3e8ef;
}

.app-pager {
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
    padding: 12px 16px;
    border-top: var(--border-subtle);
}

.app-pager__actions {
    display: flex;
    direction: rtl;
    gap: 8px;
}

.app-pager__button {
    min-width: 88px !important;
    height: var(--control-height) !important;
    border-color: var(--color-gray-300) !important;
}

.app-pager__summary {
    color: var(--color-gray-600);
    white-space: nowrap;
}

.app-feedback-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 32px 16px;
    text-align: center;
}

.app-feedback-state__image {
    width: 172px;
    height: 128px;
    margin-bottom: 24px;
    object-fit: contain;
}

.app-feedback-state__spinner {
    margin-bottom: 20px;
}

.app-feedback-state__title {
    margin-bottom: 8px;
    color: var(--color-gray-800);
    font-weight: 700 !important;
}

.app-feedback-state__description {
    max-width: 440px;
    color: var(--color-gray-600);
}

.app-feedback-state__action {
    margin-top: 20px;
}

.app-list-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 520px) 1fr;
    align-items: center;
    width: 100%;
    gap: 12px;
    padding: 12px 16px;
}

.app-list-page-header {
    align-items: center;
    margin-bottom: 16px !important;
}

.app-list-surface {
    margin-inline: 8px;
    padding: 32px 16px;
}

.app-list-toolbar__search,
.app-list-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-list-toolbar__search .mud-input-control {
    flex: 1 1 auto;
    min-width: 0;
}

.app-list-toolbar__search input {
    font-size: 0.875rem;
}

.app-list-toolbar__filter {
    flex: 0 0 auto;
    height: var(--control-height) !important;
    border-color: var(--color-gray-300) !important;
}

.app-list-toolbar__filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-inline-start: 6px;
    padding-inline: 5px;
    border-radius: 10px;
    color: var(--color-white);
    background: var(--color-brand-700);
    font-size: 0.75rem;
}

.app-list-toolbar__actions {
    flex-wrap: wrap;
}

.app-list-toolbar__result-count {
    flex: 0 0 auto;
    color: var(--color-gray-500) !important;
    white-space: nowrap;
}

.app-list-toolbar__filter-anchor {
    position: relative;
    display: inline-flex;
}

.app-filter-popover {
    width: min(480px, calc(100vw - 32px));
    padding: 20px;
    overflow: visible;
    border: var(--border-subtle);
    border-radius: var(--radius-md) !important;
    background: var(--color-white);
    box-shadow: var(--shadow-popover);
}

.app-filter-content {
    width: 100%;
}

.app-filter-dialog__title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.app-filter-dialog__fields {
    padding-top: 8px;
}

.app-filter-dialog__footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
    padding-top: 12px;
    gap: 10px;
    border-top: var(--border-subtle);
}

.app-filter-dialog__clear {
    align-self: center;
    padding-inline: 0 !important;
    color: var(--color-gray-600) !important;
    white-space: nowrap;
}

.app-filter-dialog__footer-actions {
    display: flex;
    width: 100%;
    gap: 10px;
}

.app-filter-dialog__footer-actions > .mud-button-root {
    flex: 1 1 0;
    min-width: 0;
    height: var(--control-height) !important;
}

.app-status-chip {
    border-radius: 999px !important;
    font-weight: 600;
}

.app-report-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.app-row-actions .mud-icon-button {
    color: var(--color-gray-600) !important;
}

.app-row-action--danger {
    color: var(--color-error-500) !important;
}

.app-data-list .mud-table-container {
    max-height: min(68vh, 720px);
    overflow: auto;
}

.app-data-list {
    overflow: hidden;
    border: var(--border-subtle);
    border-radius: var(--radius-md) !important;
    background: var(--color-white) !important;
    box-shadow: var(--shadow-card);
}

.app-data-list .mud-table-toolbar {
    height: auto;
    min-height: 64px;
    overflow: visible;
}

.app-data-list thead th,
.app-data-list .mud-table-head th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--color-gray-25);
}

.form-item-editor__mode {
    margin-bottom: 8px;
    border-radius: var(--radius-md) !important;
}

.form-builder-shell {
    padding-bottom: 88px !important;
}

.form-builder-header {
    gap: 16px;
}

.form-builder-tabs {
    overflow: hidden;
    border-radius: var(--radius-lg) !important;
    background: var(--color-white);
}

.form-builder-tabs .mud-tabs-panels {
    padding: 24px 20px 12px;
}

.form-metadata-grid {
    align-items: flex-start;
}

.form-metadata-option {
    display: flex;
    align-items: stretch;
}

.form-metadata-option__surface {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 4px 12px;
    border: var(--border-subtle);
    border-radius: var(--radius-sm) !important;
    background: var(--color-gray-25) !important;
}

.form-key-panel {
    padding: 16px;
    border: 1px solid var(--color-brand-100);
    border-radius: var(--radius-md) !important;
    background: color-mix(in srgb, var(--color-brand-50) 45%, var(--color-white)) !important;
}

.form-key-panel__header {
    gap: 16px;
}

.form-key-panel__input .mud-input-root {
    background: var(--color-white);
}

.form-builder-action-bar {
    position: sticky;
    z-index: 5;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding: 12px;
    gap: 12px;
    border: var(--border-subtle);
    border-radius: var(--radius-md) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: var(--shadow-card);
}

.form-item-editor {
    align-items: stretch;
}

.form-item-panel {
    height: 100%;
    padding: 16px;
    border: var(--border-subtle);
    border-radius: var(--radius-md) !important;
    background: var(--color-white) !important;
}

.form-item-section-heading {
    margin-top: 8px;
    padding: 16px !important;
    border-top: var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--color-gray-25);
}

.form-item-choice-group {
    display: flex;
    flex-wrap: wrap;
    margin-top: 6px;
    gap: 4px 16px;
}

.form-item-preview {
    padding: 16px;
    border: 1px dashed var(--color-brand-300);
    border-radius: var(--radius-md) !important;
    background: var(--color-white) !important;
}

.form-item-required {
    color: var(--color-error-500);
}

.form-item-preview__control {
    margin-top: 12px;
}

.form-item-preview__chips {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
    gap: 4px;
}

@media (max-width: 600px) {
    .app-list-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .form-item-section-heading,
    .form-item-preview,
    .form-item-panel {
        padding: 12px !important;
    }

    .form-builder-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .form-builder-action-bar {
        bottom: 8px;
        align-items: center;
    }

    .form-builder-action-bar .mud-button-root:last-child {
        flex: 1;
    }

    .form-item-choice-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .app-list-toolbar__search {
        display: grid;
        grid-template-areas:
            "search search"
            "count filter";
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 8px;
    }

    .app-list-toolbar__search .mud-input-control {
        grid-area: search;
        width: 100%;
    }

    .app-list-toolbar__filter {
        grid-area: filter;
        justify-self: end;
        min-width: 96px;
    }

    .app-list-toolbar__result-count {
        grid-area: count;
        align-self: center;
        justify-self: start;
    }

    .app-list-toolbar__actions {
        order: -1;
    }

    .app-list-toolbar__actions .mud-button-root {
        flex: 1 1 auto;
    }

    .app-filter-dialog .mud-dialog-content,
    .app-filter-dialog .mud-dialog-title {
        padding-inline: 20px;
    }

    .app-list-surface {
        margin-inline: 0;
        padding: 0;
    }

    .app-data-list .mud-table-container {
        max-height: none;
        overflow: visible;
    }

    .app-data-list .mud-table-body > .mud-table-row {
        margin: 10px;
        overflow: hidden;
        border: var(--border-subtle);
        border-radius: var(--radius-md);
        background: var(--color-white);
        box-shadow: var(--shadow-card);
    }

    .app-data-list .mud-table-cell {
        min-height: 42px;
        padding-block: 9px !important;
    }

    .app-data-list .app-list-secondary {
        display: none !important;
    }

    .app-pager {
        display: grid;
        direction: ltr;
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
        padding: 12px;
    }

    .app-pager__actions {
        display: contents;
    }

    .app-pager__button {
        min-width: 0 !important;
        padding-inline: 10px !important;
        direction: rtl;
    }

    .app-pager__button:first-child {
        grid-column: 3;
    }

    .app-pager__button:last-child {
        grid-column: 1;
        grid-row: 1;
    }

    .app-pager__summary {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        margin: 0 !important;
        font-size: 0.8rem !important;
    }

    .app-feedback-state {
        min-height: 220px;
        padding: 24px 12px;
    }
}

.pivot-mobile-submenu {
    padding-inline-start: 16px;
}

.pivot-mobile-group > .mud-nav-link {
    font-weight: 600;
}

.pivot-mobile-group .mud-navgroup-collapse .mud-nav-link {
    padding-inline-start: 32px;
    font-weight: 400;
}

.pivot-active-group > .mud-nav-link {
    color: #003659 !important;
    background-color: #e8f4f4 !important;
    border-radius: 12px !important;
    margin: 4px 0 !important;
}

.pivot-active-group > .mud-nav-link .mud-nav-link-icon {
    color: #087f7f !important;
}

.drawer-brand {
    flex: 0 0 auto;
    padding: 16px;
    background-color: #f8fafc !important;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.custom-drawer,
.custom-drawer .mud-drawer-content,
.drawer-content {
    height: 100%;
    min-height: 0;
}

.drawer-content {
    display: flex;
    flex-direction: column;
}

.flex-spacer {
    flex: 1 1 auto;
    min-height: 16px;
}

.drawer-brand-image {
    display: block;
    width: min(100%, 150px);
    height: auto;
    object-fit: contain;
}

.drawer-version {
    color: #98a2b3;
    direction: rtl;
}

.drawer-mobile-header {
    display: none;
}

.secondary-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 56px;
    min-height: 56px;
    padding: 8px 12px 8px 16px;
    border-bottom: 1px solid #e7edf3;
    color: #344054;
    font-weight: 700;
}

.pivot-company-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 16px;
    border: var(--border-subtle);
    border-radius: var(--radius-md) !important;
    background: var(--color-white) !important;
    box-shadow: var(--shadow-card) !important;
}

.pivot-company-summary__content {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 24px;
}

.pivot-company-summary__identity {
    min-width: min(280px, 38vw);
}

.pivot-company-summary__name {
    overflow: hidden;
    color: var(--color-gray-900) !important;
    font-weight: 800 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pivot-company-summary__meta {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    color: var(--color-gray-600);
}

.pivot-company-summary__meta-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.pivot-company-summary__meta-item > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.pivot-company-summary__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.pivot-company-expansion {
    display: none;
}

.pivot-company-expansion__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    gap: 8px;
}

.pivot-company-expansion__identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pivot-company-expansion__details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: var(--color-gray-600);
}

.pivot-context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    margin-top: 16px;
    padding: 8px 12px;
    gap: 16px;
    border-radius: var(--radius-sm);
    background: var(--color-white);
}

.pivot-company-website-button,
.pivot-company-website-button .mud-button-label {
    white-space: nowrap;
}

.pivot-company-website-button--mobile {
    display: none !important;
}

.pivot-context-path {
    display: flex;
    align-items: center;
    min-width: 0 !important;
    gap: 4px;
}

.pivot-context-path__pivot {
    flex: 0 1 auto;
    overflow: hidden;
    color: var(--color-gray-500) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pivot-context-path__separator {
    flex: 0 0 auto;
    color: var(--color-gray-400) !important;
}

.pivot-context-path__form {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--color-gray-800) !important;
    font-weight: 700 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pivot-form-menu {
    flex: 0 0 auto;
}

.pivot-context-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

.pivot-reference-button {
    height: 36px !important;
    white-space: nowrap;
}

.pivot-reference-button__count {
    margin-inline-start: 6px !important;
}

.pivot-form-menu .mud-button-root {
    min-width: 108px !important;
    height: 36px !important;
    border-color: var(--color-gray-300) !important;
    color: var(--color-gray-700) !important;
}

.pivot-form-menu__item--active {
    color: var(--color-brand-800) !important;
    background-color: var(--color-brand-50) !important;
}

.pivot-form-surface {
    padding: 24px;
}

.pivot-reference-drawer,
.pivot-reference-drawer .mud-drawer-content,
.pivot-reference-drawer__container {
    height: 100%;
    min-height: 0;
}

.pivot-reference-drawer__container {
    display: flex;
    flex-direction: column;
    background: var(--color-gray-25);
}

.pivot-reference-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 14px 16px;
    gap: 12px;
    border-bottom: var(--border-subtle);
    background: var(--color-white);
}

.pivot-reference-drawer__title {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.pivot-reference-drawer__title .mud-typography {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pivot-reference-drawer__close {
    flex: 0 0 auto;
}

.pivot-reference-drawer__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    flex: 1 1 auto;
    min-height: 0;
}

.pivot-reference-drawer__list {
    display: flex;
    flex-direction: row;
    min-height: 0;
    padding: 12px;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--color-white);
}

.pivot-reference-drawer__list-item {
    flex: 0 0 auto;
    width: auto !important;
    max-width: 240px;
    justify-content: flex-start !important;
    min-height: 40px !important;
    padding-inline: 10px !important;
    text-align: right;
}

.pivot-reference-drawer__list-item .mud-button-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pivot-reference-drawer__divider {
    width: 100% !important;
    height: 1px !important;
}

.pivot-reference-drawer__content {
    min-width: 0;
    min-height: 0;
    padding: 16px;
    overflow: auto;
}

.pivot-reference-drawer__form-title {
    margin-bottom: 12px !important;
    color: var(--color-gray-900);
    font-weight: 700 !important;
}

.app-navbar {
    height: 72px;
    min-height: 72px;
    padding-inline: 20px !important;
    border-bottom: 1px solid #e7edf3;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #344054 !important;
    backdrop-filter: blur(12px);
}

.app-navbar-menu {
    position: absolute !important;
    top: 15px;
    right: -5px;
    left: auto;
    width: 42px;
    height: 42px;
    margin: 0 0 0 12px !important;
    border: 1px solid #dce5ec;
    border-radius: 12px !important;
    color: #087f7f !important;
    background-color: #f7fbfb;
}

.app-navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-right: 62px;
}

.app-navbar-logo {
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.app-navbar-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.app-navbar-title {
    color: #344054;
    font-weight: 700 !important;
    white-space: nowrap;
}

.app-navbar-version {
    color: #98a2b3;
    direction: rtl;
}

.app-account-menu .mud-button-root {
    min-width: 0 !important;
    max-width: min(240px, 38vw);
    border-radius: var(--radius-sm) !important;
    color: var(--color-gray-700) !important;
}

.app-account-menu .mud-button-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-account-menu .mud-button-icon-start,
.app-account-menu .mud-button-icon-end {
    flex: 0 0 auto;
}

.app-main-nav {
    flex: 0 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.app-main-nav .mud-nav-link {
    min-height: 44px;
    margin-block: 2px;
    border-radius: var(--radius-sm) !important;
}

.app-main-nav .mud-nav-link-text {
    min-width: 0;
    overflow: hidden;
    font-size: 0.875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-main-nav .mud-nav-link.active,
.app-main-nav .mud-nav-link.mud-nav-link-active,
.app-main-nav .sample {
    color: var(--color-brand-800) !important;
    background: var(--color-brand-50) !important;
    font-weight: 600;
}

.app-main-nav .mud-navgroup-collapse .mud-nav-link {
    padding-inline-start: 32px;
}

.app-page-shell {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding: 16px 20px 24px;
}

.app-page-content {
    min-width: 0;
    overflow: clip;
    background: var(--color-gray-25) !important;
}

.app-breadcrumbs {
    display: flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 24px;
    padding: 6px 10px;
    gap: 4px;
    color: var(--color-gray-500);
    background: transparent;
    white-space: nowrap;
}

.app-breadcrumbs__current {
    max-width: min(50vw, 480px);
    margin: 0;
    overflow: hidden;
    color: var(--color-gray-700) !important;
    font-size: 0.875rem;
    font-weight: 600 !important;
    line-height: 1.5;
    text-overflow: ellipsis;
}

@media (max-width: 1200px) {
    .pivot-form-surface {
        padding: 12px;
    }
}

@media (max-width: 960px) {
    .selected > td,
    .selected > td .mud-input,
    .selected > th,
    .selected > th .mud-input {
        background-color: #ffc63b !important;
    }

    .app-navbar {
        height: 64px;
        min-height: 64px;
        padding-inline-start: 0 !important;
        padding-inline-end: 12px !important;
    }

    .app-navbar-title {
        font-size: 0.95rem !important;
    }

    .app-navbar-version {
        display: none;
    }

    .app-navbar-copy {
        display: none !important;
    }

    .app-account-menu .mud-button-label {
        display: none;
    }

    .app-account-menu .mud-button-root {
        min-width: 40px !important;
        width: 40px;
        height: 40px;
        padding: 0 !important;
    }

    .app-account-menu .mud-button-icon-end {
        display: none;
    }

    .main-navigation-drawer {
        width: min(82vw, 320px) !important;
        max-width: calc(100vw - 56px);
    }

    .main-navigation-drawer .sample {
        border-radius: 12px !important;
        margin: 4px 0 !important;
        width: 100%;
        box-sizing: border-box;
    }

    .main-navigation-drawer .pivot-active-group > .mud-nav-link {
        font-weight: 600;
        width: 100%;
        box-sizing: border-box;
    }

    .main-navigation-drawer .pivot-active-group .sample {
        background-color: #003659 !important;
        color: #fff !important;
    }

    .drawer-brand {
        padding: 12px;
    }

    .drawer-brand-image {
        width: min(100%, 120px);
    }

    .drawer-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 64px;
        min-height: 64px;
        padding: 8px 12px;
        border-bottom: 1px solid #e7edf3;
    }

    .drawer-mobile-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #344054;
        font-weight: 700;
    }

    .drawer-mobile-logo {
        display: block;
        width: 36px;
        height: 36px;
        object-fit: contain;
    }

    .drawer-close-button {
        color: #667085 !important;
        border-radius: 10px !important;
        background-color: #f2f4f7;
    }

    .app-navbar-menu {
        top: 12px;
        right: -4px;
        width: 40px;
        height: 40px;
        margin-left: 4px !important;
    }

    .app-navbar-brand {
        margin-right: 32px;
    }

    .app-navbar-logo {
        width: 40px;
        height: 40px;
    }

    .pivot-context-bar {
        min-height: 44px;
        margin-top: 12px;
        padding: 8px;
        gap: 8px;
    }

    .form-builder-tabs .mud-tabs-panels {
        padding: 16px 12px 8px;
    }

    .form-key-panel__header {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .form-key-panel__header .mud-button-root {
        align-self: flex-start;
    }

    .pivot-company-summary--desktop {
        display: none;
    }

    .pivot-company-expansion {
        display: block;
    }

    .pivot-company-expansion .mud-expand-panel {
        overflow: hidden;
        border: var(--border-subtle);
        border-radius: var(--radius-md) !important;
        background: var(--color-white) !important;
        box-shadow: var(--shadow-card) !important;
    }

    .pivot-company-expansion .mud-expand-panel-header {
        min-height: 54px !important;
        padding: 8px 10px !important;
    }

    .pivot-company-expansion .mud-expand-panel-content {
        padding: 0 10px 10px !important;
    }

    .pivot-company-expansion__identity .mud-typography-caption {
        display: none;
    }

    .pivot-company-summary__name {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .pivot-company-summary__meta-item {
        max-width: 100%;
        color: var(--color-gray-500);
        font-size: 0.75rem;
    }

    .pivot-company-summary__meta-item .mud-icon-root {
        width: 16px;
        height: 16px;
        font-size: 16px;
    }

    .pivot-company-summary__actions {
        padding-top: 2px;
    }

    .pivot-company-website-button--desktop {
        display: none !important;
    }

    .pivot-company-website-button--mobile {
        display: inline-flex !important;
        min-width: 96px !important;
        height: 40px !important;
        padding-inline: 10px !important;
    }

    .pivot-context-actions {
        gap: 6px;
    }

    .pivot-context-path__pivot,
    .pivot-context-path__form {
        max-width: 34vw;
        font-size: 0.8rem !important;
    }

    .pivot-reference-button {
        min-width: 0 !important;
        padding-inline: 10px !important;
    }

    .pivot-form-menu .mud-button-root {
        min-width: 96px !important;
        padding-inline: 10px !important;
    }

    .pivot-form-surface {
        padding: 8px;
    }

    .pivot-reference-drawer__body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto minmax(0, 1fr);
    }

    .pivot-reference-drawer__list {
        flex-direction: row;
        padding: 10px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .pivot-reference-drawer__list-item {
        flex: 0 0 auto;
        width: auto !important;
        max-width: 220px;
    }

    .pivot-reference-drawer__divider {
        width: 100% !important;
        height: 1px !important;
    }

    .pivot-reference-drawer__content {
        padding: 12px;
    }

    .app-page-shell {
        padding: 10px 8px 20px;
    }

    .app-breadcrumbs {
        margin-bottom: 20px;
        padding: 8px;
        overflow: hidden;
    }

    .app-page-content {
        border-radius: var(--radius-md) !important;
    }
}

@media (max-width: 360px) {
    .app-breadcrumbs > a {
        max-width: 34%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-breadcrumbs__current {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }

    .pivot-context-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .pivot-context-path {
        width: 100%;
    }

    .pivot-context-path__pivot,
    .pivot-context-path__form {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .pivot-form-menu {
        justify-self: end;
    }

    .pivot-context-actions {
        justify-content: space-between;
        width: 100%;
    }

}
.company-dashboard,
.management-dashboard,
.dashboard-section { margin-inline: auto; padding: 24px; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.arbitrator-calendar .mud-calendar-cell {
    vertical-align: top;
}

.arbitrator-calendar .mud-calendar-month-cell {
    overflow-y: auto;
}

.arbitrator-calendar .mud-cal-cell-template {
    box-sizing: border-box;
    padding: 2px 6px;
}

.arbitrator-calendar .mud-cal-month-view .mud-cal-cell-template {
    min-height: 24px;
    padding: 1px 4px;
}

.arbitrator-calendar-event {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 30px;
    height: auto !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    overflow: hidden;
    border: 0;
    border-radius: 7px;
    color: #fff !important;
    background: #667385 !important;
    box-shadow: 0 1px 2px rgba(18, 25, 38, .14);
    cursor: pointer;
    font: inherit;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.55;
    text-align: right;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mud-cal-cell-template .arbitrator-calendar-event,
.mud-cal-drop-item .arbitrator-calendar-event {
    color: #fff !important;
    background-color: #667385 !important;
}

.arbitrator-calendar .mud-cal-month-view .arbitrator-calendar-event {
    min-height: 22px;
    height: 22px !important;
    padding: 1px 6px !important;
    border-radius: 5px;
    font-size: .72rem;
    line-height: 20px;
    box-shadow: none;
}

.arbitrator-calendar-event:hover {
    background: #566273 !important;
    box-shadow: 0 2px 6px rgba(18, 25, 38, .18);
}
.dashboard-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.dashboard-metric { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--app-border-color); border-radius: 12px; }
.dashboard-next-action,
.dashboard-report { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--app-border-color); border-radius: 12px; background: var(--mud-palette-background-grey); }
.dashboard-next-action__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; color: var(--mud-palette-primary); background: var(--mud-palette-primary-hover); border-radius: 12px; }
.dashboard-next-action__content { flex: 1; min-width: 0; }
.dashboard-report { justify-content: space-between; margin-top: 16px; background: var(--mud-palette-surface); }
.management-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.management-quick-actions .mud-button-root { min-height: 72px; justify-content: flex-start; }

@media (max-width: 600px) {
    .company-dashboard,
    .management-dashboard,
    .dashboard-section { padding: 16px 12px; }
    .dashboard-header { align-items: flex-start; margin-bottom: 18px; }
    .dashboard-summary,
    .management-quick-actions { grid-template-columns: 1fr; gap: 12px; }
    .dashboard-next-action,
    .dashboard-report { align-items: stretch; flex-direction: column; padding: 16px; }
    .dashboard-next-action__icon { display: none; }
    .dashboard-next-action .mud-button-root,
    .dashboard-report .mud-button-root { width: 100%; }
}
.dynamic-report-trl-matrix {
    overflow-x: auto;
}

.dynamic-report-trl-matrix table {
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
}

.dynamic-report-trl-matrix th,
.dynamic-report-trl-matrix td {
    padding: 0.8rem 1rem !important;
    text-align: center !important;
    vertical-align: middle;
}

.dynamic-report-trl-matrix .trl-product-column,
.dynamic-report-trl-matrix .trl-product-name {
    position: sticky;
    right: 0;
    z-index: 2;
    min-width: 240px;
    max-width: 360px;
    background: var(--mud-palette-surface);
    text-align: right !important;
}

.dynamic-report-trl-matrix .trl-product-column {
    z-index: 3;
}

.dynamic-report-trl-matrix .trl-period-column {
    min-width: 145px;
    white-space: nowrap;
}

.dynamic-report-trl-matrix .trl-value-cell {
    min-width: 145px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    transition: filter 120ms ease-in-out;
}

.dynamic-report-trl-matrix .trl-value-cell:hover {
    filter: brightness(0.95);
}
