@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Nav section labels */
.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    padding-top: 0.25rem;
    padding-bottom: 0.1rem;
    pointer-events: none;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.chart-canvas {
    width: 600px !important;
    height: 300px !important;
    max-width: 100%;
}

.chart-canvas-wide {
    width: 100% !important;
    height: 550px !important;
    max-width: 100%;
}

.full-chart-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
}

.chart-host {
    position: relative;
    width: 100%;
    height: 260px;
    min-width: 0;
}

.chart-host canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    display: block;
}

/* Cancela o padding do <article> definido em MainLayout.razor.css (1.5rem cada lado) */
.card-fullbleed {
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    border-radius: 0 !important;
}

.portal-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.portal-login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22,119,255,0.12) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    pointer-events: none;
}

.portal-login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22,119,255,0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.portal-login-card {
    width: 100%;
    max-width: 440px;
    border-radius: 20px !important;
    padding: 40px !important;
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.15) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.portal-login-logos {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 24px;
}

.portal-logo-box {
    width: 80px;
    height: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.portal-logo-box svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.20));
}

.portal-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.20));
}

.portal-login-header {
    text-align: center;
    margin-bottom: 28px;
}

.portal-login-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.portal-login-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.portal-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.portal-field .rz-label {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}

.portal-field .rz-textbox,
.portal-field .rz-password {
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: border-color 0.2s !important;
}
.portal-field .rz-textbox:focus,
.portal-field .rz-password:focus {
    border-color: #1677ff !important;
    box-shadow: 0 0 0 3px rgba(22,119,255,0.12) !important;
}

.portal-password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-password-label .rz-link {
    font-size: 13px;
    color: #1677ff;
}

.portal-login-form .rz-button {
    border-radius: 10px !important;
    background: linear-gradient(135deg, #1677ff, #0050b3) !important;
    border: none !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(22,119,255,0.35) !important;
    transition: all 0.2s !important;
    margin-top: 6px;
}
.portal-login-form .rz-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(22,119,255,0.45) !important;
}

.portal-login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.portal-login-links {
    display: flex;
    gap: 24px;
    font-size: 13px;
}
.portal-login-links a { color: rgba(255,255,255,0.6); text-decoration: none; }
.portal-login-links a:hover { color: rgba(255,255,255,0.95); }

/* ─── User dropdown menu ──────────────────────────────────────────────── */
.user-menu-container { position: relative; }

.user-menu-trigger {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1677ff, #0050b3);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2.5px solid rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(22,119,255,0.4);
    letter-spacing: 0.5px;
}
.user-menu-trigger:hover {
    border-color: rgba(255,255,255,0.9);
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(22,119,255,0.5);
}

.user-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
}

.user-dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    z-index: 9999;
    overflow: hidden;
    animation: dropdownIn 0.18s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.user-dropdown-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #1677ff 100%);
    padding: 20px 20px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-dropdown-avatar-lg {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.user-dropdown-info { overflow: hidden; }

.user-dropdown-name {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 175px;
}

.user-dropdown-role {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.user-dropdown-body { padding: 8px 0; }

.user-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    font-size: 14px;
    color: #374151;
    text-decoration: none !important;
    transition: background 0.12s;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}
.user-dropdown-item:hover {
    background: #f8faff;
    color: #1677ff;
}
.user-dropdown-item .material-icons {
    font-size: 19px;
    color: #9ca3af;
    transition: color 0.12s;
}
.user-dropdown-item:hover .material-icons { color: #1677ff; }

.user-dropdown-footer {
    padding: 8px 12px 12px;
}

.user-dropdown-signout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}
.user-dropdown-signout-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 4px 16px rgba(220,38,38,0.4);
    transform: translateY(-1px);
}
.user-dropdown-signout-btn .material-icons { font-size: 18px; }

@media (max-width: 768px) {
    .portal-login-header h2 { font-size: 22px; }
    .portal-login-card { padding: 28px !important; }
}

.portal-shell {
    min-height: 100vh;
    background: #f3f4f6;
    /* Sidebar em altura total, header apenas sobre o conteúdo (como no mockup) */
    grid-template-areas: "rz-sidebar rz-header" "rz-sidebar rz-body" !important;
}

.portal-header {
    padding: 10px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.portal-header-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.portal-header .btn-outline-light {
    color: #0f172a;
    border-color: #cbd5e1;
}

.portal-sidebar {
    background: #0b1727;
    border-right: 1px solid #0b1727;
    width: 250px;
}

.portal-sidebar-content {
    padding: 16px;
}

.portal-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 700;
    color: #ffffff;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-brand small {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.62rem;
}

.portal-brand-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-brand-logos img {
    height: 44px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
}

.portal-brand-title {
    font-size: 16px;
}

/* Dark sidebar nav — uppercase items like the mockup */
.portal-sidebar .portal-nav,
.portal-sidebar .portal-nav .rz-navigation-item,
.portal-sidebar .portal-nav .rz-navigation-item-wrapper,
.portal-sidebar .portal-nav .rz-navigation-item-link {
    background: transparent;
    border: none;
    box-shadow: none;
}

.portal-sidebar .portal-nav .rz-navigation-item-link {
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.portal-sidebar .portal-nav .rz-navigation-item-icon {
    color: rgba(255, 255, 255, 0.75);
}

.portal-sidebar .portal-nav .rz-navigation-item-wrapper:hover .rz-navigation-item-link,
.portal-sidebar .portal-nav .rz-navigation-item-wrapper:hover .rz-navigation-item-icon {
    color: #ffffff;
    background: transparent;
}

.portal-sidebar .portal-nav .rz-navigation-item-wrapper:hover {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.portal-sidebar .portal-nav .rz-navigation-item-wrapper-active {
    background: rgba(37, 99, 235, 0.35);
    border-radius: 8px;
}

.portal-sidebar .portal-nav .rz-navigation-item-wrapper-active .rz-navigation-item-link,
.portal-sidebar .portal-nav .rz-navigation-item-wrapper-active .rz-navigation-item-icon {
    color: #ffffff;
}

.portal-body {
    padding: 18px;
}

.portal-title {
    margin: 0;
    font-size: 30px;
}

.portal-subtitle {
    margin: 0;
    color: #6b7280;
}

.portal-kpi-label {
    color: #64748b;
    font-size: 13px;
}

.portal-kpi-value {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}

.portal-kpi-positive {
    color: #16a34a;
}

.portal-kpi-negative {
    color: #ef4444;
}

.portal-chart-title {
    font-size: 20px;
    font-weight: 600;
}

.portal-sync-alert {
    background: #dbeafe !important;
    color: #1e40af !important;
    padding: 6px 12px !important;
    font-size: 13px;
    border-radius: 8px;
    margin: 0 !important;
}

.portal-sync-alert .rz-alert-icon,
.portal-sync-alert .rzi,
.portal-sync-alert .rz-alert-close {
    color: #1e40af !important;
}

.portal-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.portal-pro-card {
    background: #0b1727 !important;
    color: #ffffff;
}

.portal-pro-tag {
    color: #38bdf8;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.65rem;
}

.portal-pro-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.portal-pro-text {
    color: rgba(255, 255, 255, 0.65);
}

.portal-pro-button {
    background: #ffffff !important;
    color: #0b1727 !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 6px;
}

/* ===== Experiments page (mockup Registry Logs) ===== */
.exp-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.exp-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.exp-import-label {
    color: #2563eb;
    font-weight: 600;
    font-size: 12px;
}

.exp-import-buttons {
    display: flex;
    gap: 10px;
}

.exp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    margin: 0;
}

.exp-btn-outline:hover {
    background: #f8fafc;
}

a.exp-btn-outline,
a.exp-btn-outline:hover {
    text-decoration: none;
    color: #0f172a;
}

.exp-btn-outline .rzi,
.exp-btn-dark .rzi {
    line-height: 1;
    font-size: inherit;
}

.exp-btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #0b1727;
    border: 1px solid #0b1727;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff !important;
    cursor: pointer;
    margin: 0;
    text-decoration: none;
}

.exp-btn-dark:hover {
    background: #1e293b;
    color: #ffffff;
}

.exp-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.exp-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    width: 100%;
    overflow: hidden;
}

.exp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    flex-wrap: wrap;
}

.exp-card-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.exp-card-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.exp-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    background: #ffffff;
}

.exp-search input {
    border: none;
    outline: none;
    font-size: 13px;
    width: 160px;
}

.exp-table {
    width: 100%;
    border-collapse: collapse;
}

.exp-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.exp-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: middle;
}

.exp-col-right {
    text-align: right;
}

.exp-id {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.exp-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
}

.exp-date {
    color: #2563eb;
    white-space: nowrap;
}

.exp-samples {
    color: #0ea5e9;
    font-weight: 700;
}

.exp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    flex-wrap: wrap;
}

.exp-pager {
    display: flex;
    gap: 6px;
}

.exp-pager button {
    min-width: 30px;
    height: 30px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #334155;
}

.exp-pager button:hover:not(:disabled) {
    background: #f8fafc;
}

.exp-pager button:disabled {
    opacity: 0.4;
    cursor: default;
}

.exp-pager button.active {
    background: #0b1727;
    border-color: #0b1727;
    color: #ffffff;
    font-weight: 700;
}

/* ===== Experiment detail page ===== */
.detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.detail-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.detail-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.detail-info-card {
    flex: 1 1 420px;
    padding: 18px;
}

.detail-marks-card {
    flex: 0 1 340px;
}

.detail-info-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.detail-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-filename {
    font-family: Consolas, monospace;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2px;
}

.detail-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 9999px;
}

.detail-sep {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 14px 0;
}

.detail-info-grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.detail-value {
    font-weight: 700;
    color: #0f172a;
    margin-top: 2px;
}

.detail-marks-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.detail-marks-table td {
    padding: 10px 16px;
}

.detail-mark-value {
    font-family: Consolas, monospace;
    font-weight: 700;
    color: #0f172a;
}

.detail-subtitle-blue {
    color: #2563eb;
}

.detail-pagesize {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.detail-pagesize select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 13px;
    background: #ffffff;
}

.detail-sample-index {
    color: #64748b;
    font-family: Consolas, monospace;
}

/* ===== Padrão global do portal: formulários, tabelas e botões Bootstrap ===== */
.portal-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.portal-body .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.portal-body .form-control,
.portal-body .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    color: #0f172a;
    background-color: #ffffff;
}

.portal-body .form-control::placeholder {
    color: #94a3b8;
}

.portal-body .form-control:focus,
.portal-body .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.portal-body .form-control-sm,
.portal-body .form-select-sm {
    padding: 6px 10px;
    font-size: 13px;
}

.portal-body .btn {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
}

.portal-body .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.portal-body .btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.portal-body .btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.portal-body .btn-secondary {
    background: #475569;
    border-color: #475569;
}

.portal-body .btn-secondary:hover:not(:disabled) {
    background: #334155;
    border-color: #334155;
}

.portal-body .table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.portal-body .table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    border-top: none;
}

.portal-body .table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: middle;
    color: #334155;
}

.portal-body .table-striped tbody tr:nth-of-type(odd) td {
    background-color: #fbfcfe;
}

.portal-body .table-bordered th,
.portal-body .table-bordered td {
    border: 1px solid #eef0f4;
}

.portal-body .pagination .page-link {
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 6px;
    margin-right: 6px;
    min-width: 32px;
    text-align: center;
    font-size: 13px;
}

.portal-body .pagination .page-item.active .page-link {
    background: #0b1727;
    border-color: #0b1727;
    color: #ffffff;
    font-weight: 700;
}

.portal-body .pagination .page-item.disabled .page-link {
    opacity: 0.4;
}

.portal-body .alert {
    border-radius: 8px;
    font-size: 14px;
}

.portal-body .breadcrumb {
    font-size: 14px;
}

.portal-body .breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.portal-body .card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

/* RadzenDataGrid no mesmo padrão das tabelas */
.portal-body .rz-grid-table thead th,
.portal-body .rz-data-grid .rz-column-title {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portal-body .rz-grid-table tbody td {
    font-size: 14px;
    color: #334155;
}

.portal-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: #1677ff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .portal-title {
        font-size: 24px;
    }

    .portal-kpi-value {
        font-size: 30px;
    }

    .portal-login-header h2 {
        font-size: 26px;
    }
}


/* ─── Account pages (Profile / Change Password) ──────────────────────── */
.account-page-wrapper {
    max-width: 620px;
    margin: 0 auto;
    padding: 32px 16px 48px;
}

.account-page-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.account-page-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1677ff, #0050b3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(22,119,255,0.3);
}
.account-page-icon .material-icons { color: #fff; font-size: 26px; }

.account-page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.account-page-subtitle {
    margin: 3px 0 0;
    font-size: 13px;
    color: #64748b;
}

.account-alert {
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.account-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.account-avatar-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px 20px;
    background: linear-gradient(135deg, #f8faff, #eef4ff);
}

.account-avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1677ff, #0050b3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(22,119,255,0.3);
}

.account-avatar-name {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a2e;
}

.account-avatar-role {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.account-divider {
    margin: 0 28px;
    border-color: #f1f5f9;
}

.account-form {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}
.account-label .material-icons { font-size: 16px; color: #9ca3af; }

.account-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}
.account-input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22,119,255,0.1);
}
.account-input-readonly {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}
.account-input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}

.account-hint {
    font-size: 12px;
    color: #94a3b8;
}

.account-actions { margin-top: 8px; }

.account-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: linear-gradient(135deg, #1677ff, #0050b3);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(22,119,255,0.35);
}
.account-btn-save:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22,119,255,0.45);
}
.account-btn-save:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.account-btn-save .material-icons { font-size: 18px; }

/* ─── Admin nav section ──────────────────────────────────────────── */
.portal-nav-admin-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.portal-nav-admin-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.35);
    padding: 0 12px 6px;
}

/* ── Help tips ─────────────────────────────────────────────────────────
   Tooltip em CSS puro, sem JS. O title nativo demora a aparecer e não
   quebra linha; estas explicações têm uma frase inteira.
   Aparece no hover E no foco por teclado, para navegação acessível. */
.help-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 5px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #1e293b;
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    position: relative;
    vertical-align: middle;
    user-select: none;
    flex: 0 0 auto;
}

.help-tip:hover,
.help-tip:focus {
    background: #2563eb;
    color: #fff;
    outline: none;
}

.help-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 280px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #1e293b;
    color: #f8fafc;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity .12s ease;
    z-index: 1080;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .25);
    pointer-events: none;
}

/* seta */
.help-tip::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: opacity .12s ease;
    z-index: 1081;
    pointer-events: none;
}

.help-tip:hover::after, .help-tip:focus::after,
.help-tip:hover::before, .help-tip:focus::before {
    opacity: 1;
    visibility: visible;
}

/* perto da borda esquerda o balão sairia da tela */
.col-md-2:first-child .help-tip::after,
.col-md-3:first-child .help-tip::after {
    left: 0;
    transform: none;
}
