html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}
.logon-main-container {
    background-image: url('../images/office.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* If the above doesn't work, try targeting the card class as well */
.logon-main.card {
    position: relative;
    top: -200px;
}

.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('../images/Logo.svg');
    mask: url('../images/Logo.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 180px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

/*.main-toolbar.py-3.px-2.px-sm-3 {
    display: none !important;
}*/


.image-wrapper {
    position: relative;
}

.image-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.image-wrapper img + .image-status {
    display: block;
}


.ailoading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh; /* Adjust to fit your needs */
}

.ailoading img {
        width: 400px; /* Adjust the size of the GIF */
        height: 144px; /* Adjust the size of the GIF */
}

.cw-300 {
    width: 300px;
}

.cw-320 {
    width: 100%;
}
/* Add this to your site's CSS or within a <style> tag in the Razor component */
.productive-row {
    background-color: lightgreen;
}

.unproductive-row {
    background-color: orangered;
}

.noa-row {
    background-color: yellow;
}

.resume-row {
    background-color: lightsteelblue;
}

.idle-row {
    background-color: yellowgreen;
}

.img-magnifier-glass {
    position: absolute;
    border: 3px solid #000;
    border-radius: 50%;
    cursor: none;
    /* Set the size of the magnifier glass: */
    width: 200px;
    height: 200px;
}
.notification {
    border: 1px solid #007bff; /* Blue border */
    background-color: #f0f8ff; /* Light blue background */
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

.instructions-container {
    margin: 20px 0;
}

.instructions-textbox {
    width: 100%;
    height: 500px; /* Adjust height as necessary */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8; /* Light grey background to indicate read-only state */
    resize: none; /* Disable resizing */
}
.treeview-icon-folder {
    background-image: url("images/icons/folder-color.svg");
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    background-size: contain;
    background-position: center center;
}

/* Active Blazor app shared UI layer */
:root {
    color-scheme: light;
    --slatebrand-50: #eef4ff;
    --slatebrand-100: #dce8ff;
    --slatebrand-300: #98b6ff;
    --slatebrand-700: #2d3c75;
    --slatebrand-800: #1f2b56;
    --slatebrand-900: #112047;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --border-soft: rgba(148, 163, 184, 0.24);
    --shadow-soft: 0 22px 48px rgba(15, 23, 42, 0.08);
}

html, body {
    min-height: 100%;
    margin: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 18%, #f8fafc 44%, #f8fafc 100%);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

::selection {
    background: rgba(152, 182, 255, 0.42);
    color: #0f172a;
}

main#main-content {
    width: 100%;
    min-width: 0;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

button:not(:disabled),
a[href],
[role="button"] {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(79, 102, 178, 0.55);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 100002;
    transform: translateY(-150%);
    border-radius: 999px;
    background: var(--slatebrand-900);
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
    transition: transform 160ms ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
    outline-color: rgba(255, 255, 255, 0.85);
}

#blazor-error-ui {
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 1rem 1.25rem;
    width: auto;
    height: auto;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.3);
}

#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
    color: #fff;
    margin-left: 0.75rem;
}

.bg-grid {
    position: relative;
}

.bg-grid::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0));
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.animate-fade-in {
    animation: fade-in 220ms ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-brand-shell {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 11.5rem;
    padding-right: 1rem;
    border-right: 1px solid rgba(203, 213, 225, 0.65);
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75), 0 8px 28px rgba(15, 23, 42, 0.045);
}

.nav-mobile-context {
    min-width: 0;
    flex: 1;
    margin-left: 0.15rem;
}

.nav-mobile-context > span,
.nav-mobile-context > strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-mobile-context > span {
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-mobile-context > strong {
    margin-top: 0.08rem;
    color: var(--slatebrand-900);
    font-size: 0.84rem;
    font-weight: 800;
}

.nav-brand-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: radial-gradient(circle at 38% 38%, #8df4d8 0%, #48c6cf 25%, #1b5b84 58%, #112047 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 16px 28px rgba(17, 32, 71, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-brand-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 0 18px rgba(255,255,255,0.65);
}

.nav-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-desktop-shell {
    min-width: 0;
    flex: 1;
}

.nav-primary-strip {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.65rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 650;
    transition: all 160ms ease;
    white-space: nowrap;
}

.nav-pill:hover,
.nav-pill:focus-visible {
    background: #f8fafc;
    color: var(--slatebrand-900);
}

.nav-pill.active {
    color: var(--slatebrand-900);
    background: #eef2ff;
    box-shadow: inset 0 0 0 1px rgba(152, 182, 255, 0.42);
}

.nav-pill-icon,
.nav-workspace-trigger-icon,
.nav-panel-link-icon,
.nav-mobile-link-icon,
.nav-mobile-group-icon,
.nav-user-chip-icon,
.nav-auth-btn-icon,
.nav-mobile-btn-icon {
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #f1f5f9;
    color: var(--slatebrand-700);
    flex-shrink: 0;
}

.nav-pill.active .nav-pill-icon {
    background: #dfe7ff;
    color: var(--slatebrand-900);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.nav-menu-group {
    position: relative;
}

.nav-workspace-trigger,
.nav-auth-btn,
.nav-mobile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    border: 1px solid transparent;
    background: transparent;
    color: #334155;
    border-radius: 0.65rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 650;
}

.nav-workspace-trigger:hover,
.nav-auth-btn:hover,
.nav-mobile-btn:hover,
.nav-workspace-trigger:focus-visible,
.nav-auth-btn:focus-visible,
.nav-mobile-btn:focus-visible {
    border-color: rgba(203, 213, 225, 0.9);
    background: #f8fafc;
    color: var(--slatebrand-900);
}

.nav-menu-trigger-active {
    border-color: rgba(152, 182, 255, 0.62);
    background: #eef2ff;
    box-shadow: none;
}

.nav-menu-chevron {
    color: #64748b;
    display: inline-flex;
}

.nav-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 0.65rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-workspace-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    width: min(29rem, calc(100vw - 2rem));
    max-height: min(38rem, calc(100vh - 5.5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    scrollbar-gutter: stable;
    z-index: 60;
}

.nav-menu-scrim {
    position: fixed;
    z-index: 50;
    inset: 0;
    width: 100vw;
    height: 100vh;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.08);
    cursor: default;
}

.nav-workspace-section + .nav-workspace-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-workspace-section-trigger,
.nav-mobile-group-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
}

.nav-workspace-head,
.nav-mobile-group-copy {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.nav-workspace-section-title,
.nav-mobile-group-title,
.nav-panel-link-title,
.nav-mobile-link-title {
    display: block;
    color: var(--slatebrand-900);
    font-weight: 700;
}

.nav-workspace-section-text,
.nav-mobile-group-text,
.nav-panel-link-text,
.nav-mobile-link-text {
    display: block;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.35;
}

.nav-workspace-panel .nav-workspace-section-text,
.nav-workspace-panel .nav-panel-link-text {
    display: none;
}

.nav-menu-grid,
.nav-workspace-links {
    display: grid;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.nav-workspace-panel .nav-workspace-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nav-panel-link,
.nav-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.55rem;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: background-color 140ms ease, transform 140ms ease;
}

.nav-panel-link:hover,
.nav-mobile-link:hover,
.nav-panel-link:focus-visible,
.nav-mobile-link:focus-visible,
.nav-panel-link.active,
.nav-mobile-link.active {
    background: #f8fafc;
    transform: translateY(-1px);
}

.nav-workspace-section-trigger:focus-visible,
.nav-mobile-group-trigger:focus-visible {
    border-radius: 0.6rem;
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .nav-actions .nav-action-label {
        display: none;
    }

    .nav-actions .nav-user-chip,
    .nav-actions .nav-auth-btn {
        padding-inline: 0.45rem;
    }
}

@media (max-width: 1279px) {
    .nav-brand-shell {
        min-width: auto;
        padding-right: 0;
        border-right: 0;
    }
}

.text-slatebrand-900 {
    color: var(--slatebrand-900);
}

.border-slatebrand-300 {
    border-color: var(--slatebrand-300);
}

.dashboard-page {
    position: relative;
}

.dashboard-surface {
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.99);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.dashboard-card {
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 0.75rem;
    background: #fff;
}

.dashboard-card-muted {
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.dashboard-metric {
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.dashboard-modal {
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 1.5rem;
    background: rgba(255,255,255,0.99);
    box-shadow: 0 28px 68px rgba(15, 23, 42, 0.22);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    border-radius: 0.9rem;
    border: 1px solid transparent;
    padding: 0.68rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: 3px solid rgba(79, 102, 178, 0.48);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(152, 182, 255, 0.18);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    border-color: #112047;
    background: linear-gradient(135deg, #0057e6 0%, #0041c4 100%);
    color: #fff;
}

.btn.btn-primary,
.btn-primary *,
.btn-primary:visited {
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    border-color: #1f2b56;
    background: linear-gradient(135deg, #0048c9 0%, #00349e 100%);
}

.btn-secondary {
    border-color: rgba(100, 116, 139, 0.36);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #334155;
}

.btn.btn-secondary,
.btn-secondary *,
.btn-secondary:visited {
    color: #334155;
}

.btn-secondary:hover:not(:disabled) {
    border-color: rgba(148, 163, 184, 0.7);
    background: #f8fafc;
    color: #0f172a;
}

.btn-secondary:hover:not(:disabled) * {
    color: #0f172a;
}

.btn-ghost {
    border-color: transparent;
    background: rgba(248, 250, 252, 0.8);
    color: #334155;
}

.btn.btn-ghost,
.btn-ghost *,
.btn-ghost:visited {
    color: #334155;
}

.btn-ghost:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-danger {
    border-color: rgba(251, 113, 133, 0.35);
    background: #fff1f2;
    color: #be123c;
}

.btn.btn-danger,
.btn-danger *,
.btn-danger:visited {
    color: #be123c;
}

.btn-danger:hover:not(:disabled) {
    border-color: rgba(244, 63, 94, 0.45);
    background: #ffe4e6;
    color: #9f1239;
}

.btn-success {
    border-color: rgba(74, 222, 128, 0.35);
    background: #ecfdf3;
    color: #166534;
}

.btn.btn-success,
.btn-success *,
.btn-success:visited {
    color: #166534;
}

.btn-success:hover:not(:disabled) {
    border-color: rgba(34, 197, 94, 0.42);
    background: #dcfce7;
    color: #14532d;
}

.btn-warning {
    border-color: rgba(251, 191, 36, 0.35);
    background: #fffbeb;
    color: #92400e;
}

.btn.btn-warning,
.btn-warning *,
.btn-warning:visited {
    color: #92400e;
}

.btn-warning:hover:not(:disabled) {
    border-color: rgba(245, 158, 11, 0.42);
    background: #fef3c7;
    color: #78350f;
}

.btn-sm {
    min-height: 2.35rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.86rem;
}

.btn-xs {
    min-height: 2rem;
    padding: 0.42rem 0.72rem;
    font-size: 0.77rem;
    border-radius: 0.75rem;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 0.95rem;
    background: #fff;
    color: #0f172a;
    padding: 0.72rem 0.9rem;
    font-size: 0.92rem;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.65), 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.form-control:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: rgba(100, 116, 139, 0.55);
}

.form-control::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(152, 182, 255, 0.95);
}

.form-textarea {
    min-height: 7rem;
    resize: vertical;
}

.form-check {
    accent-color: var(--slatebrand-900);
}

.table-shell {
    overflow-x: auto;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 1rem;
    background: #fff;
}

.table-base {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 0.92rem;
    color: #475569;
}

.table-head {
    background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.table-row td {
    border-top: 1px solid rgba(241, 245, 249, 0.95);
}

.table-row:hover td {
    background: rgba(248, 250, 252, 0.82);
}

.segmented-control {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.94);
}

.segmented-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    background: transparent;
    transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.segmented-button:hover {
    background: rgba(255,255,255,0.9);
    color: #0f172a;
}

.segmented-button.active {
    background: linear-gradient(135deg, #112047 0%, #273566 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(17, 32, 71, 0.18);
}

.retail-hero {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(23, 183, 168, 0.16), transparent 32rem),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 45%, #eef7ff 100%);
}

.retail-hero::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -5rem;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: rgba(45, 60, 117, 0.08);
    pointer-events: none;
}

.retail-stat-card {
    display: flex;
    min-height: 8.5rem;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.1rem;
    color: #64748b;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.retail-stat-card strong {
    display: block;
    margin-top: 0.55rem;
    color: var(--slatebrand-900);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1;
}

.retail-stat-label,
.retail-field-label {
    display: block;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.retail-avatar {
    display: inline-flex;
    width: 2.65rem;
    height: 2.65rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #112047 0%, #17b7a8 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    box-shadow: 0 12px 22px rgba(17, 32, 71, 0.18);
}

.retail-action-card {
    display: flex;
    min-height: 9rem;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.15rem;
    color: #64748b;
    text-decoration: none;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.retail-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 183, 168, 0.5);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.09);
}

.retail-action-card strong {
    color: var(--slatebrand-900);
    font-size: 1.1rem;
}

.retail-action-kicker {
    color: #0891b2;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.retail-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: #f8fafc;
    padding: 0.32rem 0.72rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.retail-badge-success {
    border-color: rgba(16, 185, 129, 0.28);
    background: #ecfdf5;
    color: #047857;
}


/* Consistent page/UI primitives shared by EF Core pages */
.dashboard-page {
    color: #0f172a;
}

.dashboard-page h1,
.dashboard-page h2,
.dashboard-page h3,
.dashboard-page h4 {
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.dashboard-page p {
    line-height: 1.55;
}

.dashboard-surface > .flex:first-child,
.dashboard-surface > .grid:first-child {
    row-gap: 1rem;
}

.dashboard-surface .font-mono.text-xs.uppercase,
.retail-field-label,
.retail-stat-label {
    color: #64748b;
    letter-spacing: 0.16em;
}

.table-shell {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 10px 24px rgba(15, 23, 42, 0.035);
    scrollbar-gutter: stable;
    overscroll-behavior-inline: contain;
}

.table-shell > .table-base {
    min-width: 100%;
}

.table-base th,
.table-base td {
    vertical-align: middle;
}

.table-base th {
    white-space: nowrap;
}

.table-base tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-modal {
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 2rem);
    overscroll-behavior: contain;
}

.dashboard-modal h1,
.dashboard-modal h2,
.dashboard-modal h3 {
    overflow-wrap: anywhere;
}

.form-control:disabled,
.form-select:disabled,
.form-textarea:disabled {
    border-color: rgba(203, 213, 225, 0.75);
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.form-control[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"],
.invalid {
    border-color: rgba(225, 29, 72, 0.72);
}

.alert-message {
    border-radius: 1rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.alert-danger {
    border-color: rgba(251, 113, 133, 0.44);
    background: #fff1f2;
    color: #9f1239;
}

.alert-warning {
    border-color: rgba(251, 191, 36, 0.48);
    background: #fffbeb;
    color: #92400e;
}

.alert-success {
    border-color: rgba(74, 222, 128, 0.42);
    background: #ecfdf5;
    color: #166534;
}

.ui-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 0.95rem;
    background: #fff;
    padding: 0.72rem 0.9rem;
    color: #475569;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mini-metric-card {
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.choice-card {
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 1rem;
    background: #fff;
    padding: 0.85rem;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.choice-card:hover {
    border-color: rgba(152, 182, 255, 0.78);
    background: #f8fafc;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.055);
    transform: translateY(-1px);
}

.company-profile-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.24);
    background:
        radial-gradient(circle at 88% 10%, rgba(14, 165, 233, 0.34), transparent 34%),
        linear-gradient(135deg, #071827 0%, #0b2942 52%, #075985 100%);
    color: #fff;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.2);
}

.company-profile-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    pointer-events: none;
}

.company-profile-hero-metric {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.company-profile-hero .text-sky-200 {
    color: #bae6fd !important;
}

.company-profile-hero .text-slate-200 {
    color: #e2e8f0 !important;
}

.company-profile-hero .text-slate-300 {
    color: #cbd5e1 !important;
}

@media (max-width: 768px) {
    .dashboard-surface,
    .dashboard-modal {
        padding: 1.1rem;
        border-radius: 1.15rem;
    }

    .btn {
        max-width: 100%;
    }

    .table-shell {
        margin-inline: -0.15rem;
        border-radius: 0.85rem;
    }
}

@media (max-width: 640px) {
    main#main-content {
        padding-top: 1.25rem;
        padding-bottom: 2rem;
    }

    .dashboard-page {
        gap: 1rem;
    }

    .dashboard-surface {
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    }

    .nav-mobile-btn,
    .nav-auth-btn,
    .nav-workspace-trigger {
        padding: 0.65rem 0.85rem;
    }

    .dashboard-modal {
        max-width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 1rem;
    }
}

@media (max-width: 420px) {
    .nav-mobile-context > span {
        display: none;
    }

    .nav-mobile-context > strong {
        font-size: 0.78rem;
    }
}

@media (hover: hover) {
    .btn:hover:not(:disabled) {
        transform: translateY(-1px);
    }
}

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

    .btn:hover:not(:disabled),
    .choice-card:hover,
    .retail-action-card:hover,
    .nav-panel-link:hover,
    .nav-mobile-link:hover {
        transform: none;
    }
}

.video-review-hero::after {
    display: none;
}
