/* Hen gio gui, ho so khach, nhat ky thao tac, phim tat */

/* ---- Hen gio gui ---- */
#schedule-modal textarea { padding: 10px 12px; border-radius: var(--radius-sm); font: inherit; resize: vertical; }
.sch-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.sch-quick button {
  background: var(--surface-2) !important; color: var(--text-2) !important; box-shadow: none !important;
  padding: 6px 12px !important; border-radius: 999px !important; font-size: 12.5px !important; font-weight: 600;
}
.sch-quick button:hover { background: var(--primary-soft) !important; color: var(--primary) !important; }
.work-chip.sch-pending { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.work-chip.sch-failed { background: var(--danger-soft); border-color: transparent; color: var(--danger); }

/* ---- Ho so khach hang (bang thong tin) ---- */
.info-customer { padding: 2px 16px 8px; }
.cust-head {
  width: 100%; display: flex; align-items: center; gap: 8px; border: none; background: transparent; cursor: pointer;
  padding: 6px 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-2); text-align: left;
}
.cust-summary { flex: 1; min-width: 0; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-customer.collapsed .cust-body { display: none; }
.info-customer.collapsed .info-chevron { transform: rotate(-90deg); }
.cust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
.cust-grid label, .cust-note { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); min-width: 0; }
.cust-grid label:nth-child(3) { grid-column: 1 / -1; } /* dia chi: ca hang */
.cust-grid input, .cust-note textarea { padding: 6px 8px !important; font-size: 12.5px !important; min-width: 0; width: 100%; box-sizing: border-box; }
.cust-note { margin-top: 6px; }
.cust-note textarea { resize: vertical; font: inherit; border-radius: 8px; }
.cust-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.cust-save { padding: 4px 12px; font-size: 12px; border-radius: 999px; }

/* ---- Nhat ky thao tac ---- */
.audit-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.audit-filters .tag-filter-select { max-width: 200px; padding: 6px 10px; font-size: 12.5px; }
.audit-wrap { max-height: 55vh; overflow-y: auto; }
.audit-detail { white-space: normal !important; color: var(--text-2); font-size: 12.5px; min-width: 220px; }
.report-export {
  margin-left: auto; background: var(--surface) !important; color: var(--success) !important; border: 1px solid #b7e8cf !important;
  box-shadow: none !important; padding: 6px 12px !important; border-radius: 999px !important; font-size: 12.5px !important; font-weight: 600;
}
.report-export:hover { background: #e9f9f1 !important; }

/* ---- Phim tat ---- */
.shortcut-table { border-collapse: collapse; font-size: 13.5px; }
.shortcut-table td { padding: 6px 10px; border-bottom: 1px solid var(--border); }
.shortcut-table kbd {
  font-family: inherit; font-size: 12px; padding: 2px 8px; border-radius: 6px; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: 0 1px 0 var(--border-strong);
}

/* Icon che do sang/toi theo che do dang chon */
#theme-toggle-btn svg { display: none; }
#theme-toggle-btn[data-mode="light"] .th-sun, #theme-toggle-btn[data-mode="dark"] .th-moon, #theme-toggle-btn[data-mode="auto"] .th-auto { display: block; }
