:root { --bg-body: #f4f6fa; --brand-color: #ff3366; --brand-dark: #cc2952; --surface: #ffffff; --text-main: #0f172a; --text-muted: #64748b; --border-soft: #e2e8f0; --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05); --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03); }
body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--bg-body); color: var(--text-main); font-size: 14px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.app-header { margin: 20px auto; width: 95%; max-width: 1500px; background: var(--surface); border-radius: 16px; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); }
.app-brand { font-weight: 800; font-size: 18px; color: var(--text-main); letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; }
.app-brand .dot { width: 10px; height: 10px; background: var(--brand-color); border-radius: 50%; }
.btn-logout { background: #fff1f2; color: #e11d48; border: none; border-radius: 8px; padding: 8px 16px; font-weight: 600; font-size: 13px; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.btn-logout:hover { background: #ffe4e6; }
.workspace { width: 95%; max-width: 1500px; margin: 0 auto 40px; }
.glass-panel { background: var(--surface); border-radius: 16px; padding: 20px 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); margin-bottom: 24px; }
.custom-filter { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; justify-content: flex-start; }
.filter-title { font-weight: 700; color: var(--text-muted); font-size: 14px; margin: 0; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.date-input-wrapper { display: flex; align-items: center; background: #f8fafc; border: 1px solid var(--border-soft); border-radius: 8px; padding: 10px 14px; transition: 0.2s; flex-grow: 1; max-width: 200px; position: relative; }
.date-input-wrapper:focus-within { border-color: var(--brand-color); background: #fff; box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1); }
.date-input-wrapper input { border: none; background: transparent; outline: none; font-weight: 600; color: var(--text-main); width: 100%; font-size: 13px; }
.date-input-wrapper i { color: var(--text-muted); margin-right: 10px; font-size: 14px; }
.filter-to-text { font-weight: 600; color: var(--text-muted); font-size: 13px; }
.btn-brand { background: var(--brand-color); color: white; border: none; border-radius: 8px; padding: 10px 20px; font-weight: 600; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; cursor: pointer; }
.btn-brand:hover { background: var(--brand-dark); }
.dataTables_length, .dataTables_info, .dataTables_filter { display: none !important; }
.table-responsive { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; box-shadow: var(--shadow-sm); overflow-x: auto; position: relative; padding: 0; -webkit-overflow-scrolling: touch; }
.table-responsive::-webkit-scrollbar { height: 6px; }
.table-responsive::-webkit-scrollbar-track { background: transparent; }
.table-responsive::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 10px; }
.dataTables_wrapper { position: relative; width: 100%; display: flex; flex-direction: column; }
table.dataTable { border-collapse: collapse !important; width: 100% !important; margin: 0 !important; }
table.dataTable thead { background-color: #f8fafc; }
table.dataTable thead th { border-bottom: 1px solid var(--border-soft) !important; color: #475569 !important; font-size: 11px; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.5px; padding: 16px 20px; white-space: nowrap; }
table.dataTable tbody tr { background-color: var(--surface) !important; transition: background-color 0.2s ease; }
table.dataTable tbody tr:hover { background-color: #f1f5f9 !important; }
table.dataTable tbody td { border-bottom: 1px solid var(--border-soft) !important; padding: 16px 20px; vertical-align: middle; white-space: nowrap; }
table.dataTable tbody tr:last-child td { border-bottom: none !important; }
td.dt-text-dark { color: #0f172a !important; font-weight: 600; }
td.dt-text-gray { color: #475569 !important; font-weight: 500; }
.status-pill { padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600 !important; display: inline-flex; align-items: center; gap: 6px; }
.pill-completed { background: #dcfce7 !important; color: #15803d !important; }
.pill-revise { background: #fef9c3 !important; color: #a16207 !important; }
.action-btn { background: #f1f5f9; color: var(--text-main); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; transition: 0.2s; cursor: pointer; border: 1px solid var(--border-soft); }
.action-btn:hover { background: var(--text-main); color: white; border-color: var(--text-main); }
.dataTables_wrapper .dataTables_paginate { padding: 16px 20px; display: flex; justify-content: flex-end; background: var(--surface); border-top: 1px solid var(--border-soft); align-self: stretch; position: sticky; left: 0; }
.dataTables_wrapper .dataTables_paginate .paginate_button { border: 1px solid transparent !important; background: transparent !important; color: #475569 !important; border-radius: 6px !important; font-weight: 600; margin: 0 2px; padding: 6px 12px !important; cursor: pointer; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: #e2e8f0 !important; color: #0f172a !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: #0f172a !important; color: white !important; border-color: #0f172a !important; }
.api-status { display: flex; align-items: center; background: rgba(34, 197, 94, 0.1); padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(34, 197, 94, 0.2); }
.status-dot { height: 8px; width: 8px; background-color: #22c55e; border-radius: 50%; display: inline-block; margin-right: 8px; box-shadow: 0 0 8px #22c55e; animation: pulse-green 2s infinite; }
.status-text { font-size: 12px; font-weight: 600; color: #166534; white-space: nowrap; }
@keyframes pulse-green { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.api-status.offline { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }
.api-status.offline .status-dot { background-color: #ef4444; box-shadow: 0 0 8px #ef4444; animation: none; }
.api-status.offline .status-text { color: #991b1b; }
.custom-overlay-loader { position: absolute; top: 48px; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.8); z-index: 50; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(1px); }
.loader-dots { display: flex; justify-content: center; gap: 8px; }
.loader-dots div { width: 10px; height: 10px; background: var(--brand-color); border-radius: 50%; animation: bounce 0.5s alternate infinite; }
.loader-dots div:nth-child(2) { animation-delay: 0.15s; }
.loader-dots div:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { to { transform: translateY(-8px); opacity: 0.5; } }
.modal-content { border: none; border-radius: 16px; box-shadow: var(--shadow-md); overflow: hidden; }
.modal-header { background: var(--surface); border-bottom: 1px solid var(--border-soft); padding: 20px 24px; }
.modal-title { font-weight: 800; font-size: 18px; color: var(--text-main); }
.btn-close-custom { width: 32px; height: 32px; background: #f1f5f9; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; border: none; }
.btn-close-custom:hover { background: #fee2e2; color: #e11d48; }
.modal-body { padding: 24px; background: #f8fafc; }
.data-block { background: var(--surface); padding: 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--border-soft); }
.data-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.data-val { font-size: 14px; font-weight: 600; color: var(--text-main); word-break: break-word; }
.data-val.error-text { color: #e11d48; background: #fff1f2; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-top: 5px; border: 1px solid #fecdd3; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.gallery-card { background: var(--surface); padding: 12px; border-radius: 12px; border: 1px solid var(--border-soft); text-align: center; }
.gallery-card img { width: 100%; height: 160px; object-fit: contain; border-radius: 8px; background: #f1f5f9; }
.gallery-title { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-top: 12px; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }

@media (max-width: 768px) {
.app-header { padding: 12px 16px; gap: 8px; margin: 12px auto; }
.app-brand { font-size: 15px; gap: 6px; }
.app-brand .dot { width: 8px; height: 8px; }
.api-status { padding: 5px 10px; }
.status-text { font-size: 11px; }
.btn-logout { padding: 8px 10px; }
.btn-logout span { display: none; }
.workspace { margin-bottom: 20px; }
.glass-panel { padding: 16px; border-radius: 12px; }
.custom-filter { flex-direction: column; align-items: stretch; gap: 12px; }
.custom-filter > div, .custom-filter > input, .custom-filter > button { width: 100% !important; max-width: 100% !important; margin: 0 !important; box-sizing: border-box; }
.filter-title { justify-content: center; margin-bottom: 4px; text-align: center; }
.date-input-wrapper { display: flex; justify-content: center; align-items: center; position: relative; padding: 14px; width: 100%; box-sizing: border-box; }
.date-input-wrapper i { position: absolute; left: 16px; margin: 0; }
.date-input-wrapper input { text-align: center; width: 100%; padding: 0 20px; }
.filter-to-text { text-align: center; display: block; margin: -4px 0; width: 100%; }
.btn-brand { padding: 14px; font-size: 14px; margin-bottom: 4px; width: 100%; justify-content: center; }
table.dataTable tbody td { padding: 14px 16px; font-size: 13px; }
.dataTables_wrapper .dataTables_paginate { justify-content: center; padding: 16px 10px; border-top: 1px solid var(--border-soft); margin-top: 0; position: sticky; left: 0; width: max-content; min-width: 100%; box-sizing: border-box; }
#customSearchInput { width: 100% !important; box-sizing: border-box; }
}