/* UMCom list pages — tables, chips, pills, bulk bar, paging (logged-in pages only) */

body.umc-shell .umc-page-head-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Small stat cards */
body.umc-shell .umc-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
body.umc-shell .umc-mini-stat {
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 32, 48, 0.06);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.umc-shell .umc-mini-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a6b7d;
    white-space: nowrap;
}
body.umc-shell .umc-mini-num {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1;
    color: #1c2733;
    white-space: nowrap;
}
body.umc-shell .umc-mini-warn {
    color: #b86200;
}
body.umc-shell .umc-mini-cap {
    font-size: 13px;
    color: #5a6b7d;
    white-space: nowrap;
}

/* Toolbar: chips + search */
body.umc-shell .umc-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #edf1f5;
    flex-wrap: wrap;
}
body.umc-shell .umc-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
body.umc-shell .umc-chip {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #d5dde6;
    color: #3a4a5c;
    white-space: nowrap;
    text-decoration: none;
}
body.umc-shell .umc-chip:hover {
    background: #f4f7fa;
    color: #1c2733;
    text-decoration: none;
}
body.umc-shell .umc-chip.active,
body.umc-shell .umc-chip.active:hover {
    background: #1c2733;
    border-color: #1c2733;
    color: #ffffff;
}
body.umc-shell .umc-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #d5dde6;
    background: #ffffff;
    width: 260px;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    color: #6b7a8c;
}
body.umc-shell .umc-search input {
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: #1c2733;
    width: 100%;
    padding: 0;
}

/* Bulk bar */
body.umc-shell .umc-bulkbar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: #eaf5fc;
    border-bottom: 1px solid #c9e4f5;
    font-size: 13px;
    flex-wrap: wrap;
}
body.umc-shell .umc-bulkbar.show {
    display: flex;
}
body.umc-shell .umc-bulk-count {
    font-weight: 600;
    color: #0a5f93;
    white-space: nowrap;
}
body.umc-shell .umc-bulk-clear {
    margin-left: auto;
    color: #5a6b7d;
    white-space: nowrap;
}

/* Table */
body.umc-shell .umc-table-wrap {
    overflow-x: auto;
}
body.umc-shell table.umc-table {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0 !important;
}
body.umc-shell table.umc-table th,
body.umc-shell table.umc-table td {
    white-space: nowrap;
    vertical-align: middle;
}
body.umc-shell table.umc-table thead th {
    background: #f8fafc;
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a6b7d;
    border-bottom: 1px solid #edf1f5;
    border-top: 0;
}
body.umc-shell table.umc-table tbody td {
    padding: 12px 16px;
    border-top: 1px solid #edf1f5;
    color: #3a4a5c;
}
body.umc-shell table.umc-table tbody tr:hover td {
    background: #fafbfc;
}
body.umc-shell table.umc-table th:first-child,
body.umc-shell table.umc-table td:first-child {
    padding-left: 24px;
}
body.umc-shell table.umc-table th:last-child,
body.umc-shell table.umc-table td:last-child {
    padding-right: 24px;
}
body.umc-shell table.umc-table .umc-col-check {
    width: 16px;
    padding-right: 6px;
}
body.umc-shell table.umc-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0093e8;
    vertical-align: middle;
}
body.umc-shell .umc-right {
    text-align: right !important;
}
body.umc-shell .umc-strong {
    font-weight: 600;
    color: #1c2733 !important;
}
body.umc-shell .umc-link-strong {
    font-weight: 600;
    color: #0a7bc0;
}

/* DataTables sort arrows: keep subtle */
body.umc-shell table.umc-table thead .sorting,
body.umc-shell table.umc-table thead .sorting_asc,
body.umc-shell table.umc-table thead .sorting_desc {
    cursor: pointer;
}

/* Status pills */
body.umc-shell .umc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
body.umc-shell .umc-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
body.umc-shell .umc-pill-green { background: #e3f6ec; color: #136b3b; }
body.umc-shell .umc-pill-amber { background: #fff1dc; color: #8a4b00; }
body.umc-shell .umc-pill-red { background: #fde8e6; color: #a3261b; }
body.umc-shell .umc-pill-grey { background: #eceff3; color: #4a5a6c; }
body.umc-shell .umc-pill-blue { background: #e6f4fd; color: #0a5f93; }

/* Small + fixed-width buttons */
body.umc-shell .umc-btn-sm {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 6px;
}
body.umc-shell .umc-btn-fixed {
    width: 84px;
    padding: 0;
}

/* DataTables footer: info + paging */
body.umc-shell .umc-dt-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid #edf1f5;
    font-size: 13px;
    color: #5a6b7d;
    flex-wrap: wrap;
}
body.umc-shell .umc-dt-foot .dataTables_info {
    padding: 0 !important;
    white-space: nowrap;
}
body.umc-shell .umc-dt-foot .dataTables_paginate {
    padding: 0 !important;
    margin: 0 !important;
}
body.umc-shell .umc-dt-foot .pagination {
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
}
body.umc-shell .umc-dt-foot .page-item .page-link,
body.umc-shell .umc-dt-foot .paginate_button {
    border: 1px solid #d5dde6 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    color: #1c2733 !important;
    background: #ffffff !important;
    font-weight: 600;
    font-size: 13px;
    margin: 0 !important;
    box-shadow: none !important;
}
body.umc-shell .umc-dt-foot .page-item.active .page-link,
body.umc-shell .umc-dt-foot .paginate_button.current {
    background: #0093e8 !important;
    border-color: #0093e8 !important;
    color: #ffffff !important;
}
body.umc-shell .umc-dt-foot .page-item.disabled .page-link,
body.umc-shell .umc-dt-foot .paginate_button.disabled {
    color: #8a99a8 !important;
}

/* Phones */
@media (max-width: 767.98px) {
    body.umc-shell .umc-stat-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    body.umc-shell .umc-list-toolbar {
        padding: 14px 16px;
    }
    body.umc-shell .umc-search {
        width: 100%;
    }
    body.umc-shell .umc-bulkbar {
        padding: 10px 16px;
    }
    body.umc-shell .umc-dt-foot {
        padding: 12px 16px;
        justify-content: center;
    }
}
