/* CSR Workflow Orchestrator Styles - Based on CSR Inquiry Flow */
/* Dialog Components - Clean Styling System */
.form-container {
  width: 90%;
  max-width: 400px;
  background: #333;
  border: 1px solid #444;
  padding: 20px;
  border-radius: 10px;
  margin: 20px auto;
  box-sizing: border-box;
  color: white;
}
/* Form Groups - Clean and Simple - High Specificity */
.form-container .form-group {
  margin-bottom: 15px !important;
  position: relative !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
}
.form-container .form-group label {
  display: block !important;
  margin-bottom: 5px !important;
  color: #ddd !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
/* Input Fields - Exact Vanilla HTML Styling - High Specificity */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container input[type="password"],
.form-container input[type="number"],
.form-container input[type="file"],
.form-container select,
.form-container textarea {
  padding: 12px 12px 12px 40px !important;
  width: 100% !important;
  background-color: #444 !important;
  border: 1px solid #555 !important;
  border-radius: 5px !important;
  color: #ddd !important;
  font-size: 16px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
  -webkit-appearance: none !important;
}
.form-container .form-group input::placeholder,
.form-container .form-group textarea::placeholder {
  color: #bbb !important;
}
/* Focus States - Clean and immediate - High Specificity */
.form-container .form-group input:focus,
.form-container .form-group select:focus,
.form-container .form-group textarea:focus {
  border-color: #4caf50 !important;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5) !important;
  background-color: rgba(76, 175, 80, 0.08) !important;
}
/* Icons - Direct positioning like vanilla HTML - High Specificity */
.form-container .form-group i {
  position: absolute !important;
  top: 50% !important;
  left: 12px !important;
  transform: translateY(-50%) !important;
  color: #bbb !important;
  font-size: 18px !important;
  transition: color 0.3s ease !important;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #ddd;
  font-size: 14px;
  font-weight: 500;
}
/* Input Fields - Exact Vanilla HTML Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
  padding: 12px 12px 12px 40px;
  width: 100%;
  background-color: #444;
  border: 1px solid #555;
  border-radius: 5px;
  color: #ddd;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}
/* Icons - Direct positioning like vanilla HTML */
.form-group i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #bbb;
  font-size: 18px;
  transition: color 0.3s ease;
}
/* Focus States - Clean and immediate */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #4caf50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
  background-color: rgba(76, 175, 80, 0.08);
}
/* Dialog Header */
.dialog-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dialog-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffb74d;
  margin: 0 0 8px 0;
}
.dialog-subtitle {
  font-size: 14px;
  color: #ccc;
  margin: 0;
  line-height: 1.4;
}
/* Dialog Content */
.dialog-content {
  padding: 16px 0;
}
/* No styles override - completely removes all styling */
.no-styles,
.no-styles *,
.no-styles *::before,
.no-styles *::after {
  all: unset !important;
  box-sizing: border-box !important;
}
.no-styles {
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Basic form elements for no-styles */
.no-styles input,
.no-styles select,
.no-styles textarea,
.no-styles button {
  display: block !important;
  width: 100% !important;
  padding: 8px !important;
  margin: 4px 0 !important;
  border: 1px solid #ccc !important;
  border-radius: 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  background: white !important;
  color: black !important;
}
.no-styles button {
  background: #f0f0f0 !important;
  border: 1px solid #ccc !important;
  cursor: pointer !important;
  padding: 8px 16px !important;
  width: auto !important;
}
.no-styles button:hover {
  background: #e0e0e0 !important;
}
/* Force payment buttons to stay in row on all screen sizes */
.no-styles .dialog-actions .dialog-button-group {
  flex-direction: row !important;
}
.no-styles .dialog-actions .service-option-btn {
  width: 48% !important;
  flex: 0 0 auto !important;
}
/* Ensure buttons are positioned: Cancel left, Process Payment right */
.no-styles .dialog-actions .dialog-button-group .dialog-back-btn {
  margin-right: auto;
}
.no-styles .dialog-actions .dialog-button-group .service-option-btn:not(.dialog-back-btn) {
  margin-left: auto;
}
/* Dialog Section */
.dialog-section {
  margin-bottom: 24px;
}
.dialog-section:last-child {
  margin-bottom: 0;
}
.dialog-section-title {
  font-size: 14px;
  font-weight: 500;
  color: #ddd;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dialog-section-title i {
  color: #ffb74d;
  font-size: 16px;
}
/* Dialog Fields */
.dialog-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Button Groups - Clean vanilla HTML approach - High Specificity */
.form-container .button-group {
  display: flex !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  margin-top: 30px !important;
  gap: 10px !important;
}
.form-container button.submit-btn,
.form-container button.back-btn {
  background-color: #222 !important;
  border: 1px solid #666 !important;
  border-radius: 5px !important;
  color: #ddd !important;
  padding: 12px 20px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  flex: 1 !important;
  min-width: 120px !important;
}
.form-container button.submit-btn:hover,
.form-container button.back-btn:hover {
  background-color: #444 !important;
  border-color: #888 !important;
  transform: translateY(-2px) !important;
}
.form-container button.submit-btn:active,
.form-container button.back-btn:active {
  transform: translateY(0) !important;
}
.dialog-actions .service-option-btn,
.dialog-sidepop-footer .service-option-btn {
  width: auto;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
}
.dialog-actions .service-option-btn span {
  flex: 1;
  text-align: center;
}
/* Dialog Status Messages */
.dialog-status {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dialog-status.error {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: #ff5252;
}
.dialog-status.success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}
.dialog-status.warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #ffc107;
}
.dialog-status.info {
  background: rgba(23, 162, 184, 0.1);
  border: 1px solid rgba(23, 162, 184, 0.3);
  color: #17a2b8;
}
/* Dialog Loading State */
.dialog-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
  flex-direction: column;
  gap: 16px;
}
.dialog-loading i {
  font-size: 24px;
  color: #ffb74d;
}
.dialog-loading p {
  margin: 0;
  color: #ccc;
  text-align: center;
}
/* Dialog Summary/List */
.dialog-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.dialog-summary ul {
  margin: 12px 0 0 0;
  padding-left: 20px;
}
.dialog-summary li {
  margin-bottom: 8px;
  color: #ddd;
  line-height: 1.4;
}
.dialog-summary li:last-child {
  margin-bottom: 0;
}
.dialog-summary strong {
  color: #ffb74d;
}
/* Summary Grid for Payment Forms */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}
.summary-card {
  text-align: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.summary-card .label {
  font-size: 11px;
  color: #ccc;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.summary-card .value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
/* Dialog File Upload */
.dialog-file-upload {
  margin-bottom: 16px;
}
.dialog-file-upload input[type="file"] {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
}
/* Dialog Conditional Fields */
.dialog-conditional-fields {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 187, 77, 0.3);
  transition: all 0.3s ease;
}
.dialog-conditional-fields.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}
.dialog-conditional-fields.visible {
  opacity: 1;
  max-height: 1000px;
}
/* Dialog Button Groups */
.dialog-button-group {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: stretch;
  flex-wrap: nowrap !important;
}
.dialog-button-group .service-option-btn {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 10px 16px;
  font-size: 13px;
}
/* Dialog Back Button */
.dialog-back-btn {
  background: rgba(108, 117, 125, 0.1) !important;
  color: #ccc !important;
  border-color: rgba(108, 117, 125, 0.3) !important;
}
/* Validation States - Exact vanilla HTML approach - High Specificity */
.form-container input:focus:valid,
.form-container select:focus:valid,
.form-container .form-group.success input,
.form-container .form-group.success select,
.form-container .form-group.success textarea {
  border-color: #4caf50 !important;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6) !important;
  animation: successGlow 0.5s ease-in-out !important;
}
.form-container input:focus:invalid,
.form-container select:focus:invalid,
.form-container .form-group.error input,
.form-container .form-group.error select,
.form-container .form-group.error textarea {
  border-color: #ff5252 !important;
  box-shadow: 0 0 8px rgba(255, 82, 82, 0.6) !important;
  animation: errorGlow 0.5s ease-in-out !important;
}
.form-container .form-group.error i {
  color: #ff5252 !important;
}
.form-container .form-group.success i {
  color: #4caf50 !important;
}
@keyframes successGlow {
  0% { box-shadow: 0 0 0 rgba(76, 175, 80, 0); }
  50% { box-shadow: 0 0 12px rgba(76, 175, 80, 0.8); }
  100% { box-shadow: 0 0 8px rgba(76, 175, 80, 0.6); }
}
@keyframes errorGlow {
  0% { box-shadow: 0 0 0 rgba(255, 82, 82, 0); }
  50% { box-shadow: 0 0 12px rgba(255, 82, 82, 0.8); }
  100% { box-shadow: 0 0 8px rgba(255, 82, 82, 0.6); }
}
/* Error Messages - Clean and simple - High Specificity */
.form-container .error-message {
  color: #ff5252 !important;
  font-size: 12px !important;
  margin-top: 5px !important;
  display: none !important;
  animation: fadeIn 0.3s !important;
}
.form-container .form-group.error .error-message {
  display: block !important;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #ddd;
}
.form-group .input-wrapper {
  position: relative;
}
.dialog-form-group {
  margin-bottom: 12px;
  position: relative;
  width: 100%;
}
.dialog-form-group input,
.dialog-form-group select,
.dialog-form-group textarea {
  padding: 10px 10px 10px 36px;
  width: 100%;
  background-color: var(--bg-surface-3);
  border: 1px solid var(--bg-surface-4);
  border-radius: 5px;
  color: var(--text-secondary);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
.dialog-form-group i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.3s ease;
}
.dialog-form-group input:focus,
.dialog-form-group select:focus,
.dialog-form-group textarea:focus {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}
.dialog-form-group.error input,
.dialog-form-group.error select,
.dialog-form-group.error textarea {
  border-color: var(--color-error);
  box-shadow: 0 0 5px rgba(255, 82, 82, 0.5);
}
.dialog-form-group.error i {
  color: var(--color-error);
}
.dialog-form-group.success input,
.dialog-form-group.success select,
.dialog-form-group.success textarea {
  border-color: var(--color-success);
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}
.dialog-form-group.success i {
  color: var(--color-success);
}
.dialog-error-message {
  color: var(--color-error);
  font-size: 12px;
  margin-top: 4px;
  display: none;
  animation: dialogFadeIn 0.3s;
}
.dialog-form-group.error .dialog-error-message {
  display: block;
}
@keyframes dialogFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Tooltips - Exact vanilla HTML styling - High Specificity */
.form-container .tooltip {
  position: absolute !important;
  top: -60px !important;
  left: 0 !important;
  width: 100% !important;
  border: 1px solid #4caf50 !important;
  background-color: #444 !important;
  color: #ddd !important;
  padding: 8px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  z-index: 10 !important;
  display: none !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}
.form-container input:focus + .tooltip,
.form-container select:focus + .tooltip,
.form-container textarea:focus + .tooltip {
  display: block !important;
  opacity: 1 !important;
}
/* Responsive Design */
/* Invoice Table Styles */
.invoice-table {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}
.invoice-header {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 14px;
  color: #ffb74d;
}
.invoice-header div {
  flex: 1;
  padding: 8px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.invoice-header div:last-child {
  border-right: none;
}
.invoice-body {
  max-height: 400px;
  overflow-y: auto;
}
.invoice-row {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.invoice-row.unpaid {
  background: rgba(220, 53, 69, 0.05);
}
.invoice-cell {
  flex: 1;
  padding: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}
.invoice-cell:last-child {
  border-right: none;
}
.flex-2 {
  flex: 2;
}
.invoice-number {
  color: #e0e0e0;
  font-weight: 500;
  font-size: 14px;
}
.invoice-date {
  color: #ccc;
  font-size: 14px;
}
.invoice-amount {
  font-weight: 600;
  font-size: 14px;
}
.invoice-amount.paid {
  color: #28a745;
}
.invoice-amount.unpaid {
  color: #ff5252;
}
.invoice-status {
  font-weight: 600;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
}
.invoice-status.paid {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}
.invoice-status.overdue {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}
.invoice-status.pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}
.no-invoices {
  text-align: center;
  padding: 64px 0;
  color: #6c757d;
}
.full-height {
  height: 100%;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.flex-grow {
  flex-grow: 1;
  overflow-y: auto;
}
.dialog-actions-bordered {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}
.payment-count {
  color: #ccc;
  font-size: 12px;
  flex: 1;
}
.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.payment-modal-content {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.payment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.payment-modal-title {
  color: #ffb74d;
  margin: 0;
  font-size: 16px;
}
.payment-modal-close {
  background: none;
  border: none;
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
}
.payment-modal-body {
  flex-grow: 1;
  overflow-y: auto;
}
.payment-modal-details {
  background-color: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: 4px;
}
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.payment-label {
  color: #ccc;
  font-size: 12px;
  margin-bottom: 4px;
}
.payment-value {
  color: #e0e0e0;
  font-size: 14px;
}
.payment-value.amount {
  color: #ffb74d;
  font-size: 16px;
  font-weight: 600;
}
.payment-status {
  margin-bottom: 16px;
}
.payment-status-label {
  color: #ccc;
  font-size: 12px;
  margin-bottom: 4px;
}
.payment-ref {
  color: #ccc;
  font-size: 12px;
  margin-bottom: 4px;
}
.margin-top-8 {
  margin-top: 8px;
}
.no-padding-margin {
  padding: 0;
  margin: 0;
}
.no-invoices div {
  font-size: 14px;
}
.invoice-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
}
.invoice-loading .spinner-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.invoice-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 183, 77, 0.3);
  border-top: 3px solid #ffb74d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.invoice-loading-text {
  color: #ccc;
  font-size: 14px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Payment Component Styles */
.payment-executing-text {
}
.payment-success-list {
}
.client-info-header {
}
.client-loading {
}
.client-error {
}
.client-details-container {
}
.client-table {
}
.client-row {
}
.client-cell-header {
}
.client-cell-data {
}
.no-client-details {
}
/* Contact Update Styles */
.contact-error {
}
.contact-info {
}
.contact-confirm-notice {
}
.contact-confirm-list {
}
.contact-back-btn {
}
.contact-spinner {
}
.contact-executing-loading {
}
.contact-loading-spinner {
}
.contact-success-notice {
}
.contact-container {
}
.contact-content {
}
.contact-header {
}
.contact-actions {
}
.contact-cancel-btn {
}
.contact-modal {
}
/* Upgrade Service Styles */
.upgrade-card {
}
.upgrade-card-hover {
}
.upgrade-description {
}
.upgrade-pricing {
}
.upgrade-table-header {
}
.upgrade-table-row {
}
.upgrade-table-cell {
}
.upgrade-actions {
}
/* Payment History Styles */
.payment-history-loading {
}
.payment-history-spinner-container {
}
.payment-history-spinner {
}
.payment-history-loading-text {
}
.payment-history-table {
}
.payment-history-header {
}
.payment-history-body {
}
.payment-history-row {
}
.payment-history-cell {
}
.payment-history-number {
}
.payment-history-date {
}
.payment-history-amount {
}
.payment-history-status {
}
.no-payment-history {
}
@media (max-width: 768px) {
  .dialog-container {
    padding: 0 8px;
  }

  .dialog-header {
    margin-bottom: 16px;
  }

  .dialog-title {
    font-size: 16px;
  }

  .dialog-button-group {
    flex-direction: column;
  }

  .dialog-button-group .service-option-btn {
    width: 100%;
  }
}
/* New styles for refactoring - Side Popups and Inline Style Removal */
/* CSS Variables for theming */
:root {
  --bg-modal: rgba(0, 0, 0, 0.8);
  --color-success: #2ecc71;
  --color-error: #e74c3c;
  --color-warning: #f39c12;
  --color-info: #3498db;
  --border-subtle: 1px solid rgba(255, 255, 255, 0.1);
  --border-accent: 1px solid rgba(255, 183, 77, 0.3);
  --border-success: 1px solid rgba(46, 204, 113, 0.3);
  --bg-overlay: rgba(255, 255, 255, 0.02);
  --bg-highlight: rgba(255, 183, 77, 0.1);
  --bg-success: rgba(46, 204, 113, 0.1);
  --text-muted: #ccc;
  --text-primary: #fff;
}
/* Side Popup Styles - Now using status dashboard classes for uniformity */
/* Dialog Modal (for fallback or other uses) */
.dialog-modal {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-modal);
  border: var(--border-subtle);
}
/* Status Badges */
.status-badge {
  background-color: var(--bg-overlay);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
}
.status-badge.paid {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}
.status-badge.unpaid {
  background-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}
.status-badge.overdue {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}
.status-badge.completed {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}
/* Table Rows */
.table-row {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background-color 0.2s;
}
.table-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.table-row.selected {
  background-color: rgba(33, 150, 243, 0.1);
}
.table-row.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Highlight Boxes */
.highlight-box {
  background-color: var(--bg-overlay);
  border: var(--border-subtle);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}
.highlight-box.success {
  background-color: var(--bg-success);
  border: var(--border-success);
  color: var(--color-success);
}
.highlight-box.warning {
  background-color: var(--bg-highlight);
  border: var(--border-accent);
  color: #ffb74d;
}
.selected-invoice-summary {
  margin-bottom: 16px;
  padding: 12px 16px;
  background-color: rgba(255, 183, 77, 0.1);
  border: 1px solid rgba(255, 183, 77, 0.3);
  border-radius: 6px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.summary-row.last {
  margin-bottom: 0;
}
.summary-label {
  color: #ffb74d;
  font-size: 12px;
}
.summary-value {
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 600;
}
.summary-value.normal {
  color: #e0e0e0;
  font-weight: normal;
}
.summary-value.success {
  color: #28a745;
}
.highlight-date {
  color: #ffb74d;
}
.highlight-box.error {
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: var(--color-error);
}
/* Center Content */
.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}
/* Invoice Table */
.invoice-table {
  background-color: var(--bg-overlay);
  border: var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
}
.invoice-header {
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: var(--border-subtle);
  font-weight: 600;
  font-size: 12px;
  color: #ffb74d;
}
.invoice-header > div {
  padding: 8px 12px;
  flex: 1;
}
.invoice-body {
  max-height: 300px;
  overflow-y: auto;
}
.invoice-row {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background-color 0.2s;
}
.invoice-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.invoice-row.unpaid {
  background-color: rgba(220, 53, 69, 0.05);
}
.invoice-row.selected {
  background-color: rgba(33, 150, 243, 0.1);
}
.invoice-row.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.invoice-cell {
  flex: 1;
  padding: 8px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}
.amount-text {
  color: #28a745;
  font-weight: 600;
  font-size: 14px;
}
.amount-text.unpaid {
  color: #ff5252;
}
.select-text {
  color: #ffb74d;
  font-size: 12px;
  font-weight: 600;
}
.select-text.selected {
  color: #2196f3;
}
.extended-text {
  color: #6c757d;
  font-size: 11px;
}
.invoice-label {
  display: block;
  color: #ccc;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: 500;
}
.invoice-container {
  margin-bottom: 16px;
}
/* Payment History Grid */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
/* Loading Spinner */
.loading-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: var(--text-muted);
}
.spinner {
  margin-right: 8px;
  font-size: 16px;
}
/* Success Message */
.success-box {
  background: var(--bg-success);
  border: var(--border-success);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--color-success);
}
/* Note Box (for warnings) */
.note-box {
  background: rgba(149, 165, 166, 0.1);
  border: 1px solid rgba(149, 165, 166, 0.3);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #95a5a6;
}
/* Coming Soon Styles */
.coming-soon {
  height: 100%;
  padding: 20px;
  margin: 0;
}
.subtitle {
  color: #ffb74d;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-large {
  font-size: 48px;
  margin-bottom: 16px;
  color: #666;
}
.subtitle-muted {
  color: #666;
  margin-top: 4px;
  font-size: 12px;
}
.subtitle-info {
  color: #ccc;
  margin-top: 4px;
}
.coming-soon-text {
  color: #ccc;
  font-size: 12px;
  flex: 1;
}
.btn-custom {
  min-width: auto;
  padding: 10px 16px;
  font-size: 14px;
}
.heading-accent::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--color-info);
  border-radius: 2px;
  margin-right: 8px;
}
/* Popup Footer Button Layout */
.status-dash-popup-footer .popup-footer-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
/* Status Dashboard Popup Styles (copied for uniformity) */
.status-dash-side-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.status-dash-popup-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100%;
  background-color: #333;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}
.status-dash-popup-header {
  padding: 15px;
  background-color: #333;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.status-dash-popup-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.status-dash-popup-footer {
  padding: 15px;
  background-color: #333;
}
.status-dash-job-status-popup-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  padding: 10px;
  background-color: #444;
  border: 1px solid #555;
  color: #ddd;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.status-dash-job-status-popup-button:hover {
  background-color: #555;
}
/* Dialog Sidepopup Pattern - Flexbox with Sticky Header/Footer */
.dialog-sidepop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.dialog-sidepop-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100%;
  background-color: #333;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}
.dialog-sidepop-header {
  flex-shrink: 0;
  padding: 10px;
  background-color: #333;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dialog-sidepop-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.dialog-sidepop-footer {
  flex-shrink: 0;
  padding: 10px;
  background-color: #333;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.dialog-sidepop-footer-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: stretch;
  flex-wrap: nowrap !important;
}
.dialog-sidepop-footer-buttons .status-dash-job-status-popup-button {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
  white-space: nowrap;
}
/* Dialog step header - compact by default */
.dialog-step-header {
  font-size: 13px;
  font-weight: 600;
  color: #ffb74d;
  margin-bottom: 4px;
}
.dialog-step-subtitle {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 2px;
}
.dialog-step-meta {
  font-size: 11px;
  color: #999;
  font-style: italic;
}
.popup-compact-mode .dialog-sidepop-content {
  padding: 8px;
}
.popup-compact-mode .dialog-sidepop-footer {
  padding: 10px;
}
.popup-compact-mode .dialog-sidepop-footer-buttons {
  gap: 5px;
}
.popup-compact-mode .dialog-step-header {
  font-size: 13px;
  margin-bottom: 4px;
}
.popup-compact-mode .dialog-step-subtitle {
  font-size: 12px;
  margin-bottom: 2px;
}
.popup-compact-mode .dialog-step-meta {
  font-size: 11px;
}
.popup-compact-mode .status-dash-job-status-popup-button {
  padding: 8px;
  font-size: 12px;
}
/* Dialog Header Components */
.dialog-step-header {
  font-size: 16px;
  font-weight: 600;
  color: #ffb74d;
  margin-bottom: 8px;
}
.dialog-step-subtitle {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 4px;
}
.dialog-step-meta {
  font-size: 12px;
  color: #999;
  font-style: italic;
}
.backdrop-blur {
  backdrop-filter: blur(8px);
}
.table-row-custom td {
  color: var(--text-primary);
  border-bottom: none;
  padding: var(--adaptive-space-md);
  font-size: var(--adaptive-text-base);
}
.upgrade-summary-border {
  border-bottom: 1px solid var(--bg-surface-3);
  padding-bottom: 8px;
}
.upgrade-footer {
  border-top: 1px solid var(--bg-surface-3);
  background-color: var(--bg-surface-2);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: var(--adaptive-space-md);
}
.upgrade-footer-md {
  padding: var(--adaptive-space-xl);
}
.upgrade-button-custom {
  min-width: auto;
  padding: 10px 16px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.upgrade-list {
  margin: 0;
  padding-left: var(--adaptive-space-lg);
  line-height: 1.6;
}
.upgrade-list li {
  margin-bottom: var(--adaptive-space-sm);
}
.upgrade-list li:last-child {
  margin-bottom: 0;
}
.upgrade-button-gradient {
  background: var(--gradient-primary);
}
.upgrade-button-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
.upgrade-button-gradient:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}
.text-primary-color {
  color: var(--text-primary);
}
.checkbox-checked {
  color: var(--color-accent-primary);
}
.wifi-list {
  text-align: left;
  margin-left: 20px;
}
.wifi-note {
  font-size: 14px;
  margin-top: 10px;
}
.priority-high {
  color: red;
}
.priority-medium {
  color: orange;
}
.priority-low {
  color: green;
}
.margin-bottom-20 {
  margin-bottom: 20px;
}
.diagnostic-note {
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
}
.error-text {
  color: red;
}
/* Mobile Responsiveness for Side Popups */
@media (max-width: 768px) {
  .workflow-side-popup-container {
    width: 100%;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* 🔒 no page scrolling */
}
body {
  background: #1a1a1a;
  color: #fff;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}
/* Make sure React root also stretches */
#root {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Hide scrollbars but keep scrolling functionality */
::-webkit-scrollbar {
  display: none;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: transparent;
}
::-webkit-scrollbar-button {
  display: none;
}
/* Firefox */
* {
  scrollbar-width: none;
}
/* IE and Edge */
body {
  -ms-overflow-style: none;
}
.app-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  box-sizing: border-box;
  min-height: 0; /* Important for flexbox */
  overflow: hidden;
}
.header {
  text-align: center;
}
.header h1 {
  margin: 0 0 4px 0;
  font-size: 20px;
}
.header p {
  margin: 0;
  font-size: 12px;
  opacity: 0.8;
}
.workflow-step {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* important for flex children and no overflow */
  box-sizing: border-box;
  overflow: hidden;
}
.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.flow-node-id {
  font-size: 11px;
  opacity: 0.6;
}
.client-indicator {
  font-size: 11px;
  opacity: 0.7;
  color: #4dabf7;
  text-align: right;
}
.step-title {
  font-size: 16px;
  margin-bottom: 6px;
  color: #ffb74d;
}
.step-subtitle {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 4px;
  min-height: 16px;
}
.step-meta {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 6px;
  min-height: 14px;
}
.service-selection-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.service-option-btn {
  width: 90%;
  min-width: 180px; /* Dynamic width - adjusts to container */
  max-width: 280px; /* Prevent buttons from becoming too wide */
  min-height: 48px; /* Consistent button height - dynamic width */
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
   box-sizing: border-box;
   margin: 0 auto; /* Center the button horizontally */
 }
/* Responsive behavior for different screen sizes */
@media (max-width: 600px) {
  .service-option-btn {
    min-width: 160px; /* Smaller min-width on mobile */
    padding: 8px 10px; /* Tighter padding on mobile */
    min-height: 44px; /* Touch-friendly height on mobile */
  }
  
  .service-option-btn .button-text {
    font-size: 12px; /* Slightly smaller text on mobile */
  }
}
@media (min-width: 1200px) {
  .service-option-btn {
    max-width: none; /* Remove max-width restriction on very large screens */
    min-width: 200px; /* Allow more growth on large screens */
  }
}
.service-option-btn span {
  /* Legacy span styles - maintained for compatibility */
}
/* Universal Button Structure for All service-option-btn Elements */
.service-option-btn .button-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
}
.service-option-btn .button-main {
  display: flex;
  align-items: center;
  flex: 1 1 auto; /* Allow text area to grow and determine button width */
  min-width: 0;
  gap: 12px;
  overflow: hidden; /* Prevent text from affecting button width */
}
.service-option-btn .button-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-size: 16px;
}
.service-option-btn .button-text {
  flex: 1 1 auto; /* Allow text area to grow and determine button width */
  text-align: left;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Show "..." for long text that gets truncated */
  font-weight: 500;
  letter-spacing: 0.3px;
  font-size: 13px;
  /* Ensure uniform character spacing for multi-word labels */
  word-spacing: 0.05em;
}
.service-option-btn .button-star {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  opacity: 0.8;
  font-size: 14px;
}
.service-option-btn .button-star:hover {
  transform: scale(1.1);
  opacity: 1;
}
/* Fallback for buttons without button-content structure */
.service-option-btn > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Fallback for legacy buttons */
}
.service-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.service-option-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Enhanced Service Selection Styles */
.service-btn-content {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 12px;
}
.onu-info {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
}
.onu-status {
  color: #ffb74d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.status-left {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
}
.status-left i {
  font-size: 14px;
}
.status-right {
  color: #e0e0e0;
}
.service-option-btn.border-active {
  border: 1px solid rgba(40, 167, 69, 0.3);
  border-left: 3px solid #28a745;
}
.service-option-btn.border-suspended {
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-left: 3px solid #ffc107;
}
.service-option-btn.border-inactive {
  border: 1px solid rgba(108, 117, 125, 0.3);
  border-left: 3px solid #6c757d;
}
.service-option-btn.border-pending {
  border: 1px solid rgba(23, 162, 184, 0.3);
  border-left: 3px solid #17a2b8;
}
.service-option-btn.border-los {
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-left: 3px solid #dc3545;
}
.service-arrow {
  color: #999;
  font-size: 14px;
}
.text-green { color: #28a745; }
.text-red { color: #dc3545; }
.text-orange { color: #fd7e14; }
.text-grey { color: #6c757d; }
.text-blue { color: #007bff; }
.bottom-bar {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.bottom-nav-btn {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}
.bottom-nav-btn span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bottom-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.bottom-nav-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.bottom-nav-btn-secondary {
  background: rgba(108, 117, 125, 0.1);
  color: #ccc;
}
.bottom-nav-btn-primary {
  background: rgba(0, 123, 255, 0.1);
  color: #4dabf7;
}
.bottom-nav-btn.bottom-nav-btn-compact {
  justify-content: flex-start;
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-secondary {
  background: rgba(108, 117, 125, 0.1);
  color: #ccc;
}
.btn-primary {
  background: rgba(0, 123, 255, 0.1);
  color: #4dabf7;
}
.toast {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #28a745;
  padding: 8px 14px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
  font-size: 12px;
}
.toast.show {
  opacity: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  color: #f0f0f0;
  margin-bottom: 4px;
}
.pill.drawer {
  background: rgba(23, 162, 184, 0.2);
}
.pill.form {
  background: rgba(255, 193, 7, 0.18);
}
.pill.success {
  background: rgba(40, 167, 69, 0.2);
}
.muted {
  opacity: 0.8;
  font-size: 12px;
}
/* Drawer styles */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}
.drawer-content {
  width: 70%;
  max-width: 500px;
  height: 100%;
  background: rgba(50, 50, 50, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 16px;
  overflow-y: auto;
}
/* ONU Status Dashboard Styles */
.onu-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.onu-status-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
}
.onu-status-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.onu-status-icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.onu-status-count {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 4px;
}
.onu-status-label {
  font-size: 14px;
  opacity: 0.8;
}
.onu-status-info {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 12px;
}
.onu-status-info p {
  margin: 4px 0;
  opacity: 0.8;
}
.ws-status {
  float: right;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ws-status.connected {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}
.ws-status.disconnected {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}
/* Fiber Cuts Section */
.fiber-cuts-section {
  margin-top: 24px;
}
.fiber-cuts-section h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #fff;
  font-weight: 500;
}
.fiber-cuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.fiber-cut-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
}
.fiber-cut-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.fiber-cut-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.fiber-cut-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  opacity: 0.9;
}
.fiber-cut-count {
  font-size: 16px;
  font-weight: bold;
  color: #ff6b6b;
  margin-bottom: 12px;
}
.fiber-cut-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.onu-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: #ccc;
}
.onu-item.more {
  background: rgba(108, 117, 125, 0.2);
  color: #999;
}
/* Enhanced favorite button styles */
.service-option-btn.has-favorite {
  border-left: 3px solid #f1c40f;
  box-shadow: 0 2px 8px rgba(241, 196, 15, 0.15);
}
.service-option-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.service-option-btn i:last-child {
  /* Legacy - maintained for compatibility */
}
.service-option-btn.has-favorite .button-star {
  color: #f1c40f;
  opacity: 1;
}
.service-option-btn:not(.has-favorite) .button-star:hover {
  color: #f39c12;
  transform: scale(1.1);
}
/* Favorite indicator on buttons */
.service-option-btn.has-favorite {
  border-left: 3px solid #f1c40f;
}/* status-dashboard-module/status-dashboard.css */
/* Combined and prefixed CSS from styles.css and js/statusDashboard.css */

/* General Resets */
.status-dash {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Card Styles */
.status-dash-card {
  text-align: center;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #393939;
  color: #e0e0e0;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  width: 75px;
  height: 90px;
  margin: 0 6px;
  box-sizing: border-box;
}

.status-dash-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 10px;
  position: relative;
  gap: 12px;
}

.status-dash-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.status-dash-card h3 {
  font-size: 2em;
  margin: 0;
}

.status-dash-card p {
  margin-top: 10px;
  font-size: 1em;
  color: #b0b0b0;
}

/* Status Colors */
.status-dash-card.status-dash-los h3 { color: #dc3545; }
.status-dash-card.status-dash-power-fail h3 { color: #ffc107; }
.status-dash-card.status-dash-offline h3 { color: #17a2b8; }
.status-dash-card.status-dash-fiber-break h3 { color: #e74c3c; }
.status-dash-card.status-dash-online h3 { color: #28a745; }

/* Overlay & Container */
.status-dash-side-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.status-dash-popup-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100%;
  background-color: #333;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.status-dash-popup-header {
  color: #ddd;
  text-align: center;
  padding: 15px 0;
  margin: 0;
}

.status-dash-popup-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.status-dash-popup-footer {
  padding: 15px;
  background-color: #333;
}

/* Buttons */
.status-dash-job-status-popup-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  padding: 10px;
  background-color: #444;
  border: 1px solid #555;
  color: #ddd;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.status-dash-job-status-popup-button:hover {
  background-color: #555;
}

/* ONU Button */
.status-dash-onu-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background-color: #444;
  border: 1px solid #555;
  color: #ddd;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
  position: relative;
}

.status-dash-onu-button:hover {
  background-color: #555;
}

.status-dash-onu-button .status-dash-onu-left {
  display: flex;
  align-items: center;
}

.status-dash-onu-button .status-dash-onu-left i {
  margin-right: 10px;
}

.status-dash-onu-button:hover .status-dash-onu-left i {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

.status-dash-onu-button .status-dash-onu-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.status-dash-onu-button .status-dash-onu-duration {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #ddd;
}

.status-dash-rx-tx {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #ddd;
}

.status-dash-rx-tx .fas {
  font-size: 11px;
}

.status-dash-onu-button .status-dash-toggle-icon {
  margin-left: 10px;
  transition: transform 0.3s;
}

.status-dash-onu-button.status-dash-expanded .status-dash-toggle-icon {
  transform: rotate(180deg);
}

/* ONU Dropdown */
.status-dash-onu-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #3a3a3a;
  border: 1px solid #555;
  border-top: none;
  border-radius: 0 0 4px 4px;
  margin-bottom: 5px;
}

.status-dash-onu-dropdown.status-dash-expanded {
  max-height: 500px;
}

.status-dash-onu-dropdown-content {
  padding: 10px;
  color: #ddd;
}

.status-dash-onu-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.status-dash-onu-field-label {
  font-weight: bold;
  color: #bbb;
  text-align: left;
  flex: 1;
}

.status-dash-onu-field-value {
  text-align: right;
  flex: 1;
}

/* Suspended Banner */
.status-dash-suspended-banner {
  background-color: #d9534f;
  color: #fff;
  padding: 8px;
  text-align: center;
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ONU Mini Map */
.status-dash-onu-mini-map {
  height: 150px;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* No Data Message */
.status-dash-no-data-message {
  color: #ddd;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* Text Colors */
.status-dash-text-green { color: #28a745; }
.status-dash-text-red { color: #dc3545; }
.status-dash-text-orange { color: #ffc107; }
.status-dash-text-grey { color: #6c757d; }

/* Mini Map Marker */
.status-dash-mini-map-marker {
  margin: 0 !important;
}/* Global styles for CSR Workflow App */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  touch-action: manipulation; /* Prevent zoom gestures */
  -webkit-text-size-adjust: 100%; /* Prevent text scaling on zoom */
  -ms-text-size-adjust: 100%;
}

body {
  background: #1a1a1a;
  color: #fff;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

/* Make sure React root also stretches */
#root {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 70px; /* Account for fixed header */
}

/* Font Awesome CDN is included in index.html */

/* Basic button styles */
.btn {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font-size: 13px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  background: #545b62;
}

.btn-primary {
  background: #007bff;
  color: #fff;
}

.btn-primary:hover {
  background: #0056b3;
}

/* Utility classes */
.muted {
  opacity: 0.8;
  font-size: 12px;
}



/* Pill styles */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  color: #f0f0f0;
  margin-bottom: 4px;
}

.pill.drawer {
  background: rgba(23, 162, 184, 0.2);
}

.pill.form {
  background: rgba(255, 193, 7, 0.18);
}

.pill.success {
  background: rgba(40, 167, 69, 0.2);
}

/* Toast styles */
.toast {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #28a745;
  padding: 8px 14px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
  font-size: 12px;
}

.toast.show {
  opacity: 1;
}

/* Drawer overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

.drawer-content {
  width: 70%;
  max-width: 500px;
  height: 100%;
  background: rgba(50, 50, 50, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 16px;
  overflow-y: auto;
}/* Import CSS variables first */
/**
 * CSR Workflow - Minimalist Design System
 * Mobile-first, container-minimalist approach
 * Professional and clean aesthetic
 */
:root {
    /* ===== MOBILE-FIRST SPACING SYSTEM ===== */
    --space-xs: 8px;   /* Mobile touch targets, small gaps */
    --space-sm: 12px;  /* Component padding, medium gaps */
    --space-md: 16px;  /* Standard spacing, content padding */
    --space-lg: 24px;  /* Section spacing, large padding */
    --space-xl: 32px;  /* Page sections, major spacing */
    --space-2xl: 48px; /* Hero sections, maximum spacing */

    /* ===== TYPOGRAPHY SCALE ===== */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 28px;
    --text-4xl: 32px;

    /* ===== COLORS - MATCHING PROVIDED STYLES ===== */
     /* Backgrounds - From provided CSS */
      --bg-surface-0: #1a1a1a;  /* Dark gray */
    --bg-surface-1: #333333;  /* Medium gray */
    --bg-surface-2: #393939;  /* Card background */
    --bg-surface-3: #444444;  /* Button background */
    --bg-surface-4: #555555;  /* Button hover */
    --bg-surface-5: #6c757d;  /* Neutral */

    /* Text Colors - From provided CSS */
    --text-primary: #ffffff;   /* White */
    --text-secondary: #dddddd; /* Light gray */
    --text-muted: #b0b0b0;     /* Muted gray */
    --text-disabled: #999999;  /* Disabled */
    --text-accent: #e0e0e0;    /* Accent */
    --text-success: #28a745;   /* Green */
    --text-warning: #ffc107;   /* Yellow */
    --text-error: #dc3545;     /* Red */

    /* Status Colors - From provided CSS */
    --color-success: #28a745;   /* Green */
    --color-warning: #ffc107;   /* Yellow */
    --color-error: #dc3545;     /* Red */
    --color-info: #3498db;      /* Blue */
    --color-neutral: #6c757d;   /* Gray */

    /* Accent Colors - From provided CSS */
    --color-accent-primary: #3498db;    /* Blue */
    --color-accent-secondary: #17a2b8;  /* Teal */
    --color-accent-tertiary: #f4b400;   /* Yellow */

    /* Gradient backgrounds for special elements - from provided */
    --gradient-primary: linear-gradient(135deg, #3498db 0%, #17a2b8 100%);
    --gradient-success: linear-gradient(135deg, #28a745 0%, #77dd77 100%);
    --gradient-warning: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);

    /* ===== BORDERS & RADIUS ===== */
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* ===== SHADOWS - Luxurious ===== */
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 10px rgba(212, 175, 55, 0.3);

    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.2s ease-out;
    --transition-slow: 0.3s ease-out;

    /* ===== BACKWARD COMPATIBILITY ===== */
    /* Legacy variables for gradual migration */
    --color-critical: var(--color-error);
    --color-high: var(--color-warning);
    --workflow-bg-dark: #1c1c1c;
    --workflow-text-primary: var(--text-primary);
    --workflow-text-secondary: var(--text-secondary);
    --workflow-text-muted: var(--text-muted);
    --spacing-0: 0px;
    --spacing-1: var(--space-xs);
    --spacing-2: var(--space-sm);
    --spacing-3: var(--space-md);
    --spacing-4: var(--space-lg);
    --spacing-5: var(--space-xl);
    --spacing-6: var(--space-2xl);
    --radius-sm: var(--border-radius-sm);
    --radius-md: var(--border-radius-md);
    --radius-lg: var(--border-radius-lg);
    --shadow-sm: var(--shadow-subtle);
    --shadow-md: var(--shadow-soft);
    --shadow-lg: var(--shadow-medium);
    --transition-fast: var(--transition-fast);
    --transition-normal: var(--transition-normal);

    /* ===== ORIENTATION-SPECIFIC ADJUSTMENTS ===== */
    /* Portrait mode - more compact spacing */
    @media (orientation: portrait) {
        --space-portrait-xs: 6px;
        --space-portrait-sm: 10px;
        --space-portrait-md: 14px;
        --space-portrait-lg: 20px;
        --space-portrait-xl: 28px;
        --space-portrait-2xl: 40px;

        --text-portrait-sm: 13px;
        --text-portrait-base: 15px;
        --text-portrait-lg: 17px;
        --text-portrait-xl: 21px;
    }

    /* Landscape mode - more spacious */
    @media (orientation: landscape) {
        --space-landscape-xs: 10px;
        --space-landscape-sm: 14px;
        --space-landscape-md: 18px;
        --space-landscape-lg: 28px;
        --space-landscape-xl: 36px;
        --space-landscape-2xl: 52px;

        --text-landscape-sm: 15px;
        --text-landscape-base: 17px;
        --text-landscape-lg: 21px;
        --text-landscape-xl: 25px;
    }
}
/* Import form validation styles */
/* Form Validation Styles - Adapted for Dark Theme */
:root {
  --validation-error: #ff5252;
  --validation-success: #4caf50;
  --input-bg: #444;
  --input-border: #555;
  --text-primary: #ddd;
  --text-secondary: #bbb;
}
/* Form Group Container */
.form-group {
  margin-bottom: 16px;
  position: relative;
  width: 100%;
  transition: all 0.3s ease;
}
/* Input Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
  padding: 12px 12px 12px 40px;
  width: 100%;
  background-color: #444;
  border: 1px solid #555;
  border-radius: 5px;
  color: #ddd;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
/* Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.08);
}
/* Icons in Inputs */
.form-group .field-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 16px;
  transition: color 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
/* Tooltips */
.form-group .tooltip {
  position: absolute;
  top: -45px;
  left: 0;
  width: 100%;
  background-color: var(--validation-tooltip-bg);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  z-index: 10;
  display: none;
  border: 1px solid var(--validation-tooltip-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}
.form-group input:focus + .tooltip,
.form-group select:focus + .tooltip,
.form-group textarea:focus + .tooltip {
  display: block;
  opacity: 1;
}
/* Validation States */
input:focus:valid,
select:focus:valid,
textarea:focus:valid,
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: #4caf50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
  animation: successGlow 0.5s ease-in-out;
}
input:focus:invalid,
select:focus:invalid,
textarea:focus:invalid,
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ff5252;
  box-shadow: 0 0 8px rgba(255, 82, 82, 0.6);
  animation: errorGlow 0.5s ease-in-out;
}
.form-group.error i {
  color: #ff5252;
}
.form-group.success i {
  color: #4caf50;
}
@keyframes successGlow {
  0% { box-shadow: 0 0 0 rgba(76, 175, 80, 0); }
  50% { box-shadow: 0 0 12px rgba(76, 175, 80, 0.8); }
  100% { box-shadow: 0 0 8px rgba(76, 175, 80, 0.6); }
}
@keyframes errorGlow {
  0% { box-shadow: 0 0 0 rgba(255, 82, 82, 0); }
  50% { box-shadow: 0 0 12px rgba(255, 82, 82, 0.8); }
  100% { box-shadow: 0 0 8px rgba(255, 82, 82, 0.6); }
}
/* Error Message */
.error-message {
  color: #ff5252;
  font-size: 12px;
  margin-top: 5px;
  display: none;
  animation: fadeIn 0.3s;
}
.form-group.error .error-message {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Success Message */
.success-message {
  color: #4caf50;
  font-size: 12px;
  margin-top: 5px;
  display: none;
  animation: fadeIn 0.3s;
}
.form-group.success .success-message {
  display: block;
}
/* Button Styles */
.form-group button.submit-btn,
.form-group button.back-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 12px;
  width: 48%;
  cursor: pointer;
  font-size: 14px;
  margin: 5px 0;
  transition: all 0.3s ease;
}
.form-group button.submit-btn:hover,
.form-group button.back-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--input-focus-border);
  transform: translateY(-1px);
}
.form-group button.submit-btn:disabled,
.form-group button.back-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
/* Button Group */
.button-group {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  gap: 4px;
}
/* File Input Specific */
.form-group input[type="file"] {
  padding: 8px 12px 8px 40px;
  cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  color: var(--text-primary);
  padding: 4px 8px;
  margin-right: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}
.form-group input[type="file"]::file-selector-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
/* Textarea Specific */
.form-group textarea {
  resize: vertical;
  min-height: 80px;
  padding-top: 12px;
  padding-bottom: 12px;
}
/* Select Specific */
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}
.form-group select:focus {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}
/* Number Input Specific */
.form-group input[type="number"] {
  -moz-appearance: textfield;
}
.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Password Strength Indicator */
.password-strength {
  margin-top: 4px;
  height: 4px;
  background-color: var(--input-border);
  border-radius: 2px;
  overflow: hidden;
}
.password-strength .strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.password-strength.weak .strength-bar {
  width: 33%;
  background-color: var(--validation-error);
}
.password-strength.medium .strength-bar {
  width: 66%;
  background-color: var(--validation-warning);
}
.password-strength.strong .strength-bar {
  width: 100%;
  background-color: var(--validation-success);
}
/* Responsive Design */
@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .button-group {
    flex-direction: column;
  }

  .button-group button {
    width: 100%;
    margin: 2px 0;
  }

  .form-group .tooltip {
    position: static;
    margin-bottom: 8px;
    width: auto;
    display: block;
    opacity: 1;
  }

  .form-group input:focus + .tooltip {
    display: block;
  }
}
/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .form-group input,
  .form-group select,
  .form-group textarea,
  .form-group button,
  .error-message,
  .success-message,
  .form-group .field-icon {
    transition: none;
  }

  .error-message,
  .success-message {
    animation: none;
  }
}
/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .form-group.valid input,
  .form-group.valid select,
  .form-group.valid textarea {
    border-width: 2px;
  }

  .form-group.invalid input,
  .form-group.invalid select,
  .form-group.invalid textarea {
    border-width: 2px;
  }
}
/* Dark Mode Specific (already dark theme) */
/* These styles work well with the existing dark theme */
/* Focus Visible for Better Accessibility */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--validation-info);
  outline-offset: 2px;
}
/* General Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Body and Containers */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* 🔒 no page scrolling */
}
body {
    font-family: 'Roboto', sans-serif;
    font-size: var(--text-base);
    background: var(--bg-surface-0);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}
/* Login Container */
.login-container, .flowContainer {
    background: rgba(50, 50, 50, 0.9);
    padding: var(--spacing-5);
    border-radius: var(--radius-lg);
    color: #fff;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
}
/* Responsive adjustments */
@media (max-width: 600px) {
    .login-container, .flowContainer {
        padding: var(--spacing-3);
        min-height: 100vh;
    }
}
/* Portrait orientation optimizations for mobile elegance */
/* Form Elements */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: var(--spacing-3);
    margin: var(--spacing-3) 0;
    border: 1px solid #444;
    border-radius: var(--radius-sm);
    background: #333;
    color: white;
}
/* Form-specific button styling - doesn't override component buttons */
.login-container button,
.flowContainer button {
    width: 100%;
    padding: var(--spacing-3);
    margin-top: var(--spacing-3);
    background-color: #444;
    border: 1px solid #555;
    color: #ddd;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-normal);
}
.login-container button:hover,
.flowContainer button:hover {
    background-color: #555;
}
/* Containers */
#jobsContainer, #detailsContainer {
    margin-top: 20px;
}
/* Job Details Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #555;
    padding: 8px;
    color: #ddd;
}
th {
    background-color: #333;
}
/* Job Details Side Panel */
.job-details-side {
    position: fixed;
    right: -400px; /* Start offscreen */
    top: 0;
    width: 400px;
    height: 100vh;
    background: rgba(40, 40, 40, 0.98);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
}
.job-details-side.active {
    right: 0;
}
.job-details-side .details-header {
    padding: 20px;
    border-bottom: 1px solid #444;
}
.job-details-side .details-content {
    padding: 20px;
}
.job-details-side .details-content p {
    margin: 10px 0;
    color: white;
}
.close-button {
    width: 100%;
    padding: 10px;
    background: #333;
    border: 1px solid #444;
    color: white;
    cursor: pointer;
    margin-top: 20px;
}
.close-button:hover {
    background: #444;
}
/* Details Table */
.details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.details-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}
.details-table td:first-child {
    width: 35%;
    color: rgb(150, 200, 255);
}
.details-table td:last-child {
    color: rgb(200, 200, 200);
}
/* Horizontal Rule */
hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}
/* Back button */
.back-button {
    margin-top: 10px;
}
/* Job Button */
.job-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-top: 10px;
    background-color: #444;
    border: 1px solid #555;
    color: #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.job-button:hover {
    background-color: #555;
}
.job-title {
    flex: 1;
    text-align: left;
}
.job-distance {
    text-align: right;
}
/* Troubleshoot Table */
.troubleshoot-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.troubleshoot-table td {
    padding: 8px;
    border-bottom: 1px solid #333;
    text-align: left;
}
.troubleshoot-table td:first-child {
    color: rgb(150, 200, 255);
    width: 40%;
}
.troubleshoot-table td:last-child {
    color: #eee;
}
/* Troubleshoot Container */
.troubleshoot-container {
    scrollbar-width: none;
}
.troubleshoot-container::-webkit-scrollbar {
    display: none;
}
.troubleshoot-container {
    overflow-y: scroll;
}
/* Icon Colors */
.details-table i.fas.fa-exclamation-triangle {
    color: #ff6961 !important;
}
.details-table i.fas.fa-plug {
    color: #ffb347 !important;
}
.details-table i.fas.fa-ban {
    color: #add8e6 !important;
}
.details-table i.fas.fa-question {
    color: #d3d3d3 !important;
}
/* Text Colors */
.text-green {
    color: #28a745;
}
.text-red {
    color: #dc3545;
}
.text-orange {
    color: #fd7e14;
}
.text-grey {
    color: #6c757d;
}
/* Signal Bars */
.signal-bar {
    display: inline-block;
    width: 5px;
    height: 12px;
    margin-right: 2px;
}
.critical .signal-bar {
    background-color: #dc3545;
}
.warning .signal-bar {
    background-color: #fd7e14;
}
.very-good .signal-bar {
    background-color: #28a745;
}
/* Flow Container HR */
.flowContainer hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    margin: 20px 0;
}
/* Particles.js */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
/* Cards */
.card {
    text-align: center;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    background: linear-gradient(135deg, #393939 0%, #333333 100%);
    color: #e0e0e0;
    cursor: pointer;
    padding: var(--spacing-3);
    border-radius: var(--radius-lg);
    width: 75px;
    height: 90px;
    margin: 0 var(--spacing-2);
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}
.status-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 10px;
    position: fixed;
    top: 0;
    z-index: 1000;
    gap: 12px;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card h3 {
    font-size: 2em;
    margin: 0;
}
.card p {
    margin-top: 10px;
    font-size: 1em;
    color: #b0b0b0;
}
/* Status Colors */
.card.open h3 { color: #ff6f61; }
.card.in-progress h3 { color: #f4b400; }
.card.los h3 { color: #dc3545; }
.card.power-fail h3 { color: #ffc107; }
.card.offline h3 { color: #17a2b8; }
.card.online h3 { color: #28a745; }
/* Responsive */
@media (max-width: 768px) {
    .summary-content {
        max-width: 100%;
    }
}
/* Side Popup */
.side-popup {
    z-index: 999;
}
.status-row, .flowContainer {
    z-index: 100;
}
/* Graph Image */
.graph-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.graph-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    border: 12px solid #f3f3f3;
    border-top: 12px solid #3498db;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1.5s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Client Search */
#clientSearch input {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #333;
    color: #fff;
}
#clientSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #333;
    border: 1px solid #444;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 101;
}
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #444;
}
.suggestion-item:hover {
    background-color: #444;
}
/* Side Popup Overlay */
.side-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.popup-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background-color: #333;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    font-family: sans-serif;
    color: #ddd;
}
.popup-header {
    padding: 20px;
    border-bottom: 1px solid #444;
    text-align: center;
}
.popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
}
.popup-row-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.popup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.popup-row-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 60px;
    height: 60px;
    border: 1px solid #555;
    overflow: hidden;
}
.popup-footer {
    padding: 10px 20px;
    border-top: 1px solid #444;
    background-color: #333;
    display: flex;
    justify-content: space-between;
}
.styled-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #444;
    border: 1px solid #555;
    color: #ddd;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
    font-family: sans-serif;
}
.styled-button:hover {
    background-color: #555;
}
.job-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.lightbox-image {
    max-width: 90%;
    max-height: 90%;
}
.lightbox-scroll-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 20px;
    background-color: #222;
    max-width: 80%;
    max-height: 80%;
}
.lightbox-thumb {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border: 2px solid #fff;
    cursor: pointer;
}
.preview-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 1px 5px;
    border-radius: 10px;
}
.preview-fallback {
}
.preview-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
}
/* Alert Button */
#alertButton {
    color: #ff4d4d;
    border: 2px solid #ff4d4d;
    background-color: transparent;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    animation: blinkText 1s step-start infinite;
    transition: all 0.2s ease-in-out;
}
#alertButton:hover {
    background-color: #ff4d4d;
    color: white;
}
@keyframes blinkText {
    50% {
        opacity: 0;
    }
}
.custom-alert {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-alert-content {
    background: #fff;
    border: 3px solid #ff4d4d;
    padding: 30px 40px;
    text-align: center;
    font-weight: bold;
    color: #ff4d4d;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.7);
    animation: pulse 1s infinite;
}
.custom-alert-content button {
    margin-top: 15px;
    background-color: #ff4d4d;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
/* Suggestions Dropdown */
#clientSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #333;
    border: 1px solid #444;
    border-top: none;
    overflow-y: auto;
    display: none;
    z-index: 101;
    border-radius: 5px;
}
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #444;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}
.suggestion-item:hover {
    background-color: #444;
}
.suggestion-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.client-status i {
    font-size: 14px;
}
.client-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.client-last-status-change {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: auto;
}
/* Bottom Marquee */
#bottomMarquee {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}
.marquee {
    width: 100%;
    color: white;
    background-color: #f44336;
    padding: 15px 0;
    font-size: 18px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}
.marquee p {
    display: inline-block;
    animation: scroll-text 10s linear infinite;
    margin: 0;
}
@keyframes scroll-text {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

