/* Uistite sa, že je toto pravidlo načítané po hlavných štýloch Dash UI */
body {
    background-color: #f8f9fa; /* Nastaví svetlé pozadie pre telo dokumentu */
    font-size: 0.95rem;
    line-height: 1.5;
    color: #000000;
  }

  :root {
    --bs-body-color: #000000;
    --bs-heading-color: #000000;
    --bs-body-font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  }

  h1, .h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.01em; }
  h2, .h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
  h3, .h3 { font-size: 1.2rem; font-weight: 700; }
  h4, .h4 { font-size: 1.05rem; font-weight: 700; }
  h5, .h5 { font-size: 0.95rem; font-weight: 700; }

  .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #000000;
    letter-spacing: 0.01em;
    margin-bottom: 0.35rem;
  }

  .form-control,
  .form-select,
  .form-check-label,
  .form-check-input {
    color: #000000;
  }

  .form-control:focus,
  .form-select:focus {
    color: #000000;
  }

  .form-control,
  .form-select {
    font-size: 0.9rem;
    padding: 0.45rem 0.6rem;
  }

  .form-select {
    border-color: #cfd6f5 !important;
    background-color: #f5f7ff !important;
  }

  .form-select:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.2) !important;
    background-color: #ffffff !important;
  }

  .form-select:required:invalid {
    border-color: #f7c96b !important;
    background-color: #fff7e8 !important;
  }


  .btn {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.85rem;
  }

  .table {
    font-size: 0.9rem;
  }

  .table thead th {
    text-align: left;
  }

  .table-rma th,
  .table-rma td {
    text-align: left !important;
    vertical-align: middle;
  }

  .table-rma thead th {
    padding-left: 0.5rem;
  }

  .table-rma tbody td {
    padding-left: 0.5rem;
  }

  .table-rma tbody td {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

.table-rma tbody tr:hover {
    background-color: #f2f4f8;
}

.rma-date-cell {
    width: 10ch;
    white-space: nowrap;
}

.rma-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.rma-action-form {
    display: inline-flex;
    margin: 0;
}

.rma-external-cell {
    white-space: nowrap;
    max-width: 25ch;
}

.rma-deadline-cell {
    white-space: nowrap;
}

.rma-deadline-overdue {
    color: #dc2626;
    font-weight: 700;
}

.rma-edit-compact .card-body {
    padding: 1rem 1.25rem;
}

.rma-edit-compact .row.g-3.mb-3 {
    margin-bottom: 0.75rem !important;
}

.rma-edit-compact .form-label {
    margin-bottom: 0.25rem;
}

  .table-rma td:last-child .btn {
    transform: none;
  }

  .table-rma thead th {
    text-align: left !important;
  }

  .table-rma-products thead th {
    text-align: left !important;
  }

  .table-rma-products thead tr {
    text-align: left !important;
  }

  .table-rma-products thead th {
    padding-left: 0.5rem !important;
  }

.table-rma-products td {
    vertical-align: middle;
}

.rma-product-action {
    white-space: nowrap;
    width: 1%;
    padding-right: 0.5rem;
}

.rma-products-row-mode .rma-product-details {
    display: none;
}

.rma-products-row-mode .rma-detail-input {
    display: none;
}

.rma-products-row-mode .rma-row-text {
    display: inline;
}

.rma-products-card:not(.rma-products-row-mode) .rma-row-text {
    display: none;
}

.rma-products-card:not(.rma-products-row-mode) .rma-detail-input {
    display: block;
}

.rma-product-details form {
    row-gap: 0.5rem;
}

.rma-product-details .form-label {
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

.rma-product-details .form-control,
.rma-product-details .form-select {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
}

.rma-product-details textarea.form-control {
    min-height: 2.4rem;
}

.rma-edit-sku {
    width: 100%;
    min-width: 17ch;
    max-width: none;
}

.table-rma-products th:first-child,
.table-rma-products td:first-child {
    width: 17ch;
    min-width: 17ch;
}

.table-rma-products th:nth-child(3),
.table-rma-products td:nth-child(3) {
    width: 14ch;
    min-width: 14ch;
}

.rma-edit-qty {
    max-width: 5ch;
}

.rma-edit-price {
    max-width: 10ch;
}

.rma-edit-serial {
    max-width: 18ch;
}

.rma-edit-ean {
    max-width: 14ch;
}

.rma-edit-manufacturer {
    max-width: 14ch;
}

.rma-edit-name {
    width: 100%;
}

.rma-create-page .row.g-3 {
    --bs-gutter-y: 0.5rem;
}

.rma-create-page .form-label {
    margin-bottom: 0.2rem;
}

.rma-create-page .card-body {
    padding: 1rem;
}

.rma-create-page .rma-price-input {
    width: 100%;
    min-width: 14ch;
    max-width: none;
}

.rma-create-page .table-rma-products th:nth-child(3),
.rma-create-page .table-rma-products td:nth-child(3) {
    width: 14ch;
    min-width: 14ch;
}

.login-card {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.login-logo img {
    max-width: 150px;
}

.login-card-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.login-card .form-label {
    font-weight: 600;
}

.login-forgot-link {
    text-decoration: none;
    font-size: 0.9rem;
    color: inherit;
    display: inline-block;
    margin-top: 0.5rem;
}

.login-forgot-link:hover {
    text-decoration: underline;
}

.modal-frame #db-wrapper {
    padding: 0;
}

.modal-frame #page-content {
    margin-left: 0;
}

.modal-frame .navbar-vertical,
.modal-frame #page-topbar,
.modal-frame .navbar,
.modal-frame .navbar-nav,
.modal-frame .dashboard-header,
.modal-frame .topbar,
.modal-frame .header,
.modal-frame .navbar-vertical.nav-dashboard,
.modal-frame .navbar.nav-dashboard {
    display: none !important;
}

#productEditModal .modal-dialog,
#productCreateModal .modal-dialog {
    max-width: 990px;
    width: 95vw;
}

.modal-content {
    border-radius: 16px;
    border: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
}

.modal-header {
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 0;
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.25rem;
    background: #fff;
}

.modal-frame .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    background: #fff;
}

.modal-frame .card-body {
    padding: 0.6rem;
}

.modal-frame .py-4,
.modal-frame .px-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.modal-frame .py-4 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.modal-frame .mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.modal-frame .card {
    width: 100%;
}

.modal-frame .card {
    border: 0;
    box-shadow: none;
    background: #fff;
}

.modal-frame .card-body {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0.75rem;
}

.modal-frame {
    background: #fff;
}

.modal-frame #page-content {
    background: #fff;
}

#productEditModal iframe,
#productCreateModal iframe {
    height: 90vh;
}

.modal-frame .container {
    max-width: 100%;
}

.modal-frame #price {
    width: 75px !important;
    max-width: 100%;
}

.modal-frame #quantity {
    width: 5ch !important;
    max-width: 100%;
}

.modal-frame #name {
    min-width: 320px;
    max-width: 100%;
}

.pagination .page-link {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    line-height: 1;
}

.pagination .page-item .page-link svg {
    width: 0.7rem;
    height: 0.7rem;
}

.pagination svg {
    width: 0.7rem;
    height: 0.7rem;
}

.pagination .page-link[aria-label="« Previous"],
.pagination .page-link[aria-label="Next »"] {
    padding: 0.25rem 0.4rem;
}

.pagination {
    font-size: 0.7rem;
}

.pagination .page-link[aria-label="« Previous"],
.pagination .page-link[aria-label="Next »"] {
    font-size: 0.7rem;
}


  .table-compact > :not(caption) > * > * {
    padding: 0.3rem 0.5rem;
  }

  .table-compact .btn-sm {
    padding: 0.2rem 0.45rem;
    font-size: 0.8rem;
  }

  .table-supplier-claims th,
  .table-supplier-claims td {
    text-align: left !important;
  }

  .table-supplier-claims thead th,
  .table-supplier-claims tbody td {
    padding-left: 0.5rem;
  }

  .table-lists th,
  .table-lists td {
    text-align: left !important;
  }

  .table-lists thead th,
  .table-lists tbody td {
    padding-left: 0.5rem !important;
  }

  .table-suppliers th,
  .table-suppliers td {
    text-align: left !important;
  }

  .table-products-rma th,
  .table-products-rma td {
    text-align: left !important;
  }

  .table-products-rma thead th,
  .table-products-rma tbody td {
    padding-left: 0.5rem !important;
  }

  .claim-input--narrow {
    width: 80%;
  }

  .table-compact thead th {
    text-align: left;
  }

  .table-supplier-claim-items thead th {
    text-align: left !important;
  }

  .table-supplier-claim-items thead {
    text-align: left !important;
  }

  .table-supplier-claim-items thead th,
  .table-supplier-claim-items tbody td {
    padding-left: 0.5rem !important;
  }

.table-supplier-claim-items td {
    vertical-align: middle;
}

.supplier-claim-compact .mb-3 {
    margin-bottom: 0.75rem !important;
}

.supplier-claim-compact .form-label {
    margin-bottom: 0.25rem;
}

.supplier-claim-compact .table {
    margin-bottom: 0.5rem;
}

  .type-pill {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-left: 0.75rem;
    margin-right: 30px;
    display: inline-flex;
    align-items: center;
  }

  .table-rma .type-pill {
    margin: 0;
    padding: 0.3rem 0.6rem;
  }

  .type-pill--return {
    background: #e0f2fe;
    border-color: #bae6fd;
  }

  .type-pill--complaint {
    background: #fee2e2;
    border-color: #fecaca;
  }

  .type-pill .form-check-input {
    margin: 0;
    margin-right: 10px;
  }

  .type-pill .form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
  }

  .rma-status-label {
    white-space: nowrap;
  }

  .auth-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
  }

  .auth-form {
    width: 100%;
    margin-top: 0;
  }

  .auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8edf7;
    background-image:
      linear-gradient(180deg, rgba(248, 250, 252, 0.55) 0%, rgba(248, 250, 252, 0.7) 100%),
      url("https://images.pexels.com/photos/9431436/pexels-photo-9431436.jpeg?cs=srgb&dl=pexels-vanessa-garcia-632597-9431436.jpg&fm=jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: inherit;
  }

  .auth-container {
    width: 100%;
    max-width: 28rem;
    margin: 0;
  }

  .auth-form .form-label,
  .auth-form .form-check-label,
  .auth-form .form-control,
  .auth-form .form-check-input,
  .auth-form .btn,
  .auth-form a {
    font-family: inherit;
    font-size: 0.95rem;
  }

  .auth-form .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
  }

  .auth-form .form-check-input {
    margin-left: 0;
    margin-top: 0;
  }

  .auth-form .form-label {
    display: inline-block;
    width: 6.5rem;
  }

  .auth-form .mb-3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .auth-form .form-control {
    flex: 0 0 auto;
    width: 21ch;
  }

  .auth-card {
    background: #ffffff;
    border: 1px solid #e6e9f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  }

  .auth-form a {
    text-decoration: none;
  }

  .card {
    border-radius: 0.75rem;
    border-color: #e2e8f0;
  }

  .card-header {
    font-size: 0.9rem;
    font-weight: 600;
    background-color: #f8fafc;
  }

  .btn .feather {
    width: 14px;
    height: 14px;
    stroke-width: 2;
  }

  .table-sm > :not(caption) > * > * {
    padding: 0.35rem 0.5rem;
  }

.btn-icon {
    padding: 0.2rem 0.3rem;
    line-height: 1;
}

.btn-icon .feather {
    width: 11px;
    height: 11px;
}
  
  .navbar-classic {
    background-color: #ffffff; /* Nastaví bielu farbu pozadia pre navigačný panel */
    border-bottom: 1px solid #ebebeb; /* Pridá spodnú hranicu pre oddelenie */
  }
  
  /* Ak chcete zmeniť pozadie bočného panelu */
  .navbar-vertical {
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
}

  
  /* Ak chcete zmeniť farbu textu v bočnom paneli */
  .navbar-vertical .navbar-nav .nav-link {
    color: #475569 !important; /* Nastaví tmavú farbu pre text odkazov */
  }
  
  /* Ak chcete zmeniť farbu textu nadpisov v bočnom paneli */
  .navbar-heading {
    color: #475569; /* Nastaví tmavú farbu pre text nadpisov */
  }
  
  /* Ak chcete zmeniť farbu pozadia pre aktívny odkaz v bočnom paneli */
  .navbar-vertical .navbar-nav .nav-link.active {
    background-color: #ebebeb; /* Svetlá sivá farba pre aktívne položky */
    color: #0d6efd; /* Modrá farba pre text aktívneho odkazu */
  }
  
  /* Ak používate dropdown menu v navigácii */
  .dropdown-menu {
    background-color: #ffffff; /* Biela farba pozadia pre dropdown menu */
  }
  
  /* Farby textu pre dropdown menu položky */
  .dropdown-item {
    color: #475569;
  }
  
  /* Farba pozadia pre najazdenú (hover) dropdown menu položku */
  .dropdown-item:hover,
  .dropdown-item:focus {
    background-color: #f8f9fa;
  }
  
  /* Farby pre hlavný obsah */
  #layoutSidenav_content {
    background-color: #ffffff; /* Biela farba pozadia pre hlavný obsah */
  }
  

 /* Aktívna položka v navigácii */
.navbar-vertical .navbar-nav .nav-link.active,
.navbar-vertical .navbar-nav .nav-item.active .nav-link {
    background-color: #624bff; /* Farba pozadia pre aktívnu položku */
    color: #ffffff !important; /* Farba textu pre aktívnu položku */
}

/* Najazdená (hover) položka v navigácii - iba zmena farby textu, bez zmeny pozadia */
.navbar-vertical .navbar-nav .nav-link:hover,
.navbar-vertical .navbar-nav .nav-link:focus {
    color: #624bff !important; /* Farba textu pre najazdenú položku */
    background-color: transparent; /* Bez zmeny farby pozadia */
}

/* Ikona pre aktívnu položku */
.navbar-vertical .navbar-nav .nav-link.active .nav-icon,
.navbar-vertical .navbar-nav .nav-item.active .nav-link .nav-icon {
    color: #ffffff !important; /* Farba ikony pre aktívnu položku */
}

/* Ikona pre najazdenú (hover) položku - zmena farby ikony na hover */
.navbar-vertical .navbar-nav .nav-link:hover .nav-icon,
.navbar-vertical .navbar-nav .nav-link:focus .nav-icon {
    color: #624bff !important; /* Farba ikony pre najazdenú položku */
}

.avatar-user-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

.public-body {
    min-height: 100vh;
    background-color: #f5f7fb;
    background-image: radial-gradient(circle at 20% 20%, rgba(98, 75, 255, 0.08), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(17, 24, 39, 0.06), transparent 40%);
}

.public-page {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.public-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.public-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #624bff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.public-card {
    background: #ffffff;
    border: 1px solid #e6e9f0;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.public-form .form-control,
.public-form .form-select {
    background-color: #ffffff;
}

.public-form .mb-3 {
    margin-bottom: 0.75rem !important;
}

.public-form .mb-4 {
    margin-bottom: 1rem !important;
}

.public-form .row.g-3 {
    row-gap: 0.75rem;
}

.public-form .row.g-3 > [class*='col-'] {
    padding-top: 0;
}

.public-form .form-label {
    margin-bottom: 0.25rem;
}

.public-form .table {
    margin-bottom: 0.75rem;
}

.public-portal-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.public-portal-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.public-portal-label {
    font-weight: 600;
    color: #000000;
}

.public-products-header {
    padding-top: 1.25rem;
    border-top: 1px solid #e6e9f0;
}

.public-rma-number {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 1.15rem;
}

.public-thanks {
    max-width: 680px;
}

.public-sku-input {
    max-width: 15ch;
}

.public-qty-input {
    max-width: 5ch;
    text-align: center;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.public-name-input {
    width: 100%;
    min-width: 0;
}

.public-qty-input::-webkit-outer-spin-button,
.public-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.public-qty-input[type='number'] {
    -moz-appearance: textfield;
}


.public-remove-col {
    width: 1%;
    white-space: nowrap;
    padding-left: 0.3rem;
}

.public-products-table thead th {
    text-align: left;
    padding-left: 0.6rem;
}

/* Customer credit notes list: keep header and cells strictly left-aligned */
.table-credit-notes-list > thead > tr > th,
.table-credit-notes-list > tbody > tr > td {
    text-align: left !important;
}

/* Some themes/plugins wrap TH content (e.g. sorter/link); force those wrappers left too */
.table-credit-notes-list > thead > tr > th > *,
.table-credit-notes-list > thead > tr > th .datatable-sorter {
    text-align: left !important;
    justify-content: flex-start !important;
}

.public-products-table tbody td {
    padding-left: 0.6rem;
}

.public-products-table {
    margin-left: 0;
}
