.row {
    --bs-gutter-x: 4px !important;
    --bs-gutter-y: 4px !important;
}
    .device-simulator .col-lg-3 {
        flex: 0 0 auto;
        width: 50%;
    }
    .device-simulator .col-lg-4 {
        flex: 0 0 auto;
        width: 100%;
    }
    .device-simulator .mobile-simulator.landscape .col-lg-4 {
        flex: 0 0 auto;
        width: 50%;
    }
    .device-simulator.ipad .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    .device-simulator.ipad .col-lg-4 {
        flex: 0 0 auto;
        width: 50%;
    }
    .device-simulator.ipad .mobile-simulator.landscape .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33%;
    }
/* ==============================================COMPONENTS========================================================= */
/* carosel */
/* horizontal scrolling */
.scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.scroll-wrapper {
    display: flex;
    gap: var(--bs-gutter-x);
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari */
}

.pill-button {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
    background: var(--bs-border-color);
}

.pill-button:hover {
    background: var(--bs-tertiary-color);
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.scroll-container .scroll-btn {
    opacity: 0 !important;
}

.scroll-container:hover .scroll-btn {
    opacity: 1 !important;
}

/* horizontal scrolling */
.scroll-btn {
    display: none;
    position: absolute;
    width: 28px;
}

.scroll-btn button {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    color: var(--bs-body-color);
}

.my-image-container {
    height: 115px;
    margin-bottom: auto;
}
.card {
    margin-bottom: 0;
    height: 180px;
}
.cs-card {
    height: auto !important;
    padding: 1rem;
}
.listview_style_3 .card {
    margin-bottom: 0;
    height: 380px;
    padding-bottom: 2rem;
}
.listview_style_3 .card .my-image-container{
    height: 280px;
}
.listview_style_3 .card .my-image-container .my-image::before {
    content: ' ';
    display: block;
    position: absolute;
    height: 280px;
    width: 100%;
    left: unset;
}
.listview_style_2 .card {
    margin-bottom: 0;
    height: 232px;
    padding-bottom: 1rem;
}
.listview_style_2 .card .my-image-container{
    height: 160px;
}
.listview_style_2 .card .my-image-container .my-image::before {
    content: ' ';
    display: block;
    position: absolute;
    height: 160px;
    width: 100%;
    left: unset;
}

/* .card-h0 {
    height: 180px;
}

.card-h1 {
    height: 180px;
}

.card-h2 {
    height: 240px;
}

.card-h3 {
    height: 250px;
}

.card-h3 {
    height: 350px;
} */

.first-part {
    /* margin-bottom: 1rem; */
}

.view-part {
    padding: 0;
}

.my-component {
    /* margin: .5rem 0; */
}

.items-1 {
    flex: 0 0 auto;
    width: 85%;
}

.items-2 {
    flex: 0 0 auto;
    width: 40%;
}

.items-3 {
    flex: 0 0 auto;
    width: 30%;
}

.vertical-scroll {
    overflow-y: auto;
    overflow-x: hidden;
}



.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: break-spaces;
    max-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.view-item {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); */
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    padding: 0; 
    justify-content: space-around;
}

.view-row {
    flex-direction: row;
    gap: var(--bs-gutter-x);
    /* min-height: 140px; */
    height: auto;
}
.view-row .my-top-right-label {
    position: absolute;
    top: unset;
    right: unset;
    background-color: var(--bs-primary-bg);
    color: var(--bs-primary-color);
    padding: .5rem .5rem .5rem 0rem;
    border-radius: 0 0 0 2px;
}
.view-row .text-content{
    margin-right: auto;
}

.view-row .my-image::before {
    left: 0;
    top: 0;
    width: 140px;
}

.view-row .my-image {
    max-width: unset;
    max-height: unset;
}

.view-row img {
    min-width: 140px;
    width: 140px;
    height: auto;
    margin-top: var(--bs-gutter-x);
}

.view-row .my-image-container {
    margin: unset;
}


.view-item:hover {
    transform: scale(1.05);
}

.view-item img {
    border-radius: inherit;
}
.my-image {
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
    margin: auto;
}

.my-image::before {
    content: ' ';
    display: block;
    position: absolute;
    height: 100px;
    width: 100px;
    left: 22%;
    background-image: url(_profile/default_image.jpeg);
}

.my-top-right-label {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--bs-primary-bg);
    color: var(--bs-primary-color);
    padding: .25rem .5rem;
    border-radius: 0 0 0 2px;
}

.grid-wrapper {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.grid-wrapper .grid {
    display: grid;
    grid-template-rows: repeat(2, 140px);
    /* Fixed 2 rows */
    grid-auto-flow: column;
    /* Forces items to fill columns first */
    grid-auto-columns: 29%;
    gap: var(--bs-gutter-x);
    /* Each item gets a fixed width */
}

.grid-wrapper .item {
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.my-bottom-right-label {
    bottom: 0;
    right: 0;
    padding: .5rem;
    position: absolute;
}
.my-bottom-right-label.active {
    color: seagreen; 
    font-size: 1.825rem;
}
.my-bottom-right-label .active {
    display: none;
}
.my-bottom-right-label.active .ring-container {
    display: none;
}
.my-bottom-right-label.active .active {
    display: block;
}
/* form */
.my-search-input-ex {
    margin-bottom: 0px;
    padding-left: 0.825rem;
    padding-right: 0.825rem;
    gap: .5rem;
    height: 40px;
    align-items: center;
    border-radius: 1rem;
    border: solid 1px var(--bs-border-color);
    border-color: var(--bs-border-color) !important;
}
.my-search-input-ex input,
.my-search-input-ex input:focus-within,
.my-search-input-ex .input-group:focus-within, 
.my-search-input-ex .input-group:hover {
    border-bottom-color: unset;
    background-color: transparent;
}

.my-indicator {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgb(210, 48, 48);
    font-size: .256rem;
    top: 4px;
    right: 8px;
    z-index: 68;
    border-radius: 50%;
}
.right-content button {
    position: relative;
}

/* CUSTOM FONT */
#preloader {
    display: none;
}
i.bi {
    /* color: var(--bs-body-color) !important; */
}
.sidebar .author-box .name,
.sidebar .author-box span,
.head-details .dz-info>h5,
.head-details .dz-info>span {
    color: #fff !important;
}

.offcanvas.offcanvas-end {
    border: 0 !important
}
textarea {
    /* border: none;
    resize: none; */
  }

  .upload-container.sm {
    gap: .1rem;
  }

  .col-form-label {
    color: var(--bs-gray-600) !important;
  }

  .icon-btn {
    gap: .5rem;
  }
  .header-content {
    display: flex; 
    justify-content: space-between;
  }
  .left-content {
    cursor: pointer;
    display: flex; 
    justify-content: space-between; 
    gap: 1rem;
    align-items: center;
  }

  .cmd_delete {
    color: rgb(210, 48, 48) !important;
  }
  .action-icon {
    width: 18px;
    display: block;
    height: 18px;
    font-size: 1rem;
  }
  a {
    color: var(--bs-body-color)
  }


.action-order {
    position: absolute;
    top: -46px;
    left: 0px;
    width: 100%;
}
.action-order .pill-button {
    background-color: var(--bs-grey-800);
    color: var(--bs-badge-color);
}
.action-order .pill-button:hover {
    background-color: #ddd !important;
    color: black !important;
}

.view-title .btn-block {
    width: 100%;
    padding: 10px 20px;
}

.my-component-header {
    margin-top: 1.825rem;
    margin-bottom: 1rem;
}
.my-component-header h4 {
    margin: 0;
    padding: 0;
}

.my-link-to {
    cursor: pointer;
    opacity: .7;
}
.my-link-to:hover {
    cursor: pointer;
    opacity: 1;
}
.mobile-simulator,
.mobile-simulator * {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}
.mobile-simulator::-webkit-scrollbar,
.mobile-simulator *::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}
.mobile-simulator {
    height: calc(100vh - 1.625rem); 
    width: 25rem;
}
.mobile-simulator.landscape {
    width: calc(100vh - 1.625rem) !important; 
    height: 25rem !important;
}

.ipad .mobile-simulator {
    width: 39rem; 
    height: calc(100vh - 1.625rem);
}

.ipad .mobile-simulator.landscape {
    width: 68rem !important; 
    height: 40rem !important;
}
.phone-controls {
    position: absolute;
    width: 50px;
    right: -50px;
    height: auto;
    z-index: 300000;
    top: 0;
    border-radius: 2px;
    background: var(--bs-primary-bg-subtle) !important;
}
