﻿:root {
  --filo-primary: #B45309;
  --filo-primary-dark: #92400e;
  --filo-bg: #faf7f2;
  --filo-surface: #ffffff;
  --filo-border: #e5ddd0;
  --filo-text: #1c2422;
  --filo-muted: #6b7280;
  --filo-danger: #b91c1c;
  --filo-sidebar-w: 15rem;
}

html, body {
  font-family: "Segoe UI", system-ui, sans-serif;
  margin: 0;
  background: var(--filo-bg);
  color: var(--filo-text);
}

.filo-shell {
  display: flex;
  min-height: 100vh;
}

.filo-sidebar {
  width: var(--filo-sidebar-w);
  background: #1c1917;
  color: #fafaf9;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.filo-shell.is-closed .filo-sidebar {
  transform: translateX(calc(-1 * var(--filo-sidebar-w)));
}

.filo-sidebar-backdrop {
  display: none;
}

.filo-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
  gap: 0.15rem;
  height: 100%;
}

.filo-sidebar-brand {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  margin: 0 0.35rem 1rem;
  text-decoration: none;
}
.filo-sidebar-brand img {
  height: 36px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  display: block;
}

.filo-menu-search { margin: 0 0.35rem 0.75rem; }
.filo-menu-search-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
}
.filo-menu-search-input::placeholder { color: rgba(231,229,228,.55); }
.filo-menu-group { margin-bottom: 0.25rem; }
.filo-menu-group-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(231,229,228,.65);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  border-radius: 8px;
}
.filo-menu-group-header:hover { background: rgba(255,255,255,.08); color: #fff; }

.filo-nav-link {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  color: #e7e5e4;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.filo-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.filo-nav-link.active {
  background: var(--filo-primary);
  color: #fff;
}

.filo-nav-spacer { flex: 1; }
.filo-nav-muted { opacity: 0.75; font-weight: 500; }

.filo-main-wrap {
  flex: 1;
  margin-left: var(--filo-sidebar-w);
  transition: margin-left 0.2s ease;
  min-width: 0;
}

.filo-shell.is-closed .filo-main-wrap {
  margin-left: 0;
}

.filo-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: var(--filo-surface);
  border-bottom: 3px solid var(--filo-primary);
}

.filo-topbar-product {
  font-weight: 800;
  color: var(--filo-primary);
}

.filo-topbar-logo {
  height: 32px;
  width: auto;
  background: #fff;
  border-radius: 4px;
  padding: 2px 6px;
}

.filo-topbar-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.filo-topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.filo-topbar-user {
  margin-left: 0;
  font-size: 0.85rem;
  color: var(--filo-muted);
}

.filo-main {
  padding: 1.25rem 1.5rem 2rem;
  max-width: 1200px;
}

.filo-page-title {
  margin: 0 0 0.35rem;
  color: var(--filo-primary);
  font-size: 1.45rem;
}

.filo-page-lead {
  color: var(--filo-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.filo-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.filo-kpi-card {
  background: var(--filo-surface);
  border: 1px solid var(--filo-border);
  border-radius: 8px;
  padding: 0.85rem 0.65rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.filo-kpi-card.accent {
  border-color: var(--filo-primary);
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.filo-kpi-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--filo-primary-dark);
}

.filo-kpi-label {
  font-size: 0.78rem;
  color: var(--filo-muted);
  margin-top: 0.15rem;
}

.filo-filter-card {
  background: var(--filo-surface);
  border: 1px solid var(--filo-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.filo-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
}

.filo-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--filo-muted);
  margin-bottom: 0.2rem;
}

.filo-field input,
.filo-field select,
.filo-field textarea {
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--filo-border);
  border-radius: 6px;
  font: inherit;
  min-width: 8rem;
}

.filo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  background: var(--filo-primary);
  color: #fff;
}

.filo-btn:hover { filter: brightness(0.95); }
.filo-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.filo-btn-outline {
  background: #fff;
  color: var(--filo-primary-dark);
  border-color: var(--filo-border);
}

.filo-btn-ghost {
  background: transparent;
  color: var(--filo-primary);
  border-color: var(--filo-border);
}

.filo-btn-sm { padding: 0.3rem 0.65rem; font-size: 0.82rem; }
.filo-btn-danger { background: var(--filo-danger); }

.filo-icon-btn {
  border: 1px solid var(--filo-border);
  background: #fff;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.filo-table-wrap {
  overflow-x: auto;
  background: var(--filo-surface);
  border: 1px solid var(--filo-border);
  border-radius: 8px;
}

.filo-table {
  width: 100%;
  border-collapse: collapse;
}

.filo-table th,
.filo-table td {
  border-bottom: 1px solid var(--filo-border);
  padding: 0.45rem 0.65rem;
  text-align: left;
  font-size: 0.88rem;
}

.filo-table th {
  background: #fff7ed;
  font-weight: 700;
  color: var(--filo-primary-dark);
}

.filo-table tr:last-child td { border-bottom: 0; }

.filo-pager {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--filo-muted);
}

.filo-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filo-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--filo-border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.filo-tab.active {
  background: var(--filo-primary);
  color: #fff;
  border-color: var(--filo-primary);
}

.filo-alert {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  position: relative;
}

.filo-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.filo-alert-dismiss {
  position: absolute;
  right: 0.5rem;
  top: 0.35rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.filo-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--filo-surface);
  border: 1px dashed var(--filo-border);
  border-radius: 8px;
}

.filo-empty-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.filo-empty h3 { margin: 0 0 0.35rem; }
.filo-empty p { color: var(--filo-muted); margin: 0 0 1rem; }

.filo-map {
  height: 520px;
  width: 100%;
  border: 1px solid var(--filo-border);
  border-radius: 8px;
}

.suite-login-page {
  --suite-accent: #B45309;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #111;
}
.suite-login-top {
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
}
.suite-login-top a {
  color: var(--suite-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}
.suite-login-top a:hover { text-decoration: underline; }
.suite-login-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.suite-login-card {
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  background: #fff;
}
.suite-login-card h1 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  font-weight: 700;
  color: #111;
}
.suite-login-card label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}
.suite-login-card input[type="email"],
.suite-login-card input[type="password"],
.suite-login-card input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
}
.suite-login-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  margin: 0 0 0.85rem;
}
.suite-login-check input { width: auto; margin: 0; }
.suite-login-actions { display: grid; gap: 0.5rem; }
.suite-login-primary {
  width: 100%;
  background: var(--suite-accent);
  border: 1px solid var(--suite-accent);
  color: #fff;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
}
.suite-login-outline {
  width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #111;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.suite-login-create {
  text-align: center;
  color: var(--suite-accent);
  font-size: 0.9rem;
  text-decoration: none;
}
.suite-login-alert { padding: 0.6rem 0.75rem; border-radius: 6px; margin-bottom: 0.75rem; }
.suite-login-alert-error { background: #fee2e2; color: #991b1b; }
.suite-login-alert-info { background: #f3f4f6; color: #111; }

.filo-login-shell-legacy {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, #fff7ed, var(--filo-bg));
  gap: 0.75rem;
}

.filo-login-header, .filo-login-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: 22rem;
}

.filo-login-brand strong { display: block; color: var(--filo-primary); }
.filo-login-brand span { display: block; font-size: 0.8rem; color: var(--filo-muted); }
.filo-login-back a, .filo-login-footer a {
  color: var(--filo-primary);
  font-weight: 650;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 0.75rem;
}

.filo-login-card {
  width: 100%;
  max-width: 22rem;
  background: #fff;
  border: 1px solid var(--filo-border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.08);
}

.filo-login-card h1 {
  margin: 0 0 0.25rem;
  color: var(--filo-primary);
  font-size: 1.35rem;
}

.filo-login-card .filo-field { margin-bottom: 0.75rem; }
.filo-login-card .filo-field input { width: 100%; box-sizing: border-box; }

.filo-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

#blazor-error-ui { display: none; }

@media (max-width: 768px) {
  .filo-sidebar {
    transform: translateX(calc(-1 * var(--filo-sidebar-w)));
  }
  .filo-shell.is-open .filo-sidebar {
    transform: translateX(0);
  }
  .filo-shell.is-open .filo-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 150;
  }
  .filo-main-wrap { margin-left: 0; }
}
