.is-invalid {
    border-color: red;
}

.iti {
    width: 100%;
}

.iti input {
    height: 38px;
    /* match bootstrap */
}

.iti__flag-container {
    z-index: 5;
}

.is-invalid-custom {
    border-color: red !important;
}

.over-flow-aut .col-md-12 {
    overflow: auto;
    height: calc(100vh - 331px);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    width: 4px;
    height: 100%;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 10px;
    background: #fff;
    padding: 15px 18px;
    border-radius: 8px;
    border: 1px solid #f1f1f1;
    transition: 0.2s;
    display: flex;
    gap: 10px;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #fff;
    font-size: 14px;
}

.timeline-content {
    width: calc(100% - 50px);
    transition: 0.2s;
}

.timeline-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-day {
    overflow: hidden;
    height: 0;
    transition: height 0.35s ease;
}

.timeline-day.open {
    height: auto;
}

.toggle-icon {
    transition: transform 0.25s ease;
}

.toggle-icon.rotate {
    transform: rotate(-90deg);
}

.timeline-date {
    cursor: pointer;
    user-select: none;
    padding: 6px 0;
}

.timeline-date:hover {
    color: #0d6efd;
}

.info-box {
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #eef2f7;
}

.info-box small {
    display: block;
    color: #6c757d;
    font-size: 12px;
}

.message-box {
    background: #f9fafb;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.message-box p {
    margin: 8px 0 0;
    color: #333;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
    border: 1px solid rgb(230 98 57);
    background: #e66239;
    color: #fff !important;
    padding: 2px 10px;
}

div.dt-container .dt-paging .dt-paging-button:hover {
    border: 1px solid rgb(230 98 57);
    background: #e66239;
    color: #fff !important;
    padding: 2px 10px;
}

#customer-enquiry-form h2 {
    font-size: 25px;
}

.card {
    border-radius: 12px;
}

.card-header {
    border-bottom: 1px solid #f1f1f1;
}

.form-control,
.form-select {
    height: 45px;
    border-radius: 8px;
}

textarea.form-control {
    height: auto;
}

.input-group-text {
    background: #f8f9fa;
    border-radius: 8px 0 0 8px;
}

.btn-primary {
    border-radius: 8px;
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #6c757d;
}

table tr td,
th {
    white-space: nowrap;
    padding: 4px;
    font-size: 14px;
}

table {
    border-color: #cccccc !important;
}

table .btn-primary.dropdown-toggle {
    border: 1px solid #000;
    background: transparent;
    color: #000;
    padding: 3px;
}

.badge {
    width: 100% !important;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.badge.bg-warning {
    border: 1px solid #f0b100;
    background-color: #f0b100 !important;
    color: #ffffff;
}

.badge.bg-success {
    border: 1px solid #00c951;
    background-color: #00C952 !important;
    color: #ffffff;
}

.badge.bg-success {
    border: 1px solid #00c951;
    background-color: #00c951 !important;
    color: #ffffff;
}

.dt-search input {
    width: 100%;
    max-width: 322px;
}

/* GRID AUTO RESPONSIVE */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* CARD DESIGN */
.status-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    gap: 12px;
    border: 1px solid #eef1f5;
    transition: 0.3s ease;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* ICON */
.status-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* TEXT */
.status-card .title {
    font-size: 13px;
    color: #6c757d;
}

.status-card .value {
    font-size: 18px;
    font-weight: 600;
}

/* CUSTOM COLOR */
.text-purple {
    color: #6f42c1;
}

.bg-purple-subtle {
    background: rgba(111, 66, 193, 0.1);
}

.cust-qnry-header .form-control,
.form-select {
    height: 35px;
    line-height: 11px;
}

#reset_filters {
    padding: 3px 14px;
    background: #e66239;
    border: 1px solid rgb(230 98 57);
}


table .dropdown .dropdown-toggle {
    border: 1px solid #e66239;
    background: #e66239;
    color: #fff;
    padding: 3px 8px;
    line-height: 19px;
    font-size: 13px;
}

table tr th {
    background-color: #ebebeb !important;
}

/* Utility for the background icon to add visual flair to the widgets */
.widget-icon-bg {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 6rem;
    opacity: 0.15;
    transition: transform 0.3s ease;
}

.widget-card:hover .widget-icon-bg {
    transform: scale(1.1) rotate(-5deg);
}

.widget-footer {
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.widget-footer:hover {
    background-color: rgba(0, 0, 0, 0.2);
}