/* /Components/Pages/Accounts/Accounts.razor.rz.scp.css */
/* Accounts Page Styling */
.container-fluid[b-m41w86zyz9] {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Header Styling */
.accounts-header[b-m41w86zyz9] {
  padding-bottom: 7px;
  /* margin-bottom: 1rem; */
  position: relative;
}
.account-list-sidebar[b-m41w86zyz9] {
  background-color: #FAFAFA;
}
/* Full-width border using pseudo-element */
.accounts-header[b-m41w86zyz9]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 0;
  height: 1px;
  background-color: #E4E4E7;
  width: 100vw;
  margin-left: -50vw;
}

.accounts-header h5[b-m41w86zyz9] {
  color: #1f2937;
  font-weight: 600;
}

/* Company Sidebar */
.company-sidebar[b-m41w86zyz9] {
  border-right: 1px solid #e9ecef;
  height: 100vh;
  position: sticky;
  padding-right: 7px;
  background-color: #fafafa;
  padding-top: 20px;
}

.company-header h6[b-m41w86zyz9] {
  color: #495057;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

/* Company Search */
.company-search .input-group-text[b-m41w86zyz9] {
  border-color: #ced4da;
  color: var(--secondary);
  background-color: var(--white);
}

.company-search .form-control[b-m41w86zyz9] {
  border-color: #ced4da;
  font-size: 0.875rem;
}

.company-search .form-control:focus[b-m41w86zyz9] {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary), 0.25);
}

.company-search .form-control[b-m41w86zyz9]::placeholder {
  color: #adb5bd;
  font-style: italic;
}

.company-list[b-m41w86zyz9] {
  max-height: 70vh;
  /* overflow-y: auto; */
}

.company-item[b-m41w86zyz9] {
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.125rem;
  border: 1px solid transparent;
}

.company-item:hover[b-m41w86zyz9] {
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.company-item.selected[b-m41w86zyz9] {
  background-color: #e3f2fd;
  border-color: var(--primary);
  /* box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.1); */
}

.company-item-content[b-m41w86zyz9] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.company-icon[b-m41w86zyz9] {
  font-size: 0.875rem;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.company-details[b-m41w86zyz9] {
  flex: 1;
  min-width: 0;
}

.company-name[b-m41w86zyz9] {
  font-weight: 500;
  font-size: 0.875rem;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Page Header */
h1[b-m41w86zyz9] {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Selected Company Display */
.selected-company-display[b-m41w86zyz9] {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.selected-company-name[b-m41w86zyz9] {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-right: 0.5rem;
}

.selected-company-sub[b-m41w86zyz9] {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
}

/* Tabs Section */
.nav-tabs[b-m41w86zyz9] {
  border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-item[b-m41w86zyz9] {
  margin-bottom: -2px;
}

.nav-tabs .nav-link[b-m41w86zyz9] {
  border: none;
  background: none;
  color: #6c757d;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.nav-tabs .nav-link:hover[b-m41w86zyz9] {
  /*        color: #009688;*/
  background-color: #f8f8f8;
  border-color: transparent;
}

.nav-tabs .nav-link.active[b-m41w86zyz9] {
  color: #009688;
  background-color: #f8f8f8;
  border: 1px solid #dee2e6;
  font-weight: 600;
  border-bottom: none;
}

.nav-tabs .nav-link i[b-m41w86zyz9] {
  font-size: 0.875rem;
}
.accounts-tab-content[b-m41w86zyz9] {
  padding: 1rem;
  background-color: #F8F8F8;
}
/* Search Input Group */
.input-group .form-control[b-m41w86zyz9] {
  border-color: #ced4da;
  font-size: 0.95rem;
}

.input-group .form-control:focus[b-m41w86zyz9] {
  border-color: #009688;
  box-shadow: none;
}

.input-group-text[b-m41w86zyz9] {
  border-color: #ced4da;
  color: #6c757d;
}

/* Search Row Styling */
.d-flex.gap-2[b-m41w86zyz9] {
  align-items: center;
}

.d-flex.gap-2 .btn[b-m41w86zyz9] {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.d-flex.gap-2 .btn i[b-m41w86zyz9] {
  font-size: 0.875rem;
}

/* Select All and Pagination Info */
.pagination-info[b-m41w86zyz9] {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

.form-check[b-m41w86zyz9] {
  margin-bottom: 0;
}

.form-check-label[b-m41w86zyz9] {
  font-size: 0.95rem;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
}

.form-check-input[b-m41w86zyz9] {
  cursor: pointer;
}

.form-check-input:focus[b-m41w86zyz9] {
  border-color: #009688;
  box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.25);
}

.form-check-input:checked[b-m41w86zyz9] {
  background-color: #009688;
  border-color: #009688;
}

/* Table Styling */
.table[b-m41w86zyz9] {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table thead th[b-m41w86zyz9] {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  padding: 12px 16px;
  white-space: nowrap;
  user-select: none;
}

.table thead th[role="button"][b-m41w86zyz9] {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.table thead th[role="button"]:hover[b-m41w86zyz9] {
  background-color: #e9ecef;
}

.table tbody td[b-m41w86zyz9] {
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:last-child td[b-m41w86zyz9] {
  border-bottom: none;
}

.table tbody tr:hover[b-m41w86zyz9] {
  background-color: #f8f9fa;
}

.table tbody tr.table-active[b-m41w86zyz9] {
  background-color: #e8f5e8;
}

/* System Logo and Name Styling */
.system-name[b-m41w86zyz9] {
  font-size: 0.9rem;
}

.system-name.text-primary[b-m41w86zyz9] {
  color: #007bff !important;
}

.system-name.text-success[b-m41w86zyz9] {
  color: #28a745 !important;
}

.system-name.text-info[b-m41w86zyz9] {
  color: #17a2b8 !important;
}

.system-name.text-warning[b-m41w86zyz9] {
  color: #ffc107 !important;
  filter: brightness(0.8);
}

.system-name.text-danger[b-m41w86zyz9] {
  color: #dc3545 !important;
}

/* System Logo Styling */
.table td img[b-m41w86zyz9] {
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

/* Status Badges */
.badge[b-m41w86zyz9] {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25em 0.5em;
  border-radius: 0.375rem;
}

/* Filled badges */
.badge.bg-success[b-m41w86zyz9] {
  background-color: #28a745 !important;
  color: white;
}

.badge.bg-warning[b-m41w86zyz9] {
  background-color: #ffc107 !important;
  color: #212529;
}

.badge.bg-light[b-m41w86zyz9] {
  background-color: #e9ecef !important;
  color: #495057;
  border: 1px solid #ced4da;
}

/* Outline badges */
.badge.border-success[b-m41w86zyz9] {
  background-color: transparent !important;
  border: 1.5px solid #28a745 !important;
}

.badge.text-success[b-m41w86zyz9] {
  color: #28a745 !important;
}

.badge.border-warning[b-m41w86zyz9] {
  background-color: transparent !important;
  border: 1.5px solid #ffc107 !important;
}

.badge.text-warning[b-m41w86zyz9] {
  color: #856404 !important;
}

.badge.border-secondary[b-m41w86zyz9] {
  background-color: transparent !important;
  border: 1.5px solid #6c757d !important;
}

.badge.text-secondary[b-m41w86zyz9] {
  color: #6c757d !important;
}

/* System Badges - Outline Style */
.badge-outline-system[b-m41w86zyz9] {
  background-color: transparent !important;
  border: 1.5px solid;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
}

.badge-sap[b-m41w86zyz9] {
  border-color: #007bff;
  color: #007bff;
}

.badge-tripletex[b-m41w86zyz9] {
  border-color: #28a745;
  color: #28a745;
}

.badge-poweroffice[b-m41w86zyz9] {
  border-color: #17a2b8;
  color: #17a2b8;
}

.badge-visma[b-m41w86zyz9] {
  border-color: #ffc107;
  color: #856404;
}

.badge-fortnox[b-m41w86zyz9] {
  border-color: #dc3545;
  color: #dc3545;
}

.badge-freshbooks[b-m41w86zyz9] {
  border-color: #6f42c1;
  color: #6f42c1;
}

.badge-oracle[b-m41w86zyz9] {
  border-color: #fd7e14;
  color: #fd7e14;
}

.badge-default[b-m41w86zyz9] {
  border-color: #6c757d;
  color: #6c757d;
}

/* Dropdown Actions */
.dropdown-toggle[b-m41w86zyz9] {
  border: 1px solid #ced4da;
  background-color: white;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}

.dropdown-toggle:hover[b-m41w86zyz9],
.dropdown-toggle:focus[b-m41w86zyz9] {
  background-color: #f8f9fa;
  border-color: #adb5bd;
}

.dropdown-menu[b-m41w86zyz9] {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  font-size: 0.875rem;
}

.dropdown-item[b-m41w86zyz9] {
  padding: 0.5rem 1rem;
  color: #495057;
}

.dropdown-item:hover[b-m41w86zyz9],
.dropdown-item:focus[b-m41w86zyz9] {
  background-color: #f8f9fa;
  color: #16181b;
}

.dropdown-item.text-danger:hover[b-m41w86zyz9] {
  background-color: #f5c6cb;
  color: #721c24;
}

.dropdown-divider[b-m41w86zyz9] {
  margin: 0.5rem 0;
}

/* Pagination Styling */
.pagination[b-m41w86zyz9] {
  justify-content: center;
}

.page-link[b-m41w86zyz9] {
  color: #009688;
  border-color: #dee2e6;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

.page-link:hover[b-m41w86zyz9] {
  background-color: #e9ecef;
  border-color: #adb5bd;
  color: #00796b;
}

.page-item.active .page-link[b-m41w86zyz9] {
  background-color: #009688;
  border-color: #009688;
  color: white;
}

.page-item.disabled .page-link[b-m41w86zyz9] {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
}

/* Loading Overlay */
.spinner-border[b-m41w86zyz9] {
  width: 2rem;
  height: 2rem;
}

/* Search Highlighting */
mark[b-m41w86zyz9] {
  background-color: #fff3cd !important;
  color: #856404;
  padding: 0.1em 0.2em;
  border-radius: 0.2em;
}

/* Custom Button Styling */
.btn-primary[b-m41w86zyz9] {
  background-color: #009688;
  border-color: #009688;
  font-weight: 500;
}

.btn-primary:hover[b-m41w86zyz9] {
  background-color: #00796b;
  border-color: #00695c;
}

.btn-outline-secondary[b-m41w86zyz9] {
  color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-secondary:hover[b-m41w86zyz9] {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

/* Improve visual hierarchy */
.form-control[b-m41w86zyz9]::placeholder {
  color: #adb5bd;
  font-style: italic;
}

/* Company sidebar scrollbar */
.company-list[b-m41w86zyz9]::-webkit-scrollbar {
  width: 6px;
}

.company-list[b-m41w86zyz9]::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.company-list[b-m41w86zyz9]::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.company-list[b-m41w86zyz9]::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}
.actions-button[b-m41w86zyz9] {
  border: none !important;
}
.actions-button:hover[b-m41w86zyz9] {
  background: none;
  color: #6c757d;
}
/* Responsive Design */
@media (max-width: 768px) {
  .accounts-content[b-m41w86zyz9] {
    padding-left: 0;
    margin-top: 1rem;
  }

  .company-sidebar[b-m41w86zyz9] {
    margin-bottom: 1rem;
    position: static;
  }

  .company-list[b-m41w86zyz9] {
    max-height: 300px;
  }

  .table-responsive[b-m41w86zyz9] {
    border-radius: 0.375rem;
  }

  .table thead th[b-m41w86zyz9],
  .table tbody td[b-m41w86zyz9] {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .badge[b-m41w86zyz9] {
    font-size: 0.7rem;
    padding: 0.2em 0.4em;
  }

  .btn[b-m41w86zyz9] {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Table responsive improvements */
@media (max-width: 992px) {
  .table td:nth-child(8)[b-m41w86zyz9], /* Tags column */
    .table th:nth-child(8)[b-m41w86zyz9] {
    display: none;
  }
}

@media (max-width: 768px) {
  .table td:nth-child(4)[b-m41w86zyz9], /* Account Type column */
    .table th:nth-child(4)[b-m41w86zyz9],
    .table td:nth-child(6)[b-m41w86zyz9], /* Mapping Status column */
    .table th:nth-child(6)[b-m41w86zyz9] {
    display: none;
  }
}
/* /Components/Pages/Accounts/MasterChartOfAccounts.razor.rz.scp.css */
.account-node:hover .action-buttons[b-a01yu8xf6o] {
    opacity: 1 !important;
}

.account-node:hover[b-a01yu8xf6o] {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border-color: #94A3B8 !important;
}

.node-indicator[b-a01yu8xf6o] {
    width: 40px;
    display: flex;
    justify-content: center;
}

.account-info[b-a01yu8xf6o] {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}

.account-number[b-a01yu8xf6o] {
    background: #EFF6FF;
    color: var(--blue);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.account-pills[b-a01yu8xf6o] {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.pill[b-a01yu8xf6o] {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Statement Pills */
.pill-statement.pill-balancesheet[b-a01yu8xf6o] {
    background: #DBEAFE;
    color: var(--blue);
}

.pill-statement.pill-incomestatement[b-a01yu8xf6o] {
    background: #D1FAE5;
    color: var(--primary);
}

.pill-statement.pill-oci[b-a01yu8xf6o] {
    background: #FEF3C7;
    color: var(--brown);
}

/* Balance Pills */
.pill-balance.pill-debit[b-a01yu8xf6o] {
    background: #FEE2E2;
    color: var(--danger);
}

.pill-balance.pill-credit[b-a01yu8xf6o] {
    background: #D1FAE5;
    color: var(--primary);
}

/* Section Pills */
.pill-section[b-a01yu8xf6o] {
    background: #E0E7FF;
    color: var(--blue);
}

/* Contra Pills */
.pill-contra[b-a01yu8xf6o] {
    background: #FED7AA;
    color: var(--orange);
}

/* Cash Flow Pills */
.pill-cashflow[b-a01yu8xf6o] {
    background: #F3E8FF;
    color: var(--purple);
}

.account-name[b-a01yu8xf6o] {
    font-weight: 500;
    color: #1E293B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-buttons[b-a01yu8xf6o] {
    display: flex;
    gap: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

/* Desktop and larger tablets */
@media (min-width: 900px) {
    .responsive-container[b-a01yu8xf6o] {
        max-width: 100%;
    }

    .responsive-paper[b-a01yu8xf6o] {
        padding: 5px 20px !important;
    }
}

/* Tablets */
@media (min-width: 600px) and (max-width: 899px) {
    .responsive-container[b-a01yu8xf6o] {
        max-width: 100%;
        padding: 0 16px;
    }

    .responsive-paper[b-a01yu8xf6o] {
        padding: 20px !important;
    }

    .account-node[b-a01yu8xf6o] {
        gap: 8px !important;
    }

    .account-info[b-a01yu8xf6o] {
        gap: 8px !important;
    }
}

/* Mobile devices */
@media (max-width: 599px) {
    .responsive-container[b-a01yu8xf6o] {
        padding: 0 8px;
    }

    .responsive-paper[b-a01yu8xf6o] {
        padding: 12px !important;
    }

    .account-node-wrapper[b-a01yu8xf6o] {
        margin-left: 0 !important;
    }

    .account-node[b-a01yu8xf6o] {
        flex-wrap: wrap;
        gap: 8px !important;
        padding: 12px !important;
    }

    .expand-button[b-a01yu8xf6o], .node-indicator[b-a01yu8xf6o] {
        width: 32px;
        min-width: 32px;
    }

    .account-info[b-a01yu8xf6o] {
        flex: 1;
        min-width: calc(100% - 40px);
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .account-number[b-a01yu8xf6o] {
        font-size: 0.75rem;
        padding: 2px 8px;
    }

    .account-name[b-a01yu8xf6o] {
        font-size: 0.875rem;
        white-space: normal !important;
    }

    .account-pills[b-a01yu8xf6o] {
        gap: 3px;
    }

    .pill[b-a01yu8xf6o] {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .action-buttons[b-a01yu8xf6o] {
        width: 100%;
        justify-content: flex-end;
        opacity: 1 !important;
        gap: 6px;
    }

    .action-buttons .mud-button-root[b-a01yu8xf6o] {
        min-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
        padding: 4px !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .responsive-paper[b-a01yu8xf6o] {
        padding: 8px !important;
    }

    .account-node[b-a01yu8xf6o] {
        padding: 8px !important;
    }

    .account-number[b-a01yu8xf6o] {
        font-size: 0.7rem;
    }

    .account-name[b-a01yu8xf6o] {
        font-size: 0.8rem;
    }

    .action-buttons[b-a01yu8xf6o] {
        gap: 4px;
    }
}

/* Delete button styling */
.delete-action-button[b-a01yu8xf6o],
.action-buttons .delete-action-button[b-a01yu8xf6o] {
    color: var(--danger) !important;
    border-color: var(--danger) !important;
}

.delete-action-button:hover[b-a01yu8xf6o],
.action-buttons .delete-action-button:hover[b-a01yu8xf6o] {
    background-color: rgba(215, 69, 66, 0.1) !important;
    border-color: var(--danger) !important;
    color: var(--danger) !important;
}

/* /Components/Pages/Companies/AddEdit/AddCompanyDetails.razor.rz.scp.css */
/* Company Details Form Styling */
.company-details-form[b-fkt11iglts] {
    max-width: 100%;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.modern-label[b-fkt11iglts] {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.modern-input[b-fkt11iglts] {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: var(--white);
}

.modern-input:focus[b-fkt11iglts] {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.modern-input[b-fkt11iglts]::placeholder {
    color: #9ca3af;
}

.modern-select[b-fkt11iglts] {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.modern-select:focus[b-fkt11iglts] {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Logo Upload Styling */
.upload-label[b-fkt11iglts]{
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    border: 1px solid var(--primary);
}

    .upload-label:hover[b-fkt11iglts] {
        background-color: var(--primary);
        color: var(--white);
    }

.uploaded-file-display[b-fkt11iglts] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary);
    min-width: auto;
    /* background-color: #f8f9fa; */
}

.file-name[b-fkt11iglts] {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.btn-remove-file[b-fkt11iglts] {
    background: none;
    border: none;
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.btn-remove-file:hover[b-fkt11iglts] {
    background-color: #fee2e2;
    color: var(--danger);
}

.btn-remove-file i[b-fkt11iglts] {
    font-size: 0.875rem;
}

/* Company Logo (preview/display) */
.company-logo[b-fkt11iglts] {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

/* Logo Preview Container */
.logo-preview-container[b-fkt11iglts] {
    position: relative;
    display: inline-block;
}

.preview-image[b-fkt11iglts] {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
}

/* Remove Button Overlay */
.btn-remove-overlay[b-fkt11iglts] {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    background-color: var(--danger);
    border: 1px solid var(--danger);
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-overlay:hover[b-fkt11iglts] {
    background-color: var(--danger);
    border-color: var(--danger);
    transform: scale(1.1);
}

.btn-remove-overlay i[b-fkt11iglts] {
    font-size: 12px;
}

/* Form Row Styling */
.row.g-3[b-fkt11iglts] {
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-input[b-fkt11iglts],
    .modern-select[b-fkt11iglts] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .upload-label[b-fkt11iglts] {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .logo-upload-container[b-fkt11iglts] {
        padding: 0.75rem;
    }
}

/* Additional form styling */
.text-muted[b-fkt11iglts] {
    color: var(--secondary) !important;
    font-size: 0.8rem;
}

/* Focus states for accessibility */
.modern-input:focus[b-fkt11iglts],
.modern-select:focus[b-fkt11iglts] {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

/* Error states (for future use) */
.modern-input.is-invalid[b-fkt11iglts],
.modern-select.is-invalid[b-fkt11iglts] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.modern-input.is-invalid:focus[b-fkt11iglts],
.modern-select.is-invalid:focus[b-fkt11iglts] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}
.btn.disabled[b-fkt11iglts], .btn:disabled[b-fkt11iglts], fieldset:disabled .btn[b-fkt11iglts] {
    pointer-events: none;
    background-color: #576574!important;
    border-color: #576574!important;
    opacity: 0.5;
    text-decoration: none!important;
}

/* Hide number input spinners */
input[type=number][b-fkt11iglts]::-webkit-inner-spin-button,
input[type=number][b-fkt11iglts]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number][b-fkt11iglts] {
    -moz-appearance: textfield;
}
/* /Components/Pages/Companies/AddEdit/AddEditCompany.razor.rz.scp.css */
/* Add Company Modal Styling */
.modern-modal[b-mttwebeaw6] {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}


.modal-title[b-mttwebeaw6] {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-body[b-mttwebeaw6] {
    padding: 1.5rem 2rem;
}

.modal-footer[b-mttwebeaw6] {
    padding: 0 1.5rem 0.5rem;
    justify-content: space-between;
}

/* Step Progress Indicator */
.step-progress[b-mttwebeaw6] {
    padding: 1em 0;
}

.step-container[b-mttwebeaw6] {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    gap: 0;
}

.step[b-mttwebeaw6] {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: center;
}

.step-number[b-mttwebeaw6] {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.step.active .step-number[b-mttwebeaw6] {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.step.completed .step-number[b-mttwebeaw6] {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.step.disabled .step-number[b-mttwebeaw6] {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.step-label[b-mttwebeaw6] {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.step.active .step-label[b-mttwebeaw6] {
    color: var(--primary);
}

.step.completed .step-label[b-mttwebeaw6] {
    color: var(--primary);
}

.step.next .step-label[b-mttwebeaw6] {
    color: var(--primary);
}

.step.disabled .step-label[b-mttwebeaw6] {
    color: var(--secondary);
}

.step.clickable[b-mttwebeaw6] {
    cursor: pointer;
    transition: all 0.2s ease;
}

.step.clickable:hover[b-mttwebeaw6] {
    opacity: 0.8;
}

.step.clickable:hover .step-number[b-mttwebeaw6] {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step.clickable:hover .step-label[b-mttwebeaw6] {
    color: #1f2937;
    font-weight: 600;
}

.step-line[b-mttwebeaw6] {
    height: 1px;
    background-color: #d1d5db;
/*    width: 100%;*/
    min-height: 1px;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease;
    align-self: center;
}
/* Step Content */
.step-content[b-mttwebeaw6] {
    min-height: auto;
/*    padding: 1rem 0;*/
}

/* Modern Button */
.modern-btn[b-mttwebeaw6] {
    background-color: var(--blue);
    border-color: var(--blue);
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.modern-btn:hover[b-mttwebeaw6] {
    background-color: var(--blue);
    border-color: var(--blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modern-btn:disabled[b-mttwebeaw6] {
    background-color: #9ca3af;
    border-color: #9ca3af;
    transform: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Company Details Form Styling */
.company-details-form[b-mttwebeaw6] {
    max-width: 100%;
}

.modern-label[b-mttwebeaw6] {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.modern-input[b-mttwebeaw6] {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: var(--white);
}

.modern-input:focus[b-mttwebeaw6] {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.modern-input[b-mttwebeaw6]::placeholder {
    color: #9ca3af;
}

.modern-select[b-mttwebeaw6] {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.modern-select:focus[b-mttwebeaw6] {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Logo Upload Styling */

.upload-label[b-mttwebeaw6] {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--blue);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.upload-label:hover[b-mttwebeaw6] {
    background-color: var(--blue);
    transform: translateY(-1px);
}

.uploaded-file-display[b-mttwebeaw6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background-color: #f3f4f6;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.file-name[b-mttwebeaw6] {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.btn-remove-file[b-mttwebeaw6] {
    background: none;
    border: none;
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.btn-remove-file:hover[b-mttwebeaw6] {
    background-color: #fee2e2;
    color: var(--danger);
}

/* Connect Account Styling */
.connect-account-container[b-mttwebeaw6] {
    padding: 0;
}

.connect-header[b-mttwebeaw6] {
    text-align: center;
    padding: 1rem 0;
}

.connect-title[b-mttwebeaw6] {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.connect-subtitle[b-mttwebeaw6] {
    color: var(--secondary);
    font-size: 0.875rem;
    margin: 0;
}

.modern-search .input-group-text[b-mttwebeaw6] {
    border: 1px solid #d1d5db;
    border-right: none;
    background-color: var(--white);
    color: var(--secondary);
    border-radius: 8px 0 0 8px;
}

.modern-search .form-control[b-mttwebeaw6] {
    border: 1px solid #d1d5db;
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
}

.modern-search .form-control:focus[b-mttwebeaw6] {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.modern-search .form-control:focus + .input-group-text[b-mttwebeaw6] {
    border-color: var(--blue);
}

/* Systems Grid */
.systems-grid[b-mttwebeaw6] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.system-card[b-mttwebeaw6] {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.system-card:hover[b-mttwebeaw6] {
    border-color: var(--blue);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.system-card.selected[b-mttwebeaw6] {
    border-color: var(--blue);
    background-color: var(--blue-lighten);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.system-header[b-mttwebeaw6] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.system-icon[b-mttwebeaw6] {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    border-radius: 8px;
    font-size: 1.25rem;
}

.system-name[b-mttwebeaw6] {
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    font-size: 1rem;
}

.system-badges[b-mttwebeaw6] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.system-badge[b-mttwebeaw6] {
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.system-description[b-mttwebeaw6] {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.system-connect-btn[b-mttwebeaw6] {
    width: 100%;
    padding: 0.625rem 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Configure Container */
.configure-container[b-mttwebeaw6] {
    padding: 0;
}

.configure-header[b-mttwebeaw6] {
    text-align: center;
    padding: 1rem 0;
}

.configure-title[b-mttwebeaw6] {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.configure-subtitle[b-mttwebeaw6] {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.config-form[b-mttwebeaw6] {
    max-width: 600px;
    margin: 0 auto;
}

.config-field[b-mttwebeaw6] {
    position: relative;
}

.field-description[b-mttwebeaw6] {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.modern-alert[b-mttwebeaw6] {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--blue);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.empty-state[b-mttwebeaw6] {
    color: var(--secondary);
}

.empty-state h5[b-mttwebeaw6] {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Step Progress Indicator - Authentication Wizard */
.step-item[b-mttwebeaw6] {
    cursor: pointer;
}

.step-item.disabled[b-mttwebeaw6] {
    cursor: not-allowed;
}

.step-circle[b-mttwebeaw6] {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #dee2e6;
}

.step-circle.active[b-mttwebeaw6],
.step-circle.completed[b-mttwebeaw6] {
    border-color: var(--primary);
    background-color: var(--primary);
}

.step-circle.active span[b-mttwebeaw6],
.step-circle.completed span[b-mttwebeaw6] {
    color: var(--white) !important;
}

.step-label[b-mttwebeaw6] {
    font-size: 0.95rem;
    white-space: nowrap;
    color: var(--secondary);
}

.step-label.active[b-mttwebeaw6],
.step-label.completed[b-mttwebeaw6] {
    color: var(--primary);
}

.step-connector[b-mttwebeaw6] {
    width: 80px;
    height: 2px;
    background-color: #dee2e6;
}

.step-connector.completed[b-mttwebeaw6] {
    background-color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-dialog[b-mttwebeaw6] {
        margin: 1rem;
    }
    
    .step-container[b-mttwebeaw6] {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-line[b-mttwebeaw6] {
        display: none;
    }
    
    .systems-grid[b-mttwebeaw6] {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-body[b-mttwebeaw6] {
        padding: 1rem;
    }
    
    .modal-header[b-mttwebeaw6] {
        padding: 1rem 1rem 0;
    }
    
    .modal-footer[b-mttwebeaw6] {
        padding: 0 1rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn[b-mttwebeaw6] {
        width: 100%;
    }
}
/* /Components/Pages/Companies/AddEdit/Authenticate.razor.rz.scp.css */
/* Authentication Form Styling */
.auth-header[b-gnbzdm1n5p] {
    text-align: center;
}

.auth-title[b-gnbzdm1n5p] {
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.system-icons[b-gnbzdm1n5p] {
    padding: 1rem 0;
}

.system-icon[b-gnbzdm1n5p] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background-color: #f9fafb;
}

/* .employee-token-section {
    max-width: 500px;
    margin: 0 auto;
} */

.modern-label[b-gnbzdm1n5p] {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.modern-input[b-gnbzdm1n5p] {
    border: 1px solid #d1d5db;
    border-radius: 8px 0 0 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: var(--white);
}

.modern-input:focus[b-gnbzdm1n5p] {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.input-group .btn[b-gnbzdm1n5p] {
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}

.config-table-section[b-gnbzdm1n5p] {
    max-width: 600px;
    margin: 2rem auto 0;
}

.table[b-gnbzdm1n5p] {
    background-color: var(--white);
}

.table thead th[b-gnbzdm1n5p] {
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.table tbody td[b-gnbzdm1n5p] {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.table tbody tr[b-gnbzdm1n5p] {
    border-bottom: 1px solid #f3f4f6;
}

.table tbody tr:last-child[b-gnbzdm1n5p] {
    border-bottom: none;
}

.password-mask[b-gnbzdm1n5p] {
    color: var(--secondary);
    letter-spacing: 2px;
}

.config-value[b-gnbzdm1n5p] {
    color: #374151;
    font-weight: 500;
}

.modern-alert[b-gnbzdm1n5p] {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background-color: #eff6ff;
    color: var(--blue);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.empty-state[b-gnbzdm1n5p] {
    padding: 2rem;
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .system-icons[b-gnbzdm1n5p] {
        gap: 1rem !important;
    }
    
    .system-icon[b-gnbzdm1n5p] {
        width: 50px;
        height: 50px;
    }
    
    .employee-token-section[b-gnbzdm1n5p] {
        max-width: 100%;
    }
    
    .config-table-section[b-gnbzdm1n5p] {
        max-width: 100%;
        margin-top: 1rem;
    }
    
    .table thead th[b-gnbzdm1n5p],
    .table tbody td[b-gnbzdm1n5p] {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}
/* /Components/Pages/Companies/AddEdit/Configure.razor.rz.scp.css */
/* Sync Configuration Styling */
.sync-header[b-5btu924iu7] {
    text-align: center;
    margin-bottom: 2rem;
}

.sync-title[b-5btu924iu7] {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.25rem;
    margin: 0;
}

.sync-subtitle[b-5btu924iu7] {
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
}

.company-info-section[b-5btu924iu7] {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.company-icon[b-5btu924iu7] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.company-name[b-5btu924iu7] {
    font-size: 1rem;
    color: #1f2937;
}

.company-type[b-5btu924iu7] {
    font-size: 0.875rem;
    color: #6b7280;
}

.connection-info[b-5btu924iu7] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.connection-label[b-5btu924iu7] {
    font-size: 0.875rem;
    font-weight: 500;
}

.connection-badge[b-5btu924iu7] {
    display: inline-flex;
    align-items: center;
    /* background-color: #f1f5f9; */
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.25rem 0.5rem;
    gap: 0.5rem;
}

.system-logo[b-5btu924iu7] {
    height: 18px;
    width: auto;
}

.system-name[b-5btu924iu7] {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.sync-frequency-section[b-5btu924iu7] {
    max-width: 500px;
}

.sync-label[b-5btu924iu7] {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.frequency-options[b-5btu924iu7] {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.frequency-option[b-5btu924iu7] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.frequency-option .form-check-input[b-5btu924iu7] {
    margin: 0;
}

.frequency-option .form-check-label[b-5btu924iu7] {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.frequency-option .form-check-input:checked[b-5btu924iu7] {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.time-selector-section[b-5btu924iu7] {
    max-width: 300px;
}

.time-input-wrapper[b-5btu924iu7] {
    position: relative;
}

.time-select[b-5btu924iu7] {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    width: 100%;
}

.time-select:focus[b-5btu924iu7] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sync-header[b-5btu924iu7] {
        margin-bottom: 1.5rem;
    }
    
    .company-info-section[b-5btu924iu7] {
        padding: 0.75rem;
    }
    
    .company-icon[b-5btu924iu7] {
        width: 40px;
        height: 40px;
    }
    
    .frequency-options[b-5btu924iu7] {
        gap: 1rem;
    }
    
    .frequency-option[b-5btu924iu7] {
        min-width: auto;
    }
    
    .connection-info[b-5btu924iu7] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .sync-frequency-section[b-5btu924iu7],
    .time-selector-section[b-5btu924iu7] {
        max-width: 100%;
    }
}

/* Step progress alignment */
.step-progress[b-5btu924iu7] {
    margin-bottom: 1.5rem;
}

/* Additional spacing */
.sync-frequency-section[b-5btu924iu7],
.time-selector-section[b-5btu924iu7] {
    margin-bottom: 1.5rem;
}
/* /Components/Pages/Companies/Companies.razor.rz.scp.css */
/* Companies List Page Styling */
.container-fluid[b-pw2mpolruh] {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
  

/* Header Styling */
.companies-header[b-pw2mpolruh] {
    padding-bottom: 7px;
    margin-bottom: 1rem;
    position: relative;
}

/* Full-width border using pseudo-element */
.companies-header[b-pw2mpolruh]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}

.companies-header h5[b-pw2mpolruh] {
    color: #1f2937;
    font-weight: 600;
}

/* Search Row Styling */
.d-flex.gap-2[b-pw2mpolruh] {
    align-items: center;
}

.d-flex.gap-2 .btn[b-pw2mpolruh] {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.d-flex.gap-2 .btn i[b-pw2mpolruh] {
    font-size: 0.875rem;
}

/* Custom Button Styling */
.btn-primary[b-pw2mpolruh] {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 500;
}

.btn-primary:hover[b-pw2mpolruh] {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Search Input Group */
.input-group .form-control[b-pw2mpolruh] {
    border-color: #ced4da;
    font-size: 0.95rem;
}

.input-group .form-control:focus[b-pw2mpolruh] {
    border-color: var(--primary);
    box-shadow: none;
}

.input-group-text[b-pw2mpolruh] {
    border-color: #ced4da;
    color: #6c757d;
}

/* Modern Table Styling */
.modern-table[b-pw2mpolruh] {
    background-color: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modern-table thead th[b-pw2mpolruh] {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    padding: 12px 16px;
    white-space: nowrap;
    user-select: none;
}

.modern-table thead th[role="button"][b-pw2mpolruh] {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modern-table thead th[role="button"]:hover[b-pw2mpolruh] {
    background-color: #e9ecef;
}

.modern-table tbody td[b-pw2mpolruh] {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.modern-table tbody tr:last-child td[b-pw2mpolruh] {
    border-bottom: none;
}

.modern-table tbody tr:hover[b-pw2mpolruh] {
    background-color: #f8f9fa;
}

/* MudSimpleTable Styling for Companies - Match previous appearance */
.companies-table[b-pw2mpolruh] {
    background-color: var(--white) !important;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.companies-table thead th[b-pw2mpolruh] {
    background-color: #f8f9fa !important;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    padding: 10px;
    white-space: nowrap;
    user-select: none;
}

.companies-table thead th div[b-pw2mpolruh] {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.companies-table thead th div:hover[b-pw2mpolruh] {
    background-color: transparent;
}

.companies-table tbody td[b-pw2mpolruh] {
    padding: 12px 16px !important;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0 !important;
    background-color: var(--white) !important;
}

.companies-table tbody tr[b-pw2mpolruh] {
    background-color: var(--white) !important;
}

.companies-table tbody tr:last-child td[b-pw2mpolruh] {
    border-bottom: none !important;
}

.companies-table tbody tr:hover[b-pw2mpolruh] {
    background-color: #f8f9fa !important;
}

/* Ensure no alternating row colors */
.companies-table tbody tr:nth-child(even)[b-pw2mpolruh] {
    background-color: var(--white) !important;
}

.companies-table tbody tr:nth-child(odd)[b-pw2mpolruh] {
    background-color: var(--white) !important;
}

/* Clickable Row Styling */
.clickable-row[b-pw2mpolruh] {
    /* transition: all 0.2s ease; */
    cursor: pointer;
    background-color: var(--white) !important;
}

.clickable-row:hover[b-pw2mpolruh] {
    background-color: #f8f9fa !important;
    /* transform: translateY(-1px); */
    box-shadow: none;
}

.clickable-row:active[b-pw2mpolruh] {
    transform: translateY(0);
    box-shadow: none;
}

/* Company Logo Styling */
.company-logo[b-pw2mpolruh] {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    border: 1px solid #e9ecef;
}

.company-logo-placeholder[b-pw2mpolruh] {
    width: 48px;
    height: 48px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.5rem;
}

/* Company Info Styling */
.company-info[b-pw2mpolruh] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company-name[b-pw2mpolruh] {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
}

.company-country[b-pw2mpolruh] {
    font-size: 0.8rem;
    color: #6c757d;
}

/* CEO Info Styling */
.ceo-info[b-pw2mpolruh] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ceo-avatar img[b-pw2mpolruh] {
    border: 2px solid #e9ecef;
}

.ceo-details[b-pw2mpolruh] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ceo-name[b-pw2mpolruh] {
    font-weight: 500;
    font-size: 0.9rem;
    color: #2c3e50;
}

.ceo-email[b-pw2mpolruh] {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Financial Values */
.financial-value[b-pw2mpolruh] {
    font-weight: 600;
    font-size: 0.9rem;
}

.financial-value.text-success[b-pw2mpolruh] {
    color: var(--success) !important;
}

.financial-value.text-danger[b-pw2mpolruh] {
    color: var(--danger) !important;
}

/* Margin Indicator */
.margin-indicator[b-pw2mpolruh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.margin-percentage[b-pw2mpolruh] {
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.margin-percentage.text-success[b-pw2mpolruh] {
    color: var(--success) !important;
}

.margin-percentage.text-warning[b-pw2mpolruh] {
    color: var(--warning) !important;
}

.margin-percentage.text-danger[b-pw2mpolruh] {
    color: var(--danger) !important;
}

/* Key Insights */
.key-insights[b-pw2mpolruh] {
    display: flex;
/*    flex-direction: column;*/
    gap: 4px;
}


.insight-tag[b-pw2mpolruh] {
        font-size: 11px;
        font-weight: 500;
        padding: 2px 5px;
        border-radius: 11px;
        /* background-color: #e8f5e8; */
        /* color: #28a745; */
        border: 1px solid #E4E4E7;
        display: inline-block;
        max-width: fit-content;
}

/* Actions Button */
.actions-button[b-pw2mpolruh] {
    border: none !important;
    background: transparent;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
}

.actions-button:hover[b-pw2mpolruh] {
    background: none;
    color: #6c757d;
    box-shadow: none;
}

/* Custom Dropdown Menu Styling */
.dropdown-container[b-pw2mpolruh] {
    position: relative;
    display: inline-block;
}

.custom-dropdown-menu[b-pw2mpolruh] {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1010;
    min-width: 120px;
    overflow: hidden;
}

.dropdown-item-btn[b-pw2mpolruh] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-align: left;
    background-color: transparent;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 10px;
}

.dropdown-item-btn:hover[b-pw2mpolruh] {
    background-color: #f5f5f5;
}

.dropdown-item-btn i[b-pw2mpolruh] {
    font-size: 14px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.dropdown-item-btn span[b-pw2mpolruh] {
    flex: 1;
    line-height: 1.4;
}

.dropdown-item-btn.text-danger[b-pw2mpolruh] {
    color: var(--danger);
}

.dropdown-item-btn.text-danger:hover[b-pw2mpolruh] {
    background-color: #fff8f8;
}

/* MudMenu Styling for Companies Actions - Match previous design exactly */

  [b-pw2mpolruh] .mud-menu-list {
    padding: 0 !important;
}

  [b-pw2mpolruh] .mud-popover-paper {
    background-color: var(--white) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    min-width: 140px !important;
    padding: 4px 0 !important;
    border: none !important;
    overflow: hidden !important;
}

  [b-pw2mpolruh] .mud-menu {
    padding: 0 !important;
    margin: 0 !important;
}

  [b-pw2mpolruh] .mud-menu .mud-menu-item {
    padding: 0 !important;
    margin: 0 !important;
}

  [b-pw2mpolruh] .mud-menu-item {
    width: 100% !important;
    display: flex !important;
    position: relative !important;
    box-sizing: border-box !important;
    text-align: start !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    padding: 3px 8px !important;
    margin: 0 !important;
    min-height: 40px !important;
    background-color: var(--white) !important;
    transition: background-color 0.2s ease !important;
    border: none !important;
    border-radius: 0 !important;
}

  [b-pw2mpolruh] .mud-menu-item button,
  [b-pw2mpolruh] .mud-menu-item > * {
    width: 100% !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    transition: background-color 0.2s ease !important;
    background-color: transparent !important;
    border: none !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
}

  [b-pw2mpolruh] .mud-menu-item:hover,
  [b-pw2mpolruh] .mud-menu-item:hover button,
  [b-pw2mpolruh] .mud-menu-item:hover > * {
    background-color: #f5f5f5 !important;
}

  [b-pw2mpolruh] .menu-item-content {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

  [b-pw2mpolruh] .menu-item-icon,
  [b-pw2mpolruh] .mud-menu-item .mud-icon,
  [b-pw2mpolruh] .menu-item-content .mud-icon {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    /* color: #333 !important; */
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

  [b-pw2mpolruh] .menu-item-text {
    font-size: 14px !important;
    font-weight: 400 !important;
    /* color: #333 !important; */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    flex: 0 1 auto !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

  [b-pw2mpolruh] .menu-item-delete .menu-item-content {
    color: var(--danger) !important;
}

  [b-pw2mpolruh] .menu-item-delete:hover,
  [b-pw2mpolruh] .menu-item-delete:hover button,
  [b-pw2mpolruh] .menu-item-delete:hover > * {
    background-color: #fff5f5 !important;
}

  [b-pw2mpolruh] .menu-item-delete .menu-item-icon,
  [b-pw2mpolruh] .menu-item-delete .mud-icon {
    color: var(--danger) !important;
}

  [b-pw2mpolruh] .menu-item-delete .menu-item-text {
    color: var(--danger) !important;
}


/* Additional global selectors for MudBlazor portal rendering */
/* Global selector for mud-menu-item to work with portal rendering - must be very specific */
.mud-popover-paper .mud-menu-item[b-pw2mpolruh],
.mud-popover-paper .mud-menu-list .mud-menu-item[b-pw2mpolruh],
.mud-menu-item[b-pw2mpolruh],
.mud-menu-list .mud-menu-item[b-pw2mpolruh] {
    width: 100% !important;
    display: flex !important;
    position: relative !important;
    box-sizing: border-box !important;
    text-align: start !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    padding: 3px 8px !important;
}

/* Target menu items directly when inside companies-action-menu context */
.mud-popover-paper .mud-menu-item.menu-item-edit[b-pw2mpolruh],
.mud-popover-paper .mud-menu-item.menu-item-view[b-pw2mpolruh],
.mud-popover-paper .mud-menu-item.menu-item-delete[b-pw2mpolruh] {
    width: 100% !important;
    display: flex !important;
    position: relative !important;
    box-sizing: border-box !important;
    text-align: start !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    padding: 3px 8px !important;
    margin: 0 !important;
    min-height: 40px !important;
    background-color: var(--white) !important;
    transition: background-color 0.2s ease !important;
    border: none !important;
    border-radius: 0 !important;
}

.mud-popover-paper .mud-menu-item.menu-item-edit button[b-pw2mpolruh],
.mud-popover-paper .mud-menu-item.menu-item-view button[b-pw2mpolruh],
.mud-popover-paper .mud-menu-item.menu-item-delete button[b-pw2mpolruh] {
    width: 100% !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    transition: background-color 0.2s ease !important;
    background-color: transparent !important;
    border: none !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
}

.mud-popover-paper .mud-menu-item:hover[b-pw2mpolruh] {
    background-color: #f5f5f5 !important;
}

.mud-popover-paper .mud-menu-item.menu-item-delete:hover[b-pw2mpolruh] {
    background-color: #fff5f5 !important;
}

.mud-popover-paper .menu-item-content[b-pw2mpolruh] {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mud-popover-paper .menu-item-delete .menu-item-content[b-pw2mpolruh] {
    color: var(--danger) !important;
}

.mud-popover-paper .menu-item-icon[b-pw2mpolruh],
.mud-popover-paper .menu-item-content .mud-icon[b-pw2mpolruh] {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.mud-popover-paper .menu-item-delete .menu-item-icon[b-pw2mpolruh],
.mud-popover-paper .menu-item-delete .mud-icon[b-pw2mpolruh] {
    color: var(--danger) !important;
}

.mud-popover-paper .menu-item-text[b-pw2mpolruh] {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    flex: 0 1 auto !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.mud-popover-paper .menu-item-delete .menu-item-text[b-pw2mpolruh] {
    color: var(--danger) !important;
}

.mud-popover-paper .mud-divider.menu-divider[b-pw2mpolruh] {
    margin: 4px 0 !important;
    padding: 0 !important;
    border-color: #e5e7eb !important;
    border-width: 1px 0 0 0 !important;
    opacity: 1 !important;
    height: 0 !important;
}


/* Pagination Styling */
.pagination[b-pw2mpolruh] {
    justify-content: center;
}

.page-link[b-pw2mpolruh] {
    color: var(--primary);
    border-color: #dee2e6;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.page-link:hover[b-pw2mpolruh] {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: var(--primary);
}

.page-item.active .page-link[b-pw2mpolruh] {
background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-item.disabled .page-link[b-pw2mpolruh] {
    color: #6c757d;
    background-color: var(--white);
    border-color: #dee2e6;
}

/* Loading Overlay */
.spinner-border[b-pw2mpolruh] {
    width: 2rem;
    height: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-table thead th[b-pw2mpolruh],
    .modern-table tbody td[b-pw2mpolruh] {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .ceo-info[b-pw2mpolruh] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .key-insights[b-pw2mpolruh] {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .insight-tag[b-pw2mpolruh] {
        font-size: 0.7rem;
        padding: 0.2em 0.4em;
    }
}

@media (max-width: 992px) {
    .modern-table td:nth-child(6)[b-pw2mpolruh], /* EBITDA column */
    .modern-table th:nth-child(6)[b-pw2mpolruh],
    .modern-table td:nth-child(8)[b-pw2mpolruh], /* Key Insights column */
    .modern-table th:nth-child(8)[b-pw2mpolruh] {
        display: none;
    }
}

@media (max-width: 576px) {
    .modern-table td:nth-child(4)[b-pw2mpolruh], /* Revenue column */
    .modern-table th:nth-child(4)[b-pw2mpolruh],
    .modern-table td:nth-child(7)[b-pw2mpolruh], /* Gross Margin column */
    .modern-table th:nth-child(7)[b-pw2mpolruh] {
        display: none;
    }
}
/* /Components/Pages/Companies/View/Dialogs/AccountSelectorModal.razor.rz.scp.css */
/* Modal Styling - Global overrides for sidebar overlap fix */
:global(.modal)[b-g716sknjd1] {
    z-index: 9999 !important;
}

:global(.modal-backdrop)[b-g716sknjd1] {
    z-index: 9998 !important;
}

:global(.modal-backdrop.show)[b-g716sknjd1] {
    z-index: 9998 !important;
}

.modal-title-section[b-g716sknjd1] {
    flex-grow: 1;
}

.modal-title[b-g716sknjd1] {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0;
}

.modal-body[b-g716sknjd1] {
    padding: 1.5rem;
    max-height: 70vh;
}

/* Search Section */
.search-section[b-g716sknjd1] {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}
    
.search-section .input-group[b-g716sknjd1] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.search-section .input-group-text[b-g716sknjd1] {
    border: 1px solid #dee2e6;
    color: #6c757d;
}

.search-section .form-control[b-g716sknjd1] {
    border: 1px solid #dee2e6;
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
}

.search-section .form-control:focus[b-g716sknjd1] {
    border-color: #4a90e2;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
}

/* Tree Container */
.account-tree-container[b-g716sknjd1] {
    margin-top: 1rem;
    min-height: 400px;
    max-height: calc(70vh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
}

.tree-view[b-g716sknjd1] {
    padding: 0;
}

/* Account Node Wrapper */
.account-node-wrapper[b-g716sknjd1] {
    position: relative;
}

/* Tree Node Styling - inspired by MasterChartOfAccounts */
/* .account-node:hover .action-buttons {
    opacity: 1 !important;
} */

.account-node:hover:not(.selected-account)[b-g716sknjd1] {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border-color: #94A3B8 !important;
}

.selected-account[b-g716sknjd1] {
    cursor: default !important;
}

.selected-account:hover[b-g716sknjd1] {
    box-shadow: none !important;
    border-color: #009688 !important;
}

.node-indicator[b-g716sknjd1] {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.expand-button[b-g716sknjd1] {
    min-width: 40px;
}

.account-info[b-g716sknjd1] {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.account-number[b-g716sknjd1] {
    background: #EFF6FF;
    color: #1E40AF;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.account-name[b-g716sknjd1] {
    font-weight: 500;
    color: #1E293B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
}

.account-description[b-g716sknjd1] {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-buttons[b-g716sknjd1] {
    display: flex;
    gap: 4px;
    /* opacity: 0.3; */
    /* transition: opacity 0.2s; */
    flex-shrink: 0;
}

/* Highlight Matching Text */
[b-g716sknjd1] .highlight-match {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 600;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

/* Empty State */
.text-center i.display-4[b-g716sknjd1] {
    opacity: 0.3;
}

/* Scrollbar Styling */
.account-tree-container[b-g716sknjd1]::-webkit-scrollbar {
    width: 8px;
}

.account-tree-container[b-g716sknjd1]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.account-tree-container[b-g716sknjd1]::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.account-tree-container[b-g716sknjd1]::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Button Group */
.btn-group-sm .btn[b-g716sknjd1] {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Loading State */
.spinner-border[b-g716sknjd1] {
    width: 3rem;
    height: 3rem;
}

/* Responsive Design */
/* Tablets */
@media (min-width: 600px) and (max-width: 899px) {
    .account-node[b-g716sknjd1] {
        gap: 8px !important;
        padding: 10px !important;
    }

    .account-info[b-g716sknjd1] {
        gap: 8px !important;
    }

    .account-number[b-g716sknjd1] {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

/* Mobile devices */
@media (max-width: 599px) {
    .modal-dialog[b-g716sknjd1] {
        margin: 0.5rem;
    }

    .account-node-wrapper[b-g716sknjd1] {
        padding-left: 0 !important;
    }

    .account-node[b-g716sknjd1] {
        flex-wrap: wrap;
        gap: 8px !important;
        padding: 12px !important;
    }

    .expand-button[b-g716sknjd1], .node-indicator[b-g716sknjd1] {
        width: 32px;
        min-width: 32px;
    }

    .account-info[b-g716sknjd1] {
        flex: 1;
        min-width: calc(100% - 40px);
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .account-number[b-g716sknjd1] {
        font-size: 0.75rem;
        padding: 2px 8px;
    }

    .account-name[b-g716sknjd1] {
        font-size: 0.875rem;
        white-space: normal !important;
    }

    .account-description[b-g716sknjd1] {
        font-size: 0.75rem;
        white-space: normal !important;
    }

    .action-buttons[b-g716sknjd1] {
        width: 100%;
        justify-content: flex-end;
        /* opacity: 1 !important; */
        gap: 6px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .account-node[b-g716sknjd1] {
        padding: 8px !important;
    }

    .account-number[b-g716sknjd1] {
        font-size: 0.7rem;
    }

    .account-name[b-g716sknjd1] {
        font-size: 0.8rem;
    }
}

/* Animation for expanding/collapsing */
@keyframes slideDown-b-g716sknjd1 {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tree-node-item[b-g716sknjd1] {
    animation: slideDown-b-g716sknjd1 0.2s ease-out;
}

/* /Components/Pages/Companies/View/Dialogs/AccountTreeSelector.razor.rz.scp.css */
/* Search Section */
.search-section[b-z5z9jmr747] {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}
    
.search-section .input-group[b-z5z9jmr747] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.search-section .input-group-text[b-z5z9jmr747] {
    border: 1px solid #dee2e6;
    color: #6c757d;
}

.search-section .form-control[b-z5z9jmr747] {
    border: 1px solid #dee2e6;
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
}

.search-section .form-control:focus[b-z5z9jmr747] {
    border-color: #4a90e2;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
}

/* Tree Container */
.account-tree-container[b-z5z9jmr747] {
    margin-top: 1rem;
    min-height: 400px;
    max-height: calc(70vh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
}

.tree-view[b-z5z9jmr747] {
    padding: 0;
}

/* Account Node Wrapper */
.account-node-wrapper[b-z5z9jmr747] {
    position: relative;
}

/* Tree Node Styling */
.account-node:hover:not(.selected-account)[b-z5z9jmr747] {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border-color: #94A3B8 !important;
}

.selected-account[b-z5z9jmr747] {
    cursor: default !important;
}

.selected-account:hover[b-z5z9jmr747] {
    box-shadow: none !important;
    border-color: #009688 !important;
}

.node-indicator[b-z5z9jmr747] {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.expand-button[b-z5z9jmr747] {
    min-width: 40px;
}

.account-info[b-z5z9jmr747] {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.account-number[b-z5z9jmr747] {
    background: #EFF6FF;
    color: #1E40AF;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.account-name[b-z5z9jmr747] {
    font-weight: 500;
    color: #1E293B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
}

.account-description[b-z5z9jmr747] {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-buttons[b-z5z9jmr747] {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* Highlight Matching Text */
[b-z5z9jmr747] .highlight-match {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 600;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

/* Empty State */
.text-center i.display-4[b-z5z9jmr747] {
    opacity: 0.3;
}

/* Scrollbar Styling */
.account-tree-container[b-z5z9jmr747]::-webkit-scrollbar {
    width: 8px;
}

.account-tree-container[b-z5z9jmr747]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.account-tree-container[b-z5z9jmr747]::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.account-tree-container[b-z5z9jmr747]::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading State */
.spinner-border[b-z5z9jmr747] {
    width: 3rem;
    height: 3rem;
}

/* Responsive Design */
/* Tablets */
@media (min-width: 600px) and (max-width: 899px) {
    .account-node[b-z5z9jmr747] {
        gap: 8px !important;
        padding: 10px !important;
    }

    .account-info[b-z5z9jmr747] {
        gap: 8px !important;
    }

    .account-number[b-z5z9jmr747] {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

/* Mobile devices */
@media (max-width: 599px) {
    .account-node-wrapper[b-z5z9jmr747] {
        padding-left: 0 !important;
    }

    .account-node[b-z5z9jmr747] {
        flex-wrap: wrap;
        gap: 8px !important;
        padding: 12px !important;
    }

    .expand-button[b-z5z9jmr747], .node-indicator[b-z5z9jmr747] {
        width: 32px;
        min-width: 32px;
    }

    .account-info[b-z5z9jmr747] {
        flex: 1;
        min-width: calc(100% - 40px);
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .account-number[b-z5z9jmr747] {
        font-size: 0.75rem;
        padding: 2px 8px;
    }

    .account-name[b-z5z9jmr747] {
        font-size: 0.875rem;
        white-space: normal !important;
    }

    .account-description[b-z5z9jmr747] {
        font-size: 0.75rem;
        white-space: normal !important;
    }

    .action-buttons[b-z5z9jmr747] {
        width: 100%;
        justify-content: flex-end;
        gap: 6px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .account-node[b-z5z9jmr747] {
        padding: 8px !important;
    }

    .account-number[b-z5z9jmr747] {
        font-size: 0.7rem;
    }

    .account-name[b-z5z9jmr747] {
        font-size: 0.8rem;
    }
}

/* Animation for expanding/collapsing */
@keyframes slideDown-b-z5z9jmr747 {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tree-node-item[b-z5z9jmr747] {
    animation: slideDown-b-z5z9jmr747 0.2s ease-out;
}

/* /Components/Pages/Companies/View/Tabs/AllAccountsTab.razor.rz.scp.css */
/* ============ ACCOUNTS TAB STYLING ============ */

/* Search Input Group */
.accounts-content .input-group .form-control[b-zx7ppj7tdk] {
    border-color: #ced4da;
    font-size: 0.95rem;
}

.accounts-content .input-group .form-control:focus[b-zx7ppj7tdk] {
    border-color: var(--primary);
    box-shadow: none;
}

.accounts-content .input-group-text[b-zx7ppj7tdk] {
    border-color: #ced4da;
    color: var(--secondary);
}

/* Search Row Styling */
.accounts-content .d-flex.gap-2[b-zx7ppj7tdk] {
    align-items: center;
}

.accounts-content .d-flex.gap-2 .btn[b-zx7ppj7tdk] {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.accounts-content .d-flex.gap-2 .btn i[b-zx7ppj7tdk] {
    font-size: 0.875rem;
}

/* Select All and Pagination Info */
.accounts-content .pagination-info[b-zx7ppj7tdk] {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.accounts-content .form-check[b-zx7ppj7tdk] {
    margin-bottom: 0;
}

.accounts-content .form-check-label[b-zx7ppj7tdk] {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

.accounts-content .form-check-input[b-zx7ppj7tdk] {
    cursor: pointer;
}

.accounts-content .form-check-input:focus[b-zx7ppj7tdk] {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.25);
}

.accounts-content .form-check-input:checked[b-zx7ppj7tdk] {
    background-color: var(--primary);
    border-color: var(--primary);  
}

/* Approval Radio Button Styling */
.form-check-input[type="radio"][b-zx7ppj7tdk] {
    width: 1.2rem !important;
    height: 1.2rem !important;
    border: 2px solid #6c757d;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.form-check-input[type="radio"]:checked[b-zx7ppj7tdk] {
    background-color: #28a745;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-check-input[type="radio"]:hover:not(:disabled)[b-zx7ppj7tdk] {
    border-color: #28a745;
    transform: scale(1.05);
}

.form-check-input[type="radio"]:disabled[b-zx7ppj7tdk] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Table Styling */
.accounts-content .table[b-zx7ppj7tdk] {
    background-color: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.accounts-content .table thead th[b-zx7ppj7tdk] {
    background-color: #f8f9fa;
    /* border-bottom: 2px solid #dee2e6; */
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    padding: 12px;
    white-space: nowrap;
    user-select: none;
}

.accounts-content .table thead th[role="button"][b-zx7ppj7tdk] {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.accounts-content .table thead th[role="button"]:hover[b-zx7ppj7tdk] {
    background-color: #e9ecef;
}

.accounts-content .table tbody td[b-zx7ppj7tdk] {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.accounts-content .table tbody tr:last-child td[b-zx7ppj7tdk] {
    border-bottom: none;
}

.accounts-content .table tbody tr:hover[b-zx7ppj7tdk] {
    background-color: #f8f9fa;
}

.accounts-content .table tbody tr.table-active[b-zx7ppj7tdk] {
    background-color: #e8f5e8;
}

/* System Badges - Outline Style */
.accounts-content .badge-outline-system[b-zx7ppj7tdk] {
    background-color: transparent !important;
    border: 1.5px solid;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
}

.accounts-content .badge-sap[b-zx7ppj7tdk] {
    border-color: var(--blue);
    color: var(--blue);
}

.accounts-content .badge-tripletex[b-zx7ppj7tdk] {
    border-color: var(--primary);
    color: var(--primary);
}

.accounts-content .badge-poweroffice[b-zx7ppj7tdk] {
    border-color: var(--blue);
    color: var(--blue);
}

.accounts-content .badge-visma[b-zx7ppj7tdk] {
    border-color: var(--warning); 
    color: var(--warning);
}

.accounts-content .badge-fortnox[b-zx7ppj7tdk] {
    border-color: var(--danger);
    color: var(--danger);
}

.accounts-content .badge-freshbooks[b-zx7ppj7tdk] {
    border-color: var(--purple);
    color: var(--purple);
}

.accounts-content .badge-oracle[b-zx7ppj7tdk] {
    border-color: var(--orange);
    color: var(--orange);
}

.accounts-content .badge-default[b-zx7ppj7tdk] {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Status Badges */
.accounts-content .badge[b-zx7ppj7tdk] {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25em 0.5em;
    border-radius: 0.375rem;
}

/* Outline badges */
.accounts-content .badge.border-success[b-zx7ppj7tdk] {
    background-color: transparent !important;
    border: 1.5px solid var(--primary) !important;
}

.accounts-content .badge.text-success[b-zx7ppj7tdk] {
    color: var(--primary) !important;
}

.accounts-content .badge.border-warning[b-zx7ppj7tdk] {
    background-color: transparent !important;
    border: 1.5px solid var(--warning) !important;
}

.accounts-content .badge.text-warning[b-zx7ppj7tdk] {
    color: #856404 !important;
}

.accounts-content .badge.border-secondary[b-zx7ppj7tdk] {
    background-color: transparent !important;
    border: 1.5px solid var(--secondary) !important;
}

.accounts-content .badge.text-secondary[b-zx7ppj7tdk] {
    color: var(--secondary) !important;
}

.accounts-content .badge.bg-light[b-zx7ppj7tdk] {
    background-color: #e9ecef !important;
    color: var(--secondary);
    border: 1px solid #ced4da;
}

/* Dropdown Actions */
.accounts-content .dropdown-toggle[b-zx7ppj7tdk] {
    border: 1px solid #ced4da;
    background-color: white;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.accounts-content .dropdown-toggle:hover[b-zx7ppj7tdk],
.accounts-content .dropdown-toggle:focus[b-zx7ppj7tdk] {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.accounts-content .dropdown-menu[b-zx7ppj7tdk] {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
}

.accounts-content .dropdown-item[b-zx7ppj7tdk] {
    padding: 0.5rem 1rem;
    color: #495057;
}

.accounts-content .dropdown-item:hover[b-zx7ppj7tdk],
.accounts-content .dropdown-item:focus[b-zx7ppj7tdk] {
    background-color: #f8f9fa;
    color: #16181b;
}

.accounts-content .dropdown-item.text-danger:hover[b-zx7ppj7tdk] {
    background-color: #f5c6cb;
    color: var(--danger);
}

.accounts-content .dropdown-divider[b-zx7ppj7tdk] {
    margin: 0.5rem 0;
}

.accounts-content .actions-button[b-zx7ppj7tdk] {
    border: none !important;
}

.accounts-content .actions-button:hover[b-zx7ppj7tdk] {
    background: none;
    color: #6c757d;
}

/* Pagination Styling */
.accounts-content .pagination[b-zx7ppj7tdk] {
    justify-content: center;
}

.page-link[b-zx7ppj7tdk] {
    color: var(--primary);
    border-color: #dee2e6;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.page-link:hover[b-zx7ppj7tdk] {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: var(--primary);
}

.page-item.active .page-link[b-zx7ppj7tdk] {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-item.disabled .page-link[b-zx7ppj7tdk] {
    color: var(--secondary);
    background-color: var(--white);
    border-color: #dee2e6;
}

/* Loading Overlay */
.accounts-content .spinner-border[b-zx7ppj7tdk] {
    width: 2rem;
    height: 2rem;
}

/* Search Highlighting */
.accounts-content mark[b-zx7ppj7tdk] {
    background-color: #fff3cd !important;
    color: var(--warning);
    padding: 0.1em 0.2em;
    border-radius: 0.2em;
}

/* Improve visual hierarchy */
.accounts-content .form-control[b-zx7ppj7tdk]::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Responsive Design for Accounts Tab */
@media (max-width: 768px) {
    .accounts-content .table thead th[b-zx7ppj7tdk],
    .accounts-content .table tbody td[b-zx7ppj7tdk] {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .accounts-content .badge[b-zx7ppj7tdk] {
        font-size: 0.7rem;
        padding: 0.2em 0.4em;
    }
    
    .accounts-content .btn[b-zx7ppj7tdk] {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Table responsive improvements for Accounts Tab */
@media (max-width: 992px) {
    .accounts-content .table td:nth-child(6)[b-zx7ppj7tdk], /* Tags column */
    .accounts-content .table th:nth-child(6)[b-zx7ppj7tdk] {
        display: none;
    }
}

@media (max-width: 768px) {
    .accounts-content .table td:nth-child(4)[b-zx7ppj7tdk], /* Account Type column */
    .accounts-content .table th:nth-child(4)[b-zx7ppj7tdk],
    .accounts-content .table td:nth-child(5)[b-zx7ppj7tdk], /* Mapping Status column */
    .accounts-content .table th:nth-child(5)[b-zx7ppj7tdk] {
        display: none;
    }
}

/* ============ MATCHING ACCOUNTS MODAL STYLING ============ */

/* Modal Header */
.modal-title-section[b-zx7ppj7tdk] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modal-title-section .modal-title[b-zx7ppj7tdk] {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.modal-title-section .modal-title .company-logo-small[b-zx7ppj7tdk] {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    object-fit: cover;
}

.modal-title-section .modal-title i.bi-building[b-zx7ppj7tdk] {
    font-size: 1.25rem;
}

.modal-title-section small[b-zx7ppj7tdk] {
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
}

/* Modal Body */
.matching-accounts-header[b-zx7ppj7tdk]{
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
}

.matching-accounts-header h6[b-zx7ppj7tdk] {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.mapping-summary[b-zx7ppj7tdk] {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Modal Table Styling */
.modal-content .table[b-zx7ppj7tdk] {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.modal-content .table thead th[b-zx7ppj7tdk] {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    padding: 12px 16px;
    white-space: nowrap;
    user-select: none;
}

.modal-content .table tbody td[b-zx7ppj7tdk] {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-content .table tbody tr:last-child td[b-zx7ppj7tdk] {
    border-bottom: none;
}

.modal-content .table tbody tr:hover[b-zx7ppj7tdk] {
    background-color: #f8f9fa;
}

.modal-content .table tbody tr.table-active[b-zx7ppj7tdk] {
    background-color: #e8f5e8;
}

/* Suggested Mapping Dropdown */
.mapping-dropdown[b-zx7ppj7tdk] {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    min-width: 120px;
}

.mapping-dropdown:hover[b-zx7ppj7tdk] {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.mapping-dropdown i[b-zx7ppj7tdk] {
    color: #6c757d;
}

/* AI Confidence Indicator */
.confidence-indicator[b-zx7ppj7tdk] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
}

.confidence-text[b-zx7ppj7tdk] {
    font-size: 0.875rem;
    font-weight: 500;
}

.confidence-text.text-success[b-zx7ppj7tdk] {
    color: var(--primary) !important;
}

.confidence-text.text-warning[b-zx7ppj7tdk] {
    color: var(--warning) !important;
}

.confidence-text.text-danger[b-zx7ppj7tdk] {
    color: var(--danger) !important;
}

.confidence-bars[b-zx7ppj7tdk] {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.confidence-bar[b-zx7ppj7tdk] {
    width: 3px;
    background-color: #e9ecef;
    border-radius: 1px;
    transition: background-color 0.3s ease;
}

.confidence-bar:nth-child(1)[b-zx7ppj7tdk] { height: 6px; }
.confidence-bar:nth-child(2)[b-zx7ppj7tdk] { height: 8px; }
.confidence-bar:nth-child(3)[b-zx7ppj7tdk] { height: 10px; }
.confidence-bar:nth-child(4)[b-zx7ppj7tdk] { height: 12px; }
.confidence-bar:nth-child(5)[b-zx7ppj7tdk] { height: 14px; }

.confidence-bar.active[b-zx7ppj7tdk] {
    background-color: var(--blue);
}

/* User Assignment Styling */
.mapping-with-user[b-zx7ppj7tdk] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-assignment[b-zx7ppj7tdk] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.user-avatar[b-zx7ppj7tdk] {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--purple);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
}

.user-name[b-zx7ppj7tdk] {
    color: #495057;
    font-weight: 500;
}

/* Modal Footer */
.modal-footer[b-zx7ppj7tdk] {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
}

.modal-footer .btn[b-zx7ppj7tdk] {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.modal-footer .btn-primary[b-zx7ppj7tdk] {
    background-color: var(--primary);
    border-color: var(--primary);
}

.modal-footer .btn-primary:hover[b-zx7ppj7tdk] {
    background-color: var(--primary);
    border-color: var(--primary);
}

.modal-footer .btn-outline-secondary[b-zx7ppj7tdk] {
    color: var(--secondary);
    border-color: var(--secondary);
}

.modal-footer .btn-outline-secondary:hover[b-zx7ppj7tdk] {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

/* System badges in modal */
.modal-content .badge-outline-system[b-zx7ppj7tdk] {
    background-color: transparent !important;
    border: 1.5px solid;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
}

.modal-content .badge-sap[b-zx7ppj7tdk] {
    border-color: var(--blue);
    color: var(--blue);
}

.modal-content .badge-tripletex[b-zx7ppj7tdk] {
    border-color: var(--primary);
    color: var(--primary);
}

.modal-content .badge-oracle[b-zx7ppj7tdk] {
    border-color: var(--orange);
    color: var(--orange);
}

.modal-content .badge-freshbooks[b-zx7ppj7tdk] {
    border-color: var(--purple);
    color: var(--purple);
}

.modal-content .badge-default[b-zx7ppj7tdk] {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Form controls in modal */
.modal-content .form-check-input[b-zx7ppj7tdk] {
    cursor: pointer;
}

.modal-content .form-check-input:focus[b-zx7ppj7tdk] {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.25);
}

.modal-content .form-check-input:checked[b-zx7ppj7tdk] {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Action buttons in modal table */
.modal-content .btn-outline-secondary.btn-sm[b-zx7ppj7tdk] {
    border: 1px solid #dee2e6;
    color: var(--secondary);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.modal-content .btn-outline-secondary.btn-sm:hover[b-zx7ppj7tdk] {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-dialog.modal-xl[b-zx7ppj7tdk] {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-content .table thead th[b-zx7ppj7tdk],
    .modal-content .table tbody td[b-zx7ppj7tdk] {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .mapping-dropdown[b-zx7ppj7tdk] {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        min-width: 100px;
    }
    
    .confidence-bars[b-zx7ppj7tdk] {
        height: 12px;
    }
    
    .confidence-bar[b-zx7ppj7tdk] {
        width: 2px;
    }
    
    .confidence-bar:nth-child(1)[b-zx7ppj7tdk] { height: 4px; }
    .confidence-bar:nth-child(2)[b-zx7ppj7tdk] { height: 6px; }
    .confidence-bar:nth-child(3)[b-zx7ppj7tdk] { height: 8px; }
    .confidence-bar:nth-child(4)[b-zx7ppj7tdk] { height: 10px; }
    .confidence-bar:nth-child(5)[b-zx7ppj7tdk] { height: 12px; }
    
    .confidence-text[b-zx7ppj7tdk] {
        font-size: 0.8rem;
    }
}


.ai-suggestion[b-zx7ppj7tdk] {
    background-color: #f8f9fa;
    border-left: 3px solid var(--blue);
}

    .ai-suggestion:hover[b-zx7ppj7tdk] {
        background-color: #e9ecef;
    }

.mapping-dropdown[b-zx7ppj7tdk] {
    min-width: 200px;
}

.dropdown-menu[b-zx7ppj7tdk] {
    max-height: 300px;
    overflow-y: auto;
}
.tooltip-container[b-zx7ppj7tdk] {
    position: relative;
    display: inline-block;
}


.custom-tooltip[b-zx7ppj7tdk] {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    min-width: 280px;
    max-width: 320px;
    z-index: 1050;
    margin-bottom: 8px;
    animation: tooltipFadeIn-b-zx7ppj7tdk 0.2s ease-out;
}

    .custom-tooltip[b-zx7ppj7tdk]::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: var(--white);
    }

    .custom-tooltip[b-zx7ppj7tdk]::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 7px solid transparent;
        border-top-color: #dee2e6;
        margin-top: 1px;
    }

.tooltip-header[b-zx7ppj7tdk] {
    background: linear-gradient(135deg, var(--blue), var(--primary));
    color: var(--white);
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-content[b-zx7ppj7tdk] {
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.4;
}

    .tooltip-content p[b-zx7ppj7tdk] {
        margin-bottom: 8px;
        color: #495057;
    }

    .tooltip-content small[b-zx7ppj7tdk] {
        color: #6c757d;
        font-size: 0.75rem;
    }

@keyframes tooltipFadeIn-b-zx7ppj7tdk {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
@media (max-width: 768px) {
    .custom-tooltip[b-zx7ppj7tdk] {
        min-width: 240px;
        max-width: 280px;
    }
}

/* Confidence Badge Styles */
.confidence-badge[b-zx7ppj7tdk] {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 6px !important;
    border-radius: 9px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    /* cursor: help !important; */
}

.confidence-badge-high[b-zx7ppj7tdk] {
    background: #D1FAE5 !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}

.confidence-badge-medium[b-zx7ppj7tdk] {
    background: #FEF3C7 !important;
    color: var(--brown) !important;
    border: 1px solid var(--warning) !important;
}

.confidence-badge-low[b-zx7ppj7tdk] {
    background: #FEE2E2 !important;
    color: var(--danger) !important;
    border: 1px solid var(--danger) !important;
}

.confidence-badge-manual[b-zx7ppj7tdk] {
    background: #DBEAFE !important;
    color: var(--blue) !important;
    border: 1px solid var(--blue) !important;
}

.confidence-badge-unknown[b-zx7ppj7tdk] {
    background: #F3F4F6 !important;
    color: #4B5563 !important;
    border: 1px solid #9CA3AF !important;
}

/* Description Cell - Text Truncation */
.accounts-content .description-cell[b-zx7ppj7tdk] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}

/* Account Name Cell - Text Wrapping */
.accounts-content .account-name-cell[b-zx7ppj7tdk] {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 200px;
    min-width: 150px;
}
/* /Components/Pages/Companies/View/Tabs/CompanyDetailsView.razor.rz.scp.css */
/* Company Details View Styling */
.company-details-container[b-7ppmo4aedd] {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    min-height: 100vh;
    /* max-width: 100%; */
}

/* Loading States */
.loading-container[b-7ppmo4aedd] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.error-container[b-7ppmo4aedd] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
}

/* Header with Hamburger Menu and Breadcrumb */
.page-header[b-7ppmo4aedd] {
    padding-bottom: 7px;
    margin-bottom: 1rem;
    position: relative;
}

/* Full-width border using pseudo-element */
.page-header[b-7ppmo4aedd]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}

.header-content[b-7ppmo4aedd] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger-menu[b-7ppmo4aedd] {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    font-size: 18px;
    padding: 0;
}

.hamburger-menu:hover[b-7ppmo4aedd] {
    color: #111827;
}

.header-breadcrumb[b-7ppmo4aedd] {
    flex: 1;
}

.breadcrumb-navigation[b-7ppmo4aedd] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb-back-btn[b-7ppmo4aedd] {
    background: #E0F2FE;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--blue);
    /* font-size: 14px; */
    padding: 5px;
    border-radius: 10px
}

.breadcrumb-back-btn:hover[b-7ppmo4aedd] {
    color: #374151;
}

.breadcrumb-path[b-7ppmo4aedd] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-link[b-7ppmo4aedd]{
    color: #999999;
    text-decoration: none;
    font-weight: 400;
    padding: 5px 8px;
    border: 1px solid #E4E4E7;
    border-radius: 20px;
}

.breadcrumb-link:hover[b-7ppmo4aedd] {
    color: #999999;
    text-decoration: none;
}

.breadcrumb-separator[b-7ppmo4aedd] {
    color: #9ca3af;
    /* font-size: 14px; */
    width: 20px;
    height: 20px;
}

.breadcrumb-current[b-7ppmo4aedd] {
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 8px;
    border: 1px solid #E4E4E7;
    border-radius: 20px;
    background-color: #F8F8F8;
}



/* Company Header Section */
.company-header-section[b-7ppmo4aedd] {
    margin-bottom: 1rem;
    /* padding-left: 10px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.company-title[b-7ppmo4aedd] {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.company-logo-small[b-7ppmo4aedd] {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

/* Generic company logo (48px max) */
.company-logo[b-7ppmo4aedd] {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.company-logo-small-placeholder[b-7ppmo4aedd] {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
}

/* Last Sync Info Styling */
.last-sync-info[b-7ppmo4aedd] {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 1rem;
    white-space: nowrap;
}

.last-sync-info i[b-7ppmo4aedd] {
    font-size: 1rem;
    color: #6c757d;
}

.last-sync-label[b-7ppmo4aedd] {
    font-weight: 600;
    font-size: 1rem;
    color: #374151;
}

.last-sync-time[b-7ppmo4aedd] {
    font-size: 1rem;
    color: #6c757d;
}

/* Tabs Section */
.tabs-section[b-7ppmo4aedd] {
    margin-bottom: 1.5rem;
}
.company-tabs-section[b-7ppmo4aedd] {
    /* padding: 1rem; */
    background-color: #F8F8F8;
}
.nav-tabs .nav-link[b-7ppmo4aedd] {
    border: none;
    background: none;
    color: #6c757d;
    font-weight: 500;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-tabs .nav-link:hover[b-7ppmo4aedd] {
    background-color: #F8F8F8;
    border-color: transparent;
}

.nav-tabs .custom-tab.active[b-7ppmo4aedd]{
    color: var(--primary);
    background-color: #F8F8F8;
    border: 1px solid #dee2e6;
    font-weight: 600;
    border-bottom: none;
}

.action-buttons .btn[b-7ppmo4aedd] {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.tooltip-container[b-7ppmo4aedd] {
    position: relative;
    display: inline-block;
}

.custom-tooltip[b-7ppmo4aedd] {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    min-width: 280px;
    max-width: 320px;
    z-index: 1050;
    margin-bottom: 8px;
    animation: tooltipFadeIn-b-7ppmo4aedd 0.2s ease-out;
}

    .custom-tooltip[b-7ppmo4aedd]::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: var(--white);
    }

    .custom-tooltip[b-7ppmo4aedd]::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 7px solid transparent;
        border-top-color: #dee2e6;
        margin-top: 1px;
    }

.tooltip-header[b-7ppmo4aedd] {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-content[b-7ppmo4aedd] {
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.4;
}

    .tooltip-content p[b-7ppmo4aedd] {
        margin-bottom: 8px;
        color: #495057;
    }

    .tooltip-content small[b-7ppmo4aedd] {
        color: var(--secondary);
        font-size: 0.75rem;
    }

@keyframes tooltipFadeIn-b-7ppmo4aedd {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
@media (max-width: 768px) {
    .custom-tooltip[b-7ppmo4aedd] {
        min-width: 240px;
        max-width: 280px;
    }
}

/* Mapping Button Styles */
.mapping-button[b-7ppmo4aedd] {
    min-width: 180px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.mapping-button:hover[b-7ppmo4aedd] {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mapping-button i[b-7ppmo4aedd] {
    font-size: 1rem;
}
/* /Components/Pages/Companies/View/Tabs/MappedAccountsTab.razor.rz.scp.css */
/* ============ ACCOUNTS TAB STYLING ============ */

/* Search Input Group */
.accounts-content .input-group .form-control[b-pbforaixee] {
    border-color: #ced4da;
    font-size: 0.95rem;
}

.accounts-content .input-group .form-control:focus[b-pbforaixee] {
    border-color: var(--primary);
    box-shadow: none;
}

.accounts-content .input-group-text[b-pbforaixee] {
    border-color: #ced4da;
    color: var(--secondary);
}

/* Search Row Styling */
.accounts-content .d-flex.gap-2[b-pbforaixee] {
    align-items: center;
}

.accounts-content .d-flex.gap-2 .btn[b-pbforaixee] {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.accounts-content .d-flex.gap-2 .btn i[b-pbforaixee] {
    font-size: 0.875rem;
}

/* Select All and Pagination Info */
.accounts-content .pagination-info[b-pbforaixee] {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
}

.accounts-content .form-check[b-pbforaixee] {
    margin-bottom: 0;
}

.accounts-content .form-check-label[b-pbforaixee] {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

.accounts-content .form-check-input[b-pbforaixee] {
    cursor: pointer;
}

.accounts-content .form-check-input:focus[b-pbforaixee] {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.25);
}

.accounts-content .form-check-input:checked[b-pbforaixee] {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Table Styling */
.accounts-content .table[b-pbforaixee] {
    background-color: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.accounts-content .table thead th[b-pbforaixee] {
    background-color: #f8f9fa;
    /* border-bottom: 2px solid #dee2e6; */
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    padding: 12px;
    white-space: nowrap;
    user-select: none;
}

.accounts-content .table thead th[role="button"][b-pbforaixee] {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.accounts-content .table thead th[role="button"]:hover[b-pbforaixee] {
    background-color: #e9ecef;
}

.accounts-content .table tbody td[b-pbforaixee] {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.accounts-content .table tbody tr:last-child td[b-pbforaixee] {
    border-bottom: none;
}

.accounts-content .table tbody tr:hover[b-pbforaixee] {
    background-color: #f8f9fa;
}

.accounts-content .table tbody tr.table-active[b-pbforaixee] {
    background-color: #e8f5e8;
}

/* System Badges - Outline Style */
.accounts-content .badge-outline-system[b-pbforaixee] {
    background-color: transparent !important;
    border: 1.5px solid;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
}

.accounts-content .badge-sap[b-pbforaixee] {
    border-color: var(--blue);
    color: var(--blue);
}

.accounts-content .badge-tripletex[b-pbforaixee] {
    border-color: var(--primary);
    color: var(--primary);
}

.accounts-content .badge-poweroffice[b-pbforaixee] {
    border-color: var(--blue);
    color: var(--blue);
}

.accounts-content .badge-visma[b-pbforaixee] {
    border-color: var(--warning); 
    color: var(--warning);
}

.accounts-content .badge-fortnox[b-pbforaixee] {
    border-color: var(--danger);
    color: var(--danger);
}

.accounts-content .badge-freshbooks[b-pbforaixee] {
    border-color: var(--purple);
    color: var(--purple);
}

.accounts-content .badge-oracle[b-pbforaixee] {
    border-color: var(--orange);
    color: var(--orange);
}

.accounts-content .badge-default[b-pbforaixee] {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Status Badges */
.accounts-content .badge[b-pbforaixee] {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25em 0.5em;
    border-radius: 0.375rem;
}

/* Outline badges */
.accounts-content .badge.border-success[b-pbforaixee] {
    background-color: transparent !important;
    border: 1.5px solid var(--primary) !important;
}

.accounts-content .badge.text-success[b-pbforaixee] {
    color: var(--primary) !important;
}

.accounts-content .badge.border-warning[b-pbforaixee] {
    background-color: transparent !important;
    border: 1.5px solid var(--warning) !important;
}

.accounts-content .badge.text-warning[b-pbforaixee] {
    color: #856404 !important;
}

.accounts-content .badge.border-secondary[b-pbforaixee] {
    background-color: transparent !important;
    border: 1.5px solid var(--secondary) !important;
}

.accounts-content .badge.text-secondary[b-pbforaixee] {
    color: var(--secondary) !important;
}

.accounts-content .badge.bg-light[b-pbforaixee] {
    background-color: #e9ecef !important;
    color: var(--secondary);
    border: 1px solid #ced4da;
}

/* Dropdown Actions */
.accounts-content .dropdown-toggle[b-pbforaixee] {
    border: 1px solid #ced4da;
    background-color: white;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.accounts-content .dropdown-toggle:hover[b-pbforaixee],
.accounts-content .dropdown-toggle:focus[b-pbforaixee] {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.accounts-content .dropdown-menu[b-pbforaixee] {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
}

.accounts-content .dropdown-item[b-pbforaixee] {
    padding: 0.5rem 1rem;
    color: #495057;
}

.accounts-content .dropdown-item:hover[b-pbforaixee],
.accounts-content .dropdown-item:focus[b-pbforaixee] {
    background-color: #f8f9fa;
    color: #16181b;
}

.accounts-content .dropdown-item.text-danger:hover[b-pbforaixee] {
    background-color: #f5c6cb;
    color: var(--danger);
}

.accounts-content .dropdown-divider[b-pbforaixee] {
    margin: 0.5rem 0;
}

.accounts-content .actions-button[b-pbforaixee] {
    border: none !important;
}

.accounts-content .actions-button:hover[b-pbforaixee] {
    background: none;
    color: #6c757d;
}

/* Pagination Styling */
.accounts-content .pagination[b-pbforaixee] {
    justify-content: center;
}

.page-link[b-pbforaixee] {
    color: var(--primary);
    border-color: #dee2e6;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.page-link:hover[b-pbforaixee] {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: var(--primary); 
}

.page-item.active .page-link[b-pbforaixee] {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-item.disabled .page-link[b-pbforaixee] {
    color: var(--secondary);
    background-color: var(--white);
    border-color: #dee2e6;
}

/* Loading Overlay */
.accounts-content .spinner-border[b-pbforaixee] {
    width: 2rem;
    height: 2rem;
}

/* Search Highlighting */
.accounts-content mark[b-pbforaixee] {
    background-color: #fff3cd !important;
    color: #856404;
    padding: 0.1em 0.2em;
    border-radius: 0.2em;
}

/* Improve visual hierarchy */
.accounts-content .form-control[b-pbforaixee]::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Responsive Design for Accounts Tab */
@media (max-width: 768px) {
    .accounts-content .table thead th[b-pbforaixee],
    .accounts-content .table tbody td[b-pbforaixee] {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .accounts-content .badge[b-pbforaixee] {
        font-size: 0.7rem;
        padding: 0.2em 0.4em;
    }
    
    .accounts-content .btn[b-pbforaixee] {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Table responsive improvements for Accounts Tab */
@media (max-width: 992px) {
    .accounts-content .table td:nth-child(6)[b-pbforaixee], /* Tags column */
    .accounts-content .table th:nth-child(6)[b-pbforaixee] {
        display: none;
    }
}

@media (max-width: 768px) {
    .accounts-content .table td:nth-child(4)[b-pbforaixee], /* Account Type column */
    .accounts-content .table th:nth-child(4)[b-pbforaixee],
    .accounts-content .table td:nth-child(5)[b-pbforaixee], /* Mapping Status column */
    .accounts-content .table th:nth-child(5)[b-pbforaixee] {
        display: none;
    }
}

/* ============ MATCHING ACCOUNTS MODAL STYLING ============ */

/* Modal Header */
.modal-title-section[b-pbforaixee] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modal-title-section .modal-title[b-pbforaixee] {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.modal-title-section .modal-title .company-logo-small[b-pbforaixee] {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    object-fit: cover;
}

.modal-title-section .modal-title i.bi-building[b-pbforaixee] {
    font-size: 1.25rem;
}

.modal-title-section small[b-pbforaixee] {
    font-size: 0.875rem;
    color: var(--secondary);
    font-style: italic;
}

/* Modal Body */
.matching-accounts-header[b-pbforaixee]{
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
}

.matching-accounts-header h6[b-pbforaixee] {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.mapping-summary[b-pbforaixee] {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Modal Table Styling */
.modal-content .table[b-pbforaixee] {
    background-color: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.modal-content .table thead th[b-pbforaixee] {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    padding: 12px 16px;
    white-space: nowrap;
    user-select: none;
}

.modal-content .table tbody td[b-pbforaixee] {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-content .table tbody tr:last-child td[b-pbforaixee] {
    border-bottom: none;
}

.modal-content .table tbody tr:hover[b-pbforaixee] {
    background-color: #f8f9fa;
}

.modal-content .table tbody tr.table-active[b-pbforaixee] {
    background-color: #e8f5e8;
}

/* Suggested Mapping Dropdown */
.mapping-dropdown[b-pbforaixee] {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    min-width: 120px;
}

.mapping-dropdown:hover[b-pbforaixee] {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.mapping-dropdown i[b-pbforaixee] {
    color: #6c757d;
}

/* AI Confidence Indicator */
.confidence-indicator[b-pbforaixee] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
}

.confidence-text[b-pbforaixee] {
    font-size: 0.875rem;
    font-weight: 500;
}

.confidence-text.text-success[b-pbforaixee] {
    color: var(--primary) !important;
}

.confidence-text.text-warning[b-pbforaixee] {
    color: var(--warning) !important;
}

.confidence-text.text-danger[b-pbforaixee] {
    color: var(--danger) !important;
}

.confidence-bars[b-pbforaixee] {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.confidence-bar[b-pbforaixee] {
    width: 3px;
    background-color: #e9ecef;
    border-radius: 1px;
    transition: background-color 0.3s ease;
}

.confidence-bar:nth-child(1)[b-pbforaixee] { height: 6px; }
.confidence-bar:nth-child(2)[b-pbforaixee] { height: 8px; }
.confidence-bar:nth-child(3)[b-pbforaixee] { height: 10px; }
.confidence-bar:nth-child(4)[b-pbforaixee] { height: 12px; }
.confidence-bar:nth-child(5)[b-pbforaixee] { height: 14px; }

.confidence-bar.active[b-pbforaixee] {
    background-color: var(--blue);
}

/* User Assignment Styling */
.mapping-with-user[b-pbforaixee] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-assignment[b-pbforaixee] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.user-avatar[b-pbforaixee] {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
}

.user-name[b-pbforaixee] {
    color: var(--secondary);
    font-weight: 500;
}

/* Modal Footer */
.modal-footer[b-pbforaixee] {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
}

.modal-footer .btn[b-pbforaixee] {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.modal-footer .btn-primary[b-pbforaixee] {
    background-color: var(--primary);
    border-color: var(--primary);
}

.modal-footer .btn-primary:hover[b-pbforaixee] {
    background-color: var(--primary);
    border-color: var(--primary);
}

.modal-footer .btn-outline-secondary[b-pbforaixee] {
    color: var(--secondary);
    border-color: var(--secondary);
}

.modal-footer .btn-outline-secondary:hover[b-pbforaixee] {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* System badges in modal */
.modal-content .badge-outline-system[b-pbforaixee] {
    background-color: transparent !important;
    border: 1.5px solid;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
}

.modal-content .badge-sap[b-pbforaixee] {
    border-color: var(--blue);
    color: var(--blue);
}

.modal-content .badge-tripletex[b-pbforaixee] {
    border-color: var(--primary);
    color: var(--primary);
}

.modal-content .badge-oracle[b-pbforaixee] {
    border-color: var(--orange);
    color: var(--orange);   
}

.modal-content .badge-freshbooks[b-pbforaixee] {
    border-color: var(--purple);
    color: var(--purple);
}

.modal-content .badge-default[b-pbforaixee] {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Form controls in modal */
.modal-content .form-check-input[b-pbforaixee] {
    cursor: pointer;
}

.modal-content .form-check-input:focus[b-pbforaixee] {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.25);
}

.modal-content .form-check-input:checked[b-pbforaixee] {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Action buttons in modal table */
.modal-content .btn-outline-secondary.btn-sm[b-pbforaixee] {
    border: 1px solid #dee2e6;
    color: var(--secondary);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.modal-content .btn-outline-secondary.btn-sm:hover[b-pbforaixee] {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: var(--secondary);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-dialog.modal-xl[b-pbforaixee] {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-content .table thead th[b-pbforaixee],
    .modal-content .table tbody td[b-pbforaixee] {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .mapping-dropdown[b-pbforaixee] {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        min-width: 100px;
    }
    
    .confidence-bars[b-pbforaixee] {
        height: 12px;
    }
    
    .confidence-bar[b-pbforaixee] {
        width: 2px;
    }
    
    .confidence-bar:nth-child(1)[b-pbforaixee] { height: 4px; }
    .confidence-bar:nth-child(2)[b-pbforaixee] { height: 6px; }
    .confidence-bar:nth-child(3)[b-pbforaixee] { height: 8px; }
    .confidence-bar:nth-child(4)[b-pbforaixee] { height: 10px; }
    .confidence-bar:nth-child(5)[b-pbforaixee] { height: 12px; }
    
    .confidence-text[b-pbforaixee] {
        font-size: 0.8rem;
    }
}


.ai-suggestion[b-pbforaixee] {
    background-color: #f8f9fa;
    border-left: 3px solid var(--blue);
}

    .ai-suggestion:hover[b-pbforaixee] {
        background-color: #e9ecef;
    }

.mapping-dropdown[b-pbforaixee] {
    min-width: 200px;
}

.dropdown-menu[b-pbforaixee] {
    max-height: 300px;
    overflow-y: auto;
}

.tooltip-container[b-pbforaixee] {
    position: relative;
    display: inline-block;
}

.custom-tooltip[b-pbforaixee] {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    min-width: 280px;
    max-width: 320px;
    z-index: 1050;
    margin-bottom: 8px;
    animation: tooltipFadeIn-b-pbforaixee 0.2s ease-out;
}

    .custom-tooltip[b-pbforaixee]::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: var(--white);
    }

    .custom-tooltip[b-pbforaixee]::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 7px solid transparent;
        border-top-color: #dee2e6;
        margin-top: 1px;
    }

.tooltip-header[b-pbforaixee] {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-content[b-pbforaixee] {
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.4;
}

    .tooltip-content p[b-pbforaixee] {
        margin-bottom: 8px;
        color: #495057;
    }

    .tooltip-content small[b-pbforaixee] {
        color: #6c757d;
        font-size: 0.75rem;
    }

@keyframes tooltipFadeIn-b-pbforaixee {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
@media (max-width: 768px) {
    .custom-tooltip[b-pbforaixee] {
        min-width: 240px;
        max-width: 280px;
    }
}

.tooltip-container[b-pbforaixee] {
    position: relative;
    display: inline-block;
}


/* Confidence Badge Styles */
.confidence-badge[b-pbforaixee] {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 6px !important;
    border-radius: 9px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    /* cursor: help !important; */
}

.confidence-badge-high[b-pbforaixee] {
    background: #D1FAE5 !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}

.confidence-badge-medium[b-pbforaixee] {
    background: #FEF3C7 !important;
    color: var(--brown) !important;
    border: 1px solid var(--warning) !important;
}

.confidence-badge-low[b-pbforaixee] {
    background: #FEE2E2 !important;
    color: var(--danger) !important;
    border: 1px solid var(--danger) !important;
}

.confidence-badge-manual[b-pbforaixee] {
    background: #DBEAFE !important;
    color: var(--blue) !important;
    border: 1px solid var(--blue) !important;
}

.confidence-badge-unknown[b-pbforaixee] {
    background: #F3F4F6 !important;
    color: #4B5563 !important;
    border: 1px solid #9CA3AF !important;
}

/* Description Cell - Text Truncation */
.accounts-content .description-cell[b-pbforaixee] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}

/* Account Name Cell - Text Wrapping */
.accounts-content .account-name-cell[b-pbforaixee] {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 200px;
    min-width: 150px;
}
/* /Components/Pages/Companies/View/Tabs/OverviewTab.razor.rz.scp.css */

/* Metric Cards - 5 in one row */
.metric-card[b-oqykn961xv] {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    height: 100%;
}

.metric-card:hover[b-oqykn961xv] {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.metric-header[b-oqykn961xv] {
    margin-bottom: 0.75rem;
}

.metric-label[b-oqykn961xv] {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value[b-oqykn961xv] {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.metric-change[b-oqykn961xv] {
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.metric-change.positive[b-oqykn961xv] {
    color: #059669;
}

.metric-change.negative[b-oqykn961xv] {
    color: #dc2626;
}

.metric-change i[b-oqykn961xv] {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

/* Chart Cards */
.chart-card[b-oqykn961xv] {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    height: 100%;
}

.chart-header[b-oqykn961xv] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.chart-header h6[b-oqykn961xv] {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.95rem;
}
.chart-controls[b-oqykn961xv] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.chart-controls .form-select[b-oqykn961xv] {
    border-radius: 6px;
    font-size: 14px;
    padding: 0.25rem 0.5rem;
    border-color: #d1d5db;
    min-width: 133px;
}
.bi-arrows-angle-expand[b-oqykn961xv]{
    color: #009688 !important;
}
.chart-content[b-oqykn961xv] {
    height: 250px;
}

.chart-placeholder[b-oqykn961xv] {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background: #f9fafb; */
    background-color: #fff;
    border-radius: 6px;
    border: 1px dashed #d1d5db;
}

.chart-placeholder i[b-oqykn961xv] {
    margin-bottom: 0.5rem;
}

.chart-placeholder p[b-oqykn961xv] {
    font-size: 0.75rem;
}

/* Chart Image Styling */
.chart-placeholder .img-fluid[b-oqykn961xv] {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Mapping Progress Card */
.mapping-progress-card[b-oqykn961xv] {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    height: 100%;
}

.mapping-header[b-oqykn961xv] {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.mapping-header h6[b-oqykn961xv] {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.875rem;
}

.mapping-content[b-oqykn961xv] {
    height: calc(100% - 3rem);
}

.mapping-stats[b-oqykn961xv] {
    font-size: 0.75rem;
    color: #6b7280;
}

.mapping-list[b-oqykn961xv] {
    max-height: 120px;
    overflow-y: auto;
}

.mapping-item[b-oqykn961xv] {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.75rem;
}

.mapping-item:last-child[b-oqykn961xv] {
    border-bottom: none;
}

.mapping-code[b-oqykn961xv] {
    /* font-family: 'Courier New', monospace; */
    color: #374151;
    /* font-weight: 500; */
    flex: 1;
}

.mapping-item .badge[b-oqykn961xv] {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
}

.mapping-item .btn-sm[b-oqykn961xv] {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
}

.mapping-item .btn-link[b-oqykn961xv] {
    color: #3b82f6;
    text-decoration: none;
}

.mapping-item .btn-link:hover[b-oqykn961xv] {
    text-decoration: underline;
}

/* Progress Bar Customization */
.progress[b-oqykn961xv] {
    border-radius: 10px;
    background-color: #f3f4f6;
}

.progress-bar[b-oqykn961xv] {
    border-radius: 10px;
}

/* Matching Accounts Button Gradient */
.btn-warning[b-oqykn961xv]{
    background: linear-gradient(135deg, #FFEEDF 0%, #FFB774 100%);
    border: 0.5px solid #FFB468;
    color: #8B4513;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    /* border-radius: 20px; */
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* .btn-warning.btn-sm:hover {
    background: linear-gradient(135deg, #FFE4D1 0%, #FF9F5A 100%);
    border-color: #FF9F5A;
    color: #7A3E0F;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 180, 116, 0.3);
} */

.btn-warning:active[b-oqykn961xv] {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(255, 180, 116, 0.2);
}

.btn-warning i[b-oqykn961xv] {
    font-size: 0.75rem;
}

/* Custom width utility */
.w-55[b-oqykn961xv] {
    width: 50% !important;
}

/* Color Utilities */
.text-success[b-oqykn961xv] {
    color: #059669 !important;
}

.text-danger[b-oqykn961xv] {
    color: #dc2626 !important;
}

.text-warning[b-oqykn961xv] {
    color: #d97706 !important;
}

.text-primary[b-oqykn961xv] {
    color: #3b82f6 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-details-container[b-oqykn961xv] {
        padding: 1rem;
    }
    
    .company-title[b-oqykn961xv] {
        font-size: 1.5rem;
    }
    
    .company-logo-small[b-oqykn961xv],
    .company-logo-small-placeholder[b-oqykn961xv] {
        width: 24px;
        height: 24px;
    }
    
    .metric-card[b-oqykn961xv],
    .chart-card[b-oqykn961xv],
    .mapping-progress-card[b-oqykn961xv] {
        padding: 1rem;
    }
    
    .metric-value[b-oqykn961xv] {
        font-size: 1.25rem;
    }
    
    .chart-content[b-oqykn961xv] {
        height: 200px;
    }
    
    .tabs-section .d-flex[b-oqykn961xv] {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .action-buttons[b-oqykn961xv] {
        margin-top: 1rem;
        width: 100%;
    }
    
    .action-buttons .btn[b-oqykn961xv] {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .chart-header[b-oqykn961xv] {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-controls[b-oqykn961xv] {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .chart-controls .form-select[b-oqykn961xv] {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .company-header-section .d-flex[b-oqykn961xv] {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .last-sync-text[b-oqykn961xv] {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    /* Stack metric cards on mobile */
    .row.g-3 .col[b-oqykn961xv] {
        min-width: 100%;
        margin-bottom: 0.75rem;
    }
}

/* Animation for loading states */
@keyframes fadeIn-b-oqykn961xv {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.metric-card[b-oqykn961xv],
.chart-card[b-oqykn961xv],
.mapping-progress-card[b-oqykn961xv] {    
    animation: fadeIn-b-oqykn961xv 0.6s ease-out;
}
/* /Components/Pages/Companies/View/Tabs/UnmappedAccountsTab.razor.rz.scp.css */
/* ============ ACCOUNTS TAB STYLING ============ */

/* Approval Radio Button Styling */
.form-check-input[type="radio"][b-hy0qj9qz5k] {
    width: 1.2rem !important;
    height: 1.2rem !important;
    border: 2px solid #6c757d;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.form-check-input[type="radio"]:checked[b-hy0qj9qz5k] {
    background-color: #28a745;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-check-input[type="radio"]:hover:not(:disabled)[b-hy0qj9qz5k] {
    border-color: #28a745;
    transform: scale(1.05);
}

.form-check-input[type="radio"]:disabled[b-hy0qj9qz5k] {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-check-label[b-hy0qj9qz5k] {
    font-weight: 500;
    color: #28a745;
    cursor: pointer;
    user-select: none;
}

.form-check-label:hover[b-hy0qj9qz5k] {
    color: #1e7e34;
}

/* Search Input Group */
.accounts-content .input-group .form-control[b-hy0qj9qz5k] {
    border-color: #ced4da;
    font-size: 0.95rem;
}

.accounts-content .input-group .form-control:focus[b-hy0qj9qz5k] {
    border-color: #009688;
    box-shadow: none;
}

.accounts-content .input-group-text[b-hy0qj9qz5k] {
    border-color: #ced4da;
    color: #6c757d;
}

/* Search Row Styling */
.accounts-content .d-flex.gap-2[b-hy0qj9qz5k] {
    align-items: center;
}

.accounts-content .d-flex.gap-2 .btn[b-hy0qj9qz5k] {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.accounts-content .d-flex.gap-2 .btn i[b-hy0qj9qz5k] {
    font-size: 0.875rem;
}

/* Select All and Pagination Info */
.accounts-content .pagination-info[b-hy0qj9qz5k] {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.accounts-content .form-check[b-hy0qj9qz5k] {
    margin-bottom: 0;
}

.accounts-content .form-check-label[b-hy0qj9qz5k] {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

.accounts-content .form-check-input[b-hy0qj9qz5k] {
    cursor: pointer;
}

.accounts-content .form-check-input:focus[b-hy0qj9qz5k] {
    border-color: #009688;
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.25);
}

.accounts-content .form-check-input:checked[b-hy0qj9qz5k] {
    background-color: #009688;
    border-color: #009688;
}

/* Table Styling */
.accounts-content .table[b-hy0qj9qz5k] {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.accounts-content .table thead th[b-hy0qj9qz5k] {
    background-color: #f8f9fa;
    /* border-bottom: 2px solid #dee2e6; */
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    padding: 12px;
    white-space: nowrap;
    user-select: none;
}

.accounts-content .table thead th[role="button"][b-hy0qj9qz5k] {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.accounts-content .table thead th[role="button"]:hover[b-hy0qj9qz5k] {
    background-color: #e9ecef;
}

.accounts-content .table tbody td[b-hy0qj9qz5k] {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.accounts-content .table tbody tr:last-child td[b-hy0qj9qz5k] {
    border-bottom: none;
}

.accounts-content .table tbody tr:hover[b-hy0qj9qz5k] {
    background-color: #f8f9fa;
}

.accounts-content .table tbody tr.table-active[b-hy0qj9qz5k] {
    background-color: #e8f5e8;
}

/* System Badges - Outline Style */
.accounts-content .badge-outline-system[b-hy0qj9qz5k] {
    background-color: transparent !important;
    border: 1.5px solid;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
}

.accounts-content .badge-sap[b-hy0qj9qz5k] {
    border-color: var(--blue);
    color: var(--blue);
}

.accounts-content .badge-tripletex[b-hy0qj9qz5k] {
    border-color: var(--primary);
    color: var(--primary);
}

.accounts-content .badge-poweroffice[b-hy0qj9qz5k] {
    border-color: var(--blue);
    color: var(--blue);
}

.accounts-content .badge-visma[b-hy0qj9qz5k] {
    border-color: var(--warning); 
    color: var(--warning);
}

.accounts-content .badge-fortnox[b-hy0qj9qz5k] {
    border-color: var(--danger);
    color: var(--danger);
}

.accounts-content .badge-freshbooks[b-hy0qj9qz5k] {
    border-color: var(--purple);
    color: var(--purple);
}

.accounts-content .badge-oracle[b-hy0qj9qz5k] {
    border-color: var(--orange);
    color: var(--orange);
}

.accounts-content .badge-default[b-hy0qj9qz5k] {
    border-color: var(--secondary);
    color: var(--secondary);
}


/* Status Badges */
.accounts-content .badge[b-hy0qj9qz5k] {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25em 0.5em;
    border-radius: 0.375rem;
}

/* AI Badge Styling */
.accounts-content .ai-badge[b-hy0qj9qz5k] {
    background: #ffa83bad;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 9px;
    border-radius: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    box-shadow: 0 1px 2px rgba(255, 154, 86, 0.2);
    border: none;
    line-height: 1;
    height: 1.2em;
}

.accounts-content .ai-badge .ai-icon[b-hy0qj9qz5k] {
    font-size: 0.5rem;
    color: white;
    line-height: 1;
}

/* Outline badges */
.accounts-content .badge.border-success[b-hy0qj9qz5k] {
    background-color: transparent !important;
    border: 1.5px solid var(--primary) !important;
}

.accounts-content .badge.text-success[b-hy0qj9qz5k] {
    color: var(--primary) !important;
}

.accounts-content .badge.border-warning[b-hy0qj9qz5k] {
    background-color: transparent !important;
    border: 1.5px solid var(--warning) !important;
}

.accounts-content .badge.text-warning[b-hy0qj9qz5k] {
    color: #856404 !important;
}

.accounts-content .badge.border-secondary[b-hy0qj9qz5k] {
    background-color: transparent !important;
    border: 1.5px solid var(--secondary) !important;
}

.accounts-content .badge.text-secondary[b-hy0qj9qz5k] {
    color: var(--secondary) !important;
}

.accounts-content .badge.bg-light[b-hy0qj9qz5k] {
    background-color: #e9ecef !important;
    color: var(--secondary);
    border: 1px solid #ced4da;
}


/* Dropdown Actions */
.accounts-content .dropdown-toggle[b-hy0qj9qz5k] {
    border: 1px solid #ced4da;
    background-color: white;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.accounts-content .dropdown-toggle:hover[b-hy0qj9qz5k],
.accounts-content .dropdown-toggle:focus[b-hy0qj9qz5k] {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.accounts-content .dropdown-menu[b-hy0qj9qz5k] {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
}

.accounts-content .dropdown-item[b-hy0qj9qz5k] {
    padding: 0.5rem 1rem;
    color: #495057;
}

.accounts-content .dropdown-item:hover[b-hy0qj9qz5k],
.accounts-content .dropdown-item:focus[b-hy0qj9qz5k] {
    background-color: #f8f9fa;
    color: #16181b;
}

.accounts-content .dropdown-item.text-danger:hover[b-hy0qj9qz5k] {
    background-color: #f5c6cb;
    color: var(--danger);
}

.accounts-content .dropdown-divider[b-hy0qj9qz5k] {
    margin: 0.5rem 0;
}

.accounts-content .actions-button[b-hy0qj9qz5k] {
    border: none !important;
}

.accounts-content .actions-button:hover[b-hy0qj9qz5k] {
    background: none;
    color: #6c757d;
}

/* Pagination Styling */
.accounts-content .pagination[b-hy0qj9qz5k] {
    justify-content: center;
}

.page-link[b-hy0qj9qz5k] {
    color: var(--primary);
    border-color: #dee2e6;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.page-link:hover[b-hy0qj9qz5k] {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: var(--primary);
}

.page-item.active .page-link[b-hy0qj9qz5k] {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-item.disabled .page-link[b-hy0qj9qz5k] {
    color: var(--secondary);
    background-color: #fff;
    border-color: #dee2e6;
}

/* Loading Overlay */
.accounts-content .spinner-border[b-hy0qj9qz5k] {
    width: 2rem;
    height: 2rem;
}

/* Search Highlighting */
.accounts-content mark[b-hy0qj9qz5k] {
    background-color: #fff3cd !important;
    color: var(--warning);
    padding: 0.1em 0.2em;
    border-radius: 0.2em;
}

/* Improve visual hierarchy */
.accounts-content .form-control[b-hy0qj9qz5k]::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Responsive Design for Accounts Tab */
@media (max-width: 768px) {
    .accounts-content .table thead th[b-hy0qj9qz5k],
    .accounts-content .table tbody td[b-hy0qj9qz5k] {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .accounts-content .badge[b-hy0qj9qz5k] {
        font-size: 0.7rem;
        padding: 0.2em 0.4em;
    }
    
    .accounts-content .btn[b-hy0qj9qz5k] {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Table responsive improvements for Accounts Tab */
@media (max-width: 992px) {
    .accounts-content .table td:nth-child(6)[b-hy0qj9qz5k], /* Tags column */
    .accounts-content .table th:nth-child(6)[b-hy0qj9qz5k] {
        display: none;
    }
}

@media (max-width: 768px) {
    .accounts-content .table td:nth-child(4)[b-hy0qj9qz5k], /* Account Type column */
    .accounts-content .table th:nth-child(4)[b-hy0qj9qz5k],
    .accounts-content .table td:nth-child(5)[b-hy0qj9qz5k], /* Mapping Status column */
    .accounts-content .table th:nth-child(5)[b-hy0qj9qz5k] {
        display: none;
    }
}

/* ============ MATCHING ACCOUNTS MODAL STYLING ============ */

/* Modal Header */
.modal-title-section[b-hy0qj9qz5k] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modal-title-section .modal-title[b-hy0qj9qz5k] {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.modal-title-section .modal-title .company-logo-small[b-hy0qj9qz5k] {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    object-fit: cover;
}

.modal-title-section .modal-title i.bi-building[b-hy0qj9qz5k] {
    font-size: 1.25rem;
}

.modal-title-section small[b-hy0qj9qz5k] {
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
}

/* Modal Body */
.matching-accounts-header[b-hy0qj9qz5k]{
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
}

.matching-accounts-header h6[b-hy0qj9qz5k] {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.mapping-summary[b-hy0qj9qz5k] {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Modal Table Styling */
.modal-content .table[b-hy0qj9qz5k] {
    background-color: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.modal-content .table thead th[b-hy0qj9qz5k] {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    padding: 12px 16px;
    white-space: nowrap;
    user-select: none;
}

.modal-content .table tbody td[b-hy0qj9qz5k] {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-content .table tbody tr:last-child td[b-hy0qj9qz5k] {
    border-bottom: none;
}

.modal-content .table tbody tr:hover[b-hy0qj9qz5k] {
    background-color: #f8f9fa;
}

.modal-content .table tbody tr.table-active[b-hy0qj9qz5k] {
    background-color: #e8f5e8;
}

/* Suggested Mapping Dropdown */
.mapping-dropdown[b-hy0qj9qz5k] {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    min-width: 120px;
}

.mapping-dropdown:hover[b-hy0qj9qz5k] {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.mapping-dropdown i[b-hy0qj9qz5k] {
    color: var(--secondary);
}

/* AI Confidence Indicator */
.confidence-indicator[b-hy0qj9qz5k] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
}

.confidence-text[b-hy0qj9qz5k] {
    font-size: 0.875rem;
    font-weight: 500;
}

.confidence-text.text-success[b-hy0qj9qz5k] {
    color: var(--primary) !important;
}

.confidence-text.text-warning[b-hy0qj9qz5k] {
    color: var(--warning) !important;
}

.confidence-text.text-danger[b-hy0qj9qz5k] {
    color: var(--danger) !important;
}


.confidence-bars[b-hy0qj9qz5k] {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.confidence-bar[b-hy0qj9qz5k] {
    width: 3px;
    background-color: #e9ecef;
    border-radius: 1px;
    transition: background-color 0.3s ease;
}

.confidence-bar:nth-child(1)[b-hy0qj9qz5k] { height: 6px; }
.confidence-bar:nth-child(2)[b-hy0qj9qz5k] { height: 8px; }
.confidence-bar:nth-child(3)[b-hy0qj9qz5k] { height: 10px; }
.confidence-bar:nth-child(4)[b-hy0qj9qz5k] { height: 12px; }
.confidence-bar:nth-child(5)[b-hy0qj9qz5k] { height: 14px; }

.confidence-bar.active[b-hy0qj9qz5k] {
    background-color: var(--blue);
}

/* User Assignment Styling */
.mapping-with-user[b-hy0qj9qz5k] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-assignment[b-hy0qj9qz5k] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.user-avatar[b-hy0qj9qz5k] {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--purple);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
}

.user-name[b-hy0qj9qz5k] {
    color: var(--secondary);
    font-weight: 500;
}

/* Modal Footer */
.modal-footer[b-hy0qj9qz5k] {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
}

.modal-footer .btn[b-hy0qj9qz5k] {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.modal-footer .btn-primary[b-hy0qj9qz5k] {
    background-color: var(--primary);
    border-color: var(--primary);
}

.modal-footer .btn-primary:hover[b-hy0qj9qz5k] {
    background-color: var(--primary);
    border-color: var(--primary);
}

.modal-footer .btn-outline-secondary[b-hy0qj9qz5k] {
    color: var(--secondary);
    border-color: var(--secondary);
}

.modal-footer .btn-outline-secondary:hover[b-hy0qj9qz5k] {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

/* System badges in modal */
.modal-content .badge-outline-system[b-hy0qj9qz5k] {
    background-color: transparent !important;
    border: 1.5px solid;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
}

.modal-content .badge-sap[b-hy0qj9qz5k] {
    border-color: var(--blue);
    color: var(--blue);
}

.modal-content .badge-tripletex[b-hy0qj9qz5k] {
    border-color: var(--primary);
    color: var(--primary);
}

.modal-content .badge-oracle[b-hy0qj9qz5k] {
    border-color: var(--orange);
    color: var(--orange);
}

.modal-content .badge-freshbooks[b-hy0qj9qz5k] {
    border-color: var(--purple);
    color: var(--purple);
}

.modal-content .badge-default[b-hy0qj9qz5k] {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Form controls in modal */
.modal-content .form-check-input[b-hy0qj9qz5k] {
    cursor: pointer;
}

.modal-content .form-check-input:focus[b-hy0qj9qz5k] {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.25);
}

.modal-content .form-check-input:checked[b-hy0qj9qz5k] {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Action buttons in modal table */
.modal-content .btn-outline-secondary.btn-sm[b-hy0qj9qz5k] {
    border: 1px solid #dee2e6;
    color: var(--secondary);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.modal-content .btn-outline-secondary.btn-sm:hover[b-hy0qj9qz5k] {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-dialog.modal-xl[b-hy0qj9qz5k] {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-content .table thead th[b-hy0qj9qz5k],
    .modal-content .table tbody td[b-hy0qj9qz5k] {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .mapping-dropdown[b-hy0qj9qz5k] {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        min-width: 100px;
    }
    
    .confidence-bars[b-hy0qj9qz5k] {
        height: 12px;
    }
    
    .confidence-bar[b-hy0qj9qz5k] {
        width: 2px;
    }
    
    .confidence-bar:nth-child(1)[b-hy0qj9qz5k] { height: 4px; }
    .confidence-bar:nth-child(2)[b-hy0qj9qz5k] { height: 6px; }
    .confidence-bar:nth-child(3)[b-hy0qj9qz5k] { height: 8px; }
    .confidence-bar:nth-child(4)[b-hy0qj9qz5k] { height: 10px; }
    .confidence-bar:nth-child(5)[b-hy0qj9qz5k] { height: 12px; }
    
    .confidence-text[b-hy0qj9qz5k] {
        font-size: 0.8rem;
    }
}


.ai-suggestion[b-hy0qj9qz5k] {
    background-color: #f8f9fa;
    border-left: 3px solid var(--blue);
}

    .ai-suggestion:hover[b-hy0qj9qz5k] {
        background-color: #e9ecef;
    }

.mapping-dropdown[b-hy0qj9qz5k] {
    min-width: 200px;
}

.dropdown-menu[b-hy0qj9qz5k] {
    max-height: 300px;
    overflow-y: auto;
}

.tooltip-container[b-hy0qj9qz5k] {
    position: relative;
    display: inline-block;
}

.custom-tooltip[b-hy0qj9qz5k] {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    min-width: 280px;
    max-width: 320px;
    z-index: 1050;
    margin-bottom: 8px;
    animation: tooltipFadeIn-b-hy0qj9qz5k 0.2s ease-out;
}

    .custom-tooltip[b-hy0qj9qz5k]::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: var(--white);
    }

    .custom-tooltip[b-hy0qj9qz5k]::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 7px solid transparent;
        border-top-color: #dee2e6;
        margin-top: 1px;
    }

.tooltip-header[b-hy0qj9qz5k] {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-content[b-hy0qj9qz5k] {
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.4;
}

    .tooltip-content p[b-hy0qj9qz5k] {
        margin-bottom: 8px;
        color: #495057;
    }

    .tooltip-content small[b-hy0qj9qz5k] {
        color: #6c757d;
        font-size: 0.75rem;
    }

@keyframes tooltipFadeIn-b-hy0qj9qz5k {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
@media (max-width: 768px) {
    .custom-tooltip[b-hy0qj9qz5k] {
        min-width: 240px;
        max-width: 280px;
    }
}

.tooltip-container[b-hy0qj9qz5k] {
    position: relative;
    display: inline-block;
}


/* Confidence Badge Styles */
.confidence-badge[b-hy0qj9qz5k] {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 6px !important;
    border-radius: 9px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    /* cursor: help !important; */
}

.confidence-badge-high[b-hy0qj9qz5k] {
    background: #D1FAE5 !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}

.confidence-badge-medium[b-hy0qj9qz5k] {
    background: #FEF3C7 !important;
    color: var(--brown) !important;
    border: 1px solid var(--warning) !important;
}

.confidence-badge-low[b-hy0qj9qz5k] {
    background: #FEE2E2 !important;
    color: var(--danger) !important;
    border: 1px solid var(--danger) !important;
}

.confidence-badge-manual[b-hy0qj9qz5k] {
    background: #DBEAFE !important;
    color: var(--blue) !important;
    border: 1px solid var(--blue) !important;
}

.confidence-badge-unknown[b-hy0qj9qz5k] {
    background: #F3F4F6 !important;
    color: #4B5563 !important;
    border: 1px solid #9CA3AF !important;
}

/* Description Cell - Text Truncation */
.accounts-content .description-cell[b-hy0qj9qz5k] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}

/* Account Name Cell - Text Wrapping */
.accounts-content .account-name-cell[b-hy0qj9qz5k] {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 200px;
    min-width: 150px;
}
/* /Components/Pages/HealthCheck/HealthScreen.razor.rz.scp.css */
/* Health Check Page Styling - MudBlazor Enhanced */
.container-fluid[b-gz80sy3f3i] {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Header Styling */
.health-header[b-gz80sy3f3i] {
    padding-bottom: 7px;
    margin-bottom: 1rem;
    position: relative;
}

.health-header[b-gz80sy3f3i]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}

.health-header h5[b-gz80sy3f3i] {
    color: #1f2937;
    font-weight: 600;
}


/* Health Table Wrapper */
.health-table-wrapper[b-gz80sy3f3i] {
    display: flex;
    flex-direction: column;
    /* height: 600px; */
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    background-color: white;
}

.health-table-wrapper-accounting[b-gz80sy3f3i] {
    display: flex;
    flex-direction: column;
    /* height: 600px; */
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    background-color: white;
}
.health-table-header[b-gz80sy3f3i] {
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 20;
}

.health-table-scroll[b-gz80sy3f3i] {
    overflow-x: auto;
    /* overflow-y: auto; */
    flex: 1;
}

[b-gz80sy3f3i] .mud-chip.mud-chip-color-error {
    background-color: #fee2e2 !important;
    color: var(--danger) !important;
}
/* Fixed Table Header with Scrollable Body */
[b-gz80sy3f3i] .mud-table-container {
    position: relative;
}

[b-gz80sy3f3i] .mud-table {
    margin: 0;
}

[b-gz80sy3f3i] .mud-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa;
}

[b-gz80sy3f3i] .mud-table-head {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa;
}



/* Responsive Design */
@media (max-width: 992px) {
    .health-header h5[b-gz80sy3f3i] {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .health-header h5[b-gz80sy3f3i] {
        font-size: 1.125rem;
    }
}
/* /Components/Pages/Layout/Dashboard.razor.rz.scp.css */
/* Dashboard Component Styling */
.container-fluid[b-16pt54gthb] {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
.dashboard-container[b-16pt54gthb] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    width: 100%;
    overflow: hidden;
}

/* Header Styling */
.dashboard-header[b-16pt54gthb] {
    padding-bottom: 7px;
    margin-bottom: 1rem;
    position: relative;
}

/* Full-width border using pseudo-element */
.dashboard-header[b-16pt54gthb]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}
.dashboard-header h5[b-16pt54gthb] {
    color: #1f2937;
    font-weight: 600;
}

/* Metric Cards */
.metric-card[b-16pt54gthb] {
    background: white;
    border: 1px solid #E4E4E7;
    border-radius: 12px;
    padding: 15px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* .metric-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
} */

.metric-content[b-16pt54gthb] {
    flex: 1;
}

.metric-label[b-16pt54gthb] {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-value[b-16pt54gthb] {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-change[b-16pt54gthb] {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-change.positive[b-16pt54gthb] {
    color: var(--primary);
}

.metric-change.negative[b-16pt54gthb] {
    color: var(--danger);
}

.metric-icon[b-16pt54gthb] {
    font-size: 32px;
    color: #6b7280;
    opacity: 0.7;
}

/* Chart Cards */
.chart-card[b-16pt54gthb], .table-card[b-16pt54gthb], .insights-card[b-16pt54gthb] {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    height: 400px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.chart-header[b-16pt54gthb], .table-header[b-16pt54gthb], .insights-header[b-16pt54gthb] {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* .insights-header {
    border-bottom: 1px solid #FFE2BE;
    background: #FFE1CA;
} */

.expand-btn[b-16pt54gthb] {
    color: #6b7280;
    padding: 4px 8px;
    border: none;
    background: none;
    font-size: 16px;
}

.expand-btn:hover[b-16pt54gthb] {
    color: #374151;
    background: #f9fafb;
}
.bi-arrows-angle-expand[b-16pt54gthb] {
    color: #009688 !important;
}

.chart-title[b-16pt54gthb], .table-title[b-16pt54gthb], .insights-title[b-16pt54gthb] {
    /* font-size: 18px; */
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
}

.chart-controls[b-16pt54gthb] {
    margin-left: auto;
}


.legend-item[b-16pt54gthb] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color[b-16pt54gthb] {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
    margin-right: 8px;
}

.legend-color.blue[b-16pt54gthb] {
    background: #3b82f6;
}

.legend-color.orange[b-16pt54gthb] {
    background: #f97316;
}

.legend-text[b-16pt54gthb] {
    font-size: 13px;
    color: #374151;
}

.chart-period[b-16pt54gthb] {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.chart-content[b-16pt54gthb], .table-content[b-16pt54gthb], .insights-content[b-16pt54gthb] {
    flex: 1;
    padding: 15px;
    overflow: hidden;
    position: relative;
}

/* Revenue Chart Styling */
.chart-container[b-16pt54gthb] {
    position: relative;
    /* height: 40vh; */
    min-height: 250px;
    max-height: 400px;
    padding: 10px 0;
}

.chart-controls[b-16pt54gthb] {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.chart-legend[b-16pt54gthb] {
    display: flex;
    gap: 16px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    /* border: 1px solid #e5e7eb; */
}

.legend-item[b-16pt54gthb] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.y-axis[b-16pt54gthb] {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 25px;
    width: 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.y-label[b-16pt54gthb] {
    font-size: 11px;
    color: #6b7280;
    text-align: right;
    line-height: 1;
}

.chart-area[b-16pt54gthb] {
    position: absolute;
    left: 50px;
    right: 20px;
    top: 0;
    bottom: 25px;
}

.grid-lines[b-16pt54gthb] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-line[b-16pt54gthb] {
    height: 1px;
    background: #f3f4f6;
    width: 100%;
}

.line-chart[b-16pt54gthb] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.x-axis[b-16pt54gthb] {
    position: absolute;
    left: 50px;
    right: 20px;
    bottom: 0;
    height: 20px;
    display: flex;
    justify-content: space-between;
}

.x-label[b-16pt54gthb] {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    flex: 1;
}

/* Margin Chart */
.margin-chart[b-16pt54gthb] {
    height: 100%;
    position: relative;
    padding: 10px;
}

.margin-legend[b-16pt54gthb] {
    position: absolute;
    top: 80px;
    right:45px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    z-index: 10;
}

.legend-row[b-16pt54gthb] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.legend-dot[b-16pt54gthb] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.revenue-dot[b-16pt54gthb] {
    background: #3b82f6;
}

.opex-dot[b-16pt54gthb] {
    background: #8b5cf6;
}

.cogs-dot[b-16pt54gthb] {
    background: #f59e0b;
}

.legend-label[b-16pt54gthb] {
    color: #4b5563;
    font-weight: 500;
}

.bar-chart[b-16pt54gthb] {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 100%;
    padding: 40px 20px 20px 20px;
    margin-top: 20px;
}

.bar-item[b-16pt54gthb] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bar-item.active .bar-label[b-16pt54gthb] {
    font-weight: 600;
    color: #111827;
}

.bar-label[b-16pt54gthb] {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.bar-stack[b-16pt54gthb] {
    width: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.bar-segment[b-16pt54gthb] {
    width: 100%;
    border-radius: 2px 2px 0 0;
}

.bar-segment.revenue[b-16pt54gthb] {
    background: #3b82f6;
}

.bar-segment.opex[b-16pt54gthb] {
    background: #8b5cf6;
}

.bar-segment.cogs[b-16pt54gthb] {
    background: #f59e0b;
}

/* Table Styling */
.table-card[b-16pt54gthb] {
    height: auto;
    min-height: 400px;
}

.table-content[b-16pt54gthb] {
    overflow: auto;
}

.table thead th[b-16pt54gthb] {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    padding: 12px 16px;
    white-space: nowrap;
}

.table tbody td[b-16pt54gthb] {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.company-row:hover[b-16pt54gthb] {
    background: #f9fafb;
}

.company-cell[b-16pt54gthb] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-logo[b-16pt54gthb] {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 16px;
}

.company-name[b-16pt54gthb] {
    font-weight: 500;
    color: #111827;
}

/* Insights Panel */
.insights-card[b-16pt54gthb] {
    height: auto;
    min-height: 400px;
    background: #FEF7F0;
    border: 1px solid #FFB76B;
    border-radius: 12px;
    box-shadow: none;
}

.insights-header[b-16pt54gthb] {
    padding: 20px 20px 15px 20px;
    border-bottom: none;
    background: transparent;
}

.insights-title[b-16pt54gthb] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.insights-icon[b-16pt54gthb] {
    font-size: 20px;
    color: #FF6D00;
}

.insights-content[b-16pt54gthb] {
    padding: 0 20px 20px 20px;
    height: 100%;
}

.insight-section[b-16pt54gthb] {
    margin-bottom: 24px;
}

.insight-section:last-child[b-16pt54gthb] {
    margin-bottom: 0;
}

.insight-item[b-16pt54gthb] {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.insight-diamond[b-16pt54gthb] {
    color: #f97316;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    line-height: 1.4;
}

.insight-text[b-16pt54gthb] {
    flex: 1;
    line-height: 1.5;
}

.insight-section-title[b-16pt54gthb] {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.3;
}

.insight-desc[b-16pt54gthb] {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.company-highlight[b-16pt54gthb] {
    color: #f97316;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .metric-value[b-16pt54gthb] {
        font-size: 28px;
    }
    
    .chart-card[b-16pt54gthb], .table-card[b-16pt54gthb], .insights-card[b-16pt54gthb] {
        height: auto;
        min-height: 350px;
    }
}

/* Tablet responsiveness */
@media (max-width: 992px) {
    .chart-container[b-16pt54gthb] {
        height: 35vh;
        min-height: 220px;
        max-height: 320px;
    }
    
    .chart-legend[b-16pt54gthb] {
        font-size: 11px;
        padding: 6px 10px;
        gap: 12px;
    }
    
    .y-label[b-16pt54gthb], .x-label[b-16pt54gthb] {
        font-size: 10px;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .dashboard-container[b-16pt54gthb] {
        padding: 0 8px;
    }
    
    .metric-card[b-16pt54gthb] {
        padding: 16px;
        text-align: center;
        flex-direction: column;
        gap: 12px;
    }
    
    .metric-value[b-16pt54gthb] {
        font-size: 24px;
    }
    
    .metric-icon[b-16pt54gthb] {
        font-size: 24px;
    }
    
    .chart-container[b-16pt54gthb] {
        height: 30vh;
        min-height: 200px;
        max-height: 280px;
        padding: 5px 0;
    }
    
    .chart-controls[b-16pt54gthb] {
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .chart-legend[b-16pt54gthb] {
        flex-direction: column;
        gap: 6px;
        font-size: 10px;
        padding: 6px 8px;
    }
    
    .y-axis[b-16pt54gthb] {
        width: 35px;
    }
    
    .chart-area[b-16pt54gthb] {
        left: 40px;
    }
    
    .x-axis[b-16pt54gthb] {
        left: 40px;
    }
    
    .y-label[b-16pt54gthb], .x-label[b-16pt54gthb] {
        font-size: 9px;
    }
    
    .chart-header[b-16pt54gthb], .table-header[b-16pt54gthb], .insights-header[b-16pt54gthb] {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .bar-chart[b-16pt54gthb] {
        gap: 8px;
        height: 140px;
        padding: 30px 15px 15px 15px;
    }
    
    .bar-stack[b-16pt54gthb] {
        width: 18px;
    }
    
    .company-cell[b-16pt54gthb] {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .table tbody td[b-16pt54gthb] {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .insights-content[b-16pt54gthb] {
        padding: 16px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .chart-container[b-16pt54gthb] {
        height: 25vh;
        min-height: 180px;
        max-height: 240px;
    }
    
    .chart-legend[b-16pt54gthb] {
        font-size: 9px;
        padding: 4px 6px;
        gap: 4px;
    }
    
    .legend-item[b-16pt54gthb] {
        gap: 4px;
    }
    
    .legend-color[b-16pt54gthb] {
        width: 8px;
        height: 8px;
    }
    
    .y-axis[b-16pt54gthb] {
        width: 30px;
    }
    
    .chart-area[b-16pt54gthb], .x-axis[b-16pt54gthb] {
        left: 35px;
    }
}

/* Buttons */
.btn-outline-primary[b-16pt54gthb] {
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-outline-primary:hover[b-16pt54gthb] {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.btn-outline-secondary[b-16pt54gthb] {
    border-color: #6b7280;
    color: #6b7280;
}

.btn-outline-secondary:hover[b-16pt54gthb] {
    background-color: #6b7280;
    border-color: #6b7280;
    color: white;
}

/* Form Select */
.form-select[b-16pt54gthb] {
    font-size: 14px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
}

.form-select:focus[b-16pt54gthb] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* /Components/Pages/Layout/HeaderActions.razor.rz.scp.css */
/* Header Actions Component Styling */
.header-actions[b-7engm405qf] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Base Button Styling */
.header-actions .header-btn[b-7engm405qf] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    /* font-family: font-sans, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; */
    text-decoration: none;
    outline: none;
}

/* .header-actions .header-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
} */

/* Quben Infra Button */
.header-actions .quben-btn[b-7engm405qf] {
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.header-actions .quben-btn:hover[b-7engm405qf] {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Cube Icon Styling */
.cube-icon[b-7engm405qf] {
    width: 16px;
    height: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-face[b-7engm405qf] {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 3px;
    position: relative;
    transform: perspective(20px) rotateX(15deg) rotateY(-15deg);
    box-shadow: 
        2px 2px 4px rgba(249, 115, 22, 0.3),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.cube-face[b-7engm405qf]::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 2px;
    width: 14px;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 1px;
    transform: skewX(-45deg);
}

.cube-face[b-7engm405qf]::after {
    content: '';
    position: absolute;
    top: 2px;
    right: -2px;
    width: 2px;
    height: 14px;
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 1px;
    transform: skewY(-45deg);
}

/* Notification Button */
.header-actions .notification-btn[b-7engm405qf] {
    color: #31352F;
    background: #F2F2F2;
    /* padding: 10px; */
    border:1px solid #e5e7eb;
    border-radius: 100%;
    position: relative;
}

/* .header-actions .notification-btn:hover {
    background: #f3f4f6;
} */

.notification-wrapper[b-7engm405qf] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-wrapper i[b-7engm405qf] {
    font-size: 15px;
}

.notification-dot[b-7engm405qf] {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
    /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); */
}

/* AI Chat Button */
.header-actions .ai-chat-btn[b-7engm405qf] {
    background: linear-gradient(135deg, #FFEEDF 0%, #FFB774 100%);
    color: var(--black);
    border: 1px solid #FFB488;
    font-weight: 600;
    /* padding: 10px 16px; */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255, 180, 136, 0.2);
    position: relative;
    overflow: hidden;
}

.header-actions .ai-chat-btn[b-7engm405qf]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(224, 224, 224, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(224, 224, 224, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(224, 224, 224, 0.1) 1px, transparent 1px);
    background-size: 3px 3px, 4px 4px, 2px 2px;
    pointer-events: none;
    opacity: 0.6;
}

/* .header-actions .ai-chat-btn:hover {
    background: linear-gradient(135deg, #FFE4CF 0%, #FF9A4A 100%);
    border-color: #FF9A4A;
    box-shadow: 0 4px 8px rgba(255, 180, 136, 0.3);
    transform: translateY(-1px);
} */

.header-actions .ai-chat-btn i[b-7engm405qf] {
    font-size: 15px;
    position: relative;
    z-index: 1;
    color: var(--orange);
}

.header-actions .btn-text[b-7engm405qf] {
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-actions[b-7engm405qf] {
        gap: 8px;
    }
    
    .header-actions .header-btn[b-7engm405qf] {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .header-actions .btn-text[b-7engm405qf] {
        display: none;
    }
    
    .header-actions .quben-btn .cube-icon[b-7engm405qf] {
        margin-right: 0;
    }
    
    .header-actions .ai-chat-btn[b-7engm405qf] {
        padding: 8px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .header-actions[b-7engm405qf] {
        gap: 6px;
    }
    
    .header-actions .header-btn[b-7engm405qf] {
        padding: 6px 8px;
    }
}
/* /Components/Pages/MyTasks/MyTasks.razor.rz.scp.css */
/* My Tasks Page Styling */
.container-fluid[b-n6c4yqhiw8] {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Header Styling */
.tasks-header[b-n6c4yqhiw8] {
    padding-bottom: 7px;
    margin-bottom: 1rem;
    position: relative;
}

.tasks-header[b-n6c4yqhiw8]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}

.tasks-header h5[b-n6c4yqhiw8] {
    color: #1f2937;
    font-weight: 600;
}

/* Responsive Paper - Base styling */
.responsive-paper[b-n6c4yqhiw8] {
    background-color: var(--white) !important;
    border-radius: 0.375rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Tasks Column Styling */
.tasks-column[b-n6c4yqhiw8] {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tasks-column-header[b-n6c4yqhiw8] {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Tasks List */
.tasks-list[b-n6c4yqhiw8] {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Task Card Styling */
.task-card[b-n6c4yqhiw8] {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem;
    background-color: var(--white);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    margin: 0;
}

[b-n6c4yqhiw8] .task-card {
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}

.task-card:hover[b-n6c4yqhiw8] {
    border-color: #d1d5db !important;
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
}

[b-n6c4yqhiw8] .task-card:hover {
    border-color: #d1d5db !important;
}

[b-n6c4yqhiw8] .task-card .mud-card-content {
    padding: 0.75rem !important;
}

/* Chip Styling */
[b-n6c4yqhiw8] .mud-chip {
    font-weight: 500;
    font-size: 0.75rem;
    height: 24px;
    padding: 0 8px;
}

/* Priority Chip Colors */
[b-n6c4yqhiw8] .mud-chip.mud-chip-color-error {
    background-color: #fee2e2 !important;
    color: var(--danger) !important;
}

[b-n6c4yqhiw8] .mud-chip.mud-chip-color-warning {
    background-color: #fef3c7 !important;
    color: var(--warning) !important;
}

[b-n6c4yqhiw8] .mud-chip.mud-chip-color-success {
    background-color: #d1fae5 !important;
    color: var(--primary) !important;
}

[b-n6c4yqhiw8] .mud-chip.mud-chip-color-info {
    background-color: #dbeafe !important;
    color: var(--blue) !important;
}

/* Header Chip Colors - Match icon colors */
[b-n6c4yqhiw8] .tasks-column-header .mud-chip.mud-chip-color-warning {
    background-color: var(--warning) !important;
    color: var(--white) !important;
}

[b-n6c4yqhiw8] .tasks-column-header .mud-chip.mud-chip-color-info {
    background-color: var(--blue) !important;
    color: var(--white) !important;
}

/* Button Styling */
[b-n6c4yqhiw8] .mud-button-text {
    font-weight: 500;
}

/* Responsive Paper Padding */
/* Desktop and larger tablets */
@media (min-width: 900px) {
    .responsive-paper[b-n6c4yqhiw8] {
        padding: 20px !important;
    }
}

/* Tablets */
@media (min-width: 600px) and (max-width: 899px) {
    .responsive-paper[b-n6c4yqhiw8] {
        padding: 20px !important;
    }
}

/* Mobile devices */
@media (max-width: 599px) {
    .responsive-paper[b-n6c4yqhiw8] {
        padding: 12px !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .responsive-paper[b-n6c4yqhiw8] {
        padding: 8px !important;
    }
}

/* Responsive Design */
@media (max-width: 960px) {
    .tasks-column[b-n6c4yqhiw8] {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tasks-header h5[b-n6c4yqhiw8] {
        font-size: 1.125rem;
    }

    .tasks-column-header[b-n6c4yqhiw8] {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .tasks-list[b-n6c4yqhiw8] {
        gap: 0.75rem;
    }

    [b-n6c4yqhiw8] .task-card .mud-card-content {
        padding: 0.75rem !important;
    }

    [b-n6c4yqhiw8] .mud-chip {
        font-size: 0.7rem;
        height: 22px;
    }
}

/* /Components/Reports/BalanceSheet/BalanceSheet.razor.rz.scp.css */
/* Trial Balance Page Styling */
.container-fluid[b-gddc77sz1v] {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Header Styling */
.trial-balance-header[b-gddc77sz1v] {
    padding-bottom: 7px;
    margin-bottom: 1rem;
    position: relative;
}

/* Full-width border using pseudo-element */
.trial-balance-header[b-gddc77sz1v]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}

.trial-balance-header h5[b-gddc77sz1v] {
    color: #1f2937;
    font-weight: 600;
}

.reports-header[b-gddc77sz1v] {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.reports-header h5[b-gddc77sz1v] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.year-selector[b-gddc77sz1v] {
    background-color: var(--white);
}

.reports-controls[b-gddc77sz1v] {
    width: 100%;
    background: var(--white);
}

.table-wrapper[b-gddc77sz1v] {
    width: 100% !important;
    margin: 0;
    padding: 0;
    overflow: visible; /* Changed from hidden to visible to allow scrolling */
    position: relative;
}

/* Table scroll container */
.table-scroll-container[b-gddc77sz1v] {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    /* background: white; */
    min-height: 500px;
    max-height: calc(100vh - 180px); /* Prevent full page scroll, allow table scroll */
    display: flex;
    justify-content: center;
}

/* Custom scrollbar styling */
.table-scroll-container[b-gddc77sz1v]::-webkit-scrollbar {
    height: 14px;
    -webkit-appearance: none;
}

.table-scroll-container[b-gddc77sz1v]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 7px;
    margin: 0 10px;
}

.table-scroll-container[b-gddc77sz1v]::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 7px;
    border: 2px solid #f1f1f1;
    min-width: 30px;
}

.table-scroll-container[b-gddc77sz1v]::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Firefox scrollbar */
.table-scroll-container[b-gddc77sz1v] {
    /* scrollbar-width: auto; */
    scrollbar-color: #888 #f1f1f1;
}

.trial-balance-table[b-gddc77sz1v] {
    width: max-content;
    /* Dynamic min-width based on period count */
    min-width: calc(250px + (var(--period-count, 12) * 110px));
    border-collapse: collapse;
    font-size: 0.875rem;
    background-color: var(--white);
    border: none;
    table-layout: auto; /* Changed to auto to allow dynamic column widths */
    margin: 0;
    position: relative;
}

.trial-balance-table thead[b-gddc77sz1v] {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #e5e5e5;
}

.trial-balance-table thead th[b-gddc77sz1v] {
    background-color: #e5e5e5;
    border: 1px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    padding: 10px 12px;
    font-weight: 700;
    color: #495057;
    white-space: nowrap;
    vertical-align: middle;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    position: sticky;
    top: 0;
    z-index: 10;
}

.trial-balance-table thead th.account-column[b-gddc77sz1v] {
    /* position: sticky;
    left: 0;
    top: 0;
    z-index: 20; */
    font-size: 0.9rem;
    font-weight: 600;
    background-color: #e5e5e5 !important;
}

.trial-balance-table thead th.month-column[b-gddc77sz1v] {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: right;
}

.header-row[b-gddc77sz1v] {
    background-color: #f8f9fa;
}

.account-column[b-gddc77sz1v] {
    width: calc(250px + ((12 - var(--period-count, 12)) * 12px));
    min-width: 250px;
    max-width: 400px;
    text-align: left !important;
    background-color: var(--white);
    border-right: 2px solid #e0e0e0;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
}

/* .sticky-column {
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: white !important;
} */

.trial-balance-table thead .sticky-column[b-gddc77sz1v] {
    position: sticky !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 20 !important; /* Higher z-index to stay on top of everything */
    background-color: #e5e5e5 !important;
}

.month-column[b-gddc77sz1v] {
    /* Dynamic width based on period count: fewer periods = wider columns */
    /* Formula: base width increases as period count decreases */
    /* Monthly (12): 110px, Quarterly (4): ~200px, Half-Yearly (2): ~300px, Yearly (1): ~400px */
    width: calc(110px + ((12 - var(--period-count, 12)) * 8px));
    min-width: 110px;
    max-width: 400px;
    text-align: right;
    padding: 8px 10px;
    white-space: nowrap;
    font-size: 0.8rem;
    border: 1px solid #dee2e6;
}

.trial-balance-table tbody tr[b-gddc77sz1v] {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.15s ease-in-out;
}

.trial-balance-table tbody tr:hover[b-gddc77sz1v] {
    background-color: #f8f9fa;
}

.trial-balance-table tbody tr:hover .sticky-column[b-gddc77sz1v] {
    background-color: #f8f9fa !important;
}

.child-row[b-gddc77sz1v] {
    background-color: var(--white);
}

.trial-balance-table tbody td[b-gddc77sz1v] {
    padding: 6px 12px;
    vertical-align: middle;
    color: #495057;
    border: 1px solid #dee2e6;
}

.trial-balance-table tbody td.month-column[b-gddc77sz1v] {
    font-size: 0.75rem;
    text-align: right;
    padding: 8px 12px;
}

.total-row[b-gddc77sz1v] {
    background-color: #f0f0f0 !important;
    font-weight: 700;
    border-top: 2px solid #aaa;
}

.total-row td[b-gddc77sz1v] {
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #333;
    border: 1px solid #dee2e6;
    background-color: #e5e5e5 !important;
}

.total-row .sticky-column[b-gddc77sz1v] {
    background-color: #e5e5e5 !important;
}

.trial-balance-table tfoot[b-gddc77sz1v] {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Dynamic table width based on period count */
.trial-balance-table[b-gddc77sz1v] {
    /* Account column + (period count * dynamic month column width) */
    /* Simplified: base width + (period count * base column width) + extra width for fewer periods */
    min-width: calc(250px + (var(--period-count, 12) * 110px) + ((12 - var(--period-count, 12)) * 8px * var(--period-count, 12))) !important;
}

/* Responsive adjustments - scale down but keep all columns visible */
@media (max-width: 1600px) {
    .account-column[b-gddc77sz1v] {
        width: calc(240px + ((12 - var(--period-count, 12)) * 12px));
        min-width: 240px;
        max-width: 380px;
    }
    
    .month-column[b-gddc77sz1v] {
        width: calc(105px + ((12 - var(--period-count, 12)) * 8px));
        min-width: 105px;
        max-width: 380px;
        padding: 6px 8px;
        font-size: 0.78rem;
    }
    
    .trial-balance-table[b-gddc77sz1v] {
        min-width: calc(240px + (var(--period-count, 12) * 105px) + ((12 - var(--period-count, 12)) * 8px * var(--period-count, 12))) !important;
    }
}

@media (max-width: 1400px) {
    .account-column[b-gddc77sz1v] {
        width: calc(220px + ((12 - var(--period-count, 12)) * 12px));
        min-width: 220px;
        max-width: 360px;
    }
    
    .month-column[b-gddc77sz1v] {
        width: calc(95px + ((12 - var(--period-count, 12)) * 7px));
        min-width: 95px;
        max-width: 360px;
        padding: 6px 7px;
        font-size: 0.75rem;
    }
    
    .trial-balance-table[b-gddc77sz1v] {
        min-width: calc(220px + (var(--period-count, 12) * 95px) + ((12 - var(--period-count, 12)) * 7px * var(--period-count, 12))) !important;
    }
}

@media (max-width: 1200px) {
    .account-column[b-gddc77sz1v] {
        width: calc(200px + ((12 - var(--period-count, 12)) * 12px));
        min-width: 200px;
        max-width: 340px;
    }
    
    .month-column[b-gddc77sz1v] {
        width: calc(85px + ((12 - var(--period-count, 12)) * 6px));
        min-width: 85px;
        max-width: 340px;
        padding: 5px 6px;
        font-size: 0.72rem;
    }
    
    .trial-balance-table[b-gddc77sz1v] {
        min-width: calc(200px + (var(--period-count, 12) * 85px) + ((12 - var(--period-count, 12)) * 6px * var(--period-count, 12))) !important;
    }
}

@media (max-width: 768px) {
    .account-column[b-gddc77sz1v] {
        width: calc(180px + ((12 - var(--period-count, 12)) * 10px));
        min-width: 180px;
        max-width: 300px;
    }

    .month-column[b-gddc77sz1v] {
        width: calc(75px + ((12 - var(--period-count, 12)) * 5px));
        min-width: 75px;
        max-width: 300px;
        padding: 4px 5px;
        font-size: 0.7rem;
    }

    .trial-balance-table[b-gddc77sz1v] {
        min-width: calc(180px + (var(--period-count, 12) * 75px) + ((12 - var(--period-count, 12)) * 5px * var(--period-count, 12))) !important;
        font-size: 0.75rem;
    }
    
    .table-scroll-container[b-gddc77sz1v] {
        max-height: calc(100vh - 200px);
    }
    
    .table-scroll-container[b-gddc77sz1v]::-webkit-scrollbar {
        height: 16px;
    }
    
    .table-scroll-container[b-gddc77sz1v]::-webkit-scrollbar-thumb {
        background: #666;
        border: 3px solid #f1f1f1;
    }
}

@media (max-width: 480px) {
    .account-column[b-gddc77sz1v] {
        width: calc(160px + ((12 - var(--period-count, 12)) * 8px));
        min-width: 160px;
        max-width: 280px;
    }
    
    .month-column[b-gddc77sz1v] {
        width: calc(65px + ((12 - var(--period-count, 12)) * 4px));
        min-width: 65px;
        max-width: 280px;
        padding: 3px 4px;
        font-size: 0.65rem;
    }
    
    .trial-balance-table[b-gddc77sz1v] {
        min-width: calc(160px + (var(--period-count, 12) * 65px) + ((12 - var(--period-count, 12)) * 4px * var(--period-count, 12))) !important;
        font-size: 0.7rem;
    }
    
    .table-scroll-container[b-gddc77sz1v] {
        max-height: calc(100vh - 200px);
    }
    
    .table-scroll-container[b-gddc77sz1v]::-webkit-scrollbar {
        height: 18px;
    }
}

/* Container and viewport adjustments */
/* .container-fluid {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
} */

/* Ensure controls are always visible */
.reports-controls[b-gddc77sz1v] {
    position: relative;
    z-index: 5;
    min-height: 60px;
    display: flex !important;
    align-items: center;
}

/* Main header container spacing */
.reports-controls > .d-flex[b-gddc77sz1v] {
    width: 100%;
    min-height: 60px;
    align-items: center;
}

.reports-controls .d-flex[b-gddc77sz1v] {
    /* width: 100%; */
    flex-wrap: nowrap !important;
}

/* Table wrapper full width */
.table-wrapper[b-gddc77sz1v] {
    position: relative;
    margin: 0;
    border-radius: 4px;
}

/* Ensure table is contained */
.table-scroll-container[b-gddc77sz1v] {
    max-width: calc(100vw - 270px); /* Account for sidebar */
    position: relative;
    /* Ensure horizontal scroll works independently */
    overflow-x: auto !important;
    overflow-y: auto !important;
}

/* Print styles */
@media print {
    .reports-header[b-gddc77sz1v] {
        border-bottom: 2px solid var(--black);
    }

    .trial-balance-table[b-gddc77sz1v] {
        font-size: 10pt;
    }

    .trial-balance-table thead th[b-gddc77sz1v],
    .trial-balance-table tbody td[b-gddc77sz1v] {
        padding: 0.25rem 0.5rem;
    }
    
    .table-scroll-container[b-gddc77sz1v] {
        overflow: visible !important;
    }
}

/* Loading state */
.loading-overlay[b-gddc77sz1v] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}


/* Better number alignment */
.text-end[b-gddc77sz1v] {
    text-align: right;
}

.fw-bold[b-gddc77sz1v] {
    font-weight: 600;
}

/* Text truncation and overflow handling */
.text-truncate[b-gddc77sz1v] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Account column content styling */
.account-column .d-flex[b-gddc77sz1v] {
    width: 100%;
    min-height: 2rem;
}

.account-column .text-truncate[b-gddc77sz1v] {
    flex: 1;
    min-width: 0;
}

.expand-button[b-gddc77sz1v] {
    flex-shrink: 0;
}

/* Ensure proper spacing and alignment */
.trial-balance-table tbody td.account-column[b-gddc77sz1v] {
    vertical-align: middle;
    padding: 6px 12px;
    text-align: left !important;
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .account-column .small[b-gddc77sz1v] {
        font-size: 0.7rem;
    }
    
    .account-column .text-truncate[b-gddc77sz1v] {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .account-column .small[b-gddc77sz1v] {
        font-size: 0.65rem;
    }
    
    .account-column .text-truncate[b-gddc77sz1v] {
        font-size: 0.75rem;
    }
}

/* Alternate row colors for better readability */
.trial-balance-table tbody tr:nth-child(even):not(.child-row)[b-gddc77sz1v] {
    background-color: #fafafa;
}

.trial-balance-table tbody tr:nth-child(even):not(.child-row):hover[b-gddc77sz1v] {
    background-color: #f0f0f0;
}

.trial-balance-table tbody tr:nth-child(even):not(.child-row):hover .sticky-column[b-gddc77sz1v] {
    background-color: #f0f0f0 !important;
}

.trial-balance-table tbody tr:nth-child(even):not(.child-row) .sticky-column[b-gddc77sz1v] {
    background-color: #fafafa !important;
}

/* Header and controls single-row layout responsive styles */
@media (max-width: 768px) {
    .reports-controls > .d-flex[b-gddc77sz1v] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    
    .reports-controls .d-flex > div:last-child[b-gddc77sz1v] {
        flex-direction: row !important;
        justify-content: center;
        gap: 12px;
        align-items: center;
    }
    
    .reports-controls .d-flex > div:last-child > div:first-child[b-gddc77sz1v] {
        flex: 0 0 180px !important;
    }
}

@media (max-width: 480px) {
    .reports-controls > .d-flex[b-gddc77sz1v] {
        gap: 16px !important;
    }
    
    .reports-controls .d-flex > div:last-child[b-gddc77sz1v] {
        flex-direction: column !important;
        gap: 8px;
    }
    
    .reports-controls .d-flex > div:last-child > div:first-child[b-gddc77sz1v] {
        flex: 1 1 100% !important;
    }
    
    .year-selector[b-gddc77sz1v] {
        width: 100% !important;
    }
}

/* /Components/Reports/ProfitLoss/ProfitLoss.razor.rz.scp.css */
/* Trial Balance Page Styling */
.container-fluid[b-p4e9zc1cho] {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Header Styling */
.trial-balance-header[b-p4e9zc1cho] {
    padding-bottom: 7px;
    margin-bottom: 1rem;
    position: relative;
}

/* Full-width border using pseudo-element */
.trial-balance-header[b-p4e9zc1cho]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}

.trial-balance-header h5[b-p4e9zc1cho] {
    color: #1f2937;
    font-weight: 600;
}

.reports-header[b-p4e9zc1cho] {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.reports-header h5[b-p4e9zc1cho] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.year-selector[b-p4e9zc1cho] {
    background-color: white;
}

.reports-controls[b-p4e9zc1cho] {
    width: 100%;
    background: white;
}

.table-wrapper[b-p4e9zc1cho] {
    width: 100% !important;
    margin: 0;
    padding: 0;
    overflow: visible; /* Changed from hidden to visible to allow scrolling */
    position: relative;
}

/* Table scroll container */
.table-scroll-container[b-p4e9zc1cho] {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background: white;
    min-height: 500px;
    max-height: calc(100vh - 180px); /* Prevent full page scroll, allow table scroll */
    /* Ensure horizontal scroll works properly */
    display: block;
}

/* Custom scrollbar styling */
.table-scroll-container[b-p4e9zc1cho]::-webkit-scrollbar {
    height: 14px;
    -webkit-appearance: none;
}

.table-scroll-container[b-p4e9zc1cho]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 7px;
    margin: 0 10px;
}

.table-scroll-container[b-p4e9zc1cho]::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 7px;
    border: 2px solid #f1f1f1;
    min-width: 30px;
}

.table-scroll-container[b-p4e9zc1cho]::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Firefox scrollbar */
.table-scroll-container[b-p4e9zc1cho] {
    /* scrollbar-width: auto; */
    scrollbar-color: #888 #f1f1f1;
}

.trial-balance-table[b-p4e9zc1cho] {
    width: max-content;
    /* Dynamic min-width based on period count */
    min-width: calc(250px + (var(--period-count, 12) * 110px));
    border-collapse: collapse;
    font-size: 0.875rem;
    background-color: white;
    border: none;
    table-layout: auto; /* Changed to auto to allow dynamic column widths */
    margin: 0;
    position: relative;
}

.trial-balance-table thead[b-p4e9zc1cho] {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #e5e5e5;
}

.trial-balance-table thead th[b-p4e9zc1cho] {
    background-color: #e5e5e5;
    border: 1px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    padding: 10px 12px;
    font-weight: 700;
    color: #495057;
    white-space: nowrap;
    vertical-align: middle;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    position: sticky;
    top: 0;
    z-index: 10;
}

.trial-balance-table thead th.account-column[b-p4e9zc1cho] {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 20;
    background-color: #e5e5e5 !important;
}

.trial-balance-table thead th.month-column[b-p4e9zc1cho] {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: right;
}

.header-row[b-p4e9zc1cho] {
    background-color: #f8f9fa;
}

.account-column[b-p4e9zc1cho] {
    width: calc(250px + ((12 - var(--period-count, 12)) * 12px));
    min-width: 250px;
    max-width: 400px;
    text-align: left !important;
    background-color: white;
    border-right: 2px solid #e0e0e0;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
}

.sticky-column[b-p4e9zc1cho] {
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: white !important;
}

.trial-balance-table thead .sticky-column[b-p4e9zc1cho] {
    position: sticky !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 20 !important; /* Higher z-index to stay on top of everything */
    background-color: #e5e5e5 !important;
}

.month-column[b-p4e9zc1cho] {
    /* Dynamic width based on period count: fewer periods = wider columns */
    /* Formula: base width increases as period count decreases */
    /* Monthly (12): 110px, Quarterly (4): ~200px, Half-Yearly (2): ~300px, Yearly (1): ~400px */
    width: calc(110px + ((12 - var(--period-count, 12)) * 8px));
    min-width: 110px;
    max-width: 400px;
    text-align: right;
    padding: 8px 10px;
    white-space: nowrap;
    font-size: 0.8rem;
    border: 1px solid #dee2e6;
}

.trial-balance-table tbody tr[b-p4e9zc1cho] {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.15s ease-in-out;
}

.trial-balance-table tbody tr:hover[b-p4e9zc1cho] {
    background-color: #f8f9fa;
}

.trial-balance-table tbody tr:hover .sticky-column[b-p4e9zc1cho] {
    background-color: #f8f9fa !important;
}

.child-row[b-p4e9zc1cho] {
    background-color: white;
}

.trial-balance-table tbody td[b-p4e9zc1cho] {
    padding: 6px 12px;
    vertical-align: middle;
    color: #495057;
    border: 1px solid #dee2e6;
}

.trial-balance-table tbody td.month-column[b-p4e9zc1cho] {
    font-size: 0.75rem;
    text-align: right;
    padding: 8px 12px;
}

.total-row[b-p4e9zc1cho] {
    background-color: #f0f0f0 !important;
    font-weight: 700;
    border-top: 2px solid #aaa;
}

.total-row td[b-p4e9zc1cho] {
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #333;
    border: 1px solid #dee2e6;
    background-color: #f0f0f0 !important;
}

.total-row .sticky-column[b-p4e9zc1cho] {
    background-color: #e5e5e5!important;
}

.trial-balance-table tfoot[b-p4e9zc1cho] {
    position: sticky;
    bottom: 0;
    z-index: 10;
}


.section-row[b-p4e9zc1cho] {
    background-color: #f9fafb;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
}

    .section-row .mud-table-cell[b-p4e9zc1cho] {
        padding-top: 1rem;
        padding-bottom: 1rem;
        border-top: 2px solid #e5e7eb;
    }

.subtotal-row[b-p4e9zc1cho] {
    background-color: #f3f4f6;
    font-weight: 600;
    border-top: 1px solid #d1d5db;
}

    .subtotal-row .mud-table-cell[b-p4e9zc1cho] {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

.subtotal-text[b-p4e9zc1cho] {
    font-style: italic;
}

/* Dynamic table width based on period count */
.trial-balance-table[b-p4e9zc1cho] {
    min-width: calc(250px + (var(--period-count, 12) * 110px) + ((12 - var(--period-count, 12)) * 8px * var(--period-count, 12))) !important;
}

/* Responsive adjustments - scale down but keep all columns visible */
@media (max-width: 1600px) {
    .account-column[b-p4e9zc1cho] {
        width: calc(240px + ((12 - var(--period-count, 12)) * 12px));
        min-width: 240px;
        max-width: 380px;
    }
    
    .month-column[b-p4e9zc1cho] {
        width: calc(105px + ((12 - var(--period-count, 12)) * 8px));
        min-width: 105px;
        max-width: 380px;
        padding: 6px 8px;
        font-size: 0.78rem;
    }
    
    .trial-balance-table[b-p4e9zc1cho] {
        min-width: calc(240px + (var(--period-count, 12) * 105px) + ((12 - var(--period-count, 12)) * 8px * var(--period-count, 12))) !important;
    }
}

@media (max-width: 1400px) {
    .account-column[b-p4e9zc1cho] {
        width: calc(220px + ((12 - var(--period-count, 12)) * 12px));
        min-width: 220px;
        max-width: 360px;
    }
    
    .month-column[b-p4e9zc1cho] {
        width: calc(95px + ((12 - var(--period-count, 12)) * 7px));
        min-width: 95px;
        max-width: 360px;
        padding: 6px 7px;
        font-size: 0.75rem;
    }
    
    .trial-balance-table[b-p4e9zc1cho] {
        min-width: calc(220px + (var(--period-count, 12) * 95px) + ((12 - var(--period-count, 12)) * 7px * var(--period-count, 12))) !important;
    }
}

@media (max-width: 1200px) {
    .account-column[b-p4e9zc1cho] {
        width: calc(200px + ((12 - var(--period-count, 12)) * 12px));
        min-width: 200px;
        max-width: 340px;
    }
    
    .month-column[b-p4e9zc1cho] {
        width: calc(85px + ((12 - var(--period-count, 12)) * 6px));
        min-width: 85px;
        max-width: 340px;
        padding: 5px 6px;
        font-size: 0.72rem;
    }
    
    .trial-balance-table[b-p4e9zc1cho] {
        min-width: calc(200px + (var(--period-count, 12) * 85px) + ((12 - var(--period-count, 12)) * 6px * var(--period-count, 12))) !important;
    }
}

@media (max-width: 768px) {
    .account-column[b-p4e9zc1cho] {
        width: calc(180px + ((12 - var(--period-count, 12)) * 10px));
        min-width: 180px;
        max-width: 300px;
    }

    .month-column[b-p4e9zc1cho] {
        width: calc(75px + ((12 - var(--period-count, 12)) * 5px));
        min-width: 75px;
        max-width: 300px;
        padding: 4px 5px;
        font-size: 0.7rem;
    }

    .trial-balance-table[b-p4e9zc1cho] {
        min-width: calc(180px + (var(--period-count, 12) * 75px) + ((12 - var(--period-count, 12)) * 5px * var(--period-count, 12))) !important;
        font-size: 0.75rem;
    }
    
    .table-scroll-container[b-p4e9zc1cho] {
        max-height: calc(100vh - 200px);
    }
    
    .table-scroll-container[b-p4e9zc1cho]::-webkit-scrollbar {
        height: 16px;
    }
    
    .table-scroll-container[b-p4e9zc1cho]::-webkit-scrollbar-thumb {
        background: #666;
        border: 3px solid #f1f1f1;
    }
}

@media (max-width: 480px) {
    .account-column[b-p4e9zc1cho] {
        width: calc(160px + ((12 - var(--period-count, 12)) * 8px));
        min-width: 160px;
        max-width: 280px;
    }
    
    .month-column[b-p4e9zc1cho] {
        width: calc(65px + ((12 - var(--period-count, 12)) * 4px));
        min-width: 65px;
        max-width: 280px;
        padding: 3px 4px;
        font-size: 0.65rem;
    }
    
    .trial-balance-table[b-p4e9zc1cho] {
        min-width: calc(160px + (var(--period-count, 12) * 65px) + ((12 - var(--period-count, 12)) * 4px * var(--period-count, 12))) !important;
        font-size: 0.7rem;
    }
    
    .table-scroll-container[b-p4e9zc1cho] {
        max-height: calc(100vh - 200px);
    }
    
    .table-scroll-container[b-p4e9zc1cho]::-webkit-scrollbar {
        height: 18px;
    }
}

/* Container and viewport adjustments */
/* .container-fluid {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
} */

/* Ensure controls are always visible */
.reports-controls[b-p4e9zc1cho] {
    position: relative;
    z-index: 5;
    min-height: 60px;
    display: flex !important;
    align-items: center;
}

/* Main header container spacing */
.reports-controls > .d-flex[b-p4e9zc1cho] {
    width: 100%;
    min-height: 60px;
    align-items: center;
}

.reports-controls .d-flex[b-p4e9zc1cho] {
    /* width: 100%; */
    flex-wrap: nowrap !important;
}

/* Table wrapper full width */
.table-wrapper[b-p4e9zc1cho] {
    position: relative;
    margin: 0;
    border-radius: 4px;
}

/* Ensure table is contained */
.table-scroll-container[b-p4e9zc1cho] {
    max-width: calc(100vw - 270px); /* Account for sidebar */
    position: relative;
    /* Ensure horizontal scroll works independently */
    overflow-x: auto !important;
    overflow-y: auto !important;
}

/* Print styles */
@media print {
    .reports-header[b-p4e9zc1cho] {
        border-bottom: 2px solid #000;
    }

    .trial-balance-table[b-p4e9zc1cho] {
        font-size: 10pt;
    }

    .trial-balance-table thead th[b-p4e9zc1cho],
    .trial-balance-table tbody td[b-p4e9zc1cho] {
        padding: 0.25rem 0.5rem;
    }
    
    .table-scroll-container[b-p4e9zc1cho] {
        overflow: visible !important;
    }
}

/* Loading state */
.loading-overlay[b-p4e9zc1cho] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}


/* Better number alignment */
.text-end[b-p4e9zc1cho] {
    text-align: right;
}

.fw-bold[b-p4e9zc1cho] {
    font-weight: 600;
}

/* Text truncation and overflow handling */
.text-truncate[b-p4e9zc1cho] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Account column content styling */
.account-column .d-flex[b-p4e9zc1cho] {
    width: 100%;
    min-height: 2rem;
}

.account-column .text-truncate[b-p4e9zc1cho] {
    flex: 1;
    min-width: 0;
}

.expand-button[b-p4e9zc1cho] {
    flex-shrink: 0;
}

/* Ensure proper spacing and alignment */
.trial-balance-table tbody td.account-column[b-p4e9zc1cho] {
    vertical-align: middle;
    padding: 6px 12px;
    text-align: left !important;
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .account-column .small[b-p4e9zc1cho] {
        font-size: 0.7rem;
    }
    
    .account-column .text-truncate[b-p4e9zc1cho] {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .account-column .small[b-p4e9zc1cho] {
        font-size: 0.65rem;
    }
    
    .account-column .text-truncate[b-p4e9zc1cho] {
        font-size: 0.75rem;
    }
}

/* Alternate row colors for better readability */
.trial-balance-table tbody tr:nth-child(even):not(.child-row)[b-p4e9zc1cho] {
    background-color: #fafafa;
}

.trial-balance-table tbody tr:nth-child(even):not(.child-row):hover[b-p4e9zc1cho] {
    background-color: #f0f0f0;
}

.trial-balance-table tbody tr:nth-child(even):not(.child-row):hover .sticky-column[b-p4e9zc1cho] {
    background-color: #f0f0f0 !important;
}

.trial-balance-table tbody tr:nth-child(even):not(.child-row) .sticky-column[b-p4e9zc1cho] {
    background-color: #fafafa !important;
}

/* Header and controls single-row layout responsive styles */
@media (max-width: 768px) {
    .reports-controls > .d-flex[b-p4e9zc1cho] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    
    .reports-controls .d-flex > div:last-child[b-p4e9zc1cho] {
        flex-direction: row !important;
        justify-content: center;
        gap: 12px;
        align-items: center;
    }
    
    .reports-controls .d-flex > div:last-child > div:first-child[b-p4e9zc1cho] {
        flex: 0 0 180px !important;
    }
}

@media (max-width: 480px) {
    .reports-controls > .d-flex[b-p4e9zc1cho] {
        gap: 16px !important;
    }
    
    .reports-controls .d-flex > div:last-child[b-p4e9zc1cho] {
        flex-direction: column !important;
        gap: 8px;
    }
    
    .reports-controls .d-flex > div:last-child > div:first-child[b-p4e9zc1cho] {
        flex: 1 1 100% !important;
    }
    
    .year-selector[b-p4e9zc1cho] {
        width: 100% !important;
    }
}

/* Profit & Loss Table Styles - 100% width with content fitting */
.table-wrapper .table-scroll-container .mud-paper[b-p4e9zc1cho] {
    width: 100% !important;
    overflow: visible;
}

.table-wrapper .table-scroll-container .mud-paper .mud-table-container[b-p4e9zc1cho] {
    width: 100% !important;
    overflow: visible;
}

.profit-loss-table[b-p4e9zc1cho] {
    width: 100% !important;
    table-layout: auto;
    font-size: 0.875rem;
    border-collapse: collapse;
    border-spacing: 0;
}

[b-p4e9zc1cho] .mud-table-root {
    border-collapse: collapse;
}

/* Profit & Loss Table Header Styles */
.profit-loss-table .mud-table-head[b-p4e9zc1cho],
.profit-loss-table thead[b-p4e9zc1cho] {
    background-color: #f8f9fa !important;
}

.profit-loss-table .mud-table-head .mud-table-cell[b-p4e9zc1cho],
.profit-loss-table .mud-table-head .mud-th[b-p4e9zc1cho],
.profit-loss-table .mud-th[b-p4e9zc1cho],
.profit-loss-table thead .mud-table-cell[b-p4e9zc1cho],
.profit-loss-table thead .mud-th[b-p4e9zc1cho],
.profit-loss-table thead th[b-p4e9zc1cho],
.profit-loss-table .mud-table-head tr .mud-table-cell[b-p4e9zc1cho],
.profit-loss-table .mud-table-head tr .mud-th[b-p4e9zc1cho] {
    font-weight: 600;
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #e5e7eb;
    padding: 0.6rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Use ::deep to penetrate MudBlazor component encapsulation */
[b-p4e9zc1cho] .profit-loss-table .mud-table-head,
[b-p4e9zc1cho] .profit-loss-table thead,
[b-p4e9zc1cho] .profit-loss-table .mud-table-head .mud-table-cell,
[b-p4e9zc1cho] .profit-loss-table .mud-table-head .mud-th,
[b-p4e9zc1cho] .profit-loss-table .mud-th {
    background-color: #f8f9fa !important;
}

[b-p4e9zc1cho] .profit-loss-table thead th {
    background-color: #f8f9fa !important;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

.profit-loss-table .mud-table-cell[b-p4e9zc1cho] {
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid #f3f4f6;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profit-loss-table .account-column[b-p4e9zc1cho] {
    width: auto;
    min-width: 150px;
    max-width: 280px;
    padding-right: 0.25rem !important;
}

.profit-loss-table .amount-column[b-p4e9zc1cho] {
    width: auto;
    min-width: 85px;
    max-width: 120px;
    text-align: right;
    padding-left: 0.25rem !important;
    padding-right: 0.5rem !important;
}

.profit-loss-table .total-column[b-p4e9zc1cho] {
    width: auto;
    min-width: 95px;
    max-width: 130px;
    font-weight: 600;
    background-color: #fafafa;
    text-align: right;
    padding-left: 0.25rem !important;
    padding-right: 0.5rem !important;
}

/* Ensure table scrolls horizontally when content is wider than viewport */
.table-scroll-container[b-p4e9zc1cho] {
    overflow-x: auto !important;
    overflow-y: auto !important;
}

/* Responsive adjustments for Profit & Loss table */
@media (max-width: 1600px) {
    .profit-loss-table .account-column[b-p4e9zc1cho] {
        min-width: 130px;
        max-width: 260px;
        padding-right: 0.2rem !important;
    }
    
    .profit-loss-table .amount-column[b-p4e9zc1cho] {
        min-width: 80px;
        max-width: 115px;
        padding-left: 0.2rem !important;
        padding-right: 0.45rem !important;
    }
    
    .profit-loss-table .total-column[b-p4e9zc1cho] {
        min-width: 90px;
        max-width: 125px;
        padding-left: 0.2rem !important;
        padding-right: 0.45rem !important;
    }
}

@media (max-width: 1400px) {
    .profit-loss-table .account-column[b-p4e9zc1cho] {
        min-width: 120px;
        max-width: 240px;
        padding-right: 0.2rem !important;
    }
    
    .profit-loss-table .amount-column[b-p4e9zc1cho] {
        min-width: 70px;
        max-width: 105px;
        font-size: 0.8rem;
        padding-left: 0.2rem !important;
        padding-right: 0.4rem !important;
    }
    
    .profit-loss-table .total-column[b-p4e9zc1cho] {
        min-width: 80px;
        max-width: 115px;
        padding-left: 0.2rem !important;
        padding-right: 0.4rem !important;
    }
}

@media (max-width: 1200px) {
    .profit-loss-table .account-column[b-p4e9zc1cho] {
        min-width: 110px;
        max-width: 210px;
        padding-right: 0.15rem !important;
    }
    
    .profit-loss-table .amount-column[b-p4e9zc1cho] {
        min-width: 65px;
        max-width: 95px;
        font-size: 0.75rem;
        padding-left: 0.15rem !important;
        padding-right: 0.35rem !important;
    }
    
    .profit-loss-table .total-column[b-p4e9zc1cho] {
        min-width: 70px;
        max-width: 105px;
        padding-left: 0.15rem !important;
        padding-right: 0.35rem !important;
    }
    
    .profit-loss-table .mud-table-cell[b-p4e9zc1cho] {
        padding: 0.4rem 0.4rem;
    }
}

@media (max-width: 768px) {
    .profit-loss-table[b-p4e9zc1cho] {
        font-size: 0.8rem;
    }
    
    .profit-loss-table .account-column[b-p4e9zc1cho] {
        min-width: 95px;
        max-width: 170px;
        padding-right: 0.15rem !important;
    }
    
    .profit-loss-table .amount-column[b-p4e9zc1cho] {
        min-width: 55px;
        max-width: 85px;
        font-size: 0.7rem;
        padding-left: 0.15rem !important;
        padding-right: 0.3rem !important;
    }
    
    .profit-loss-table .total-column[b-p4e9zc1cho] {
        min-width: 60px;
        max-width: 90px;
        padding-left: 0.15rem !important;
        padding-right: 0.3rem !important;
    }
    
    .profit-loss-table .mud-table-cell[b-p4e9zc1cho] {
        padding: 0.3rem 0.4rem;
    }
    
    .profit-loss-table .mud-table-head .mud-table-cell[b-p4e9zc1cho],
    .profit-loss-table .mud-th[b-p4e9zc1cho] {
        padding: 0.5rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .profit-loss-table[b-p4e9zc1cho] {
        font-size: 0.75rem;
    }
    
    .profit-loss-table .account-column[b-p4e9zc1cho] {
        min-width: 85px;
        max-width: 140px;
        padding-right: 0.1rem !important;
    }
    
    .profit-loss-table .amount-column[b-p4e9zc1cho] {
        min-width: 50px;
        max-width: 75px;
        font-size: 0.65rem;
        padding-left: 0.1rem !important;
        padding-right: 0.25rem !important;
    }
    
    .profit-loss-table .total-column[b-p4e9zc1cho] {
        min-width: 55px;
        max-width: 80px;
        padding-left: 0.1rem !important;
        padding-right: 0.25rem !important;
    }
    
    .profit-loss-table .mud-table-cell[b-p4e9zc1cho] {
        padding: 0.25rem 0.3rem;
    }
    
    .profit-loss-table .mud-table-head .mud-table-cell[b-p4e9zc1cho],
    .profit-loss-table .mud-th[b-p4e9zc1cho] {
        padding: 0.45rem 0.3rem;
    }
}

/* Profit & Loss Table Row Styles */
.profit-loss-table .section-row[b-p4e9zc1cho] {
    background-color: #f9fafb;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
}

.profit-loss-table .section-row .mud-table-cell[b-p4e9zc1cho] {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 2px solid #e5e7eb;
}

.profit-loss-table .subtotal-row[b-p4e9zc1cho] {
    background-color: #f3f4f6 !important;
    font-weight: 600;
    border-top: 1px solid #d1d5db;
}

.profit-loss-table .subtotal-row .mud-table-cell[b-p4e9zc1cho] {
    background-color: #f3f4f6 !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.profit-loss-table .subtotal-text[b-p4e9zc1cho] {
    font-style: italic;
}

.profit-loss-table .data-row:hover[b-p4e9zc1cho] {
    background-color: #fafbfc;
}

.profit-loss-table .negative-amount[b-p4e9zc1cho] {
    color: #dc2626;
}

.profit-loss-table .zero-amount[b-p4e9zc1cho] {
    color: #d1d5db;
}

/* Use ::deep to penetrate MudBlazor component encapsulation for row styles */
[b-p4e9zc1cho] .profit-loss-table .mud-table-body tr:has(.subtotal-row) {
    background-color: #f3f4f6 !important;
}

[b-p4e9zc1cho] .profit-loss-table .mud-table-body tr:has(.subtotal-row) .mud-table-cell {
    background-color: #f3f4f6 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-top: 1px solid #d1d5db !important;
    font-weight: 600 !important;
}

[b-p4e9zc1cho] .profit-loss-table .subtotal-row,
[b-p4e9zc1cho] .profit-loss-table tr .subtotal-row {
    background-color: #f3f4f6 !important;
    font-weight: 600;
}

[b-p4e9zc1cho] .profit-loss-table .subtotal-row .mud-table-cell,
[b-p4e9zc1cho] .profit-loss-table tr .subtotal-row .mud-table-cell,
[b-p4e9zc1cho] .profit-loss-table .mud-table-body tr .subtotal-row .mud-table-cell {
    background-color: #f3f4f6 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-top: 1px solid #d1d5db !important;
}

[b-p4e9zc1cho] .profit-loss-table .data-row:hover .mud-table-cell {
    background-color: #fafbfc;
}
/* /Components/Reports/TrialBalance/TrialBalance.razor.rz.scp.css */
/* Trial Balance Page Styling */
.container-fluid[b-mi6o8khf4i] {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Header Styling */
.trial-balance-header[b-mi6o8khf4i] {
    padding-bottom: 7px;
    margin-bottom: 1rem;
    position: relative;
}

/* Full-width border using pseudo-element */
.trial-balance-header[b-mi6o8khf4i]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}

.trial-balance-header h5[b-mi6o8khf4i] {
    color: #1f2937;
    font-weight: 600;
}

.reports-header[b-mi6o8khf4i] {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.reports-header h5[b-mi6o8khf4i] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.year-selector[b-mi6o8khf4i] {
    background-color: white;
}

.reports-controls[b-mi6o8khf4i] {
    width: 100%;
    background: white;
}

.table-wrapper[b-mi6o8khf4i] {
    width: 100% !important;
    margin: 0;
    padding: 0;
    overflow: visible; /* Changed from hidden to visible to allow scrolling */
    position: relative;
}

/* Table scroll container */
.table-scroll-container[b-mi6o8khf4i] {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background: white;
    min-height: 500px;
    max-height: calc(100vh - 180px); /* Prevent full page scroll, allow table scroll */
    /* Ensure horizontal scroll works properly */
    display: block;
}

/* Custom scrollbar styling */
.table-scroll-container[b-mi6o8khf4i]::-webkit-scrollbar {
    height: 14px;
    -webkit-appearance: none;
}

.table-scroll-container[b-mi6o8khf4i]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 7px;
    margin: 0 10px;
}

.table-scroll-container[b-mi6o8khf4i]::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 7px;
    border: 2px solid #f1f1f1;
    min-width: 30px;
}

.table-scroll-container[b-mi6o8khf4i]::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Firefox scrollbar */
.table-scroll-container[b-mi6o8khf4i] {
    /* scrollbar-width: auto; */
    scrollbar-color: #888 #f1f1f1;
}

.trial-balance-table[b-mi6o8khf4i] {
    width: max-content;
    /* Dynamic min-width based on period count */
    min-width: calc(250px + (var(--period-count, 12) * 110px));
    border-collapse: collapse;
    font-size: 0.875rem;
    background-color: white;
    border: none;
    table-layout: auto; /* Changed to auto to allow dynamic column widths */
    margin: 0;
    position: relative;
}

.trial-balance-table thead[b-mi6o8khf4i] {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa !important;
}

.trial-balance-table thead th[b-mi6o8khf4i] {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    padding: 10px 12px;
    font-weight: 700;
    color: #495057;
    white-space: nowrap;
    vertical-align: middle;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    position: sticky;
    top: 0;
    z-index: 10;
}

.trial-balance-table thead th.account-column[b-mi6o8khf4i] {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 20;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: #f8f9fa !important;
}

.trial-balance-table thead th.month-column[b-mi6o8khf4i] {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: right;
}

.header-row[b-mi6o8khf4i] {
    background-color: #f8f9fa !important;
}

.account-column[b-mi6o8khf4i] {
    width: calc(250px + ((12 - var(--period-count, 12)) * 12px));
    min-width: 250px;
    max-width: 400px;
    text-align: left !important;
    background-color: white;
    border-right: 2px solid #e0e0e0;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
}

.sticky-column[b-mi6o8khf4i] {
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: white !important;
}

.trial-balance-table thead .sticky-column[b-mi6o8khf4i] {
    position: sticky !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 20 !important; /* Higher z-index to stay on top of everything */
    background-color: #f8f9fa !important;
}

.month-column[b-mi6o8khf4i] {
    /* Dynamic width based on period count: fewer periods = wider columns */
    /* Formula: base width increases as period count decreases */
    /* Monthly (12): 110px, Quarterly (4): ~200px, Half-Yearly (2): ~300px, Yearly (1): ~400px */
    width: calc(110px + ((12 - var(--period-count, 12)) * 8px));
    min-width: 110px;
    max-width: 400px;
    text-align: right;
    padding: 8px 10px;
    white-space: nowrap;
    font-size: 0.8rem;
    border: 1px solid #dee2e6;
}

.trial-balance-table tbody tr[b-mi6o8khf4i] {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.15s ease-in-out;
}

.trial-balance-table tbody tr:hover[b-mi6o8khf4i] {
    background-color: #f8f9fa;
}

.trial-balance-table tbody tr:hover .sticky-column[b-mi6o8khf4i] {
    background-color: #f8f9fa !important;
}

.child-row[b-mi6o8khf4i] {
    background-color: white;
}

.trial-balance-table tbody td[b-mi6o8khf4i] {
    padding: 6px 12px;
    vertical-align: middle;
    color: #495057;
    border: 1px solid #dee2e6;
}

.trial-balance-table tbody td.month-column[b-mi6o8khf4i] {
    font-size: 0.75rem;
    text-align: right;
    padding: 8px 12px;
}


.trial-balance-table tfoot[b-mi6o8khf4i] {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Dynamic table width based on period count */
.trial-balance-table[b-mi6o8khf4i] {
    /* Account column + (period count * dynamic month column width) */
    /* Simplified: base width + (period count * base column width) + extra width for fewer periods */
    min-width: calc(250px + (var(--period-count, 12) * 110px) + ((12 - var(--period-count, 12)) * 8px * var(--period-count, 12))) !important;
}

/* Responsive adjustments - scale down but keep all columns visible */
@media (max-width: 1600px) {
    .account-column[b-mi6o8khf4i] {
        width: calc(240px + ((12 - var(--period-count, 12)) * 12px));
        min-width: 240px;
        max-width: 380px;
    }
    
    .month-column[b-mi6o8khf4i] {
        width: calc(105px + ((12 - var(--period-count, 12)) * 8px));
        min-width: 105px;
        max-width: 380px;
        padding: 6px 8px;
        font-size: 0.78rem;
    }
    
    .trial-balance-table[b-mi6o8khf4i] {
        min-width: calc(240px + (var(--period-count, 12) * 105px) + ((12 - var(--period-count, 12)) * 8px * var(--period-count, 12))) !important;
    }
}

@media (max-width: 1400px) {
    .account-column[b-mi6o8khf4i] {
        width: calc(220px + ((12 - var(--period-count, 12)) * 12px));
        min-width: 220px;
        max-width: 360px;
    }
    
    .month-column[b-mi6o8khf4i] {
        width: calc(95px + ((12 - var(--period-count, 12)) * 7px));
        min-width: 95px;
        max-width: 360px;
        padding: 6px 7px;
        font-size: 0.75rem;
    }
    
    .trial-balance-table[b-mi6o8khf4i] {
        min-width: calc(220px + (var(--period-count, 12) * 95px) + ((12 - var(--period-count, 12)) * 7px * var(--period-count, 12))) !important;
    }
}

@media (max-width: 1200px) {
    .account-column[b-mi6o8khf4i] {
        width: calc(200px + ((12 - var(--period-count, 12)) * 12px));
        min-width: 200px;
        max-width: 340px;
    }
    
    .month-column[b-mi6o8khf4i] {
        width: calc(85px + ((12 - var(--period-count, 12)) * 6px));
        min-width: 85px;
        max-width: 340px;
        padding: 5px 6px;
        font-size: 0.72rem;
    }
    
    .trial-balance-table[b-mi6o8khf4i] {
        min-width: calc(200px + (var(--period-count, 12) * 85px) + ((12 - var(--period-count, 12)) * 6px * var(--period-count, 12))) !important;
    }
}

@media (max-width: 768px) {
    .account-column[b-mi6o8khf4i] {
        width: calc(180px + ((12 - var(--period-count, 12)) * 10px));
        min-width: 180px;
        max-width: 300px;
    }

    .month-column[b-mi6o8khf4i] {
        width: calc(75px + ((12 - var(--period-count, 12)) * 5px));
        min-width: 75px;
        max-width: 300px;
        padding: 4px 5px;
        font-size: 0.7rem;
    }

    .trial-balance-table[b-mi6o8khf4i] {
        min-width: calc(180px + (var(--period-count, 12) * 75px) + ((12 - var(--period-count, 12)) * 5px * var(--period-count, 12))) !important;
        font-size: 0.75rem;
    }
    
    .table-scroll-container[b-mi6o8khf4i] {
        max-height: calc(100vh - 200px);
    }
    
    .table-scroll-container[b-mi6o8khf4i]::-webkit-scrollbar {
        height: 16px;
    }
    
    .table-scroll-container[b-mi6o8khf4i]::-webkit-scrollbar-thumb {
        background: #666;
        border: 3px solid #f1f1f1;
    }
}

@media (max-width: 480px) {
    .account-column[b-mi6o8khf4i] {
        width: calc(160px + ((12 - var(--period-count, 12)) * 8px));
        min-width: 160px;
        max-width: 280px;
    }
    
    .month-column[b-mi6o8khf4i] {
        width: calc(65px + ((12 - var(--period-count, 12)) * 4px));
        min-width: 65px;
        max-width: 280px;
        padding: 3px 4px;
        font-size: 0.65rem;
    }
    
    .trial-balance-table[b-mi6o8khf4i] {
        min-width: calc(160px + (var(--period-count, 12) * 65px) + ((12 - var(--period-count, 12)) * 4px * var(--period-count, 12))) !important;
        font-size: 0.7rem;
    }
    
    .table-scroll-container[b-mi6o8khf4i] {
        max-height: calc(100vh - 200px);
    }
    
    .table-scroll-container[b-mi6o8khf4i]::-webkit-scrollbar {
        height: 18px;
    }
}

/* Container and viewport adjustments */
/* .container-fluid {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
} */

/* Ensure controls are always visible */
.reports-controls[b-mi6o8khf4i] {
    position: relative;
    z-index: 5;
    min-height: 60px;
    display: flex !important;
    align-items: center;
}

/* Main header container spacing */
.reports-controls > .d-flex[b-mi6o8khf4i] {
    width: 100%;
    min-height: 60px;
    align-items: center;
}

.reports-controls .d-flex[b-mi6o8khf4i] {
    /* width: 100%; */
    flex-wrap: nowrap !important;
}

/* Table wrapper full width */
.table-wrapper[b-mi6o8khf4i] {
    position: relative;
    margin: 0;
    border-radius: 4px;
}

/* Ensure table is contained */
.table-scroll-container[b-mi6o8khf4i] {
    max-width: calc(100vw - 270px); /* Account for sidebar */
    position: relative;
    /* Ensure horizontal scroll works independently */
    overflow-x: auto !important;
    overflow-y: auto !important;
}

/* Print styles */
@media print {
    .reports-header[b-mi6o8khf4i] {
        border-bottom: 2px solid #000;
    }

    .trial-balance-table[b-mi6o8khf4i] {
        font-size: 10pt;
    }

    .trial-balance-table thead th[b-mi6o8khf4i],
    .trial-balance-table tbody td[b-mi6o8khf4i] {
        padding: 0.25rem 0.5rem;
    }
    
    .table-scroll-container[b-mi6o8khf4i] {
        overflow: visible !important;
    }
}

/* Loading state */
.loading-overlay[b-mi6o8khf4i] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}


/* Better number alignment */
.text-end[b-mi6o8khf4i] {
    text-align: right;
}

.fw-bold[b-mi6o8khf4i] {
    font-weight: 600;
}

/* Text truncation and overflow handling */
.text-truncate[b-mi6o8khf4i] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Account column content styling */
.account-column .d-flex[b-mi6o8khf4i] {
    width: 100%;
    min-height: 2rem;
}

.account-column .text-truncate[b-mi6o8khf4i] {
    flex: 1;
    min-width: 0;
}

.expand-button[b-mi6o8khf4i] {
    flex-shrink: 0;
}

/* Ensure proper spacing and alignment */
.trial-balance-table tbody td.account-column[b-mi6o8khf4i] {
    vertical-align: middle;
    padding: 6px 12px;
    text-align: left !important;
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .account-column .small[b-mi6o8khf4i] {
        font-size: 0.7rem;
    }
    
    .account-column .text-truncate[b-mi6o8khf4i] {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .account-column .small[b-mi6o8khf4i] {
        font-size: 0.65rem;
    }
    
    .account-column .text-truncate[b-mi6o8khf4i] {
        font-size: 0.75rem;
    }
}

/* Alternate row colors for better readability */
.trial-balance-table tbody tr:nth-child(even):not(.child-row)[b-mi6o8khf4i] {
    background-color: #fafafa;
}

.trial-balance-table tbody tr:nth-child(even):not(.child-row):hover[b-mi6o8khf4i] {
    background-color: #f0f0f0;
}

.trial-balance-table tbody tr:nth-child(even):not(.child-row):hover .sticky-column[b-mi6o8khf4i] {
    background-color: #f0f0f0 !important;
}

.trial-balance-table tbody tr:nth-child(even):not(.child-row) .sticky-column[b-mi6o8khf4i] {
    background-color: #fafafa !important;
}

/* Header and controls single-row layout responsive styles */
@media (max-width: 768px) {
    .reports-controls > .d-flex[b-mi6o8khf4i] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    
    .reports-controls .d-flex > div:last-child[b-mi6o8khf4i] {
        flex-direction: row !important;
        justify-content: center;
        gap: 12px;
        align-items: center;
    }
    
    .reports-controls .d-flex > div:last-child > div:first-child[b-mi6o8khf4i] {
        flex: 0 0 180px !important;
    }
}

@media (max-width: 480px) {
    .reports-controls > .d-flex[b-mi6o8khf4i] {
        gap: 16px !important;
    }
    
    .reports-controls .d-flex > div:last-child[b-mi6o8khf4i] {
        flex-direction: column !important;
        gap: 8px;
    }
    
    .reports-controls .d-flex > div:last-child > div:first-child[b-mi6o8khf4i] {
        flex: 1 1 100% !important;
    }
    
    .year-selector[b-mi6o8khf4i] {
        width: 100% !important;
    }
}

/* Section and Subtotal Row Styles */
.section-row[b-mi6o8khf4i] {
    background-color: #f9fafb;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
}

.section-row .mud-table-cell[b-mi6o8khf4i] {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 2px solid #e5e7eb;
}

.subtotal-row[b-mi6o8khf4i] {
    background-color: #f3f4f6;
    font-weight: 600;
    border-top: 1px solid #d1d5db;
}

.subtotal-row .mud-table-cell[b-mi6o8khf4i] {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.subtotal-text[b-mi6o8khf4i] {
    font-style: italic;
}

/* Total Row Styles */
.total-row[b-mi6o8khf4i] {
    background-color: #f0f0f0 !important;
    font-weight: 700;
    border-top: 2px solid #aaa;
}

.total-row td[b-mi6o8khf4i] {
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #333;
    border: 1px solid #dee2e6;
    background-color: #f0f0f0 !important;
}

.total-row .sticky-column[b-mi6o8khf4i] {
    background-color: #f8f9fa !important;
}

/* Trial Balance Table Header Styles (same as ProfitLoss) */
.trial-balance-table .mud-table-head[b-mi6o8khf4i],
.trial-balance-table thead[b-mi6o8khf4i] {
    background-color: #f8f9fa !important;
}

.trial-balance-table .mud-table-head .mud-table-cell[b-mi6o8khf4i],
.trial-balance-table .mud-table-head .mud-th[b-mi6o8khf4i],
.trial-balance-table .mud-th[b-mi6o8khf4i],
.trial-balance-table thead .mud-table-cell[b-mi6o8khf4i],
.trial-balance-table thead .mud-th[b-mi6o8khf4i],
.trial-balance-table thead th[b-mi6o8khf4i],
.trial-balance-table .mud-table-head tr .mud-table-cell[b-mi6o8khf4i],
.trial-balance-table .mud-table-head tr .mud-th[b-mi6o8khf4i] {
    font-weight: 600;
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #e5e7eb;
    padding: 0.6rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Use ::deep to penetrate MudBlazor component encapsulation */
[b-mi6o8khf4i] .trial-balance-table .mud-table-head,
[b-mi6o8khf4i] .trial-balance-table thead,
[b-mi6o8khf4i] .trial-balance-table .mud-table-head .mud-table-cell,
[b-mi6o8khf4i] .trial-balance-table .mud-table-head .mud-th,
[b-mi6o8khf4i] .trial-balance-table .mud-th {
    background-color: #f8f9fa !important;
}

[b-mi6o8khf4i] .trial-balance-table thead th {
    background-color: #f8f9fa !important;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

/* Trial Balance Table Row Styles (same as ProfitLoss) */
.trial-balance-table .subtotal-row[b-mi6o8khf4i] {
    background-color: #f3f4f6 !important;
    font-weight: 600;
    border-top: 1px solid #d1d5db;
}

.trial-balance-table .subtotal-row .mud-table-cell[b-mi6o8khf4i] {
    background-color: #f3f4f6 !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.trial-balance-table .data-row:hover[b-mi6o8khf4i] {
    background-color: #fafbfc;
}

.trial-balance-table .zero-amount[b-mi6o8khf4i] {
    color: #d1d5db;
}

/* Use ::deep to penetrate MudBlazor component encapsulation for row styles */
[b-mi6o8khf4i] .trial-balance-table .mud-table-body tr:has(.subtotal-row) {
    background-color: #f3f4f6 !important;
}

[b-mi6o8khf4i] .trial-balance-table .mud-table-body tr:has(.subtotal-row) .mud-table-cell {
    background-color: #f3f4f6 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-top: 1px solid #d1d5db !important;
    font-weight: 600 !important;
}

[b-mi6o8khf4i] .trial-balance-table .subtotal-row,
[b-mi6o8khf4i] .trial-balance-table tr .subtotal-row {
    background-color: #f3f4f6 !important;
    font-weight: 600;
}

[b-mi6o8khf4i] .trial-balance-table .subtotal-row .mud-table-cell,
[b-mi6o8khf4i] .trial-balance-table tr .subtotal-row .mud-table-cell,
[b-mi6o8khf4i] .trial-balance-table .mud-table-body tr .subtotal-row .mud-table-cell {
    background-color: #f3f4f6 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-top: 1px solid #d1d5db !important;
}

[b-mi6o8khf4i] .trial-balance-table .data-row:hover .mud-table-cell {
    background-color: #fafbfc;
}
