/* ===== Page Title ===== */
.page-title-icon { width: 44px; height: 44px; background: #b1e4e1; color: #00897b; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }

/* ===== Search Card ===== */
.search-card { border: none; border-radius: 16px; overflow: hidden; }
.search-bar { background: #d9eae7; padding: 20px 24px; }
.search-input-group { max-width: 640px; }
.search-input { border-color: #b2dfdb; background: #fff; font-size: .92rem; border-right: none; }
.search-input:focus { border-color: #00897b; box-shadow: 0 0 0 3px rgba(0,137,123,.15); background: #fff; z-index: 1; }
.search-input::placeholder { color: #90a4ae; }
.btn-search { background: #00897b; color: #fff; border-color: #00897b; font-size: .875rem; font-weight: 600; white-space: nowrap; border-radius: 0 8px 8px 0 !important; padding: 0 18px; }
.btn-search:hover, .btn-search:active { background: #00796b; border-color: #00796b; color: #fff; }

/* ===== Filter Panel ===== */
.filter-toggle { background: #f5fafa; border: none; border-top: 1px solid #d0ddd9; padding: 24px; font-size: .85rem; color: #00695c; font-weight: 700; cursor: pointer; width: 100%; text-align: left; display: flex; align-items: center; gap: 6px; transition: background .15s; }
.filter-toggle i.chevron { transition: transform .2s; }
.filter-toggle.open i.chevron { transform: rotate(180deg); }
.filter-panel { background: #f8fbfa; padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; border-top: 1px solid transparent; }
.filter-panel.open { max-height: 600px; padding: 18px 24px 20px; border-top-color: #e0f2f1; }
.filter-item { display: flex; flex-direction: column; gap: 5px; }
.filter-label { font-size: .78rem; font-weight: 600; color: #546e7a; line-height: 1; white-space: nowrap; }
.filter-select { border-color: #d0d7de; border-radius: 8px; font-size: .84rem; padding: .4rem .75rem; min-width: 140px; height: 38px; }
.filter-select:focus { border-color: #00897b; box-shadow: 0 0 0 3px rgba(0,137,123,.12); }
.filter-check { height: 38px; font-size: .84rem; white-space: nowrap; }
.filter-input { border-color: #d0d7de; border-radius: 8px; font-size: .84rem; padding: .4rem .75rem; min-width: 140px; height: 38px; }
.filter-input:focus { border-color: #00897b; box-shadow: 0 0 0 3px rgba(0,137,123,.12); }
.btn-filter-apply { background: #00897b; color: #fff; border: 1px solid #00897b; border-radius: 8px; font-size: .82rem; padding: .45rem .85rem; height: 38px; white-space: nowrap; }
.btn-filter-apply:hover { background: #00796b; border-color: #00796b; color: #fff; }
.btn-filter-reset { border: 1px solid #d0d7de; background: #fff; color: #546e7a; border-radius: 8px; font-size: .82rem; padding: .45rem .85rem; height: 38px; white-space: nowrap; }
.btn-filter-reset:hover { background: #f5f5f5; }
.btn-register { background: #00897b; color: #fff; border: none; border-radius: 10px; font-size: .88rem; font-weight: 600; padding: .55rem 1.25rem; }
.btn-register:hover { background: #00796b; color: #fff; }

/* ===== Table Card ===== */
.table-card { border: none; border-radius: 16px; overflow: hidden; }
.table-card .card-header { background: #fff; border-bottom: 1px solid #e8e8e8; padding: 16px 24px; }
.table-card .card-body { padding: 0; }
.section-title { font-size: .92rem; font-weight: 700; color: #37474f; }

/* ===== Data Table ===== */
.doc-table { margin-bottom: 0; font-size: .85rem; }
.doc-table thead { background: #f8fafa; }
.doc-table thead th { font-weight: 700; color: #546e7a; font-size: .8rem; padding: 12px 14px; border-bottom: 2px solid #e0e0e0; white-space: nowrap; vertical-align: middle; letter-spacing: .3px; }
.doc-table tbody td { padding: 13px 14px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; color: #37474f; white-space: nowrap; }
.doc-table tbody tr { transition: background .12s; }
.doc-table tbody tr:hover { background: #b1e4e1; }
.doc-table tbody tr.selected { background: #b1e4e1; }
.doc-table .check-col { width: 40px; text-align: center; }
.doc-table .no-col { width: 52px; text-align: center; color: #90a4ae; font-size: .8rem; }
.doc-table .title-col { min-width: 200px; }
.doc-table .title-col a { color: #263238; text-decoration: none; font-weight: 600; }
.doc-table .title-col a:hover { color: #00897b; text-decoration: underline; }
.doc-table .action-col { width: 100px; white-space: nowrap; }
.doc-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: #00897b; cursor: pointer; }

/* ===== Status Badges (defined in common.css, only cat badge here) ===== */
.badge-cat { background: #e3f2fd; color: #1565c0; font-size: .76rem; font-weight: 500; }

/* ===== Action Buttons ===== */
.btn-edit-sm { background: none; border: 1px solid #d0d7de; color: #546e7a; border-radius: 6px; font-size: .78rem; padding: 4px 10px; }
.btn-edit-sm:hover { border-color: #00897b; color: #00897b; background: #e0f7fa; }
.btn-del-sm { background: none; border: 1px solid #d0d7de; color: #90a4ae; border-radius: 6px; font-size: .78rem; padding: 4px 10px; }
.btn-del-sm:hover { border-color: #ef5350; color: #ef5350; background: #ffebee; }

/* ===== Batch Actions ===== */
.batch-bar { display: none; padding: 12px 24px; background: #b1e4e1; border-top: 1px solid #b2dfdb; }
.batch-bar.show { display: flex; }
.batch-text { font-size: .84rem; color: #00695c; font-weight: 600; }
.btn-batch { border-radius: 8px; font-size: .82rem; font-weight: 600; padding: 6px 14px; }

/* ===== Pagination ===== */
.pagination-wrap { padding: 16px 24px; border-top: 1px solid #f0f0f0; }
.page-link { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50% !important; color: #546e7a; border-color: #e0e0e0; font-size: .84rem; padding: 0; }
.page-link:hover { color: #00897b; background: #b1e4e1; border-color: #b2dfdb; }
.page-item { margin: 0 2px; }
.page-item.active .page-link { background: #00897b; border-color: #00897b; color: #fff; }
.page-item.disabled .page-link { color: #bdbdbd; }
.per-page-select { border-color: #d0d7de; border-radius: 8px; font-size: .82rem; padding: 4px 8px; width: 60%; min-width: 72px; max-width: 100px; }
.per-page-select:focus { border-color: #00897b; box-shadow: 0 0 0 3px rgba(0,137,123,.12); }
.result-info { font-size: .82rem; color: #78909c; }

/* ===== Empty State ===== */
.empty-state { padding: 60px 20px; text-align: center; color: #90a4ae; }
.empty-state-icon { font-size: 3rem; opacity: .4; margin-bottom: 12px; }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .doc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 767.98px) {
    .toolbar-card .card-body { padding: 16px; }
    .doc-table thead th { font-size: .76rem; padding: 10px 10px; }
    .doc-table tbody td { padding: 10px 10px; font-size: .82rem; }
    .pagination-wrap { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 575.98px) {
    .search-bar { padding: 16px; }
    .filter-toggle { padding: 16px; font-size: .8rem; }
    .filter-panel.open { padding: 14px 16px 16px; }
    .filter-select { min-width: 120px; font-size: .8rem; padding: .35rem .65rem; }
    .filter-check { font-size: .8rem; }
    .table-card .card-header { padding: 12px 16px; }
    .section-title { font-size: .85rem; }
    .result-info { font-size: .75rem; }
}
@media (max-width: 320px) {
    .page-title-icon { width: 36px; height: 36px; font-size: 1rem; }
    .search-bar { padding: 12px; }
    .search-input { font-size: .85rem; }
    .filter-toggle { padding: 12px; font-size: .75rem; }
    .filter-panel.open { padding: 10px 12px 14px; }
    .filter-select { min-width: 100px; font-size: .75rem; padding: .3rem .6rem; }
    .filter-label { font-size: .72rem; }
    .filter-check { font-size: .75rem; }
    .btn-filter-reset { font-size: .75rem; padding: .4rem .7rem; }
    .btn-register { font-size: .8rem; padding: .5rem 1rem; }
    .table-card .card-header { padding: 10px 12px; }
    .section-title { font-size: .8rem; }
    .result-info { font-size: .7rem; }
    .doc-table { font-size: .8rem; }
    .doc-table thead th { font-size: .7rem; padding: 8px 8px; }
    .doc-table tbody td { padding: 8px 8px; font-size: .75rem; }
    .doc-table .title-col { min-width: 150px; }
    .doc-table .title-col a { font-size: .75rem; }
    .badge-active, .badge-expired, .badge-destroyed, .badge-cat { font-size: .7rem; padding: 2px 6px; }
    .btn-edit-sm, .btn-del-sm { font-size: .7rem; padding: 3px 8px; }
    .batch-bar { padding: 10px 12px; }
    .batch-text { font-size: .75rem; }
    .btn-batch { font-size: .75rem; padding: 5px 10px; }
    .pagination-wrap { padding: 10px 12px; }
    .page-link { width: 30px; height: 30px; font-size: .75rem; }
    .per-page-select { font-size: .75rem; padding: 3px 6px; min-width: 60px; }
}
