:root {
    --cpotec-blue: #0b63f6;
    --cpotec-blue-strong: #084fc5;
    --cpotec-blue-soft: #eaf2ff;
    --cpotec-cyan: #06b6d4;
    --cpotec-cyan-soft: #e6f9fc;
    --cpotec-navy: #0b1736;
    --cpotec-navy-soft: #17264a;
    --cpotec-green: #16a66b;
    --cpotec-green-soft: #e9f8f1;
    --cpotec-amber: #e99714;
    --cpotec-amber-soft: #fff5df;
    --cpotec-red: #e5484d;
    --cpotec-red-soft: #fff0f0;
    --cpotec-ink: #101828;
    --cpotec-muted: #5d6b82;
    --cpotec-subtle: #8491a5;
    --cpotec-border: #dce4f1;
    --cpotec-border-strong: #c6d1e2;
    --cpotec-surface: #ffffff;
    --cpotec-canvas: #f5f7fb;
    --cpotec-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    --cpotec-shadow-hover: 0 14px 32px rgba(11, 99, 246, 0.12);
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body.cpotec-portal-page {
    background: var(--cpotec-canvas);
    color: var(--cpotec-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    margin: 0;
    min-width: 320px;
}

body.cpotec-portal-page #wpadminbar {
    display: none !important;
}

body.cpotec-portal-page a {
    color: inherit;
}

body.cpotec-nav-lock {
    overflow: hidden;
}

.cpotec-icon {
    display: block;
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

.cpotec-app-shell {
    background: var(--cpotec-canvas);
    min-height: 100vh;
    width: 100%;
}

.cpotec-app-header {
    align-items: center;
    background: var(--cpotec-surface);
    border-bottom: 1px solid var(--cpotec-border);
    display: grid;
    gap: 24px;
    grid-template-columns: 260px minmax(220px, 1fr) auto;
    min-height: 76px;
    padding: 10px 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.cpotec-mobile-menu {
    align-items: center;
    background: #fff;
    border: 1px solid var(--cpotec-border);
    border-radius: 6px;
    color: var(--cpotec-navy);
    cursor: pointer;
    display: none;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 40px;
}

.cpotec-app-brand,
.cpotec-app-organization,
.cpotec-user-menu {
    align-items: center;
    display: flex;
}

.cpotec-app-brand {
    gap: 12px;
}

.cpotec-brand-mark {
    align-items: center;
    background: var(--cpotec-blue);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(11, 99, 246, 0.24);
    color: #fff;
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 14px;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    letter-spacing: 0;
    width: 42px;
}

.cpotec-app-brand > span:last-child,
.cpotec-app-organization > span,
.cpotec-user-menu > span,
.cpotec-login-brand > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cpotec-app-brand small,
.cpotec-app-organization small,
.cpotec-user-menu small,
.cpotec-login-brand small {
    color: var(--cpotec-muted);
    font-size: 11px;
    line-height: 1.25;
}

.cpotec-app-brand strong,
.cpotec-app-organization strong,
.cpotec-user-menu strong,
.cpotec-login-brand strong {
    color: var(--cpotec-ink);
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cpotec-app-organization {
    border-left: 1px solid var(--cpotec-border);
    gap: 12px;
    padding-left: 24px;
}

.cpotec-app-organization > .cpotec-icon {
    color: var(--cpotec-blue);
}

.cpotec-user-menu {
    gap: 10px;
    justify-content: flex-end;
}

.cpotec-user-menu img {
    border: 2px solid var(--cpotec-blue-soft);
    border-radius: 50%;
    display: block;
    height: 40px;
    width: 40px;
}

.cpotec-icon-link {
    align-items: center;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #53637b !important;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
    width: 40px;
}

.cpotec-icon-link:hover,
.cpotec-icon-link:focus-visible {
    background: var(--cpotec-blue-soft);
    border-color: #cfe0ff;
    color: var(--cpotec-blue) !important;
    outline: 0;
}

.cpotec-app-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100vh - 76px);
}

.cpotec-app-sidebar {
    background: var(--cpotec-navy);
    color: #e8efff;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 76px);
    padding: 24px 14px 18px;
    position: relative;
    z-index: 45;
}

.cpotec-sidebar-head {
    display: none;
}

.cpotec-nav-label {
    color: #8393b5;
    font-size: 11px;
    font-weight: 750;
    margin: 0 12px 11px;
    text-transform: uppercase;
}

.cpotec-side-nav {
    display: grid;
    gap: 4px;
}

.cpotec-side-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #cbd6ed !important;
    display: grid;
    font-size: 13px;
    font-weight: 650;
    gap: 11px;
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 46px;
    padding: 6px 10px 6px 7px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.cpotec-nav-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #9fb2d8;
    display: flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.cpotec-nav-icon .cpotec-icon {
    height: 18px;
    width: 18px;
}

.cpotec-side-link:hover,
.cpotec-side-link:focus-visible {
    background: var(--cpotec-navy-soft);
    color: #fff !important;
    outline: 0;
    transform: translateX(2px);
}

.cpotec-side-link.is-active {
    background: var(--cpotec-blue);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    color: #fff !important;
}

.cpotec-side-link.is-active .cpotec-nav-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.cpotec-sidebar-foot {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #dbe5f8;
    display: flex;
    gap: 11px;
    line-height: 1.35;
    margin-top: auto;
    padding: 18px 10px 0;
}

.cpotec-sidebar-foot > .cpotec-icon {
    color: #5ee5b0;
    height: 22px;
    width: 22px;
}

.cpotec-sidebar-foot > span {
    display: flex;
    flex-direction: column;
}

.cpotec-sidebar-foot strong {
    font-size: 12px;
}

.cpotec-sidebar-foot small {
    color: #8798bb;
    font-size: 11px;
}

.cpotec-sidebar-backdrop {
    display: none;
}

.cpotec-app-main {
    min-width: 0;
    padding: 24px clamp(20px, 3vw, 48px) 18px;
}

.cpotec-page-bar {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 auto 24px;
    max-width: 1500px;
}

.cpotec-page-context {
    color: var(--cpotec-muted);
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.cpotec-page-bar h1 {
    color: var(--cpotec-ink);
    font-size: 26px;
    font-weight: 760;
    line-height: 1.25;
    margin: 0;
}

.cpotec-live-pill,
.cpotec-badge,
.cpotec-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.cpotec-live-pill {
    background: #fff;
    border: 1px solid var(--cpotec-border);
    color: #334155;
    gap: 8px;
    padding: 9px 12px;
}

.cpotec-live-pill i {
    background: var(--cpotec-green);
    border: 3px solid var(--cpotec-green-soft);
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.cpotec-panel {
    margin: 0 auto;
    max-width: 1500px;
}

.cpotec-dashboard-head,
.cpotec-section-head {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.cpotec-dashboard-head h2,
.cpotec-section-head h2 {
    color: var(--cpotec-ink);
    font-size: 22px;
    font-weight: 750;
    line-height: 1.3;
    margin: 3px 0 5px;
}

.cpotec-dashboard-head p,
.cpotec-section-head p {
    color: var(--cpotec-muted);
    line-height: 1.5;
    margin: 0;
    max-width: 760px;
}

.cpotec-eyebrow {
    color: var(--cpotec-blue);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.cpotec-badge {
    background: var(--cpotec-green-soft);
    border: 1px solid #bdebd7;
    color: #08784b;
    gap: 7px;
    padding: 9px 12px;
}

.cpotec-badge .cpotec-icon {
    height: 16px;
    width: 16px;
}

.cpotec-kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    margin-bottom: 26px;
}

.cpotec-report-kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    margin: 20px 0;
}

.cpotec-kpi {
    background: var(--cpotec-surface);
    border: 1px solid var(--cpotec-border);
    border-radius: 8px;
    min-height: 144px;
    overflow: hidden;
    padding: 16px;
    position: relative;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cpotec-kpi::before {
    background: var(--cpotec-blue);
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.cpotec-kpi:hover {
    border-color: #c7d8f5;
    box-shadow: var(--cpotec-shadow);
    transform: translateY(-2px);
}

.cpotec-kpi-cyan::before {
    background: var(--cpotec-cyan);
}

.cpotec-kpi-green::before {
    background: var(--cpotec-green);
}

.cpotec-kpi-amber::before {
    background: var(--cpotec-amber);
}

.cpotec-kpi-red::before {
    background: var(--cpotec-red);
}

.cpotec-kpi-navy::before {
    background: var(--cpotec-navy);
}

.cpotec-kpi-head {
    align-items: center;
    color: var(--cpotec-muted);
    display: flex;
    font-size: 11px;
    font-weight: 750;
    gap: 8px;
    text-transform: uppercase;
}

.cpotec-kpi-icon {
    align-items: center;
    background: var(--cpotec-blue-soft);
    border-radius: 6px;
    color: var(--cpotec-blue);
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.cpotec-kpi-icon .cpotec-icon {
    height: 16px;
    width: 16px;
}

.cpotec-kpi-cyan .cpotec-kpi-icon {
    background: var(--cpotec-cyan-soft);
    color: #078aa1;
}

.cpotec-kpi-green .cpotec-kpi-icon {
    background: var(--cpotec-green-soft);
    color: var(--cpotec-green);
}

.cpotec-kpi-amber .cpotec-kpi-icon {
    background: var(--cpotec-amber-soft);
    color: #b66c00;
}

.cpotec-kpi-red .cpotec-kpi-icon {
    background: var(--cpotec-red-soft);
    color: var(--cpotec-red);
}

.cpotec-kpi-navy .cpotec-kpi-icon {
    background: #e9edf5;
    color: var(--cpotec-navy);
}

.cpotec-kpi > strong {
    color: var(--cpotec-ink);
    display: block;
    font-size: 30px;
    font-weight: 780;
    line-height: 1.15;
    margin: 13px 0 4px;
}

.cpotec-kpi > small {
    color: var(--cpotec-subtle);
    font-size: 12px;
}

.cpotec-module-section {
    margin-bottom: 26px;
}

.cpotec-module-section-head {
    align-items: flex-end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cpotec-module-section-head h3 {
    color: var(--cpotec-ink);
    font-size: 17px;
    margin: 0 0 3px;
}

.cpotec-module-section-head p {
    color: var(--cpotec-muted);
    margin: 0;
}

.cpotec-module-section-head > span {
    color: var(--cpotec-subtle);
    font-size: 12px;
    font-weight: 700;
}

.cpotec-module-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cpotec-module-card {
    background: #fff;
    border: 1px solid var(--cpotec-border);
    border-radius: 8px;
    color: var(--cpotec-ink) !important;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    grid-template-rows: auto auto;
    min-height: 116px;
    padding: 16px;
    position: relative;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cpotec-module-card:hover,
.cpotec-module-card:focus-visible {
    border-color: #a9c8ff;
    box-shadow: var(--cpotec-shadow-hover);
    outline: 0;
    transform: translateY(-2px);
}

.cpotec-module-icon {
    align-items: center;
    align-self: start;
    background: var(--cpotec-blue-soft);
    border-radius: 7px;
    color: var(--cpotec-blue);
    display: flex;
    grid-row: 1 / span 2;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.cpotec-module-icon .cpotec-icon {
    height: 20px;
    width: 20px;
}

.cpotec-module-arrow {
    color: #a1afc2;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.cpotec-module-arrow .cpotec-icon {
    height: 17px;
    width: 17px;
}

.cpotec-module-card > strong {
    align-self: center;
    font-size: 14px;
    grid-column: 2;
    grid-row: 1;
    margin-left: 10px;
}

.cpotec-module-metric {
    align-self: end;
    color: var(--cpotec-muted);
    font-size: 12px;
    grid-column: 2 / span 2;
    grid-row: 2;
    margin-left: 10px;
}

.cpotec-module-metric b {
    color: var(--cpotec-ink);
    font-size: 14px;
}

.cpotec-module-cyan .cpotec-module-icon {
    background: var(--cpotec-cyan-soft);
    color: #078aa1;
}

.cpotec-module-green .cpotec-module-icon {
    background: var(--cpotec-green-soft);
    color: var(--cpotec-green);
}

.cpotec-module-amber .cpotec-module-icon {
    background: var(--cpotec-amber-soft);
    color: #b66c00;
}

.cpotec-module-red .cpotec-module-icon {
    background: var(--cpotec-red-soft);
    color: var(--cpotec-red);
}

.cpotec-module-navy .cpotec-module-icon {
    background: #e9edf5;
    color: var(--cpotec-navy);
}

.cpotec-dashboard-grid,
.cpotec-grid {
    display: grid;
    gap: 14px;
}

.cpotec-dashboard-grid-primary {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    margin-bottom: 14px;
}

.cpotec-dashboard-grid-secondary,
.cpotec-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cpotec-card,
.cpotec-report {
    background: var(--cpotec-surface);
    border: 1px solid var(--cpotec-border);
    border-radius: 8px;
}

.cpotec-card {
    padding: 18px;
}

.cpotec-card > h3 {
    color: var(--cpotec-ink);
    font-size: 16px;
    margin: 0 0 14px;
}

.cpotec-card-head {
    align-items: center;
    display: flex;
    gap: 11px;
    margin-bottom: 16px;
}

.cpotec-card-head h3 {
    color: var(--cpotec-ink);
    font-size: 15px;
    margin: 0 0 3px;
}

.cpotec-card-head p {
    color: var(--cpotec-muted);
    font-size: 12px;
    margin: 0;
}

.cpotec-card-icon {
    align-items: center;
    border-radius: 7px;
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.cpotec-card-icon .cpotec-icon {
    height: 19px;
    width: 19px;
}

.cpotec-tone-blue {
    background: var(--cpotec-blue-soft);
    color: var(--cpotec-blue);
}

.cpotec-tone-green {
    background: var(--cpotec-green-soft);
    color: var(--cpotec-green);
}

.cpotec-tone-amber {
    background: var(--cpotec-amber-soft);
    color: #b66c00;
}

.cpotec-tone-red {
    background: var(--cpotec-red-soft);
    color: var(--cpotec-red);
}

.cpotec-progress-list {
    display: grid;
    gap: 14px;
}

.cpotec-progress-row > div {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cpotec-progress-row strong {
    color: #344054;
    font-size: 12px;
}

.cpotec-progress-row span {
    color: var(--cpotec-blue);
    font-size: 12px;
    font-weight: 800;
}

.cpotec-progress-row progress {
    accent-color: var(--cpotec-blue);
    display: block;
    height: 9px;
    width: 100%;
}

.cpotec-progress-row progress::-webkit-progress-bar {
    background: #e9eef7;
    border-radius: 999px;
}

.cpotec-progress-row progress::-webkit-progress-value {
    background: var(--cpotec-blue);
    border-radius: 999px;
}

.cpotec-progress-row progress::-moz-progress-bar {
    background: var(--cpotec-blue);
    border-radius: 999px;
}

.cpotec-form {
    box-shadow: none;
    margin: 0 0 16px;
}

.cpotec-form-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cpotec-form label,
.cpotec-inline-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.cpotec-form label span,
.cpotec-inline-grid label span {
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.cpotec-form input[type="text"],
.cpotec-form input[type="url"],
.cpotec-form input[type="date"],
.cpotec-form input[type="number"],
.cpotec-form select,
.cpotec-form textarea,
.cpotec-inline-grid select {
    background: #fff;
    border: 1px solid var(--cpotec-border-strong);
    border-radius: 6px;
    color: var(--cpotec-ink);
    font: inherit;
    min-height: 44px;
    padding: 9px 11px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.cpotec-form textarea {
    line-height: 1.5;
    min-height: 96px;
    resize: vertical;
}

.cpotec-form input:hover,
.cpotec-form select:hover,
.cpotec-form textarea:hover,
.cpotec-inline-grid select:hover {
    border-color: #9eb1ca;
}

.cpotec-form input:focus,
.cpotec-form select:focus,
.cpotec-form textarea:focus,
.cpotec-inline-grid select:focus {
    border-color: var(--cpotec-blue);
    box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.14);
    outline: 0;
}

.cpotec-span-2 {
    grid-column: span 2;
}

.cpotec-form .submit {
    margin: 18px 0 0;
    padding: 0;
}

.cpotec-button,
.cpotec-form .button,
.cpotec-section-head .button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--cpotec-border-strong);
    border-radius: 6px;
    color: var(--cpotec-ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 750;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cpotec-button-primary,
.cpotec-form .button-primary,
.cpotec-section-head .button-primary {
    background: var(--cpotec-blue);
    border-color: var(--cpotec-blue);
    box-shadow: 0 6px 14px rgba(11, 99, 246, 0.2);
    color: #fff;
}

.cpotec-button-secondary {
    background: #fff;
    color: var(--cpotec-navy);
}

.cpotec-button:hover,
.cpotec-form .button:hover,
.cpotec-section-head .button:hover,
.cpotec-button:focus-visible,
.cpotec-form .button:focus-visible,
.cpotec-section-head .button:focus-visible {
    border-color: var(--cpotec-blue);
    outline: 0;
    transform: translateY(-1px);
}

.cpotec-button-primary:hover,
.cpotec-form .button-primary:hover,
.cpotec-section-head .button-primary:hover {
    background: var(--cpotec-blue-strong);
    color: #fff;
}

.cpotec-button-wide {
    width: 100%;
}

.cpotec-inline-form h3 {
    color: var(--cpotec-ink);
    margin-top: 0;
}

.cpotec-inline-grid {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) auto;
}

.cpotec-inline-grid .submit {
    margin: 0;
    padding: 0;
}

.cpotec-table-wrap {
    background: var(--cpotec-surface);
    border: 1px solid var(--cpotec-border);
    border-radius: 8px;
    overflow-x: auto;
}

.cpotec-table-scroll {
    overflow-x: auto;
}

.cpotec-table {
    border: 0;
    border-collapse: collapse;
    font-size: 13px;
    width: 100%;
}

.cpotec-table th,
.cpotec-table td {
    border-bottom: 1px solid #e7ecf4;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.cpotec-table th {
    background: #f7f9fc;
    color: #52627a;
    font-size: 11px;
    font-weight: 800;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    white-space: nowrap;
    z-index: 1;
}

.cpotec-table tr:last-child td {
    border-bottom: 0;
}

.cpotec-table tbody tr {
    transition: background-color 140ms ease;
}

.cpotec-table tbody tr:hover td {
    background: #f8fbff;
}

.cpotec-compact td,
.cpotec-compact th {
    font-size: 12px;
    padding: 10px;
}

.cpotec-status {
    padding: 7px 9px;
}

.cpotec-status-cumple,
.cpotec-status-vigente,
.cpotec-status-cerrada,
.cpotec-status-cumplido,
.cpotec-status-baja,
.cpotec-status-cerrado {
    background: var(--cpotec-green-soft);
    color: #08784b;
}

.cpotec-status-parcial,
.cpotec-status-en_curso,
.cpotec-status-en_revision,
.cpotec-status-en_seguimiento,
.cpotec-status-tratamiento,
.cpotec-status-monitoreo,
.cpotec-status-media,
.cpotec-status-verificacion {
    background: var(--cpotec-amber-soft);
    color: #9d5e00;
}

.cpotec-status-sin_evidencia,
.cpotec-status-no_cumple,
.cpotec-status-insuficiente,
.cpotec-status-abierta,
.cpotec-status-desviado,
.cpotec-status-alta,
.cpotec-status-abierto,
.cpotec-status-obsoleto {
    background: var(--cpotec-red-soft);
    color: #b4232a;
}

.cpotec-status-planificada,
.cpotec-status-pendiente,
.cpotec-status-borrador,
.cpotec-status-reprogramada,
.cpotec-status-historica {
    background: var(--cpotec-blue-soft);
    color: #2458a6;
}

.cpotec-empty-state {
    align-items: center;
    color: var(--cpotec-muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 132px;
    padding: 24px;
    text-align: center;
}

.cpotec-empty-state > span {
    align-items: center;
    background: var(--cpotec-blue-soft);
    border-radius: 7px;
    color: var(--cpotec-blue);
    display: flex;
    height: 42px;
    justify-content: center;
    margin-bottom: 10px;
    width: 42px;
}

.cpotec-empty-state strong {
    color: var(--cpotec-ink);
    font-size: 13px;
}

.cpotec-empty-state p {
    font-size: 12px;
    margin: 4px 0 0;
}

.cpotec-empty-cell {
    padding: 0 !important;
}

.cpotec-report {
    padding: 30px;
}

.cpotec-report h2,
.cpotec-report h3 {
    color: var(--cpotec-ink);
}

.cpotec-disclaimer {
    border-top: 1px solid var(--cpotec-border);
    color: var(--cpotec-muted);
    margin-top: 24px;
    padding-top: 14px;
}

.cpotec-app-footer {
    align-items: center;
    border-top: 1px solid var(--cpotec-border);
    color: var(--cpotec-subtle);
    display: flex;
    font-size: 11px;
    gap: 16px;
    justify-content: space-between;
    margin: 30px auto 0;
    max-width: 1500px;
    padding-top: 16px;
}

.cpotec-app-footer span:first-child {
    color: var(--cpotec-muted);
    font-weight: 750;
}

.notice {
    background: #fff;
    border: 1px solid #bdebd7;
    border-left: 4px solid var(--cpotec-green);
    border-radius: 6px;
    box-shadow: var(--cpotec-shadow);
    margin: 0 auto 18px;
    max-width: 1500px;
    padding: 1px 14px;
}

.notice p {
    margin: 11px 0;
}

.cpotec-login-shell {
    align-items: center;
    background-color: var(--cpotec-canvas);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 28px;
    position: relative;
}

.cpotec-login-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    width: min(100%, 440px);
}

.cpotec-login-panel {
    background: #fff;
    border: 1px solid var(--cpotec-border);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.1);
    max-width: 440px;
    padding: 34px;
    width: 100%;
}

.cpotec-login-icon {
    align-items: center;
    background: var(--cpotec-blue-soft);
    border-radius: 8px;
    color: var(--cpotec-blue);
    display: flex;
    height: 48px;
    justify-content: center;
    margin-bottom: 22px;
    width: 48px;
}

.cpotec-login-icon .cpotec-icon {
    height: 24px;
    width: 24px;
}

.cpotec-login-icon-warning {
    background: var(--cpotec-amber-soft);
    color: #b66c00;
}

.cpotec-login-panel h1 {
    color: var(--cpotec-ink);
    font-size: 30px;
    font-weight: 780;
    line-height: 1.2;
    margin: 5px 0 10px;
}

.cpotec-login-copy {
    color: var(--cpotec-muted);
    line-height: 1.55;
    margin: 0 0 24px;
}

.cpotec-login-meta {
    align-items: center;
    color: var(--cpotec-subtle);
    display: flex;
    font-size: 11px;
    gap: 7px;
    justify-content: center;
    margin-top: 18px;
}

.cpotec-login-meta .cpotec-icon {
    height: 14px;
    width: 14px;
}

.cpotec-login-version {
    color: var(--cpotec-subtle);
    font-size: 11px;
    margin: 18px 0 0;
}

@media (max-width: 1360px) {
    .cpotec-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cpotec-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .cpotec-app-header {
        grid-template-columns: 240px minmax(190px, 1fr) auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .cpotec-app-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .cpotec-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpotec-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .cpotec-app-header {
        gap: 10px;
        grid-template-columns: 40px minmax(170px, 1fr) auto;
        min-height: 68px;
        padding: 10px 14px;
    }

    .cpotec-mobile-menu {
        display: inline-flex;
    }

    .cpotec-app-brand .cpotec-brand-mark {
        display: none;
    }

    .cpotec-app-organization {
        display: none;
    }

    .cpotec-user-menu > span {
        display: none;
    }

    .cpotec-user-menu img {
        height: 36px;
        width: 36px;
    }

    .cpotec-app-layout {
        display: block;
        min-height: calc(100vh - 68px);
    }

    .cpotec-app-sidebar {
        bottom: 0;
        box-shadow: 18px 0 40px rgba(6, 14, 35, 0.3);
        left: 0;
        min-height: 100vh;
        overflow-y: auto;
        padding-top: 18px;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform 190ms ease;
        width: min(310px, 86vw);
        z-index: 80;
    }

    .cpotec-sidebar-head {
        align-items: center;
        color: #fff;
        display: flex;
        font-size: 13px;
        font-weight: 750;
        justify-content: space-between;
        margin: 0 8px 22px;
    }

    .cpotec-sidebar-head button {
        align-items: center;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 6px;
        color: #fff;
        cursor: pointer;
        display: flex;
        height: 36px;
        justify-content: center;
        padding: 0;
        width: 36px;
    }

    .cpotec-sidebar-backdrop {
        background: rgba(5, 13, 31, 0.58);
        border: 0;
        bottom: 0;
        cursor: pointer;
        display: block;
        left: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        right: 0;
        top: 0;
        transition: opacity 190ms ease;
        z-index: 70;
    }

    .cpotec-app-shell.is-nav-open .cpotec-app-sidebar {
        transform: translateX(0);
    }

    .cpotec-app-shell.is-nav-open .cpotec-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .cpotec-app-main {
        padding: 20px 16px 16px;
    }

    .cpotec-page-bar {
        margin-bottom: 20px;
    }

    .cpotec-page-bar h1 {
        font-size: 23px;
    }

    .cpotec-dashboard-grid-primary,
    .cpotec-dashboard-grid-secondary,
    .cpotec-grid-2 {
        grid-template-columns: 1fr;
    }

    .cpotec-card-progress {
        order: 1;
    }
}

@media (max-width: 680px) {
    .cpotec-admin-link {
        display: none;
    }

    .cpotec-page-bar {
        align-items: flex-start;
    }

    .cpotec-live-pill {
        padding: 8px 10px;
    }

    .cpotec-dashboard-head,
    .cpotec-section-head {
        display: block;
    }

    .cpotec-dashboard-head .cpotec-badge,
    .cpotec-section-head .button {
        margin-top: 12px;
    }

    .cpotec-dashboard-head h2,
    .cpotec-section-head h2 {
        font-size: 20px;
    }

    .cpotec-kpis,
    .cpotec-report-kpis,
    .cpotec-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpotec-form-grid,
    .cpotec-inline-grid {
        grid-template-columns: 1fr;
    }

    .cpotec-span-2 {
        grid-column: span 1;
    }

    .cpotec-inline-grid .submit,
    .cpotec-inline-grid .button {
        width: 100%;
    }

    .cpotec-card,
    .cpotec-report {
        padding: 15px;
    }

    .cpotec-module-section-head > span {
        display: none;
    }

    .cpotec-app-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 470px) {
    .cpotec-app-brand strong {
        font-size: 13px;
    }

    .cpotec-app-brand small,
    .cpotec-user-menu img {
        display: none;
    }

    .cpotec-user-menu {
        gap: 2px;
    }

    .cpotec-page-context {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cpotec-live-pill {
        font-size: 0;
        gap: 0;
        height: 34px;
        justify-content: center;
        padding: 0;
        width: 34px;
    }

    .cpotec-kpis,
    .cpotec-report-kpis,
    .cpotec-module-grid {
        grid-template-columns: 1fr;
    }

    .cpotec-kpi {
        min-height: 132px;
    }

    .cpotec-module-card {
        min-height: 104px;
    }

    .cpotec-login-shell {
        padding: 20px;
    }

    .cpotec-login-panel {
        padding: 26px 22px;
    }

    .cpotec-login-panel h1 {
        font-size: 27px;
    }
}

@media print {
    .cpotec-app-header,
    .cpotec-app-sidebar,
    .cpotec-sidebar-backdrop,
    .cpotec-page-bar,
    .cpotec-print-hide,
    .cpotec-app-footer,
    .notice,
    .cpotec-module-section {
        display: none !important;
    }

    .cpotec-app-layout {
        display: block;
    }

    .cpotec-app-main {
        padding: 0;
    }

    .cpotec-panel,
    .cpotec-report {
        border: 0;
        max-width: none;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.cpotec-page-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

@media (max-width: 680px) {
    .cpotec-page-actions {
        align-items: flex-end;
        flex-direction: column;
    }
}

.cpotec-brand-logo {
    background: #fff;
    border-color: var(--cpotec-border-strong);
    color: transparent;
    overflow: hidden;
    padding: 4px;
}

.cpotec-brand-logo img {
    display: block;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.cpotec-logo-field {
    background: #f8fbff;
    border: 1px solid var(--cpotec-border);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.cpotec-logo-control {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cpotec-logo-preview {
    align-items: center;
    background: #fff;
    border: 1px dashed var(--cpotec-border-strong);
    border-radius: 8px;
    color: var(--cpotec-muted);
    display: flex;
    font-size: 12px;
    font-weight: 700;
    height: 74px;
    justify-content: center;
    padding: 8px;
    width: 148px;
}

.cpotec-logo-preview img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.cpotec-logo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

