/* Global Styles */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Fix for missing glyphicons */
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('https://netdna.bootstrapcdn.com/bootstrap/3.0.0/fonts/glyphicons-halflings-regular.eot');
    src: url('https://netdna.bootstrapcdn.com/bootstrap/3.0.0/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
         url('https://netdna.bootstrapcdn.com/bootstrap/3.0.0/fonts/glyphicons-halflings-regular.woff') format('woff'),
         url('https://netdna.bootstrapcdn.com/bootstrap/3.0.0/fonts/glyphicons-halflings-regular.ttf') format('truetype'),
         url('https://netdna.bootstrapcdn.com/bootstrap/3.0.0/fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
}

/* DataTables overrides */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
    background-position: center right;
    background-repeat: no-repeat;
    background-size: 19px 19px;
}

table.dataTable thead .sorting {
    background-image: url('https://cdn.datatables.net/1.10.25/images/sort_both.png');
}

table.dataTable thead .sorting_asc {
    background-image: url('https://cdn.datatables.net/1.10.25/images/sort_asc.png') !important;
}

table.dataTable thead .sorting_desc {
    background-image: url('https://cdn.datatables.net/1.10.25/images/sort_desc.png') !important;
}

/* Standard Table Styling */
.data-table-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.data-table-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e3e6f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.data-table-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.data-table-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-primary-action {
    background-color: #4e73df;
    color: white;
    border: none;
}

.btn-primary-action:hover {
    background-color: #3a5fc8;
}

.btn-secondary-action {
    background-color: #f8f9fa;
    color: #5a5c69;
    border: 1px solid #ddd;
}

.btn-secondary-action:hover {
    background-color: #eaecf4;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    background-color: #f8f9fa;
    color: #5a5c69;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e3e6f0;
    position: relative;
}

.data-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f1f1;
    color: #333;
}

.data-table tbody tr:hover {
    background-color: #f8f9fc;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-success {
    background-color: #e3fcef;
    color: #1cc88a;
}

.status-warning {
    background-color: #fff8e6;
    color: #f6c23e;
}

.status-danger {
    background-color: #feecec;
    color: #e74a3b;
}

.status-info {
    background-color: #e6f3ff;
    color: #36b9cc;
}

/* Dropdown Actions */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    min-width: 180px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 0;
    z-index: 1000;
}

.dropdown-item {
    padding: 8px 15px;
    color: #5a5c69;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fc;
    color: #4e73df;
}

/* Data Tables overrides */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 3px;
    border-radius: 4px;
    border: none !important;
    background-color: #f8f9fa;
    color: #5a5c69 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #4e73df !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #eaecf4 !important;
    color: #4e73df !important;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e3e6f0;
    border-radius: 4px;
    padding: 6px 12px;
    margin-left: 8px;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e3e6f0;
    border-radius: 4px;
    padding: 6px 12px;
    margin: 0 5px;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border: 1px solid #e3e6f0;
    border-radius: 4px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #b7b9cc;
}

/* Customer List Styles */
.customer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.customer-list li {
    margin-bottom: 5px;
}

.customer-list li:last-child {
    margin-bottom: 0;
}

/* Action Button Group */
.btn-group-actions {
    display: flex;
    gap: 5px;
}

.btn-sm-action {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-view {
    background-color: #36b9cc;
    color: white;
    border: none;
}

.btn-view:hover {
    background-color: #2a91a1;
}

.btn-edit {
    background-color: #4e73df;
    color: white;
    border: none;
}

.btn-edit:hover {
    background-color: #3a5fc8;
}

/* Yes/No Badge */
.yes-no-badge {
    font-weight: 500;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.yes-badge {
    background-color: #e3fcef;
    color: #1cc88a;
}

.no-badge {
    background-color: #feecec;
    color: #e74a3b;
}

/* Responsive Design */
@media (max-width: 992px) {
    .data-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .data-table-actions {
        flex-wrap: wrap;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .data-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .action-btn span {
        display: none;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .hide-mobile {
        display: none;
    }
    
    .btn-sm-action span {
        display: none;
    }
}

@media (max-width: 576px) {
    .data-table-container {
        border-radius: 0;
        box-shadow: none;
        margin: 0 -15px;
    }
    
    .data-table thead th:nth-child(n+4),
    .data-table tbody td:nth-child(n+4) {
        display: none;
    }
} 