/* ============================================
   Qualité Benefícios — Protótipo EAD
   ============================================ */

:root {
    --orange: #E87722;
    --orange-light: #F5A05A;
    --orange-dark: #C45F12;
    --orange-soft: rgba(232, 119, 34, 0.10);
    --navy: #0B1E3F;
    --navy-deep: #061530;
    --navy-light: #1A3160;
    --cream: #FBF7F2;
    --white: #FFFFFF;
    --ink: #16223A;
    --muted: #5B6B86;
    --success: #2E8B57;
    --line: rgba(11, 30, 63, 0.10);
    --line-soft: rgba(11, 30, 63, 0.05);
    --shadow-sm: 0 4px 16px rgba(11, 30, 63, 0.06);
    --shadow-md: 0 12px 32px rgba(11, 30, 63, 0.10);
    --shadow-lg: 0 24px 60px rgba(11, 30, 63, 0.18);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    --header-h: 72px;
    --sidebar-w: 360px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--orange);
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 10px 24px rgba(232, 119, 34, 0.32);
}
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(232, 119, 34, 0.44);
}
.btn-primary:disabled {
    background: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.6;
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--line);
    padding: 10px 20px;
    font-size: 0.9rem;
}
.btn-ghost:hover {
    background: var(--cream);
    border-color: var(--navy);
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at top right, rgba(232, 119, 34, 0.12), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(11, 30, 63, 0.08), transparent 60%),
        var(--cream);
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    min-height: 56px;
}
.login-logo .brand-logo {
    max-height: 64px;
    width: auto;
    display: block;
}
.login-logo .brand-fallback {
    display: none;
    align-items: center;
    gap: 10px;
}
.login-logo.no-logo .brand-logo { display: none; }
.login-logo.no-logo .brand-fallback { display: flex; }
.login-logo .mark {
    width: 44px; height: 44px;
    background: var(--orange); color: #fff;
    border-radius: 12px;
    display: grid; place-items: center;
    font-family: var(--font-serif); font-weight: 800; font-size: 1.4rem;
}
.login-logo .name {
    font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem;
    color: var(--navy);
}
.login-logo .name em { font-style: italic; color: var(--orange); font-weight: 600; }

.login-card h1 { font-size: 1.75rem; margin-bottom: 8px; }
.login-card .subtitle {
    color: var(--muted); font-size: 0.95rem; margin-bottom: 32px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--navy); margin-bottom: 8px;
}
.form-group label .required {
    color: var(--orange);
    margin-left: 2px;
}
.form-group input {
    width: 100%; padding: 14px 16px; font-size: 0.95rem; font-family: inherit;
    background: var(--cream);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    color: var(--ink);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-group input:focus {
    outline: none; border-color: var(--orange); background: var(--white);
}
.form-group .field-error {
    display: block;
    font-size: 0.78rem;
    color: var(--orange-dark);
    margin-top: 6px;
    min-height: 1em;
    line-height: 1.3;
}

.login-error {
    background: rgba(196, 95, 18, 0.08);
    border: 1px solid rgba(196, 95, 18, 0.25);
    color: var(--orange-dark);
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 0.9rem; margin-bottom: 20px;
    display: none;
}
.login-error.show { display: block; }

.login-card .btn-primary { width: 100%; margin-top: 8px; }

.lgpd-group { margin-top: 4px; margin-bottom: 16px; }
.lgpd-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    padding: 12px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--line);
    transition: border-color 0.2s var(--ease);
}
.lgpd-label:hover { border-color: var(--orange-light); }
.lgpd-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--orange);
    flex-shrink: 0;
}
.lgpd-label span {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}
.lgpd-label a {
    color: var(--orange-dark);
    text-decoration: underline;
    font-weight: 500;
}

.login-footnote {
    margin-top: 20px;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
}

.demo-credentials {
    margin-top: 28px;
    padding: 14px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--line);
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
}
.demo-credentials strong {
    color: var(--navy); display: block; margin-bottom: 8px;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.demo-credentials code {
    background: var(--white); padding: 1px 5px; border-radius: 4px;
    font-size: 0.74rem; color: var(--ink);
    white-space: nowrap;
}
.demo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.74rem;
}
.demo-table th,
.demo-table td {
    text-align: left;
    padding: 4px 6px;
    vertical-align: top;
    border-bottom: 1px solid var(--line-soft);
}
.demo-table th {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.demo-table tr:last-child td { border-bottom: none; }

/* ============================================
   APP — Header global
   ============================================ */

.app-body {
    background: #F5F1EB; /* tom levemente diferenciado pra dar profundidade */
}

.app-header {
    background: var(--navy);
    color: #fff;
    height: var(--header-h);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: var(--shadow-md);
}
.header-inner {
    width: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo {
    display: flex; align-items: center; gap: 10px; min-height: 40px;
}
.header-logo .brand-logo {
    max-height: 44px; width: auto; display: block;
    /* leve clareamento pra logo escura ficar legível no fundo navy.
       Se sua logo já é clara/branca, remova esta linha. */
    filter: brightness(1.05);
}
.header-logo .brand-fallback { display: none; align-items: center; gap: 10px; }
.header-logo.no-logo .brand-logo { display: none; }
.header-logo.no-logo .brand-fallback { display: flex; }
.header-logo .mark {
    width: 36px; height: 36px; background: var(--orange);
    border-radius: 10px; display: grid; place-items: center;
    font-family: var(--font-serif); font-weight: 800; font-size: 1.15rem;
}
.header-logo .name {
    font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem;
}
.header-logo .name em { color: var(--orange-light); font-weight: 500; }

.user-info { display: flex; align-items: center; gap: 16px; }
.user-info .who {
    text-align: right;
    line-height: 1.3;
    max-width: 360px;
}
.user-info .who strong { display: block; font-size: 0.95rem; }
.user-info .who span {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.80);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-info .who .who-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 1px;
}
.btn-logout {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 16px; border-radius: 999px;
    font-size: 0.85rem; font-weight: 500;
    transition: background 0.2s var(--ease);
}
.btn-logout:hover { background: rgba(255, 255, 255, 0.1); }

/* ============================================
   APP — Layout player + sidebar
   ============================================ */

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 32px 64px;
    min-height: calc(100vh - var(--header-h));
    align-items: start;
}

/* ===== Coluna principal ===== */
.player-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 32px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-soft);
}

.player-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--muted); font-size: 0.9rem; font-weight: 500;
    padding: 6px 0;
    transition: color 0.2s var(--ease);
}
.back-link:hover { color: var(--navy); }
.back-link span { font-size: 1.1rem; line-height: 1; }

.player-nav { display: flex; gap: 8px; }
.nav-btn {
    width: 40px; height: 36px;
    border-radius: 10px;
    background: var(--cream);
    color: var(--navy);
    font-size: 0.95rem;
    display: grid; place-items: center;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-btn:hover:not(:disabled) {
    background: var(--orange);
    color: #fff;
}
.nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.lesson-header { margin-bottom: 20px; }
.lesson-eyebrow {
    display: block;
    font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 6px;
}
.lesson-title {
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--navy-deep);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.player-frame iframe,
.player-frame > div {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: none;
}

.lesson-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
}
.status-pill {
    font-size: 0.8rem; font-weight: 600;
    padding: 6px 14px; border-radius: 999px;
    background: var(--cream); color: var(--muted);
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.status-pill.in-progress { background: var(--orange-soft); color: var(--orange-dark); }
.status-pill.done { background: rgba(46, 139, 87, 0.12); color: var(--success); }

.btn-cert {
    background: var(--success); color: #fff;
    padding: 10px 18px; border-radius: 999px;
    font-size: 0.85rem; font-weight: 600;
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.28);
    transition: transform 0.2s var(--ease);
}
.btn-cert:hover:not(:disabled) { transform: translateY(-1px); }
.btn-cert:disabled {
    background: var(--muted); box-shadow: none;
    cursor: not-allowed; opacity: 0.55;
}

.lesson-info { padding-top: 24px; }
.lesson-info h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    margin-bottom: 12px;
    font-family: var(--font-sans);
    font-weight: 700;
}
.lesson-info p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

.lesson-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
}
.lesson-meta div { display: flex; flex-direction: column; gap: 4px; }
.lesson-meta dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 600;
}
.lesson-meta dd {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 700;
}

.proto-notice {
    margin-top: 24px;
    padding: 14px 20px;
    background: var(--orange-soft);
    border-left: 3px solid var(--orange);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}
.proto-notice strong { color: var(--navy); }

/* ===== Sidebar direita ===== */
.player-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-soft);
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.sidebar-header h2 { font-size: 1.05rem; color: var(--navy); }
.sidebar-stats {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
}

.sidebar-search {
    position: relative;
}
.sidebar-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    transition: border-color 0.2s var(--ease);
}
.sidebar-search input:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--white);
}
.sidebar-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1rem;
    pointer-events: none;
}

.lesson-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    margin: 0 -8px;
    padding: 0 8px;
}

.lesson-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
    border: 1.5px solid transparent;
    align-items: center;
}
.lesson-item:hover { background: var(--cream); }
.lesson-item.active {
    background: var(--navy);
    border-color: var(--navy);
}
.lesson-item.active .lesson-number,
.lesson-item.active .lesson-item-title,
.lesson-item.active .lesson-now,
.lesson-item.active .lesson-progress-text {
    color: #fff;
}
.lesson-item.active .lesson-item-bar {
    background: rgba(255, 255, 255, 0.18);
}

.lesson-number {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: var(--cream);
    color: var(--navy);
    display: grid; place-items: center;
    font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem;
    position: relative;
    flex-shrink: 0;
}
.lesson-item.active .lesson-number {
    background: var(--orange);
    color: #fff;
}
.lesson-number .check {
    display: none;
    position: absolute;
    bottom: -4px; right: -4px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 0.7rem;
    place-items: center;
    border: 2px solid var(--white);
}
.lesson-item.done .lesson-number .check { display: grid; }

.lesson-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lesson-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lesson-now {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange);
    font-weight: 700;
    display: none;
}
.lesson-item.active .lesson-now { display: block; color: var(--orange-light); }

.lesson-item-progress {
    display: flex; align-items: center; gap: 8px;
}
.lesson-item-bar {
    flex: 1;
    height: 4px;
    background: var(--cream);
    border-radius: 999px;
    overflow: hidden;
}
.lesson-item-bar-fill {
    height: 100%;
    background: var(--orange);
    width: 0%;
    border-radius: 999px;
    transition: width 0.4s var(--ease);
}
.lesson-progress-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    min-width: 32px;
    text-align: right;
}
.lesson-item.done .lesson-item-bar-fill { background: var(--success); }
.lesson-item.done .lesson-progress-text { color: var(--success); }

/* ========== Modal Certificado ========== */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(6, 21, 48, 0.6);
    display: none; align-items: center; justify-content: center;
    z-index: 100; padding: 24px;
}
.modal-backdrop.show { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 520px; width: 100%;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.modal .icon {
    width: 64px; height: 64px;
    background: rgba(46, 139, 87, 0.12);
    color: var(--success);
    border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}
.modal h3 { font-size: 1.5rem; margin-bottom: 12px; }
.modal p { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.modal .modal-actions { display: flex; gap: 12px; justify-content: center; }

/* ============================================
   RELATÓRIO DE ACESSOS
   ============================================ */

.report-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 64px;
}

.print-header { display: none; }

.report-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.report-toolbar .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 8px;
}
.report-title { font-size: 2rem; margin-bottom: 6px; }
.report-sub { color: var(--muted); font-size: 0.95rem; }
.toolbar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-danger { color: var(--orange-dark); border-color: rgba(196, 95, 18, 0.3); }
.btn-danger:hover { background: rgba(196, 95, 18, 0.06); border-color: var(--orange-dark); }

.report-filters {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
}
.filter-group select {
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    min-width: 160px;
    cursor: pointer;
}
.filter-group select:focus { outline: none; border-color: var(--orange); }

.report-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.rstat {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}
.rstat-value {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--orange);
    font-weight: 700;
    line-height: 1.1;
}
.rstat-label {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 4px;
}

.report-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.company-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.company-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.company-name {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 4px;
}
.company-meta {
    font-size: 0.85rem;
    color: var(--muted);
}
.company-actions { display: flex; gap: 8px; flex-shrink: 0; }

.company-table-wrap {
    overflow-x: auto;
    margin: 0 -4px;
}
.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.report-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--cream);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
    font-weight: 700;
    border-bottom: 2px solid var(--line);
    white-space: nowrap;
}
.report-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}
.report-table tr:last-child td { border-bottom: none; }

.emp-name { font-weight: 600; color: var(--navy); }
.emp-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.col-access { font-size: 0.78rem; color: var(--muted); line-height: 1.5; white-space: nowrap; }

.rb {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.rb-none { background: var(--cream); color: var(--muted); }
.rb-in   { background: var(--orange-soft); color: var(--orange-dark); }
.rb-done { background: rgba(46, 139, 87, 0.12); color: var(--success); }
.rb-date {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 3px;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* ============================================
   Impressão (PDF via browser)
   ============================================ */
@media print {
    @page {
        size: A4 landscape;
        margin: 14mm;
    }
    body { background: #fff !important; }
    .no-print { display: none !important; }
    .app-header, .proto-notice, .empty-state { display: none !important; }

    .report-layout { padding: 0; max-width: none; margin: 0; }

    .print-header {
        display: block;
        margin-bottom: 18px;
        border-bottom: 2px solid var(--navy);
        padding-bottom: 8px;
    }
    .print-header h1 {
        font-size: 1.3rem;
        color: var(--navy);
        margin: 0;
    }
    .print-subtitle {
        font-size: 0.85rem;
        color: var(--muted);
        margin-top: 4px;
    }

    .company-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        padding: 14px !important;
        margin-bottom: 14px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .company-card + .company-card {
        page-break-before: always;
        break-before: page;
    }
    .company-name { font-size: 1rem; }
    .company-meta { font-size: 0.75rem; }
    .report-table { font-size: 0.78rem; }
    .report-table th { background: #f4f0eb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .rb {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ============================================
   Responsivo
   ============================================ */
@media (max-width: 1024px) {
    .player-layout {
        grid-template-columns: 1fr;
        padding: 24px 20px 48px;
        gap: 24px;
    }
    .player-sidebar {
        position: static;
        max-height: none;
    }
    .lesson-list { max-height: 420px; }
}

@media (max-width: 720px) {
    .header-inner { padding: 0 20px; }
    .user-info .who { display: none; }
    .header-logo .name { font-size: 0.95rem; }

    .login-card { padding: 36px 24px; }

    .player-main { padding: 22px 22px 24px; }
    .lesson-title { font-size: 1.35rem; }
    .lesson-meta { grid-template-columns: 1fr; gap: 12px; }
    .lesson-actions { flex-wrap: wrap; justify-content: flex-start; }

    .report-layout { padding: 20px; }
    .report-stats { grid-template-columns: repeat(2, 1fr); }
    .report-filters { flex-direction: column; align-items: stretch; }
    .filter-group select { min-width: 0; width: 100%; }
}
