/* Milkijoy soft-premium refresh. Shared structure, no new framework. */
:root { --refresh-ink:#33283f; --refresh-muted:#6c6475; --refresh-line:#e9e3ee; }
body { color:var(--refresh-ink); }
.admin-app { background:#f8f6fa; }
.admin-app .sidebar { background:#fff; border-right:1px solid var(--refresh-line); box-shadow:none; }
.admin-app .sidebar-foot { background:#f8f5fc; border:1px solid var(--refresh-line); }
.admin-app .nav a { border-radius:10px; box-shadow:none; }
.admin-app .nav a.active { background:#eee6f7; color:#60338c; box-shadow:inset 3px 0 #784bb2; }
.admin-app .nav-group > summary { font-size:11px; letter-spacing:.06em; color:var(--refresh-muted); }
.admin-app .admin-header { background:rgba(255,255,255,.98); border-bottom:1px solid var(--refresh-line); box-shadow:none; }
.admin-app .page-kicker { color:#806991; }
.admin-app .page-title-wrap h1 { color:var(--refresh-ink); font-size:clamp(23px,2.3vw,30px); font-weight:800; }
.admin-app .content { padding:24px; max-width:1600px; width:100%; margin:auto; }
.admin-app .card { background:#fff; border:1px solid var(--refresh-line); border-radius:16px; box-shadow:0 3px 12px rgba(62,39,86,.025); }
.admin-app .summary-chip { background:#fff; box-shadow:none; border:1px solid var(--refresh-line); padding:16px; }
.admin-app .summary-chip strong { color:var(--refresh-ink); }
.admin-app .summary-icon { background:#f3edf9; color:#784bb2; box-shadow:none; }
.admin-app h2 { font-size:19px; line-height:1.4; }
.admin-app .muted,.admin-app .page-subtitle { color:var(--refresh-muted); }
.admin-app .btn { border-radius:10px; box-shadow:none; font-size:13px; }
.admin-app .btn-primary { background:#784bb2; border-color:#784bb2; color:#fff; }
.admin-app .btn-green { background:#f1f7f3; color:#286343; border-color:#d5e7dc; }
.admin-app input:not([type=checkbox]):not([type=radio]),.admin-app select,.admin-app textarea { background:#fff; border-color:#dcd4e3; border-radius:9px; }
.admin-app th { background:#f8f6fa; color:#6b587c; font-size:11px; letter-spacing:.035em; }
.admin-app td { padding:14px 12px; vertical-align:top; }
.admin-app tbody tr:hover { background:#fcfaff; }
.admin-app .record-field { background:#f8f6fa; }
.admin-app .record-card { box-shadow:none; border-color:var(--refresh-line); border-radius:14px; }
.admin-app .status { box-shadow:none; font-weight:700; letter-spacing:0; }
.admin-app .order-hero,.admin-app .consultation-hero { background:linear-gradient(110deg,#f4eefb,#fff8fa); border:1px solid var(--refresh-line); }
.admin-app .locale-switcher { display:flex; border:1px solid var(--refresh-line); padding:3px; border-radius:24px; gap:2px; }
.admin-app .locale-switcher a { padding:7px 9px; font-size:11px; font-weight:800; border-radius:20px; color:#65576f; }
.admin-app .locale-switcher a.is-active { background:#784bb2; color:#fff; }
.action-dialog { width:min(460px,calc(100vw - 32px)); padding:28px; border:1px solid #e2d8eb; border-radius:20px; box-shadow:0 24px 80px #29133940; color:#33283f; }
.action-dialog::backdrop { background:#26163577; backdrop-filter:blur(3px); }
.action-dialog h2 { font-size:23px; margin:14px 0 10px; }
.action-dialog p { font-size:15px; line-height:1.65; white-space:pre-line; overflow-wrap:anywhere; }
.dialog-icon { width:44px; height:44px; display:grid; place-items:center; background:#f2eaf9; color:#784bb2; border-radius:14px; }
.dialog-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:22px; }
.dialog-actions button { min-height:44px; }
.danger-zone { margin-top:20px; border:1px solid #edd2d7; border-radius:14px; padding:16px; }
.danger-zone > summary { color:#8d3547; cursor:pointer; font-weight:800; min-height:36px; }
.danger-zone p { line-height:1.65; }
.upload-feedback { display:grid; gap:8px; margin-top:8px; font-size:12px; font-weight:500; overflow-wrap:anywhere; text-transform:none; }
.upload-feedback img { max-width:180px; max-height:130px; object-fit:contain; border-radius:10px; border:1px solid #e9e3ee; }
.context-note { display:flex; align-items:start; gap:10px; padding:14px 16px; margin:12px 0; border:1px solid #e6dced; border-radius:12px; background:#faf7fd; line-height:1.6; }
.admin-app table.profile-facts { min-width:0; width:100%; table-layout:fixed; }
.admin-app table.profile-facts th { width:30%; }
.admin-app table.profile-facts th, .admin-app table.profile-facts td { white-space:normal; overflow-wrap:anywhere; }
:focus-visible { outline:3px solid #784bb2; outline-offset:3px; }
@media(max-width:900px) { .admin-app .content { padding:18px; } }
@media(max-width:600px) { .admin-app .content { padding:14px; } .admin-app .page-title-wrap h1 { font-size:20px; } .admin-app .header-actions { gap:4px; } .admin-app .locale-switcher a { min-height:36px; padding:9px 6px; } .admin-app .header-actions > a[title] { display:none; } .action-dialog { padding:22px; } .dialog-actions .btn { flex:1; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
/* Keep secondary criteria available without making every search a long form. */
.advanced-filters { border-top:1px solid #e9e3ee; padding-top:10px; }
.advanced-filters > summary { cursor:pointer; color:#67418d; font-weight:700; padding:8px 0; }
.advanced-filters > .filters { padding-top:12px; }
.admin-app .filter-panel .filters:has(> .advanced-filters) { grid-template-columns:minmax(150px,.6fr) minmax(240px,1.4fr); }
@media(max-width:600px) { .admin-app .filter-panel .filters:has(> .advanced-filters) { grid-template-columns:minmax(0,1fr); } }
@media(max-width:900px) {
  /* Full customer name remains in the record body and accessible heading text. */
  .admin-app .page-title-wrap h1 { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; line-height:1.3; }
}
