@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
    --ink: #172b3a;
    --muted: #6b7d8c;
    --navy: #1d2546;
    --brand-red: #e30613;
    --brand-soft: #fdf0f1;
    --line: #e4eaed;
    --paper: #f5f7f9;
    --radius: 16px;
    --bs-primary: #e30613;
    --bs-success: #e30613;
    --bs-link-color: #e30613;
    --bs-body-font-family: 'DM Sans', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body.app, body.login-page { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', 'Segoe UI', sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e30613; outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: 'Manrope', 'Segoe UI', sans-serif; font-weight: 750; letter-spacing: -.035em; }
h3 { font-size: 23px; } h4 { font-size: 19px; } h5 { font-size: 17px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 9999; padding: 12px 20px; background: white; color: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1040; width: 250px; display: flex; flex-direction: column; padding: 30px 18px 20px; color: #c3d2d8; background: var(--navy); overflow-y: auto; }
.app-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 38px; color: white; font-family: 'Manrope', sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -.7px; text-decoration: none; }
.app-brand:hover { color: white; }
.app-brand small { display: block; margin-top: 5px; color: #b3bad0; font-family: 'DM Sans', sans-serif; font-size: 8px; font-weight: 600; letter-spacing: 1.65px; }
.nav-caption { padding: 0 14px; margin-bottom: 13px; color: #8f9abf; font-size: 9px; font-weight: 700; letter-spacing: 1.7px; }
.app-nav-link { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 11px 13px; margin: 3px 0; border-radius: 9px; color: #c1c8dd; text-decoration: none; font-size: 12px; font-weight: 500; transition: background .16s, color .16s; }
.app-nav-link svg, .menu-toggle svg { width: 19px; height: 19px; flex: 0 0 auto; }
.app-nav-link:hover { background: #2b355c; color: white; }
.app-nav-link.is-active { background: #333d65; color: #ffffff; box-shadow: inset 3px 0 0 #e30613; }
.nav-dot { width: 5px; height: 5px; background: #e30613; margin-left: auto; border-radius: 50%; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; }
.sidebar-bottom > small { display: block; margin: 16px 13px 0; color: #9ea9c6; font-size: 10px; }
.system-status { display: flex; align-items: center; gap: 8px; margin: 4px 13px 18px; color: #adb7d2; font-size: 10px; }
.system-status span, .workspace-tag span { height: 6px; width: 6px; border-radius: 50%; background: #6dceaa; box-shadow: 0 0 0 3px #65c6a51a; }
.app-stage { margin-left: 250px; min-height: 100vh; }
.app-topbar { height: 83px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; background: white; border-bottom: 1px solid var(--line); }
.topbar-location { display: flex; align-items: center; gap: 16px; color: #83939e; font-size: 11px; }
.topbar-location strong { color: #395260; font-weight: 500; }
.breadcrumb-slash { margin: 0 14px; color: #b8c2c9; }
.account-chip { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; }
.account-chip small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
.account-avatar { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #dce0ed; border-radius: 50%; color: #1d2546; background: #eef0f8; font-size: 13px; }
.menu-toggle { display: none; border: 0; padding: 7px; color: var(--ink); background: transparent; }
.nav-scrim { display: none; }
.workspace { max-width: 1700px; margin: 0 auto; padding: 35px 38px 24px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 9px; font-size: 9px; color: #83939f; font-weight: 700; letter-spacing: 1.8px; }
.page-heading h1 { margin: 0 0 8px; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.25; }
.page-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.workspace-tag { display: flex; flex-shrink: 0; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #dce8e1; border-radius: 6px; background: #f0f8f3; color: #52816a; font-size: 10px; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1700px; margin: 0 auto; padding: 20px 38px 26px; color: #91a0ab; font-size: 10px; }
.app-footer > span:first-child { font-weight: 700; color: #627b87; }
.workspace .container, .workspace .container-box, .workspace .main, .workspace .wrapper { width: 100%; max-width: none; margin: 0 !important; padding: 0; min-height: auto; display: block; }
.workspace > .btn-dashboard, .workspace .btn-dashboard { display: none; }
.card, .card-checklist { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 3px 12px #223a4a03; overflow: hidden; }
.card-checklist { padding: 28px; }
.card h4, .card h5 { margin-bottom: 22px; }
.card .card-body { padding: 26px; }
.card.p-3 { padding: 24px !important; }
.card.p-4 { padding: 28px !important; }
.card-stats { position: relative; padding: 23px 25px !important; min-height: 127px; border-top: 3px solid #1d2546; }
.card-stats h6 { color: #6a7e8c; font-family: inherit; font-size: 11px; font-weight: 500; letter-spacing: .1px; }
.card-stats h3 { margin: 11px 0 0; font-size: 32px; font-weight: 800; }
.card-stats::after { content: '↗'; display: grid; place-items: center; position: absolute; right: 23px; top: 24px; height: 34px; width: 34px; border-radius: 10px; color: #1d2546; background: #f0f2f8; font-size: 18px; }
.dashboard-content > .row > div:nth-child(2) .card-stats { border-top-color: #d6a14d; }
.dashboard-content > .row > div:nth-child(2) .card-stats::after { content: '◷'; color: #af7e35; background: #fcf5e7; }
.dashboard-content > .row > div:nth-child(3) .card-stats { border-top-color: #1d2546; }
.dashboard-content > .row > div:nth-child(3) .card-stats::after { content: '✓'; color: #1d2546; background: #edf0f8; }
.dashboard-content .row > .row { margin-left: 0; margin-right: 0; padding: 0; }
.dashboard-content .row > .row > div:first-child { padding-left: 0; }
.dashboard-content .row > .row > div:last-child { padding-right: 0; }
.dashboard-content .card canvas { margin-top: 16px; max-height: 270px; }
.dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 24px 28px; border-radius: 15px; background: #eceef5; border: 1px solid #dce0eb; }
.dashboard-welcome h2 { font-size: 20px; margin: 0 0 7px; }
.dashboard-welcome p { font-size: 12px; margin: 0; color: #6d7794; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; padding: 10px 16px; font-size: 12px; font-weight: 600; transition: background .16s, box-shadow .16s; }
.btn svg { width: 17px; height: 17px; }
.btn-primary, .btn-success, .btn-submit { color: white; border: 1px solid var(--brand-red); background: var(--brand-red); }
.btn-primary:hover, .btn-success:hover, .btn-submit:hover { color: white; border-color: #bd0510; background: #bd0510; box-shadow: 0 3px 8px #e3061320; }
.btn-dark { color: #355564; border-color: #dce5e9; background: #f7fafb; }
.btn-dark:hover { color: #153a49; background: #eaf1f4; border-color: #ccdbe2; }
.btn-danger, .btn-clear { color: #b54c54; border: 1px solid #f4dce0; background: #fdf0f2; }
.btn-danger:hover, .btn-clear:hover { color: #9f2635; background: #fae0e5; border-color: #edc2cb; }
.btn-warning { color: #946b2e; border-color: #efe2c9; background: #fcf5e7; }
.btn-secondary { color: #4e6573; border-color: #dce5e9; background: #edf2f5; }
.btn-sm { padding: 7px 10px; font-size: 10px; border-radius: 6px; }
.form-control, .form-select { min-height: 43px; border: 1px solid #dbe4e9; border-radius: 8px; background-color: #fff; color: var(--ink); padding: 10px 12px; font-size: 12px; }
.form-control::placeholder { color: #98a6b1; }
.form-control:focus, .form-select:focus { border-color: #e30613; box-shadow: 0 0 0 3px #e3061310; }
.form-control[readonly] { color: #537080; background: #f5f8fa; }
textarea.form-control { min-height: 95px; }
label, .form-label { margin-bottom: 7px; color: #425c6b; font-size: 11px; font-weight: 600; }
form .row { align-items: end; }
.form-control-sm { min-height: 35px; padding: 7px 10px; }
input[type=radio], input[type=checkbox] { height: 18px; width: 18px; accent-color: var(--brand-red); vertical-align: middle; cursor: pointer; }
.table { margin: 0; --bs-table-color: #4c6271; --bs-table-border-color: #eaf0f3; --bs-table-hover-bg: #f5faf9; font-size: 11px; }
.table > :not(caption) > * > * { padding: 15px 12px; vertical-align: middle; box-shadow: none; }
.table thead, .table-dark, .table-checklist th, .table-light { --bs-table-bg: #f4f7f9; --bs-table-color: #718592; --bs-table-border-color: #e5ecef; }
.table th { color: #718592; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.table-responsive { border: 1px solid #e6ecef; border-radius: 9px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-checklist td:first-child { min-width: 230px; }
.table-checklist td:not(:first-child), .table-checklist th:not(:first-child) { text-align: center; }
.table-checklist input[type=radio] { margin: 0 8px; }
.title { margin: 0 0 28px; font-size: 18px; text-align: left !important; }
.signature-box { width: 100%; max-width: 100%; border: 1px dashed #94b6ba; border-radius: 10px; background: #f9fcfc; touch-action: none; }
canvas.is-invalid { border: 2px solid #c44658 !important; }
.badge { border-radius: 5px; padding: 6px 9px; font-size: 9px; font-weight: 600; letter-spacing: .25px; }
.badge-aprobado, .badge.bg-success { color: #08755f; background: #e6f5ed !important; }
.badge-pendiente, .badge.bg-warning { color: #a46f17 !important; background: #fcf3df !important; }
.badge-rechazado, .badge.bg-danger { color: #b44654; background: #fbecef !important; }
.alert { border: 1px solid #dbe8ee; border-radius: 10px; background: #f0f7fa; color: #466778; font-size: 12px; }
.alert-warning { border-color: #efe0be; background: #fff8e9; color: #936d22; }
.pagination { gap: 5px; margin: 20px 0 0; }
.page-link { border: 1px solid var(--line); border-radius: 6px !important; color: #647d8c; font-size: 11px; padding: 7px 11px; }
.active > .page-link { border-color: var(--brand-red); background: var(--brand-red); }
.modal-content { border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 90px #0b2c3b30; }
.modal-header, .modal-footer { padding: 22px 26px; border-color: var(--line); }
.modal-body { padding: 24px 26px; }
.page-edit .workspace > form { max-width: 760px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.page-edit .workspace > h3, .page-approvals .workspace > h3, .page-targets .workspace > h4, .page-cleaning .main > h4 { display: none; }
.page-evidence .wrapper > .card { max-width: 820px; padding: 30px; }
.page-evidence #preview img { width: 110px !important; height: 110px !important; border: 1px solid var(--line); }
.upload-guidance { display: flex; align-items: center; gap: 13px; padding: 18px; margin-bottom: 25px; border: 1px dashed #aab2cb; border-radius: 10px; background: #f4f5fa; color: #1d2546; font-size: 12px; }
.app .bg-primary, .app .bg-success { background-color: var(--brand-red) !important; }
.app .text-primary { color: var(--brand-red) !important; }

/* The sign-in page has its own two-column composition. */
.login-page { min-height: 100vh; background: white; }
.login-layout { display: grid; grid-template-columns: 1.06fr 1fr; min-height: 100vh; }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 48px 10%; background: #1d2546; color: white; }
.login-story::before { content: ''; position: absolute; width: 560px; height: 560px; border: 1px solid #6f7ba644; border-radius: 50%; top: 22%; left: 26%; box-shadow: 0 0 0 65px #6f7ba614, 0 0 0 130px #6f7ba60c; pointer-events: none; }
.login-story .app-brand { position: relative; padding: 0; }
.login-story-content { position: relative; max-width: 460px; margin: 70px 0; }
.login-kicker { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 24px; color: #f3b1b7; font-size: 10px; letter-spacing: 1.7px; text-transform: uppercase; }
.login-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #e30613; }
.login-story h1 { margin: 0 0 22px; color: white; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.17; letter-spacing: -2px; font-weight: 650; }
.login-story h1 span { color: #ffffff; }
.login-story-content > p { max-width: 350px; font-size: 13px; color: #b7c0d8; line-height: 1.9; }
.story-modules { display: grid; gap: 15px; margin-top: 38px; }
.story-modules > div { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #dbe0ee; }
.story-modules svg { width: 17px; height: 17px; color: #ff7580; }
.login-story footer { position: relative; display: flex; justify-content: space-between; gap: 15px; color: #a0abc8; font-size: 10px; }
.login-form-side { display: flex; flex-direction: column; justify-content: center; padding: 48px 12%; }
.login-form-wrap { width: 100%; max-width: 370px; margin: auto; }
.login-form-wrap .eyebrow { color: #7b939c; margin-bottom: 18px; }
.login-form-wrap h2 { margin: 0 0 10px; font-size: 30px; }
.login-subtitle { color: #8798a3; font-size: 12px; line-height: 1.8; margin-bottom: 35px; }
.login-form-wrap .form-control { min-height: 49px; background: #fafcfd; font-size: 13px; }
.login-form-wrap .form-label { display: block; font-size: 11px; margin-bottom: 9px; }
.login-form-wrap .mb-4 { margin-bottom: 23px !important; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 60px; }
.password-visibility { position: absolute; top: 0; bottom: 0; right: 4px; padding: 0 12px; border: 0; background: transparent; color: #1d2546; font-size: 11px; }
.login-submit { justify-content: space-between; padding: 14px 18px; width: 100%; margin-top: 8px; }
.login-help { margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--line); color: #91a0aa; font-size: 11px; line-height: 1.9; }
.login-help strong { display: block; font-weight: 500; color: #5b7480; }
.login-bottom { margin-top: 40px; text-align: center; color: #96a7b0; font-size: 10px; }

@media (min-width: 1600px) { .workspace { padding-top: 45px; } }
@media (max-width: 1199px) {
    .app-sidebar { width: 218px; padding-inline: 12px; }
    .app-brand { font-size: 21px; gap: 9px; }
    .app-brand small { font-size: 7px; }
    .app-stage { margin-left: 218px; }
    .workspace { padding-inline: 25px; }
    .app-topbar, .app-footer { padding-inline: 25px; }
    .dashboard-welcome { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 767px) {
    .app-sidebar { width: 250px; visibility: hidden; transform: translateX(-100%); transition: transform .2s; }
    .app-stage { margin-left: 0; }
    .app-topbar { height: 70px; padding-inline: 15px; }
    .menu-toggle { display: flex; }
    .topbar-location { gap: 8px; }
    .topbar-location > span { font-size: 10px; }
    .breadcrumb-slash { margin: 0 5px; }
    .account-chip > span:last-child { display: none; }
    .workspace { padding: 26px 16px 20px; }
    .page-heading { margin-bottom: 22px; align-items: flex-start; }
    .page-heading h1 { font-size: 27px; }
    .workspace-tag { display: none; }
    .app-footer { padding: 14px 16px 24px; font-size: 9px; }
    .card-checklist, .card.p-4, .card.p-3, .page-edit .workspace > form, .page-evidence .wrapper > .card { padding: 19px !important; }
    .card-stats { min-height: 107px; }
    .card-stats h3 { font-size: 28px; }
    .dashboard-welcome { padding: 21px; }
    .dashboard-welcome h2 { font-size: 18px; }
    .quick-actions .btn { padding-inline: 10px; font-size: 11px; }
    .menu-open { overflow: hidden; }
    .menu-open .app-sidebar { visibility: visible; transform: translateX(0); }
    .menu-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 1039; border: 0; background: #09233277; }
    .login-layout { grid-template-columns: 1fr; }
    .login-story { padding: 27px 25px 32px; min-height: auto; }
    .login-story .app-brand { font-size: 22px; }
    .login-story-content { margin: 40px 0 0; max-width: none; }
    .login-story h1 { font-size: 32px; max-width: 400px; letter-spacing: -1px; }
    .login-story-content > p { max-width: none; font-size: 12px; margin-bottom: 0; }
    .login-kicker { margin-bottom: 15px; font-size: 9px; }
    .story-modules, .login-story footer { display: none; }
    .login-form-side { padding: 35px 25px 24px; }
    .login-form-wrap { max-width: 440px; }
    .login-form-wrap h2 { font-size: 26px; }
    .login-form-wrap .eyebrow { display: none; }
    .login-subtitle { margin-bottom: 25px; }
    .login-bottom { margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print {
    .app-sidebar, .app-topbar, .app-footer, .menu-toggle, .workspace-tag, .quick-actions { display: none !important; }
    .app-stage { margin: 0; }
    .workspace { padding: 0; }
    .card { break-inside: avoid; box-shadow: none; }
}

.role-badge { display: inline-flex; padding: 5px 9px; border: 1px solid #e0e9ee; border-radius: 5px; background: #f3f7fa; color: #536084; font-size: 10px; }
.app-nav-link { font-size: 13px; }
.table { font-size: 12px; }
.page-targets .workspace > form { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }

/* CEVA identity. Official logo files retain their original proportions and colors. */
.app-brand { flex-direction: column; align-items: flex-start; gap: 17px; padding-bottom: 32px; }
.ceva-logo { display: block; width: 150px; height: auto; }
.brand-product { color: #fff; font-size: 15px; letter-spacing: -.2px; font-weight: 600; }
.app-brand .brand-product small { margin-top: 5px; font-size: 8px; letter-spacing: 1.5px; }
.topbar-logo { width: 88px; height: auto; vertical-align: middle; }
.login-story .ceva-logo { width: 185px; }
.login-story .brand-product { font-size: 17px; }
.login-story h1 span { color: #fff; text-decoration: underline; text-decoration-color: #e30613; text-decoration-thickness: 5px; text-underline-offset: 12px; }
.login-form-logo { display: block; width: 112px; height: auto; margin-bottom: 30px; }
.btn-primary, .btn-success, .btn-submit { --bs-btn-active-bg: #bd0510; --bs-btn-active-border-color: #bd0510; }
.app .text-primary { color: #e30613 !important; }
.nav-dot { background: #e30613; }
.app-nav-link.is-active { box-shadow: inset 3px 0 0 #e30613; }
.login-story { border-bottom: 5px solid #e30613; }
@media(max-width:767px) {
    .login-story .app-brand { flex-direction: row; align-items: center; gap: 20px; }
    .login-story .ceva-logo { width: 135px; }
    .login-story .brand-product { font-size: 14px; }
    .login-form-logo { display: none; }
    .topbar-logo { width: 65px; }
}

.workspace form.row { align-items: end; }
.workspace-tag { color: #536084; background: #eef0f7; border-color: #dce0ed; }
.workspace-tag span { background: #e30613; box-shadow: 0 0 0 3px #e3061310; }

.evidence-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.evidence-heading h2 { font-size: 20px; margin: 0 0 8px; }
.evidence-heading p, .evidence-note { color: #69788d; font-size: 12px; margin: 0; line-height: 1.7; }
.evidence-required { border-radius: 6px; background: #fdf0f1; color: #b00612; font-size: 11px; padding: 8px 10px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.evidence-capture { position: relative; padding: 20px; border: 1px solid #e1e5ed; border-radius: 12px; background: #fafbfd; }
.evidence-capture h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 15px; }
.evidence-capture h3 > span { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; background: #e9ecf4; color: #536084; font-size: 11px; }
.evidence-preview { display: grid; place-items: center; min-height: 190px; aspect-ratio: 4 / 3; overflow: hidden; border: 1px dashed #b8c0d2; border-radius: 9px; background: #f0f2f8; }
.evidence-preview > span { padding: 18px; color: #6b7792; font-size: 12px; text-align: center; }
.evidence-preview img { display: block; width: 100%; height: 100%; max-height: 340px; object-fit: contain; }
.evidence-preview [hidden] { display: none; }
.camera-trigger { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin: 16px 0 0; padding: 10px 15px; border: 1px solid #1d2546; border-radius: 8px; background: #1d2546; color: #fff; cursor: pointer; font-size: 13px; }
.camera-trigger svg { width: 21px; height: 21px; }
.camera-file { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; bottom: 50px; left: 50%; }
.evidence-status { margin: 10px 0 0; color: #68768e; font-size: 11px; min-height: 18px; }
.evidence-preview.evidence-multiple { display: block; min-height: 160px; aspect-ratio: auto; padding: 10px; }
.evidence-multiple .evidence-empty { display: grid; place-items: center; min-height: 138px; }
.evidence-multiple .evidence-empty[hidden] { display: none; }
.evidence-thumbnails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.evidence-thumb { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #dce0eb; border-radius: 8px; background: #fff; }
.evidence-preview .evidence-thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.evidence-thumb figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; padding: 7px; color: #68768e; font-size: 11px; }
.evidence-thumb .btn { min-height: 36px; min-width: 44px; padding: 6px 8px; }
.evidence-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.evidence-actions .camera-trigger { padding: 10px 6px; gap: 6px; font-size: 12px; }
.gallery-trigger { color: #1d2546; background: #fff; }
.evidence-capture:has(input[data-source="camera"]:focus-visible) label[for^="foto-"], .evidence-capture:has(input[data-source="gallery"]:focus-visible) label[for^="galeria-"] { outline: 3px solid #e30613; outline-offset: 3px; }
.evidence-note { margin-top: 16px; }
.cleaning-submit-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 18px 0; }
.cleaning-submit-bar p { margin: 0; color: #68768e; font-size: 12px; }
.cleaning-submit-bar .btn { min-height: 48px; }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.save-confirmation { max-width: 740px; margin: 24px auto; text-align: center; }
.save-confirmation .saved-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 8px auto 24px; border-radius: 50%; background: #e6f5ed; color: #08755f; font-size: 30px; }
.save-confirmation h2 { font-size: clamp(22px, 4vw, 28px); line-height: 1.4; margin-bottom: 16px; }
.save-confirmation p { color: #68768e; font-size: 14px; line-height: 1.8; }
.save-confirmation .saved-detail { margin-bottom: 24px; font-size: 12px; }
.saved-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.app-stage, .workspace, .card, .card-checklist, .row > * { min-width: 0; }

@media (max-width: 1023px) {
    .app-sidebar { width: min(280px, 85vw); visibility: hidden; transform: translateX(-100%); transition: transform .2s; }
    .app-stage { margin-left: 0; }
    .menu-toggle { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
    .menu-open { overflow: hidden; }
    .menu-open .app-sidebar { visibility: visible; transform: translateX(0); }
    .menu-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 1039; border: 0; background: #09233277; }
    .app-nav-link { min-height: 48px; }
}

@media (max-width: 767px) {
    .form-control, .form-select, .login-form-wrap .form-control { font-size: 16px; min-height: 48px; }
    label, .form-label { font-size: 13px; }
    .btn, .btn-sm, .page-link { min-height: 44px; min-width: 44px; font-size: 13px; }
    .btn { padding: 11px 14px; }
    .btn-sm { padding: 9px 11px; }
    input[type="radio"], input[type="checkbox"] { width: 24px; height: 24px; }
    .topbar-location { min-width: 0; }
    .topbar-location > span { display: flex; align-items: center; min-width: 0; gap: 6px; }
    .topbar-location strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 155px; font-size: 12px; }
    .account-avatar { flex-shrink: 0; }
    .page-heading h1 { overflow-wrap: anywhere; }
    .workspace { padding-inline: 12px; }
    .workspace .card, .workspace .card-checklist { border-radius: 12px; }
    .workspace form > .row, .workspace form .row { row-gap: 16px; }
    .cleaning-date label { font-size: 11px; }
    .cleaning-date .form-control { padding-inline: 8px; font-size: 14px; }
    .quick-actions, .quick-actions .btn { width: 100%; }
    .card .d-flex.justify-content-between { flex-wrap: wrap; gap: 8px; }
    .card h5 { margin-bottom: 8px; }
    .evidence-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .evidence-capture { padding: 16px; }
    .evidence-heading h2 { font-size: 19px; }
    .evidence-required { font-size: 12px; }
    .evidence-preview { min-height: 180px; }
    .evidence-status, .evidence-note { font-size: 12px; }
    .cleaning-submit-bar { flex-direction: column; align-items: stretch; }
    .cleaning-submit-bar .btn { width: 100%; }
    .table-responsive:has(.mobile-records), .table-responsive:has(.mobile-checklist) { border: 0; overflow: visible; }
    .mobile-records, .mobile-records tbody, .mobile-checklist, .mobile-checklist tbody { display: block; width: 100%; }
    .mobile-records thead, .mobile-checklist thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .mobile-records tbody tr, .mobile-checklist tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; padding: 16px; border: 1px solid #e1e5ed; border-radius: 10px; background: #fff; }
    .mobile-records td, .mobile-checklist td { display: block; min-width: 0; width: auto !important; padding: 0 !important; border: 0; overflow-wrap: anywhere; font-size: 13px; text-align: left; }
    .mobile-records td::before, .mobile-checklist td::before { content: attr(data-label); display: block; margin-bottom: 7px; color: #77849c; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
    .mobile-records td:last-child { grid-column: 1 / -1; }
    .mobile-records td:last-child form { display: inline-block; }
    .mobile-records td:first-child:last-child::before { display: none; }
    .mobile-records td .d-flex { flex-wrap: wrap; }
    .mobile-records .badge { font-size: 11px; }
    .mobile-checklist tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mobile-checklist td:first-child { grid-column: 1 / -1; min-width: 0; font-weight: 600; line-height: 1.6; }
    .mobile-checklist td:first-child::before { display: none; }
    .mobile-checklist td:not(:first-child) { text-align: center; }
    .mobile-checklist td.checklist-notes { grid-column: 1 / -1; text-align: left; }
    .mobile-checklist input[type="radio"] { margin: 6px 0; }
    .page-cleaning .mobile-records tr { grid-template-columns: minmax(0, 1fr); }
    .page-cleaning .mobile-records td:first-child { font-weight: 600; line-height: 1.6; }
    .page-cleaning .mobile-records td:first-child::before { display: none; }
    .page-cleaning .mobile-records td:last-child { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
    .page-cleaning .mobile-records td:last-child::before { margin-bottom: 0; }
    .page-cleaning .mobile-records select { width: 120px; }
    .pagination { justify-content: center; }
    .modal-dialog { margin: 10px; }
    .modal-content { max-height: calc(100dvh - 20px); }
    .modal-body { overflow-y: auto; padding: 16px; }
    .signature-box { display: block; height: 180px; }
}

.live-evidence {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 12px;
    border: 0;
    background: #10152a;
    color: white;
}
.live-evidence[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.live-evidence::backdrop { background: #10152a; }
.live-evidence-toolbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.live-evidence video { width: 100%; height: 100%; object-fit: contain; }
.live-evidence p { margin: 0; }
