/* OZER Gradient CRM language
   Shared by the authenticated ERP, Gestion and Planeamiento.
   Public marketing, Campus and the guard PWA remain intentionally isolated. */

body.ozer-gradient-app {
  --bg: #03142f;
  --canvas: #03142f;
  --page: #03142f;
  --surface: #07284b;
  --surface-2: #0a345d;
  --surface-3: #061f3e;
  --panel: #07284b;
  --ink: #f5fbff;
  --text: #f5fbff;
  --muted: #9db8ce;
  --line: rgba(43, 218, 214, 0.22);
  --line-strong: rgba(39, 215, 242, 0.42);
  --green: #20f392;
  --green-2: rgba(32, 243, 146, 0.11);
  --teal: #00d7b5;
  --teal-soft: rgba(0, 215, 181, 0.11);
  --blue: #27d7f2;
  --blue-2: rgba(39, 215, 242, 0.11);
  --cyan: #27d7f2;
  --cyan-2: rgba(39, 215, 242, 0.11);
  --cyan-soft: rgba(39, 215, 242, 0.11);
  --primary: #27d7f2;
  --accent: #27d7f2;
  --amber: #ffbe55;
  --amber-2: rgba(255, 190, 85, 0.12);
  --amber-soft: rgba(255, 190, 85, 0.12);
  --gold: #ffbe55;
  --red: #ff7185;
  --red-2: rgba(255, 113, 133, 0.12);
  --red-soft: rgba(255, 113, 133, 0.12);
  --focus: rgba(39, 215, 242, 0.35);
  --shadow: 0 22px 58px rgba(0, 6, 22, 0.3);
  --shadow-soft: 0 14px 34px rgba(0, 6, 22, 0.24);
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 215, 181, 0.19), transparent 34%),
    radial-gradient(circle at 45% 108%, rgba(39, 215, 242, 0.12), transparent 42%),
    #03142f;
  accent-color: var(--cyan);
}

body.ozer-gradient-app::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(39, 215, 242, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 215, 242, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 82% 15%, rgba(0, 215, 181, 0.24), transparent 24%);
  background-size: 42px 42px, 42px 42px, auto;
  mask-image: linear-gradient(135deg, transparent 18%, #000 74%, transparent);
  pointer-events: none;
}

.ozer-gradient-app :is(.app-shell, .shell) {
  color: var(--text);
  background: transparent;
}

.ozer-gradient-app :is(.sidebar) {
  color: #f5fbff;
  border-right-color: rgba(39, 215, 242, 0.17);
  background:
    radial-gradient(circle at 16% 0%, rgba(39, 215, 242, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(2, 12, 32, 0.99), rgba(3, 22, 48, 0.98));
  box-shadow: 18px 0 46px rgba(0, 6, 22, 0.26);
}

.ozer-gradient-app :is(.brand-mark, .avatar, .mini-avatar) {
  border-color: rgba(39, 215, 242, 0.5);
  background: linear-gradient(145deg, rgba(39, 215, 242, 0.95), rgba(0, 215, 181, 0.9));
  color: #02142c;
  box-shadow: 0 0 24px rgba(39, 215, 242, 0.14);
}

.ozer-gradient-app :is(.brand-mark, .ozer-mark)::after {
  background: #20f392;
  box-shadow: 0 0 11px rgba(32, 243, 146, 0.62);
}

.ozer-gradient-app :is(.study-chip, .workspace-card, .client-card) {
  border-color: rgba(39, 215, 242, 0.2);
  background: linear-gradient(145deg, rgba(11, 48, 84, 0.78), rgba(4, 28, 57, 0.72));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.ozer-gradient-app :is(.sidebar .brand p, .sidebar .muted, .sidebar-user span, .side-user, .study-chip span, .workspace-card span, .client-card span) {
  color: #8eacc4;
}

.ozer-gradient-app :is(.nav-button, .side-nav button) {
  color: #a9bfd1;
}

.ozer-gradient-app :is(.nav-button, .side-nav button):hover {
  color: #ffffff;
  border-color: rgba(39, 215, 242, 0.18);
  background: rgba(39, 215, 242, 0.08);
}

.ozer-gradient-app :is(.nav-button.is-active, .side-nav button.active) {
  color: #ffffff;
  border-color: rgba(39, 215, 242, 0.34);
  background: linear-gradient(90deg, rgba(39, 215, 242, 0.17), rgba(0, 215, 181, 0.05));
  box-shadow: inset 3px 0 #27d7f2, 0 12px 26px rgba(0, 6, 22, 0.17);
}

.ozer-gradient-app .nav-alert-dot {
  background: #20f392;
  box-shadow: 0 0 0 4px rgba(32, 243, 146, 0.11), 0 0 17px rgba(32, 243, 146, 0.45);
}

.ozer-gradient-app :is(.user-box, .side-footer) {
  border-color: rgba(39, 215, 242, 0.14);
  background: transparent;
}

.ozer-gradient-app :is(.sidebar-logout, .side-footer button) {
  border-color: rgba(39, 215, 242, 0.2);
  background: rgba(39, 215, 242, 0.06);
  color: #f5fbff;
}

.ozer-gradient-app :is(.sidebar-logout, .side-footer button):hover {
  border-color: rgba(39, 215, 242, 0.38);
  background: rgba(39, 215, 242, 0.12);
}

.ozer-gradient-app :is(.main, .content) {
  position: relative;
  color: var(--text);
  background: transparent;
}

.ozer-gradient-app .topbar {
  border-color: rgba(39, 215, 242, 0.14);
  background: rgba(3, 20, 47, 0.86);
  box-shadow: 0 12px 30px rgba(0, 6, 22, 0.12);
  backdrop-filter: blur(18px);
}

.ozer-gradient-app :is(.page-title h2, .topbar h1, .topbar h2, .page-head h1, .page-head h2) {
  color: #f5fbff;
  letter-spacing: -0.035em;
}

.ozer-gradient-app :is(.page-title p, .topbar p, .page-head p, .subtle) {
  color: var(--muted);
}

.ozer-gradient-app :is(.eyebrow, .metric-label) {
  color: var(--teal);
}

.ozer-gradient-app :is(.card, .panel, .metric, .project-card, .space-card, .objective-card, .kanban-column, .kanban-card, .doc-editor, .doc-tree-panel) {
  color: var(--text);
  border-color: rgba(43, 218, 214, 0.22);
  background: linear-gradient(150deg, rgba(9, 47, 84, 0.9), rgba(4, 27, 55, 0.86));
  box-shadow: 0 18px 42px rgba(0, 6, 22, 0.23), inset 0 1px rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(14px);
}

.ozer-gradient-app :is(.card, .panel, .metric, .project-card, .space-card, .objective-card, .kanban-card):hover {
  border-color: rgba(39, 215, 242, 0.4);
}

.ozer-gradient-app .card::before,
.ozer-gradient-app .metric::before {
  background: linear-gradient(180deg, #27d7f2, #00d7b5);
}

.ozer-gradient-app .card::before {
  background: linear-gradient(90deg, #27d7f2, #00d7b5 64%, transparent);
}

.ozer-gradient-app :is(.metric.warn, .metric.danger)::before {
  background: #ffbe55;
}

.ozer-gradient-app :is(.panel-header, .panel-footer, .panel-head) {
  border-color: rgba(43, 218, 214, 0.18);
  background: linear-gradient(180deg, rgba(11, 50, 88, 0.88), rgba(5, 31, 62, 0.72));
}

.ozer-gradient-app :is(.panel-title, .panel-head h2, .panel-head h3, .metric strong, .kpi strong, .project-card h2, .objective-card h2, .space-card h2) {
  color: #f5fbff;
}

.ozer-gradient-app :is(.accounting-mode-card, .assisted-block-card) {
  color: #f5fbff;
  border-color: rgba(43, 218, 214, 0.23);
  background:
    radial-gradient(circle at 88% 0%, rgba(39, 215, 242, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(10, 52, 91, 0.96), rgba(4, 27, 55, 0.94));
}

.ozer-gradient-app :is(.accounting-mode-card.is-assisted, .assisted-block-card.ok, .assisted-block-card.error) {
  color: #f5fbff;
  border-color: rgba(0, 215, 181, 0.34);
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 215, 181, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(10, 52, 91, 0.96), rgba(4, 27, 55, 0.94));
}

.ozer-gradient-app .accounting-mode-card :is(strong, p, small),
.ozer-gradient-app .assisted-block-card :is(strong, p, small) {
  color: inherit;
}

.ozer-gradient-app .accounting-mode-card :is(p, small),
.ozer-gradient-app .assisted-block-card :is(p, small) {
  color: var(--muted);
}

.ozer-gradient-app .accounting-mode-card .mode-number,
.ozer-gradient-app .accounting-mode-card.is-assisted .mode-number,
.ozer-gradient-app .assisted-block-icon {
  color: #02142c;
  background: linear-gradient(135deg, #27d7f2, #20f392);
}

.ozer-gradient-app :is(.panel-head p, .metric small, .project-card p, .space-card p, .project-foot, .objective-owner small, .kanban-card small) {
  color: var(--muted);
}

.ozer-gradient-app :is(input, select, textarea) {
  color: #f5fbff;
  border-color: rgba(99, 164, 194, 0.42);
  background: rgba(3, 25, 53, 0.86);
  caret-color: var(--cyan);
}

.ozer-gradient-app :is(input, select, textarea)::placeholder {
  color: #6e8da7;
  opacity: 1;
}

.ozer-gradient-app select option {
  color: #f5fbff;
  background: #061f3e;
}

.ozer-gradient-app .secret-text {
  color: #9eeaf4;
  border-color: rgba(39, 215, 242, 0.2);
  background: rgba(39, 215, 242, 0.08);
}

.ozer-gradient-app :is(input, select, textarea):focus {
  border-color: #27d7f2;
  box-shadow: 0 0 0 4px rgba(39, 215, 242, 0.12);
  outline: 0;
}

.ozer-gradient-app :is(.field span, .field label, label.field > span) {
  color: #b4cada;
}

.ozer-gradient-app :is(.primary, .btn.primary, .btn.accent) {
  color: #02142c;
  border-color: transparent;
  background: linear-gradient(135deg, #27d7f2, #00d7b5);
  box-shadow: 0 10px 28px rgba(0, 215, 181, 0.16);
}

.ozer-gradient-app :is(.primary, .btn.primary, .btn.accent):hover {
  color: #02142c;
  border-color: transparent;
  background: linear-gradient(135deg, #59e5f7, #22eda4);
  box-shadow: 0 13px 30px rgba(0, 215, 181, 0.22);
}

.ozer-gradient-app :is(.secondary, .ghost, .btn:not(.primary):not(.accent)) {
  color: #e8f6ff;
  border-color: rgba(39, 215, 242, 0.24);
  background: rgba(8, 43, 78, 0.78);
}

.ozer-gradient-app :is(.secondary, .ghost, .btn:not(.primary):not(.accent)):hover {
  color: #ffffff;
  border-color: rgba(39, 215, 242, 0.42);
  background: rgba(39, 215, 242, 0.11);
}

.ozer-gradient-app :is(.danger, .btn.danger, .danger-soft) {
  color: #ff9aa8;
  border-color: rgba(255, 113, 133, 0.28);
  background: rgba(255, 113, 133, 0.09);
}

.ozer-gradient-app :is(.subtab.is-active, .segmented button.active) {
  color: #02142c;
  border-color: transparent;
  background: linear-gradient(135deg, #27d7f2, #00d7b5);
  box-shadow: 0 9px 24px rgba(0, 215, 181, 0.13);
}

.ozer-gradient-app .subtab:not(.is-active) {
  color: #e8f6ff;
  border-color: rgba(92, 221, 248, 0.22);
  background: rgba(7, 31, 63, 0.86);
}

.ozer-gradient-app .subtab:not(.is-active):hover {
  color: #ffffff;
  border-color: rgba(39, 215, 242, 0.54);
  background: rgba(12, 48, 83, 0.96);
}

.ozer-gradient-app :is(.segmented, .tabs) {
  border-color: rgba(43, 218, 214, 0.18);
  background: rgba(3, 25, 53, 0.6);
}

.ozer-gradient-app table {
  color: #dceaf4;
}

.ozer-gradient-app :is(th, .data-table th) {
  color: #8fc3d5;
  border-color: rgba(43, 218, 214, 0.18);
  background: linear-gradient(180deg, rgba(7, 57, 92, 0.96), rgba(6, 43, 77, 0.96));
}

.ozer-gradient-app :is(td, .data-table td) {
  color: #d5e5f0;
  border-color: rgba(43, 218, 214, 0.11);
  background: transparent;
}

.ozer-gradient-app tbody tr {
  background: transparent;
}

.ozer-gradient-app tbody tr:nth-child(even) {
  background: rgba(39, 215, 242, 0.025);
}

.ozer-gradient-app :is(tbody tr:hover td, tbody tr.is-selected td, .data-table tbody tr:hover) {
  background: rgba(39, 215, 242, 0.07);
}

/* Some document-like work areas intentionally remain white. They need their own
   ink tokens instead of inheriting the dark-shell typography. */
.ozer-gradient-app :is(
  .receipt-paper,
  .password-reset-box,
  .news-section,
  .print-layout-card,
  .quality-item,
  .switch-row,
  .mini-switch,
  .gri-disclosure-head,
  .gri-section,
  .applied-concept,
  .concept-picker,
  .check-row,
  .round-live-card,
  .round-step-list,
  .round-step-item,
  .round-map-modal > section,
  .accounting-step-footer,
  .accounting-artifact-editor,
  .accounting-artifact-editor-actions
) {
  --ink: #112240;
  --text: #17324d;
  --muted: #53697d;
  --line: #d5e1ea;
  --line-strong: #b8cad8;
  color: #17324d;
}

.ozer-gradient-app :is(
  .receipt-paper,
  .gri-disclosure-head,
  .gri-section,
  .round-live-card,
  .round-step-list,
  .round-step-item,
  .round-map-modal > section,
  .accounting-artifact-editor
) :is(td, .data-table td) {
  color: #17324d;
  border-color: #d5e1ea;
}

.ozer-gradient-app :is(
  .receipt-paper,
  .gri-disclosure-head,
  .gri-section,
  .round-live-card,
  .round-step-list,
  .round-step-item,
  .round-map-modal > section,
  .accounting-artifact-editor
) tbody tr {
  background: #ffffff;
}

.ozer-gradient-app :is(
  .receipt-paper,
  .gri-disclosure-head,
  .gri-section,
  .round-live-card,
  .round-step-list,
  .round-step-item,
  .round-map-modal > section,
  .accounting-artifact-editor
) tbody tr:nth-child(even) {
  background: #f5f9fc;
}

.ozer-gradient-app :is(
  .receipt-paper,
  .gri-disclosure-head,
  .gri-section,
  .round-live-card,
  .round-step-list,
  .round-step-item,
  .round-map-modal > section,
  .accounting-artifact-editor
) tbody tr:hover td {
  color: #0d2740;
  background: #eaf6fb;
}

.ozer-gradient-app :is(.status, .pill, .tag) {
  border-color: rgba(39, 215, 242, 0.22);
  background: rgba(39, 215, 242, 0.09);
  color: #9eeaf4;
}

.ozer-gradient-app :is(.status.ok, .status.active, .status.done, .pill.ok, .pill.inflow) {
  border-color: rgba(32, 243, 146, 0.23);
  background: rgba(32, 243, 146, 0.09);
  color: #53f5ac;
}

.ozer-gradient-app :is(.status.warn, .status.risk, .pill.warn) {
  border-color: rgba(255, 190, 85, 0.28);
  background: rgba(255, 190, 85, 0.1);
  color: #ffd27c;
}

.ozer-gradient-app :is(.status.bad, .status.blocked, .pill.danger, .pill.outflow) {
  border-color: rgba(255, 113, 133, 0.28);
  background: rgba(255, 113, 133, 0.1);
  color: #ff9aa8;
}

.ozer-gradient-app :is(.progress, .progress-track, .round-progress, .round-report-bar) {
  background: rgba(111, 163, 190, 0.18);
}

.ozer-gradient-app :is(.progress span, .progress-track span, .round-progress span, .round-report-bar i, .key-results i b) {
  background: linear-gradient(90deg, #27d7f2, #20f392);
  box-shadow: 0 0 10px rgba(32, 243, 146, 0.2);
}

.ozer-gradient-app :is(.rate-card, .rate-value, .quality, .panel-soft, .empty, .suggestion, .alert, .principle-banner, .lock-banner) {
  color: #dceaf4;
  border-color: rgba(43, 218, 214, 0.18);
  background: rgba(3, 25, 53, 0.55);
}

.ozer-gradient-app :is(.capital-form-row, .closing-mini-form) {
  color: #dceaf4;
  border-color: rgba(43, 218, 214, 0.18);
  background: rgba(3, 25, 53, 0.55);
}

.ozer-gradient-app :is(.quality.warn, .alert) {
  color: #ffd27c;
  border-color: rgba(255, 190, 85, 0.26);
  background: rgba(255, 190, 85, 0.08);
}

.ozer-gradient-app .rate-value strong {
  color: #57e5f5;
}

.ozer-gradient-app :is(.modal-backdrop, .round-map-modal) {
  background: rgba(0, 7, 22, 0.76);
  backdrop-filter: blur(8px);
}

.ozer-gradient-app :is(.modal, .modal-card, .assistant-action-modal, .round-map-modal > section) {
  color: #f5fbff;
  border: 1px solid rgba(43, 218, 214, 0.23);
  background: linear-gradient(150deg, #092f54, #041b37);
  box-shadow: 0 30px 90px rgba(0, 4, 16, 0.55);
}

.ozer-gradient-app :is(.modal-head, .modal > header, .modal > footer) {
  border-color: rgba(43, 218, 214, 0.18);
  background: rgba(4, 28, 57, 0.68);
}

.ozer-gradient-app :is(.flash, .preview-note, .superadmin-assistance-banner) {
  color: #9eeaf4;
  border-color: rgba(39, 215, 242, 0.25);
  background: rgba(39, 215, 242, 0.08);
}

.ozer-gradient-app .assistant-launcher,
.ozer-gradient-app .assistant-panel header,
.ozer-gradient-app .assistant-message.user {
  color: #02142c;
  background: linear-gradient(135deg, #27d7f2, #00d7b5);
}

.ozer-gradient-app .assistant-launcher {
  box-shadow: 0 14px 38px rgba(0, 215, 181, 0.2), 0 0 0 1px rgba(39, 215, 242, 0.28);
}

.ozer-gradient-app :is(.assistant-panel, .assistant-message.assistant) {
  color: #dceaf4;
  border-color: rgba(43, 218, 214, 0.2);
  background: #07284b;
}

.ozer-gradient-app ::selection {
  color: #02142c;
  background: #53f5ac;
}

@media (prefers-reduced-motion: reduce) {
  .ozer-gradient-app *,
  .ozer-gradient-app *::before,
  .ozer-gradient-app *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 780px) {
  body.ozer-gradient-app::before {
    opacity: 0.12;
    background-size: 32px 32px, 32px 32px, auto;
  }

  .ozer-gradient-app .topbar {
    background: rgba(3, 20, 47, 0.95);
  }

  .ozer-gradient-app :is(.card, .panel, .metric, .project-card, .space-card, .objective-card) {
    backdrop-filter: none;
  }
}

@media print {
  body.ozer-gradient-app {
    color: #111827 !important;
    background: #ffffff !important;
  }

  body.ozer-gradient-app::before {
    display: none !important;
  }

  .ozer-gradient-app :is(.app-shell, .main, .content, .module-view, .card, .panel, .metric, .panel-header, .panel-footer, .panel-head, table, thead, tbody, tr, th, td, input, select, textarea) {
    color: #111827 !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
}
