.s-site-logo-img {
  content: url(../site/ds_logo.jpeg);
}

/* Make sidebar navigation scrollable with hidden scrollbar */
.s-sidebar-pane {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

  .s-sidebar-pane::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

.s-TranslationGrid input.custom-text {
  width: 100%;
  height: 23px;
  padding: 0 3px;
}

.s-PermissionCheckEditor {
  min-height: 450px;
}

.exception .slick-cell {
  background-color: red;
  color: black;
}

  /* Don't override link colors for EditLink cells */
  .exception .slick-cell a:not([class*="EditLink"]) {
    color: black;
  }

/*Approved DOM transactions*/
.completed .slick-cell {
  background-color: green;
  color: white;
  border-bottom: 1px solid white;
}

  .completed .slick-cell a {
    background-color: green;
    color: white;
    text-decoration: none;
  }

.unconfirmed .slick-cell,
.amount .slick-cell a {
  background-color: papayawhip;
  color: lightcoral;
}

.rejected .slick-cell,
.amount .slick-cell a {
  background-color: darkgray;
  color: white;
}

.not-charged .slick-cell {
  background-color: #e9ea15;
  color: black;
}

  /* Preserve EditLink blue hyperlink styling */
  .not-charged .slick-cell a.EditLink {
    color: #0066cc !important;
    text-decoration: underline;
  }

  .not-charged .slick-cell a:not([class*="EditLink"]) {
    color: black;
  }

/* For unauthorized rows, don't override background - let alternating rows show through */
.unauthorized .slick-cell {
  /* Removed: background-color: white; */
  color: black;
}

  /* Preserve EditLink blue hyperlink styling */
  .unauthorized .slick-cell a.EditLink {
    color: #0066cc !important;
    text-decoration: underline;
  }

  .unauthorized .slick-cell a:not([class*="EditLink"]) {
    color: black;
  }

.high-price .col-unit-price {
  background-color: darkorchid;
  color: #fff;
}

.medium-price .col-unit-price {
  background-color: yellow;
  color: #000;
}

.low-price .col-unit-price {
  background-color: green;
  color: #fff;
}

/* Footer Styles */
.s-app-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 15px 0;
  margin-top: 40px;
  border-top: 1px solid #34495e;
  font-size: 0.9rem;
}

  .s-app-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .s-app-footer .footer-brand {
    font-weight: 600;
    color: #3498db;
    font-size: 1rem;
  }

  .s-app-footer .footer-copyright {
    color: #bdc3c7;
    font-size: 0.85rem;
  }

/* Responsive adjustments */
@media (max-width: 768px) {
  .s-app-footer .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .s-app-footer .footer-brand {
    margin-bottom: 5px;
  }
}

/* Ensure footer stays at bottom for pages with sidebar navigation */
.s-main {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px); /* Adjust based on header height */
}

  .s-main .content {
    flex: 1;
  }

/* For pages without navigation */
#page-outer-nonav {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

  #page-outer-nonav .page-container-common {
    flex: 1;
  }

/* Account Name Loading and Update Effects */
.loading-state {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  color: #666 !important;
  font-style: italic;
}

@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.account-updated {
  animation: account-flash 1s ease-in-out;
  transition: all 0.3s ease;
}

@keyframes account-flash {
  0% {
    background-color: #d4edda;
    border-color: #28a745;
    transform: scale(1);
  }

  50% {
    background-color: #c3e6cb;
    border-color: #28a745;
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
  }

  100% {
    background-color: #d4edda;
    border-color: #28a745;
    transform: scale(1);
  }
}

.error-state {
  background-color: #f8d7da !important;
  border-color: #dc3545 !important;
  color: #721c24 !important;
  animation: error-shake 0.5s ease-in-out;
}

@keyframes error-shake {
  0%, 100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* ================================================
   XML Prettified Telex Message Display
   ================================================ */
.xml-prettified-container {
  width: 100%;
  max-height: 500px;
  overflow: auto;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #1e1e2e;
  margin-top: 2px;
}

.xml-prettified {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #cdd6f4;
  padding: 12px 16px;
  margin: 0;
  white-space: pre;
  tab-size: 2;
  overflow-x: auto;
}

  /* XML syntax highlighting colors */
  .xml-prettified .xml-declaration {
    color: #89b4fa;
    font-style: italic;
  }

  .xml-prettified .xml-bracket {
    color: #6c7086;
  }

  .xml-prettified .xml-tag {
    color: #f38ba8;
    font-weight: 500;
  }

  .xml-prettified .xml-attr {
    color: #fab387;
  }

  .xml-prettified .xml-value {
    color: #a6e3a1;
  }

/* Scrollbar styling for the XML container */
.xml-prettified-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.xml-prettified-container::-webkit-scrollbar-track {
  background: #1e1e2e;
  border-radius: 4px;
}

.xml-prettified-container::-webkit-scrollbar-thumb {
  background: #45475a;
  border-radius: 4px;
}

  .xml-prettified-container::-webkit-scrollbar-thumb:hover {
    background: #585b70;
  }
