/* GesMan OLYMPUS — Demo ATLAS */
/* Extraido de demo-atlas.php */

    :root {
      --bg:#0A0E1F;
      --gold:#E0B564;
      --text:#F1F1F4;
      --muted:#A8B0C0;
      --line:rgba(224,181,100,.18);
      --app-primary:#00863a;
      --app-primary-dark:#006f31;
      --app-surface:#f3f4f6;
      --app-card:#ffffff;
      --app-border:#e5e7eb;
      --app-ink:#111827;
      --app-muted:#6b7280;
      --app-side:#111827;
      --app-side-2:#1f2937;
      --app-accent:#22c55e;
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', sans-serif;
    }
    a { color: inherit; text-decoration: none; }
    button, input, select { font: inherit; }
    .container { width: min(1160px, 92%); margin: 0 auto; }

    .nav {
      position: sticky;
      top: 0;
      z-index: 30;
      backdrop-filter: blur(10px);
      background: rgba(10,14,31,.82);
      border-bottom: 1px solid var(--line);
    }
    .nav-inner {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }
    .brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-family: 'Cinzel', serif; letter-spacing: .16em; font-size: .94rem; }
    .brand-mark {
      width: 24px;
      height: 24px;
      border-radius: 7px;
      display: inline-grid;
      place-items: center;
      background: linear-gradient(135deg, rgba(224,181,100,.22), rgba(91,192,190,.2));
      border: 1px solid rgba(224,181,100,.28);
    }
    .brand-text span { color: var(--gold); }
    .nav-link {
      font-size: .84rem;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: #F2D08C;
      border: 1px solid rgba(224,181,100,.35);
      border-radius: 999px;
      padding: .5rem .8rem;
    }

    .demo-stage {
      flex: 1;
      background: var(--app-surface);
      color: var(--app-ink);
      display: grid;
      place-items: center;
      padding: 1.2rem .9rem;
    }

    .atlas-shell {
      width: min(1240px, 100%);
      min-height: 76vh;
      background: var(--app-card);
      border: 1px solid var(--app-border);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 24px 60px rgba(0,0,0,.15);
      display: grid;
      grid-template-rows: 52px 1fr;
    }

    .atlas-app-topbar {
      background: var(--app-primary);
      color: #fff;
      border-bottom: 1px solid rgba(255,255,255,.22);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: .75rem;
      padding: 0 .75rem;
    }
    .topbar-left, .topbar-right { display: flex; align-items: center; gap: .55rem; }
    .atlas-app-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .83rem; }
    .atlas-app-brand img { height: 24px; width: auto; display: block; }
    .topbar-search {
      width: min(340px, 42vw);
      border: 1px solid rgba(255,255,255,.35);
      border-radius: 8px;
      background: rgba(255,255,255,.12);
      color: #fff;
      padding: .35rem .55rem;
      font-size: .78rem;
    }
    .topbar-search::placeholder { color: rgba(255,255,255,.78); }
    .icon-btn {
      width: 28px;
      height: 28px;
      border-radius: 7px;
      border: 1px solid rgba(255,255,255,.26);
      background: rgba(255,255,255,.09);
      color: #fff;
      font-size: .75rem;
      font-weight: 700;
      display: grid;
      place-items: center;
    }
    .user-chip {
      border: 1px solid rgba(255,255,255,.26);
      border-radius: 999px;
      padding: .3rem .55rem;
      font-size: .72rem;
      font-weight: 700;
      background: rgba(255,255,255,.12);
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .atlas-app-main {
      display: grid;
      grid-template-columns: 250px 1fr 280px;
      min-height: 0;
    }

    .atlas-side {
      background: var(--app-side);
      color: #9ca3af;
      border-right: 1px solid #1f2937;
      padding: .8rem .7rem;
      overflow: auto;
    }
    .atlas-side-group {
      margin-bottom: .8rem;
    }
    .atlas-side-group h4 {
      margin: .1rem 0 .5rem;
      color: #d1d5db;
      font-size: .72rem;
      text-transform: uppercase;
      letter-spacing: .09em;
      font-weight: 700;
    }
    .atlas-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .32rem; }
    .module-btn {
      width: 100%;
      text-align: left;
      border: 1px solid #374151;
      border-radius: 8px;
      background: var(--app-side-2);
      color: #9ca3af;
      padding: .44rem .5rem;
      font-size: .76rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: .5rem;
      transition: .2s ease;
    }
    .module-btn:hover { border-color: #4b5563; color: #d1d5db; }
    .module-btn.active {
      color: #ecfdf5;
      border-color: var(--app-accent);
      box-shadow: inset 0 0 0 1px rgba(34,197,94,.45);
      background: #1b2d26;
    }
    .module-badge {
      font-size: .62rem;
      border-radius: 999px;
      padding: .1rem .35rem;
      border: 1px solid rgba(34,197,94,.45);
      color: #86efac;
    }

    .atlas-content {
      background: #f9fafb;
      padding: .85rem;
      display: grid;
      gap: .7rem;
      align-content: start;
      overflow: auto;
    }
    .atlas-toolbar {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: .6rem;
    }
    .atlas-demo-title {
      margin: 0;
      font-size: clamp(1.05rem, 2vw, 1.45rem);
      font-weight: 700;
      color: #111827;
    }
    .atlas-demo-sub {
      margin: .2rem 0 0;
      color: #4b5563;
      font-size: .84rem;
    }
    .atlas-tools { display: flex; gap: .4rem; flex-wrap: wrap; }
    .tool-btn {
      border: 1px solid #d1d5db;
      border-radius: 8px;
      background: #fff;
      color: #374151;
      padding: .36rem .52rem;
      font-size: .68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .05em;
      cursor: pointer;
    }
    .tool-btn.primary {
      background: var(--app-primary);
      color: #fff;
      border-color: var(--app-primary-dark);
    }
    .chip-row { display: flex; gap: .36rem; flex-wrap: wrap; }
    .filter-chip {
      border: 1px solid #d1d5db;
      background: #fff;
      color: #4b5563;
      border-radius: 999px;
      font-size: .68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .05em;
      padding: .2rem .48rem;
      cursor: pointer;
    }
    .filter-chip.active {
      border-color: #16a34a;
      color: #166534;
      background: #ecfdf5;
    }

    .atlas-kpi-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: .5rem;
    }
    .kpi {
      border: 1px solid #d1d5db;
      border-radius: 10px;
      background: #fff;
      padding: .62rem;
    }
    .kpi .n { color: var(--app-primary); font-size: 1.02rem; font-weight: 800; line-height: 1; }
    .kpi .l { margin-top: .18rem; color: #6b7280; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }

    .content-grid {
      display: grid;
      grid-template-columns: 1.25fr .75fr;
      gap: .55rem;
      min-height: 320px;
    }
    .panel {
      border: 1px solid #d1d5db;
      border-radius: 10px;
      background: #fff;
      padding: .68rem;
    }
    .panel h5 {
      margin: 0 0 .52rem;
      font-size: .73rem;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: #374151;
    }
    .panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: .4rem;
      margin-bottom: .45rem;
    }
    .panel-head h5 { margin: 0; }

    .kanban {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: .45rem;
    }
    .kcol {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      background: #f9fafb;
      padding: .4rem;
    }
    .kcol h6 {
      margin: 0 0 .35rem;
      font-size: .66rem;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: #4b5563;
    }
    .kcard {
      border: 1px solid #d1d5db;
      border-left-width: 4px;
      border-radius: 8px;
      background: #fff;
      padding: .45rem;
      margin-bottom: .35rem;
      font-size: .74rem;
      color: #374151;
    }
    .kcard.ok { border-left-color: #16a34a; }
    .kcard.warn { border-left-color: #d97706; }
    .kcard.risk { border-left-color: #dc2626; }
    .kcard small { display: block; color: #6b7280; margin-top: .15rem; }

    .stock-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: .45rem;
    }
    .stock-card {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      background: #fff;
      padding: .48rem;
    }
    .stock-top {
      display: flex;
      justify-content: space-between;
      gap: .4rem;
      align-items: center;
      font-size: .73rem;
      color: #374151;
      margin-bottom: .25rem;
    }
    .stock-bar {
      height: 7px;
      background: #e5e7eb;
      border-radius: 999px;
      overflow: hidden;
    }
    .stock-fill {
      height: 100%;
      background: linear-gradient(90deg, #16a34a, #22c55e);
      border-radius: 999px;
    }
    .stock-fill.warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
    .stock-fill.risk { background: linear-gradient(90deg, #ef4444, #f87171); }

    .insp-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: .45rem;
    }
    .insp-card {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      background: #fff;
      padding: .48rem;
      font-size: .74rem;
    }
    .insp-checks { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; gap: .2rem; }
    .insp-checks li { color: #4b5563; }

    .cert-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: .4rem;
    }
    .cert-item {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      background: #fff;
      padding: .5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: .5rem;
      font-size: .74rem;
    }

    .report-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: .45rem;
    }
    .report-card {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      background: #fff;
      padding: .52rem;
      font-size: .74rem;
    }
    .report-card strong { color: #111827; }
    .report-card small { color: #6b7280; }

    .gantt-list { display: grid; gap: .4rem; }
    .gantt-row { border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; padding: .45rem; }
    .gantt-title { font-size: .74rem; color: #374151; margin-bottom: .25rem; }
    .gantt-track { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
    .gantt-fill { height: 100%; background: linear-gradient(90deg, #0ea5e9, #22c55e); border-radius: 999px; }

    .module-meta {
      font-size: .66rem;
      color: #6b7280;
      text-transform: uppercase;
      letter-spacing: .05em;
    }
    .action-row {
      display: flex;
      flex-wrap: wrap;
      gap: .35rem;
      margin-top: .35rem;
    }
    .action-btn {
      border: 1px solid #d1d5db;
      border-radius: 7px;
      background: #fff;
      color: #374151;
      font-size: .66rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .05em;
      padding: .24rem .4rem;
      cursor: pointer;
    }
    .action-btn:hover { border-color: #9ca3af; }
    .action-btn.strong {
      border-color: #166534;
      background: #ecfdf5;
      color: #166534;
    }

    .atlas-modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      background: rgba(3, 7, 18, .56);
      z-index: 120;
    }
    .atlas-modal.show { display: flex; }
    .atlas-modal-card {
      width: min(740px, 100%);
      max-height: 85vh;
      overflow: auto;
      border: 1px solid #d1d5db;
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 26px 56px rgba(0,0,0,.28);
    }
    .atlas-modal-head {
      padding: .7rem .8rem;
      border-bottom: 1px solid #e5e7eb;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: .6rem;
    }
    .atlas-modal-head h4 {
      margin: 0;
      font-size: .9rem;
      color: #111827;
    }
    .atlas-modal-body {
      padding: .75rem .8rem;
      color: #374151;
      font-size: .8rem;
      display: grid;
      gap: .55rem;
    }
    .modal-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: .45rem;
    }
    .modal-box {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      padding: .5rem;
      background: #f9fafb;
    }
    .modal-box h6 {
      margin: 0 0 .3rem;
      font-size: .67rem;
      color: #4b5563;
      text-transform: uppercase;
      letter-spacing: .06em;
    }
    .modal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
    .modal-actions {
      padding: .65rem .8rem;
      border-top: 1px solid #e5e7eb;
      display: flex;
      justify-content: flex-end;
      gap: .4rem;
      background: #f9fafb;
    }

    .atlas-table {
      width: 100%;
      border-collapse: collapse;
      font-size: .79rem;
    }
    .atlas-table th,
    .atlas-table td {
      border-bottom: 1px solid #e5e7eb;
      padding: .44rem;
      text-align: left;
      color: #374151;
    }
    .atlas-table th { color: #111827; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
    .atlas-table tbody tr { cursor: pointer; }
    .atlas-table tbody tr:hover { background: #f9fafb; }

    .badge {
      display: inline-block;
      border-radius: 999px;
      border: 1px solid #d1d5db;
      background: #f9fafb;
      font-size: .62rem;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: uppercase;
      padding: .1rem .35rem;
      color: #374151;
    }
    .badge.ok { border-color: #bbf7d0; color: #166534; background: #ecfdf5; }
    .badge.warn { border-color: #fde68a; color: #92400e; background: #fffbeb; }
    .badge.risk { border-color: #fecaca; color: #991b1b; background: #fef2f2; }

    .timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
    .timeline li {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      background: #f9fafb;
      padding: .5rem;
      font-size: .77rem;
      color: #374151;
    }
    .timeline small { display: block; color: #6b7280; margin-top: .15rem; }

    .chart {
      display: grid;
      gap: .3rem;
      margin-top: .45rem;
    }
    .bar-row { display: grid; grid-template-columns: 90px 1fr 38px; align-items: center; gap: .45rem; }
    .bar-track {
      height: 8px;
      background: #e5e7eb;
      border-radius: 999px;
      overflow: hidden;
    }
    .bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #16a34a, #22c55e);
      border-radius: 999px;
    }
    .bar-label { font-size: .7rem; color: #374151; }
    .bar-val { font-size: .69rem; color: #6b7280; text-align: right; }

    .atlas-detail {
      background: #ffffff;
      border-left: 1px solid #e5e7eb;
      padding: .78rem;
      overflow: auto;
    }
    .atlas-detail h4 {
      margin: 0;
      font-size: .88rem;
      color: #111827;
    }
    .atlas-detail p {
      margin: .25rem 0 .55rem;
      font-size: .78rem;
      color: #6b7280;
    }
    .detail-card {
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      background: #f9fafb;
      padding: .56rem;
      font-size: .76rem;
      color: #374151;
      margin-bottom: .45rem;
    }
    .detail-label {
      font-size: .64rem;
      color: #6b7280;
      text-transform: uppercase;
      letter-spacing: .06em;
      margin-bottom: .15rem;
    }

    .demo-watermark {
      margin-top: .1rem;
      color: #16a34a;
      font-size: .72rem;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .toast {
      position: fixed;
      right: 1rem;
      bottom: 1rem;
      background: #111827;
      color: #f9fafb;
      border: 1px solid #374151;
      border-radius: 10px;
      padding: .65rem .75rem;
      font-size: .78rem;
      box-shadow: 0 14px 32px rgba(0,0,0,.3);
      opacity: 0;
      transform: translateY(10px);
      pointer-events: none;
      transition: .2s ease;
      z-index: 90;
    }
    .toast.show { opacity: 1; transform: translateY(0); }

    @media (max-width: 1140px) {
      .atlas-app-main { grid-template-columns: 220px 1fr; }
      .atlas-detail { display: none; }
    }
    @media (max-width: 900px) {
      .atlas-app-main { grid-template-columns: 1fr; }
      .atlas-side { display: none; }
      .atlas-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .content-grid { grid-template-columns: 1fr; }
      .kanban,
      .stock-grid,
      .insp-grid,
      .report-grid { grid-template-columns: 1fr; }
      .modal-grid { grid-template-columns: 1fr; }
      .topbar-search { width: 180px; }
    }

    footer {
      padding: 2rem 0 1.6rem;
      border-top: 1px solid var(--line);
      background: #07091A;
      color: var(--muted);
      font-size: .88rem;
    }
    .footer-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 1.2rem;
      justify-content: space-between;
      align-items: center;
    }
    .footer-brand { display: flex; align-items: center; gap: .65rem; color: var(--text); }
    .footer-legal { display: flex; gap: .95rem; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
    .footer-legal a { color: var(--muted); border-bottom: 1px dashed rgba(224,181,100,.35); }
    .footer-legal a:hover { color: var(--gold); border-bottom-color: rgba(224,181,100,.75); }
