.table {
  width: 100%;
  border-collapse: collapse;
  background: #f8fafc; }
  .table th, .table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb; }
  .table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600; }
  .table tr:nth-child(even) {
    background: #f1f5f9; }

.status-label {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 0.375rem;
  font-size: 0.95em;
  font-weight: 500;
  color: #f8fafc; }
  .status-label.paid {
    background: #16a34a; }
  .status-label.unpaid {
    background: #dc2626; }
  .status-label.partial {
    background: #f59e42; }
  .status-label.overdue {
    background: #dc2626; }
  .status-label.draft {
    background: #64748b; }

.btn {
  display: inline-block;
  padding: 0.5em 1.25em;
  border-radius: 0.375rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s all cubic-bezier(0.4, 0, 0.2, 1); }
  .btn.primary {
    background: #2563eb;
    color: #f8fafc; }
  .btn.secondary {
    background: #64748b;
    color: #f8fafc; }
  .btn.danger {
    background: #dc2626;
    color: #f8fafc; }
  .btn.success {
    background: #16a34a;
    color: #f8fafc; }
  .btn.warning {
    background: #f59e42;
    color: #f8fafc; }
  .btn.info {
    background: #0ea5e9;
    color: #f8fafc; }
  .btn:hover {
    opacity: 0.92; }

.box,
.nav-tabs-custom,
.modal-content,
.dropdown-menu {
  border-radius: 0.875rem; }

.box,
.nav-tabs-custom,
.modal-content {
  border: 1px solid rgba(203, 213, 225, 0.82);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); }

.box,
.nav-tabs-custom {
  background: rgba(255, 255, 255, 0.96); }

.box-header,
.modal-header,
.nav-tabs-custom > .nav-tabs {
  border-color: rgba(203, 213, 225, 0.82); }

.dropdown-menu {
  padding: 0.5rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.98); }

.dropdown-menu > li > a {
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-weight: 600;
  color: #1e293b;
  transition: 0.2s all cubic-bezier(0.4, 0, 0.2, 1); }

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  color: #2563eb;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.08)); }

.nav-tabs {
  border-bottom: 1px solid rgba(203, 213, 225, 0.82); }

.nav-tabs > li {
  margin-bottom: -1px; }

.nav-tabs > li > a {
  border-radius: 0.875rem 0.875rem 0 0;
  border: 1px solid transparent;
  color: #475569;
  font-weight: 700;
  transition: 0.2s all cubic-bezier(0.4, 0, 0.2, 1); }

.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus {
  border-color: rgba(203, 213, 225, 0.82);
  background: rgba(248, 250, 252, 0.92);
  color: #2563eb; }

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  color: #2563eb;
  border-color: rgba(203, 213, 225, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.98); }

.nav-tabs-custom > .nav-tabs > li > a {
  border-radius: 0; }

.pagination,
.pagination_ajax,
.dataTables_wrapper .dataTables_paginate ul.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0;
  margin: 1rem 0 0;
  list-style: none; }

.pagination > li,
.pagination_ajax > li,
.dataTables_wrapper .dataTables_paginate ul.pagination > li,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0; }

.pagination > li > a,
.pagination > li > span,
.pagination_ajax > li > a,
.pagination_ajax > li > span,
.page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: #475569;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: 0.2s all cubic-bezier(0.4, 0, 0.2, 1); }

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination_ajax > li > a:hover,
.pagination_ajax > li > span:hover,
.page-link:hover,
.page-link:focus,
.dataTables_wrapper .dataTables_paginate .paginate_button > a:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button > a:focus {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:focus,
.pagination > .active > span:focus,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination_ajax > .active > a,
.pagination_ajax > .active > span,
.pagination_ajax > .active > a:focus,
.pagination_ajax > .active > span:focus,
.pagination_ajax > .active > a:hover,
.pagination_ajax > .active > span:hover,
.page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.current > a,
.dataTables_wrapper .dataTables_paginate .paginate_button.current > a:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.active > a,
.dataTables_wrapper .dataTables_paginate .paginate_button.active > a:hover {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #f8fafc;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.18); }

.pagination > .disabled > a,
.pagination > .disabled > span,
.pagination_ajax > .disabled > a,
.pagination_ajax > .disabled > span,
.page-item.disabled .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled > a,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled > a:hover {
  border-color: rgba(203, 213, 225, 0.84);
  background: rgba(248, 250, 252, 0.9);
  color: rgba(100, 116, 139, 0.6);
  cursor: not-allowed;
  box-shadow: none; }

.dataTables_wrapper .dataTables_paginate {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1rem; }

.dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: auto;
  min-height: auto;
  padding: 0 !important;
  margin-left: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important; }

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important; }

.dataTables_wrapper .dataTables_paginate .paginate_button > a {
  margin: 0; }

.dataTables_wrapper .dataTables_paginate .ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  color: #64748b;
  font-weight: 700; }

.table-responsive {
  border: 0; }

.table {
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.96); }

.table > thead > tr > th,
.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th {
  border-color: rgba(203, 213, 225, 0.82);
  vertical-align: middle; }

.table > thead > tr > th {
  padding: 0.875rem 1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.96));
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap; }

.table > tbody > tr > td,
.table > tbody > tr > th {
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 500; }

.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th,
.table tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.72); }

.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th,
.table > tbody > tr:hover > td,
.table > tbody > tr:hover > th {
  background: rgba(37, 99, 235, 0.04); }

.table-bordered {
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 0.875rem; }

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dt-buttons,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin-top: 1rem; }

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.form-control {
  min-height: 2.625rem;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b;
  box-shadow: none;
  transition: 0.2s all cubic-bezier(0.4, 0, 0.2, 1); }

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus,
.form-control:focus {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

.dataTables_wrapper .dataTables_info {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700; }

.input-group-addon {
  border-color: rgba(203, 213, 225, 0.92);
  background: rgba(248, 250, 252, 0.94);
  color: #475569; }

.app-topbar-currency-slot {
  display: flex;
  align-items: stretch; }

.app-header-currency {
  position: relative;
  width: 100%; }

.app-header-currency__icon,
.app-header-currency__chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; }

.app-header-currency__icon {
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  color: #64748b; }

.app-header-currency__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.75; }

.app-header-currency__chevron {
  right: 0.9rem;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  margin-top: -0.2rem;
  transform: translateY(-50%) rotate(45deg); }

.app-header-currency__select {
  width: 100%;
  min-height: 46px;
  height: 46px;
  padding: 0.75rem 2.75rem 0.75rem 2.55rem;
  border: 1px solid rgba(203, 213, 225, 0.84);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none; }

.app-header-currency__select:focus {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  outline: 0; }

.app-header-currency__select:disabled {
  background: rgba(248, 250, 252, 0.96);
  color: rgba(100, 116, 139, 0.9);
  cursor: wait; }

[dir='rtl'] .app-header-currency__select {
  padding-right: 2.55rem;
  padding-left: 2.75rem; }

[dir='rtl'] .app-header-currency__icon {
  left: auto;
  right: 0.85rem; }

[dir='rtl'] .app-header-currency__chevron {
  right: auto;
  left: 0.9rem; }

@media (max-width: 767px) {
  .dataTables_wrapper .dataTables_paginate,
  .dataTables_wrapper .dataTables_info,
  .pagination,
  .pagination_ajax,
  .dataTables_wrapper .dataTables_paginate ul.pagination {
    justify-content: center; }

  .pagination > li > a,
  .pagination > li > span,
  .pagination_ajax > li > a,
  .pagination_ajax > li > span,
  .page-link,
  .dataTables_wrapper .dataTables_paginate .paginate_button > a {
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem; } }
.toast {
  min-width: 320px;
  max-width: 420px;
  background: #1e293b;
  color: #f8fafc;
  border-radius: 0.375rem;
  box-shadow: 0 2px 16px rgba(30, 41, 59, 0.12);
  padding: 1em 1.5em;
  font-size: 1.05em;
  font-weight: 500;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: 0.75em; }
  .toast.success {
    background: #16a34a;
    color: #f8fafc; }
  .toast.error {
    background: #dc2626;
    color: #f8fafc; }
  .toast.warning {
    background: #f59e42;
    color: #f8fafc; }
  .toast.info {
    background: #0ea5e9;
    color: #f8fafc; }

#toast-container {
  z-index: 999999; }

#toast-container > div {
  min-width: 320px;
  max-width: 420px;
  width: auto;
  border-radius: 0.375rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1rem 1.25rem 1rem 3.25rem;
  color: #f8fafc;
  opacity: 1;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  background-color: #1e293b;
  background-image: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 38%), linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: top right, center !important;
  background-size: auto, auto !important;
  backdrop-filter: blur(10px); }

#toast-container > .toast-success {
  background-color: #137a3b;
  background-image: radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 38%), linear-gradient(135deg, #1a9a4d, #116732) !important; }

#toast-container > .toast-error {
  background-color: #a61b1b;
  background-image: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 38%), linear-gradient(135deg, #dc2626, #8f1717) !important; }

#toast-container > .toast-warning {
  background-color: #d4871d;
  color: #1e293b;
  border-color: rgba(146, 88, 8, 0.24);
  background-image: radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 38%), linear-gradient(135deg, #f6b24a, #d4871d) !important; }

#toast-container > .toast-info {
  background-color: #0c79a8;
  background-image: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 38%), linear-gradient(135deg, #14a3df, #0c79a8) !important; }

#toast-container .toast-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem; }

#toast-container .toast-message {
  font-size: 0.92rem;
  font-weight: 500; }

#toast-container .toast-close-button {
  color: inherit;
  opacity: 0.9;
  text-shadow: none; }

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
  color: inherit;
  opacity: 1; }

#toast-container .toast-progress {
  height: 0.25rem;
  opacity: 0.28; }
