@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("/static/fonts.css");

* {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 14px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

label.required:after {
  color: #f00;
  content: " *";
}

.dl-content dd {
  min-height: 21px;
}

dd {
  min-height: 20px;
}

.clickable-row {
  width: 100%;
  height: 100% !important;
  cursor: pointer;
}

.clickable-row:hover {
  background-color: #f8f9fa;
}

.clickable-row td:first-child {
  padding-left: 6px !important;
}

.clickable-row td:last-child {
  padding-right: 6px !important;
}


.clickable-row > td > a {
  height: 100% !important;
  display: block;
  text-decoration: none;
  color: rgb(33, 37, 41);
  padding: 4px 0 !important;
}

@media (max-width: 768px) {
  .clickable-row > td > a {
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 768px) {
  .clickable-row > td {
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .clickable-row > td > a {
    font-size: 7px;
  }
}

.text-red {
  color: #f00;
}

.table thead th {
  font-weight: 500 !important;
}

@media (max-width: 768px) {
  .table thead th {
    max-width: 120px;
    white-space: nowrap !important;
  }
}


.clickable-item {
  background-color: transparent;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border-radius: 8px;
  cursor: pointer;
  max-width: 400px;
  text-decoration: none;
}

.clickable-item:hover {
  transform: translateY(-3px);
}

@media (max-width: 767.98px) {
  .clickable-item {
    width: 100% !important;
    max-width: none;
  }
}

.active-nav {
  background-color: #e9ecef;
  border-left: 3px solid rgb(0, 0, 0);
}
.settings-form {
  display: none;
}
.active-form {
  display: block;
}

/* Table column width classes for project.html tables */
.col-table-1 {
  width: 20%;
}
.col-table-2 {
  width: 20%;
}
.col-table-3 {
  width: 20%;
}
.col-table-4 {
  width: 20%;
}
.col-table-5 {
  width: 20%;
}

.col-table-even {
  width: 140px !important;
  max-width: 140px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #ffeeba;
}
.table {
  table-layout: fixed;
  width: 100%;
}

:root {
  --primary-color: #ffffff;
  --primary-hover: #f5f5f5;
  --secondary-color: #000000;
  --success-color: #000000;
  --warning-color: #000000;
  --danger-color: #000000;
  --info-color: #000000;

  --gray-50: #ffffff;
  --gray-100: #ffffff;
  --gray-200: #ffffff;
  --gray-300: #f5f5f5;
  --gray-400: #f0f0f0;
  --gray-500: #e0e0e0;
  --gray-600: #cccccc;
  --gray-700: #999999;
  --gray-800: #666666;
  --gray-900: #333333;

  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ffffff;

  --text-primary: #000000;
  --text-secondary: #000000;
  --text-muted: #000000;

  --border-color: #e0e0e0;
  --border-focus: #000000;

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ffffff;
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-muted: #000000;
    --border-color: #e0e0e0;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--spacing-md) 0;
  color: var(--text-primary);
}

p {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--text-secondary);
}

a {
  color: black;
  font-weight: bold;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: black;
  text-decoration: none;
}

.navbar {
  background: var(--bg-primary) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: none;
  padding: var(--spacing-md) 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  margin: 0 var(--spacing-xs);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-primary) !important;
  background-color: var(--bg-tertiary);
}

.navbar-nav .nav-link i {
  font-size: 0.875rem;
  margin-right: 0.25rem;
}

.navbar-toggler {
  border: none;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dropdown-menu {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-sm) 0;
  margin-top: var(--spacing-sm);
}

.dropdown-item {
  color: var(--text-secondary);
  padding: var(--spacing-sm) var(--spacing-md);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--text-primary);
}

.breadcrumb {
  background: transparent;
  padding: var(--spacing-md) 0;
  margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
  content: "›";
  font-weight: 600;
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 500;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: border-color var(--transition-normal);
}

.card:hover {
  border-color: var(--gray-400);
}

.card-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  font-weight: 600;
}

.card-body {
  padding: var(--spacing-lg);
}

.table {
  background: var(--bg-primary);
  overflow: hidden;
  box-shadow: none;
}

.table thead th {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.5rem 0 !important;
  letter-spacing: 0.05em;
  text-align: left;
}

@media (max-width: 991.98px) {
  .table thead th {
    font-size: 0.75rem !important;
  }
}

.table tbody td {
  padding: 0.5rem 0 !important;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
  text-align: left;
}

.table tbody tr {
  height: 100% !important;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.btn {
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: "white";
  border-color: var(--border-color);
  background-color: black;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--gray-400);
  background-color: black;
}

.btn-outline-dark {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline-dark:hover {
  background-color: var(--text-primary);
  border-color: var(--gray-400);
  color: white;
}

.btn-dark {
  background-color: var(--text-primary);
  color: var(--primary-color);
  border-color: var(--text-primary);
}

.btn-dark:hover {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--primary-hover);
  border-color: var(--gray-400);
}

.btn i {
  font-size: 0.875rem;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--gray-500);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--gray-600);
}

.form-control {
  width: "100%";
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.form-text {
  color: var(--text-muted);
  margin-top: var(--spacing-xs);
}

.invalid-feedback {
  color: var(--danger-color);
  margin-top: var(--spacing-xs);
}

.form-control.is-invalid {
  border-color: var(--danger-color);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-check-input {
  border: 1px solid #dee2e6;
  background-color: #cecdcd;
}

.form-switch .form-check-input {
  background-color: #e1e0e0;
  border: 1px solid #dee2e6;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 1rem 1rem;
}

.form-switch .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
  background-position: right center;
}

.modal-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-lg);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-footer {
  width: 500px;
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-lg);
}

.text-red {
  color: var(--danger-color) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-light {
  background-color: var(--bg-secondary) !important;
}

.border-light {
  border-color: var(--border-color) !important;
}

@media (max-width: 768px) {
  .navbar-nav .nav-link {
    margin: var(--spacing-xs) 0;
  }

  .card-body {
    padding: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .table-responsive th,
  .table-responsive td {
    font-size: 10px !important;
    white-space: nowrap;
  }

  .table-responsive colgroup col:nth-child(1) {
    width: 18% !important; /* Number */
  }
  .table-responsive colgroup col:nth-child(2) {
    width: 25% !important; /* Invoice */
  }
  .table-responsive colgroup col:nth-child(3),
  .table-responsive colgroup col:nth-child(4),
  .table-responsive colgroup col:nth-child(5),
  .table-responsive colgroup col:nth-child(6) {
    width: 23% !important; /* Type, Amount, Paid at, Status */
  }
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

.badge {
  font-weight: 500;
}

.avatar-sm {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.75rem !important;
}
.table thead th {
  font-size: 1rem;
  border-bottom: none !important;
}

.bi {
  font-size: 1rem;
}

.fs-1 .bi {
  font-size: 1rem;
}

.fs-4 .bi {
  font-size: 1.25rem;
}

.text-success {
  color: var(--text-primary) !important;
}

.text-danger {
  color: var(--text-primary) !important;
}

.text-info {
  color: var(--text-primary) !important;
}

.text-warning {
  color: var(--text-primary) !important;
}

.bg-success {
  background-color: var(--primary-color) !important;
}

.bg-danger {
  background-color: var(--primary-color) !important;
}

.bg-info {
  background-color: var(--primary-color) !important;
}

.bg-warning {
  background-color: var(--primary-color) !important;
}

.bg-dark {
  background-color: var(--text-primary) !important;
}

.bg-secondary {
  background-color: var(--primary-color) !important;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa !important;
}

.table-danger {
  background-color: var(--bg-primary) !important;
}

.table-success {
  background-color: var(--bg-primary) !important;
}

.table-info {
  background-color: var(--bg-primary) !important;
}

.table-warning {
  background-color: var(--bg-primary) !important;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: var(--spacing-sm);
}

.status-indicator.success {
  background-color: var(--success-color);
}

.status-indicator.warning {
  background-color: var(--warning-color);
}

.status-indicator.danger {
  background-color: var(--danger-color);
}

.card {
  border: 1px solid var(--border-color);
  box-shadow: none;
  transition: border-color var(--transition-normal);
}

.card:hover {
  border-color: var(--gray-400);
}

.card-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.spinner-border {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 0.2em;
}

.toast {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.tooltip-inner {
  background-color: var(--gray-800);
  border-radius: var(--radius-sm);
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.3);
}

.modal.fade .modal-dialog {
  transition: transform var(--transition-normal);
}

.modal-content {
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

@media (max-width: 768px) {
}

@media print {
  .navbar,
  .btn,
  .dropdown-menu {
    display: none !important;
  }

  .card {
    border: 1px solid var(--border-color);
    box-shadow: none;
  }

  .table {
    border: 1px solid var(--border-color);
  }
}

.table-hover tbody tr:hover {
  background-color: var(--bg-tertiary);
}

.people-table {
  border: none;
  background: transparent;
}

.people-table .table {
  border: none;
  background: transparent;
  box-shadow: none;
}

.people-table .table thead th {
  background: transparent;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.1rem;
}

.people-table .table tbody td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}

.people-table .table tbody td:nth-child(2),
.people-table .table tbody td:nth-child(3),
.people-table .table tbody td:nth-child(4),
.people-table .table tbody td:nth-child(5) {
  text-align: right;
}

.people-table .table thead th:nth-child(2),
.people-table .table thead th:nth-child(3),
.people-table .table thead th:nth-child(4),
.people-table .table thead th:nth-child(5) {
  text-align: right;
}

.people-table .table tbody tr:hover {
  background-color: #f8f9fa !important;
}

.people-table .badge {
  border: 1px solid var(--border-color);
  font-weight: 500;
}

.badge-table {
  font-size: 1em;
  padding: 0.25em 0.5em;
  font-weight: 400;
}

.table-align th,
.table-align td {
  text-align: right;
  vertical-align: middle;
  padding: 0.75rem 0.5rem;
}
.table-align th:first-child,
.table-align td:first-child {
  text-align: left;
  padding-left: 0;
  padding-right: 0;
  width: 3%;
}
.table-align th:last-child,
.table-align td:last-child {
  padding-right: 0;
}
.table-align .col-table-even {
  min-width: 50px;
  padding: 0.25rem 0.25rem;
}
.table-align th:nth-child(n + 13),
.table-align td:nth-child(n + 13) {
  padding: 0.75rem 1rem;
  min-width: 200px;
}

.person-form-container {
  max-width: 900px;
}
.person-form-container .form-control {
  width: 100%;
}

.person-form-container .form-check-input,
.person-form-container .form-switch .form-check-input {
  width: auto;
  min-width: 2.5em;
  max-width: 3em;
  display: inline-block;
}

.clickable-table-row {
  cursor: pointer !important;
  position: relative;
}

.clickable-table-row td {
  position: relative;
}

.clickable-table-row td a {
  position: relative;
  z-index: 1;
}

.table td a.d-block {
  display: block;
  width: 100;
  height: auto;
  padding: 00.5rem 0rem;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

#type-column {
  max-width: 80px !important;
  padding-left: 0 !important;
  padding: 0px;
}

.btn-primary,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.badge,
.badge-table {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.table td .badge:hover,
.table td .badge-table:hover {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

#settings-container {
  margin-top: -25px;
}

@media (max-width: 991.98px) {
  #settings-container {
    width: "100%" !important;
    margin-top: 3rem;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}

/* Nav Bar Animations */

.nav-item {
  transform: scale(1);
  transition: transform 0.2s ease;
}

.nav-item:hover {
  transform: scale(1.04);
}

/* Person page */

.primary-person {
  color: black;
}

.primary-person:hover {
  color: #0d6efd;
}

.billing-person {
  color: black;
}

.billing-person:hover {
  color: #0d6efd;
}

@media (max-width: 768px) {
  dl.row dt,
  dl.row dd {
    font-size: 13px;
  }

  dl.row .col-2 {
    flex: 0 0 35% !important;
    max-width: 35% !important;
    text-align: left;
  }

  dl.row .col-10 {
    flex: 0 0 65% !important;
    max-width: 65% !important;
  }
}


/* .link { */
/*   color: black; */
/*   font-weight: bold; */
/* } */

/* .link:hover { */
/*   color: black; */
/* } */
