﻿

.card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.45rem 0.85rem 0.45rem 2.2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    width: 200px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,110,247,0.1);
}

.search-box svg {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}


/* Table */
:root {
    --bg: #f4f6fb;
    --card-bg: #ffffff;
    --accent: #4f6ef7;
    --accent-light: #eef0fe;
    --text-main: #1a1d2e;
    --text-muted: #8a8fa8;
    --border: #e8eaf2;
    --row-hover: #f8f9ff;
    --badge-approve-bg: #e6f9f0;
    --badge-approve-txt: #1aaa6a;
    --badge-pending-bg: #fff5e6;
    --badge-pending-txt: #f59300;
    --badge-incomplete-bg: #fff0f0;
    --badge-incomplete-txt: #e03c3c;
    --badge-completed-bg: #e8f0ff;
    --badge-completed-txt: #4f6ef7;
}

.table-wrap {
    overflow-x: auto;
    max-height: calc(100vh - 300px);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead th {
    background: var(--bg);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

ol.breadcrumb a {
    color: #13238f;
    text-decoration: none;
}

select#lengthtable {
    width: 45px;
    margin-right: 5px;
}


tbody tr:hover {
    background: var(--row-hover);
}

#example td {
    /* padding: 0.9rem 1rem;*/
    vertical-align: middle;
    white-space: nowrap;
}

.table thead {
    position: sticky;
    top: 0;
}

    .table thead th {
        background: #13238f;
        color: #fff;
        font-weight: 500;
    }


/* Checkbox */
.form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 5px;
    border: 2px solid var(--border);
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--accent);
        border-color: var(--accent);
    }

/* Order ID */
.order-id {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

    .order-id:hover {
        text-decoration: underline;
    }

/* Customer bold */
.customer-name {
    font-weight: 500;
}

/* Service with icon */
.service-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

    .service-cell .icon {
        width: 28px;
        height: 28px;
        background: var(--accent-light);
        border-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .service-cell .icon svg {
            color: var(--accent);
        }

    .service-cell span {
        color: var(--text-main);
    }

/* Amount */
.amount {
    font-weight: 600;
}

/* Payment */
.payment-method {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Status badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

    .badge-status::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        flex-shrink: 0;
    }

.status-approve {
    background: var(--badge-approve-bg);
    color: var(--badge-approve-txt);
}

    .status-approve::before {
        background: var(--badge-approve-txt);
    }

.status-pending {
    background: var(--badge-pending-bg);
    color: var(--badge-pending-txt);
}

    .status-pending::before {
        background: var(--badge-pending-txt);
    }

.status-incomplete {
    background: var(--badge-incomplete-bg);
    color: var(--badge-incomplete-txt);
}

    .status-incomplete::before {
        background: var(--badge-incomplete-txt);
    }

.status-completed {
    background: var(--badge-completed-bg);
    color: var(--badge-completed-txt);
}

.status-completed::before {
    background: var(--badge-completed-txt);
}

/* Pagination */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-info {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.pagination {
    margin: 0;
    gap: 0.25rem;
}

.page-item .page-link {
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 8px !important;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    background: var(--card-bg);
    transition: all 0.15s;
    line-height: 1.5;
}

.page-item .page-link:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79,110,247,0.3);
}

.page-item.disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
}

.rows-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.rows-select select {
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0.3rem 0.6rem;
    font-size: 0.82rem;
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    cursor: pointer;
}

.rows-select select:focus {
    outline: none;
    border-color: var(--accent);
}
