:root {
  --grq-border: #d6d9df;
  --grq-text: #111827;
  --grq-purple: #8058fc;
}
.grq-app, .grq-admin-wrap { color: var(--grq-text); font-family: Arial, Helvetica, sans-serif; }
.grq-toolbar { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin:0 0 18px; padding:14px; border:1px solid #d9dce3; border-radius:10px; background:#fff; box-shadow:0 2px 10px rgba(0,0,0,.05); }
.grq-toolbar-form, .grq-toolbar-actions { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; }
.grq-toolbar label { display:flex; flex-direction:column; gap:4px; font-weight:700; }
.grq-toolbar select, .grq-toolbar input[type=date] { min-height:40px; padding:6px 10px; border:1px solid #b8bdc7; border-radius:6px; background:#fff; }
.grq-button { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 14px; border:0; border-radius:7px; background:#8058fc; color:#fff !important; font-weight:700; cursor:pointer; text-decoration:none; }
.grq-button.secondary { background:#e9e6ff; color:#170552 !important; }
.grq-button.danger { background:#b42318; }
.grq-save-status { font-size:14px; font-weight:700; color:#475467; }
.grq-finalized-note { margin:0 0 14px; padding:10px 14px; border-left:4px solid #8058fc; background:#f3f0ff; }
.grq-login-required { max-width:680px; margin:30px auto; padding:24px; background:#fff; border:1px solid #e1e4ea; border-radius:10px; text-align:center; }

.grq-sheet-wrap { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:6px; }
.grq-sheet { min-width:820px; max-width:1100px; margin:0 auto; border:1px solid #d5d8de; background:#fff; font-size:15px; line-height:1.25; }
.grq-row { display:grid; grid-template-columns:1.35fr 1.35fr 1.25fr 1.2fr 1.15fr; min-height:34px; border-bottom:1px solid #e0e2e6; }
.grq-row > div { min-width:0; padding:5px 7px; border-right:1px solid #e0e2e6; }
.grq-row > div:last-child { border-right:0; }
.grq-row .span-2 { grid-column:span 2; }
.grq-row .span-3 { grid-column:span 3; }
.grq-row .span-4 { grid-column:span 4; }
.grq-row .span-5 { grid-column:span 5; }
.grq-title { min-height:38px; background:#f4b183; color:#2f5597; font-size:18px; text-align:center; align-items:center; }
.grq-section { min-height:34px; color:#fff; font-size:17px; align-items:center; }
.grq-section.green { background:#70ad47; }
.grq-section.orange { background:#ed7d31; }
.grq-section.blue { background:#4472c4; }
.grq-spacer { height:24px; border-bottom:1px solid #e8e9ec; background:#fff; }
.grq-spacer.large { height:42px; }
.grq-pale-yellow { background:#fff2cc; }
.grq-peach { background:#fce4d6; }
.grq-light-blue { background:#bdd7ee; }
.grq-steel-blue { background:#8ea9db; color:#17365d; }
.grq-orange { background:#f4b183; }
.grq-yellow { background:#ffe699; }
.grq-gray { background:#e7e6e6; }
.grq-med-header { background:#c6e0b4; color:#006100; }
.grq-med-row { background:#c6e0b4; }
.grq-night-med { background:#c6efce; }
.grq-water { background:#d9e2f3; }
.grq-elim { background:#c6e0b4; }
.grq-diaper { background:#a9d18e; }
.grq-behavior { background:#ffc7ce; color:#c00000; }
.grq-activities-title { min-height:34px; background:#ffc000; color:#fff; text-align:center; font-weight:700; align-items:center; }
.grq-activities-list { display:grid; grid-template-columns:repeat(4, 1fr); gap:0; padding:7px 9px 10px; background:#ffe699; }
.grq-activities-list > div { min-height:26px; padding:3px 5px; }
.grq-input { display:inline-block; max-width:100%; min-width:60px; width:auto; border:0 !important; border-bottom:1px solid rgba(0,0,0,.45) !important; border-radius:0 !important; background:rgba(255,255,255,.35) !important; box-shadow:none !important; padding:2px 4px !important; min-height:27px !important; font:inherit; color:inherit; }
.grq-row .grq-input { width:calc(100% - 76px); }
.grq-row .caregiver-input { width:72%; }
.grq-textarea { width:100%; min-height:44px; resize:vertical; border:0; background:rgba(255,255,255,.4); font:inherit; }
.grq-check { display:inline-flex; align-items:center; gap:3px; margin:1px 12px 1px 0; white-space:nowrap; font-weight:400; }
.grq-check input { width:18px; height:18px; margin:0; accent-color:#8058fc; }
.grq-med { display:flex; align-items:center; gap:6px; min-height:26px; }
.grq-med .grq-check { margin-left:auto; margin-right:0; }
.grq-empty-med { min-width:65px; border-bottom:1px solid rgba(0,0,0,.35); }
.grq-date-display { display:inline-block; margin-left:10px; font-weight:700; }

.grq-admin-grid { display:grid; grid-template-columns:minmax(320px, 1fr) minmax(400px, 1.5fr); gap:20px; align-items:start; }
.grq-admin-card { padding:20px; border:1px solid #dfe2e8; border-radius:10px; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.04); }
.grq-user-list { max-height:320px; overflow:auto; padding:8px; border:1px solid #d9dce3; background:#fafafa; }
.grq-user-list label { display:block; padding:7px 5px; border-bottom:1px solid #eceef2; }
.grq-user-list small { display:block; margin-left:24px; color:#667085; }
.grq-inline-filter { margin:12px 0 18px; }
.grq-inline-filter label { display:flex; gap:10px; align-items:center; font-weight:700; }
.grq-prescription-form { max-width:880px; }
.grq-prescription-form h2 { margin-top:28px; padding-bottom:6px; border-bottom:2px solid #8058fc; }

@media (max-width: 900px) {
  .grq-admin-grid { grid-template-columns:1fr; }
  .grq-toolbar { align-items:stretch; }
  .grq-toolbar-form, .grq-toolbar-actions { width:100%; }
  .grq-toolbar-form label { flex:1; min-width:150px; }
}

@media print {
  .no-print, header, footer, nav, .site-header, .site-footer, #wpadminbar { display:none !important; }
  body { background:#fff !important; margin:0 !important; }
  .grq-sheet-wrap { overflow:visible; }
  .grq-sheet { min-width:0; max-width:none; width:100%; border:0; font-size:10px; }
  .grq-row { min-height:22px; }
  .grq-row > div { padding:2px 3px; }
  .grq-input, .grq-textarea { background:transparent !important; }
  @page { size:A4 portrait; margin:7mm; }
}
