/* These styles are generated from project.scss. */
:root {
        --sidebar-bg: #000000;
        --sidebar-text: #b8c4c2;
        --sidebar-active: #3d4a2b;
        --sidebar-hover: #1a1a1a;
        --accent-color: #728B18;
        --border-color: #2a2a2a;
      }
      
      body {
        overflow-x: hidden;
      }
      
      .sidebar-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        background-color: var(--sidebar-bg);
        color: var(--sidebar-text);
        transition: all 0.3s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        border-right: 1px solid var(--border-color);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
      }
      
      .sidebar-header {
        padding: 1.5rem 1rem;
        border-bottom: 1px solid var(--border-color);
        background: linear-gradient(135deg, var(--sidebar-bg) 0%, #1a1a1a 100%);
      }
      
      .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
        color: #fff;
        transition: transform 0.2s;
      }
      
      .sidebar-brand:hover {
        transform: translateX(3px);
        color: #fff;
      }
      
      .sidebar-brand img {
        max-width: 45px;
        height: auto;
      }
      
      .sidebar-brand h1 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        background: linear-gradient(135deg, #728B18, #93B32B);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }
      
      .sidebar-content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 1rem 0;
      }
      
      .sidebar-content::-webkit-scrollbar {
        width: 6px;
      }
      
      .sidebar-content::-webkit-scrollbar-track {
        background: var(--sidebar-bg);
      }
      
      .sidebar-content::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 3px;
      }
      
      .sidebar-content::-webkit-scrollbar-thumb:hover {
        background: var(--sidebar-hover);
      }
      
      .nav-section-title {
        padding: 0.75rem 1.25rem 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #6b8a8a;
        margin-top: 0.5rem;
      }
      
      .sidebar-nav {
        list-style: none;
        padding: 0;
        margin: 0;
      }
      
      .nav-item {
        margin: 0.25rem 0.75rem;
      }
      
      .nav-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        color: var(--sidebar-text);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.2s ease;
        font-size: 0.95rem;
        position: relative;
      }
      
      .nav-link:hover {
        background-color: var(--sidebar-hover);
        color: #fff;
        transform: translateX(3px);
      }
      
      .nav-link.active {
        background-color: var(--sidebar-active);
        color: #fff;
        font-weight: 500;
      }
      
      .nav-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 70%;
        background: var(--accent-color);
        border-radius: 0 4px 4px 0;
      }
      
      .nav-link i {
        margin-right: 0.75rem;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
      }
      
      .nav-link .badge {
        margin-left: auto;
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
      }
      
      .nav-link .bi-chevron-down {
        margin-left: auto;
        transition: transform 0.3s ease;
        font-size: 0.8rem;
      }
      
      .nav-link[aria-expanded="true"] .bi-chevron-down {
        transform: rotate(180deg);
      }
      
      .submenu {
        list-style: none;
        padding: 0.5rem 0 0.5rem 0;
        margin: 0;
      }
      
      .submenu .nav-item {
        margin: 0.25rem 0.5rem 0.25rem 1.5rem;
      }
      
      .submenu .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
      }
      
      .submenu .nav-link i {
        font-size: 1rem;
        margin-right: 0.65rem;
      }
      
      .main-content {
        margin-left: 260px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        transition: margin-left 0.3s ease;
      }
      
      .main-wrapper {
        flex: 1;
        padding: 2rem;
        background-color: #f8f9fa;
      }
      
      .footer {
        background-color: #d6d6d6;
        color: #192102;
        text-align: center;
        padding: 1.5rem;
        font-size: 0.9rem;
        border-top: 1px solid #d6d6d6;
      }
      
      /* Mobile Toggle Button */
      .sidebar-toggle {
        display: none;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--sidebar-bg);
        color: #fff;
        border: none;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      }
      
      /* Mobile Responsive */
      @media (max-width: 768px) {
        .sidebar-wrapper {
          left: -260px;
        }
        
        .sidebar-wrapper.show {
          left: 0;
        }
        
        .main-content {
          margin-left: 0;
        }
        
        .sidebar-toggle {
          display: block;
        }
        
        .sidebar-overlay {
          display: none;
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0, 0, 0, 0.5);
          z-index: 999;
        }
        
        .sidebar-overlay.show {
          display: block;
        }
      }
      
.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

.text-primary {
  background: linear-gradient(135deg, #728B18, #93B32B) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.bg-dark {
  background-color: #1a1a1a !important;
}

.btn-primary {
  background-color: #1a1a1a;
  color: white;
 
}

.btn-primary:hover {
  background-color: #151515;
  color: white;
}

/* ── Transaction detail actions ─────────────────────────────────────────── */

.txn-actions-sticky {
  position: sticky;
  top: 1.25rem;
  z-index: 2;
}

.txn-actions-card {
  border: 1px solid #e7e9e4;
  border-radius: 0.75rem;
  overflow: hidden;
}

.txn-actions-card .card-header,
.txn-actions-toggle {
  background: linear-gradient(180deg, #f8f9f6 0%, #f3f4ef 100%);
  border-bottom: 1px solid #e7e9e4;
}

.txn-actions-toggle {
  cursor: pointer;
  padding: 0.75rem 1rem;
  transition: background 0.15s ease;
}

.txn-actions-toggle:hover {
  background: linear-gradient(180deg, #f3f4ef 0%, #e9ecdf 100%);
}

.txn-actions-toggle:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(114, 139, 24, 0.25);
}

/* Collapsed: no bottom border on the toggle so the card looks compact */
.txn-actions-toggle[aria-expanded="false"] {
  border-bottom: none;
}

.txn-actions-chevron {
  font-size: 0.85rem;
  color: #6c757d;
  transition: transform 0.2s ease;
  display: inline-block;
}

.txn-actions-toggle[aria-expanded="true"] .txn-actions-chevron {
  transform: rotate(90deg);
}

.txn-actions-count {
  font-size: 0.7rem;
  font-weight: 600;
}

.txn-last-action {
  padding: 0.75rem 0.85rem;
  background: #f8f9f6;
  border: 1px solid #e7e9e4;
  border-radius: 0.5rem;
}

.txn-last-action__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.txn-last-action__body {
  font-size: 0.875rem;
  line-height: 1.35;
}

.txn-last-action__meta {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.txn-action-group__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.txn-action-group--danger {
  border-top: 1px dashed #f1c0c0;
}

.txn-action-group--danger .txn-action-group__label {
  color: #a33b3b;
}

.txn-action-group__hint {
  font-size: 0.75rem;
  color: #8a6a6a;
  margin-bottom: 0.65rem;
}

.txn-action-btn {
  justify-content: flex-start;
  font-weight: 500;
}

.txn-action-btn:disabled {
  opacity: 0.72;
  text-align: left !important;
  white-space: normal;
  height: auto;
}

.txn-action-context {
  background: #111;
  color: #f3f4ef;
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
}

.txn-action-context__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
}

.txn-action-context__id {
  color: #c6e06a;
  font-size: 0.8125rem;
}

.txn-action-context__sep {
  color: #6c757d;
}

.txn-toast-container {
  z-index: 1090;
}

/* Professional telco confirmation checkbox */
.confirm-ack {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1.5px solid #d9ddd3;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #fcfdfb 0%, #f5f7f1 100%);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
  margin-bottom: 0;
}

.confirm-ack:hover {
  border-color: #a8b87a;
  box-shadow: 0 0 0 3px rgba(114, 139, 24, 0.08);
}

.confirm-ack.is-checked,
.confirm-ack:has(.confirm-ack__input:checked) {
  border-color: #728B18;
  background: linear-gradient(180deg, #f7fbee 0%, #eef5d8 100%);
  box-shadow: 0 0 0 3px rgba(114, 139, 24, 0.12);
}

.confirm-ack__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.confirm-ack__control {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border: 2px solid #8a9278;
  border-radius: 0.35rem;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.confirm-ack.is-checked .confirm-ack__control,
.confirm-ack:has(.confirm-ack__input:checked) .confirm-ack__control {
  background: #728B18;
  border-color: #728B18;
}

.confirm-ack__icon {
  color: #fff;
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.12s ease;
}

.confirm-ack.is-checked .confirm-ack__icon,
.confirm-ack:has(.confirm-ack__input:checked) .confirm-ack__icon {
  opacity: 1;
  transform: scale(1);
}

.confirm-ack__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.confirm-ack__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
  line-height: 1.3;
}

.confirm-ack__help {
  font-size: 0.8rem;
  color: #5c6352;
  line-height: 1.4;
}

.confirm-ack--required .confirm-ack__title::after {
  content: " *";
  color: #b02a37;
}

.confirm-ack:focus-within {
  outline: none;
  border-color: #728B18;
  box-shadow: 0 0 0 3px rgba(114, 139, 24, 0.18);
}

@media (max-width: 767.98px) {
  .txn-actions-sticky {
    position: static;
  }
}

