/* Hospital ERP — the patient's own website (mycare.html): its own stylesheet, a soft blue / sunrise look and a phone-first layout (a scrolling tab bar, big touch
   targets). Nothing shared with the hospital staff's pages or any other product. */

:root {
  --mc-blue: #2f6bff;
  --mc-blue-deep: #1b3fb3;
  --mc-sky: #eaf1ff;
  --mc-paper: #f5f8ff;
  --mc-sun: #ffb020;
  --mc-ink: #17203a;
  --mc-soft: #5d6a8a;
  --mc-line: #dbe4f7;
  --mc-good: #12a06b;
  --mc-warn: #d98a00;
  --mc-bad: #d6404f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
.mc-off { display: none !important; }
body.mc { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--mc-ink); background: var(--mc-paper); min-height: 100vh; }
a { color: var(--mc-blue-deep); }

/* -------------------------------------------------------------------- sign in --- */
.mc-auth { display: flex; min-height: 100vh; }
.mc-auth-art { flex: 1 1 52%; padding: 48px 56px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  background: radial-gradient(circle at 15% 10%, rgba(255, 176, 32, 0.35), transparent 40%), linear-gradient(150deg, #1b3fb3 0%, #2f6bff 60%, #6c9bff 100%); }
.mc-auth-art h1 { font-size: 40px; line-height: 1.15; }
.mc-auth-art p { font-size: 16px; max-width: 460px; opacity: 0.92; line-height: 1.55; }
.mc-auth-art ul { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.mc-auth-art li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.mc-auth-art li i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.18); display: inline-flex; align-items: center; justify-content: center; }
.mc-auth-card { flex: 1 1 48%; display: flex; flex-direction: column; justify-content: center; padding: 40px; max-width: 520px; margin: 0 auto; width: 100%; }
.mc-auth-card h2 { font-size: 26px; margin-bottom: 6px; }
.mc-hint { color: var(--mc-soft); font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.mc-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.mc-heart { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--mc-sun); color: #fff; }
.mc-alert:not(:empty) { background: #fdecee; border: 1px solid #f5c2c8; color: var(--mc-bad); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.mc-field { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--mc-line); border-radius: 12px; padding: 0 14px; }
.mc-field:focus-within { border-color: var(--mc-blue); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.14); }
.mc-field span { color: var(--mc-soft); font-weight: 600; }
.mc-field input, .mc-field select, .mc-field textarea { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; padding: 13px 0; color: var(--mc-ink); min-width: 0; }
.mc-check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.mc-btn { width: 100%; margin-top: 18px; border: 0; cursor: pointer; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 700; color: #fff; background: linear-gradient(120deg, var(--mc-blue), var(--mc-blue-deep)); display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 12px 22px -14px rgba(27, 63, 179, 0.9); }
.mc-btn:disabled { opacity: 0.65; cursor: default; }
.mc-btn.sm { width: auto; margin: 0; padding: 8px 16px; font-size: 14px; }
.mc-btn.line { background: #fff; color: var(--mc-blue-deep); border: 1.5px solid var(--mc-line); box-shadow: none; }
.mc-btn.danger { background: #fff; color: var(--mc-bad); border: 1.5px solid #f0c3c8; box-shadow: none; }
.mc-link { display: block; text-align: center; margin-top: 14px; font-size: 14px; }
.mc-foot-note { margin-top: 22px; font-size: 13px; color: var(--mc-soft); text-align: center; }
.mc-pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--mc-line); border-radius: 12px; padding: 14px; margin-top: 10px; cursor: pointer; font: inherit; }
.mc-pick:hover { border-color: var(--mc-blue); }

/* ------------------------------------------------------------------------ app --- */
.mc-top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--mc-line); }
.mc-top-in { max-width: 1040px; margin: 0 auto; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mc-who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.mc-ghost { border: 1px solid var(--mc-line); background: #fff; color: var(--mc-soft); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
.mc-tabs { max-width: 1040px; margin: 0 auto; padding: 0 12px 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mc-tabs::-webkit-scrollbar { display: none; }
.mc-tab { flex: 0 0 auto; border: 0; background: transparent; padding: 9px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--mc-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mc-tab.on { background: var(--mc-sky); color: var(--mc-blue-deep); }
.mc-main { max-width: 1040px; margin: 0 auto; padding: 20px 18px 40px; }
.mc-main h2 { font-size: 22px; margin-bottom: 4px; }
.mc-sub { color: var(--mc-soft); font-size: 14px; margin-bottom: 16px; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
.mc-card { background: #fff; border: 1px solid var(--mc-line); border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; }
.mc-grid .mc-card { margin-bottom: 0; }
.mc-card h3 { font-size: 15px; margin-bottom: 8px; }
.mc-kpi { font-size: 26px; font-weight: 800; }
.mc-kpi small { display: block; font-size: 12.5px; font-weight: 500; color: var(--mc-soft); margin-top: 2px; }
.mc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--mc-line); }
.mc-row:last-child { border-bottom: 0; }
.mc-row b { display: block; }
.mc-row .mc-meta { color: var(--mc-soft); font-size: 13px; margin-top: 2px; }
.mc-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--mc-sky); color: var(--mc-blue-deep); white-space: nowrap; }
.mc-pill.good { background: #e0f6ec; color: var(--mc-good); }
.mc-pill.warn { background: #fff2d6; color: var(--mc-warn); }
.mc-pill.bad { background: #fde4e7; color: var(--mc-bad); }
.mc-empty { text-align: center; color: var(--mc-soft); padding: 26px 10px; font-size: 14px; }
.mc-take { border-left: 4px solid var(--mc-sun); }
.mc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 14px; }
.mc-form .wide { grid-column: 1 / -1; }
.mc-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mc-slot { border: 1.5px solid var(--mc-line); background: #fff; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.mc-slot.on { background: var(--mc-blue); color: #fff; border-color: var(--mc-blue); }
.mc-slot:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.mc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mc-table th, .mc-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--mc-line); }
.mc-table th { color: var(--mc-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.mc-table .n { text-align: right; }
.mc-foot { max-width: 1040px; margin: 0 auto; padding: 0 18px 30px; color: var(--mc-soft); font-size: 12.5px; text-align: center; }
.mc-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--mc-ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 50; max-width: 90vw; }
.mc-toast.show { opacity: 1; }
.mc-toast.bad { background: var(--mc-bad); }

@media (max-width: 820px) {
  .mc-auth { flex-direction: column; }
  .mc-auth-art { padding: 30px 22px; flex: 0 0 auto; }
  .mc-auth-art h1 { font-size: 30px; }
  .mc-auth-art ul { display: none; }
  .mc-auth-card { padding: 26px 20px 40px; max-width: none; }
  .mc-who span { display: none; }
}
