:root {
    --brand-navy: oklch(0.362 0.085 266);
    --brand-cyan: oklch(0.639 0.141 238);
    --ink: oklch(0.245 0.039 264);
    --muted: oklch(0.515 0.032 260);
    --line: oklch(0.89 0.014 255);
    --surface: oklch(1 0 0);
    --canvas: oklch(0.978 0.005 248);
    --accent: var(--brand-navy);
    --accent-hover: oklch(0.305 0.078 266);
    --accent-soft: oklch(0.958 0.025 238);
    --focus: var(--brand-cyan);
    --danger: oklch(0.48 0.17 25);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.app-header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem clamp(1rem, 4vw, 3rem); background: var(--surface); border-top: 4px solid var(--brand-navy); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: 128px; height: auto; }
.brand-product { display: flex; flex-direction: column; padding-left: .8rem; border-left: 1px solid var(--line); }
.brand small { color: var(--muted); margin-top: .1rem; }
.login-brand-logo { display: block; width: min(230px, 70%); height: auto; }
.account { display: flex; align-items: center; gap: 1rem; color: var(--muted); }
.account form { margin: 0; }
.text-button { padding: .5rem; border: 0; background: transparent; color: var(--accent); font-weight: 650; }
.page-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) 0; }
.login-layout { min-height: calc(100vh - 6rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.login-intro h1 { margin: 2rem 0 .75rem; font-size: 3.2rem; letter-spacing: -.035em; text-wrap: balance; }
.login-intro p { max-width: 46ch; margin: 0; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.login-form { display: flex; flex-direction: column; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.login-form h2 { margin: 0; font-size: 1.5rem; }
.supporting { margin: .5rem 0 1.75rem; color: var(--muted); line-height: 1.5; }
.login-form label { margin: 1rem 0 .45rem; font-weight: 650; }
.login-form input { width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid oklch(0.68 0.025 255); border-radius: 8px; background: white; color: var(--ink); }
.primary-button, .secondary-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .7rem 1.1rem; border-radius: 8px; font-weight: 700; text-decoration: none; transition: background-color 170ms ease-out, border-color 170ms ease-out, color 170ms ease-out, transform 170ms ease-out; }
.primary-button { border: 0; background: var(--accent); color: white; }
.primary-button:hover:not(:disabled) { background: var(--accent-hover); }
.primary-button:active:not(:disabled) { transform: translateY(1px); }
.secondary-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.secondary-button:hover { background: var(--canvas); }
.login-form .primary-button { margin-top: 1.5rem; }
.form-error { padding: .75rem; border-radius: 8px; background: oklch(0.94 0.04 25); color: oklch(0.38 0.16 25); line-height: 1.4; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; }
.page-heading h1 { margin: 0 0 .45rem; font-size: 2rem; letter-spacing: -.025em; }
.page-heading p { margin: 0; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.metrics div { display: flex; min-width: 0; flex-direction: column; gap: .55rem; padding: 1.25rem; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics span { color: var(--muted); font-size: .9rem; }
.metrics strong { font-size: 1.75rem; }
.list-section { margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.25rem; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: 1.15rem; }
.section-heading span { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: var(--muted); background: oklch(0.985 0.003 255); font-size: .82rem; font-weight: 700; }
td small { display: block; margin-top: .2rem; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 160ms ease-out; }
tbody tr:hover { background: var(--accent-soft); }
.status { display: inline-flex; padding: .3rem .55rem; border-radius: 999px; background: oklch(0.93 0.015 255); color: oklch(0.38 0.03 255); font-size: .82rem; font-weight: 650; }
.status-completed { background: oklch(0.92 0.06 150); color: oklch(0.38 0.11 150); }
.status-pending_it_signature, .status-pending_employee_signature { background: oklch(0.93 0.08 90); color: oklch(0.36 0.09 85); }
.status-voided { background: oklch(0.93 0.05 25); color: oklch(0.4 0.15 25); }
.empty-state { padding: clamp(2.5rem, 7vw, 5rem) 1.25rem; text-align: center; }
.empty-state h3 { margin: 0 0 .5rem; }
.empty-state p { margin: 0; color: var(--muted); }
.messages { margin-bottom: 1.5rem; }
.message { padding: .8rem 1rem; border-radius: 8px; background: oklch(0.92 0.06 150); color: oklch(0.35 0.1 150); }
.breadcrumb { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.breadcrumb a, .table-link { color: var(--accent-hover); }
.compact-heading { align-items: center; margin-bottom: 1.5rem; }
.act-form { display: flex; flex-direction: column; gap: 1rem; }
.form-section { padding: clamp(1.15rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.form-section-heading { margin-bottom: 1.25rem; }
.form-section-heading h2 { margin: 0; font-size: 1.12rem; }
.form-section-heading p { margin: .35rem 0 0; color: var(--muted); line-height: 1.45; }
.row-heading, .asset-form-heading, .title-with-status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-field { min-width: 0; }
.form-field label { display: block; margin-bottom: .45rem; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 44px; padding: .65rem .75rem; border: 1px solid oklch(0.68 0.025 255); border-radius: 8px; background: var(--surface); color: var(--ink); }
.form-field textarea { resize: vertical; line-height: 1.45; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: oklch(0.52 0.035 255); }
.form-field small { display: block; margin-top: .4rem; color: var(--muted); line-height: 1.35; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--danger); }
.field-error { display: block; margin-top: .4rem; color: var(--danger); font-size: .88rem; }
.glpi-lookup { position: relative; margin-bottom: 1.25rem; padding: 1rem; border: 1px solid oklch(0.86 0.035 238); border-radius: 10px; background: var(--accent-soft); }
.glpi-lookup > label { display: block; margin-bottom: .45rem; font-weight: 750; }
.compact-lookup { margin-bottom: 1rem; background: var(--surface); }
.lookup-input-wrap { position: relative; }
.lookup-input-wrap input { width: 100%; min-height: 46px; padding: .7rem 2.8rem .7rem .8rem; border: 1px solid oklch(0.58 0.035 255); border-radius: 8px; background: var(--surface); color: var(--ink); }
.lookup-help, .lookup-status { margin: .4rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.lookup-status:empty { display: none; }
.lookup-spinner { position: absolute; top: 50%; right: 1rem; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: lookup-spin .75s linear infinite; }
.lookup-results { position: absolute; z-index: 12; top: calc(100% - 2.9rem); right: 1rem; left: 1rem; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 4px 8px color-mix(in oklch, var(--ink) 14%, transparent); }
.lookup-result { display: grid; width: 100%; gap: .22rem; padding: .8rem 1rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.lookup-result:last-child { border-bottom: 0; }
.lookup-result:hover, .lookup-result:focus-visible { background: var(--accent-soft); }
.lookup-result strong { font-size: .95rem; }
.lookup-result span, .lookup-result small { color: var(--muted); line-height: 1.35; }
.lookup-result small:empty { display: none; }
.lookup-empty { margin: 0; padding: 1rem; color: var(--muted); }
@keyframes lookup-spin { to { transform: rotate(360deg); } }
.asset-forms { display: flex; flex-direction: column; gap: 1rem; }
.asset-form { padding: 1.25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.asset-form-heading { margin-bottom: 1rem; }
.asset-form-heading h3 { margin: 0; font-size: 1rem; }
.danger-text { color: var(--danger); }
.delete-control { display: none; }
.form-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: .75rem; padding: 1rem 0; background: color-mix(in oklch, var(--canvas) 92%, transparent); backdrop-filter: blur(8px); }
.detail-heading h1 { margin: 0; }
.title-with-status { justify-content: flex-start; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 1rem; }
.detail-main { display: flex; flex-direction: column; gap: 1rem; }
.data-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 0; }
.data-list div, .equipment-list dl div { min-width: 0; }
dt { color: var(--muted); font-size: .85rem; }
dd { margin: .25rem 0 0; overflow-wrap: anywhere; }
.equipment-list { display: flex; flex-direction: column; gap: .75rem; }
.equipment-list article { padding: 1rem 0; border-top: 1px solid var(--line); }
.equipment-list article:first-child { padding-top: 0; border-top: 0; }
.equipment-list h3, .equipment-list p { margin: 0; }
.equipment-list > article > div > p { margin-top: .25rem; color: var(--muted); }
.equipment-list dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 0; }
.asset-notes, .prose { margin: 1rem 0 0; line-height: 1.55; }
.process-panel { position: sticky; top: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.process-panel h2 { margin: 0 0 1.25rem; font-size: 1.05rem; }
.process-list { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 28px 1fr; gap: .75rem; color: var(--muted); }
.process-list li > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 999px; background: oklch(0.92 0.01 255); color: var(--muted); font-size: .78rem; font-weight: 750; }
.process-list li.is-current { color: var(--ink); }
.process-list li.is-current > span { background: var(--accent); color: white; }
.process-list li.is-complete > span { background: oklch(0.55 0.13 150); color: white; }
.process-list strong, .process-list small { display: block; }
.process-list small { margin-top: .2rem; color: var(--muted); line-height: 1.35; }
.signing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); align-items: start; gap: 1rem; }
.document-preview, .signature-form, .public-document { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.document-preview { padding: clamp(1.25rem, 3vw, 2rem); }
.document-title { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.document-title span { color: var(--muted); font-size: .9rem; }
.document-title h2 { margin: .35rem 0 0; font-size: 1.35rem; }
.compact-data { margin-top: 1.5rem; }
.preview-assets { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.preview-assets > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.preview-assets span { color: var(--muted); }
.signature-form { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.25rem, 3vw, 1.75rem); }
.signature-form > h2 { margin: 0; font-size: 1.15rem; }
.signature-label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .45rem; font-weight: 650; }
.signature-field canvas { display: block; width: 100%; height: 190px; border: 1px solid oklch(0.6 0.03 255); border-radius: 8px; background: white; cursor: crosshair; }
.signature-field canvas:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.signature-help { margin: .45rem 0 0; color: var(--muted); font-size: .85rem; }
.signature-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: .75rem; margin-top: .25rem; }
.acceptance { display: grid; grid-template-columns: 20px 1fr; gap: .65rem; align-items: start; padding: .85rem; border-radius: 8px; background: var(--canvas); line-height: 1.45; }
.acceptance input { width: 18px; height: 18px; margin: .15rem 0 0; accent-color: var(--accent); }
.acceptance.has-error { outline: 1px solid var(--danger); }
.public-signing-card { margin: clamp(2rem, 8vh, 6rem) auto; padding: clamp(1.5rem, 5vw, 2.5rem); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.public-card-logo { display: block; width: min(190px, 62%); height: auto; }
.narrow-card { max-width: 520px; }
.public-signing-card h1 { margin: 1.5rem 0 .75rem; font-size: 1.8rem; letter-spacing: -.025em; }
.public-signing-card > p { color: var(--muted); line-height: 1.6; }
.public-signing-card form { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.public-signing-card > small { color: var(--muted); line-height: 1.4; }
.full-button { width: 100%; }
.public-document { max-width: 820px; margin: 0 auto; overflow: hidden; }
.public-document > header { display: flex; align-items: center; gap: .75rem; padding: 1rem clamp(1rem, 4vw, 2rem); border-bottom: 1px solid var(--line); }
.public-brand-logo { display: block; width: 122px; height: auto; }
.public-document > header > div { display: flex; flex-direction: column; }
.public-document > header small { color: var(--muted); }
.public-document-heading, .public-document > section, .public-signature { margin: 0; padding: clamp(1.25rem, 4vw, 2rem); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.public-document-heading h1 { margin: 0; font-size: clamp(1.65rem, 5vw, 2.25rem); letter-spacing: -.03em; }
.public-document-heading p { margin: .5rem 0 0; color: var(--muted); }
.public-document > section > h2 { margin: 0 0 1.25rem; font-size: 1.15rem; }
.public-signature { background: oklch(0.985 0.003 255); }
.success-card { text-align: center; }
.success-symbol { display: grid; width: 56px; height: 56px; margin: 0 auto; place-items: center; border-radius: 999px; background: oklch(0.9 0.08 150); color: oklch(0.35 0.12 150); font-size: 1.7rem; font-weight: 800; }
.success-card h1 { margin-top: 1rem; }
@media (max-width: 800px) {
    .login-layout { grid-template-columns: 1fr; align-content: center; gap: 2rem; }
    .login-intro { display: none; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .metrics div + div { border-left: 0; }
    .metrics div:nth-child(even) { border-left: 1px solid var(--line); }
    .metrics div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .detail-layout { grid-template-columns: 1fr; }
    .process-panel { position: static; order: -1; }
    .equipment-list dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .signing-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .brand-logo { width: 108px; }
    .brand-product { display: none; }
    .account > span { display: none; }
    .page-heading { align-items: stretch; flex-direction: column; }
    .page-heading .primary-button { width: 100%; }
    .metrics { grid-template-columns: 1fr; }
    .metrics div:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
    .metrics div:first-child { border-top: 0; }
    .form-grid, .data-list, .equipment-list dl { grid-template-columns: 1fr; }
    .row-heading { align-items: stretch; flex-direction: column; }
    .row-heading .secondary-button { width: 100%; }
    .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .detail-heading { align-items: stretch; }
    .title-with-status { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Aplicación interna: sistema visual basado en el mockup aprobado */
:root {
    --sidebar: #102a43;
    --sidebar-deep: #0c2238;
    --primary: #1677ee;
    --primary-hover: #0b66d4;
    --primary-soft: #eaf3ff;
    --ink: #17243b;
    --muted: #66758b;
    --line: #dfe6ee;
    --surface: #ffffff;
    --canvas: #f5f7fa;
    --accent: var(--primary);
    --accent-hover: var(--primary-hover);
    --accent-soft: var(--primary-soft);
    --focus: #51a3ff;
}
.icon { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-body { min-height: 100vh; background: var(--canvas); }
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 30; display: flex; height: 100vh; min-width: 0; flex-direction: column; padding: 14px 12px 12px; background: var(--sidebar); color: #fff; }
.sidebar-brand { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 5px 8px 17px; color: #fff; text-decoration: none; }
.sidebar-brand-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #fff; color: var(--primary); }
.sidebar-brand-icon .icon { width: 23px; height: 23px; stroke-width: 2; }
.sidebar-brand > span:last-child { min-width: 0; }
.sidebar-brand strong, .sidebar-brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-brand strong { font-size: .92rem; letter-spacing: -.01em; }
.sidebar-brand small { margin-top: 2px; color: #b8c7d7; font-size: .68rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { display: flex; min-height: 41px; align-items: center; gap: 11px; padding: 0 12px; border-radius: 6px; color: #dce6f0; font-size: .84rem; font-weight: 600; text-decoration: none; transition: background-color 160ms ease-out, color 160ms ease-out; }
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-nav a.is-active { background: var(--primary); color: #fff; }
.sidebar-account { display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; align-items: center; gap: 9px; margin-top: auto; padding: 13px 7px 2px; border-top: 1px solid rgba(255,255,255,.14); }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid rgba(255,255,255,.65); border-radius: 50%; background: #d7e8f7; color: var(--sidebar); font-size: .78rem; font-weight: 800; }
.sidebar-account-copy { min-width: 0; }
.sidebar-account-copy strong, .sidebar-account-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-copy strong { font-size: .76rem; }
.sidebar-account-copy small { margin-top: 2px; color: #b8c7d7; font-size: .65rem; }
.sidebar-account form { margin: 0; }
.sidebar-account button { width: 24px; height: 30px; padding: 0; border: 0; background: transparent; color: #cfdae6; font-size: 1.3rem; }
.app-workspace { min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 20; display: flex; height: 62px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 25px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.app-topbar > strong { font-size: .9rem; }
.topbar-menu { display: none; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.topbar-account { display: flex; align-items: center; gap: 9px; color: #35445a; font-size: .76rem; }
.notification-icon { display: grid; width: 34px; height: 34px; place-items: center; color: #4c5e73; }
.notification-icon::after { position: absolute; width: 6px; height: 6px; margin: -15px -15px 0 0; border: 2px solid #fff; border-radius: 50%; background: #e34c5a; content: ""; }
.avatar-small { width: 29px; height: 29px; border: 0; background: #d9e9f7; font-size: .7rem; }
.app-content { width: 100%; max-width: 1480px; margin: 0 auto; padding: 25px clamp(20px, 2.4vw, 36px) 40px; }
.public-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) 0; }
.sidebar-backdrop { display: none; }
.page-heading { margin-bottom: 18px; }
.page-heading h1 { margin-bottom: 4px; font-size: 1.35rem; letter-spacing: -.02em; }
.page-heading p { font-size: .88rem; }
.compact-heading { min-height: 45px; align-items: center; }
.primary-button, .secondary-button { min-height: 38px; padding: .56rem .9rem; border-radius: 6px; font-size: .82rem; }
.primary-button { background: var(--primary); box-shadow: 0 2px 5px rgba(16,94,190,.18); }
.primary-button:hover:not(:disabled) { background: var(--primary-hover); }
.button-with-icon { gap: 7px; }
.compact-button { min-height: 35px; padding: .45rem .8rem; }
.metric-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; border: 0; border-radius: 0; background: transparent; }
.metric-cards > article { display: flex; min-width: 0; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 2px 8px rgba(26,46,70,.055); }
.metric-cards > article > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; padding: 0; }
.metric-cards > article > div + div { border: 0; }
.metric-cards span { color: var(--muted); font-size: .78rem; }
.metric-cards strong { color: var(--ink); font-size: 1.5rem; line-height: 1.1; }
.metric-cards small { color: #8a96a7; font-size: .67rem; }
.metric-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 9px; }
.metric-icon .icon { width: 21px; height: 21px; }
.metric-icon.blue { background: #e9f2ff; color: #1677ee; }
.metric-icon.amber { background: #fff1d9; color: #ee9718; }
.metric-icon.green { background: #e3f7e9; color: #25a759; }
.metric-icon.teal { background: #e8f1ff; color: #1f63b8; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 245px; align-items: start; gap: 14px; margin-top: 17px; }
.list-section { margin-top: 17px; border-radius: 8px; box-shadow: 0 2px 8px rgba(26,46,70,.045); }
.dashboard-grid .list-section { margin-top: 0; }
.section-heading { min-height: 52px; padding: 13px 16px; }
.section-heading h2 { font-size: .96rem; }
.section-heading a { color: var(--primary); font-size: .76rem; font-weight: 650; }
th, td { padding: .73rem 1rem; }
th { background: #f8fafc; font-size: .72rem; }
td { font-size: .77rem; }
.status { padding: .25rem .48rem; font-size: .68rem; }
.quick-actions { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 2px 8px rgba(26,46,70,.045); }
.quick-actions h2 { margin: 0; padding: 16px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.quick-actions > a { display: flex; min-height: 61px; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid #ebeff4; color: var(--ink); text-decoration: none; transition: background-color 150ms ease-out; }
.quick-actions > a:last-child { border-bottom: 0; }
.quick-actions > a:hover { background: #f7faff; }
.quick-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid #bfd7f8; border-radius: 6px; color: var(--primary); }
.quick-actions strong, .quick-actions small { display: block; }
.quick-actions strong { font-size: .78rem; }
.quick-actions small { margin-top: 2px; color: var(--muted); font-size: .66rem; }
.flush-top { margin-top: 0; }
.filter-bar { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.filter-bar select { min-width: 150px; min-height: 35px; padding: 0 30px 0 10px; border: 1px solid #ced8e3; border-radius: 6px; background: #fff; color: var(--ink); font-size: .75rem; }
.search-control { display: flex; min-width: 250px; flex: 1; align-items: center; gap: 8px; min-height: 35px; padding: 0 10px; border: 1px solid #ced8e3; border-radius: 6px; background: #fff; color: #8b98a9; }
.search-control input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .75rem; }
.search-wide { max-width: 650px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 17px; }
.chart-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(26,46,70,.045); }
.donut-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 24px; padding: 24px; }
.donut { display: grid; width: 132px; height: 132px; place-items: center; border-radius: 50%; background: conic-gradient(#2eaa60 0 calc(var(--completed) * 1%), #f0a11d 0 calc((var(--completed) + var(--pending)) * 1%), #2f7de1 0 calc((var(--completed) + var(--pending) + var(--draft)) * 1%), #dfe6ee 0); }
.donut::before { grid-area: 1 / 1; width: 78px; height: 78px; border-radius: 50%; background: #fff; content: ""; }
.donut > span { z-index: 1; grid-area: 1 / 1; text-align: center; }
.donut strong, .donut small { display: block; }
.donut strong { font-size: 1.25rem; }
.donut small { color: var(--muted); font-size: .7rem; }
.chart-legend { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }
.chart-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 7px; font-size: .75rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.green-dot { background: #2eaa60; }.amber-dot { background: #f0a11d; }.blue-dot { background: #2f7de1; }
.bar-chart { display: flex; min-height: 180px; flex-direction: column; justify-content: center; gap: 15px; padding: 22px; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 140px) minmax(100px, 1fr) 28px; align-items: center; gap: 9px; font-size: .73rem; }
.bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row > div { height: 8px; border-radius: 4px; background: #edf2f7; }
.bar-row i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.muted-copy { color: var(--muted); font-size: .8rem; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.settings-card { display: flex; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(26,46,70,.045); }
.settings-card h2 { margin: 1px 0 5px; font-size: .98rem; }
.settings-card p { margin: 0 0 12px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px; }
.settings-row strong { font-size: .85rem; }.settings-row p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.form-section, .document-preview, .signature-form, .process-panel { border-radius: 8px; box-shadow: 0 2px 8px rgba(26,46,70,.04); }
.form-section { padding: 1.25rem; }
.glpi-lookup { border-radius: 7px; }
.asset-form { border-radius: 7px; }

@media (max-width: 1050px) {
    .metric-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-actions h2 { grid-column: 1 / -1; }
    .quick-actions > a:nth-last-child(2) { border-bottom: 0; }
    .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .app-layout { display: block; }
    .sidebar { position: fixed; left: 0; transform: translateX(-100%); width: 228px; transition: transform 190ms ease-out; }
    .app-body.sidebar-open { overflow: hidden; }
    .sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; z-index: 25; inset: 0; border: 0; background: rgba(9,25,42,.44); }
    .sidebar-open .sidebar-backdrop { display: block; }
    .topbar-menu { display: grid; }
    .app-topbar { justify-content: flex-start; padding: 0 18px; }
    .topbar-account { margin-left: auto; }
    .report-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-wrap: wrap; }
    .filter-bar .search-control { flex-basis: 100%; }
}
@media (max-width: 620px) {
    .app-topbar { height: 56px; }
    .app-topbar > strong { font-size: .82rem; }
    .topbar-account > span:last-child, .notification-icon { display: none; }
    .app-content { padding: 18px 14px 30px; }
    .page-heading { align-items: stretch; flex-direction: column; }
    .page-heading .primary-button { width: 100%; }
    .metric-cards { grid-template-columns: 1fr; }
    .metric-cards > article { padding: 14px; }
    .quick-actions { grid-template-columns: 1fr; }
    .quick-actions > a { border-bottom: 1px solid #ebeff4 !important; }
    .quick-actions > a:last-child { border-bottom: 0 !important; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar select, .filter-bar .search-control, .filter-bar .primary-button, .filter-bar .secondary-button { width: 100%; min-width: 0; max-width: none; }
    .donut-layout { grid-template-columns: 1fr; justify-items: center; }
    .chart-legend { width: 100%; }
    .settings-row { align-items: stretch; flex-direction: column; }
}
