/* Shared Auraicity shell: dimensions and colours follow the AuraiTree layout. */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto:wght@500;700&display=swap');
:root { --sidebar: #191c24; --topbar: #191c24; --panel: #191c24; --bg: #000; --green: #94c123; --muted: #8e95b3; }
html, body { font-family: 'Open Sans', sans-serif; }
h1, h2, h3, h4, h5, .sidebar-user { font-family: Roboto, sans-serif; }
.container-scroller { background: #000; }
.sidebar { width: 250px; min-width: 250px; padding: 24px 24px 20px 0; background: #191c24; }
.sidebar-logo { padding: 0 0 0 24px; margin: 0 0 24px; border: 0; }
.sidebar-logo img { max-width: 190px; }
.sidebar-user { margin-left: 24px; padding-bottom: 24px; font-size: 20px; }
.sidebar-nav { gap: 2px; margin-top: 18px; }
.nav-item { min-height: 54px; padding: 7px 16px 7px 20px; border-left: 3px solid transparent; gap: 10px; }
.nav-item.active::before { display: none; }
.nav-item:hover, .nav-item.active { border-left-color: var(--green); }
.nav-item:hover .nav-icon, .nav-item.active .nav-icon { background: #191c24; }
.nav-spacer { margin: 20px 0 20px 24px; }
.nav-item-logout { margin-top: 12px; }
.page-body-wrapper { margin-left: 250px; }
.topbar { position: sticky; top: 0; z-index: 100; min-height: 72px; padding: 12px 24px; }
.topbar-left { gap: 16px; flex: 1; }
.topbar-user { flex: none; gap: 16px; }
.context-box { gap: 10px; min-width: 0; flex-wrap: wrap; }
.context-field { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.context-field-label { color: #8e95b3; font-size: 10px; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; padding-left: 4px; }
.context-select { min-width: 80px; max-width: 200px; width: auto; height: 28px; padding: 2px 4px; color: #fff; background: transparent; border: 0; border-radius: 4px; font-size: 14px; }
.context-select:focus-visible { outline: 1px solid #94c123; outline-offset: 1px; }
.context-select option { background: #191c24; }
.context-switch { display:inline-flex; justify-content:center; align-items:center; flex-shrink:0; padding:4px 8px; min-width:32px; min-height:32px; border:1px solid #0dcaf0; border-radius:4px; color:#0dcaf0; background:transparent; margin:0 16px; }
.context-switch svg { display:block; width:16px; height:16px; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.context-switch:hover { background:#0dcaf0; color:#000; }
.context-switch:focus-visible, .home-context-button:focus-visible { outline:2px solid #0dcaf0; outline-offset:3px; }
@media(max-width:700px) { .context-switch { margin:0 4px; } }
.menu-circle { width: 40px; min-width: 40px; height: 40px; font-size: 18px; }
.language-select { background: transparent; border: 0; border-radius: 4px; padding: 8px; min-width: 55px; }
.language-select option { background: #191c24; }
.user-menu { position: relative; }
.user-menu summary { display: flex; gap: 8px; align-items: center; cursor: pointer; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.topbar-avatar { width: 40px; height: 40px; background: #000; border: 1px solid var(--line); color: var(--green); }
.topbar-user-meta { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.topbar-user-role { font-size: 11px; color: var(--muted); }
.user-menu-links { position: absolute; top: calc(100% + 15px); right: 0; min-width: 220px; border: 1px solid var(--line); background: #191c24; border-radius: 4px; box-shadow: var(--shadow); }
.user-menu-links a { display: block; padding: 12px 16px; font-size: 14px; }
.user-menu-links a:hover { color: var(--green); background: #000; }
.content-wrapper { padding: 24px; }
.card, .hero-card, .admin-big-card, .aurai-menu-card { border-radius: 8px; }
.card, .admin-big-card { background: #191c24; }
.card { padding: 24px; min-width: 0; box-shadow: none; }
.btn-primary, .btn-secondary, .btn-small {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 10px 18px; line-height: 1.4; font-size: 14px;
  font-weight: 600; text-align: center; vertical-align: middle; box-shadow: none;
}
.btn-primary { background: #94c123; border: 1px solid #94c123; color: #000; }
.btn-primary:hover { background: #a4d52c; border-color: #a4d52c; transform: none; box-shadow: none; }
.btn-secondary { background: transparent; color: #fff; border: 1px solid #454a59; }
.btn-secondary:hover { background: #252a35; transform: none; }
.btn-primary:disabled, .btn-secondary:disabled { opacity: .55; cursor: not-allowed; }
.page-title, h1.page-title, h2.page-title { font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.page-subtitle { font-size: 14px; color: #a0a7bf; }
.dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.eyebrow, .hero-badge { display: block; color: #94c123; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.hero-card { margin-bottom: 32px; }
.hero-title { font-size: 28px; line-height: 1.3; font-weight: 700; margin-bottom: 10px; }
.hero-text { color: #a0a7bf; font-size: 14px; line-height: 1.6; max-width: 760px; }
.admin-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.admin-big-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; min-height: 210px; box-shadow: none; }
.admin-big-card:hover { transform: none; box-shadow: none; border-color: #94c123; }
.admin-icon-box { width: 48px; height: 48px; border-radius: 12px; background: #252d1b; color: #94c123; margin-bottom: 20px; }
.admin-icon-box svg { width: 24px; height: 24px; }
.admin-big-card h3 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.admin-big-card p { font-size: 14px; }
.form-page .content-wrapper { max-width: 1150px; margin: 0 auto; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.form-group label { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: #a0a7bf; }
.form-group input:not([type=checkbox]):not([type=radio]), .form-group select, .form-group textarea { border-radius: 4px; background: #11151e; border-color: #353b49; font-size: 14px; }
.form-group input:not([type=checkbox]):not([type=radio]), .form-group select { height: 44px; padding: 0 12px; }
.form-group input[type=checkbox], .form-group input[type=radio], input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-width: 18px; min-height: 18px; padding: 0; margin: 0; flex: none; accent-color: #94c123; box-shadow: none; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-group label.checkbox-card { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0; min-height: 48px; border: 1px solid #353b49; border-radius: 4px; color: #fff; font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; cursor: pointer; }
.checkbox-card span { min-width: 0; overflow-wrap: anywhere; }
.checkbox-card:has(input:checked) { border-color: #64801f; background: #20271b; }
.form-group .page-subtitle { font-size: 12px; line-height: 1.5; margin-top: 8px; }
.form-grid > .form-actions { grid-column: 1 / -1; }
.form-actions { padding-top: 20px; border-top: 1px solid var(--line); justify-content: flex-end; margin-top: 24px; }
.card-title { font-size: 18px; margin-bottom: 20px; }
.card + .card { margin-top: 24px; }
.details-grid { margin-bottom: 24px; }
.card:has(> .data-table) { overflow-x: auto; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-small { min-height: 32px; padding: 6px 12px; border: 1px solid #454a59; background: transparent; font-size: 13px; }
.alert-error, .alert-success, .pagination-limit, .pagination-controls button { border-radius: 4px; }
.form-group input:disabled, .form-group select:disabled { opacity: .65; cursor: not-allowed; }
.dashboard-hero > div { min-width: 0; }
.stat-card, .modern-stat, .modern-chart-card { background: #191c24; border-radius: 8px; box-shadow: none; }
.stat-card { min-height: 144px; }
.stat-value { font-size: 30px; font-weight: 700; }
.time-btn.active, .time-btn:hover { background: #94c123; color: #000; }
.time-filter, .filter-group select { border-radius: 4px; }
.filters-grid { align-items: end; }
.filter-group label { font-size: 12px; color: #a0a7bf; letter-spacing: .03em; }
.filter-group select, .filter-group input { min-height: 42px; background: #11151e; border: 1px solid #353b49; }
.table-header { margin-bottom: 20px; }
.table-wrapper, #eventos-table, #alarms-table { overflow-x: auto; }
.data-table th, .alarms-data-table th { color: #a0a7bf; font-size: 12px; font-weight: 600; }
.data-table td, .alarms-data-table td { font-size: 14px; }
.content-wrapper { width: 100%; min-width: 0; }
.page-body-wrapper, .main-panel { min-width: 0; }
.context-heading { text-align: center; margin: 8px 0 36px; }
.context-heading .page-subtitle { margin-top: 10px; }
.context-toolbar { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.project-select-wrap { max-width: 1280px; margin: 0 auto; }
.context-projects { display: flex; flex-direction: column; gap: 28px; }

.context-client-card { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 24px; min-height:100px; background:linear-gradient(90deg,#0d1c44,#11255f); border:1px solid #20428f; border-radius:24px; cursor:pointer; list-style:none; }
.context-client-card::-webkit-details-marker { display:none; }
.context-client-card:hover, .context-client-group[open] > .context-client-card { border-color:#12d3ff; }
.context-client-card:focus-visible, .context-project-row:focus-visible { outline:2px solid #94c123; outline-offset:4px; }
.context-group-label { display:block; font-size:12px; color:#a0a7bf; margin-bottom:4px; }
.context-group-title { display:block; font-size:24px; line-height:1.3; font-weight:700; overflow-wrap:anywhere; }
.context-client-count { display:block; margin-top:5px; font-size:14px; color:#8e95b3; }
.context-project-list { display:flex; flex-direction:column; gap:14px; margin-top:16px; }
.context-project-form { margin:0; }
.context-project-row { display:flex; align-items:center; justify-content:space-between; gap:20px; width:100%; min-height:78px; padding:18px 24px; border:1px solid #1d2333; border-radius:4px; background:#0c1020; color:#fff; text-align:left; cursor:pointer; }
.context-project-row:hover, .context-project-row.active { border-color:#12d3ff; }
.context-project-info { display:flex; align-items:center; gap:18px; min-width:0; }
.context-project-avatar { display:flex; align-items:center; justify-content:center; width:52px; height:52px; flex:none; border-radius:14px; background:#173760; color:#8cbbf1; }
.context-project-avatar svg { width:24px; height:24px; }
.context-project-name { display:block; font-size:16px; font-weight:600; overflow-wrap:anywhere; }
.context-project-status { display:block; color:#8e95b3; font-size:13px; margin-top:5px; }
.context-project-arrow { flex:none; color:#12d3ff; font-size:22px; }
.context-client-chevron { display:flex; align-items:center; justify-content:center; width:38px; height:38px; flex:none; border-radius:50%; background:#94c123; color:#fff; }
.context-client-chevron svg { width:20px; height:20px; transform:rotate(-90deg); transition:transform .15s; }
.context-client-group[open] > .context-client-card .context-client-chevron svg { transform:rotate(0); }
.btn-primary, .btn-secondary, .btn-small, input, select, textarea { border-radius: 4px; }
.context-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.context-card { display: flex; flex-direction: column; gap: 16px; }
.context-card.active { border-color: var(--green); }
.context-client { color: var(--muted); font-size: 13px; }
.empty-context { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 18px; margin: 0 0 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (min-width: 992px) { .sidebar { transform: translateX(0); } .topbar, .topbar-left { flex-direction: row; align-items: center; } .topbar-user { width: auto; justify-content: flex-end; } body.sidebar-hidden .sidebar { transform: translateX(-100%); } body.sidebar-hidden .page-body-wrapper { margin-left: 0; } }
@media (min-width: 992px) and (max-width: 1200px) {
  .topbar { gap: 12px; padding: 12px 20px; }
  .topbar-left { gap: 12px; }
  .topbar-user { gap: 8px; }
  .topbar-user-meta, .platform-name { display: none; }
  .context-box { flex-wrap: nowrap; gap: 8px; }
  .context-select { min-width: 0; max-width: 140px; }
}
@media (max-width: 991.98px) {
  .admin-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { transform: translateX(-100%); z-index: 200; }
  .page-body-wrapper { width: 100%; margin-left: 0; }
  body.sidebar-hidden .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: translateX(0); box-shadow: 20px 0 60px #0009; }
  .topbar, .topbar-left { flex-direction: row; align-items: center; }
  .topbar { flex-wrap: wrap; gap: 12px; }
  .topbar-user { width: auto; margin-left: auto; }
  .context-select { max-width: 160px; }
  .topbar-user-meta { display: none; }
  .content-wrapper { padding: 20px 16px; }
}
@media (max-width: 575px) {
  .admin-card-grid, .form-grid, .checkbox-grid, .details-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 24px; }
  .form-actions > .btn-primary, .form-actions > .btn-secondary { flex: 1; }
  .card { padding: 18px; }
  .dashboard-hero { gap: 16px; }
  .page-title, h1.page-title, h2.page-title { font-size: 24px; }
  .context-client-card { padding:18px; border-radius:16px; gap:12px; }
  .context-project-row { padding:16px 18px; gap:12px; }
  .context-group-title { font-size:22px; }
  .context-project-info { gap: 12px; }
  .context-project-name { font-size:16px; }
  .topbar { padding: 10px 12px; }
  .topbar-left { width: 100%; }
  .context-box { flex: 1; gap: 6px; }
  .context-field { flex: 1; width: calc(50% - 24px); }
  .context-select { width: 100%; max-width: none; }
  .top-separator, .platform-name { display: none; }
  .topbar-user { width: 100%; justify-content: flex-end; }
  .topbar-user-meta { display: flex; }
}
