.hidden {
  display: none;
}

.tw-btn-primary {
  transition: all 0.2s;
  border: 1px solid #3490dc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  background-color: #03045e !important;
  color: white;
}

.tw-btn-primary:focus {
  box-shadow: 0 0 0 4px #3490dc;
  opacity: 0.2;
}

.tw-btn-primary:focus-visible {
  outline: none;
}

.tw-btn-primary:hover:not(:disabled) {
  background-color: #0f118d !important;
  border-color: #0f118d !important;
}

.tw-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (prefers-color-scheme: dark) {
  .tw-btn-primary:focus {
    box-shadow: 0 0 0 4px #1f2937;
    opacity: 0.5;
  }

  .tw-btn-primary {
    background-color: #1f2937;
    border-color: #1f2937;
  }
}

.tw-btn-danger {
  transition: all 0.2s;
  border: 1px solid #e3342f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none !important;
  outline: none !important;
  background-color: #e3342f !important;
  color: white !important;
  margin-bottom: 0.5rem;
  margin-right: 0.25rem;
}

.tw-btn-danger:focus {
  box-shadow: 0 0 0 4px rgba(227, 52, 47, 0.2);
  opacity: 0.2;
}

.tw-btn-danger:focus-visible {
  outline: none;
}

.tw-btn-danger:hover:not(:disabled) {
  background-color: rgba(211, 76, 71, 0.9) !important;
  border-color: rgba(211, 76, 71, 0.9) !important;
}

.tw-btn-danger:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (prefers-color-scheme: dark) {
  .tw-btn-danger:focus {
    box-shadow: 0 0 0 4px rgba(75, 85, 99, 0.5);
  }

  .tw-btn-danger {
    background-color: #e3342f;
    border-color: #e3342f;
  }
}

.tw-btn-success {
  transition: all 0.2s;
  border: 1px solid #38c172;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none !important;
  outline: none !important;
  background-color: rgb(var(--color-success) / var(--tw-bg-opacity));
  color: white !important;
}

.tw-btn-success:focus {
  box-shadow: 0 0 0 4px rgba(56, 193, 114, 0.2);
  opacity: 0.2;
}

.tw-btn-success:focus-visible {
  outline: none;
}

.tw-btn-success:hover:not(:disabled) {
  background-color: rgba(56, 193, 114, 0.9) !important;
  border-color: rgba(56, 193, 114, 0.9) !important;
}

.tw-btn-success:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (prefers-color-scheme: dark) {
  .tw-btn-success:focus {
    box-shadow: 0 0 0 4px rgba(75, 85, 99, 0.5);
  }

  .tw-btn-success {
    background-color: #38c172;
    border-color: #38c172;
  }
}

.tw-btn-white {
  transition: all 0.2s;
  border: 1px solid #000000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none !important;
  outline: none !important;
  background-color: white !important;
  color: black !important;
  /* Black text */
  margin-bottom: 0.5rem;
  margin-right: 0.25rem;
  width: 6rem;
}

.tw-btn-white:focus {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
}

.tw-btn-white:focus-visible {
  outline: none;
}

.tw-btn-white:hover:not(:disabled) {
  background-color: rgba(240, 240, 240, 0.9) !important;
  border-color: rgba(240, 240, 240, 0.9) !important;
  color: black !important;
}

.tw-btn-white:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (prefers-color-scheme: dark) {
  .tw-btn-white:focus {
    box-shadow: 0 0 0 4px rgba(75, 85, 99, 0.5);
  }

  .tw-btn-white {
    background-color: #e3342f;
    border-color: whitesmoke;
  }
}

.bg-danger td {
  color: white;
  --tw-bg-opacity: 1 !important;
  background-color: rgb(var(--color-danger) / var(--tw-bg-opacity)) !important;
}

.preview-margin {
  margin-top: 20px;
}

.search-width {
  width: 734px !important;
}

.w-\[600px\] {
  width: 37.5rem;
}

.w-\[700px\] {
  width: 43.75rem;
}

.h-\[700px\] {
  max-height: 43.75rem;
}

.col-span-9 {
  grid-column: span 9 / span 9;
}

.col-span-4 {
  grid-column: span 4 / span 4;
}

.col-span-1 {
  grid-column: span 1 / span 1;
}

.col-start-2 {
  grid-column-start: 2;
}

.col-start-3 {
  grid-column-start: 3;
}

.col-start-7 {
  grid-column-start: 7;
}

.col-start-8 {
  grid-column-start: 8;
}

.col-start-9 {
  grid-column-start: 9;
}

.col-start-10 {
  grid-column-start: 10;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:col-span-6 {
    grid-column: span 6 / span 6;
  }
  .md\:col-span-8 {
    grid-column: span 8 / span 8;
  }
  .md\:col-span-12 {
    grid-column: span 12 / span 12;
  }

  .md\:col-span-4 {
    grid-column: span 4 / span 4;
  }
  .md\:col-span-5 {
    grid-column: span 5 / span 5;
  }
  .md\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .md\:grid-cols-8 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .md\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.p-20 {
  padding: 5rem;
}

.min-h-\[700px\] {
  min-height: 33.75rem;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-default {
  cursor: default;
}

.mobile-menu {
  margin-right: 9.375rem;
}

ul.text-\[17px\] {
  font-size: 1.0625rem !important;
}

.clickable-row {
  cursor: pointer;
}

.form-inline .control-label {
  margin-bottom: 2px;
  margin-right: 5px;
  text-align: right;
  width: 20%;
}

.w-\[37px\] {
  width: 37px
}

@media (min-width: 768px) and (max-width: 1024px) {

  #tags_content,
  #chart_content,
  #product_order_form_wrapper,
  #joint_accounts_wrapper,
  #admin_user_form_wrapper {
    grid-template-columns: 1fr;
    gap: 0;
    row-gap: 1rem;
  }

  #tags_content .order-2,
  #chart_content .order-2,
  #product_order_form_wrapper .order-2,
  #joint_accounts_wrapper .order-2,
  #admin_user_form_wrapper .order-2 {
    order: 1 !important;
  }

  #tags_content .order-1,
  #chart_content .order-1,
  #product_order_form_wrapper .order-1,
  #joint_accounts_wrapper .order-1,
  #admin_user_form_wrapper .order-1 {
    order: 2 !important;
  }
}

.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgba(243, 244, 246, var(--tw-bg-opacity));
  /* Gray-100 */
}

.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgba(31, 41, 55, var(--tw-text-opacity));
  /* Gray-800 */
}

.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgba(55, 65, 81, var(--tw-text-opacity));
  /* Gray-700 */
}

.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgba(209, 213, 219, var(--tw-border-opacity));
  /* Gray-300 */
}

.hover\:bg-gray-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgba(243, 244, 246, var(--tw-bg-opacity));
  /* Gray-100 */
}

.shadow {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  /* Default shadow */
}

.items-stretch {
  align-items: stretch;
}

.focus\:ring-2:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, var(--tw-ring-opacity));
  /* Blue-500 */
}

.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, var(--tw-ring-opacity));
  /* Blue-500 */
}

.focus\:outline-none:focus {
  outline: 0;
}

.focus\:z-10:focus {
  z-index: 10;
}

.origin-top-right {
  transform-origin: top right;
}

.h-\[28rem\] {
  height: 28rem;
}

.h-\[260px\] {
  height: 260px;
}

.h-\[300px\] {
  height: 300px;
}

.h-\[300px\] {
  height: 300px;
}

.h-\[400px\] {
  height: 400px;
}

.h-\[700px\] {
  height: 43.75rem;
}

.max-w-\[500px\] {
  max-width: 500px;
}

.max-w-\[1000px\] {
  max-width: 1000px;
}

@media (min-width: 640px) {
  .sm\:justify-between {
    justify-content: space-between;
  }
}

.w-\[300px\] {
  width: 300px;
}

.w-\[400px\] {
  width: 400px;
}

.overflow-scroll {
  overflow: scroll;
}

.overflow-x-scroll {
  overflow-x: scroll;
}

.justify-between{
  justify-content: space-between;
}

.rounded-l-md {
  border-top-left-radius: .375rem;
  border-bottom-left-radius: .375rem;
}

.rounded-r-md {
  border-top-right-radius: .375rem;
  border-bottom-right-radius: .375rem;
}

.break-keep {
  word-break: keep-all;
}

@media (min-width: 1024px) {
      .lg\:visible {
        visibility: visible;
      }
      div.lg\:inline-flex {
        display: inline-flex
      }
      .lg\:gap-4 {
        gap: 1rem
      }
      .lg\:justify-between {
          justify-content: space-between;
      }
      .lg\:items-center {
        align-items: center;
      }

      .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

    .lg\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .lg\:col-span-6 {
        grid-column: span 6 / span 6;
    }

    .lg\:col-span-12 {
        grid-column: span 12 / span 12;
    }
}

@media (min-width: 1280px) {
  .xl\:visible {
    visibility: visible;
  }
  div.xl\:inline-flex {
    display: inline-flex
  }
  div.xl\:flex {
    display: flex
  }
}

.ckeditor-tailwind .ck-content {
  min-height: 200px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

.ckeditor-tailwind .ck-content:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
  border-color: transparent;
}

.ckeditor-tailwind .ck-toolbar {
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: 1px solid #e5e7eb;
}

.ck.ck-dropdown__panel {
  z-index: 9999 !important;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 2rem auto;
  padding: 0;
  width: 90%;
  max-width: 600px;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-20px);
  transition: transform 0.3s;
}

.modal.show .modal-content {
  transform: translateY(0);
}

/* Custom Modal System */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.custom-modal.show {
  opacity: 1;
}

.custom-modal-content {
  position: relative;
  background: white;
  margin: 20px auto;
  padding: 0;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-20px);
  transition: transform 0.2s ease;
}

.custom-modal.show .custom-modal-content {
  transform: translateY(0);
}

.custom-modal-header {
  padding: 20px 20px 0 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.custom-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.custom-modal-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 4px 0 0 0;
}

.custom-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.custom-modal-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.custom-modal-body {
  padding: 20px;
}

.custom-modal-footer {
  padding: 0 20px 20px 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.custom-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  color: #374151;
}

.custom-btn:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.custom-btn-primary {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.custom-btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

/* Help button styling */
.help-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #3b82f6;
  color: white;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.help-btn:hover {
  background-color: #2563eb;
}

/* Responsive */
@media (max-width: 640px) {
  .custom-modal-content {
    width: 95%;
    margin: 10px auto;
  }

  .custom-modal-header,
  .custom-modal-body,
  .custom-modal-footer {
    padding: 15px;
  }
}

#customer_admin_tab_content .tab-pane {
    width: auto !important;
}

#admin_licenses_tab_content .tab-pane {
    width: auto !important;
}

#system_info_tab_content {
    overflow-x: auto;
}

.z-index-top {
    z-index: 9999999 !important;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-shrink-1 {
    flex-shrink: 1;
}

#ui-datepicker-div {
    z-index: 999999;
}