@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Venustiano Carranza Municipal Theme - Solid Premium Theme */
  --bg-main: #0c0e1b;
  --bg-panel: rgba(21, 25, 48, 0.45);
  --bg-sidebar: #080a14;
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-focus: #049dd9;
  
  --color-blue: #049dd9;       /* Cyan primario VC */
  --color-blue-hover: #0386ba; /* Cyan hover */
  --color-pink: #d9048e;       /* Rosa acento VC */
  --color-pink-hover: #b50375; /* Rosa hover */
  
  --color-purple: #8b5cf6;
  --color-cyan: #06b6d4;
  --color-green: #10b981;
  --color-amber: #f59e0b;
  --color-rose: #f43f5e;
  --color-slate: #64748b;
  
  --text-main: #f1f5f9;        /* Slate 100 */
  --text-muted: #94a3b8;       /* Slate 400 */
  --text-white: #ffffff;
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.35);
  --shadow-inset: inset 0 2px 4px rgba(255, 255, 255, 0.05);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-sidebar);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-blue);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-white);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--color-blue-hover);
}

/* Form Fields */
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-muted);
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background-color: rgba(8, 10, 20, 0.6);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
  box-shadow: var(--shadow-inset);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(4, 157, 217, 0.25);
  background-color: rgba(8, 10, 20, 0.85);
}
input::placeholder {
  color: #4b5563;
}
input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}
textarea {
  min-height: 100px;
  resize: vertical;
}

/* Auth Pages */
.login-bg {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background-color: #080a15;
}
.login-card {
  width: min(420px, 100%);
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-blue);
}
.login-card h1 {
  margin: 16px 0 6px 0;
  font-size: 26px;
  text-align: center;
  font-weight: 800;
}
.login-card p {
  color: var(--text-muted);
  text-align: center;
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 14px;
}
.login-card form {
  display: grid;
  gap: 18px;
}

/* Brands & Badges */
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background-color: var(--color-blue);
  color: var(--text-white);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 20px;
  border-radius: 8px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(4, 157, 217, 0.3);
}
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(244, 63, 94, 0.12);
  color: #ffa1b2;
  border: 1px solid rgba(244, 63, 94, 0.25);
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 500;
}

/* App Layout */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
}

.sidebar {
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--transition);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
}
.brand strong {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--text-white);
  letter-spacing: -0.01em;
  font-weight: 800;
}
.sidebar .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 15px;
  border-radius: 6px;
  margin: 0;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar a {
  color: var(--text-muted);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.sidebar a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.6;
  transition: var(--transition);
}
.sidebar a:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
}
.sidebar a:hover svg {
  opacity: 0.9;
  transform: translateX(2px);
}
.sidebar a.active {
  background: rgba(4, 157, 217, 0.08);
  color: var(--color-blue);
  border-left: 3px solid var(--color-blue);
  font-weight: 600;
}
.sidebar a.active svg {
  opacity: 1;
}

.content {
  padding: 30px;
  min-width: 0;
  max-width: 1400px;
  width: 100%;
}

/* Topbar Header */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}
.topbar h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-white);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  font-size: 13.5px;
  color: var(--text-main);
  font-weight: 500;
}
.user-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-green);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  padding: 6px;
  cursor: pointer;
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Panels and Cards - Glassmorphism style */
.card, .panel, .table-wrap, .detail {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}
.card:hover, .panel:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 20px 24px;
}
.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-blue);
}
.metric span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.metric strong {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 8px;
  line-height: 1.1;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel h2 svg {
  fill: var(--color-blue);
}

/* Progress Wrap for Dashboard Visualizations */
.progress-container {
  display: grid;
  gap: 16px;
}
.progress-item {
  display: grid;
  gap: 6px;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}
.progress-name {
  color: var(--text-main);
  font-weight: 500;
}
.progress-val {
  color: var(--text-muted);
  font-weight: 600;
}
.progress-wrap {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.progress-bar {
  height: 100%;
  border-radius: 99px;
  background-color: var(--color-blue);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-item:nth-child(2n) .progress-bar {
  background-color: var(--color-pink);
}
.progress-item:nth-child(3n) .progress-bar {
  background-color: var(--color-purple);
}

/* Lists and Links */
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list div, .list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  transition: var(--transition);
}
.list a:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
  color: var(--text-white);
  transform: translateX(4px);
}
.list div span, .list a span {
  font-weight: 500;
  font-size: 14px;
}
.list div strong, .list a em {
  font-size: 11.5px;
  font-weight: 700;
  font-style: normal;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
}

/* Toolbar and Filters */
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(180px, 1fr) minmax(140px, 1fr) auto;
  gap: 12px;
  flex: 1;
}
.toolbar-actions,
.bulk-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.btn, button {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  transition: var(--transition);
}
.btn:hover, button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.btn:active, button:active {
  transform: translateY(1px);
}
.btn.primary, button.primary {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(4, 157, 217, 0.2);
}
.btn.primary:hover, button.primary:hover {
  background-color: var(--color-blue-hover);
  border-color: var(--color-blue-hover);
  box-shadow: 0 6px 16px rgba(4, 157, 217, 0.35);
}

/* Tables and scrolling */
.table-wrap {
  padding: 0;
  overflow-x: auto;
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}
th, td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: middle;
}
th {
  background-color: rgba(255, 255, 255, 0.01);
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  font-size: 14px;
}
tr:last-child td {
  border-bottom: none;
}
tr {
  transition: var(--transition);
}
tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-nuevo {
  background: rgba(6, 182, 212, 0.08);
  color: #a5f3fc;
  border: 1px solid rgba(6, 182, 212, 0.2);
}
.status-nuevo::before {
  background-color: var(--color-cyan);
  box-shadow: 0 0 6px var(--color-cyan);
}

.status-bueno {
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-bueno::before {
  background-color: var(--color-green);
  box-shadow: 0 0 6px var(--color-green);
}

.status-regular {
  background: rgba(245, 158, 11, 0.08);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.status-regular::before {
  background-color: var(--color-amber);
  box-shadow: 0 0 6px var(--color-amber);
}

.status-danado, .status-dañado {
  background: rgba(244, 63, 94, 0.08);
  color: #fecdd3;
  border: 1px solid rgba(244, 63, 94, 0.2);
}
.status-danado::before, .status-dañado::before {
  background-color: var(--color-rose);
  box-shadow: 0 0 6px var(--color-rose);
}

.status-baja {
  background: rgba(100, 116, 139, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(100, 116, 139, 0.2);
}
.status-baja::before {
  background-color: var(--color-slate);
  box-shadow: 0 0 6px var(--color-slate);
}

/* Row Action Buttons */
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.actions a, .actions button {
  min-height: auto;
  padding: 5px 12px;
  font-size: 12.5px;
  border-radius: 4px;
}
.inline {
  display: inline;
}
.inline button {
  color: var(--color-rose);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 12px;
}
.inline button:hover {
  background: rgba(244, 63, 94, 0.1);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  justify-content: flex-end;
}
.pagination a {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
}
.pagination a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}
.pagination .active {
  background: var(--color-blue);
  color: var(--text-white) !important;
  border-color: var(--color-blue);
  box-shadow: 0 2px 8px rgba(4, 157, 217, 0.3);
}

/* Form Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.form-grid.compact-form {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.wide {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 10px;
}

/* Image Preview */
.preview {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.preview img, .object-photo, .public-photo {
  max-width: 240px;
  max-height: 240px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.preview img:hover, .object-photo:hover {
  border-color: var(--color-blue);
  transform: scale(1.02);
}
#foto-preview {
  display: none;
}

/* Detail View Layout */
.detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}
.detail-info {
  display: grid;
  gap: 12px;
}
.detail-info h2 {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 10px;
}
.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.info-row:last-child {
  border-bottom: none;
}
.info-label {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 13.5px;
}
.info-value {
  color: var(--text-main);
  font-size: 14.5px;
}
.info-value a {
  word-break: break-all;
}

/* Public view profile - Fully Aligned to VC Branding */
.public-page {
  min-height: 100vh;
  background-color: var(--bg-main);
  overflow-x: hidden;
}
.public-shell {
  width: min(900px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
}
.public-site-header {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  margin-bottom: 20px;
}
.public-header-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.public-header-logo {
  height: 60px;
  max-width: 42vw;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.public-header-logo-secondary {
  height: 55px;
}
.public-logo-divider {
  width: 2px;
  height: 44px;
  border-radius: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}
.public-card {
  width: 100%;
  margin: 0 auto;
  background: rgba(21, 25, 48, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.public-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-blue);
}
.public-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}
.public-split-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.public-split-right {
  width: 100%;
}
.public-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.01);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
}
.public-card .public-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: block;
}

@media (min-width: 768px) {
  .public-split {
    grid-template-columns: 300px 1fr;
    gap: 32px;
  }
  .public-card .public-photo {
    width: 300px;
    height: auto;
    max-height: 450px;
  }
  .public-photo-placeholder {
    width: 300px;
    aspect-ratio: 4 / 3;
  }
}

.public-card h1 {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}
.public-card dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  margin-bottom: 0;
}
.public-card dt {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 13.5px;
  padding: 6px 0;
}
.public-card dd {
  margin: 0;
  color: var(--text-main);
  font-size: 14.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  overflow-wrap: anywhere;
}
.public-card dd:last-of-type {
  border-bottom: none;
}
.print-warning {
  display: none;
  background: rgba(244, 63, 94, 0.12);
  color: #ffa1b2;
  border: 1px solid rgba(244, 63, 94, 0.2);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  margin-top: 24px;
  font-size: 13.5px;
}
.public-site-footer {
  text-align: center;
  padding: 30px 0 20px;
  margin-top: auto;
}
.public-footer-municipio {
  margin-bottom: 14px;
}
.public-footer-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.public-footer-subtitle {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.public-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(4, 157, 217, 0.12);
  color: var(--color-blue);
  font-size: 0.85rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  border: 1px solid rgba(4, 157, 217, 0.2);
}
.public-footer-link:hover {
  background: rgba(4, 157, 217, 0.22);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(4, 157, 217, 0.2);
}

/* Media Queries & Responsive layout */
@media (max-width: 992px) {
  .detail {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 800px) {
  .app {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: -270px;
    height: 100vh;
    width: 270px;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
    background-color: #05060d;
  }
  .sidebar.active {
    left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .filters,
  .toolbar-actions {
    grid-template-columns: 1fr;
  }
  .toolbar-actions {
    display: grid;
  }
  .toolbar a.btn {
    width: 100%;
  }
  .bulk-actions button {
    width: 100%;
  }
  
  .grid-2, .catalog-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  
  .public-shell {
    padding: 16px 12px;
  }
  .public-site-header {
    padding: 12px 0;
    margin-bottom: 12px;
  }
  .public-header-logos {
    gap: 12px;
  }
  .public-header-logo {
    height: 48px;
  }
  .public-header-logo-secondary {
    height: 44px;
  }
  .public-logo-divider {
    height: 36px;
  }
  .public-card {
    padding: 20px;
  }
  .public-card dl {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .public-card dt {
    padding-bottom: 0;
  }
  .public-card dd {
    padding-top: 0;
    padding-bottom: 6px;
  }
}

@media print {
  .public-site-header,
  .public-site-footer,
  .public-card > *:not(.print-warning),
  .public-card::before {
    display: none !important;
  }
  .public-shell {
    width: 100%;
    min-height: auto;
    padding: 0;
  }
  .public-card, .public-page, body {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  .print-warning {
    display: block !important;
    font-size: 20px;
    text-align: center;
    margin-top: 40vh;
    color: #000;
    border: none;
    background: none;
  }
}
