/* ===== Page Header / Search ===== */
.page-title-icon { width: 36px; height: 36px; background: #b1e4e1; color: #00897b; }
.search-form { position: relative; }
.search-input { width: 280px; border-color: #b2dfdb; background: #f0f5f4; font-size: .88rem; padding-left: 16px; height: 42px; }
.search-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.search-btn-img { width: 34px; height: 34px; }

/* ===== Stat Cards Grid ===== */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.stat-grid-shortcut { grid-row: 1 / 3; }
.stat-card { transition: transform .2s; cursor: pointer; border-left: 4px solid transparent !important; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08) !important; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.stat-icon-blue { background: #b1e4e1; color: #00897b; }
.stat-icon-teal { background: #b1e4e1; color: #00695c; }
.stat-icon-amber { background: #fef3c7; color: #f59e0b; }
.stat-value { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pill-label { font-size: .82rem; }
.pill-blue { background: #00897b; }
.pill-teal { background: #00695c; }
.pill-amber { background: #f59e0b; }
.pill-cyan { background: #00838f; }
.badge-sm { font-size: .7rem; }
.shortcut-icon-teal { color: #0d9488; }
.shortcut-icon-amber { color: #f59e0b; }
.shortcut-icon-cyan { color: #00838f; }
.btn-agent-download { background: #91c9c3; color: #3F51B5; border: none; border-radius: 10px; padding: 14px 16px; font-size: .95rem; transition: all .15s; }
.btn-agent-download:hover { background:#38ac9f; }
.btn-agent-download i.bi-download { font-size: 1.4rem; }
.agent-sub { color: rgba(255,255,255,.75); font-size: .75rem; }
.chevron-sm { font-size: .7rem; }

/* ===== 처리현황 원형 ===== */
.status-circle { width: 85px; height: 85px; }
.status-circle-success { background: #f0fdf4; }
.status-circle-warning { background: #fffbeb; }
.status-circle-danger { background: #fef2f2; }
.status-value { font-size: 1.1rem; }
.status-unit { font-size: .6rem; margin-top: -2px; }
.status-label { font-size: .72rem; }

/* ===== Charts ===== */
.mini-donut { width: 84px; height: 84px; border-radius: 50%; position: relative; flex-shrink: 0; }
.mini-donut .donut-center { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: #475569; }
.mini-pie { width: 90px; height: 90px; border-radius: 50%; position: relative; flex-shrink: 0; }
.mini-pie .pie-center { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; background: #fff; border-radius: 50%; transform: translate(-50%,-50%); z-index: 2; }
.mini-pie .pie-labels { position: absolute; inset: 0; z-index: 3; opacity: 0; transition: opacity .2s; }
.mini-pie:hover .pie-labels, .mini-pie:focus-within .pie-labels { opacity: 1; }
.mini-pie .pie-lbl { position: absolute; font-size: .6rem; font-weight: 700; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.4); transform: translate(-50%,-50%); }

/* ===== Table ===== */
.doc-link { color: #1e293b; font-weight: 600; text-decoration: none; }
.doc-link:hover, .doc-link:focus { color: #00838f; }
.table-docs tbody td { padding-top: 17px !important; padding-bottom: 17px !important; white-space: nowrap; }
.table-docs thead th { padding-top: 0.9rem; padding-bottom: 0.9rem; white-space: nowrap; }
.doc-id { font-size: .7rem; }
.th-num { width: 40px; }
.th-category { width: 90px; }
.th-author { width: 70px; }
.th-date { width: 100px; }
.th-status { width: 65px; }
.th-action { width: 70px; }
.status-dot { font-size: 5px; }
.card-title-sm { font-size: .92rem; }

/* ===== Timeline ===== */
.tl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.tl-dot-teal { background: #0d9488; }
.activity-scroll { max-height: 255px; overflow-y: auto; }
.ext-link-icon { font-size: .7rem; }

/* ===== Progress ===== */
.progress-custom { height: 8px; }
.progress-bar-custom { background: linear-gradient(90deg, #00bcd4, #00897b); }
.legend-dot { font-size: 6px; }
.legend-dot-teal { color: #0d9488; }

@media (prefers-reduced-motion: reduce) {
    .stat-card { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-grid-shortcut { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .stat-grid { grid-template-columns: 1fr; }
    .stat-grid-shortcut { grid-column: auto; order: 1; }
    .stat-grid > div:nth-child(1) { order: 2; }
    .stat-grid > div:nth-child(2) { order: 3; }
    .stat-grid > div:nth-child(4) { order: 4; }
    .stat-grid > div:nth-child(5) { order: 5; }
    .search-input { width: 200px; }
    .stat-value { font-size: 1.6rem; }
    .mini-donut { width: 64px; height: 64px; }
    .mini-pie { width: 70px; height: 70px; }
    .status-circle { width: 60px; height: 60px; }
    .status-value { font-size: .95rem; }
}
@media (max-width: 575.98px) {
    .page-header { flex-direction: column; align-items: flex-start !important; gap: 12px; }
    .search-form { width: 100%; }
    .search-input { width: 100%; }
}
@media (max-width: 320px) {
    .page-title-icon { width: 32px; height: 32px; font-size: 1rem; }
    .search-input { font-size: .8rem; padding-left: 12px; height: 38px; }
    .search-btn-img { width: 30px; height: 30px; }
    .stat-value { font-size: 1.4rem; }
    .stat-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .mini-donut { width: 56px; height: 56px; }
    .mini-pie { width: 60px; height: 60px; }
    .status-circle { width: 50px; height: 50px; }
    .status-value { font-size: .85rem; }
    .status-label { font-size: .65rem; }
    .pill-label { font-size: .75rem; padding: 2px 8px; }
    .badge-sm { font-size: .65rem; }
    .card-title-sm { font-size: .85rem; }
    .doc-link { font-size: .85rem; }
    .doc-id { font-size: .65rem; }
    .table-docs tbody td { padding-top: 12px !important; padding-bottom: 12px !important; }
    .table-docs thead th { padding-top: 0.7rem; padding-bottom: 0.7rem; font-size: .75rem; }
}
