:root {
    --op-green: #39b54a;
    --op-green-dark: #249536;
    --op-black: #111111;
    --op-surface: #181a19;
    --op-surface-2: #222522;
    --op-surface-3: #2b2f2c;
    --op-border: #343a35;
    --op-text: #f7f8f7;
    --op-muted: #aeb7b0;
    --op-danger: #ef5b5b;
    --op-warning: #ffbf3f;
    --op-blue: #4c8dff;
    --op-purple: #9b76ff;
    --op-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    --op-radius: 18px;
    --op-sidebar-width: 270px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--op-black); }
body { margin: 0; min-height: 100vh; font-family: 'Roboto', sans-serif; background: var(--op-black); color: var(--op-text); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.op-body { overflow-x: hidden; }
.op-shell { min-height: 100vh; display: grid; grid-template-columns: var(--op-sidebar-width) minmax(0, 1fr); }
.op-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; background: linear-gradient(180deg, #151715 0%, #101110 100%); border-right: 1px solid var(--op-border); display: flex; flex-direction: column; z-index: 50; }
.op-brand { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 26px; text-decoration: none; }
.op-brand img { width: 185px; height: auto; display: block; }
.op-brand span { color: var(--op-green); font-size: 10px; font-weight: 900; letter-spacing: 0.34em; padding-left: 3px; }
.op-nav { display: flex; flex-direction: column; gap: 7px; }
.op-nav-link { min-height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-radius: 12px; color: var(--op-muted); text-decoration: none; font-size: 14px; font-weight: 700; transition: .2s ease; }
.op-nav-link i { width: 22px; text-align: center; font-size: 16px; }
.op-nav-link:hover { background: var(--op-surface-2); color: var(--op-text); transform: translateX(2px); }
.op-nav-link.active { background: linear-gradient(135deg, rgba(57,181,74,.22), rgba(57,181,74,.08)); color: #fff; border: 1px solid rgba(57,181,74,.32); }
.op-nav-link.active i { color: var(--op-green); }
.op-nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--op-danger); border-radius: 99px; font-size: 11px; color: #fff; }
.op-sidebar-user { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 16px 12px 0; border-top: 1px solid var(--op-border); min-width: 0; }
.op-sidebar-user > div:last-child { min-width: 0; }
.op-sidebar-user strong, .op-sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-sidebar-user strong { font-size: 13px; }
.op-sidebar-user small { color: var(--op-muted); font-size: 11px; margin-top: 3px; }

.op-main-wrap { min-width: 0; }
.op-topbar { min-height: 82px; padding: 14px 30px; position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; justify-content: space-between; background: rgba(17,17,17,.86); border-bottom: 1px solid var(--op-border); backdrop-filter: blur(18px); }
.op-topbar-title { min-width: 0; margin-right: auto; }
.op-topbar-title small { color: var(--op-green); font-weight: 900; font-size: 10px; letter-spacing: .16em; }
.op-topbar-title h1 { margin: 2px 0 0; font-size: 22px; line-height: 1.2; }
.op-topbar-actions { display: flex; align-items: center; gap: 9px; }
.op-user-button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--op-border); background: var(--op-surface); color: var(--op-text); padding: 7px 12px 7px 8px; border-radius: 14px; }
.op-user-button-copy { display: flex; flex-direction: column; align-items: flex-start; max-width: 180px; }
.op-user-button-copy strong, .op-user-button-copy small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-user-button-copy strong { font-size: 12px; }
.op-user-button-copy small { color: var(--op-muted); font-size: 10px; margin-top: 2px; }
.op-icon-button { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--op-border); background: var(--op-surface); color: var(--op-text); cursor: pointer; transition: .2s ease; }
.op-icon-button:hover { border-color: var(--op-green); color: var(--op-green); }
.op-menu-button { display: none; }
.op-avatar { width: 42px; height: 42px; flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 13px; background: var(--op-green); color: #08100a; font-weight: 900; font-size: 13px; }
.op-avatar.small { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
.op-avatar.xl { width: 76px; height: 76px; border-radius: 22px; font-size: 22px; box-shadow: 0 12px 34px rgba(57,181,74,.2); }

.op-content { max-width: 1540px; margin: 0 auto; padding: 28px 30px 50px; }
.op-kicker { color: var(--op-green); font-size: 11px; font-weight: 900; letter-spacing: .2em; }
.op-muted { color: var(--op-muted); }
.op-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.op-page-head h2, .op-welcome-card h2 { margin: 4px 0 6px; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; }
.op-page-head p, .op-welcome-card p { margin: 0; color: var(--op-muted); max-width: 680px; }

.op-primary-button, .op-secondary-button, .op-danger-button, .op-success-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; padding: 0 18px; font-weight: 900; border: 1px solid transparent; cursor: pointer; transition: .2s ease; text-decoration: none; }
.op-primary-button { background: var(--op-green); color: #071108; }
.op-primary-button:hover { background: #48c75a; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(57,181,74,.2); }
.op-secondary-button { background: var(--op-surface-2); color: var(--op-text); border-color: var(--op-border); }
.op-secondary-button:hover { border-color: var(--op-green); color: var(--op-green); }
.op-danger-button { background: rgba(239,91,91,.14); color: #ff8989; border-color: rgba(239,91,91,.32); }
.op-success-button { background: rgba(57,181,74,.18); color: #63db73; border-color: rgba(57,181,74,.36); }
.op-primary-button.full { width: 100%; min-height: 50px; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.op-welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px; border: 1px solid var(--op-border); border-radius: 24px; background: radial-gradient(circle at 90% 10%, rgba(57,181,74,.18), transparent 38%), linear-gradient(135deg, #1d211e, #171917); box-shadow: var(--op-shadow); }
.op-welcome-profile { min-width: 330px; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: rgba(10,12,10,.52); border: 1px solid rgba(255,255,255,.08); }
.op-welcome-profile strong, .op-welcome-profile span { display: block; }
.op-welcome-profile span { color: var(--op-muted); font-size: 13px; margin-top: 4px; }
.op-role-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.op-role-chip, .op-status-badge { display: inline-flex; align-items: center; border-radius: 99px; font-size: 10px; font-weight: 900; letter-spacing: .04em; padding: 5px 9px; }
.op-role-chip { background: rgba(57,181,74,.14); color: #66dd77; border: 1px solid rgba(57,181,74,.28); }

.op-metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.op-metric-card { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--op-border); border-radius: var(--op-radius); background: var(--op-surface); }
.op-metric-card small, .op-metric-card strong { display: block; }
.op-metric-card small { color: var(--op-muted); font-size: 11px; }
.op-metric-card strong { margin-top: 4px; font-size: 25px; }
.op-metric-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; }
.op-metric-icon.green { background: rgba(57,181,74,.15); color: #61d772; }
.op-metric-icon.blue { background: rgba(76,141,255,.15); color: #72a5ff; }
.op-metric-icon.amber { background: rgba(255,191,63,.15); color: #ffcb65; }
.op-metric-icon.purple { background: rgba(155,118,255,.15); color: #b69aff; }
.op-metric-icon.dark { background: rgba(255,255,255,.08); color: #fff; }
.op-metric-icon.red { background: rgba(239,91,91,.14); color: #ff8585; }

.op-grid-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr); gap: 20px; }
.op-panel { border: 1px solid var(--op-border); border-radius: var(--op-radius); background: var(--op-surface); padding: 22px; }
.op-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.op-panel-header small { color: var(--op-green); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.op-panel-header h3 { margin: 3px 0 0; font-size: 19px; }
.op-text-link { color: var(--op-green); text-decoration: none; font-size: 12px; font-weight: 900; }
.op-list { display: grid; gap: 9px; }
.op-list-item { display: flex; align-items: center; gap: 14px; padding: 13px; border-radius: 13px; background: var(--op-surface-2); border: 1px solid transparent; }
.op-list-item:hover { border-color: var(--op-border); }
.op-list-item-main { min-width: 0; flex: 1; }
.op-list-item-main strong, .op-list-item-main span { display: block; }
.op-list-item-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.op-list-item-main span { color: var(--op-muted); font-size: 11px; margin-top: 3px; }
.op-list-item-amount { text-align: right; font-size: 12px; }
.op-profile-details { margin: 0; display: grid; gap: 2px; }
.op-profile-details div { padding: 12px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--op-border); }
.op-profile-details dt { color: var(--op-muted); font-size: 12px; }
.op-profile-details dd { margin: 0; text-align: right; font-size: 12px; font-weight: 700; word-break: break-word; }
.op-quick-links { display: grid; gap: 8px; margin-top: 18px; }
.op-quick-links a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px; background: var(--op-surface-2); text-decoration: none; font-size: 12px; font-weight: 700; }
.op-quick-links a i { color: var(--op-green); width: 18px; }

.op-filter-bar { display: grid; grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, .35fr)) auto; gap: 10px; margin-bottom: 20px; }
.op-filter-bar.compact { grid-template-columns: minmax(260px, 1fr) minmax(180px, .35fr) auto; }
.op-filter-bar select, .op-search { min-height: 46px; border: 1px solid var(--op-border); border-radius: 12px; background: var(--op-surface); color: var(--op-text); }
.op-filter-bar select { padding: 0 13px; }
.op-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.op-search i { color: var(--op-muted); }
.op-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--op-text); }

.op-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.op-car-card { overflow: hidden; border: 1px solid var(--op-border); border-radius: 18px; background: var(--op-surface); transition: .2s ease; }
.op-car-card:hover { transform: translateY(-3px); border-color: rgba(57,181,74,.45); box-shadow: var(--op-shadow); }
.op-car-image { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; background: #e9eae9; overflow: hidden; }
.op-car-image img { width: 100%; height: 100%; object-fit: contain; }
.op-car-image .op-status-badge { position: absolute; top: 12px; right: 12px; }
.op-car-card-body { padding: 17px; }
.op-car-card-body h3 { margin: 0; min-height: 47px; font-size: 18px; line-height: 1.3; }
.op-car-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--op-muted); font-size: 11px; margin: 9px 0 14px; }
.op-car-price { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding-top: 13px; border-top: 1px solid var(--op-border); }
.op-car-price strong { font-size: 21px; color: var(--op-green); }
.op-car-actions { display: flex; gap: 7px; }
.op-car-actions button { width: 38px; height: 38px; padding: 0; }

.op-status-badge.solicitado, .op-status-badge.disponible, .op-status-badge.aprobado { background: rgba(57,181,74,.16); color: #68db77; border: 1px solid rgba(57,181,74,.32); }
.op-status-badge.apartado, .op-status-badge.pendiente { background: rgba(255,191,63,.15); color: #ffd06b; border: 1px solid rgba(255,191,63,.3); }
.op-status-badge.vendido { background: rgba(155,118,255,.16); color: #bea4ff; border: 1px solid rgba(155,118,255,.3); }
.op-status-badge.oculto, .op-status-badge.cancelado { background: rgba(255,255,255,.08); color: #cdd2ce; border: 1px solid rgba(255,255,255,.12); }
.op-status-badge.rechazado { background: rgba(239,91,91,.15); color: #ff8989; border: 1px solid rgba(239,91,91,.3); }

.op-requirement-list, .op-approval-list { display: grid; gap: 12px; }
.op-requirement-card, .op-approval-card { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(280px, 1.2fr) minmax(180px, .7fr) auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--op-border); border-radius: 17px; background: var(--op-surface); }
.op-approval-card { grid-template-columns: minmax(170px,.7fr) minmax(280px,1.1fr) minmax(200px,.8fr) auto; }
.op-requirement-card h3, .op-approval-card h3 { margin: 4px 0 0; font-size: 16px; }
.op-card-label { color: var(--op-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.op-card-copy { min-width: 0; }
.op-card-copy p { margin: 5px 0 0; color: var(--op-muted); font-size: 12px; }
.op-card-copy strong { overflow-wrap: anywhere; }
.op-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.op-pending-change { margin-top: 8px; font-size: 10px; color: #ffd06b; }
.op-transition { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; }
.op-transition i { color: var(--op-green); }

.op-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.op-page-button { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--op-border); border-radius: 10px; background: var(--op-surface); color: var(--op-text); cursor: pointer; }
.op-page-button.active { background: var(--op-green); color: #081108; border-color: var(--op-green); font-weight: 900; }

.op-dialog { width: min(620px, calc(100vw - 28px)); max-height: calc(100vh - 30px); padding: 0; border: 1px solid var(--op-border); border-radius: 20px; background: var(--op-surface); color: var(--op-text); box-shadow: var(--op-shadow); }
.op-dialog.wide { width: min(980px, calc(100vw - 28px)); }
.op-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(6px); }
.op-dialog-card { padding: 22px; overflow: auto; max-height: calc(100vh - 32px); }
.op-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 17px; margin-bottom: 18px; border-bottom: 1px solid var(--op-border); }
.op-dialog-header small { color: var(--op-green); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.op-dialog-header h3 { margin: 3px 0 0; font-size: 23px; }
.op-dialog-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--op-border); border-radius: 10px; background: var(--op-surface-2); color: var(--op-text); cursor: pointer; }
.op-dialog-description { color: var(--op-muted); margin: -2px 0 18px; }
.op-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.op-form-grid { display: grid; gap: 15px; }
.op-form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.op-form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.op-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.op-field > span { font-size: 12px; font-weight: 800; }
.op-field input, .op-field select, .op-field textarea { width: 100%; min-height: 44px; border: 1px solid var(--op-border); border-radius: 10px; background: #111311; color: var(--op-text); padding: 10px 12px; outline: 0; transition: .2s ease; }
.op-field textarea { resize: vertical; min-height: 96px; }
.op-field input:focus, .op-field select:focus, .op-field textarea:focus { border-color: var(--op-green); box-shadow: 0 0 0 3px rgba(57,181,74,.12); }
.op-form-message { padding: 11px 13px; border-radius: 10px; font-size: 12px; }
.op-form-message.error { background: rgba(239,91,91,.13); color: #ff8d8d; border: 1px solid rgba(239,91,91,.28); }
.op-form-message.success { background: rgba(57,181,74,.13); color: #6be07b; border: 1px solid rgba(57,181,74,.28); }

.op-hierarchy-form-panel { margin-bottom: 18px; }
.op-table-wrap { overflow-x: auto; }
.op-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.op-table th, .op-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--op-border); vertical-align: middle; }
.op-table th { color: var(--op-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.op-table td { font-size: 12px; }
.op-table tr:last-child td { border-bottom: 0; }

.op-loading, .op-empty { grid-column: 1/-1; min-height: 160px; display: grid; place-items: center; padding: 30px; color: var(--op-muted); border: 1px dashed var(--op-border); border-radius: 16px; text-align: center; }
.op-empty i { display: block; font-size: 32px; color: var(--op-green); margin-bottom: 12px; }

.op-toast-zone { position: fixed; right: 18px; bottom: 18px; z-index: 9999; display: grid; gap: 8px; width: min(380px, calc(100vw - 36px)); }
.op-toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; background: #242824; color: #fff; border: 1px solid var(--op-border); box-shadow: var(--op-shadow); animation: opToastIn .22s ease; }
.op-toast.success i { color: var(--op-green); }
.op-toast.error i { color: var(--op-danger); }
@keyframes opToastIn { from { opacity: 0; transform: translateY(10px); } }

/* Login */
.op-login-body { overflow-x: hidden; }
.op-login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .7fr); }
.op-login-brand-panel { min-height: 100vh; padding: clamp(34px, 5vw, 76px); position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: radial-gradient(circle at 70% 25%, rgba(57,181,74,.21), transparent 35%), linear-gradient(145deg, #171a18, #0e0f0e 70%); }
.op-login-brand-panel::after { content: ''; position: absolute; width: 500px; height: 500px; right: -180px; bottom: -240px; border: 80px solid rgba(57,181,74,.08); border-radius: 50%; }
.op-login-logo { width: min(330px, 76%); position: relative; z-index: 1; }
.op-login-brand-copy { max-width: 720px; position: relative; z-index: 1; }
.op-login-brand-copy h1 { margin: 12px 0 18px; font-size: clamp(42px, 5vw, 76px); line-height: .98; letter-spacing: -.04em; }
.op-login-brand-copy p { max-width: 620px; color: var(--op-muted); font-size: 17px; line-height: 1.65; }
.op-login-features { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.op-login-features div { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: 12px; font-weight: 700; }
.op-login-features i { color: var(--op-green); }
.op-login-form-panel { display: grid; place-items: center; padding: 35px; background: #f2f4f2; }
.op-login-card { width: min(460px, 100%); padding: 32px; border-radius: 24px; background: #fff; color: #171917; box-shadow: 0 35px 90px rgba(15,23,17,.15); }
.op-login-card-header { display: flex; align-items: center; gap: 15px; }
.op-login-card-header small { color: var(--op-green-dark); font-size: 10px; letter-spacing: .16em; font-weight: 900; }
.op-login-card-header h2 { margin: 3px 0 0; font-size: 30px; }
.op-icon-mark { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--op-green); color: #071108; }
.op-login-card .op-muted { color: #687069; font-size: 13px; margin: 18px 0 22px; }
.op-login-card .op-field { margin-bottom: 16px; }
.op-login-card .op-field > span { color: #252925; }
.op-input-icon { position: relative; display: flex; align-items: center; }
.op-input-icon > i { position: absolute; left: 14px; color: #8a928b; z-index: 1; }
.op-login-card .op-input-icon input { padding-left: 42px; padding-right: 44px; background: #f8faf8; border-color: #d9dfda; color: #151815; min-height: 50px; }
.op-password-toggle { position: absolute; right: 7px; width: 36px; height: 36px; border: 0; background: transparent; color: #6f776f; cursor: pointer; }
.op-login-help { display: flex; gap: 8px; color: #747c75; font-size: 11px; line-height: 1.5; margin: 18px 0 0; }

.op-sidebar-overlay { display: none; }

@media (max-width: 1240px) {
    .op-metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .op-catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .op-requirement-card, .op-approval-card { grid-template-columns: minmax(180px,.8fr) minmax(260px,1.2fr) auto; }
    .op-requirement-card > :nth-child(3), .op-approval-card > :nth-child(3) { grid-column: 1/3; }
}

@media (max-width: 960px) {
    .op-shell { grid-template-columns: 1fr; }
    .op-sidebar { position: fixed; left: 0; top: 0; width: min(var(--op-sidebar-width), 84vw); transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--op-shadow); }
    .op-sidebar.open { transform: translateX(0); }
    .op-sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 45; opacity: 0; visibility: hidden; transition: .2s ease; }
    .op-sidebar-overlay.open { opacity: 1; visibility: visible; }
    .op-menu-button { display: inline-grid; }
    .op-content { padding: 24px 20px 44px; }
    .op-topbar { padding: 12px 20px; }
    .op-grid-two { grid-template-columns: 1fr; }
    .op-filter-bar, .op-filter-bar.compact { grid-template-columns: 1fr 1fr; }
    .op-search { grid-column: 1/-1; }
    .op-login-shell { grid-template-columns: 1fr; }
    .op-login-brand-panel { min-height: 420px; }
    .op-login-brand-copy h1 { font-size: clamp(38px, 9vw, 62px); }
    .op-login-form-panel { padding: 28px 18px 45px; }
}

@media (max-width: 680px) {
    .op-topbar { min-height: 70px; padding: 10px 12px; }
    .op-topbar-title small { display: none; }
    .op-topbar-title h1 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .op-user-button-copy { display: none; }
    .op-user-button { padding: 4px; border: 0; background: transparent; }
    .op-content { padding: 18px 12px 36px; }
    .op-page-head { align-items: stretch; flex-direction: column; }
    .op-page-head .op-primary-button { width: 100%; }
    .op-welcome-card { padding: 21px; flex-direction: column; align-items: stretch; }
    .op-welcome-profile { min-width: 0; width: 100%; }
    .op-metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
    .op-metric-card { padding: 13px; gap: 9px; }
    .op-metric-card strong { font-size: 20px; }
    .op-metric-icon { width: 36px; height: 36px; border-radius: 10px; }
    .op-panel { padding: 16px; }
    .op-filter-bar, .op-filter-bar.compact { grid-template-columns: 1fr; }
    .op-search { grid-column: auto; }
    .op-catalog-grid { grid-template-columns: 1fr; }
    .op-requirement-card, .op-approval-card { grid-template-columns: 1fr; gap: 13px; }
    .op-requirement-card > :nth-child(3), .op-approval-card > :nth-child(3) { grid-column: auto; }
    .op-card-actions { justify-content: stretch; }
    .op-card-actions button { flex: 1; }
    .op-form-grid.two, .op-form-grid.three { grid-template-columns: 1fr; }
    .span-2, .span-3 { grid-column: auto; }
    .op-dialog-card { padding: 17px; }
    .op-dialog-actions { flex-direction: column-reverse; }
    .op-dialog-actions button { width: 100%; }
    .op-login-brand-panel { min-height: 360px; padding: 28px 22px; }
    .op-login-brand-copy p { font-size: 14px; }
    .op-login-features { display: none; }
    .op-login-card { padding: 24px 20px; border-radius: 20px; }
}

/* Personas y jerarquía */
.op-person-table { min-width: 1040px; }
.op-person-cell { display: flex; align-items: center; gap: 11px; min-width: 240px; }
.op-person-cell > div { min-width: 0; display: grid; gap: 3px; }
.op-person-cell strong { color: var(--op-text); font-size: 13px; }
.op-person-cell span:not(.op-avatar) { color: var(--op-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-level-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(57,181,74,.24); border-radius: 9px; background: rgba(57,181,74,.08); color: #7ee48b; font-size: 11px; font-weight: 800; white-space: nowrap; }
.op-hierarchy-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 18px; border: 1px solid rgba(57,181,74,.25); border-radius: 13px; background: rgba(57,181,74,.08); }
.op-hierarchy-notice > i { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--op-green); color: #071108; }
.op-hierarchy-notice div { display: grid; gap: 3px; }
.op-hierarchy-notice strong { font-size: 12px; }
.op-hierarchy-notice span { color: var(--op-muted); font-size: 11px; line-height: 1.5; }
.op-field-help { color: var(--op-muted); font-size: 10px; line-height: 1.45; }
.op-input-with-action { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.op-input-with-action .op-secondary-button { min-height: 44px; white-space: nowrap; }
.op-check-card { min-height: 73px; align-self: end; display: flex; gap: 11px; align-items: flex-start; padding: 13px; border: 1px solid var(--op-border); border-radius: 12px; background: var(--op-surface-2); cursor: pointer; }
.op-check-card input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--op-green); }
.op-check-card span { display: grid; gap: 3px; }
.op-check-card strong { font-size: 12px; }
.op-check-card small { color: var(--op-muted); font-size: 10px; line-height: 1.4; }
.op-created-summary { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-top: 17px; border: 1px solid rgba(57,181,74,.28); border-radius: 13px; background: rgba(57,181,74,.1); }
.op-created-summary > i { color: var(--op-green); font-size: 20px; margin-top: 2px; }
.op-created-summary > div { display: grid; gap: 4px; }
.op-created-summary strong { font-size: 13px; }
.op-created-summary span, .op-created-summary small { color: var(--op-muted); font-size: 11px; }
.op-created-summary code { padding: 2px 5px; border-radius: 5px; background: #0d0f0d; color: #fff; }

/* Gestor de imágenes del catálogo */
.op-image-manager { padding: 17px; border: 1px solid var(--op-border); border-radius: 15px; background: var(--op-surface-2); }
.op-image-manager-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--op-border); }
.op-image-manager-head > div:first-child { display: grid; gap: 5px; }
.op-field-label { font-size: 12px; font-weight: 800; }
.op-image-manager-head small { color: var(--op-muted); font-size: 10px; line-height: 1.45; }
.op-image-section { margin-top: 15px; }
.op-image-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.op-image-section-title strong { font-size: 11px; }
.op-image-section-title span { min-width: 25px; padding: 3px 7px; border-radius: 999px; background: #111411; color: var(--op-muted); font-size: 10px; text-align: center; }
.op-image-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.op-image-tile { min-width: 0; position: relative; overflow: hidden; border: 1px solid var(--op-border); border-radius: 12px; background: #0f110f; transition: border-color .2s ease, box-shadow .2s ease; }
.op-image-tile.is-primary { border-color: var(--op-green); box-shadow: 0 0 0 2px rgba(57,181,74,.13); }
.op-image-tile > img { width: 100%; aspect-ratio: 4/3; display: block; object-fit: cover; background: #151815; }
.op-image-tile > small { display: block; padding: 8px 9px; color: var(--op-muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-image-tile-overlay { position: absolute; right: 7px; top: 7px; display: flex; gap: 5px; }
.op-image-action { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(10,12,10,.8); color: #fff; cursor: pointer; backdrop-filter: blur(5px); }
.op-image-action.active { background: var(--op-green); color: #071108; border-color: var(--op-green); }
.op-image-action.danger:hover { background: var(--op-danger); border-color: var(--op-danger); }
.op-image-primary-label, .op-image-new-label { position: absolute; left: 7px; top: 7px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 7px; font-size: 9px; font-weight: 900; }
.op-image-primary-label { background: var(--op-green); color: #071108; }
.op-image-new-label { background: rgba(18,20,18,.82); color: #fff; }
.op-image-empty { grid-column: 1/-1; min-height: 110px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1px dashed var(--op-border); border-radius: 12px; color: var(--op-muted); font-size: 11px; }
.op-image-empty i { color: var(--op-green); font-size: 25px; }
.op-image-help { display: flex; gap: 7px; align-items: flex-start; margin-top: 13px; color: var(--op-muted); font-size: 10px; line-height: 1.5; }
.op-image-help i { color: var(--op-green); margin-top: 2px; }

@media (max-width: 960px) {
    .op-image-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 680px) {
    .op-input-with-action { grid-template-columns: 1fr; }
    .op-image-manager-head { align-items: stretch; flex-direction: column; }
    .op-image-manager-head .op-secondary-button { width: 100%; }
    .op-image-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.op-status-badge.activo { background: rgba(57,181,74,.16); color: #68db77; border: 1px solid rgba(57,181,74,.32); }
.op-status-badge.inactivo { background: rgba(255,255,255,.08); color: #cdd2ce; border: 1px solid rgba(255,255,255,.12); }
.op-status-badge.bloqueado { background: rgba(239,91,91,.15); color: #ff8989; border: 1px solid rgba(239,91,91,.3); }

/* =========================================================
   Catálogo: pestañas, publicación y buscadores
   ========================================================= */
.op-tabs { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px; width: fit-content; max-width: 100%; border: 1px solid var(--op-border); border-radius: 14px; background: var(--op-surface); overflow-x: auto; }
.op-tab-button { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--op-muted); font: inherit; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.op-tab-button:hover { color: var(--op-text); background: var(--op-surface-2); }
.op-tab-button.active { color: #071108; background: var(--op-green); }
.op-tab-badge { min-width: 21px; height: 21px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.18); color: inherit; font-size: 9px; }
.op-tab-panel[hidden] { display: none !important; }
.op-field-help { display: block; margin-top: 6px; color: var(--op-muted); font-size: 10px; line-height: 1.45; }
.op-publication-note { width: fit-content; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 9px; border-radius: 9px; font-size: 10px; font-weight: 800; }
.op-publication-note.pending { background: rgba(245, 166, 35, .12); color: #f0b758; border: 1px solid rgba(245, 166, 35, .2); }
.op-publish-button { width: 100%; margin-top: 12px; }
.op-primary-button.danger { background: var(--op-danger); border-color: var(--op-danger); color: #fff; }

.op-catalog-request-card { grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 1fr) minmax(190px, .7fr) auto; }
.op-catalog-request-auto { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; align-items: center; min-width: 0; }
.op-catalog-request-auto img { width: 92px; height: 68px; border-radius: 11px; object-fit: cover; background: #151815; }
.op-catalog-request-auto h3 { margin: 4px 0 3px; font-size: 15px; }
.op-catalog-request-auto p, .op-catalog-request-card small { margin: 0; color: var(--op-muted); font-size: 10px; line-height: 1.5; }

.op-auto-search-box { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--op-border); border-radius: 12px; background: var(--op-surface); position: relative; }
.op-auto-search-box:focus-within { border-color: var(--op-green); box-shadow: 0 0 0 2px rgba(57,181,74,.12); }
.op-auto-search-box i { color: var(--op-muted); }
.op-auto-search-box input[type="search"] { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--op-text); font: inherit; }
.op-autocomplete-results { position: relative; z-index: 20; max-height: 300px; margin-top: 6px; overflow: auto; border: 1px solid var(--op-border); border-radius: 12px; background: var(--op-surface); box-shadow: var(--op-shadow); }
.op-autocomplete-results[hidden] { display: none !important; }
.op-autocomplete-option { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px 13px; border: 0; border-bottom: 1px solid var(--op-border); background: transparent; color: var(--op-text); text-align: left; cursor: pointer; }
.op-autocomplete-option:last-child { border-bottom: 0; }
.op-autocomplete-option:hover, .op-autocomplete-option:focus { background: var(--op-surface-2); outline: 0; }
.op-autocomplete-option span { min-width: 0; display: grid; gap: 3px; }
.op-autocomplete-option span:last-child { text-align: right; }
.op-autocomplete-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.op-autocomplete-option small { color: var(--op-muted); font-size: 9px; }
.op-autocomplete-empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px; color: var(--op-muted); font-size: 10px; }
.op-autocomplete-empty.error { color: #ff7a7a; }

@media (max-width: 1080px) {
    .op-catalog-request-card { grid-template-columns: minmax(240px,1fr) minmax(240px,1fr) auto; }
    .op-catalog-request-card > :nth-child(3) { grid-column: 1/3; }
}

@media (max-width: 700px) {
    .op-tabs { width: 100%; }
    .op-tab-button { flex: 1 0 auto; justify-content: center; }
    .op-catalog-request-card { grid-template-columns: 1fr; }
    .op-catalog-request-card > :nth-child(3) { grid-column: auto; }
    .op-catalog-request-auto { grid-template-columns: 78px minmax(0,1fr); }
    .op-catalog-request-auto img { width: 78px; height: 60px; }
    .op-autocomplete-option { grid-template-columns: 1fr; gap: 6px; }
    .op-autocomplete-option span:last-child { text-align: left; }
}

/* =========================================================
   Catálogo: autos destacados del index
   ========================================================= */
.op-featured-panel { padding: 20px; }
.op-featured-panel .op-panel-head { align-items: flex-start; gap: 18px; }
.op-featured-panel .op-panel-head > div { min-width: 0; }
.op-featured-panel .op-panel-head h3 { margin: 4px 0 5px; font-size: 19px; }
.op-featured-panel .op-panel-head p { margin: 0; max-width: 760px; color: var(--op-muted); font-size: 11px; line-height: 1.55; }
.op-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.op-featured-slot { min-width: 0; padding: 14px; border: 1px solid var(--op-border); border-radius: 15px; background: var(--op-surface-2); }
.op-featured-slot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.op-featured-position { color: var(--op-green); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.op-featured-preview { min-height: 235px; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--op-border); border-radius: 13px; background: var(--op-surface); }
.op-featured-preview > img { width: 100%; aspect-ratio: 16/10; display: block; object-fit: cover; background: #151815; }
.op-featured-preview > div:not(.op-image-empty) { display: grid; gap: 4px; padding: 12px; }
.op-featured-preview h4 { margin: 0; font-size: 14px; }
.op-featured-preview p, .op-featured-preview small { margin: 0; color: var(--op-muted); font-size: 10px; line-height: 1.45; }
.op-featured-preview .op-image-empty { min-height: 235px; border: 0; border-radius: 0; }

@media (max-width: 1050px) {
    .op-featured-grid { grid-template-columns: 1fr; }
    .op-featured-slot { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(300px,1.2fr); gap: 14px; }
    .op-featured-slot-head { grid-column: 1/-1; margin-bottom: 0; }
    .op-featured-preview { margin-bottom: 0; }
}

@media (max-width: 700px) {
    .op-featured-panel { padding: 14px; }
    .op-featured-panel .op-panel-head { flex-direction: column; }
    .op-featured-panel .op-panel-head .op-primary-button { width: 100%; }
    .op-featured-slot { display: block; }
    .op-featured-preview { margin-bottom: 14px; }
}

/* =========================================================
   Navegación operativa -> vista cliente
   ========================================================= */
.op-client-link { text-decoration: none; }

/* =========================================================
   Tareas operativas
   ========================================================= */
.op-task-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.op-task-filter { grid-template-columns: minmax(280px, 1fr) minmax(170px, .3fr) minmax(160px, .28fr) auto; }
.op-task-list { display: grid; gap: 12px; }
.op-task-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, .34fr) minmax(190px, auto);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--op-border);
    border-left: 4px solid var(--op-border);
    border-radius: 16px;
    background: var(--op-surface);
}
.op-task-card.priority-baja { border-left-color: #6ea8fe; }
.op-task-card.priority-media { border-left-color: #ffcb65; }
.op-task-card.priority-alta { border-left-color: #ff8f70; }
.op-task-card.priority-urgente { border-left-color: #ff6565; }
.op-task-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.op-task-main h3 { margin: 7px 0 6px; font-size: 17px; }
.op-task-main > p { margin: 0; color: var(--op-muted); font-size: 11px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-task-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 12px; color: var(--op-muted); font-size: 10px; }
.op-task-meta span { display: inline-flex; align-items: center; gap: 6px; }
.op-task-dates { display: grid; gap: 3px; padding-left: 16px; border-left: 1px solid var(--op-border); }
.op-task-dates small { margin-top: 6px; color: var(--op-muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.op-task-dates strong { font-size: 10px; line-height: 1.4; }
.op-task-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.op-task-actions button { min-height: 37px; padding: 0 11px; font-size: 10px; }
.op-status-badge.en-progreso { background: rgba(76,141,255,.15); color: #82adff; border: 1px solid rgba(76,141,255,.3); }
.op-status-badge.en-revision { background: rgba(155,118,255,.16); color: #bea4ff; border: 1px solid rgba(155,118,255,.3); }
.op-status-badge.completada { background: rgba(57,181,74,.16); color: #68db77; border: 1px solid rgba(57,181,74,.32); }
.op-status-badge.cancelada { background: rgba(255,255,255,.08); color: #cdd2ce; border: 1px solid rgba(255,255,255,.12); }

.op-check-field { display: flex; align-items: flex-start; gap: 11px; padding: 12px 13px; border: 1px solid var(--op-border); border-radius: 12px; background: var(--op-surface-2); cursor: pointer; }
.op-check-field input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--op-green); }
.op-check-field span { display: grid; gap: 3px; }
.op-check-field strong { font-size: 11px; }
.op-check-field small { color: var(--op-muted); font-size: 9px; line-height: 1.4; }

.op-task-detail-card { display: grid; gap: 18px; }
.op-task-detail-body { display: grid; gap: 14px; }
.op-task-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.op-task-detail-grid > div { padding: 12px; border: 1px solid var(--op-border); border-radius: 12px; background: var(--op-surface-2); }
.op-task-detail-grid small, .op-task-description small { display: block; margin-bottom: 6px; color: var(--op-green); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.op-task-detail-grid strong { display: block; font-size: 10px; line-height: 1.4; }
.op-task-description { padding: 14px; border: 1px solid var(--op-border); border-radius: 12px; background: var(--op-surface-2); }
.op-task-description p { margin: 0; color: var(--op-muted); font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.op-task-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--op-border); }
.op-task-comments, .op-task-history-wrap { display: grid; gap: 10px; }
.op-task-comments .op-panel-header, .op-task-history-wrap .op-panel-header { margin-bottom: 0; }
.op-task-comments-list { display: grid; gap: 8px; max-height: 250px; overflow: auto; }
.op-task-comment { padding: 11px 12px; border-radius: 11px; background: var(--op-surface-2); border: 1px solid var(--op-border); }
.op-task-comment > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.op-task-comment strong { font-size: 10px; }
.op-task-comment small { color: var(--op-muted); font-size: 8px; }
.op-task-comment p { margin: 7px 0 0; color: var(--op-text); font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.op-task-comment-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; }
.op-task-comment-form textarea { min-height: 74px; resize: vertical; border: 1px solid var(--op-border); border-radius: 11px; background: var(--op-surface-2); color: var(--op-text); padding: 11px; }
.op-task-history { display: grid; gap: 7px; max-height: 300px; overflow: auto; }
.op-task-history-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: flex-start; padding: 10px 11px; border-radius: 10px; background: var(--op-surface-2); }
.op-task-history-item > i { margin-top: 5px; color: var(--op-green); font-size: 6px; }
.op-task-history-item.approval { grid-template-columns: auto 1fr; border: 1px solid var(--op-border); }
.op-task-history-item strong, .op-task-history-item small { display: block; }
.op-task-history-item strong { font-size: 9px; }
.op-task-history-item small { margin-top: 2px; color: var(--op-muted); font-size: 8px; }
.op-task-history-item p { margin: 5px 0 0; color: var(--op-muted); font-size: 9px; line-height: 1.45; }
.op-empty.compact { min-height: 90px; }

@media (max-width: 1180px) {
    .op-task-card { grid-template-columns: minmax(0, 1fr) minmax(210px, .38fr); }
    .op-task-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .op-task-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .op-task-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .op-task-filter { grid-template-columns: 1fr; }
    .op-task-card { grid-template-columns: 1fr; }
    .op-task-dates { padding-left: 0; padding-top: 10px; border-left: 0; border-top: 1px solid var(--op-border); }
    .op-task-actions { grid-column: auto; }
    .op-task-actions button { flex: 1 1 auto; }
    .op-task-detail-grid { grid-template-columns: 1fr; }
    .op-task-comment-form { grid-template-columns: 1fr; }
}

/* ===== Personas / perfil / cumpleaños ===== */
.op-row-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
}

.op-icon-action {
    width: 34px;
    height: 34px;
    border: 1px solid var(--op-border, rgba(255,255,255,.12));
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: inherit;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: .2s ease;
}

.op-icon-action:hover {
    transform: translateY(-1px);
    border-color: rgba(57,181,74,.65);
    background: rgba(57,181,74,.10);
}

.op-profile-actions {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.op-birthday-summary {
    width: 100%;
    margin: .75rem 0 1rem;
    border: 1px solid rgba(57,181,74,.28);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(57,181,74,.13), rgba(255,255,255,.025));
    color: inherit;
    padding: .9rem 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .9rem;
    text-align: left;
    cursor: pointer;
}

.op-birthday-summary:hover {
    border-color: rgba(57,181,74,.65);
}

.op-birthday-summary > span:nth-child(2) {
    display: grid;
    gap: .18rem;
}

.op-birthday-summary small {
    font-size: .68rem;
    letter-spacing: .1em;
    opacity: .68;
}

.op-birthday-summary strong {
    font-size: 1rem;
}

.op-birthday-summary em {
    font-size: .78rem;
    font-style: normal;
    opacity: .72;
}

.op-birthday-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(57,181,74,.18);
    color: #5bd36b;
    font-size: 1.05rem;
}

.op-birthday-list {
    display: grid;
    gap: .65rem;
    max-height: min(58vh, 520px);
    overflow: auto;
    padding-right: .2rem;
}

.op-birthday-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .9rem;
    align-items: center;
    padding: .85rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.op-birthday-item.today {
    border-color: rgba(57,181,74,.6);
    background: rgba(57,181,74,.08);
}

.op-birthday-date {
    width: 54px;
    height: 54px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    align-content: center;
    background: rgba(57,181,74,.13);
    line-height: 1;
}

.op-birthday-date b {
    font-size: 1.25rem;
}

.op-birthday-date small {
    margin-top: .25rem;
    text-transform: uppercase;
    font-size: .65rem;
    opacity: .7;
}

.op-birthday-item > div {
    display: grid;
    gap: .2rem;
}

.op-birthday-item span,
.op-birthday-item em {
    font-size: .78rem;
    opacity: .72;
    font-style: normal;
}

.op-birthday-item em {
    color: #5bd36b;
    opacity: 1;
    font-weight: 700;
}

@media (max-width: 760px) {
    .op-row-actions { min-width: 110px; }
    .op-profile-actions { flex-direction: column; }
    .op-profile-actions .op-secondary-button { width: 100%; justify-content: center; }
}


/* Requerimientos rechazados */
.op-rejected-change {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(239, 91, 91, .28);
    border-radius: 12px;
    background: rgba(239, 91, 91, .09);
    color: #ffb0b0;
}
.op-rejected-change > i { margin-top: 2px; color: #ff7f7f; }
.op-rejected-change div { display: grid; gap: 3px; min-width: 0; }
.op-rejected-change strong { color: #ffd1d1; font-size: 12px; }
.op-rejected-change span { color: #f0c4c4; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.op-rejected-change small { color: #c79b9b; font-size: 10px; }

/* =========================================================
   Home responsive: evita desbordamientos y separa monto/fecha
   ========================================================= */
.op-grid-two > *,
.op-panel,
.op-list,
.op-list-item,
.op-profile-details,
.op-quick-links { min-width: 0; max-width: 100%; }
.op-list-item-amount {
    min-width: 118px;
    padding-left: 18px;
    border-left: 1px solid var(--op-border);
    display: grid;
    justify-items: end;
    gap: 6px;
    white-space: nowrap;
}
.op-list-item-amount strong,
.op-list-item-amount span { display: block; }
.op-list-item-amount span { color: var(--op-muted); font-size: 10px; }
.op-profile-details div { min-width: 0; }
.op-profile-details dd { min-width: 0; max-width: 68%; overflow-wrap: anywhere; word-break: break-word; }
.op-quick-links a { min-width: 0; }
.op-quick-links a span { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 680px) {
    .op-grid-two { width: 100%; min-width: 0; }
    .op-grid-two > .op-panel { width: 100%; min-width: 0; overflow: hidden; }
    .op-list-item {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px 12px;
    }
    .op-list-item-main { min-width: 0; }
    .op-list-item-main strong,
    .op-list-item-main span { white-space: normal; overflow-wrap: anywhere; }
    .op-list-item-amount {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        padding: 10px 0 0;
        margin-top: 2px;
        border-left: 0;
        border-top: 1px solid var(--op-border);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 24px;
        text-align: right;
    }
    .op-list-item-amount strong,
    .op-list-item-amount span { padding: 0 4px; }
    .op-profile-details div {
        display: grid;
        grid-template-columns: minmax(84px, .8fr) minmax(0, 1.2fr);
        align-items: start;
        gap: 12px;
    }
    .op-profile-details dd { max-width: none; width: 100%; }
    .op-quick-links a { width: 100%; }
}

/* =========================================================
   Recompensas
   ========================================================= */
.op-reward-head-actions { display: flex; align-items: end; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.op-year-field { min-width: 110px; margin: 0; }
.op-year-field select { min-height: 43px; }
.op-year-notice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(57,181,74,.24); border-radius: 13px; background: rgba(57,181,74,.07); color: var(--op-muted); font-size: 11px; line-height: 1.5; }
.op-year-notice i { color: var(--op-green); margin-top: 2px; }
.op-reward-metrics { grid-template-columns: repeat(4, minmax(0,1fr)); }
.op-reward-grid { grid-template-columns: minmax(0,1fr) minmax(360px,.9fr); }
.op-prize-list, .op-reward-history, .op-management-list { display: grid; gap: 10px; }
.op-prize-card { padding: 15px; border: 1px solid var(--op-border); border-radius: 14px; background: var(--op-surface-2); }
.op-prize-card.achieved { border-color: rgba(57,181,74,.45); background: rgba(57,181,74,.07); }
.op-prize-card-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: center; }
.op-prize-card-head > div { min-width: 0; display: grid; gap: 3px; }
.op-prize-card-head strong { overflow-wrap: anywhere; }
.op-prize-card-head small { color: var(--op-muted); font-size: 10px; }
.op-prize-card p { margin: 10px 0 0; color: var(--op-muted); font-size: 11px; line-height: 1.5; }
.op-prize-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(155,118,255,.16); color: #bea4ff; }
.op-prize-card.achieved .op-prize-icon { background: rgba(57,181,74,.16); color: #68db77; }
.op-progress { height: 8px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: #101210; }
.op-progress span { display: block; height: 100%; border-radius: inherit; background: var(--op-green); }
.op-prize-progress-copy { display: block; margin-top: 7px; color: var(--op-muted); font-size: 9px; text-align: right; }
.op-reward-history-item { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 12px; border: 1px solid var(--op-border); border-radius: 13px; background: var(--op-surface-2); }
.op-reward-points { min-width: 60px; padding: 7px 8px; border-radius: 9px; text-align: center; font-size: 12px; font-weight: 900; }
.op-reward-points.positive, .op-points-value.positive { color: #68db77; background: rgba(57,181,74,.12); }
.op-reward-points.negative, .op-points-value.negative { color: #ff8989; background: rgba(239,91,91,.12); }
.op-reward-history-main { min-width: 0; display: grid; gap: 3px; }
.op-reward-history-main strong { overflow-wrap: anywhere; }
.op-reward-history-main span, .op-reward-history-item time { color: var(--op-muted); font-size: 10px; }
.op-reward-history-main p { margin: 3px 0 0; color: #d7ddd8; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.op-reward-history-item time { white-space: nowrap; text-align: right; }
.op-reward-preview { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; }
.op-reward-preview.positive { border: 1px solid rgba(57,181,74,.3); background: rgba(57,181,74,.08); color: #77e486; }
.op-reward-preview.negative { border: 1px solid rgba(239,91,91,.3); background: rgba(239,91,91,.08); color: #ff9696; }
.op-reward-preview > div { display: grid; gap: 3px; }
.op-reward-preview span { color: var(--op-muted); font-size: 10px; }

.op-management-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--op-border); border-radius: 13px; background: var(--op-surface-2); }
.op-management-main { min-width: 0; display: grid; gap: 4px; }
.op-management-main strong, .op-management-main span { overflow-wrap: anywhere; }
.op-management-main span { color: var(--op-muted); font-size: 10px; line-height: 1.4; }
.op-reward-type { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.op-reward-type.suma { color: #68db77; background: rgba(57,181,74,.12); }
.op-reward-type.resta { color: #ff8989; background: rgba(239,91,91,.12); }
.op-points-value { padding: 7px 9px; border-radius: 9px; white-space: nowrap; font-size: 11px; }
.op-system-lock { margin-left: 5px; color: var(--op-warning); font-size: 9px; }

@media (max-width: 1050px) {
    .op-reward-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .op-reward-grid { grid-template-columns: 1fr; }
    .op-management-row { grid-template-columns: minmax(0,1fr) auto auto; }
    .op-management-row > .op-secondary-button { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 680px) {
    .op-reward-head-actions { width: 100%; justify-content: stretch; }
    .op-reward-head-actions .op-year-field { flex: 1; }
    .op-reward-head-actions .op-primary-button { width: 100%; }
    .op-reward-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .op-prize-card-head { grid-template-columns: auto minmax(0,1fr); }
    .op-prize-card-head .op-status-badge { grid-column: 1 / -1; width: fit-content; }
    .op-reward-history-item { grid-template-columns: auto minmax(0,1fr); }
    .op-reward-history-item time { grid-column: 1 / -1; text-align: right; }
    .op-management-row { grid-template-columns: 1fr; align-items: stretch; }
    .op-management-row > * { justify-self: start; }
    .op-management-row > .op-secondary-button { grid-column: auto; justify-self: stretch; }
}

/* =========================================================
   Recompensas - ajustes de formulario y entrega de premios
   ========================================================= */
.op-reward-grant-form {
    display: grid;
    gap: 16px;
}
.op-reward-grant-form .op-dialog-header,
.op-reward-grant-form .op-dialog-description,
.op-reward-grant-form .op-dialog-actions {
    margin-bottom: 0;
    margin-top: 0;
}
.op-reward-grant-form .op-dialog-header { padding-bottom: 17px; }
.op-reward-grant-form .op-dialog-actions { margin-top: 4px; }

.op-prize-award-header { align-items: end; }
.op-prize-award-header p { margin: 5px 0 0; color: var(--op-muted); font-size: 11px; line-height: 1.5; }
.op-award-prize-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.op-award-prize-card {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 15px;
    text-align: left;
    color: var(--op-text);
    background: var(--op-surface-2);
    border: 1px solid var(--op-border);
    border-radius: 15px;
    cursor: pointer;
    transition: .2s ease;
}
.op-award-prize-card:hover { border-color: rgba(57,181,74,.45); transform: translateY(-1px); }
.op-award-prize-card.selected { border-color: var(--op-green); box-shadow: 0 0 0 3px rgba(57,181,74,.10); background: rgba(57,181,74,.06); }
.op-award-prize-card.inactive { opacity: .72; }
.op-award-prize-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #d8caff;
    background: rgba(155,118,255,.15);
}
.op-award-prize-copy { min-width: 0; display: grid; gap: 4px; }
.op-award-prize-copy strong { overflow-wrap: anywhere; }
.op-award-prize-copy small { color: var(--op-muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.op-award-prize-points { white-space: nowrap; color: #6fe37e; font-size: 12px; font-weight: 900; }
.op-award-prize-card > .op-status-badge { grid-column: 2 / -1; width: fit-content; }

.op-award-ranking-shell {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--op-border);
}
.op-award-ranking-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}
.op-award-ranking-head > div:first-child { min-width: 0; }
.op-award-ranking-head small { color: var(--op-green); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.op-award-ranking-head h3 { margin: 4px 0 0; }
.op-award-ranking-head p { margin: 5px 0 0; color: var(--op-muted); font-size: 11px; line-height: 1.45; }
.op-award-ranking-summary { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.op-award-ranking-summary span { min-width: 86px; display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--op-border); border-radius: 11px; background: var(--op-surface-2); }
.op-award-ranking-summary b { font-size: 15px; }
.op-award-ranking-summary small { color: var(--op-muted); font-size: 9px; letter-spacing: 0; }
.op-award-ranking-list { display: grid; gap: 9px; }
.op-award-ranking-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) auto minmax(130px,auto);
    gap: 12px;
    align-items: center;
    padding: 12px 13px;
    border: 1px solid var(--op-border);
    border-radius: 13px;
    background: var(--op-surface-2);
}
.op-award-ranking-row.eligible { border-color: rgba(57,181,74,.28); }
.op-award-ranking-row.awarded { background: rgba(57,181,74,.055); }
.op-ranking-position { font-weight: 900; color: var(--op-muted); text-align: center; }
.op-ranking-person { min-width: 0; display: grid; gap: 3px; }
.op-ranking-person strong { overflow-wrap: anywhere; }
.op-ranking-person span { color: var(--op-muted); font-size: 10px; overflow-wrap: anywhere; }
.op-ranking-person p { margin: 2px 0 0; color: #d7ddd8; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.op-ranking-points { white-space: nowrap; color: var(--op-text); font-size: 17px; }
.op-ranking-points small { color: var(--op-muted); font-size: 9px; }
.op-ranking-action { display: flex; justify-content: flex-end; }
.op-award-pending { display: inline-flex; align-items: center; padding: 7px 9px; border-radius: 9px; color: var(--op-muted); background: rgba(255,255,255,.05); font-size: 10px; font-weight: 800; white-space: nowrap; }
.op-award-delivered { display: grid; justify-items: end; gap: 4px; }
.op-award-delivered small { color: var(--op-muted); font-size: 9px; text-align: right; }
.op-prize-award-form { display: grid; gap: 15px; }
.op-prize-award-form .op-dialog-header,
.op-prize-award-form .op-dialog-actions { margin: 0; }
.op-prize-award-form .op-dialog-actions { margin-top: 4px; }
.op-prize-award-confirm { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: center; padding: 13px; border: 1px solid rgba(57,181,74,.28); border-radius: 13px; background: rgba(57,181,74,.07); }
.op-prize-award-confirm-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(155,118,255,.17); color: #d8caff; }
.op-prize-award-confirm > div { min-width: 0; display: grid; gap: 3px; }
.op-prize-award-confirm small { color: var(--op-green); font-weight: 900; }
.op-prize-award-confirm span { color: var(--op-muted); font-size: 10px; overflow-wrap: anywhere; }

@media (max-width: 1050px) {
    .op-award-prize-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .op-award-ranking-row { grid-template-columns: 44px minmax(0,1fr) auto; }
    .op-ranking-action { grid-column: 2 / -1; justify-content: flex-end; }
}

@media (max-width: 680px) {
    .op-prize-award-header { align-items: stretch; }
    .op-prize-award-header .op-year-field { width: 100%; }
    .op-award-prize-grid { grid-template-columns: 1fr; }
    .op-award-ranking-head { align-items: stretch; flex-direction: column; }
    .op-award-ranking-summary { justify-content: stretch; }
    .op-award-ranking-summary span { flex: 1; min-width: 0; }
    .op-award-ranking-row { grid-template-columns: 38px minmax(0,1fr); }
    .op-ranking-points { grid-column: 2; font-size: 15px; }
    .op-ranking-action { grid-column: 2; justify-content: stretch; }
    .op-ranking-action .op-primary-button { width: 100%; }
    .op-award-delivered { justify-items: start; }
    .op-award-delivered small { text-align: left; }
}


/* =========================================================
   Dashboard analítico
   ========================================================= */
.op-analytics-head { align-items: end; }
.op-analytics-filters { display: flex; align-items: end; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.op-analytics-filters .op-field { margin: 0; min-width: 112px; }
.op-analytics-person-filter { min-width: 280px !important; }
.op-analytics-metrics { grid-template-columns: repeat(6, minmax(0,1fr)); }
.op-analytics-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr); gap: 18px; margin-bottom: 18px; }
.op-chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: -2px 0 14px; color: var(--op-muted); font-size: 10px; }
.op-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.op-chart-legend i { width: 10px; height: 10px; border-radius: 3px; }
.op-chart-legend i.requests, .op-analytics-bars .requests { background: #ffc34d; }
.op-chart-legend i.reserved, .op-analytics-bars .reserved { background: #a884ff; }
.op-chart-legend i.sold, .op-analytics-bars .sold { background: #39b54a; }
.op-chart-legend i.reserve-goal-line { width:18px; height:3px; border-radius:999px; background:#ff6f91; box-shadow:0 0 0 1px rgba(255,111,145,.12); }
.op-analytics-chart { min-height: 200px; overflow-x: auto; padding: 8px 2px 2px; }
.op-analytics-chart-inner { position:relative; min-width:660px; }
.op-analytics-month-grid { display:grid; grid-template-columns:repeat(12,minmax(44px,1fr)); gap:7px; align-items:end; }
.op-analytics-goal-overlay { position:absolute; z-index:4; top:5px; left:0; width:100%; height:150px; overflow:visible; pointer-events:none; }
.op-analytics-goal-line { fill:none; stroke:#ff6f91; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; filter:drop-shadow(0 2px 3px rgba(0,0,0,.32)); }
.op-analytics-goal-value { fill:#ff9ab0; font-size:12px; font-weight:900; paint-order:stroke; stroke:var(--op-surface); stroke-width:3px; vector-effect:non-scaling-stroke; }
.op-analytics-month { min-width: 44px; display: grid; gap: 8px; justify-items: center; }
.op-analytics-month small { color: var(--op-muted); font-size: 9px; font-weight: 800; }
.op-analytics-bars { height: 150px; display: flex; align-items: end; justify-content: center; gap: 3px; }
.op-analytics-bars span { position: relative; width: 11px; min-height: 2px; border-radius: 4px 4px 2px 2px; opacity: .92; }
.op-analytics-bars span b { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); color: var(--op-muted); font-size: 8px; font-weight: 800; }
.op-reward-balance-list { display: grid; gap: 10px; }
.op-reward-balance-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 13px; border: 1px solid var(--op-border); border-radius: 12px; background: var(--op-surface-2); }
.op-reward-balance-list span { color: var(--op-muted); font-size: 10px; }
.op-reward-balance-list strong { font-size: 17px; }
.op-reward-balance-list strong.positive, .op-positive-text { color: #68db77; }
.op-reward-balance-list strong.negative, .op-negative-text { color: #ff8989; }

@media (max-width: 1250px) {
    .op-analytics-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .op-analytics-head { align-items: stretch; }
    .op-analytics-filters { width: 100%; justify-content: stretch; }
    .op-analytics-filters .op-field { flex: 1; }
    .op-analytics-person-filter { min-width: 220px !important; flex: 2 !important; }
    .op-analytics-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .op-analytics-filters { display: grid; grid-template-columns: 1fr 1fr auto; }
    .op-analytics-person-filter { grid-column: 1 / -1; min-width: 0 !important; }
    .op-analytics-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .op-analytics-chart-inner { min-width: 612px; }
    .op-analytics-month-grid { grid-template-columns: repeat(12, 44px); }
}

/* =========================================================
   Dashboard analítico · filtros por mes/equipo y detalle
   ========================================================= */
.op-analytics-month-field { min-width: 190px !important; }
.op-analytics-team-filter { min-width: 250px !important; }
.op-analytics-person-filter { min-width: 270px !important; }

.op-multi-select { position: relative; width: 100%; }
.op-multi-select > summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid var(--op-border);
    border-radius: 11px;
    background: var(--op-surface-2);
    color: var(--op-text);
    cursor: pointer;
    list-style: none;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.op-multi-select > summary::-webkit-details-marker { display: none; }
.op-multi-select > summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--op-muted);
    font-size: 9px;
    transition: transform .18s ease;
}
.op-multi-select[open] > summary::after { transform: rotate(180deg); }
.op-multi-select-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 7px);
    left: 0;
    width: min(260px, 82vw);
    max-height: 390px;
    overflow-y: auto;
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--op-border);
    border-radius: 13px;
    background: var(--op-surface);
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
}
.op-multi-select-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--op-text);
    cursor: pointer;
    font-size: 11px;
}
.op-multi-select-option:hover { background: rgba(57,181,74,.08); }
.op-multi-select-option.all { font-weight: 900; color: var(--op-green); }
.op-multi-select-option input { accent-color: var(--op-green); }
/* Los checkboxes viven dentro de .op-field; anulamos el estilo global de inputs
   para que el selector múltiple de meses conserve el tamaño nativo. */
.op-analytics-month-field .op-multi-select-option input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: auto;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    flex: 0 0 16px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    box-shadow: none;
}
.op-analytics-month-field .op-multi-select-option > span {
    flex: 1 1 auto;
    min-width: 0;
}
.op-multi-select-divider { height: 1px; background: var(--op-border); margin: 2px 0 4px; }
.op-multi-select-menu .op-primary-button { width: 100%; margin-top: 6px; justify-content: center; }

.op-analytics-chart-help {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: -5px 0 10px;
    color: var(--op-muted);
    font-size: 9px;
}
.op-analytics-chart-help i { color: var(--op-green); }

button.op-analytics-month {
    border: 0;
    outline: 0;
    padding: 5px 3px 2px;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background .16s ease, opacity .16s ease, transform .16s ease;
}
button.op-analytics-month:hover,
button.op-analytics-month:focus-visible {
    background: rgba(57,181,74,.08);
    transform: translateY(-2px);
}
button.op-analytics-month.selected { background: rgba(57,181,74,.10); }
button.op-analytics-month.filtered-out { opacity: .34; }
button.op-analytics-month.filtered-out:hover { opacity: .75; }

.op-analytics-detail-panel { margin-bottom: 18px; }
.op-analytics-detail-head { align-items: center; }
.op-analytics-detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.op-analytics-detail-main { min-width: 190px; display: grid; gap: 3px; }
.op-analytics-detail-main span { color: var(--op-muted); font-size: 9px; white-space: normal; }
.op-analytics-detail-table td { vertical-align: middle; }

@media (max-width: 1180px) {
    .op-analytics-team-filter { min-width: 220px !important; }
    .op-analytics-person-filter { min-width: 230px !important; }
}

@media (max-width: 900px) {
    .op-analytics-month-field,
    .op-analytics-team-filter,
    .op-analytics-person-filter { min-width: 0 !important; }
    .op-analytics-month-field { flex: 1.2 !important; }
    .op-analytics-team-filter { flex: 1.5 !important; }
    .op-analytics-person-filter { flex: 1.6 !important; }
}

@media (max-width: 680px) {
    .op-analytics-filters {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
    }
    .op-analytics-month-field { grid-column: 2; }
    .op-analytics-team-filter,
    .op-analytics-person-filter { grid-column: 1 / -1; }
    .op-multi-select-menu { right: 0; left: auto; }
    .op-analytics-detail-head { align-items: stretch; flex-direction: column; }
    .op-analytics-detail-actions { justify-content: space-between; }
    .op-analytics-detail-actions .op-secondary-button { width: 100%; justify-content: center; }
}


/* =========================================================
   Metas comerciales + ordenamiento de Dashboard
   ========================================================= */
.op-analytics-metrics { grid-template-columns: repeat(4, minmax(0,1fr)); }
.op-analytics-goal-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:18px; }
.op-analytics-goal-card .op-panel-header { align-items:center; }
.op-analytics-goal-card .op-panel-header > strong { color:var(--op-green); font-size:22px; }
.op-analytics-goal-card p { margin:10px 0 0; color:var(--op-muted); font-size:11px; }
.op-analytics-goal-card p strong { color:var(--op-text); }
.op-goal-progress { height:10px; overflow:hidden; border-radius:999px; background:var(--op-surface-2); border:1px solid var(--op-border); }
.op-goal-progress > span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--op-green),#7ee98b); transition:width .25s ease; }
.op-sort-button { display:inline-flex; align-items:center; gap:6px; padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:900; cursor:pointer; white-space:nowrap; }
.op-sort-button i { color:var(--op-muted); font-size:9px; }
.op-sort-button.active { color:var(--op-green); }
.op-sort-button.active i { color:var(--op-green); }
.op-analytics-ranking-table { min-width:1180px; }

.op-goals-head { align-items:end; }
.op-goals-filters { display:flex; align-items:end; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.op-goals-filters .op-field { margin:0; min-width:120px; }
.op-goals-team-field { min-width:280px !important; }
.op-goals-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
.op-panel-description { margin:-4px 0 14px; color:var(--op-muted); font-size:11px; line-height:1.5; }
.op-goal-total-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.op-goal-total-card { display:grid; gap:10px; padding:14px; border:1px solid var(--op-border); border-radius:14px; background:var(--op-surface-2); }
.op-goal-total-card .op-field { margin:0; }
.op-goal-total-card .op-primary-button { width:100%; justify-content:center; }
.op-goals-distribution-head { align-items:end; }
.op-goals-distribution-head p { margin:5px 0 0; font-size:10px; max-width:650px; }
.op-goals-table { min-width:760px; }
.op-goal-input { width:140px; max-width:100%; min-height:38px; padding:8px 10px; border:1px solid var(--op-border); border-radius:9px; background:var(--op-surface-2); color:var(--op-text); font:inherit; font-weight:800; }
.op-goal-input:focus { outline:2px solid rgba(57,181,74,.28); border-color:var(--op-green); }

@media (max-width: 1250px) {
    .op-analytics-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .op-analytics-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .op-analytics-goal-grid { grid-template-columns:1fr; }
    .op-goals-head { align-items:stretch; }
    .op-goals-filters { width:100%; justify-content:stretch; }
    .op-goals-filters .op-field { flex:1; }
    .op-goals-team-field { min-width:220px !important; flex:2 !important; }
}
@media (max-width: 680px) {
    .op-goals-filters { display:grid; grid-template-columns:1fr 1fr auto; }
    .op-goals-team-field { grid-column:1 / -1; min-width:0 !important; }
    .op-goals-metrics { grid-template-columns:1fr 1fr; }
    .op-goal-total-grid { grid-template-columns:1fr; }
    .op-goals-distribution-head { align-items:stretch; flex-direction:column; }
    .op-goals-distribution-head .op-primary-button { width:100%; justify-content:center; }
}

/* =========================================================
   Catálogo: lista de autos destacados por visitas
   ========================================================= */
.op-featured-summary {
    flex: 0 0 auto;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--op-border);
    border-radius: 13px;
    background: var(--op-surface-2);
}
.op-featured-summary-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 195, 77, .13);
    color: #ffc34d;
}
.op-featured-summary small,
.op-featured-summary strong { display: block; }
.op-featured-summary small { color: var(--op-muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.op-featured-summary strong { margin-top: 2px; font-size: 15px; }
.op-featured-filter { margin: 18px 0 12px; grid-template-columns: minmax(260px, 1fr) auto; }
.op-featured-table-wrap { border: 1px solid var(--op-border); border-radius: 14px; background: var(--op-surface-2); }
.op-featured-table { min-width: 980px; }
.op-featured-table th:last-child,
.op-featured-table td:last-child { text-align: center; }
.op-featured-thumb {
    width: 88px;
    height: 58px;
    display: block;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid var(--op-border);
    background: #151815;
}
.op-featured-vehicle-name,
.op-featured-vehicle-meta { display: block; }
.op-featured-vehicle-meta { margin-top: 3px; color: var(--op-muted); font-size: 9px; }
.op-featured-visits { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.op-featured-visits i { color: var(--op-green); }
.op-featured-star {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--op-border);
    border-radius: 10px;
    background: var(--op-surface);
    color: var(--op-muted);
    cursor: pointer;
    font-size: 16px;
    transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}
.op-featured-star:hover:not(:disabled) { transform: translateY(-1px); border-color: #ffc34d; color: #ffc34d; }
.op-featured-star.active { border-color: rgba(255,195,77,.5); background: rgba(255,195,77,.12); color: #ffc34d; }
.op-featured-star:disabled { opacity: .35; cursor: not-allowed; }

@media (max-width: 700px) {
    .op-featured-summary { width: 100%; }
    .op-featured-filter { grid-template-columns: minmax(0, 1fr) auto; }
}
