:root {
    --color-primary: #0F0F0F;
    --color-secondary: #4A4A4A;
    --color-bg: #F2F2F2;
    --color-white: #FFFFFF;
    --color-highlight: #2FA4B6;
    --color-highlight-dark: #238a99;
    --color-support-light: #E6EFF2;
    --color-support-medium: #DCE8E5;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-login: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-card: 12px;
    --radius-btn: 8px;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-highlight);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-highlight-dark);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: #cbd5e1;
}

.btn-success {
    background-color: #10B981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-primary);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
strong {
    font-family: var(--font-heading);
}

.mb-4 {
    margin-bottom: 2rem !important;
}

/* Prep Checklist Styles */
.prep-checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.prep-card {
    background: #FAFDFC;
    border: 1px solid #DCE8E5;
    border-top: 4px solid var(--color-highlight);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.prep-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-support-light);
    color: var(--color-highlight-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.prep-card h4 {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
}

.prep-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.prep-card li {
    font-size: 0.88rem;
    color: var(--color-secondary);
    line-height: 1.4;
    position: relative;
    padding-left: 1.2rem;
}

.prep-card li::before {
    content: "•";
    color: var(--color-highlight);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -0.1rem;
}

.prep-notice-box {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-btn);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.prep-notice-box .notice-icon {
    color: #D97706;
    font-size: 1.5rem;
}

.prep-notice-box p {
    font-size: 0.88rem;
    color: #92400E;
    margin: 0;
}

/* Sidebar Extensions for Consultancy */
.btn-new-diagnosis {
    width: 100%;
    margin-bottom: 1.5rem;
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.sidebar-nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-btn);
    border: none;
    background: transparent;
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.nav-btn:hover {
    background-color: #f5f5f5;
    color: var(--color-primary);
}

.nav-btn.active {
    background-color: var(--color-support-light);
    color: var(--color-highlight-dark);
    font-weight: 600;
}

/* Benchmark Block */
.benchmark-container {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-card);
    padding: 1.5rem;
}

.benchmark-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.icon-benchmark {
    font-size: 2.2rem;
    color: var(--color-highlight);
    background: var(--color-support-light);
    padding: 0.5rem;
    border-radius: 50%;
}

.benchmark-header h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.benchmark-header p {
    font-size: 0.85rem;
    color: #666;
}

.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bm-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: var(--radius-btn);
    padding: 1.2rem;
}

.bm-card h5 {
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.bm-values {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.bm-row {
    display: flex;
    justify-content: space-between;
}

.bm-row.highlight-row {
    font-weight: 700;
    color: var(--color-highlight-dark);
    border-top: 1px dashed #ddd;
    padding-top: 0.3rem;
    margin-top: 0.2rem;
}

/* Action Plan Timeline */
.action-plan-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.timeline-card {
    background: white;
    border-radius: var(--radius-card);
    border: 1fr solid #eee;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.timeline-card.phase-short {
    border-top: 4px solid #EF4444;
}

.timeline-card.phase-medium {
    border-top: 4px solid #F59E0B;
}

.timeline-card.phase-long {
    border-top: 4px solid #10B981;
}

.timeline-header {
    margin-bottom: 1.2rem;
}

.phase-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.phase-short .phase-badge { background: #FEE2E2; color: #991B1B; }
.phase-medium .phase-badge { background: #FEF3C7; color: #92400E; }
.phase-long .phase-badge { background: #D1FAE5; color: #065F46; }

.timeline-header h4 {
    font-size: 1.05rem;
    color: var(--color-primary);
    line-height: 1.3;
}

.action-tasks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.action-tasks-list li {
    font-size: 0.88rem;
    color: var(--color-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.action-tasks-list li span.icon-check {
    color: var(--color-highlight);
    font-size: 1rem;
    margin-top: 0.1rem;
}

/* Consultancy History Panel & Glossary Grid */
.history-search-bar {
    margin-bottom: 1.5rem;
}

.search-input input {
    background: white;
    font-size: 0.95rem;
}

.history-grid,
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Glossary Card Styles */
.glossary-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.glossary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
    border-color: var(--color-highlight);
}

.glossary-card-highlight {
    border: 2px solid var(--color-highlight);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.glossary-term-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background-color: var(--color-support-light);
    color: var(--color-highlight-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.badge-primary {
    background-color: var(--color-highlight);
    color: white;
}

.glossary-title {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
}

.glossary-desc {
    font-size: 0.9rem;
    color: var(--color-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.glossary-formula {
    background-color: #fafafa;
    border-left: 3px solid var(--color-highlight);
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-family: monospace;
}

.glossary-link-btn {
    margin-top: auto;
    text-decoration: none;
    text-align: center;
}

.history-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.history-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
    border-color: var(--color-highlight);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.history-card-header h3 {
    font-size: 1.15rem;
    color: var(--color-primary);
}

.history-card-header small {
    color: #888;
    font-size: 0.8rem;
}

.history-metrics-row {
    display: flex;
    justify-content: space-between;
    background-color: #fafafa;
    padding: 0.8rem;
    border-radius: var(--radius-btn);
    margin-bottom: 1.2rem;
}

.history-metric {
    text-align: center;
}

.history-metric span {
    font-size: 0.75rem;
    color: #777;
    display: block;
}

.history-metric strong {
    font-size: 1rem;
    color: var(--color-primary);
}

.history-card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

.history-card-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.empty-history {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-card);
    border: 2px dashed #ddd;
}

.empty-history span {
    font-size: 3.5rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-history h3 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Login Screen Styles */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0F0F0F 0%, #1A2E35 100%);
    padding: 1.5rem;
}

.login-card {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-login);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    animation: loginFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.login-header h2 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.login-header p {
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #888;
    font-size: 1.2rem;
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 2.8rem;
    padding-right: 2.8rem;
}

.btn-toggle-password {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s;
}

.btn-toggle-password:hover {
    color: var(--color-highlight);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.checkbox-remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-secondary);
    cursor: pointer;
}

.checkbox-remember input {
    width: auto;
}

.forgot-link {
    color: var(--color-highlight);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.forgot-link:hover {
    color: var(--color-highlight-dark);
    text-decoration: underline;
}

/* Modal Overlay & Card Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-modal);
    overflow: hidden;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background: var(--color-primary-dark);
    color: #ffffff;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close-modal {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-close-modal:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-secondary);
}

.modal-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

.hidden {
    display: none !important;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
    font-size: 1.05rem;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* User Session Badge in Sidebar */
.user-session-info {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    color: var(--color-highlight);
    display: flex;
    align-items: center;
}

.user-avatar span {
    font-size: 2.2rem;
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1;
    overflow: hidden;
}

.user-details span {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details small {
    font-size: 0.75rem;
    color: #888;
}

.btn-logout {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.btn-logout:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--color-white);
    padding: 2rem 1.5rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.logo-area {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo-area h1 {
    font-size: 1.15rem;
    color: var(--color-primary);
    line-height: 1.25;
    display: flex;
    align-items: center;
    margin: 0;
}

/* Stepper */
.stepper {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-btn);
    transition: all 0.3s ease;
    cursor: default;
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.step.active {
    background-color: var(--color-support-light);
    color: var(--color-highlight);
    font-weight: 600;
}

.step.completed .step-icon {
    background-color: #2A9D8F;
    color: white;
}

.step-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: #999;
}

.step.active .step-icon {
    background-color: var(--color-highlight);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    max-width: 1200px;
    margin: 0 auto;
}

/* Wizard & Dashboard Containers */
#wizard-container,
#dashboard-container,
#history-container,
#glossary-container {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    min-height: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.step-header h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--color-secondary);
}

/* Pillar Card Blocks */
.pillar-block {
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-left: 4px solid var(--color-highlight);
    border-radius: var(--radius-btn);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.pillar-block h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Forms */
.form-group {
    margin-bottom: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-secondary);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
    background-color: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-highlight);
    background-color: white;
}

.input-prefix {
    position: absolute;
    margin-top: 0.85rem;
    margin-left: 0.8rem;
    color: #999;
    font-size: 0.9rem;
}

input.with-prefix {
    padding-left: 2.5rem;
}

/* Wizard Actions */
.wizard-actions {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

.btn {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--color-highlight);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-highlight-dark);
    box-shadow: 0 4px 10px rgba(47, 164, 182, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #f9f9f9;
}

.hidden {
    display: none !important;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.dashboard-header h2 {
    font-size: 2rem;
    color: var(--color-primary);
}

.subtitle {
    color: var(--color-secondary);
    font-size: 0.9rem;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.kpi-card {
    background: linear-gradient(135deg, #fff, #fafafa);
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 185px;
    box-sizing: border-box;
}

.kpi-card.highlight-card {
    border-top: 4px solid var(--color-highlight);
}

.kpi-card.highlight-valuation {
    border-top: 4px solid #2A9D8F;
    background: #F0FDF4;
}

.kpi-card h3 {
    font-size: 0.88rem;
    color: var(--color-secondary);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.kpi-card strong {
    font-size: 1.45rem;
    color: var(--color-primary);
    display: block;
    margin: auto 0;
    line-height: 1.15;
    word-break: break-word;
}

.score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    margin: auto 0;
}

.score-display strong {
    font-size: 2.2rem;
    color: var(--color-highlight);
    margin: 0;
}

.score-max {
    font-size: 1rem;
    color: #888;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: auto;
}

.badge-risk {
    background-color: #FEE2E2;
    color: #991B1B;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.kpi-card small {
    font-size: 0.78rem;
    color: #666;
    display: block;
    margin-top: auto;
    line-height: 1.2;
    min-height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-card);
    border: 1px solid #eee;
    height: 380px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-primary);
    border-left: 4px solid var(--color-highlight);
    padding-left: 0.8rem;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-bottom: 2.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    font-weight: 600;
    color: var(--color-secondary);
    background-color: #fafafa;
}

.highlight-text {
    color: #2FA4B6;
    font-weight: 600;
}

.highlight-text-green {
    color: #2A9D8F;
    font-weight: 700;
}

.table-row-highlight {
    background-color: #F0FDF4;
}

/* Concept Card 2 Colunas */
.concept-grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background-color: var(--color-support-light);
    border-radius: var(--radius-card);
    padding: 2rem;
    border: 1px solid #BEE3F8;
}

.concept-column-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.concept-banner-wrapper {
    width: 100%;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    background: white;
}

.rodape-fk-img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.concept-column-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.concept-flow-title {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.concept-vertical-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 320px;
}

.flow-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.75rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    width: 100%;
    border: 1px solid #e2e8f0;
}

.flow-pill-highlight {
    background: var(--color-highlight);
    color: white;
    border-color: var(--color-highlight-dark);
    box-shadow: 0 4px 12px rgba(47, 164, 182, 0.3);
}

.flow-pill-highlight .pill-icon {
    color: #FDE047;
}

.pill-icon {
    font-size: 1.3rem;
    color: var(--color-highlight);
}

.flow-arrow-down {
    color: var(--color-highlight-dark);
    font-size: 1.2rem;
    margin: -0.2rem 0;
}

.header-actions-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Modal Overlay & Card */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1.5rem;
}

.modal-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.modal-header h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.btn-close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    background: #fafafa;
}

.email-status {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-btn);
    font-size: 0.88rem;
    font-weight: 500;
}

.email-status.success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* Regras de Impressão de Alta Qualidade para PDF Executivo (Perfeitamente Alinhado e Sem Empilhar) */
@media print {
    @page {
        size: A4 portrait;
        margin: 8mm 6mm 8mm 6mm;
    }

    body, html {
        background: white !important;
        color: black !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 10.5px !important;
    }

    .sidebar,
    .no-print,
    .dashboard-header button,
    .header-actions-group,
    .btn-secondary,
    .modal-overlay,
    #wizard-stepper,
    #login-container {
        display: none !important;
    }

    .report-pdf-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        border-bottom: 2px solid #2FA4B6 !important;
        padding-bottom: 0.8rem !important;
        margin-bottom: 1.2rem !important;
        width: 100% !important;
    }

    .app-container {
        display: block !important;
        width: 100% !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #dashboard-container, #report-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Grids dos 4 Cartões KPI alinhados na mesma linha */
    .kpi-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
        margin-bottom: 1.2rem !important;
        width: 100% !important;
    }

    .kpi-card {
        flex: 1 1 24% !important;
        width: 24% !important;
        min-width: 24% !important;
        max-width: 24% !important;
        padding: 0.6rem 0.3rem !important;
        min-height: 120px !important;
        box-sizing: border-box !important;
        border: 1px solid #ccc !important;
    }

    .kpi-card h3 {
        font-size: 0.72rem !important;
        min-height: 1.8rem !important;
        line-height: 1.1 !important;
    }

    .kpi-card strong {
        font-size: 0.95rem !important;
        white-space: nowrap !important;
        letter-spacing: -0.5px !important;
    }

    .score-display strong {
        font-size: 1.4rem !important;
    }

    .badge {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.65rem !important;
    }

    .kpi-card small {
        font-size: 0.68rem !important;
        min-height: 1.2rem !important;
        white-space: nowrap !important;
    }

    /* Gráficos Lado a Lado na Impressão */
    .charts-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 0.8rem !important;
        margin-bottom: 1.2rem !important;
        width: 100% !important;
    }

    .chart-card {
        flex: 1 !important;
        width: 49% !important;
        height: 240px !important;
        padding: 0.6rem !important;
        box-sizing: border-box !important;
    }

    canvas {
        max-width: 100% !important;
        max-height: 190px !important;
    }

    .concept-grid-two-columns {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        padding: 0.8rem !important;
    }

    .concept-column-left, .concept-column-right {
        flex: 1 !important;
        width: 50% !important;
    }

    .rodape-fk-img {
        max-height: 200px !important;
    }

    .kpi-grid, 
    .charts-row, 
    .benchmark-container, 
    .action-plan-timeline, 
    .concept-card,
    .table-container {
        page-break-inside: avoid !important;
    }
}