@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap');

.vat-product-dropdown {
    background-color: rgb(145 218 145);
}

.dark-style .vat-product-dropdown {
    background-color: rgb(145 218 145);
    color:black;
}
.dx-datagrid-group-closed::before,
.dx-datagrid-group-opened::before {
    font-size: 20px;
}

.table-sm td,
.table-sm th {
    font-size: 13px;
    line-height: 1.2 !important;
}

.counting-span {
    display: block;
    width: fit-content;
    margin: 2px; /* prevents border from being clipped by parent */
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    text-align: center;
    background-color: #e8e8e8;
    color: #444;
    border: 1px solid #d0d0d0;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.dark-style .counting-span {
    background-color: #2e2e2e;
    color: #d4d4d4;
    border-color: #444;
}

input:not([type=checkbox]):not([type=radio]):focus,
select:focus,
textarea:focus {
    background-color: #fdfdb2 !important; 
    outline: none;
}

.dark-style input:not([type=checkbox]):not([type=radio]):focus,
.dark-style select:focus,
.dark-style textarea:focus {
    background-color: #1f2933 !important; 
    color: #ffffff;
    outline: none;
    border-color: #5dade2;
}


.search-container {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 15px;
}

.expired-row {
    background-color: rgb(240, 128, 128);
    color: rgb(114, 28, 36);
}

.expiring-soon-row {
    background-color: #fff3e0 !important;
}

#gridContainer {
    height: 600px;
}

.dx-datagrid-group-closed .dx-group-row {
    font-weight: bold;
}

.stock-summary {
    font-weight: bold;
    color: #1976d2;
}

.refresh-manufacturer {
    cursor: pointer;
    color: #4a5568;
    font-size: 0.8rem;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

    .refresh-manufacturer:hover {
        color: #2563eb;
        transform: scale(1.1);
    }

    .refresh-manufacturer:active {
        transform: scale(0.95);
    }

    .refresh-manufacturer.refreshing {
        animation: spin 1s linear;
        color: #2563eb;
        pointer-events: none; 
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.refresh-manufacturer.loading {
    animation: spin 1s linear infinite;
    color: #2563eb;
    pointer-events: none;
}

.hover-row {
    position: relative;
}

.show-on-parent-hover {
    display: none;
    cursor: pointer;
    color: #dc3545;
    font-size: 13px;
    float:right
}

.hover-row:hover .show-on-parent-hover {
    display: inline;
}

.show-on-parent-hover:hover {
    text-decoration: underline;
}


/* Base Layout */
.sb-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 6px;
}

.sb-left {
    display: flex;
    flex-direction: column;
    padding: 2px 4px;
    border-radius: 4px;
}

.sb-small {
    font-size: 12px;
    opacity: 0.85;
}

/* Only Address should wrap */
.sb-address {
    display: block;
    white-space: normal !important;
}

/* Balance always at right */
.sb-right {
    white-space: nowrap;
    font-weight: bold;
    align-self: center;
    margin-left: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}



/* prevent DevExpress active from making text white */
.dx-state-active .sb-left,
.dx-state-active .sb-small,
.dx-state-active .sb-right {
    color: black !important;
}


.dark-style .sb-small {
    color: #c7c7c7;
}

.dark-style .sb-right {
    color: #e8e8ff;
}

/* prevent white text in dark-style active */
.dark-style .dx-state-active .sb-left,
.dark-style .dx-state-active .sb-small,
.dark-style .dx-state-active .sb-right {
    color: inherit !important;
}





.product-pack {
    background-color: #f0f4ff; /* light bluish background */
    color: #1a3a8a; /* dark readable text */
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-left: 4px;
}


.unit-price {
    font-size: 12px;
    font-family: monospace;
    color: blueviolet;
    margin-left: 8px;
}

/* For medium screens and up (≥768px) */
.col-md-1-5 {
    flex: 0 0 10.5%;
    max-width: 0.5%;
}

.summary-table-purchase .table-sm > :not(caption) > * > * {
    padding: 0.125rem 0.25rem;
}

hr.purchase {
    margin: 2px 0 !important;
}

#CCAmount-span {
    margin-top: 5px;
    display: inline-block;
}
/* Floating Total Container */
.floating-total {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 5px 5px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    animation: slideUp 0.5s ease-out;
    transition: all 0.3s ease;
    z-index: 9999;
}

    .floating-total:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    }

    /* Total Label */
    .floating-total .total-label {
        font-family: 'Poppins', sans-serif;
        font-size: 0.9rem;
        font-weight: 500;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        text-align: center;
        display:none
    }

    /* Enhanced animated-amount for floating total */
    .floating-total .animated-amount {
        font-size: 1.1rem;
        font-weight: 700;
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        color: white;
        border: none;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        margin: 0;
        min-width: 180px;
        /*padding: 12px 20px;*/
        position: relative;
        overflow: hidden;
    }

        .floating-total .animated-amount::before {
            content: 'Total: ';
            font-weight: 600;
            opacity: 1;
        }

        .floating-total .animated-amount::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            animation: shine 3s ease-in-out infinite;
        }

        /* Negative total styling */
        .floating-total .animated-amount.negative {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        /* Zero total styling */
        .floating-total .animated-amount.zero {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

    /* Entry count badge */
    .floating-total .entry-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #f59e0b;
        color: white;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 4px 8px;
        border-radius: 50px;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
        min-width: 24px;
        text-align: center;
    }

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-total {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
    }

        .floating-total .animated-amount {
            font-size: 1.4rem;
            min-width: 150px;
            padding: 10px 16px;
        }

        .floating-total .total-label {
            font-size: 0.8rem;
        }
}

.animated-amount {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #2563eb;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 8px 16px;
    border-radius: 6px;
    border-left: 3px solid #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
    display: inline-block;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

    .animated-amount::before {
        font-weight: 500;
        opacity: 0.8;
    }

    .animated-amount:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 12px rgba(37, 99, 235, 0.18);
        border-left-color: #1d4ed8;
    }

    /* Negative balance */
    .animated-amount.negative {
        color: #dc2626;
        border-left-color: #dc2626;
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
    }

        .animated-amount.negative:hover {
            box-shadow: 0 3px 12px rgba(220, 38, 38, 0.18);
            border-left-color: #b91c1c;
        }

    /* Zero balance */
    .animated-amount.zero {
        color: #059669;
        border-left-color: #059669;
        box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
    }

        .animated-amount.zero:hover {
            box-shadow: 0 3px 12px rgba(5, 150, 105, 0.18);
            border-left-color: #047857;
        }

/* Small animation on load */
.animated-amount {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .animated-amount {
        font-size: 1.3rem;
        padding: 10px 16px;
        min-width: 120px;
    }
}

/*.dx-state-focused.dx-editor-outlined input,
.dx-state-focused.dx-editor-outlined textarea {
    background-color: #fdfdb2;
}*/

/*.summary-table-div {
    position: fixed;
    bottom: 60px;
    right: 0;
    background: var(--bs-card-bg);
}*/
.pricing {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bill-item-mrp {
    font-size: 0.8em;
}
.selectpicker-level{
    margin-bottom:1px;
}
.bootstrap-select {
    margin-top: -4px !important;
}

    .bootstrap-select .dropdown-menu li a span.text {
        font-size: 14px !important;
    }

.form-control:not(.bootstrap-select) {
    border: 1px solid #aea2a2 !important;
}

.bootstrap-select .bs-placeholder.btn-light {
    background-color: var(--bs-card-bg) !important;
    border: 1px solid #aea2a2 !important;
    box-shadow: unset;
}

.bootstrap-select .bs-placeholder.btn-light:hover {
    box-shadow: unset !important;
}

.bootstrap-select .dropdown-toggle {
    border: 1px solid #aea2a2 !important;
}

html:not([dir=rtl]) .bootstrap-select .dropdown-toggle {
    padding: 0.535rem 1.975rem 0.335rem 0.55rem;
}

.fixed-div {
    max-height: calc(65vh + 40px);
    overflow: auto;
}

    .fixed-div .fixed-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
    }

.old-batch {
    background-color: #0095ff29;
}

.post-btn {
    margin-top: 28px;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: bold;
}


.summary-label {
    font-size: 14px;
    font-weight: 700;
}

.product-remaining {
    float: right;
    margin-right: 10px;
}

.net-amount {
   /* font-size: 14px !important;
    display: grid;
    place-items: center;
    width: 100px;*/
    text-transform: uppercase;
    font-weight: 700;
    color: #5a8dee !important;
}

.net-amount-dx {
    /*font-size: 22px !important;*/
    width:80px;
    font-weight: 700;
    color: #5a8dee !important;
}


.expired-batch {
    background-color: #fcd9d9 !important;
    color: #ff5b5c !important;
}

.bg-expired {
    background-color: #f08080;
    cursor: default;
}

.bg-expiringsoon {
    background-color: #e6e67f;
    cursor: default
}

.p-dropdown {
    white-space: break-spaces
}

.dx-checkbox.dx-checkbox-checked.dx-checkbox-has-text .dx-checkbox-container .dx-checkbox-text {
    font-weight: bold;
}

.custom-option.expiry.expiry-option.checked {
    border: 1px solid #e03131;
    background: #f03e3e;
    animation: backgroundBlinkDanger 1.5s infinite;
}

@keyframes backgroundBlinkDanger {
    0% {
        background-color: #e03131;
    }

    50% {
        background-color: #fa5252bd;
    }

    100% {
        background-color: #e03131;
    }
}


.custom-option.sales-option.checked {
    border: 1px solid #326ee0;
    background: #5a8dee;
    animation: sales-type 1.5s infinite;
}

.custom-option.sales-option {
    height: 43px;
}


@keyframes sales-type {
    0% {
        background-color: #306de1;
    }

    50% {
        background-color: #4a83efbd;
    }

    100% {
        background-color: #306de1;
    }
}

.sales-option label span span.h3 {
    color: #c5c5c5
}

.sales-option.checked label span span.h3 {
    color: white !important
}


.batch-line {
    padding: 2px 0px;
}

    .batch-line.red {
        background-color: #e65e0359;
    }

    .batch-line.yellow {
        background-color: yellow;
    }

    .batch-line.purple {
        background-color: rgba(128, 0, 128, 0.15);
    }

    .batch-line .stock {
        padding: 2px;
        color: blueviolet;
        background-color: #ccc;
        border-radius: 2px;
        margin-left: 5px;
        display: inline-block;
    }

    .batch-line .exp-date {
        border: 1px solid #dedede;
        border-radius: 2px;
        padding: 2px;
        margin-left: 5px;
        display: inline-block;
    }

.exchange-rate {
    padding: 0;
    display: block;
}

.form-check .dx-checkbox-text {
    font-size: 0.72rem;
    color: #646464;
    text-transform: uppercase;
    letter-spacing: inherit;
}

.dx-check .dx-checkbox-text {
    font-size: 0.8rem;
    color: #646464;
    text-transform: uppercase;
    letter-spacing: inherit;
}

.dark-style .form-check .dx-checkbox-text {
    color: #a1b0cb;
}

.dark-style .dx-check .dx-checkbox-text {
    color: #a1b0cb;
}
/*Pharmacy ends here*/


@media screen and (max-width: 767px) {
    .client-text {
        display: none;
    }
}

.action-buttons-div {
    position: fixed;
    bottom: 12px;
    right: 47px;
    display: flex;
    flex-direction: row-reverse;
}

    .action-buttons-div button {
        margin-left: 10px;
    }


.dx-state-active .dx-link {
    color: white;
}

#template-customizer {
    z-index: 1500 !important
}

.dx-list:not(.dx-list-select-decorator-enabled) .dx-list-item.dx-state-focused.notify-list {
    background-color: transparent;
    color: #fff;
}

.dx-item.dx-list-item.notify-list .dx-item-content.dx-list-item-content {
    padding: 1px 5px !important;
}
/*for scrollbar*/
::-webkit-scrollbar {
    width: 15px;
}

.notification-heading {
    font-size: 13px;
    white-space: nowrap; /* Prevents the text from wrapping to the next line */
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-body {
    font-size: 10px;
    white-space: normal;
    text-overflow: ellipsis;
}

.grid-config {
    align-items: center;
    width: 43px;
    position: fixed;
    z-index: 99;
    right: -3px;
    top: 227px;
    -webkit-transition: all 0.1s linear 0.2s;
    -o-transition: all 0.1s linear 0.2s;
    transition: all 0.1s linear 0.2s;
    background-color: var(--bs-body-bg);
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
    height: 65px;
    cursor: pointer;
    padding-top: 0px;
}

    .grid-config:hover {
        opacity: 1;
    }

    .grid-config span {
        text-align: center;
        width: 28px;
        height: 28px;
        left: 6px;
        position: absolute;
        font-size: 17px;
        top: 10px;
    }

.mx-200 {
    max-width: 200px !important;
}

.mx-280 {
    max-width: 280px !important;
}

.mx-300 {
    max-width: 300px !important;
}

body {
    overflow-x: hidden !important
}

.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar {
    width: 8px;
    -webkit-border-radius: 7px;
}

::-webkit-scrollbar-thumb {
    height: 6px;
    border: 3px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    min-height: 18px;
    -webkit-border-radius: 7px;
    background-color: #69809a;
}

.field-validation-error {
    color: #ff5b5c;
}

span.input-validation-error {
    color: #ff5b5c;
}

.input-validation-error {
    border-color: #ff5b5c !important;
}

.field-validation-error {
    border-color: #ff5b5c !important;
}

.input-validation-error + .input-group-text {
    border-color: #ff5b5c !important;
    font-size: 11px !important;
}

.mt-btn {
    margin-top: 1.32rem !important;
}

.field-validation-error + .select2-selection {
    border-color: #ff5b5c !important;
}

.field-validation-error + .select2-container > .selection > .select2-selection {
    border-color: #ff5b5c !important;
}

.input-validation-error + .select2-selection {
    border-color: #ff5b5c !important;
}

.input-validation-error + .select2-container > .selection > .select2-selection {
    border-color: #ff5b5c !important;
}

#loading {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.4);
}

    #loading .sk-chase {
        width: 50px;
        height: 50px;
    }

/*#loading {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100vh;
    background: #fff9 url('/img/spinner.gif') no-repeat center center;
    z-index: 9999;
}*/

label.required-field::after {
    content: '*';
    margin-right: 3px;
    color: red;
}


.form-group label {
    margin-top: 9px;
    font-size: 0.8rem;
    color: #646464;
    text-transform: uppercase;
    letter-spacing: inherit;
}

.dark-style .form-group label {
    color: #a1b0cb;
}

.light-style .menu .app-brand {
    height: 64px;
}

.bg-menu-theme.menu-horizontal .menu-inner .menu-item > .report-menu-div {
    height: auto;
    max-height: 183px;
    overflow: scroll
}

.dark-style .menu .app-brand {
    height: 64px;
}


.jconfirm {
    z-index: 9998;
}

.light-style .datepicker-dropdown {
    z-index: 9999 !important;
}

.select2-dropdown {
    z-index: 9999 !important;
}

.jconfirm .jconfirm-box {
    background-color: var(--bs-body-bg) !important;
}

.jconfirm .jconfirm-light {
    background-color: var(--bs-body-bg) !important;
}

.jconfirm .jconfirm-box.loading:before {
    background-color: var(--bs-body-bg) !important;
}

.form-group {
    /*  display: flex;
      flex-wrap: wrap;*/
    margin-bottom: 10px;
    padding: 0 8px;
}

.page-title {
    padding-left: 26px;
    margin-top: 14px;
    margin-bottom: -15px;
    font-size: 22px;
}

button .fa {
    padding-right: 8px;
}

a .fa {
    padding-right: 8px;
}

.btn {
    height: 37px;
    margin-top: 7px;
}

.form-check-input[type='checkbox']:not(.check-inline) {
    margin-top: 10px !important;
}

.datagrid {
    margin-top: 10px;
}


::placeholder {
    opacity: 0.5 !important;
}

.misc-wrapper {
    min-height: 300px;
    text-align: center !important;
    margin-top: -18px;
}

.w-100p {
    width: 100px !important;
}

.w-200p {
    width: 200px !important;
}

.w-500p {
    width: 500px !important;
}

.bootstrap-select {
    margin-top: -8px;
}

label.dropdown-label {
    z-index: 2 !important;
}

.number-alignment {
    text-align: right;
}

.sticky-element {
    background-color: var(--bs-card-bg) !important
}

.dropdown-item {
    white-space: normal !important;
}

.dropdown-menu li {
    max-width: 500px;
}

    .dropdown-menu li a {
        padding: 5px 11px 5px 11px;
    }

.bootstrap-select .dropdown-menu li a span.text {
    font-size: 14px;
}

.row-to-remove {
    background-color: #ebd6d6 !important;
}

.nav-tabs-custom {
    padding: 9px 7px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    border-radius: 4px;
}

/*Custom*/
.dx-header-row > td > .dx-datagrid-text-content {
    font-size: 14px !important;
}

    .dx-header-row > td > .dx-datagrid-text-content:not(.dx-sort-indicator):not(.dx-header-filter-indicator) {
        color: #6f6a6a !important;
    }

.dark-style .dx-header-row > td > .dx-datagrid-text-content:not(.dx-sort-indicator):not(.dx-header-filter-indicator) {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.dx-row.dx-column-lines.dx-header-row td {
    vertical-align: middle !important;
    background-color: #f2f2f2;
}

.dark-style .dx-row.dx-column-lines.dx-header-row td {
    vertical-align: middle !important;
    background-color: #252e42;
}

.dx-datagrid-search-panel .dx-texteditor-input, .dx-datagrid-filter-row .dx-texteditor-input {
    color: #ee5a5a;
    font-weight: 600;
}

.dx-datagrid .dx-datagrid-headers .dx-header-filter, .dx-datagrid .dx-datagrid-headers .dx-header-row > td {
    color: #ee5a5a;
    font-weight: 600;
    font-size: 13px;
}


.form-label {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: inherit !important;
    margin-bottom: 1px !important;
    margin-top: 4px;
}

.client-text {
    font-size: 1.45rem;
    padding-left: 11px;
}

@media only screen and (max-width: 600px) {
    .client-text {
        padding-left: 0px;
    }
}

.checkbox-container {
    display: inline;
    float: right;
    margin-right: 31px;
}

.jstree-anchor {
    width: 100%;
    padding: 2px;
}

.perm-check-label {
    position: absolute;
    top: 19px;
    font-size: 10px;
    font-weight: 800;
}

.permission-label {
    padding-right: 50px;
}

.jstree-wholerow {
    height: 44px !important;
}

.jstree-anchor {
    height: 44px !important;
}

.jstree-node {
    padding: 4px 0px !important;
}

.giga-add-btn {
    z-index: 2 !important;
}

.po-dash {
    background-color: #edf2f2;
    padding: 13px 9px;
    border-radius: 5px;
}

.dark-style .po-dash {
    background-color: #252b38;
    padding: 13px 9px;
    border-radius: 5px;
}

.nav.nav-tabs .nav-link.active {
    border-top-color: #5a8dee !important;
    border-top-width: 2px;
}

.dark-style .nav.nav-tabs .nav-link.active {
    border-top-color: #5a8dee;
    border-top-width: 2px;
}

.select2-selection.select2-selection--single {
    border: 1px solid #aea2a2;
}

.light-style .select2-container--default.select2-container--disabled .select2-selection--single {
    border-color: #47484a !important;
}


.dark-style .select2-container--default.select2-container--disabled .select2-selection--single {
    border-color: #47484a !important;
}

.form-control:not(.bootstrap-select) {
    border: 1px solid #aea2a2;
}

.btn.dropdown-toggle.bs-placeholder {
    border: 1px solid #aea2a2;
}

.field-validation-error + .btn.dropdown-toggle {
    border: 1px solid red;
}

.field-validation-error {
    color: #ff5b5c;
}

span.input-validation-error {
    color: #ff5b5c;
}

.input-validation-error {
    border-color: #ff5b5c !important;
}

.field-validation-error {
    border-color: #ff5b5c !important;
}

.input-validation-error + .input-group-text {
    border-color: #ff5b5c !important;
    font-size: 11px !important;
}

.mt-btn {
    margin-top: 1.32rem !important;
}

.field-validation-error + .select2-selection {
    border-color: #ff5b5c !important;
}

.field-validation-error + .select2-container > .selection > .select2-selection {
    border-color: #ff5b5c !important;
}

.input-validation-error + .select2-selection {
    border-color: #ff5b5c !important;
}

.input-validation-error + .select2-container > .selection > .select2-selection {
    border-color: #ff5b5c !important;
}

.bootstrap-select .dropdown-toggle {
    border: 1px solid #aea2a2;
}

.hide-on-mobile {
    display: block;
}

@media screen and (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
}

.dashboard-menu div {
    align-items: center;
    width: 43px;
    position: fixed;
    z-index: 99;
    right: -3px;
    top: 227px;
    -webkit-transition: all 0.1s linear 0.2s;
    -o-transition: all 0.1s linear 0.2s;
    transition: all 0.1s linear 0.2s;
    background-color: var(--bs-body-bg);
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
    height: 65px;
    cursor: pointer;
    padding-top: 0px;
}

.btn-dash {
    padding: 3px;
    color: white !important;
    font-size: 18px;
    width: 45px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.grid-stack-item-content.ui-draggable-handle {
    cursor: move !important;
    border: 1.5px dotted;
    background-color: #6e90ff2b !important;
}

.ui-draggable-disabled > .ui-draggable-handle {
    border: none;
    background-color: var(--bs-card-bg) !important;
}

.ui-draggable-disabled.ui-resizable-disabled .ui-draggable-handle {
    cursor: default !important;
}

.delete-icon:hover,
.d-menu:focus {
    transform: scale(1.1);
}

.delete-icon:active {
    transform: scale(0.9);
}

.delete-icon {
    display: none;
    position: absolute;
    right: 6px;
    cursor: pointer;
    top: 5px;
}

.grid-stack {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 768px) {
    .pis-info {
        height: calc(100vh + 20px);
        margin-bottom: 0;
        overflow-x: scroll;
        overflow-y: hidden;
    }

    .grid-stack-item-content {
        padding: 1px !important;
    }
}

.grid-stack-item-content:hover .delete-icon.active {
    display: block;
}

/* Define transition for GridStack items */
.grid-stack-item {
    transition: all 0.3s ease;
}

    /* Define styles for when item is being dragged */
    .grid-stack-item.ui-draggable-dragging {
        opacity: 0.7; /* Reduce opacity while dragging */
    }

    /* Define styles for when item is being resized */
    .grid-stack-item.ui-resizable-resizing {
        opacity: 0.7; /* Reduce opacity while resizing */
    }

    /* Define styles for when item is being dragged over the grid */
    .grid-stack-item.ui-droppable-hover {
        border: 2px dashed #007bff; /* Highlight border while dragging over */
    }

    /* Define styles for when item is being dropped */
    .grid-stack-item.ui-draggable-dragged {
        transition: none; /* Disable transition during drop */
    }

.card.draggable {
    border: 2px dashed #007bff; /* Highlight border */
    background-color: #e9f5ff; /* Highlight background color */
    cursor: move; /* Change cursor to indicate draggability */
}

.card:not(.draggable) {
    transition: all 0.3s ease; /* Smooth transition */
}

.grid-stack-item.ui-draggable-removing {
    opacity: 0.5; /* Reduce opacity while being removed */
    transition: opacity 0.3s ease; /* Smooth transition for opacity */
}

/* ============================================================
   Offline.js – built-in ribbon (.offline-ui)
   ============================================================ */
.offline-ui {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    height: 0;
    overflow: hidden;
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    transition: height 0.35s ease, background 0.4s ease;
}

/* Show ribbon when offline */
.offline-ui.offline-ui-down {
    height: 42px;
}

/* Show ribbon (green) briefly when back online */
.offline-ui.offline-ui-up-2s {
    height: 42px;
    background: linear-gradient(90deg, #1a7a4a, #27ae60);
}

/* Ribbon text via CSS – no JS needed */
.offline-ui.offline-ui-down .offline-ui-content::before {
    content: "\26A0\00A0 No internet connection. Please check your network.";
}
.offline-ui.offline-ui-connecting .offline-ui-content::before {
    content: "\21BA\00A0 Reconnecting\2026";
}
.offline-ui.offline-ui-waiting .offline-ui-content::before {
    content: "Reconnecting in " attr(data-retry-in-value) " " attr(data-retry-in-unit) "\2026";
}
.offline-ui.offline-ui-up-2s .offline-ui-content::before {
    content: "\2714\00A0 Back online!";
}

/* Retry link */
.offline-ui-retry {
    display: inline-block;
    padding: 3px 14px;
    border: 1.5px solid rgba(255,255,255,0.75);
    border-radius: 20px;
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
}
.offline-ui-retry:hover {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    text-decoration: none;
}
.offline-ui-retry::before {
    content: "Retry";
    color: #fff;
}


