/* Custom Modern UI Overrides */

body,
.right_col,
.main_container,
.container {
    font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: #f8f9fa !important;
    color: #222;
    font-size: 13px;
}

/* Card/Panel/Container Styles */
.x_panel,
.tile_stats_count,
.x_content,
.x_title,
.fixed_height_320,
.tile,
.container,
.main_container {
    background: #fff !important;
    border-radius: 8px !important;
    border: 1px solid #ededed !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Table Styles */
table,
.table {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ededed !important;


    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

table th,
table td,
.table th,
.table td {
    padding: 10px 5px !important;
    vertical-align: middle;
    border: 1px solid #ededed !important;


    font-size: 13px !important;
    white-space: nowrap;
}

.table th,
.table thead th {
    background: #f8f9fa;
    font-weight: 600;
    color: #222;
}

.table td,
.table tbody td {
    color: #444;
}

/* Reduce spacing for client names and labels */
.table td a,
.table th {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Headings and Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 13px;
    font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
    color: #222;
    font-weight: 600;
}

/* Button Styles */
.btn,
button {
    border-radius: 6px !important;
    font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-weight: 500;
    background: #fff !important;
    color: #2563eb !important;
    border: 1px solid #ededed !important;
    box-shadow: none !important;
    transition: background 0.2s, color 0.2s, border 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    padding: 5px 10px;
}

.btn:hover,
button:hover {
    background: #f1f5fa !important;
    color: #1d4ed8 !important;
    border: 1px solid #ededed !important;
}

/* Icon Styles - Responsive and Scalable */
.fa,
.fa-pencil,
.fa-trash,
.fa-plus {
    background: none !important;
    color: #4A5568 !important;
    font-size: 15px !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 1px;
    vertical-align: middle;
    display: inline-block;
    transition: color 0.2s;
}

.btn:hover .fa,
.btn:focus .fa {
    color: white !important;
}

/* Remove icon backgrounds from all icons */
.btn .fa,
.btn .fa-pencil,
.btn .fa-trash,
.btn .fa-plus {
    background: none !important;
}

/* Table icon alignment */
.table td .fa {
    vertical-align: middle;
    font-size: 15px !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {

    table th,
    table td,
    .table th,
    .table td {
        padding: 6px 6px !important;
        font-size: 12px !important;
    }

    .btn,
    button {
        font-size: 12px;
        padding: 4px 8px;
    }

    .fa,
    .fa-pencil,
    .fa-trash,
    .fa-plus {
        font-size: 13px !important;
    }
}

/* Borders */
.table,
.table th,
.table td,
.x_panel,
.modal-content {
    border: 1px solid #ededed !important;
}

/* Table Headers */
.table thead th {
    background: #f3f4f6;
    color: #222;
    font-weight: 700;
    border-bottom: 2px solid #d1d5db;
}

.x_title {

    padding: 10px 5px 10px;

}

/* Icon-only round view button */
.btn-view {
    background: #FAAD14 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 100% !important;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 18px;
    padding: 0;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.btn-view:hover {
    background: #d48806 !important;
    color: #fff !important;
    transform: scale(1.08);
}

.btn-edit {
    background: #52C41A !important;
    border: none !important;
    color: #000 !important;
    padding: 6px 12px;
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.btn-edit:hover {
    background: #389e0d !important;
    color: #fff !important;
    transform: scale(1.08);
}

i.fa-solid.fa-pencil {
    color: white !important;
}

.btn-delete {
    background: #dc3545 !important;
    border: none !important;
    color: #000 !important;
    padding: 6px 12px;
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.btn-delete:hover {
    background: #a71d2a !important;
    color: #fff !important;
    transform: scale(1.08);
}

.btn-view .fa,
.btn-edit .fa,
.btn-delete .fa {
    color: #fff !important;
    font-size: 18px !important;
    margin: 0;
    padding: 0;
}

i.fa-solid.fa-trash {
    color: white !important;
}

.btn-refresh {
    background: #FFE6DF !important;
    border: none !important;
    color: #000 !important;
    padding: 6px 12px;
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh .refresh-icon {
    color: #000 !important;
    font-size: 1.1em;
}