:root {
    --bs-app-sidebar-width: 4.25rem;
    --bs-app-sidebar-padding-x: 0.5rem;
    --bs-app-sidebar-padding-y: 0.5rem;
}
::-moz-selection {
    background: #f8a5a7;
    color: #fff;
}
::selection {
    background: #f8a5a7;
    color: #fff;
}
.body-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
}
.parlon {
    display: flex;
    flex-direction: row;
    overflow: hidden;
}
.parlon > aside.parlon-sidebar {
    flex: 0 0 auto;
    width: var(--bs-app-sidebar-width);
    border-right: 1px solid #dee2e6;
    padding: var(--bs-app-sidebar-padding-y) var(--bs-app-sidebar-padding-x);
    background: #fff;
    z-index: 5;
}
@media (max-width: 1023.98px) {
    .parlon > aside.parlon-sidebar {
        display: none;
    }
}
.parlon > main.parlon-content {
    flex-grow: 1;
    overflow: auto;
    background-color: #f8f9fa;
}
@media (min-width: 1232px) {
    .parlon > main.parlon-content > div[class*="container"] {
        max-width: 90%;
    }
}
.body-content .cell-sidebar {
    max-width: 4rem;
    width: 4rem;
    background: #fff1ee;
    box-shadow: 0.125rem 0 0.125rem 0 rgba(20, 20, 20, 0.05);
    z-index: 1001;
}
.body-content aside.cell-sidebar + section {
    flex-grow: 1;
}
.h1,
h1 {
    font-family: "Figtree", sans-serif !important;
    font-weight: 600;
}
ol,
ul {
    padding-left: 1rem;
}
.btn-stack {
    display: grid;
    grid-template-columns: repeat(var(--bs-btn-stack-columns, 1), 1fr);
}
@media (min-width: 768px) {
    .btn-stack {
        grid-template-columns: repeat(
            var(--bs-btn-stack-columns-md-up, 1),
            1fr
        );
    }
}
.callout {
    display: flex;
    flex-direction: row;
    border: 1px solid #dee2e6;
    border-left-width: 0.25rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
}
.callout.no-outline {
    border: 0;
    border-left: 0.25rem solid #dee2e6;
    border-radius: 0;
    padding: 0 0.75rem;
}
.callout .callout-icon {
    flex: 0 0 auto;
    min-width: 1.25rem;
    padding-right: 1rem;
}
.callout .callout-body {
    flex: 1 0;
    max-width: 100%;
}
.callout-primary {
    border-left-color: #f8a5a7;
}
.callout-primary .callout-icon {
    color: #f8a5a7;
}
.callout-secondary {
    border-left-color: #46b0a9;
}
.callout-secondary .callout-icon {
    color: #46b0a9;
}
.callout-success {
    border-left-color: #198754;
}
.callout-success .callout-icon {
    color: #198754;
}
.callout-info {
    border-left-color: #0dcaf0;
}
.callout-info .callout-icon {
    color: #0dcaf0;
}
.callout-warning {
    border-left-color: #fadc8f;
}
.callout-warning .callout-icon {
    color: #fadc8f;
}
.callout-danger {
    border-left-color: #dc3545;
}
.callout-danger .callout-icon {
    color: #dc3545;
}
.callout-light {
    border-left-color: #f8f9fa;
}
.callout-light .callout-icon {
    color: #f8f9fa;
}
.callout-dark {
    border-left-color: #343a40;
}
.callout-dark .callout-icon {
    color: #343a40;
}
.card.card-outline {
    border: 1px solid #ced4da;
}
.card-status-chip {
    position: relative;
    background: transparent;
    transition: all 0.2s ease-in-out;
}
.card-status-chip .status-icon {
    position: relative;
    top: -2px;
}
.card-status-chip.has-link {
    position: relative;
    background: transparent;
    transition: all 0.2s ease-in-out;
}
.card-status-chip.has-link:hover {
    background: rgba(70, 176, 169, 0.2);
}
.card-status-chip.has-link .arrow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 10rem;
    background: #fff;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}
.card-status-chip.has-link .status-icon {
    position: relative;
    top: -2px;
}
.card-status-chip.has-link:hover .arrow-link {
    opacity: 1;
    right: 0.5rem;
}
.collapse-table-partial:not(.show) {
    display: block;
    height: calc(15em + 3rem + 10px);
    margin-bottom: 1rem;
    overflow: hidden;
}
.collapse-table-partial.collapsing {
    height: calc(15em + 3rem + 10px);
}
.collapse-table-partial + .collapse-partial-button,
.collapse-table-partial + div > .collapse-partial-button {
    border: 1px solid #46b0a9;
    border-radius: 10rem;
    padding: 0.25rem 0.75rem;
    background: #f8f9fa;
    font-weight: 500;
}
.collapse-table-partial + .collapse-partial-button:after,
.collapse-table-partial + div > .collapse-partial-button:after {
    content: "Show more";
}
.collapse-table-partial + .collapse-partial-button:not(.collapsed):after,
.collapse-table-partial + div > .collapse-partial-button:not(.collapsed):after {
    content: "Show less";
}
.table-wrap td {
    overflow-wrap: break-word;
}
.toast-notification {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}
.flatpickr-calendar.hasTime.noCalendar {
    width: 12rem;
}
.dropzone {
    border-color: theme-color("primary");
    border-radius: 0.25rem;
    border-style: dashed;
}
.dropzone .dz-preview {
    margin: 0.5rem;
}
.dropzone .dz-preview .dz-image,
.dropzone .dz-preview .dz-progress {
    border-radius: 0.25rem;
}
.dropzone .dz-preview .dz-progress .dz-upload {
    background: theme-color("secondary");
}
.select2-container .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px);
    border: 1px solid #fff1ee;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: #fff1ee;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    color: #444c55;
    line-height: 1.5;
}
.select2-container .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
}
.select2-container .select2-selection--multiple {
    border: 1px solid #fff1ee;
    border-radius: 0.375rem;
    padding: 0.125rem 0.75rem 0.375rem;
    background-color: #fff1ee;
}
.select2-container .select2-selection--multiple .select2-selection__choice {
    margin-top: 0.25rem;
    margin-left: unset;
    margin-right: 0.25rem;
    border-radius: 50rem;
    padding: 0.125rem 1.625rem 0.125rem 0.25rem !important;
}
.select2-container
    .select2-selection--multiple
    .select2-selection__choice__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: unset;
    right: 0.25rem;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    border: none !important;
    border-radius: 10rem;
    background-color: #fff;
}
.select2-container
    .select2-selection--multiple
    .select2-selection__choice__remove
    > span {
    position: relative;
    top: -1px;
}
.select2-container .select2-search--inline .select2-search__field {
    height: 1.5rem;
    font-family: inherit !important;
}
.select2-container.select2-container--focus .select2-selection--multiple,
.select2-container.select2-container--open .select2-selection--single {
    border-color: #46b0a9;
}
.select2-container .select2-results__option--selected {
    background-color: #46b0a9;
    color: #fff;
}
.select2-container
    .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #e9ecef;
    color: #1e2125;
}
.select2-container
    .select2-results__option--highlighted.select2-results__option--selectable.select2-results__option--selected {
    background-color: #3f9e98;
    color: #fff;
}
#loginContent {
    min-height: 100vh;
}
.row-uploaded-photos .col-photo {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 1rem;
}
@media (min-width: 512px) {
    .row-uploaded-photos .col-photo {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
@media (min-width: 768px) {
    .row-uploaded-photos .col-photo {
        flex: 0 0 25%;
        max-width: 25%;
    }
}
@media (min-width: 1024px) {
    .row-uploaded-photos .col-photo {
        flex: 0 0 20%;
        max-width: 20%;
    }
}
@media (min-width: 1232px) {
    .row-uploaded-photos .col-photo {
        flex: 0 0 16.6666667%;
        max-width: 16.6666667%;
    }
}
.card-quick-link {
    height: 100%;
    transition: all 0.2s ease-in-out;
}
.card-quick-link.disabled > .card-body {
    opacity: 0.5;
}
.card-quick-link.disabled a {
    cursor: not-allowed;
    pointer-events: none;
}
.card-quick-link:not(.disabled):hover {
    background: #f8a5a7;
    box-shadow: 0 0.125rem 1rem 0.125rem rgba(248, 165, 167, 0.375);
}
.card-quick-link:not(.disabled):hover a,
.card-quick-link:not(.disabled):hover h4,
.card-quick-link:not(.disabled):hover p {
    color: #fff !important;
    transition: all 0.2s ease-in-out;
}
.card-quick-link:not(.disabled):hover svg > path {
    fill: #fff;
    transition: all 0.2s ease-in-out;
}
.card-quick-link .chip-tag {
    position: relative;
    top: -3px;
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
    background-color: #fabb9a;
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 1;
}
.card-quick-link a {
    text-decoration: none;
}
.quick-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: #46b0a9;
}
.quick-link-icon * {
    font-size: 2.5rem;
}
.btn-close:is(:focus, :active) {
    box-shadow: none;
}
.btn.btn-add-new-field {
    border-radius: 10rem;
}
.form-group.multiple-fields > input.form-control:not(:last-child) {
    margin-bottom: 0.5rem;
}
img.img-navbar-logo {
    height: 2.75rem;
}
img.img-login-hero {
    height: 100vh;
}
img.img-login-logo {
    height: 8rem;
}
.list-branches-location {
    font-size: 1rem;
}
.list-branches-location > li:not(:last-child) {
    margin-bottom: 0.375rem;
}
.main-content .card:not(:last-child) {
    margin-bottom: 1.5rem;
}
.tabular-datetime {
    font-variant-numeric: tabular-nums;
}
.toggle-button-check {
    transition: all 0.3s ease-in-out;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}
.switch input {
    display: none;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #46b0a9;
}
input:checked + .slider:before {
    transform: translateX(22px);
}

/* --- Parlon Gallery Component --- */
#parlon-gallery .card {
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#parlon-gallery .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Image styling */
#parlon-gallery .gallery-img {
  width: 100%;
  aspect-ratio: 1.91 / 1;  /* 1200x630 ratio */
  object-fit: cover;
  display: block;
}

/* Wrapper to handle rounded corners properly */
#parlon-gallery .card-img-top-wrapper {
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

/* Card body (text area) */
#parlon-gallery .gallery-card-body {
  padding: 0.75rem 1rem 1rem;
}

    /* Override Parlon Gallery styles just for payment logos */
.fit-image .gallery-img {
    height: auto !important;          /* allow natural height */
    width: 100% !important;           /* make it fill card width */
    object-fit: contain !important;   /* show full logo, no cropping */
    background-color: #fff;           /* white background for contrast */
    padding: 1rem;                    /* spacing around logos */
    border-radius: 0.75rem;           /* smooth corners */
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Text inside the card */
#parlon-gallery .gallery-title {
  font-weight: 600;
  color: #212529;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#parlon-gallery .gallery-subtitle {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Footer row (price / actions) */
#parlon-gallery .gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* EMPTY STATE */
.empty-state {
    background-color: #f9fbfb;
    border: 1px dashed #d6e0e0;
    border-radius: 0.75rem;
    padding: 3rem 1rem;
}

.empty-state .empty-icon i {
    color: #9cb8b8;
    background-color: #eaf3f3;
    padding: 1rem;
    border-radius: 50%;
}

.empty-state h5 {
    color: #3b3b3b;
    font-weight: 600;
}

.empty-state p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* SIDEBAR FILTER */
#deal-filter-sidebar .list-group-item {
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.15s ease;
  color: #212529;
}

#deal-filter-sidebar .list-group-item:hover {
  background-color: #f2f7f7;
}

#deal-filter-sidebar .list-group-item.active {
  background-color: #deefef; /* Matches your teal highlight */
  color: #3b8686;            /* Deep teal text */
  font-weight: 600;
}

#deal-filter-sidebar .list-group-item.active strong {
  color: #3b8686;
}

#deal-filter-sidebar .list-group-item.active small {
  color: #327474;
}

#deal-filter-sidebar small {
  font-size: 0.85rem;
  color: #6c757d;
}

#deal-filter-sidebar .filter-disabled {
  background-color: #f6f7f7;
  color: #b0b5b8;
  cursor: not-allowed;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  opacity: 0.8;
}

#deal-filter-sidebar .filter-disabled i {
  color: #b0b5b8;
}

#deal-filter-sidebar .filter-disabled strong {
  color: #9da2a4;
}

#deal-filter-sidebar .filter-disabled small {
  color: #b5b9bb;
}

.alert-neutral {
  background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  color: #212529;
  display: flex;
  flex-wrap: nowrap;
}
.alert-neutral .btn {
  border-radius: 0.5rem;
  white-space: nowrap;
}

/* PHOTO BOX */
.photo-upload-box {
  width: 100%;
  height: 130px;
  border: 2px dashed #ced4da;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  position: relative;
  background: #f8f9fa;
}

.photo-upload-box:hover {
  border-color: #0d6efd;
  background-color: #eef5ff;
}

.photo-upload-box .photo-input {
  display: none;
}

.photo-placeholder {
  text-align: center;
  color: #6c757d;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.photo-placeholder i {
  font-size: 32px;
}

/* Preview image */
.photo-upload-box.has-image {
  padding: 0;
}

.photo-upload-box.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.photo-upload-wrapper .is-invalid {
  border: 1px solid #dc3545 !important;
}

.tox-tinymce.is-invalid {
    border: 1px solid #dc3545 !important;
    border-radius: 0.375rem;
}

.photo-upload-box.has-image img.preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    z-index: 1;
}

.photo-upload-box.has-image .photo-placeholder {
    display: none; /* hide placeholder when image is present */
}

#deal-preview-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    text-align: center;
}

#deal-preview-image.no-image {
    display: block;
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    text-align: center;
    line-height: 200px;
    font-size: 16px;
    color: #999;
    object-fit: contain;
}

.text-parlon-teal {
    color: #3b8686;
}

.datepicker:disabled, .datepicker[readonly] {
    background-color: #fff1ee;
}

/* Fix navbar link vertical alignment */
.navbar .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    margin-top:10px;
}

/* Ensure the container is also full height */
.navbar-links-start, 
.navbar-links-start > div, 
.navbar-links-start ul {
    height: 100%;
    padding-left:20px;
}

/* Modern Alerts */

/* Base shadcn-style alert */
.alert-v2 {
  background-color: #fff;
  border: 1px solid #e5e7eb; /* light neutral border */
  border-left-width: 3px;    /* accent bar */
  padding: 1rem 1.25rem;
  border-radius: .25rem;

  /* subtle shadcn-style shadow */
  box-shadow: 0 1px 2px rgba(0,0,0,0.05),
              0 1px 3px rgba(0,0,0,0.1);
}

/* Custom PRIMARY color */
.alert-v2.alert-primary {
  border-left-color: rgb(70, 176, 169);
}

/* Bootstrap contextual colors */
.alert-v2.alert-secondary { border-left-color: #6c757d; }
.alert-v2.alert-success   { border-left-color: #28a745; }
.alert-v2.alert-danger    { border-left-color: #dc3545; }
.alert-v2.alert-warning   { border-left-color: #ffc107; }
.alert-v2.alert-info      { border-left-color: #17a2b8; }
.alert-v2.alert-light     { border-left-color: #f8f9fa; }
.alert-v2.alert-dark      { border-left-color: #343a40; }

/* Override default Bootstrap card */
/* Subtle, modern card style */
.card {
  border: 1px solid #e2e4e8 !important; /* lighter, soft border */
  border-radius: .35rem !important;
  background-color: #fff !important;

  /* very subtle shadow */
  box-shadow:
    0 0.5px 1px rgba(0,0,0,0.03),
    0 1px 2px rgba(0,0,0,0.04) !important;

  transition: box-shadow 0.2s ease;
}

/* Optional: extremely subtle hover highlight */
.card:hover {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 2px 4px rgba(0,0,0,0.05) !important;
}
  
.card-body {
  padding: 1.25rem 1.3rem !important;
}
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff8fa8, #ffb27f);
    color: white;
    font-size: 20px;
}

/* Bootstrap Close Fix */
/* Reset Bootstrap close button */
button.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    border: none !important;
    background: transparent !important;
    padding: 0.5rem;
    margin: 0;
    width: auto;
    height: auto;
    display: inline-block;
}

/* Hover effect */
button.close:hover {
    opacity: .75;
}

/* Ensure the × renders correctly */
button.close span {
    display: inline-block;
    line-height: 1;
}

/* Snackbar */

#snackbar {
    position: fixed;
    top: 100px;                    /* adjust if navbar height changes */
    right: 50px;
    background: #ffffff;
    color: #333;
    padding: 14px 20px;
    border-radius: 5px;
    border: 2px solid transparent;
    min-width: 400px;
    min-height: 50px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(-10px);
    transition: all .35s ease;
    z-index: 9999;
    font-size: 15px;
    pointer-events: none;     /* <-- NEW */
}

/* SUCCESS */
.snackbar-success {
    border: 1px solid #46b0a9 !important;
}

/* ERROR */
.snackbar-error {
    border: 1px solid #e11d48 !important; /* tailwind red-600 style */
}

/* Show Animation */
#snackbar.show {
    opacity: 1;
    transform: translateY(0);
}