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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #0f172a;
  background-color: #f5f5f7;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

small,
.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-muted {
  color: #64748b;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: #f5f5f7;
}

body {
  display: flex;
  flex-direction: row;
  padding: 1rem;
  gap: 1rem;
}

.page-wrapper {
  flex-grow: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  width: auto;
  background: transparent;
  overflow: hidden;
}

main {
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-content-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  min-height: 0;
}

.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.main-header {
  background: linear-gradient(to right, #007A33, #005c28);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0 1rem;
  width: 100%;
  position: relative;
  z-index: 400;
}
.main-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
  gap: 1.25rem;
}
.main-header .header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.main-header .logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.main-header .navbar-logo {
  height: 32px;
  width: auto;
  display: block;
}
.main-header .navbar-logo path {
  stroke: #ffffff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: rgba(255, 255, 255, 0.15);
}
.main-header h1.logo {
  margin: 0;
  line-height: 1;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}
.main-header .vertical-divider {
  width: 1px;
  height: 1.5rem;
  background-color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.main-header .location-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.main-header .location-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.main-header .location-select {
  background-color: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-header .location-select:hover {
  background-color: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}
.main-header .location-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}
.main-header .header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.main-header .nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.main-header .system-selector {
  display: flex;
  align-items: center;
}
.main-header .form-group-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  cursor: pointer;
  outline: none;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-header .form-group-select:hover {
  background-color: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}
.main-header .form-group-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}
.main-header .block-selector {
  display: flex;
  align-items: center;
}
.main-header .block-buttons {
  position: relative;
  display: inline-flex;
  background-color: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  padding: 0.25rem;
}
.main-header .block-buttons::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0;
  height: calc(100% - 0.5rem);
  width: var(--active-width, 52px);
  background-color: #ffffff;
  border-radius: 6px;
  transform: translateX(var(--active-offset, 0.25rem));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-header .block-btn {
  background: none;
  border: none;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 1;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-header .block-btn.active {
  color: #007A33;
}
.main-header .block-btn:hover:not(.active) {
  color: #ffffff;
}
.main-header .block-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}
.main-header .action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.main-header .button.button--header, .main-header .button--header.inspector-save-btn {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-header .button.button--header:hover, .main-header .button--header.inspector-save-btn:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
  color: #ffffff;
}
.main-header .button.button--header:focus-visible, .main-header .button--header.inspector-save-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}
.main-header .button.button--header:active, .main-header .button--header.inspector-save-btn:active {
  transform: translateY(0);
}
.main-header .header-right {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.main-header .user-menu-container {
  position: relative;
}
.main-header .user-dropdown-toggle {
  background: transparent;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-header .user-dropdown-toggle:hover, .main-header .user-dropdown-toggle.active {
  background-color: rgba(0, 0, 0, 0.2);
}
.main-header .user-dropdown-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}
.main-header .user-dropdown-toggle .user-avatar {
  font-size: 1.125rem;
}
.main-header .user-dropdown-toggle .user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
}
.main-header .user-dropdown-toggle .dropdown-arrow {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
}
.main-header .user-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: #ffffff;
  min-width: 220px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 0.25rem 0;
  transform-origin: top right;
  animation: dropdownSlideIn 0.15s ease forwards;
  z-index: 100;
}
.main-header .user-dropdown-content.show {
  display: block;
}
.main-header .user-dropdown-content .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.875rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-header .user-dropdown-content .dropdown-item:hover {
  background-color: #f0fdf4;
  color: #007A33;
}
.main-header .user-dropdown-content .dropdown-item:hover .icon {
  color: #007A33;
}
.main-header .user-dropdown-content .dropdown-item .icon {
  width: 20px;
  text-align: center;
  color: #64748b;
  flex-shrink: 0;
}
.main-header .user-dropdown-content .dropdown-item.text-danger {
  color: #dc2626;
}
.main-header .user-dropdown-content .dropdown-item.text-danger:hover {
  background-color: #fee2e2;
  color: #dc2626;
}
.main-header .user-dropdown-content .dropdown-item.text-danger .icon {
  color: #dc2626;
}
.main-header .user-dropdown-content .dropdown-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 0.25rem 0;
}
@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-container {
  width: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #007A33, #003d1a 60%, #0f172a);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sidebar-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  min-height: 0;
}
.sidebar-body::-webkit-scrollbar {
  width: 8px;
}
.sidebar-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 100px;
}
.sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 100px;
}
.sidebar-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.filter-group {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}
.filter-group:first-child {
  margin-top: 0;
}

.filter-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #ffffff;
  padding-left: 0.25rem;
}

.collapsible-header, .inspector-link {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.collapsible-header span, .inspector-link span {
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
}
.collapsible-header .arrow, .inspector-link .arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: rgba(255, 255, 255, 0.8);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.collapsible-header:hover, .inspector-link:hover {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.collapsible-header.open, .open.inspector-link {
  background-color: transparent;
  border-color: transparent;
  transform: translateY(0);
  box-shadow: none;
  padding-bottom: 0.5rem;
}
.collapsible-header.open .arrow, .open.inspector-link .arrow {
  transform: rotate(90deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 0.25rem;
}
.collapsible-content > * {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.collapsible-content.open {
  max-height: 1500px;
}
.collapsible-content.open > * {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.collapsible-content .divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 0.75rem 0;
}

.toggle-switch {
  --track-height: 20px;
  --track-width: 38px;
  --handle-size: 16px;
  --handle-padding: 2px;
  position: relative;
  width: var(--track-width);
  height: var(--track-height);
  background-color: #dc2626;
  border-radius: var(--track-height);
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle-switch::before {
  content: "";
  position: absolute;
  width: var(--handle-size);
  height: var(--handle-size);
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  top: 50%;
  left: var(--handle-padding);
  transform: translateY(-50%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toggle-switch.on {
  background-color: #4caf50;
  border-color: transparent;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}
.toggle-switch.on::before {
  --travel-distance: calc(var(--track-width) - var(--handle-size) - (var(--handle-padding) * 2));
  transform: translate(var(--travel-distance), -50%);
}

.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.column-toggle-row, .inspector-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.25rem;
  user-select: none;
  border-radius: 8px;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.column-toggle-row:hover, .inspector-toggle-row:hover {
  background-color: rgba(255, 255, 255, 0.07);
}
.column-toggle-row.master-toggle label, .master-toggle.inspector-toggle-row label {
  font-weight: 700;
}

.sidebar-search-input,
.preset-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 0.875rem;
}
.sidebar-search-input::placeholder,
.preset-select::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.sidebar-search-input:focus,
.preset-select:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.preset-select {
  cursor: pointer;
}
.preset-select option {
  background-color: #334155;
  color: #ffffff;
}

.preset-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-mode-toggle {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.search-mode-toggle:hover {
  background-color: rgba(0, 0, 0, 0.4);
}
.search-mode-toggle span {
  display: none;
  width: 20px;
  height: 20px;
  position: relative;
}
.search-mode-toggle.filter-mode .icon-filter, .search-mode-toggle.highlight-mode .icon-highlight {
  display: block;
}
.search-mode-toggle .icon-filter::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
}
.search-mode-toggle .icon-filter::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 2px;
  height: 7px;
  background: #ffffff;
  transform: rotate(-45deg);
}
.search-mode-toggle .icon-highlight::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 16px;
  height: 10px;
  background: #ffca28;
  border-radius: 4px;
}

.filter-group-actions {
  padding-top: 0.75rem;
  text-align: center;
}

.filter-loading {
  padding: 0.5rem 0.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  text-align: center;
}

.pivot-container .left-table td,
.pivot-container .right-table td {
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-bottom-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.row-highlight td {
  background-color: #fff8e1 !important;
  color: #1e293b !important;
  font-weight: 600;
  border-bottom-color: #ffecb3 !important;
}
.row-highlight td:first-child {
  border-left: 4px solid #ffca28 !important;
}

.button, .inspector-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background-color: #007A33;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.button:hover, .inspector-save-btn:hover {
  background-color: #005c28;
}
.button:focus-visible, .inspector-save-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.15);
}
.button:active, .inspector-save-btn:active {
  background-color: #003d1a;
}
.button--secondary {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}
.button--secondary:hover {
  background-color: #e2e8f0;
}
.button--secondary:active {
  background-color: #cbd5e1;
}
.button--danger {
  background-color: #dc2626;
  border-color: #dc2626;
}
.button--danger:hover {
  background-color: rgb(187.0333333333, 30.1666666667, 30.1666666667);
  border-color: rgb(169.4666666667, 27.3333333333, 27.3333333333);
}
.button--danger:active {
  background-color: rgb(156.2916666667, 25.2083333333, 25.2083333333);
}
.button--danger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.button--header {
  background-color: rgba(255, 255, 255, 0.9);
  color: #007A33;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}
.button--header:hover {
  background-color: #ffffff;
}
.button--icon {
  padding: 0.5rem;
}
.button-outline {
  background-color: transparent;
  color: #007A33;
  border: 2px solid #007A33;
}
.button-outline:hover {
  background-color: #007A33;
  color: #ffffff;
}
.button-outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.15);
}
.button-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.animated-accent-button {
  --accent-fill: #f0fdf4;
  --accent-border: #c8e6c9;
  --accent-text: #007A33;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--accent-text);
  background-color: transparent;
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  overflow: hidden;
  transform: translateZ(0);
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.animated-accent-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
  position: relative;
  z-index: 1;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.animated-accent-button .arr-2 {
  opacity: 0;
  transform: translateX(-4px);
}
.animated-accent-button .arr-1 {
  opacity: 0.65;
  transform: translateX(0);
}
.animated-accent-button .circle {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: var(--accent-fill);
  transform: scale(0);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.animated-accent-button .text {
  position: relative;
  z-index: 1;
}
.animated-accent-button:hover {
  color: var(--accent-text);
  border-color: var(--accent-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.animated-accent-button:hover .arr-1 {
  opacity: 0;
  transform: translateX(4px);
}
.animated-accent-button:hover .arr-2 {
  opacity: 1;
  transform: translateX(0);
}
.animated-accent-button:hover .circle {
  transform: scale(3);
  opacity: 1;
}
.animated-accent-button:active {
  transform: translateZ(0) scale(0.97);
  transition: transform 0.15s ease;
}
.animated-accent-button:focus-visible {
  outline: 3px solid rgba(0, 122, 51, 0.25);
  outline-offset: 2px;
}
.animated-accent-button--green, .animated-accent-button.accent-green {
  --accent-fill: #f0fdf4;
  --accent-border: #c8e6c9;
  --accent-text: #007A33;
}
.animated-accent-button--blue, .animated-accent-button.accent-blue {
  --accent-fill: #e3f2fd;
  --accent-border: #90caf9;
  --accent-text: #0d47a1;
}
.animated-accent-button--gray, .animated-accent-button.accent-gray {
  --accent-fill: #e0f7fa;
  --accent-border: #00bcd4;
  --accent-text: #0891b2;
}
.animated-accent-button--reverse .arr-2, .animated-accent-button.animation-reverse .arr-2 {
  opacity: 0.45;
  transform: rotate(180deg);
}
.animated-accent-button--reverse .arr-1, .animated-accent-button.animation-reverse .arr-1 {
  opacity: 0;
  transform: translateX(4px) rotate(180deg);
}
.animated-accent-button--reverse:hover .arr-2, .animated-accent-button.animation-reverse:hover .arr-2 {
  opacity: 0;
  transform: translateX(-4px) rotate(180deg);
}
.animated-accent-button--reverse:hover .arr-1, .animated-accent-button.animation-reverse:hover .arr-1 {
  opacity: 1;
  transform: translateX(0) rotate(180deg);
}

.export-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.preset-btn {
  flex: 1;
  padding: 0.5rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.preset-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.preset-btn.danger {
  background-color: rgba(220, 38, 38, 0.3);
  border-color: rgba(220, 38, 38, 0.6);
}
.preset-btn.danger:hover {
  background-color: rgba(220, 38, 38, 0.5);
}

.button-reset {
  padding: 0.5rem 1rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.button-reset:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.etapa-btn {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.etapa-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stage-button-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.content-panel-wrapper {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 0;
  width: 100%;
  height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
}
.content-panel-wrapper .table-header-controls {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid #e2e8f0;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.content-panel-wrapper .table-header-controls h3 {
  margin: 0;
  color: #007A33;
  font-weight: 700;
  font-size: 1.25rem;
}
.content-panel-wrapper .table-header-controls .export-buttons {
  display: flex;
  gap: 0.75rem;
}
.content-panel-wrapper .pivot-container {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #ffffff;
  border: none;
  display: flex;
}
.content-panel-wrapper .pivot-container table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  font-size: 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.pivot-container th,
.pivot-container td {
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  border: none;
  box-sizing: border-box;
  line-height: 1.5;
}
.pivot-container thead th {
  position: sticky;
  top: 0;
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  z-index: 20;
  border-bottom: 2px solid #007A33;
  text-align: center;
  vertical-align: middle;
}

.left-table {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 60vw;
  height: 100%;
  overflow-y: hidden;
  overflow-x: auto;
  position: sticky;
  left: 0;
  z-index: 10;
  background-color: #ffffff;
  border-right: 1px solid #e2e8f0;
  box-shadow: 4px 0 10px -2px rgba(0, 0, 0, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 122, 51, 0.3) transparent;
}
.left-table::-webkit-scrollbar {
  width: 8px;
  height: 12px;
}
.left-table::-webkit-scrollbar-track {
  background: transparent;
}
.left-table::-webkit-scrollbar-thumb {
  background-color: rgba(0, 122, 51, 0.3);
  border-radius: 100px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.left-table::-webkit-scrollbar-thumb:hover {
  background-color: #007A33;
}
.left-table::-webkit-scrollbar-corner {
  background: transparent;
}
.left-table table {
  table-layout: auto;
}
.left-table thead tr {
  height: 90px;
}
.left-table thead th:last-child {
  position: sticky;
  right: 0;
  z-index: 25;
  background-color: #f1f5f9;
  box-shadow: 4px 0 10px -2px rgba(0, 0, 0, 0.08);
  color: #007A33;
}
.left-table tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.left-table tbody td:first-child {
  border-left: 3px solid transparent;
}
.left-table tbody td:last-child {
  position: sticky;
  right: 0;
  z-index: 5;
  box-shadow: 4px 0 10px -2px rgba(0, 0, 0, 0.08);
  border-left: 1px solid #e2e8f0;
}
.left-table tbody td:last-child.last-version-cell {
  font-weight: 700;
  color: #007A33;
  text-align: center;
}

.right-table {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: auto;
  background-color: #f8fafc;
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 122, 51, 0.3) transparent;
}
.right-table::-webkit-scrollbar {
  width: 8px;
  height: 12px;
}
.right-table::-webkit-scrollbar-track {
  background: transparent;
}
.right-table::-webkit-scrollbar-thumb {
  background-color: rgba(0, 122, 51, 0.3);
  border-radius: 100px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.right-table::-webkit-scrollbar-thumb:hover {
  background-color: #007A33;
}
.right-table::-webkit-scrollbar-corner {
  background: transparent;
}
.right-table table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}
.right-table thead tr:first-of-type {
  height: 45px;
}
.right-table thead tr:first-of-type th {
  border-bottom: none;
  color: #ffffff;
}
.right-table thead tr:last-of-type {
  height: 45px;
}
.right-table thead tr:last-of-type th {
  top: 45px;
  z-index: 15;
  color: #64748b;
  min-width: 60px;
  border-bottom: 2px solid #007A33;
}
.right-table thead th.col-active {
  background-color: #007A33 !important;
  color: #ffffff !important;
  border-bottom-color: #007A33;
  z-index: 100 !important;
}
.right-table thead th.col-active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #007A33 transparent transparent transparent;
  z-index: 101;
}
.right-table tbody td {
  min-width: 60px;
  border-left: 1px solid rgba(0, 122, 51, 0.12);
}
.right-table tbody td:first-child {
  border-left: none;
}

.pivot-container tbody tr {
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pivot-container tbody tr td {
  border-top: 1px solid #e2e8f0;
}
.pivot-container tbody tr.project-group-odd td {
  background-color: #ffffff;
}
.pivot-container tbody tr.project-group-even td {
  background-color: #f1f5f9;
}
.pivot-container tbody tr .col-project-text {
  color: #007A33;
  font-weight: 600;
}

.pivot-container .project-separator-top td {
  border-top: 2px solid #cbd5e1 !important;
}

.left-table tbody tr.project-group-odd td:first-child,
.left-table tbody tr.project-group-odd td:last-child {
  background-color: #ffffff;
}
.left-table tbody tr.project-group-even td:first-child,
.left-table tbody tr.project-group-even td:last-child {
  background-color: #f1f5f9;
}

.pivot-container .sync-hover td {
  background-color: #f0fdf4 !important;
  color: #0f172a !important;
  cursor: pointer;
  border-top-color: #c8e6c9 !important;
  border-bottom-color: #c8e6c9 !important;
}

.left-table .sync-hover td:first-child,
.left-table .sync-hover td:last-child {
  background-color: #f0fdf4 !important;
  border-top-color: #c8e6c9 !important;
  border-bottom-color: #c8e6c9 !important;
}

.left-table .sync-hover td:first-child {
  border-left-color: #007A33;
}

.sync-hover .last-version-cell {
  font-weight: 700;
  transform: scale(1.1);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.right-table .version-cell {
  text-align: center;
  position: relative;
  font-variant-numeric: tabular-nums;
}
.right-table .version-cell.highlight-max {
  color: #007A33;
  font-weight: 700;
  background-color: rgba(0, 122, 51, 0.06);
  border-radius: 4px;
}
.right-table .version-cell[data-has-value=true]:hover {
  z-index: 100;
}
.right-table .version-cell[data-has-value=true]:hover .version-pill {
  background-color: #007A33;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: scale(1.08);
}

.version-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.6;
  background-color: rgba(0, 122, 51, 0.08);
  color: #0f172a;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.highlight-max .version-pill {
  background-color: rgba(0, 122, 51, 0.15);
  color: #007A33;
  font-weight: 700;
}

.note-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  background-color: #dc2626;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #ffffff;
}

.message.error {
  color: #dc2626;
  padding: 2rem;
  text-align: center;
  background: transparent;
}

.message {
  padding: 16px;
  margin: 16px 0;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  border: 1px solid transparent;
}
.message.success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}
.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal {
  position: relative;
  background: #fff;
  background: var(--color-background-component, #fff);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 90%;
  animation: slideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  height: auto;
  overflow: hidden;
  padding: 24px;
}
.modal--xl {
  max-width: 90vw;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e1e4e8;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #1e293b;
  background: transparent;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal > .modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}
.modal-header .modal-close-btn {
  position: relative;
  top: auto;
  right: auto;
}
.modal-close-btn:hover {
  color: #dc2626;
}

.modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  min-height: 0;
}

.modal-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.modal-tabs .tab-link {
  background: none;
  border: none;
  padding: 8px 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}
.modal-tabs .tab-link:hover {
  color: #1e293b;
}
.modal-tabs .tab-link.active {
  color: #007A33;
  border-bottom-color: #007A33;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  font-size: 1.2rem;
  color: #64748b;
}

.modal-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.2s;
}
.modal-search-input:focus {
  outline: none;
  border-color: #007A33;
  box-shadow: 0 0 0 2px rgba(0, 122, 51, 0.2);
}

.project-edit-group {
  margin-bottom: 24px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 24px;
  background: #f8fafc;
}

.project-edit-title {
  margin: 0 0 16px 0;
  font-size: 1.3rem;
  color: #007A33;
  border-bottom: 2px solid #e1e4e8;
  padding-bottom: 8px;
}

.table-responsive {
  overflow-x: auto;
  margin-bottom: 16px;
}

.version-edit-table {
  width: 100%;
  border-collapse: collapse;
}
.version-edit-table th, .version-edit-table td {
  border: 1px solid #e1e4e8;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}
.version-edit-table thead th {
  background-color: #f1f5f9;
  font-weight: 700;
  padding: 12px 8px;
}
.version-edit-table .cell-station-name {
  font-weight: 700;
  background-color: #f8fafc;
  min-width: 150px;
  text-align: left;
  padding-left: 16px;
}
.version-edit-table .cell-station-position {
  font-weight: 600;
  color: #64748b;
  min-width: 80px;
  text-align: center;
  background-color: #f8fafc;
}
.version-edit-table input[type=text] {
  width: 100%;
  min-width: 80px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  text-align: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.version-edit-table input[type=text]:focus {
  outline: none;
  border-color: #007A33;
  box-shadow: 0 0 0 2px rgba(0, 122, 51, 0.2);
}

#editFormModalContent {
  max-height: calc(90vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 4px 16px 20px 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 transparent;
}
#editFormModalContent::-webkit-scrollbar {
  width: 8px;
}
#editFormModalContent::-webkit-scrollbar-track {
  margin: 4px 0;
}
#editFormModalContent::-webkit-scrollbar-thumb {
  background-color: #cbd5e0;
  border-radius: 4px;
}

#versionEditForm {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#modalProjekt .modal {
  max-width: 1000px;
  width: 95vw;
  height: auto;
  min-height: 300px;
  overflow: hidden;
}
#modalProjekt .modal-tabs {
  padding: 16px 0 0 0;
  margin-bottom: 0;
  background: transparent;
  border-bottom: 1px solid #e1e4e8;
}
#modalProjekt .project-header-section {
  padding: 24px 0 20px 0;
  background: transparent;
}
#modalProjekt .project-select-group {
  padding: 24px 0 0 0;
  background: transparent;
  margin: 0;
}
#modalProjekt .project-workspace {
  display: flex;
  height: 650px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  margin-top: 16px;
  margin-bottom: 16px;
  background: #fff;
  overflow: hidden;
}
#modalProjekt .stations-sidebar {
  width: 320px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}
#modalProjekt .stations-sidebar .sidebar-header {
  padding: 16px 20px;
  background: transparent;
  border-bottom: 1px solid #e2e8f0;
}
#modalProjekt .stations-sidebar .sidebar-header h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #0f172a;
  text-transform: none;
  font-weight: 600;
  letter-spacing: normal;
  font-family: inherit;
}
#modalProjekt .stations-sidebar .stations-list {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}
#modalProjekt .stations-sidebar .stations-list::-webkit-scrollbar {
  width: 6px;
}
#modalProjekt .stations-sidebar .stations-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
  border: 2px solid #f8fafc;
}
#modalProjekt .stations-sidebar .station-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  margin: 6px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
#modalProjekt .stations-sidebar .station-item:hover {
  border-color: #94a3b8;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}
#modalProjekt .stations-sidebar .station-item.active {
  background: #f0fdf4;
  border-color: #007A33;
  box-shadow: 0 2px 8px rgba(0, 122, 51, 0.15);
}
#modalProjekt .stations-sidebar .station-item.active .st-name {
  color: #007A33;
  font-weight: 600;
}
#modalProjekt .stations-sidebar .station-item.active .st-pos {
  color: #007A33;
}
#modalProjekt .stations-sidebar .station-item.active .drag-handle {
  color: #007A33;
  opacity: 0.6;
}
#modalProjekt .stations-sidebar .station-item.dragging {
  opacity: 0.5;
  background: #e2e8f0;
  border-style: dashed;
  box-shadow: none;
}
#modalProjekt .stations-sidebar .station-item .drag-handle {
  cursor: grab;
  color: #cbd5e1;
  margin-right: 12px;
  font-weight: bold;
  letter-spacing: -2px;
  transition: 0.2s;
}
#modalProjekt .stations-sidebar .station-item .station-info {
  flex: 1;
  overflow: hidden;
}
#modalProjekt .stations-sidebar .station-item .station-info .st-pos {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: 0.2s;
}
#modalProjekt .stations-sidebar .station-item .station-info .st-name {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: 0.2s;
}
#modalProjekt .stations-sidebar .station-item .btn-remove {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  opacity: 0;
}
#modalProjekt .stations-sidebar .station-item .btn-remove:hover {
  color: #dc2626;
  background: #fee2e2;
}
#modalProjekt .stations-sidebar .station-item .btn-remove svg {
  width: 16px;
  height: 16px;
}
#modalProjekt .stations-sidebar .station-item:hover .btn-remove, #modalProjekt .stations-sidebar .station-item.active .btn-remove {
  opacity: 1;
}
#modalProjekt .stations-sidebar .sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  background: transparent;
}
#modalProjekt .stations-sidebar .sidebar-footer .btn-add-station {
  width: 100%;
  padding: 10px;
  border: 1px dashed #cbd5e1;
  background: #fff;
  border-radius: 8px;
  color: #475569;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
#modalProjekt .stations-sidebar .sidebar-footer .btn-add-station:hover {
  border-color: #007A33;
  color: #007A33;
  background: #f0fdf4;
}
#modalProjekt .station-detail-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 32px 40px;
  background: #fff;
}
#modalProjekt .station-detail-panel::-webkit-scrollbar {
  width: 8px;
}
#modalProjekt .station-detail-panel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
  border: 2px solid #fff;
}
#modalProjekt .station-detail-panel .station-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #94a3b8;
  text-align: center;
}
#modalProjekt .station-detail-panel .station-detail-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}
#modalProjekt .station-detail-panel .station-detail-content {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  margin: auto 0;
}
#modalProjekt .station-detail-panel .station-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 16px;
}
#modalProjekt .station-detail-panel .station-grid .span-2 {
  grid-column: 1/-1;
}
#modalProjekt .station-detail-panel .station-grid .form-group {
  margin-bottom: 0;
}
#modalProjekt .station-detail-panel .station-grid label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: normal;
  font-family: inherit;
}
#modalProjekt .station-detail-panel .station-grid input[type=text] {
  width: 100%;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: #0f172a;
  font-family: inherit;
  transition: all 0.2s ease-in-out;
}
#modalProjekt .station-detail-panel .station-grid input[type=text]:hover {
  border-color: #94a3b8;
}
#modalProjekt .station-detail-panel .station-grid input[type=text]:focus {
  background: #fff;
  border-color: #007A33;
  box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.15);
  outline: none;
}
#modalProjekt .station-detail-panel .station-grid input[type=text]::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
#modalProjekt .modal-footer {
  padding: 0;
  background: transparent;
  border-top: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
#modalEtapa .modal {
  max-width: 700px;
}

.stage-inline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 450px;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 10px;
}
.stage-inline-list::-webkit-scrollbar {
  width: 6px;
}
.stage-inline-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.stage-inline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 8px 16px 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.stage-inline-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.stage-inline-item.dragging {
  opacity: 0.5;
  background: #f8fafc;
  border-style: dashed;
}
.stage-inline-item .drag-handle {
  color: #94a3b8;
  cursor: grab;
  font-weight: bold;
  letter-spacing: -2px;
  padding: 4px 8px 4px 4px;
}
.stage-inline-item .drag-handle:hover {
  color: #1e293b;
}
.stage-inline-item .drag-handle:active {
  cursor: grabbing;
}
.stage-inline-item .stage-inline-input {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  border-radius: 6px;
  transition: all 0.2s;
}
.stage-inline-item .stage-inline-input:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.stage-inline-item .stage-inline-input:focus {
  outline: none;
  border-color: #007A33;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 122, 51, 0.1);
}
.stage-inline-item .color-picker-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
}
.stage-inline-item .color-picker-wrapper:hover {
  transform: scale(1.1);
  border-color: #cbd5e1;
}
.stage-inline-item .color-picker-wrapper .stage-inline-color {
  width: 200%;
  height: 200%;
  margin: -50%;
  cursor: pointer;
  border: none;
  padding: 0;
}
.stage-inline-item .inline-delete-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
}
.stage-inline-item .inline-delete-btn:hover {
  color: #dc2626;
  background: #fee2e2;
}

.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: background-color 0.25s ease;
}
.confirm-modal-overlay.active {
  background-color: rgba(0, 0, 0, 0.5);
}
.confirm-modal-overlay.active .confirm-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.confirm-modal {
  background: var(--color-background-component, #ffffff);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 420px;
  width: 90%;
  padding: 28px;
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.confirm-modal__header {
  margin-bottom: 16px;
}
.confirm-modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.confirm-modal__body {
  margin-bottom: 24px;
}
.confirm-modal__body p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}
.confirm-modal__input-wrap {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.confirm-modal__input-label {
  font-size: 0.85rem;
  color: #64748b;
}
.confirm-modal__input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: monospace;
  letter-spacing: 0.05em;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.confirm-modal__input:focus {
  outline: none;
  border-color: #007A33;
}
.confirm-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.confirm-modal__footer .button, .confirm-modal__footer .inspector-save-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}
.confirm-modal__confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 64px 32px;
}

.form-box {
  width: 100%;
  max-width: 450px;
  padding: 32px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.form-box h2 {
  margin-bottom: 24px;
  text-align: center;
  color: #007A33;
}
.form-box.modal-form {
  padding: 0;
  box-shadow: none;
  background: none;
  max-width: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-group input[type=text]:focus,
.form-group input[type=email]:focus,
.form-group input[type=password]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007A33;
  box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.2);
}

.form-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 24px 0;
}

.form-actions {
  margin-top: 24px;
  text-align: right;
}
.form-actions--row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}

.form-group input[type=color] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 45px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  background-color: transparent;
}

.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 5px solid;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s ease-in-out;
}
.notification.show {
  opacity: 1;
  transform: translateX(0);
}
.notification.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-left-color: #4caf50;
}
.notification.error {
  background-color: #ffebee;
  color: #c62828;
  border-left-color: #f44336;
}

#global-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
#global-loader-overlay.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
#global-loader-overlay .loader-content {
  color: white;
  text-align: center;
  font-size: 1.1rem;
}
#global-loader-overlay .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.footer {
  flex-shrink: 0;
  width: 100%;
  background: linear-gradient(to right, #0f172a, #1e293b);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.4px;
  line-height: 1.25;
}
.footer p strong {
  color: #c8e6c9;
  font-weight: 600;
  margin-left: 0.25rem;
}

body.admin-mode {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}
body.admin-mode .sidebar-container {
  position: relative;
  top: auto;
  left: auto;
  height: auto;
  flex-shrink: 0;
  width: 380px;
  transition: width 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
body.admin-mode .sidebar-container--wide {
  width: 600px;
}
body.admin-mode .sidebar-container .sidebar {
  transform: none;
  width: 100%;
  height: 100%;
  margin-left: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
body.admin-mode .page-wrapper {
  flex-grow: 1;
  overflow: hidden;
  margin-left: 0 !important;
}
body.admin-mode .main-content-wrapper.container {
  max-width: none;
  margin: 0;
  padding: 32px;
}
body.admin-mode .sidebar-header,
body.admin-mode .sidebar-body > *,
body.admin-mode .inspector-form > * {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: none;
}

.admin-page-header {
  background: linear-gradient(135deg, #007A33 0%, #003d1a 100%);
  border-radius: 12px;
  padding: 32px 40px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 8px 32px rgba(0, 61, 26, 0.35);
}
.admin-page-header__left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.admin-page-header__icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-page-header__icon svg {
  width: 30px;
  height: 30px;
  stroke: rgba(255, 255, 255, 0.9);
}
.admin-page-header__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.admin-page-header__subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  margin: 0;
}
.admin-page-header__stats {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.admin-stat-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px 20px;
  text-align: center;
  min-width: 88px;
  transition: background 0.2s ease;
}
.admin-stat-pill:hover {
  background: rgba(255, 255, 255, 0.2);
}
.admin-stat-pill__value {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.admin-stat-pill__label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  white-space: nowrap;
}

.admin-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.admin-tabs.backup-subtabs {
  display: flex;
  box-shadow: none;
  background: #f8fafc;
  border-color: #e2e8f0;
  margin-bottom: 0;
  margin-top: 24px;
}
.admin-tabs.backup-subtabs .admin-tab-btn.active {
  background: #ffffff;
  color: #007A33;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.admin-tab-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: stroke 0.2s;
}
.admin-tab-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}
.admin-tab-btn.active {
  background: #007A33;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 122, 51, 0.4);
}

.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}

#admin-panel-container .card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.card-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  gap: 16px;
}
.card-header-actions h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.card-body {
  padding: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.admin-table thead th.col-avatar {
  width: 60px;
}
.admin-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  font-size: 0.9rem;
  color: #0f172a;
}
.admin-table tbody td.col-avatar {
  width: 60px;
}
.admin-table tbody tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-table tbody tr:hover {
  background: #f8fafc;
}
.admin-table tbody tr.is-editing {
  background: rgba(0, 122, 51, 0.05);
}
.admin-table tbody tr.is-editing td {
  font-weight: 600;
}
.admin-table tbody tr.is-editing td:first-child {
  position: relative;
}
.admin-table tbody tr.is-editing td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #007A33;
  border-radius: 0 2px 2px 0;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  user-select: none;
}
.user-avatar[data-initial=A], .user-avatar[data-initial=I], .user-avatar[data-initial=Q] {
  background: #007A33;
}
.user-avatar[data-initial=B], .user-avatar[data-initial=J], .user-avatar[data-initial=R] {
  background: #0891b2;
}
.user-avatar[data-initial=C], .user-avatar[data-initial=K], .user-avatar[data-initial=S] {
  background: #7c3aed;
}
.user-avatar[data-initial=D], .user-avatar[data-initial=L], .user-avatar[data-initial=T] {
  background: #d97706;
}
.user-avatar[data-initial=E], .user-avatar[data-initial=M], .user-avatar[data-initial=U] {
  background: #be185d;
}
.user-avatar[data-initial=F], .user-avatar[data-initial=N], .user-avatar[data-initial=V] {
  background: #0f766e;
}
.user-avatar[data-initial=G], .user-avatar[data-initial=O], .user-avatar[data-initial=W] {
  background: #4f46e5;
}
.user-avatar[data-initial=H], .user-avatar[data-initial=P], .user-avatar[data-initial=X] {
  background: #dc2626;
}
.user-avatar[data-initial=Y], .user-avatar[data-initial=Z] {
  background: #64748b;
}

.user-name-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.user-name-cell strong {
  font-weight: 700;
}
.user-name-cell .user-full-name {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 400;
}

.roles-text {
  font-size: 0.85rem;
  color: #64748b;
}

.timeout-badge {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.role-id-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  font-family: monospace;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.status-badge::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-badge.status-active {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}
.status-badge.status-active::before {
  background: #2e7d32;
}
.status-badge.status-inactive {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}
.status-badge.status-inactive::before {
  background: #dc2626;
}

.status-inactive-text {
  color: #dc2626;
  font-weight: 600;
  font-size: 0.875rem;
}

.status-warning-text {
  color: #d97706;
  font-weight: 600;
  font-size: 0.875rem;
}

.text-muted {
  color: #64748b;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 20px 0;
}
.admin-header p {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
}

.backup-system-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  margin-top: 24px;
}
.backup-system-card__icon {
  width: 52px;
  height: 52px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.backup-system-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: #007A33;
}
.backup-system-card__content h2 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.backup-system-card__content h2 code {
  font-size: 0.85em;
  background: rgba(0, 122, 51, 0.08);
  color: #007A33;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}
.backup-system-card__content p {
  margin: 0 0 20px 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.6;
}

.db-size {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 6px;
}

.db-never {
  font-size: 0.85rem;
  color: #dc2626;
  font-style: italic;
  opacity: 0.8;
}

.db-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.db-name__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.55;
  stroke: #0f172a;
}

.inspector-body {
  padding: 16px 20px;
  overflow-y: auto;
  min-height: 0;
  height: 100%;
}

.inspector-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 280px;
  gap: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  padding: 32px;
}
.inspector-placeholder svg {
  width: 52px;
  height: 52px;
  opacity: 0.25;
  stroke: #ffffff;
}
.inspector-placeholder p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.inspector-form {
  padding: 0;
  background: transparent;
  border: none;
  margin: 0;
  max-width: 100%;
}
.inspector-form .form-group > label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}
.inspector-form .label-unit {
  font-weight: 400;
  opacity: 0.7;
}
.inspector-form .form-group input,
.inspector-form .form-group select {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  transition: border-color 0.15s ease;
}
.inspector-form .form-group input:focus,
.inspector-form .form-group select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}
.inspector-form .form-group input::placeholder,
.inspector-form .form-group select::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.inspector-form .form-group input:disabled,
.inspector-form .form-group select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.inspector-form .form-group input[type=datetime-local] {
  color-scheme: dark;
}
.inspector-form .role-checkboxes {
  margin-top: 4px;
}

.inspector-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  margin-bottom: 16px;
}
.inspector-header__icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.inspector-header__icon svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255, 255, 255, 0.7);
}
.inspector-header__icon--role {
  background: rgba(0, 122, 51, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar--large {
  width: 46px;
  height: 46px;
  min-width: 46px;
  font-size: 1.1rem;
  font-weight: 700;
}

.inspector-title h3 {
  margin: 0 0 2px 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.inspector-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

.inspector-section {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.inspector-section .form-group {
  margin-top: 12px;
}
.inspector-section .form-group:first-of-type {
  margin-top: 8px;
}
.inspector-section .form-hint {
  margin-top: 4px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}
.inspector-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}
.inspector-section__hint {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.3);
}

.inspector-toggle-row--labeled {
  align-items: flex-start;
  padding: 12px 0;
}
.inspector-toggle-row--labeled__label-wrap {
  flex: 1;
  min-width: 0;
}
.inspector-toggle-row--labeled__label-wrap label {
  font-size: 0.875rem;
  font-weight: 600;
}
.inspector-toggle-row--labeled__label-wrap .form-hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
}

.toggle-switch--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.inspector-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
}

.inspector-link {
  display: flex;
  text-decoration: none;
  margin-bottom: 8px;
}
.inspector-link:last-of-type {
  margin-bottom: 0;
}
.inspector-link::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  background-color: rgba(255, 255, 255, 0.8);
}

.inspector-toggle-row label {
  color: #ffffff;
}

.inspector-save-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #007A33;
  font-weight: 700;
  border-radius: 8px;
  margin: 0;
}
.inspector-save-btn:hover {
  background-color: #fff;
}

.inspector-delete-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  background-color: transparent;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.inspector-delete-btn:hover {
  background-color: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.7);
  color: rgb(232.25, 113.95, 113.95);
}

.inspector-table {
  width: 100%;
  margin-top: 16px;
  background-color: rgba(0, 0, 0, 0.1);
  border-collapse: separate;
  border-spacing: 0;
}
.inspector-table thead th {
  background-color: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.inspector-table thead th:first-child {
  border-top-left-radius: 12px;
}
.inspector-table thead th:last-child {
  border-top-right-radius: 12px;
}
.inspector-table th.actions-header {
  text-align: center;
}
.inspector-table tbody tr {
  transition: background-color 0.15s ease;
}
.inspector-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.08);
}
.inspector-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}
.inspector-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}
.inspector-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}
.inspector-table tbody td small {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.inspector-table tbody tr:last-child td {
  border-bottom: none;
}
.inspector-table .backup-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.inspector-table .button-small {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.inspector-table .button-small:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}
.inspector-table .button-small.button--danger {
  border-color: rgba(220, 38, 38, 0.45);
  color: rgba(255, 255, 255, 0.85);
}
.inspector-table .button-small.button--danger:hover {
  background-color: rgba(220, 38, 38, 0.2);
  border-color: #dc2626;
  color: #fff;
}
.inspector-table .button--icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.inspector-table .button--icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.inspector-form [aria-label] {
  position: relative;
}
.inspector-form [aria-label]::before {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background-color: #1d1d1f;
  color: #f5f5f7;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: normal;
  text-align: center;
  width: max-content;
  max-width: 150px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.inspector-form [aria-label]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.backup-subtabs {
  margin-bottom: 24px;
}

.database-groups-container {
  margin-top: 24px;
  max-height: calc(100vh - 450px);
  overflow-y: auto;
  padding-right: 8px;
}
.database-groups-container::-webkit-scrollbar {
  width: 8px;
}
.database-groups-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}
.database-groups-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.database-groups-container::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.database-group {
  margin-top: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: rgb(250.6666666667, 250.6666666667, 251.5333333333);
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}
.database-group:first-child {
  margin-top: 0;
}
.database-group h3.collapsible-header, .database-group h3.inspector-link {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  width: 100%;
  margin: 0;
  padding: 16px 20px;
  background-color: white;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease-in-out;
}
.database-group h3.collapsible-header .arrow, .database-group h3.inspector-link .arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: #64748b;
  transition: transform 0.3s ease;
}
.database-group h3.collapsible-header span, .database-group h3.inspector-link span {
  color: #0f172a;
  font-weight: 700;
  font-size: 1.1rem;
}
.database-group h3.collapsible-header:hover, .database-group h3.inspector-link:hover {
  background-color: white;
}
.database-group.open h3.collapsible-header, .database-group.open h3.inspector-link {
  border-bottom-color: #e2e8f0;
}
.database-group.open .arrow {
  transform: rotate(90deg);
}

.database-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}
.database-list.open {
  max-height: 1000px;
}

.database-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.database-item:last-child {
  border-bottom: none;
}
.database-item .db-name {
  font-weight: 700;
  font-family: "Courier New", Courier, monospace;
  flex-basis: 220px;
  flex-shrink: 0;
}
.database-item .db-last-backup {
  flex-grow: 1;
  color: #64748b;
  font-size: 0.9rem;
}
.database-item .db-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.button-small {
  font-size: 0.8rem;
  padding: 6px 12px;
}

/*# sourceMappingURL=style.css.map */
