/* Seosong pharmacy workbench. Native CSS, shared with the existing v47 UI. */
:root {
  --app-font: 'Pretendard Variable', Pretendard, 'Malgun Gothic', sans-serif;
  --page-title-size: 26px;
  --brand: #00593d; --brand-dark: #00432e; --ink: #19372b;
  --page: #f4f7f5; --muted: #60736a; --mint: #e8f2ec; --line: #dbe5df;
  --sidebar-width: 236px; --surface: #fff; --radius: 10px;
}
body { font-family: var(--app-font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--page); word-break: keep-all; overflow-wrap: break-word; }
button, input, select, textarea { font-family: inherit; }
.ui-icon { display: inline-block; flex: 0 0 auto; width: 19px; height: 19px; background: currentColor; mask: var(--icon) center / contain no-repeat; -webkit-mask: var(--icon) center / contain no-repeat; vertical-align: middle; }
.sidebar { display: flex; flex-direction: column; width: var(--sidebar-width); padding: 0; background: #fff; overflow: hidden; z-index: 60; }
.sidebar-brand { position: relative; flex-shrink: 0; padding: 27px 23px 21px; border-bottom: 1px solid var(--line); }
.sidebar .logo { display: block; padding: 0; text-align: left; }
.sidebar .logo img { width: 177px; height: auto; }
.sidebar .logo .brand { margin: 14px 0 0; font-size: 12px; font-weight: 600; color: #496455; }
.brand-sep { color: #96a89c; padding: 0 7px; }
.nav-scroll { padding: 17px 12px 16px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: #d2dfd7 transparent; }
.navitem { display: flex; gap: 11px; align-items: center; padding: 9px 12px; min-height: 39px; margin: 1px 0; font-size: 14px; line-height: 1.4; color: #50675a; border-radius: 7px; }
.navitem .ui-icon { width: 18px; height: 18px; opacity: .9; }
.navitem.on, .navitem.navsub.on { background: #e8f2ec; color: var(--brand-dark); font-weight: 680; box-shadow: none; }
.navitem.on::after { content: ''; width: 4px; height: 16px; border-radius: 3px; background: var(--brand); margin-left: auto; flex-shrink: 0; }
.navitem:hover:not(.disabled):not(.on) { background: #f3f7f4; color: var(--brand); }
.navsec { padding: 18px 12px 7px; margin: 0; border: 0; color: #6c7f72; font-size: 11px; font-weight: 650; letter-spacing: .035em; }
.navitem.navset { margin-top: 0; border: 0; padding: 9px 12px; }
.nav-parent { display: flex; align-items: center; gap: 2px; }
.nav-parent > .navitem { flex: 1; min-width: 0; }
.nav-expand { display: grid; place-items: center; width: 28px; height: 30px; min-height: 0; padding: 0; border: 0; background: transparent; color: #6e8476; }
.nav-expand .ui-icon { width: 15px; height: 15px; }
.nav-expand[aria-expanded="true"] .ui-icon { transform: rotate(180deg); }
.nav-subgroup { margin: 3px 0 7px 22px; padding-left: 7px; border-left: 1px solid #d7e4db; }
.navitem.navsub { min-height: 31px; padding: 6px 12px; font-size: 12px; }
.sidebar-support { padding: 9px 12px 13px; border-top: 1px solid var(--line); background: #fbfdfb; flex-shrink: 0; }
.sidebar-support .navsec { padding-top: 3px; padding-bottom: 7px; }
.support-links { display: flex; gap: 4px; }
.support-links .navitem { min-height: 33px; gap: 6px; padding: 7px 8px; font-size: 11px; white-space: nowrap; }
.support-links .ui-icon { width: 15px; height: 15px; }
.support-links .navitem.on::after { display: none; }
.app-header { position: sticky; top: 0; z-index: 40; min-height: 67px; margin-left: var(--sidebar-width); padding: 12px 32px; border-top: 0; background: #fff; gap: 16px; }
.header-context, .account-menu { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: nowrap; }
.app-header-title { font-size: 13px; font-weight: 700; white-space: nowrap; }
.app-header-title > span { margin-left: 8px; font-size: 12px; color: #77897e; }
.header-page { padding-left: 14px; border-left: 1px solid var(--line); font-size: 12px; color: #5b7263; white-space: nowrap; }
.account-menu { font-size: 12px; gap: 9px; }
.header-shortcut { display: inline-flex; gap: 6px; align-items: center; padding: 6px 13px; margin-right: 6px; color: #57705f; }
.header-shortcut .ui-icon { width: 17px; height: 17px; }
.account-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--brand); background: var(--mint); }
.account-avatar .ui-icon { width: 16px; height: 16px; }
#account-name { max-width: 220px; font-size: 12px; }
#web-logout { border: 0; background: transparent; color: #647a6c; font-size: 11px; padding: 5px 8px; min-height: 28px; }
.content { padding: 30px 32px 48px; margin-left: var(--sidebar-width); min-width: 0; }
.content > h1, .content > .page-heading, .content > .dash2 { max-width: 1660px; }
h1 { color: #183e2b; font-weight: 730; font-size: var(--page-title-size); line-height: 1.25; letter-spacing: -.045em; margin: 0 0 9px; }
.content > h1 { margin-bottom: 11px; }
.page-description { margin: 0; color: #697e6e; font-size: 13px; line-height: 1.6; }
.content > .page-description { margin: 0 0 26px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-kicker { font-size: 11px; color: var(--brand); font-weight: 700; margin: 0 0 9px; }
.heading-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.overview-date { font-size: 12px; color: #68806f; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 33px; border: 1px solid #cfdcd3; border-radius: 7px; padding: 6px 12px; font-size: 12px; font-weight: 570; line-height: 1.5; color: #385943; background: #fff; white-space: nowrap; }
button:hover, .btn:hover { background: #edf5ef; border-color: #9ab3a3; }
button.primary, .btn.primary { color: #fff; background: var(--brand); border-color: var(--brand); }
button.primary:hover, .btn.primary:hover { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.primary { min-height: 39px; padding: 8px 15px; }
button:disabled { opacity: .5; cursor: not-allowed; }
input[type=text], input[type=number], input[type=date], input[type=password], input[type=search], select, textarea { border-color: #cddbd2; border-radius: 7px; color: #234332; font-size: 13px; min-height: 34px; padding: 7px 10px; accent-color: var(--brand); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 15px; height: 15px; }
input::placeholder, textarea::placeholder { color: #566b5e; opacity: 1; }
input[type=search], .toolbar input[type=text] { border-color: #82978a; }
:is(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.toolbar { gap: 10px; align-items: center; margin-bottom: 15px; }
.content > .toolbar, #tab-list > .toolbar, #sv-drug > .toolbar { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 17px 18px; }
.checkline { font-size: 12px; gap: 5px; color: #536c5c; }
.count-info { font-weight: 650; font-size: 12px; }
.filters { padding: 20px; gap: 15px; border-color: var(--line); border-radius: 10px; }
.tablewrap { border-color: var(--line); border-radius: 10px; background: #fff; max-height: calc(100dvh - 275px); scrollbar-width: thin; }
table.grid { font-variant-numeric: tabular-nums; }
table.grid th { padding: 11px 12px; font-size: 12px; color: #3e5949; font-weight: 650; background: #edf3ef; border-bottom: 1px solid #d5e2d9; word-break: keep-all; line-height: 1.5; }
table.grid td { padding: 10px 12px; color: inherit; border-bottom: 1px solid #edf1ee; font-size: 13px; line-height: 1.5; }
table.grid tbody tr:hover { background: #f2f8f4; }
table.grid button, #tbl button { font-size: 11px; min-height: 25px; height: auto; padding: 2px 8px; }
table.grid input:not([type=checkbox]), table.grid select { height: 29px; min-height: 29px; font-size: 12px; }
.tablewrap :is(button, a, input, select, textarea, [tabindex]):focus-visible { outline-offset: -2px; }
.inactive-row { color: #798a7e; background: #f9fbf9; }
.muted { color: #697d70; }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 22px; box-shadow: none; }
.tabs { border-bottom: 1px solid var(--line); gap: 4px; margin: 21px 0 19px; flex-wrap: wrap; }
.tabs .tab, .d2-tab { min-height: 40px; padding: 10px 16px; border-radius: 0; font-size: 13px; color: #6a7d70; }
.tabs .tab.on, .d2-tab.active { color: var(--brand); background: transparent; border: 0; border-bottom: 2px solid var(--brand); margin-bottom: -1px; }
.badge { padding: 2px 7px; font-weight: 550; font-size: 10px; border-radius: 4px; }
.badge.gray { color: #66796c; background: #edf1ee; }
.badge.sky { background: #e8f2f7; color: #2e6581; }
.badge.lime, .badge.green { background: #eaf3e4; color: #3e7029; }
.badge.red { background: #fbece8; color: #a54130; }
.badge.orange { background: #fff2dd; color: #865c1f; }
.drug-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 2px 9px; border: 1px solid; border-radius: 999px; font-family: inherit; font-size: 11.5px; font-weight: 650; line-height: 1.4; white-space: nowrap; vertical-align: middle; }
.drug-pill--psychotropic { color: #701b87; background: #f3ddff; border-color: #cc8de1; }
.drug-pill--cold { color: #07578a; background: #def0ff; border-color: #83b9e0; }
.drug-pill--light { color: #795009; background: #fff0bf; border-color: #d9b653; }
.drug-pill--narcotic { color: #9c2140; background: #ffe1e7; border-color: #e599aa; }
.drug-pill--frozen { color: #344c91; background: #e4eaff; border-color: #9cabdc; }
.modal-bg { background: rgb(17 41 28 / .36); padding: 16px; }
.modal { padding: 26px; border-radius: 14px; box-shadow: 0 18px 70px rgb(12 44 24 / .16); }
.modal h3 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 22px; }
.modal .frow { margin-bottom: 16px; gap: 7px; }
.modal .frow > span { color: #45654f; font-size: 12px; }
.modal input { max-width: 100%; }
.modal .actions { gap: 8px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 17px; }
.modal-error { color: #94392f; }
.toast { background: #164832; box-shadow: 0 6px 22px rgb(16 48 30 / .12); font-size: 13px; border-radius: 9px; padding: 12px 20px; }
.detail-view, .detail-form { background: #fff; padding: 24px; border: 1px solid var(--line); border-radius: 10px; max-width: none; }
.detail-view h2, .detail-form h2 { color: #214a33; font-weight: 670; font-size: 15px; padding-top: 19px; margin-bottom: 10px; }
.detail-view table.kv th { background: #f1f5f2; color: #5b7564; }
.detail-view table.kv th, .detail-view table.kv td { padding-top: 9px; padding-bottom: 9px; }
.detail-aside { border-color: var(--line); }
.sec-title { font-weight: 680; font-size: 17px; margin: 25px 0 11px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 10px; }
.section-heading h2 { font-size: 15px; font-weight: 690; margin: 0; letter-spacing: -.02em; }
.section-heading > a { font-size: 11px; font-weight: 550; color: #68826e; }
.dash2 { max-width: 1660px; }
.dashboard-heading { margin-bottom: 24px; }
.dashboard-overview { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 28px; overflow: hidden; }
.overview-card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 21px 23px 18px; text-align: left; gap: 0; background: #fff; white-space: normal; }
.overview-card:last-child { border-right: 0; }
.overview-card:hover { background: #f3f8f4; }
.overview-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #526d5c; font-weight: 600; }
.overview-label .ui-icon { width: 17px; height: 17px; }
.overview-value { font-size: 34px; line-height: 1.25; font-weight: 700; letter-spacing: -.045em; color: #1d4830; margin: 11px 0 8px; font-variant-numeric: tabular-nums; }
.overview-value small { margin-left: 5px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: #7a8d7f; }
.overview-foot { display: flex; justify-content: space-between; gap: 8px; color: #718478; font-size: 10px; line-height: 1.5; }
.overview-foot > span:last-child { font-size: 15px; }
.overview-card.attention .overview-value { color: #ad4b32; }
.overview-card.attention .overview-label .ui-icon { color: #ad4b32; }
.overview-status { font-size: 13px; padding: 16px 18px; background: #edf4ef; border-radius: 9px; margin: 0 0 20px; }
.overview-status[data-error="1"] { color: #983f2d; background: #fbede8; }
.overview-status button { margin-left: 14px; }
.dash-layout { display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: 23px; align-items: start; }
.dash-primary, .dash-agenda { min-width: 0; }
.dash2 .d2-top4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.dash2 .d2-top .panel { padding: 17px 16px; min-height: 212px; height: 212px; border-radius: 10px; }
.dash2 .d2-top h3 { font-size: 13px; line-height: 1.6; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.dash2 .d2-top h3 button { margin-left: auto; min-height: 24px; border: 0; background: #f1f6f2; color: #5c7865; }
.dash2 .d2-top h3 .badge { font-size: 9px; }
.dash2 .d2-scroll { border: 0; border-radius: 0; }
.dash2 .d2-scroll table.grid { white-space: normal; }
.dash2 .d2-scroll table.grid td { font-size: 11px; padding: 8px 5px; }
.dash2 .d2-scroll table.grid td:first-child { padding-left: 0; }
.dash2 .d2-scroll table.grid td:last-child { padding-right: 0; }
/* Keep names readable within the existing three-card dashboard layout. */
.dash2 :is(#d2-tags, #d2-tags2) .d2-scroll table.grid,
.dash2 :is(#d2-tags, #d2-tags2) .d2-scroll tbody { display: block; width: 100%; min-width: 0; }
.dash2 :is(#d2-tags, #d2-tags2) .d2-scroll tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; padding: 9px 2px; border-bottom: 1px solid #e4ece6; }
.dash2 :is(#d2-tags, #d2-tags2) .d2-scroll tr:last-child { border-bottom: 0; }
.dash2 :is(#d2-tags, #d2-tags2) .d2-scroll table.grid td { min-width: 0; width: auto !important; padding: 0; border: 0; line-height: 1.55; }
.dash2 :is(#d2-tags, #d2-tags2) .d2-scroll td:first-child { grid-column: 1; grid-row: 1; }
.dash2 :is(#d2-tags, #d2-tags2) .d2-scroll .d2-tagbadge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.dash2 :is(#d2-tags, #d2-tags2) .d2-scroll td[data-drug] { grid-column: 1 / -1; grid-row: 2; color: #234b33; font-size: 13px; font-weight: 550; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.dash2 #d2-tags .d2-scroll td:last-child { grid-column: 2; grid-row: 1; white-space: nowrap; font-size: 12px; }
.dash2 #d2-tags2 .d2-scroll td:last-child { grid-column: 1 / -1; grid-row: 3; max-width: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #566b5e; }
.dash2 :is(#d2-tags, #d2-tags2) .d2-scroll :is(td[data-drug], .d2-tagbadge):focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 3px; }
.d2-ntrow { padding: 9px 0; font-size: 12px; line-height: 1.6; border-color: #edf2ee; }
.d2-ntw { font-size: 10px; }
.d2-ntrow input { flex-shrink: 0; }
.dash2 #d2-cal { padding: 19px 18px; border-radius: 10px; }
#d2-cal h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; color: #34593f; font-size: 14px; }
#d2-cal h3 > span { margin: auto; }
#d2-cal h3 button { min-height: 25px; border: 0; background: #f4f7f4; }
.d2-cal th { padding: 6px 0; font-size: 10px; color: #738878; }
.d2-cal td { height: 34px; padding: 6px 4px; border: 0; text-align: center; font-size: 11px; vertical-align: middle; border-radius: 5px; }
.d2-cal td b { font-weight: 500; }
.d2-cal td.empty { background: transparent; }
.d2-cal td.today, .d2-cal td.today:hover { background: var(--brand); color: #fff; }
.d2-cal td.today b { color: #fff; font-weight: 700; }
.d2-cal td.sel { outline: 1px solid var(--brand); outline-offset: -1px; }
.d2-cal td.ev:not(.today) { background: #fff6e6; }
.d2-cal td:hover:not(.today) { background: #e9f3ec; }
.d2-cal td[data-date]:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.d2-legend { font-size: 9px; line-height: 1.5; flex-wrap: wrap; gap: 4px; padding: 10px 0 0; }
.d2-upcoming { margin-top: 19px; border-top: 1px solid var(--line); padding-top: 15px; max-height: 320px; overflow-y: auto; }
.d2-upcoming > b { font-size: 12px; }
.d2-upcoming > button { min-height: 22px; font-size: 10px; border: 0; color: #5d7c67; }
.d2-uprow { padding: 8px 0; gap: 5px; border-color: #eef3ef; font-size: 11px; }
.d2-updt { color: #6e8274; font-size: 10px; min-width: 29px; }
.d2-uplabel { white-space: normal; overflow-wrap: anywhere; }
.d2-uprow .badge { font-size: 9px; padding: 1px 4px; }
.dashboard-guide { display: flex; align-items: center; gap: 11px; margin-top: 16px; padding: 17px 16px; background: #e8f1eb; border: 1px solid #d9e7dd; border-radius: 10px; }
.dashboard-guide strong { display: block; font-size: 12px; font-weight: 650; }
.dashboard-guide small { display: block; margin-top: 5px; font-size: 10px; color: #67806d; }
.dashboard-guide > span:last-child { margin-left: auto; }
.d2-quick { background: transparent; border: 1px dashed #c5d7ca; border-radius: 8px; margin: 14px 0 22px; }
.d2-quick .d2-foldhead { padding: 11px 14px; font-size: 12px; }
.d2-quick.open .d2-foldhead { background: #e8f2ec; }
.dashboard-review { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.d2-tabbar { display: flex; gap: 12px; padding: 0 18px; margin: 0; border-bottom: 1px solid var(--line); }
.d2-tab { padding: 14px 8px; border-radius: 0; border-bottom: 2px solid transparent; min-height: 47px; }
.d2-tabbody { background: transparent; padding: 19px 18px; border: 0; }
.d2-sechead { margin: 17px 0 9px; color: #45644e; font-size: 11px; font-weight: 680; letter-spacing: .01em; }
.d2-sechead:first-child { margin-top: 0; }
.d2-foldgrid, .d2-foldgrid4 { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.d2-foldgrid3 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.d2-fold { background: #fbfdfb; border: 1px solid #e0e8e2; border-radius: 7px; min-width: 0; }
.d2-fold.warn { background: #fffdf8; border-color: #ebe4d6; }
.d2-fold.danger { background: #fffaf8; border-color: #ecded8; }
.d2-fold .d2-foldhead { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 83px; padding: 12px 13px; gap: 6px; }
.d2-foldtitle { font-size: 11px; white-space: normal; overflow: visible; padding-right: 10px; line-height: 1.4; }
.d2-foldsub { display: block; font-size: 10px; line-height: 1.4; white-space: normal; overflow: visible; color: #687e6e; }
.d2-foldcnt { margin: auto 0 0; font-size: 23px; line-height: 1.2; color: #425e4c; font-weight: 650; }
.d2-fold.warn .d2-foldcnt { color: #8a682e; }
.d2-fold.danger .d2-foldcnt { color: #ad5138; }
.d2-foldarrow { position: absolute; right: 10px; bottom: 12px; color: #718575; }
.d2-fold.open .d2-foldhead { background: #e9f3ec; }
.d2-foldtitle select { min-height: 21px; height: 21px; font-size: 10px; padding: 0 2px; margin-left: 3px; }
.d2-foldpanel { border: 1px solid #c8d9cc; border-radius: 8px; margin: 8px 0; overflow: hidden; }
.d2-ptitle { font-size: 12px; padding: 11px 14px; background: #edf5ef; color: #3b5f46; border: 0; }
.d2-pbody { padding: 12px; }
.d2-pbody .tablewrap { border-radius: 6px; }
.d2-pbody table.grid td { padding: 9px; }
.d2-pbody table.grid th { padding: 9px; }
.d2-quickbody { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
.st-steps { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 19px; }
.st-step { color: #647f6c; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; font-size: 12px; cursor: pointer; }
.st-step b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: #edf3ef; color: #476451; font-size: 11px; }
.st-step.on { color: #fff; background: var(--brand); border-color: var(--brand); }
.st-step.on b { color: var(--brand); background: #fff; }
.st-step.done { color: #3e6a4d; background: #ecf4ee; }
.st-step.done b { background: #d6e7dc; }
.menu-toggle, .nav-close, .nav-backdrop { display: none; }
@media (min-width: 1850px) { .content { padding-inline: 44px; } .dash-layout { grid-template-columns: minmax(0, 1fr) 340px; } .dash2 .d2-top .panel { height: 228px; } }
@media (max-width: 1420px) { :root { --sidebar-width: 220px; } .sidebar-brand { padding-inline: 20px; } .content { padding: 26px 24px 44px; } .app-header { padding-inline: 24px; } .dash-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; } .dash2 .d2-top4 { grid-template-columns: repeat(2,minmax(0,1fr)); } #d2-notices { grid-column: 1 / -1; } .dash2 .d2-top #d2-notices { height: 138px; min-height: 138px; } .dash2 .d2-top .panel { height: 180px; min-height: 180px; } .d2-foldgrid, .d2-foldgrid4 { grid-template-columns: repeat(3,minmax(0,1fr)); } .overview-card { padding: 19px 17px 16px; } }
@media (max-width: 1180px) { .app-header-title > span, .header-page { display: none; } .dash-layout { grid-template-columns: minmax(0,1fr); } .dash-agenda { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px 20px; } .dash-agenda .section-heading { grid-column: 1 / -1; margin: 0; } .dashboard-guide { align-self: start; margin: 0; } .dash2 .d2-top4 { grid-template-columns: repeat(3,minmax(0,1fr)); } #d2-notices { grid-column: auto; } .dash2 .d2-top #d2-notices, .dash2 .d2-top .panel { height: 205px; min-height: 205px; } .heading-actions { flex-direction: column; align-items: flex-end; gap: 8px; } .overview-value { font-size: 29px; } .overview-label { font-size: 11px; } .overview-label .ui-icon { display: none; } }
@media (max-width: 900px) {
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 254px; max-height: none; transform: translateX(-100%); visibility: hidden; }
  body.nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .sidebar .logo { max-width: none; margin: 0; }
  .sidebar .logo img { width: 173px; }
  .sidebar-brand { padding: 24px 22px 18px; }
  .app-header, .content { margin-left: 0; }
  .app-header { min-height: 62px; padding: 10px 20px; flex-wrap: nowrap; }
  .content { padding: 25px 22px 40px; }
  .menu-toggle { display: inline-flex; padding: 4px; min-height: 30px; border: 0; background: transparent; }
  .nav-close { display: grid; position: absolute; right: 9px; top: 10px; width: 26px; height: 26px; min-height: 0; padding: 4px; border: 0; }
  .nav-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 55; border: 0; padding: 0; border-radius: 0; background: rgb(12 36 22 / .32); }
  body.nav-open { overflow: hidden; }
  .sidebar .navitem { min-height: 42px; }
  .overview-card { padding: 17px 15px; }
  .overview-foot { font-size: 10px; }
  .support-links .navitem { min-height: 36px; }
}
@media (max-width: 600px) {
  :root { --page-title-size: 25px; }
  #tab-env > div > div { min-width: 0 !important; flex-basis: 100% !important; }
  .content { padding: 22px 16px 34px; }
  .app-header { padding-inline: 13px; }
  .account-menu { gap: 5px; }
  .account-avatar, .header-shortcut, .overview-date { display: none; }
  #account-name { max-width: 132px; font-size: 10px; }
  #web-logout { font-size: 10px; padding-inline: 4px; }
  .header-context { gap: 7px; }
  .app-header-title { font-size: 12px; }
  h1 { font-size: var(--page-title-size); }
  .page-heading { flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
  .page-description { font-size: 12px; }
  .heading-actions { align-items: flex-start; }
  .heading-actions .btn { min-height: 34px; }
  .dashboard-overview { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 21px; }
  .overview-card:nth-child(2) { border-right: 0; }
  .overview-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .overview-label .ui-icon { display: inline-block; width: 15px; height: 15px; }
  .overview-value { font-size: 31px; }
  .overview-foot { font-size: 10px; }
  .dash2 .d2-top4 { grid-template-columns: minmax(0,1fr); }
  .dash2 .d2-top #d2-notices { min-height: 130px; height: 150px; }
  .dash2 .d2-top .panel { min-height: 170px; height: 190px; }
  .dash-agenda { display: block; }
  .dash-agenda .section-heading { margin-bottom: 12px; }
  .dashboard-guide { margin-top: 14px; }
  .d2-foldgrid, .d2-foldgrid3, .d2-foldgrid4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .d2-tabbar { padding-inline: 10px; gap: 8px; }
  .d2-tab { padding-inline: 6px; font-size: 12px; }
  .d2-tabbody { padding: 16px 12px; }
  .toolbar { gap: 9px; }
  .toolbar input[type=text] { max-width: 100%; }
  .content > .toolbar, #tab-list > .toolbar, #sv-drug > .toolbar { padding: 14px; }
  .tablewrap { max-height: 65dvh; }
  .tablewrap table { min-width: 620px; }
  .modal { padding: 22px 18px; max-height: 88dvh; }
  .detail-view, .detail-form { padding: 16px; }
  .panel { padding: 17px; }
}
@media (prefers-reduced-motion: no-preference) { .navitem, button, .btn { transition: background-color 120ms ease, border-color 120ms ease; } .sidebar { transition: transform 160ms ease; } }
@media print { .sidebar, .app-header, .nav-backdrop { display: none !important; } .content { margin: 0; padding: 0; } .tablewrap { max-height: none; overflow: visible; } }
