:root {
  --bg-main: #f8fafc;
  --bg-sidebar: #0f172a;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #ff8000;
  --primary: #ff8000;
  --primary-hover: #ea580c;
  --primary-light: #fff7ed;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
}

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

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

/* APP LAYOUT */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 250px;
  background-color: var(--bg-sidebar);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
  border-right: 1px solid #1e293b;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-left: 8px;
}

.zt-logo-sm {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-pill:hover {
  background: #334155;
  border-color: #475569;
}

.user-avatar {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  flex: 1;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.06em;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: #1e293b;
  color: #ffffff;
}

.nav-item.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.nav-subgroup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 10px;
  margin-top: 4px;
}

.nav-network {
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.network-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  margin-right: 6px;
}

.badge-count, .badge-network-count {
  background: #334155;
  color: #f1f5f9;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.nav-network.active .badge-network-count {
  background: rgba(255, 255, 255, 0.25);
}

.sidebar-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-footer-text {
  font-size: 11px;
  color: #64748b;
  padding: 8px 12px 0;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  padding: 32px 40px;
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
}

/* BREADCRUMBS */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.crumb-sep {
  color: #cbd5e1;
}

.crumb-link {
  color: #6366f1;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.crumb-link:hover {
  text-decoration: underline;
}

.crumb-active {
  color: var(--text-main);
  font-weight: 600;
}

/* STATS CARDS */
.stats-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon-box {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-card-content {
  display: flex;
  flex-direction: column;
}

.stat-card-title {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-card-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

/* CONTENT CARD */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: visible;
  margin-bottom: 24px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BUTTONS */
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 4px rgba(255, 128, 0, 0.2);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 10px;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.search-box {
  position: relative;
  width: 320px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-box input:focus {
  border-color: var(--border-focus);
}

.toggle-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* SWITCH SLIDER */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(16px);
}

.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}

/* TABLE */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.members-table th {
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
  letter-spacing: 0.04em;
  user-select: none;
}

.members-table th.sortable {
  cursor: pointer;
}

.members-table th.sortable:hover {
  color: var(--text-main);
}

.sort-icon {
  display: inline-block;
  font-size: 10px;
  margin-left: 4px;
  color: var(--text-light);
}

.sort-icon.sort-active {
  color: var(--primary);
}

.members-table td {
  padding: 14px 18px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.members-table tbody tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.members-table tbody tr:hover {
  background-color: #f8fafc;
}

.loading-cell {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0 !important;
  font-size: 14px;
}

.text-right {
  text-align: right;
}

/* STATUS PILLS */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-authorized, .status-okay {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.status-unauthorized {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.status-controller {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

/* COPYABLE CELLS */
.copyable-cell {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.copyable-cell:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.device-id, .network-id-sub, .ip-text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #0f172a;
}

.device-name-box {
  font-weight: 600;
  color: #0f172a;
}

.network-name-title {
  font-weight: 700;
  color: #0f172a;
  display: block;
}

.network-id-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.device-count-fraction {
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.public-ip-box {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.latency-text {
  color: var(--success);
  font-size: 11px;
  margin-left: 4px;
}

.version-box {
  display: flex;
  flex-direction: column;
}

.version-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
}

.version-os {
  font-size: 11px;
  color: var(--text-muted);
}

.last-active-text {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ACTIONS DROPDOWN */
.actions-cell {
  position: relative;
  display: inline-block;
}

.btn-actions-dots {
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.btn-actions-dots:hover, .btn-actions-dots.active {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--text-main);
}

.actions-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  width: 240px;
  z-index: 100;
  padding: 6px 0;
  text-align: left;
}

.dropdown-item {
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  flex-direction: column;
}

.dropdown-item:hover {
  background: #f8fafc;
}

.dropdown-item.danger:hover {
  background: #fef2f2;
}

.dropdown-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.dropdown-item.danger .dropdown-item-title {
  color: #ef4444;
}

.dropdown-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* DEVICE DETAIL PAGE */
.detail-header-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-title-box h1 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.detail-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.detail-nav {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 24px;
}

.detail-nav-item {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.detail-nav-item:hover {
  background: #f8fafc;
  color: var(--text-main);
}

.detail-nav-item.active {
  background: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 600;
}

.detail-sections-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-section-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-section-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.detail-section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* FLOATING INPUT GROUPS */
.floating-group {
  margin-bottom: 18px;
}

.floating-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.input-with-action {
  display: flex;
  gap: 8px;
}

.input-with-action input, .input-with-action textarea {
  flex: 1;
  padding: 9px 12px;
  font-size: 13.5px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.input-with-action input:focus, .input-with-action textarea:focus {
  border-color: var(--border-focus);
}

.input-with-action textarea {
  resize: vertical;
  min-height: 70px;
}

.btn-inline-action {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-inline-action:hover {
  background: #e2e8f0;
}

.field-help-text {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 4px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 18px 0;
}

.toggle-row-text {
  display: flex;
  flex-direction: column;
}

.toggle-row-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

.toggle-row-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* METADATA GRIDS */
.meta-grid-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 20px 0 12px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-val {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-top: 2px;
  font-family: var(--font-mono);
}

.card-footer-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* NETWORK ACCESS MATRIX STYLING */
.matrix-list-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.matrix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.matrix-row.authorized {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.matrix-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.matrix-net-info {
  display: flex;
  flex-direction: column;
}

.matrix-net-name {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}

.matrix-net-sub {
  font-size: 12px;
  color: #64748b;
  font-family: var(--font-mono);
}

.matrix-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.matrix-ip-input {
  width: 150px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
}

.matrix-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-card, .login-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.15);
  position: relative;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.zt-logo {
  width: 38px;
  height: 38px;
}

.brand-header h2, .brand-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.modal-desc, .login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--border-focus);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.preset-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.error-text {
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 8px;
}

/* TOAST */
.toast-copied {
  position: fixed;
  transform: translate(-50%, -100%);
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 9999;
  animation: fadeInToast 0.15s ease;
}

@keyframes fadeInToast {
  from { opacity: 0; transform: translate(-50%, -80%); }
  to { opacity: 1; transform: translate(-50%, -100%); }
}

@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .main-content {
    padding: 20px;
  }
}

.nav-net-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-net-title {
  overflow: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.nav-network {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 2px;
  color: #cbd5e1;
}

.network-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

/* DROPDOWN OVERFLOW & POSITION FIXES */
.content-card {
  overflow: visible !important;
}

.table-responsive {
  overflow-x: auto;
  overflow-y: visible !important;
  padding-bottom: 60px;
  margin-bottom: -60px;
}

.actions-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  width: 240px;
  z-index: 999;
  padding: 6px 0;
  text-align: left;
}

.actions-dropdown.drop-up {
  top: auto !important;
  bottom: calc(100% + 4px) !important;
  box-shadow: 0 -10px 25px -3px rgba(0, 0, 0, 0.15), 0 -4px 6px -4px rgba(0, 0, 0, 0.1) !important;
}

.actions-dropdown {
  position: fixed !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.22), 0 4px 12px -2px rgba(15, 23, 42, 0.12) !important;
  width: 240px !important;
  z-index: 99999 !important;
  padding: 6px 0 !important;
  text-align: left !important;
}
