/* Shared screen-only finish. Print/PDF uses the existing styles unchanged. */
@media screen {
  :is(#gb-report-app, .gb-report-full, #gb-dialog, .gb-login-stage) {
    --gb-ui-sheen:linear-gradient(165deg,rgb(255 255 255 / 16%),rgb(255 255 255 / 2%) 45%,rgb(5 50 38 / 4%));
    --gb-ui-relief:inset 0 1px 0 rgb(255 255 255 / 65%),inset 0 -1px 0 rgb(13 68 54 / 12%),0 3px 0 #c0d6ce,0 7px 14px rgb(16 70 55 / 12%);
    --gb-ui-panel:inset 0 2px 0 rgb(255 255 255 / 65%),inset 0 -1px 0 rgb(13 68 54 / 12%),0 5px 0 #b7cec5,0 12px 24px rgb(16 70 55 / 15%);
  }
}
@media screen and (min-width:1024px) {
  :is(#gb-report-app, .gb-report-full, #gb-dialog, .gb-login-stage) :is(.gb-panel,.gb-patient,.gb-patient-card,.gb-header,.pc-header,.pc-body,.pc-section-box,.pc-column-section-header,.gb-lab-topic-title,.gb-box,.gb-count-summary,.gb-other-report,.gb-special-report,.gb-cdha-section,.gb-locmau-card,.gb-note-card,.gb-report-table-box,.gb-cdha-editor-section,.gb-dialog-box,.gb-dialog-section,.gb-login-shell,.gb-table-scroll,.gb-section-title,.gb-section-title-none,.pc-other-note,.gb-tail-note,.gb-filters,.gb-sticky-savebar,.gb-date-wrapper,.gb-editor-col,table,button,.button) {
    border-radius:0 !important;
    background-image:var(--gb-ui-sheen) !important;
    box-shadow:var(--gb-ui-relief) !important;
  }
  :is(#gb-report-app, .gb-report-full, #gb-dialog, .gb-login-stage) :is(.gb-panel,.gb-header,.gb-patient-card,.gb-dialog-box,.gb-login-shell) {
    box-shadow:var(--gb-ui-panel) !important;
  }
  #gb-report-app .gb-panel { padding:18px; margin-bottom:24px; background-color:#f8fcfa; border:1px solid #c6ded3; }
  #gb-report-app :is(.gb-filters,.gb-sticky-savebar,.gb-date-wrapper) { padding:12px; background-color:#eaf4ef; }
  #gb-report-app .gb-editor-col { background-color:#f5faf7; }
  :is(#gb-report-app,.gb-report-full,#gb-dialog,.gb-login-stage) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),select,textarea) {
    border-radius:0 !important;
    box-shadow:inset 0 1px 3px rgb(15 65 50 / 10%),0 1px 0 #fff !important;
  }
  :is(#gb-report-app,.gb-report-full,#gb-dialog,.gb-login-stage) :is(button,.button):active:not(:disabled) { box-shadow:inset 0 2px 4px rgb(10 50 38 / 20%) !important; }
  :is(#gb-report-app,.gb-report-full,#gb-dialog,.gb-login-stage) :is(button,.button,input,select,textarea):focus-visible { outline:2px solid #128273 !important; outline-offset:2px; }
}
/* Mobile/tablet: no raised edges, gloss or decorative shadows.
   Scope includes presentation mode but never changes its stage scaling. */
@media screen and (max-width:1023px), screen and (hover:none) and (pointer:coarse) {
  :is(#gb-report-app,.gb-report-full,#gb-dialog,.gb-login-stage,body.gb-slide-body),
  :is(#gb-report-app,.gb-report-full,#gb-dialog,.gb-login-stage,body.gb-slide-body) *,
  :is(#gb-report-app,.gb-report-full,#gb-dialog,.gb-login-stage,body.gb-slide-body) *::before,
  :is(#gb-report-app,.gb-report-full,#gb-dialog,.gb-login-stage,body.gb-slide-body) *::after {
    box-shadow:none !important;
    text-shadow:none !important;
  }
  :is(#gb-report-app,.gb-report-full,#gb-dialog,.gb-login-stage,body.gb-slide-body) :is(.gb-panel,.gb-patient,.gb-patient-card,.gb-header,.pc-header,.pc-body,.pc-section-box,.pc-column-section-header,.gb-lab-topic-title,.gb-box,.gb-count-summary,.gb-other-report,.gb-special-report,.gb-cdha-section,.gb-locmau-card,.gb-note-card,.gb-report-table-box,.gb-cdha-editor-section,.gb-dialog-box,.gb-dialog-section,.gb-login-shell,.gb-table-scroll,.gb-section-title,.gb-section-title-none,.pc-other-note,.gb-tail-note,.gb-filters,.gb-sticky-savebar,.gb-date-wrapper,.gb-editor-col,.gb-splash-box,.gb-splash-datetime,.gb-splash-start,.gb-closing-panel,.gb-closing-day,.gb-closing-wish,.gb-slide-clock,.gb-summary-duty,.gb-theme-picker select,table,button,.button,input,select,textarea) {
    background-image:none !important;
    border-radius:0 !important;
  }
  :is(#gb-report-app,.gb-report-full,#gb-dialog,.gb-login-stage) :is(button,.button,input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),select) { min-height:44px; }
  :is(#gb-report-app,#gb-dialog,.gb-login-stage) :is(input,select,textarea) { font-size:16px; }
  :is(#gb-report-app,.gb-report-full,#gb-dialog,.gb-login-stage) :is(button,.button,input,select,textarea):focus-visible { outline:2px solid #128273 !important; outline-offset:2px; }
  #gb-report-app .gb-panel { padding:10px 0; margin-bottom:12px; background:#fff; border:0; }
  #gb-report-app .gb-filters { padding:0; gap:8px; background:transparent; }
  #gb-report-app .gb-filters label { min-width:0; flex:1 1 145px; }
  #gb-report-app .gb-filters input { box-sizing:border-box; }
  #gb-report-app .gb-table-scroll { max-width:100%; overflow-x:auto; }
  #gb-report-app :is(.gb-editor-col,.gb-cdha-editor-section) { min-width:0; box-sizing:border-box; }
  #gb-dialog .gb-dialog-box { max-height:calc(100dvh - 24px); overflow-y:auto; padding:14px; box-sizing:border-box; }
  #gb-dialog .gb-dialog-footer { flex-wrap:wrap; }
  .gb-login-stage { border-radius:0; }
  body.gb-slide-body :is(.gb-splash-logo,.gb-closing-logo,.gb-logo) { filter:none; }
  body.gb-slide-body .gb-splash-box::before,
  body.gb-slide-body .gb-splash-box::after { content:none; }
}
@media screen and (max-width:1023px) {
  body.gb-report-full { width:100%; box-sizing:border-box; margin:0; }
  :is(#gb-report-app,.gb-report-full,#gb-dialog,.gb-login-stage) * { box-sizing:border-box; }
}
@media screen {
  #gb-report-app, #gb-dialog { font-family:"Segoe UI",Arial,sans-serif; }
  :is(#gb-report-app,#gb-dialog) :is(button,input,select,textarea) { font-family:inherit; }
}
@media screen and (min-width:1024px) {
  #gb-report-app .button { min-height:36px; padding:7px 12px; }
}
@media screen and (max-width:520px) {
  .gb-report-full .gb-grid-row { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
