.custom-badge,
.badge {
    cursor: pointer;
}

.amount-column {
    /* width: 100px !important; */
    white-space: nowrap;
}

.amount-column h6 {
    font-size: 0.9rem;
}

/* //error */
.custom-error {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.custom-error li,
.error {
    color: #ff0000;
}

.page-item a {
    font-weight: 500;
}

/* Sticky button */
#stickySubmit {
    position: fixed;
    bottom: 0;
    width: 100vw;
    border-radius: 0;
    margin: 0;
    z-index: 9;
}

#stickySubmit .card-body {
    padding: 10px;
}

/* Sticky button */

.datatable-scroll-wrap {
    overflow-x: unset;
}

/* initials */
.party-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
}

.party-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.party-badge.customer {
    background-color: #d1fae5;
    /* light green */
    color: #065f46;
    /* dark green */
}

.party-badge.vendor {
    background-color: #dbeafe;
    /* light blue */
    color: #1e40af;
    /* dark blue */
}

.table-heading {
    font-weight: 500;
}

/* Example color variations (like Gmail) */
.bg-red {
    background-color: #f87171;
}

.bg-blue {
    background-color: #60a5fa;
}

.bg-green {
    background-color: #4ade80;
}

.bg-yellow {
    background-color: #facc15;
}

.bg-purple {
    background-color: #a78bfa;
}

.bg-pink {
    background-color: #f472b6;
}

.bg-orange {
    background-color: #fb923c;
}

.bg-cyan {
    background-color: #22d3ee;
}

.bg-lime {
    background-color: #a3e635;
}

/* initials */
.refresh {
    cursor: pointer;
}

.add-new {
    padding: 2px 5px;
}

.min-height-180 {
    min-height: 180px;
}

@media (max-width: 768px) {
    div.dataTables_length {
        display: none !important;
    }

    .page-header .my-lg-auto.ms-lg-auto {
        margin-bottom: 0 !important;
    }

    .page-header .page-title,
    .page-header .breadcrumb-item {
        font-size: 12px !important;
    }

    .pagination {
        --pagination-padding-x: 0.775rem !important;
        --pagination-padding-y: 0.1rem !important;
    }

    /* .table-responsive input[type=text] {
        width: 110px;
    }

    .table-responsive .input-remarks {
        width: 200px !important;
    } */

    .estimates-form button {
        margin: 0px 0px 15px 0px !important;
    }
}

.min-height-1 {
    min-height: 1rem;
}

@media (max-width: 768px) {
    #list-table thead {
        display: none;
    }

    #list-table,
    #list-table tbody,
    #list-table tr,
    #list-table td {
        display: block;
        width: 100%;
    }

    #list-table tr {
        margin-bottom: 15px;
        background: #fff;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    #list-table td {
        position: relative;
        padding-left: 50%;
        text-align: right;
        border: none;
        border-bottom: 1px solid #eee;

        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    #list-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        top: 8px;
        font-weight: 600;
        text-align: left;
    }

    #list-table td:last-child {
        border-bottom: none;
    }

    .table.datatable-responsive {
        display: none;
    }

    .datatable-header {
        display: none;
    }

    .datatable-header,
    .datatable-footer {
        align-items: center;
        border: 0;
        background: #ffffff;
        margin-bottom: 0.4rem;
        border-radius: 7px;
        padding: 8px;
    }

    #list-table_filter {
        margin-bottom: 10px;
    }

    .dt-buttons.btn-group {
        margin-bottom: 0px;
    }
}