:root {
    --app-bg: #f4f7fb;
    --app-surface: #ffffff;
    --app-border: #dbe3ef;
    --app-text: #152033;
    --app-radius: 7px;
    --app-space-xs: 4px;
    --app-space-sm: 8px;
    --app-space-md: 12px;
    --app-space-lg: 16px;
    --taps-navy: #002d72;
    --taps-blue: #005bd8;
    --taps-blue-dark: #001f54;
    --taps-orange: #f97316;
    --taps-purple: #6d3fd8;
    --taps-green: #16a34a;
    --taps-red: #ef4444;
    --taps-cyan: #0ea5b7;
}

html,
body {
    background: var(--app-bg);
    font-size: 14px;
}

h1:focus,
.mud-typography-h3:focus,
.mud-typography-h4:focus,
.mud-typography-h5:focus {
    outline: none;
}

@keyframes taps-enter {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes taps-soft-enter {
    from {
        opacity: 0;
        transform: translateX(-10px) scale(.992);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.app-content > *,
.public-report-page > *,
.login-shell > *,
.modern-login-shell > *,
.page-heading,
.dashboard-hero,
.mud-card,
.mud-paper,
.mud-alert,
.mud-table,
.mud-tabs,
.mud-expansion-panels,
.stat-tile,
.dashboard-action,
.issue-list-card,
.location-table-shell,
.settings-panel,
.report-card {
    animation: taps-enter .56s cubic-bezier(.16, .84, .22, 1) both;
}

.mud-dialog,
.mud-popover,
.mud-menu,
.mud-snackbar,
.mud-picker,
.mud-drawer {
    animation: taps-soft-enter .38s cubic-bezier(.16, .84, .22, 1) both;
}

.mud-table,
.mud-tabs,
.mud-expansion-panels {
    animation-duration: .48s;
}

.app-content > *:nth-child(2),
.dashboard-stats .stat-tile:nth-child(2),
.dashboard-action:nth-child(2) {
    animation-delay: .035s;
}

.app-content > *:nth-child(3),
.dashboard-stats .stat-tile:nth-child(3),
.dashboard-action:nth-child(3) {
    animation-delay: .07s;
}

.app-content > *:nth-child(4),
.dashboard-stats .stat-tile:nth-child(4),
.dashboard-action:nth-child(4) {
    animation-delay: .105s;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

.mud-typography-body1,
.mud-typography-body2,
.mud-input,
.mud-button-root,
.mud-table,
.mud-list,
.mud-navmenu {
    font-size: .9rem;
}

.mud-typography-h3 {
    font-size: 1.9rem;
}

.mud-typography-h4 {
    font-size: 1.55rem;
}

.mud-typography-h5 {
    font-size: 1.2rem;
}

.mud-typography-h6 {
    font-size: 1rem;
}

.mud-typography-caption {
    font-size: .72rem;
}

.mud-button-root {
    border-radius: var(--app-radius);
    font-weight: 600;
    min-height: 34px;
    padding: 5px 12px;
}

.mud-button-root.mud-button-size-small {
    min-height: 30px;
    padding: 4px 10px;
}

.mud-input-control {
    margin-top: 8px;
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: .78rem;
}

.mud-input-slot,
.mud-select-input {
    font-size: .9rem !important;
}

.mud-input-control .mud-input.mud-input-outlined {
    min-height: 38px;
}

.mud-select {
    min-height: 36px;
}

.mud-select .mud-input-slot {
    min-height: 20px;
}

.mud-select .mud-input-adornment {
    margin-inline-start: 4px;
}

.mud-select .mud-input-adornment .mud-icon-root {
    font-size: 1.1rem;
}

.mud-input.mud-input-outlined .mud-input-outlined-border {
    border-radius: var(--app-radius);
}

.mud-input-control .mud-input > input.mud-input-root,
.mud-input-control .mud-input > textarea.mud-input-root {
    padding-bottom: 7px;
    padding-top: 9px;
}

.mud-input-control .mud-input-label-outlined {
    transform: translate(14px, 10px) scale(1);
}

.mud-input-control .mud-input-label-outlined.mud-shrink,
.mud-input-control .mud-input-label-outlined.mud-input-label-shrink {
    background: var(--app-surface);
    padding-left: 4px;
    padding-right: 4px;
    transform: translate(10px, -6px) scale(.75);
}

.mud-input-adornment-start {
    margin-inline-end: 6px;
}

.mud-chip {
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    height: 24px;
}

.mud-table-cell {
    padding: 8px 10px;
}

.mud-table-head .mud-table-cell {
    font-size: .72rem;
    font-weight: 700;
}

.mud-paper {
    border-radius: var(--app-radius);
}

.app-bar {
    background: linear-gradient(90deg, var(--taps-blue-dark), var(--taps-navy));
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    min-height: 48px;
}

.layout-menu-button {
    margin-right: 4px;
}

.layout-page-title {
    color: #ffffff;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-brand {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
}

.app-brand strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1;
}

.app-brand small {
    color: rgba(255, 255, 255, .78);
    display: block;
    font-size: .68rem;
    line-height: 1.15;
    margin-top: 2px;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taps-mark {
    align-items: center;
    aspect-ratio: .82 / 1;
    background: linear-gradient(180deg, #0b62d8, #00347f);
    border: 2px solid #ffffff;
    border-radius: 12px 12px 18px 18px;
    box-shadow: 0 10px 24px rgba(0, 45, 114, .22);
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 900;
    justify-content: center;
    letter-spacing: .02em;
    position: relative;
    text-align: center;
    width: 54px;
}

.taps-mark::after {
    border-bottom: 4px solid #ffffff;
    border-right: 4px solid #ffffff;
    bottom: 13%;
    content: "";
    height: 26%;
    left: 50%;
    position: absolute;
    transform: translateX(-50%) rotate(45deg);
    width: 14%;
}

.taps-mark.small {
    border-radius: 8px 8px 12px 12px;
    font-size: .45rem;
    width: 30px;
}

.taps-mark.public,
.taps-mark.login {
    width: 78px;
}

.taps-mark.hero {
    font-size: .9rem;
    width: 118px;
}

.taps-logo {
    display: block;
    flex: 0 0 auto;
    height: auto;
    object-fit: contain;
}

.sidebar-logo {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .18));
    width: 34px;
}

.hero-logo {
    filter: drop-shadow(0 12px 22px rgba(0, 45, 114, .2));
    width: 108px;
}

.layout-user-block {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    gap: 7px;
    margin-right: 4px;
    min-width: 0;
}

.layout-user-block span {
    display: grid;
    line-height: 1.1;
    min-width: 0;
}

.layout-user-block strong {
    font-size: .78rem;
    font-weight: 600;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.layout-user-block small {
    color: rgba(255, 255, 255, .78);
    font-size: .64rem;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-content {
    padding-bottom: 18px;
    padding-top: 14px;
}

.taps-sidebar {
    background: linear-gradient(180deg, #00215c 0%, #003579 48%, #00215c 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, .12);
    color: #ffffff;
}

.taps-sidebar .mud-drawer-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.sidebar-brand {
    align-items: center;
    display: flex;
    gap: 8px;
    min-height: 58px;
    padding: 10px 12px 8px;
}

.sidebar-brand > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.sidebar-brand strong {
    color: #ffffff;
    font-size: 1.34rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: .9;
}

.sidebar-brand span:not(.taps-mark) {
    color: rgba(255, 255, 255, .82);
    font-size: .61rem;
    line-height: 1.25;
}

.taps-mark.sidebar {
    border-radius: 10px 10px 15px 15px;
    font-size: .5rem;
    width: 30px;
}

.sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 8px 8px;
}

.sidebar-nav .mud-nav-link {
    border-radius: var(--app-radius);
    color: rgba(255, 255, 255, .9) !important;
    font-size: .8rem;
    font-weight: 600;
    margin: 1px 0;
    min-height: 32px;
    padding-left: 8px;
}

.sidebar-nav .mud-nav-link .mud-nav-link-icon {
    color: rgba(255, 255, 255, .9) !important;
    font-size: 1.12rem;
    margin-inline-end: 10px;
}

.sidebar-nav .mud-nav-link:hover {
    background: rgba(255, 255, 255, .1);
}

.sidebar-nav .mud-nav-link.active,
.sidebar-nav .mud-nav-link.mud-nav-link-active {
    background: #0b62d8;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
    color: #ffffff !important;
}

.sidebar-section-title {
    color: #53b7ff;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin: 11px 8px 4px;
    text-transform: uppercase;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, .16);
    display: grid;
    gap: 3px;
    margin: 0 10px;
    padding: 8px 6px 10px;
}

.sidebar-footer span {
    color: #ffffff;
    font-size: .76rem;
    font-weight: 700;
}

.sidebar-footer small {
    color: rgba(255, 255, 255, .72);
    font-size: .66rem;
}

.page-heading {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.page-heading-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.home-hero {
    align-items: center;
    background: radial-gradient(circle at 12% 18%, rgba(0, 91, 216, .08), transparent 34%), #ffffff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-bottom: 14px;
    padding: 16px;
}

.home-hero .mud-typography-h3 {
    color: #061b49;
    font-weight: 800;
    line-height: 1.12;
}

.home-hero .mud-typography-body1 {
    color: #56657a;
    max-width: 760px;
}

.home-command-hero {
    align-items: center;
    background: radial-gradient(circle at 10% 15%, rgba(0, 91, 216, .09), transparent 34%), #ffffff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 12px;
    padding: 16px;
}

.home-command-copy {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.home-command-copy .mud-typography-h3 {
    color: #061b49;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
}

.home-command-copy .mud-typography-body1 {
    color: #56657a;
    max-width: 780px;
}

.home-command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.home-snapshot-grid {
    margin-bottom: 4px;
}

.home-snapshot-card {
    display: grid;
    gap: 5px;
    min-height: 112px;
}

.home-work-panel,
.home-action-panel,
.home-focus-panel {
    min-height: 100%;
}

.home-panel-header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}

.home-master-links {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 8px;
}

.home-focus-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.home-focus-row {
    display: grid;
    gap: 5px;
}

.home-focus-label {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.home-focus-label span {
    color: #334155;
    font-size: .84rem;
    overflow-wrap: anywhere;
}

.home-focus-label strong {
    color: #061b49;
    font-size: .86rem;
}

.home-focus-track {
    background: #edf2f7;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.home-focus-track span {
    background: #1665d8;
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 8px;
}

.home-empty-text {
    color: #64748b;
    font-size: .84rem;
    margin: 10px 0 0;
}

.brand-subtitle {
    color: var(--taps-blue);
    font-weight: 800;
}

.brand-tagline {
    color: #061b49;
    font-weight: 800;
    margin-top: 4px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.home-section {
    margin-top: 16px;
}

.home-section-heading {
    margin-bottom: 8px;
}

.home-section-heading .mud-typography-h5 {
    font-weight: 700;
}

.home-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    display: flex;
    flex-direction: column;
    gap: 9px;
    height: 100%;
    min-height: 188px;
    padding: 12px;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.home-card:hover {
    border-color: #9db6d5;
    box-shadow: 0 12px 30px rgba(21, 32, 51, .08);
    transform: translateY(-2px);
}

.home-card-primary {
    background: #eef6ff;
    border-color: #b9d6f5;
}

.home-card.compact {
    min-height: 164px;
}

.home-card .mud-button-root {
    margin-top: auto;
}

.home-card-icon {
    align-items: center;
    background: #e8f1fb;
    border: 1px solid #c9dcec;
    border-radius: var(--app-radius);
    color: var(--taps-navy);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.home-card-primary .home-card-icon {
    background: #ffffff;
}

.home-card .mud-typography-h6 {
    font-weight: 700;
}

.home-card .mud-typography-body2 {
    color: #5d6b7e;
}

.admin-panel,
.location-card,
.module-link,
.stat-tile {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
}

.dashboard-hero {
    align-items: center;
    background: radial-gradient(circle at 10% 15%, rgba(0, 91, 216, .1), transparent 34%), #ffffff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-bottom: 14px;
    padding: 16px;
}

.dashboard-hero .mud-typography-h4 {
    color: #061b49;
    font-weight: 800;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.dashboard-stats .stat-tile {
    min-height: 108px;
}

.taps-stat {
    display: grid;
    gap: 5px;
    position: relative;
}

.taps-stat .mud-typography-caption {
    font-weight: 700;
    text-transform: uppercase;
}

.taps-stat .mud-typography-h4 {
    color: #061b49;
}

.stat-icon {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.stat-open .stat-icon {
    background: #e8f1ff;
    color: var(--taps-blue);
}

.stat-progress .stat-icon {
    background: #fff1e7;
    color: var(--taps-orange);
}

.stat-pending .stat-icon {
    background: #f1ebff;
    color: var(--taps-purple);
}

.stat-resolved .stat-icon {
    background: #e8f8ef;
    color: var(--taps-green);
}

.stat-overdue .stat-icon {
    background: #feecec;
    color: var(--taps-red);
}

.stat-response .stat-icon {
    background: #e7f8fb;
    color: var(--taps-cyan);
}

.quick-action-panel {
    min-height: 100%;
}

.dashboard-action-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 14px;
}

.dashboard-action {
    align-items: center;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    color: #061b49;
    display: grid;
    gap: 8px;
    justify-items: center;
    min-height: 102px;
    padding: 12px 8px;
    text-align: center;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.dashboard-action:hover {
    border-color: #9db6d5;
    box-shadow: 0 12px 24px rgba(21, 32, 51, .07);
    transform: translateY(-1px);
}

.dashboard-action .mud-icon-root {
    color: var(--taps-blue);
    font-size: 2rem;
}

.dashboard-action span {
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
}

.panel-title-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.recent-abnormality-list {
    display: grid;
    gap: 0;
    margin-top: 12px;
}

.recent-abnormality-row {
    align-items: center;
    border-bottom: 1px solid var(--app-border);
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    padding: 12px 0;
    text-decoration: none;
}

.recent-abnormality-row:last-child {
    border-bottom: 0;
}

.recent-abnormality-row strong,
.recent-abnormality-row span,
.recent-abnormality-row small {
    display: block;
    overflow-wrap: anywhere;
}

.recent-abnormality-row strong {
    color: #061b49;
}

.recent-abnormality-row small,
.recent-abnormality-row time {
    color: #64748b;
    font-size: .78rem;
}

.status-dot {
    border-radius: 999px;
    display: inline-block;
    height: 10px;
    width: 10px;
}

.status-open {
    background: var(--taps-blue);
}

.status-progress {
    background: var(--taps-orange);
}

.status-pending {
    background: var(--taps-purple);
}

.status-resolved {
    background: var(--taps-green);
}

.status-overdue {
    background: var(--taps-red);
}

.status-panel {
    min-height: 100%;
}

.status-donut-wrap {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: 18px;
}

.status-donut {
    align-items: center;
    border-radius: 50%;
    display: grid;
    height: 170px;
    justify-items: center;
    place-content: center;
    position: relative;
    width: 170px;
}

.status-donut::after {
    background: #ffffff;
    border-radius: 50%;
    content: "";
    inset: 38px;
    position: absolute;
}

.status-donut strong,
.status-donut span {
    color: #061b49;
    position: relative;
    z-index: 1;
}

.status-donut strong {
    font-size: 2rem;
    line-height: 1;
}

.status-donut span {
    font-size: .82rem;
}

.status-legend {
    display: grid;
    gap: 10px;
}

.status-legend div {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.status-legend strong {
    color: #061b49;
}

.admin-panel {
    padding: 18px;
}

.qr-fallback-code {
    background: #f8fbff;
    border: 1px dashed #b8c8da;
    border-radius: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    word-break: break-word;
}

.qr-fallback-code .mud-typography-body2 {
    color: #123b63;
    line-height: 1.35;
}

.issue-upload-dropzone {
    align-items: center;
    background: #f8fbff;
    border: 1px dashed #9db6d5;
    border-radius: 8px;
    color: #123b63;
    cursor: pointer;
    display: grid;
    gap: 6px;
    justify-items: center;
    margin-top: 10px;
    padding: 18px;
    text-align: center;
}

.issue-upload-dropzone input[type="file"] {
    display: none;
}

.issue-upload-dropzone span {
    color: #152033;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.issue-upload-dropzone small {
    color: #64748b;
}

.excel-import-dropzone {
    align-items: center;
    background: #f8fbff;
    border: 1px dashed #9db6d5;
    border-radius: 8px;
    color: #123b63;
    cursor: pointer;
    display: grid;
    gap: 6px;
    justify-items: center;
    margin-top: 14px;
    padding: 16px;
    text-align: center;
}

.excel-import-dropzone input[type="file"] {
    display: none;
}

.excel-import-dropzone span {
    color: #152033;
    font-weight: 700;
}

.excel-import-dropzone small {
    color: #64748b;
}

.qr-template-preview {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: block;
    margin-top: 14px;
    max-height: 220px;
    object-fit: contain;
    width: 100%;
}

.qr-template-preview.large {
    max-height: 520px;
}

.template-preview-header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.qr-template-live-preview {
    align-items: center;
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    margin-top: 14px;
    max-height: 620px;
    overflow: auto;
    padding: 14px;
}

.qr-template-preview-canvas {
    border: 1px solid #d8e3f0;
    box-shadow: 0 16px 34px rgba(21, 32, 51, .12);
    display: block;
    height: auto;
    max-width: 100%;
}

.issue-image-link {
    display: block;
    margin-top: 10px;
}

.issue-detail-image {
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: block;
    max-height: 420px;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.issue-thumbnail-link {
    display: inline-flex;
}

.issue-thumbnail {
    border: 1px solid var(--app-border);
    border-radius: 6px;
    height: 54px;
    object-fit: cover;
    width: 72px;
}

.location-search-panel {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.location-table-panel {
    overflow: hidden;
}

.compact-location-table .mud-table-cell {
    vertical-align: middle;
}

.location-table-name {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.location-table-name strong {
    color: #061b49;
    font-size: .9rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.location-table-name small {
    color: #64748b;
    font-size: .74rem;
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-code {
    color: #123b63;
    font-size: .88rem;
    letter-spacing: .04em;
}

.location-table-actions {
    align-items: center;
    display: inline-flex;
    gap: 4px;
    justify-content: flex-end;
}

.location-details-backdrop {
    align-items: center;
    background: rgba(15, 23, 42, .62);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 16px;
    position: fixed;
    z-index: 1400;
}

.location-details-modal {
    background: #ffffff;
    border-radius: var(--app-radius);
    display: grid;
    gap: 12px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 14px;
    width: min(720px, 100%);
}

.location-details-header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.location-details-content {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: 220px minmax(0, 1fr);
}

.location-details-qr {
    margin: 0;
}

.location-details-meta {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.location-details-actions {
    align-items: center;
    border-top: 1px solid var(--app-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
}

.location-details-actions .mud-button-root {
    flex: 1 1 130px;
}

.settings-panel {
    display: grid;
    gap: 10px;
}

.settings-panel-header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.settings-status-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
}

.settings-status-grid div {
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 8px;
}

.settings-status-grid span,
.settings-note-list span {
    color: #64748b;
    font-size: .78rem;
}

.settings-status-grid strong {
    color: #061b49;
    font-size: .86rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.settings-error-list {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--app-radius);
    display: grid;
    gap: 4px;
    padding: 8px;
}

.settings-note-list {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.settings-note-list div {
    align-items: flex-start;
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 8px;
}

.settings-department-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.settings-department-row {
    align-items: start;
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
    padding: 8px;
}

.settings-department-row > div:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding-top: 6px;
}

.settings-department-row strong {
    color: #061b49;
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.settings-department-row small {
    color: #64748b;
    font-size: .72rem;
}

.location-pagination {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.table-actions {
    text-align: right;
    white-space: nowrap;
}

.admin-issue-actions {
    min-width: 260px;
}

.admin-issue-actions .mud-input-control {
    margin-top: 6px;
}

.admin-issue-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.admin-issue-button-row .mud-button-root {
    flex: 1 1 92px;
}

.compact-heading {
    margin-bottom: 12px;
}

.admin-case-list {
    display: grid;
    gap: 10px;
}

.admin-case-card {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    padding: 12px;
}

.admin-case-summary {
    align-items: flex-start;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 0;
}

.admin-case-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-case-title {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.admin-case-title strong {
    color: #061b49;
    font-size: .95rem;
    overflow-wrap: anywhere;
}

.admin-case-main > span {
    color: #061b49;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.admin-case-main small {
    color: #64748b;
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.admin-case-main p {
    color: #475569;
    font-size: .82rem;
    margin: 2px 0 0;
}

.admin-case-actions {
    align-content: start;
    display: grid;
    gap: 8px;
}

.admin-case-actions .mud-input-control {
    margin-top: 0;
}

.admin-case-photo {
    justify-self: end;
}

.admin-issue-button-row {
    gap: 6px;
    margin-top: 0;
}

.admin-issue-button-row .mud-button-root {
    flex: 1 1 105px;
    min-height: 34px;
}

@media (max-width: 960px) {
    .admin-case-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-case-actions {
        border-top: 1px solid var(--app-border);
        padding-top: 10px;
    }
}

.issue-filter-grid {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
}

.pic-filter-grid {
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) auto;
}

.filter-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
}

.notification-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.notification-item {
    align-items: center;
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 12px;
    text-decoration: none;
}

.notification-item:hover {
    border-color: #9db6d5;
}

.compact-notification-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-breakdown-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.dashboard-breakdown-row {
    align-items: center;
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 12px;
}

.report-breakdown-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.report-filter-panel {
    margin-bottom: 14px;
}

.report-filter-grid {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, 260px) minmax(180px, 280px) auto;
}

.report-chart-panel {
    min-height: 390px;
}

.report-breakdown-row {
    display: grid;
    gap: 7px;
}

.report-breakdown-label {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.report-breakdown-label span {
    overflow-wrap: anywhere;
}

.report-breakdown-label strong {
    color: #123b63;
}

.report-breakdown-track {
    background: #edf2f7;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.report-breakdown-fill {
    background: #1976d2;
    border-radius: inherit;
    height: 100%;
    min-width: 4px;
}

.ticket-lookup-form {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 18px;
}

.ticket-status-card {
    border-top: 1px solid var(--app-border);
    margin-top: 22px;
    padding-top: 18px;
}

.ticket-status-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.line-clamp {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    overflow: hidden;
}

.pic-selector-panel {
    align-items: center;
    display: flex;
    gap: 12px;
}

.pic-selector-panel .mud-input-control {
    flex: 1 1 auto;
    margin-top: 0;
}

.pic-detail-heading {
    align-items: center;
}

.pic-detail-operator {
    gap: 10px;
    justify-content: space-between;
}

.pic-detail-operator-info {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
}

.pic-detail-operator-info > div {
    min-width: 0;
}

.pic-detail-operator-info strong,
.pic-detail-operator-info .mud-typography-caption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pic-detail-grid {
    align-items: flex-start;
}

.issue-detail-panel {
    min-height: 100%;
}

.detail-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}

.detail-list div {
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 8px;
}

.detail-list span {
    color: #627084;
    display: block;
    font-size: .75rem;
}

.detail-list strong {
    display: block;
    font-size: .86rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.issue-description {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    margin-top: 8px;
    padding: 10px;
    white-space: pre-wrap;
}

.pic-action-panel,
.pic-verify-panel,
.pic-timeline-panel,
.pic-detail-card {
    display: grid;
    gap: 8px;
}

.pic-action-buttons {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.pic-action-buttons .mud-button-root {
    justify-content: flex-start;
    min-height: 36px;
    width: 100%;
}

.qr-camera-actions {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}

.qr-camera-picker {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 10px;
}

.qr-camera-frame {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: #0f172a;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    margin-top: 12px;
    max-height: 340px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.qr-camera-modal-backdrop {
    align-items: center;
    background: rgba(15, 23, 42, .62);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 16px;
    position: fixed;
    z-index: 1400;
}

.qr-camera-modal {
    background: #ffffff;
    border-radius: 8px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 14px;
    width: min(760px, 100%);
}

.qr-camera-modal-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.qr-camera-modal-frame {
    margin-top: 0;
    max-height: min(70vh, 560px);
}

.qr-camera-modal-actions {
    margin-top: 12px;
}

.qr-camera-frame.active {
    border-color: #1976d2;
}

.qr-camera-video {
    display: block;
    height: 100%;
    object-fit: cover;
    position: relative;
    width: 100%;
    z-index: 1;
}

.qr-camera-placeholder {
    align-items: center;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    font-size: .85rem;
    gap: 8px;
    inset: 0;
    justify-content: center;
    position: absolute;
    text-align: center;
}

.qr-camera-reticle {
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 8px;
    box-shadow: 0 0 0 999px rgba(15, 23, 42, .22);
    height: min(58%, 220px);
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(58%, 220px);
    z-index: 2;
}

.qr-camera-status {
    background: rgba(15, 23, 42, .72);
    border-radius: 6px;
    bottom: 10px;
    color: #ffffff;
    font-size: .78rem;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 6px 8px;
    position: absolute;
    z-index: 3;
}

.timeline-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.timeline-item {
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-left: 3px solid #1976d2;
    border-radius: var(--app-radius);
    padding: 8px 10px;
}

.timeline-item .mud-typography-subtitle2 {
    font-weight: 700;
}

.location-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: 16px;
}

.location-card-header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.qr-preview {
    align-items: center;
    align-self: center;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    padding: 12px;
    width: min(100%, 240px);
}

.qr-preview svg {
    display: block;
    height: auto;
    max-width: 100%;
}

.qr-url {
    overflow-wrap: anywhere;
}

.module-link {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    padding: 18px;
}

.module-link .mud-button-root {
    margin-top: auto;
}

.stat-tile {
    padding: 16px;
}

.stat-tile .mud-typography-h4 {
    font-weight: 800;
}

.login-shell {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    margin: 0 auto;
    max-width: 460px;
    padding: 22px;
}

.modern-login-shell {
    max-width: 560px;
}

.login-brand {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-logo {
    display: block;
    height: auto;
    max-height: 78px;
    max-width: min(210px, 70vw);
    object-fit: contain;
}

.login-form {
    display: grid;
    gap: 10px;
    padding-top: 12px;
}

.login-role-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.login-role-card {
    align-items: center;
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    color: inherit;
    cursor: pointer;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 68px;
    padding: 10px;
    text-align: left;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.login-role-card:hover {
    border-color: #9db6d5;
}

.login-role-card.selected {
    background: #edf7ff;
    border-color: #1665d8;
    box-shadow: 0 0 0 2px rgba(22, 101, 216, .12);
}

.login-role-card strong,
.login-role-card small {
    display: block;
    overflow-wrap: anywhere;
}

.login-role-card strong {
    color: #061b49;
    font-size: .92rem;
    font-weight: 700;
}

.login-role-card small {
    color: #64748b;
    font-size: .74rem;
    margin-top: 2px;
}

.admin-login-warning {
    align-items: flex-start;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--app-radius);
    color: #9a3412;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 8px;
}

.admin-login-warning span {
    font-size: .8rem;
    line-height: 1.35;
}

.public-layout {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100vh;
    padding: 24px 14px 36px;
}

.public-brand {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 auto;
    max-width: 680px;
    text-align: center;
    width: 100%;
}

.public-logo {
    display: block;
    height: auto;
    max-height: 82px;
    max-width: min(220px, 72vw);
    object-fit: contain;
}

.public-report-shell {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 680px;
    padding: 20px;
    width: 100%;
}

.public-state {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}

.report-location {
    align-items: flex-start;
    background: #eef5fb;
    border: 1px solid #c9dcec;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 14px;
}

.field-block {
    margin-top: 20px;
}

.field-heading-inline {
    align-items: center;
    display: flex;
    gap: 8px;
}

.field-heading-inline > span {
    background: #eef2f7;
    border-radius: 4px;
    color: #64748b;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
    padding: 4px 6px;
}

.field-heading-inline > span.required {
    background: #fee2e2;
    color: #b91c1c;
}

.concern-choice-grid {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 7px;
}

.concern-choice {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    color: var(--app-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    gap: 2px;
    min-height: 40px;
    padding: 5px 6px;
    text-align: center;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.concern-choice span {
    align-items: center;
    display: flex;
    font-size: .82rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1.15;
    min-height: 22px;
    overflow-wrap: anywhere;
}

.concern-choice small {
    color: #627084;
    font-size: .66rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.concern-choice.selected {
    background: #edf7ff;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, .14);
}

.ticket-number {
    background: #eef7ef;
    border: 1px solid #b9dfc1;
    border-radius: 8px;
    color: #14532d;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding: 12px 18px;
    width: 100%;
}

.pic-mobile-hero {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 14px;
}

.pic-mobile-hero .mud-typography-h4 {
    color: #061b49;
    font-size: 1.7rem;
    font-weight: 900;
}

.pic-profile-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

.pic-profile-card > div {
    min-width: 0;
}

.pic-summary-grid {
    margin-top: 10px;
}

.pic-stat-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: grid;
    gap: 5px;
    min-height: 104px;
    padding: 12px;
}

.pic-stat-card .mud-typography-caption {
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.pic-stat-card .mud-typography-h4 {
    color: #061b49;
    font-weight: 900;
    line-height: 1;
}

.pic-section-panel {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 12px;
}

.pic-tabs .mud-tabs-toolbar {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    min-height: 44px;
}

.pic-case-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.pic-case-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    color: inherit;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 78px;
    padding: 12px;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.pic-case-card:hover {
    border-color: #9db6d5;
    box-shadow: 0 10px 22px rgba(21, 32, 51, .07);
    transform: translateY(-1px);
}

.pic-case-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.pic-case-main span,
.pic-case-main small,
.pic-case-title strong {
    overflow-wrap: anywhere;
}

.pic-case-main > span {
    color: #061b49;
    font-weight: 700;
}

.pic-case-main small {
    color: #64748b;
    font-size: .78rem;
}

.pic-case-title {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.pic-case-title strong {
    color: #061b49;
    font-size: .92rem;
}

/* Global compact system tuning */
.page-heading .mud-typography-h4,
.home-section-heading .mud-typography-h5,
.home-card .mud-typography-h6,
.dashboard-hero .mud-typography-h4,
.pic-mobile-hero .mud-typography-h4,
.pic-stat-card .mud-typography-h4,
.stat-tile .mud-typography-h4 {
    font-weight: 700;
}

.home-card,
.admin-panel,
.location-card,
.module-link,
.stat-tile,
.dashboard-hero,
.home-hero,
.pic-mobile-hero,
.pic-profile-card,
.pic-stat-card,
.pic-section-panel,
.pic-tabs .mud-tabs-toolbar,
.pic-case-card,
.admin-case-card,
.login-shell,
.public-report-shell,
.report-location,
.detail-list div,
.issue-description,
.qr-camera-frame,
.qr-camera-modal,
.concern-choice,
.ticket-number {
    border-radius: var(--app-radius);
}

.admin-panel,
.location-card,
.pic-section-panel,
.pic-mobile-hero,
.pic-profile-card,
.login-shell,
.public-report-shell {
    padding: 12px;
}

.mud-grid {
    margin-top: -8px;
    margin-left: -8px;
    width: calc(100% + 8px);
}

.mud-grid > .mud-grid-item {
    padding-top: 8px;
    padding-left: 8px;
}

.mud-tabs-toolbar {
    min-height: 40px;
}

.mud-tab {
    font-size: .82rem;
    min-height: 40px;
    padding: 8px 12px;
}

.mud-list-item {
    min-height: 34px;
}

.mud-popover .mud-list {
    padding: 4px 0;
}

.mud-popover .mud-list-item {
    min-height: 32px;
    padding-bottom: 4px;
    padding-top: 4px;
}

.mud-popover .mud-list-item-text {
    margin-bottom: 0;
    margin-top: 0;
}

.mud-popover .mud-list-item .mud-typography,
.mud-popover .mud-list-item-text,
.mud-select-item {
    font-size: .84rem;
}

/* Compact TAPS shell tuning */
.home-hero,
.dashboard-hero {
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px;
}

.home-hero .mud-typography-h3 {
    font-size: 2rem;
}

.dashboard-hero .mud-typography-h4 {
    font-size: 1.75rem;
}

.home-section {
    margin-top: 16px;
}

.home-card {
    gap: 10px;
    min-height: 188px;
    padding: 14px;
}

.home-card.compact {
    min-height: 168px;
}

.dashboard-stats .stat-tile {
    min-height: 108px;
}

.taps-stat {
    gap: 5px;
}

.stat-icon {
    height: 38px;
    width: 38px;
}

.dashboard-action-grid {
    gap: 10px;
}

.dashboard-action {
    gap: 6px;
    min-height: 82px;
    padding: 10px 8px;
}

.dashboard-action .mud-icon-root {
    font-size: 1.65rem;
}

.recent-abnormality-row {
    gap: 10px;
    padding: 9px 0;
}

.status-donut-wrap {
    gap: 14px;
    margin-top: 12px;
}

.status-donut {
    height: 136px;
    width: 136px;
}

.status-donut::after {
    inset: 30px;
}

.status-donut strong {
    font-size: 1.6rem;
}

.admin-panel,
.module-link,
.stat-tile {
    padding: 12px;
}

.module-link {
    gap: 10px;
    min-height: 170px;
}

@media (max-width: 600px) {
    .app-content {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 16px;
    }

    .app-brand small {
        max-width: 170px;
    }

    .layout-user-block span {
        display: none;
    }

    .page-heading {
        flex-direction: column;
        margin-bottom: 14px;
    }

    .page-heading-actions {
        justify-content: stretch;
        width: 100%;
    }

    .page-heading-actions .mud-button-root {
        flex: 1 1 180px;
    }

    .page-heading .mud-typography-h4 {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .compact-heading .mud-typography-h4 {
        font-size: 1.45rem;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
    }

    .home-command-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
    }

    .home-command-copy {
        align-items: flex-start;
    }

    .home-command-copy .mud-typography-h3 {
        font-size: 1.5rem;
    }

    .home-command-actions {
        justify-content: stretch;
    }

    .home-command-actions .mud-button-root {
        flex: 1 1 150px;
    }

    .home-hero .mud-typography-h3 {
        font-size: 1.8rem;
    }

    .home-hero-actions {
        justify-content: stretch;
    }

    .home-hero-actions .mud-button-root {
        flex: 1 1 180px;
    }

    .hero-logo {
        width: 78px;
    }

    .dashboard-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
    }

    .dashboard-hero-actions {
        justify-content: stretch;
    }

    .dashboard-hero-actions .mud-button-root {
        flex: 1 1 180px;
    }

    .dashboard-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recent-abnormality-row {
        align-items: flex-start;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .recent-abnormality-row time {
        grid-column: 2 / -1;
    }

    .home-panel-header {
        flex-direction: column;
    }

    .home-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-master-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .status-donut-wrap {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .home-card {
        min-height: 0;
    }

    .admin-panel {
        padding: 14px;
    }

    .form-actions .mud-button-root {
        flex: 1 1 130px;
    }

    .qr-camera-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .qr-camera-picker {
        grid-template-columns: minmax(0, 1fr);
    }

    .qr-camera-modal-backdrop {
        align-items: stretch;
        padding: 10px;
    }

    .qr-camera-modal {
        max-height: calc(100vh - 20px);
        padding: 12px;
    }

    .qr-camera-modal-frame {
        max-height: 68vh;
    }

    .admin-issue-actions {
        min-width: 0;
    }

    .admin-case-card {
        padding: 10px;
    }

    .admin-case-summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-case-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-case-photo {
        grid-column: 2;
        justify-self: start;
    }

    .admin-issue-button-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-issue-button-row .mud-button-root {
        width: 100%;
    }

    .issue-filter-grid,
    .pic-filter-grid,
    .report-filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .filter-actions .mud-button-root {
        flex: 1 1 120px;
    }

    .compact-notification-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .notification-item {
        align-items: flex-start;
    }

    .ticket-lookup-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticket-status-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .pic-selector-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .pic-detail-heading {
        align-items: flex-start;
    }

    .pic-detail-operator {
        align-items: stretch;
    }

    .pic-detail-operator .mud-button-root {
        justify-content: flex-start;
        width: 100%;
    }

    .pic-detail-operator-info {
        width: 100%;
    }

    .pic-profile-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pic-case-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .pic-action-buttons {
        grid-template-columns: minmax(0, 1fr);
    }

    .location-card-header {
        flex-direction: column;
    }

    .location-table-name small {
        max-width: 100%;
        white-space: normal;
    }

    .location-table-actions {
        display: flex;
        justify-content: flex-start;
    }

    .location-details-backdrop {
        align-items: stretch;
        padding: 10px;
    }

    .location-details-modal {
        max-height: calc(100vh - 20px);
        padding: 12px;
    }

    .location-details-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .location-details-qr {
        justify-self: center;
    }

    .location-details-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .location-details-actions .mud-button-root {
        width: 100%;
    }

    .settings-panel-header {
        flex-direction: column;
    }

    .settings-status-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-department-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .module-link {
        min-height: 0;
    }

    .login-role-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .public-report-shell {
        padding: 14px;
    }

    .public-layout {
        gap: 14px;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 16px;
    }

    .public-logo {
        max-height: 68px;
    }

    .concern-choice {
        min-height: 48px;
        padding: 7px;
    }

    .ticket-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 420px) {
    .concern-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
