/* Homepage-only office skin. Shared Dock engine, actions and semantic colors
   remain unchanged. Remove this link to restore the liquid-glass preview. */
body.liquid-glass-home.oa-ui {
  background: #f3f6f9 !important;
  color: #213c50;
}
body.liquid-glass-home #portal-shell .portal-sidebar {
  background: #eaf0f5 !important;
  border-right: 1px solid #d3dee7;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-top: 20px;
  padding-bottom: 14px;
}
body.liquid-glass-home #portal-shell .portal-sidebar .brand { padding-bottom: 16px; }
body.liquid-glass-home #portal-shell:not(.sidebar-collapsed) .portal-sidebar nav { gap: 14px; }
body.liquid-glass-home #portal-shell .nav-label { margin: 10px 8px 0; }
body.liquid-glass-home #portal-shell .nav-copy { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
body.liquid-glass-home #portal-shell :is(#portal-announcement-link,#portal-daily-link,#portal-leave-link,#portal-contact-link,#portal-work-link,#portal-vehicle-link,#portal-gate-link) { padding-right: 26px !important; }
body.liquid-glass-home #portal-shell .sidebar-bottom { padding-top: 18px; }
body.liquid-glass-home #portal-shell .nav-item {
  background: linear-gradient(155deg, #ffffffed, #f1f6fbe6) !important;
  border: 1px solid #c6d7e3 !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px #2349690a !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.liquid-glass-home #portal-shell .nav-item.current {
  background: #dceaf5 !important;
  border-color: #81aac6 !important;
  outline: none;
}
body.liquid-glass-home #portal-shell .planned-module:disabled {
  background: #edf2f6 !important;
  border-color: #b8cad6 !important;
  box-shadow: none !important;
}
body.liquid-glass-home #portal-shell .portal-content { padding-left: clamp(18px, 2vw, 32px); padding-right: clamp(18px, 2vw, 32px); }
body.liquid-glass-home #portal-shell .topbar {
  min-height: 64px; height: auto; gap: 8px; padding: 8px 0;
}
body.liquid-glass-home #portal-shell .oa-demo-switch { padding: 4px 0; gap: 8px; font-size: 13px; }
body.liquid-glass-home #portal-shell .oa-demo-switch .role-choice { min-height: 34px; padding: 6px 14px !important; }
body.liquid-glass-home #portal-shell .workbench-intro { padding: 16px 0 14px; gap: 16px; }
body.liquid-glass-home #portal-shell .workbench-intro .eyebrow { margin-bottom: 5px; }
body.liquid-glass-home #portal-shell .workbench-intro h1 { margin-bottom: 6px; }
body.liquid-glass-home #portal-shell .notice-summary { gap: 14px; margin-bottom: 16px; }
body.liquid-glass-home #portal-shell .summary-tile {
  min-height: 64px; padding: 9px 14px !important; gap: 12px;
  background: #fff !important; border: 1px solid #cbd9e3 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 5px #23496908 !important;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.liquid-glass-home #portal-shell .summary-tile[aria-pressed=true] {
  background: #eef6fc !important; border-color: #7da8c5 !important; outline: none;
}
body.liquid-glass-home #portal-shell .summary-icon { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; }
body.liquid-glass-home #portal-shell .notification-panel {
  min-height: 0; margin-bottom: 16px; padding: 16px !important;
  background: #fff !important; border: 1px solid #d3dee7 !important;
  border-radius: 14px !important; box-shadow: 0 2px 5px #23496908 !important;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.liquid-glass-home #portal-shell .notification-panel .section-head { margin-bottom: 12px; gap: 12px; }
body.liquid-glass-home #portal-shell .panel-description { margin-top: 4px; }
body.liquid-glass-home #portal-shell .notice-tools { gap: 12px; }
body.liquid-glass-home #portal-shell .notice-tabs { gap: 6px; }
body.liquid-glass-home #portal-shell :is(.notification-panel button,.reminder-action,.oa-demo-switch button):not(.notice-sort):not(.oa-action-confirm):not(.oa-action-cancel):not(.oa-action-withdraw) {
  min-height: 34px; padding: 6px 12px; border-radius: 10px !important;
  background: linear-gradient(155deg,#ffffffed,#f1f6fbe6) !important;
  border: 1px solid #c6d7e3 !important;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px #2349690a !important;
}
/* Native summary controls belong to data rows, not floating action buttons. */
body.liquid-glass-home #portal-shell summary.reminder-meta { padding: 0; min-height: 32px; background: none !important; border: 0 !important; box-shadow: none !important; }
body.liquid-glass-home #portal-shell :is(.notice-tabs button,.oa-demo-switch button)[aria-pressed=true] { background: #dceaf5 !important; border-color: #81aac6 !important; outline: none; }
body.liquid-glass-home #portal-shell .notice-search input { padding: 8px 12px; min-height: 36px; background: #fff; border-radius: 10px; box-shadow: none; }
body.liquid-glass-home #portal-shell .notice-status { margin-top: 12px; padding-bottom: 8px; }
body.liquid-glass-home #portal-shell .reminder-list { max-height: clamp(240px,calc(100dvh - 330px),600px); padding-right: 8px; }
body.liquid-glass-home #portal-shell .reminder-item { min-height: 44px; padding: 6px 0; gap: 10px; }
body.liquid-glass-home #portal-shell .reminder-full { padding: 8px 10px; background: #f4f7fa; }
body.liquid-glass-home #portal-shell .notice-empty { padding: 24px 12px; }
body.liquid-glass-home #portal-shell .notice-pagination { padding-top: 12px; gap: 10px; }
body.liquid-glass-home #portal-shell footer { margin-top: 18px; }
@media (any-hover:hover) and (any-pointer:fine) {
  body.liquid-glass-home #portal-shell :is(.nav-item,.summary-tile):not(:disabled):hover { box-shadow: 0 7px 16px #23496926 !important; }
}
@media(max-width:760px) {
  body.liquid-glass-home #portal-shell .portal-content { padding-left: 14px; padding-right: 14px; }
  body.liquid-glass-home #portal-shell .summary-tile { min-height: 64px; padding: 10px 12px !important; }
  body.liquid-glass-home #portal-shell :is(.notice-tabs button,.oa-demo-switch button,.reminder-action) { min-height: 40px; }
  body.liquid-glass-home #portal-shell .notice-summary { gap: 10px; }
}
@media print { body.liquid-glass-home.oa-ui { background: #fff !important; } }

/* Compact worklist: keep existing data, filters and disclosure behavior.
   Receipt age is deliberately NOT labelled as time spent at an approval step. */
body.liquid-glass-home #portal-shell .topbar { min-height: 46px; padding: 4px 0; }
body.liquid-glass-home #portal-shell .oa-demo-switch { padding: 3px 0; }
body.liquid-glass-home #portal-shell .workbench-intro { padding: 10px 0; }
body.liquid-glass-home #portal-shell .workbench-intro :is(.eyebrow,#workbench-greeting) { display: none; }
body.liquid-glass-home #portal-shell .workbench-intro h1 { font-size: 22px; margin: 0; }
body.liquid-glass-home #portal-shell .notice-summary { gap: 12px; margin-bottom: 12px; }
body.liquid-glass-home #portal-shell .summary-tile { min-height: 48px; padding: 8px 14px !important; border-radius: 8px !important; }
body.liquid-glass-home #portal-shell .summary-tile > span:not(.summary-icon):not(.summary-arrow) { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; }
body.liquid-glass-home #portal-shell .summary-tile small { margin: 0; font-size: 13px; }
body.liquid-glass-home #portal-shell .summary-tile strong { font-size: 24px; font-variant-numeric: tabular-nums; }
body.liquid-glass-home #portal-shell :is(.summary-icon,.summary-arrow) { display: none; }
body.liquid-glass-home #portal-shell .notification-panel { padding: 12px 14px !important; border-radius: 8px !important; box-shadow: none !important; }
body.liquid-glass-home #portal-shell .notification-panel .section-head { margin-bottom: 8px; }
body.liquid-glass-home #portal-shell .notification-panel h2 { font-size: 16px; }
body.liquid-glass-home #portal-shell .panel-description { display: none; }
/* The four summary controls already provide these exact filters. Keep All as
   an explicit way to leave a category; do not remove events or completed. */
body.liquid-glass-home #portal-shell .notice-tabs [data-notice-filter]:not([data-notice-filter=all]) { display: none; }
body.liquid-glass-home #portal-shell .notice-status { margin-top: 8px; padding-bottom: 6px; }
body.liquid-glass-home #portal-shell .notice-search { max-width: 400px; }
body.liquid-glass-home #portal-shell .reminder-list { max-height: max(240px,calc(100dvh - 292px)); padding-right: 0; scrollbar-gutter: stable; }
body.liquid-glass-home #portal-shell .reminder-item { min-height: 38px; padding: 3px 0; gap: 8px; border-bottom: 1px solid #e6ecf1; }
body.liquid-glass-home #portal-shell .reminder-dot { width: 6px; height: 6px; box-shadow: none; }
body.liquid-glass-home #portal-shell :is(.reminder-action,.reminder-item > button) { min-height: 30px; padding: 4px 8px; border-radius: 6px !important; box-shadow: none !important; }
body.liquid-glass-home #portal-shell .notice-pagination { padding-top: 8px; }
body.liquid-glass-home #portal-shell footer { display: none; }
body.liquid-glass-home #portal-shell .notice-column-head { display: none; }
@media(min-width:761px) {
  body.liquid-glass-home #portal-shell .notification-panel { position: relative; }
  body.liquid-glass-home #portal-shell .notification-panel .section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  body.liquid-glass-home #portal-shell .section-head > div { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  body.liquid-glass-home #portal-shell .notice-tools { padding-right: 0; }
  body.liquid-glass-home #portal-shell .reminder-list { max-height: max(240px,calc(100dvh - 254px)); }
}
@media(min-width:1101px) {
  body.liquid-glass-home #portal-shell { --notice-type: 122px; --notice-time: 170px; --notice-next: 220px; }
  body.liquid-glass-home #portal-shell .notice-column-head { display: grid; grid-template-columns: var(--notice-type) minmax(0,1fr) var(--notice-next) var(--notice-time) 110px; gap: 10px; padding: 8px 0 8px 16px; overflow-y: hidden; scrollbar-gutter: stable; scrollbar-width: thin; background: #f3f6f9; border-bottom: 1px solid #dbe4eb; color: #617587; font-size: 11px; font-weight: 700; }
  body.liquid-glass-home #portal-shell .reminder-item { display: grid; grid-template-columns: 6px minmax(0,1fr) 110px; column-gap: 10px; padding-right: 0; }
  body.liquid-glass-home #portal-shell .reminder-item > :is(button,a) { width: 100%; min-width: 0; box-sizing: border-box; white-space: normal; text-align: center; }
  body.liquid-glass-home #portal-shell summary.reminder-meta { position: relative; display: grid; grid-template-columns: var(--notice-type) minmax(0,1fr) var(--notice-time); gap: 10px; align-items: center; }
  body.liquid-glass-home #portal-shell summary.reminder-meta::after { position: absolute; right: 0; top: 50%; margin: 0; transform: translateY(-50%); }
  body.liquid-glass-home #portal-shell .reminder-meta > strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.liquid-glass-home #portal-shell .reminder-preview { display: grid; grid-template-columns: minmax(0,1fr) var(--notice-next); gap: 10px; font-size: 13px; }
  body.liquid-glass-home #portal-shell .notice-next { font-size: 12px; }
  body.liquid-glass-home #portal-shell .notice-received { display: none; }
  body.liquid-glass-home #portal-shell .reminder-meta time { padding-right: 16px; }
}
body.liquid-glass-home #portal-shell .notice-stage-age { display: block; color: #82510b; font-size: 11px; }
body.liquid-glass-home #portal-shell .notice-age { display: block; color: #617587; font-weight: 400; }
body.liquid-glass-home #portal-shell .needs-action .notice-next { color: #82510b; }
body.liquid-glass-home #portal-shell .stage-result .notice-next { color: #356783; }
body.liquid-glass-home #portal-shell .closed-result .notice-next { color: #28714d; }
/* Only the status label is coloured: stage completion is not case closeout. */
body.liquid-glass-home #portal-shell :is(.stage-result,.closed-result) .reminder-meta > strong {
  justify-self: start; width: fit-content; max-width: 100%; box-sizing: border-box;
  padding: 2px 7px; border: 1px solid; border-radius: 5px; line-height: 1.4;
}
body.liquid-glass-home #portal-shell .stage-result .reminder-meta > strong {
  color: #245b7d; background: #edf5fb; border-color: #c4ddec;
}
body.liquid-glass-home #portal-shell .closed-result .reminder-meta > strong {
  color: #246443; background: #edf8f1; border-color: #c0dfcd;
}
@media(max-width:760px) {
  body.liquid-glass-home #portal-shell .summary-tile { display: flex; }
  body.liquid-glass-home #portal-shell .reminder-item { min-height: 44px; }
  body.liquid-glass-home #portal-shell .reminder-list { max-height: max(240px,calc(100dvh - 340px)); }
  body.liquid-glass-home #portal-shell summary.reminder-meta { display: block; padding-right: 12px; }
  body.liquid-glass-home #portal-shell .reminder-meta > strong { display: block; font-size: 11px; white-space: normal; }
  body.liquid-glass-home #portal-shell .reminder-preview { display: flex; flex-direction: column; gap: 2px; margin: 3px 0; }
  body.liquid-glass-home #portal-shell .notice-next { white-space: normal; }
}

/* First-use notification center: visible instructions, readable next actions. */
body.liquid-glass-home #portal-shell .panel-description { display:block; font-size:13px; line-height:1.6; }
body.liquid-glass-home #portal-shell .reminder-item { padding:10px 0; }
body.liquid-glass-home #portal-shell :is(.notice-case,.notice-next,.reminder-meta>strong) { white-space:normal; overflow-wrap:anywhere; overflow:visible; text-overflow:clip; }
body.liquid-glass-home #portal-shell .reminder-preview { white-space:normal; max-height:none; overflow:visible; }
body.liquid-glass-home #portal-shell .reminder-item > :is(button,a) { min-height:40px; }
body.liquid-glass-home #portal-shell .notice-search { flex:1; }
body.liquid-glass-home #portal-shell .notice-summary .summary-tile small { font-size:14px; }
body.liquid-glass-home #portal-shell .notice-summary .summary-tile small::after { display:block; margin-top:3px; font-size:11px; font-weight:400; color:#617587; }
body.liquid-glass-home #portal-shell [data-notice-filter=review].summary-tile small::after { content:"需要我操作"; }
body.liquid-glass-home #portal-shell [data-notice-filter=tracking].summary-tile small::after { content:"查看未結案進度"; }
body.liquid-glass-home #portal-shell [data-notice-filter=events].summary-tile small::after { content:"查看事件與代理"; }
body.liquid-glass-home #portal-shell [data-notice-filter=completed].summary-tile small::after { content:"查看處理結果"; }
html[lang=vi] body.liquid-glass-home #portal-shell [data-notice-filter=review].summary-tile small::after { content:"Cần tôi xử lý"; }
html[lang=vi] body.liquid-glass-home #portal-shell [data-notice-filter=tracking].summary-tile small::after { content:"Theo dõi việc chưa xong"; }
html[lang=vi] body.liquid-glass-home #portal-shell [data-notice-filter=events].summary-tile small::after { content:"Sự kiện và ủy quyền"; }
html[lang=vi] body.liquid-glass-home #portal-shell [data-notice-filter=completed].summary-tile small::after { content:"Xem kết quả"; }
@media(max-width:760px) { body.liquid-glass-home #portal-shell .notice-tools { flex-wrap:wrap; } body.liquid-glass-home #portal-shell .notice-search { flex-basis:100%; max-width:none; } }

body.liquid-glass-home #portal-shell .notice-tools { justify-content:flex-start; gap:8px; }
body.liquid-glass-home #portal-shell .notice-search { max-width:none; }

body.liquid-glass-home #portal-shell .summary-tile strong { flex-shrink:0; white-space:nowrap; word-break:normal; overflow-wrap:normal; }

/* Notification totals: compact badges matching the sidebar red accents. */
body.liquid-glass-home #portal-shell .notice-summary .summary-tile strong {
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 min-width:30px;height:30px;padding:0 7px;border-radius:999px;
 background:linear-gradient(165deg,#ed4255,#db2e43)!important;
 border:1px solid rgba(255,255,255,.9);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 2px 5px rgba(192,45,68,.2);
 color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:none!important;
 font-size:16px;font-weight:750;
 line-height:1;font-variant-numeric:tabular-nums;flex-shrink:0;
}
@media(max-width:760px){
 body.liquid-glass-home #portal-shell .notice-summary .summary-tile strong {
  min-width:26px;height:26px;padding:0 6px;font-size:14px;
 }
}

/* Keep action and timing content on the same left edge in every row. */
body.liquid-glass-home #portal-shell :is(.notice-column-head,.notice-next,.notice-next .oa-next-action,.reminder-meta time) { text-align: left; }
body.liquid-glass-home #portal-shell .reminder-meta time { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
body.liquid-glass-home #portal-shell .reminder-meta time,
body.liquid-glass-home #portal-shell .reminder-meta time :is(.notice-stage-age,.notice-age,.notice-deadline) { font-size: 12px; }
body.liquid-glass-home #portal-shell .notice-deadline { display: block; }

/* Compact, consistent sorting controls with a visible selected state. */
body.liquid-glass-home #portal-shell .notice-column-head > span { align-self: center; min-width: 0; }
body.liquid-glass-home #portal-shell .notice-sort {
  display: grid; grid-template-columns: minmax(0,1fr) 20px; grid-template-rows: auto auto;
  align-items: center; column-gap: 6px; row-gap: 2px; width: 100%; min-width: 0;
  height: 44px; min-height: 44px; box-sizing: border-box;
  padding: 5px 8px !important; margin: 0 !important;
  border: 1px solid #d3dfe9 !important; border-radius: 7px !important;
  background: #fff !important; color: #526b7f; box-shadow: none !important;
  font: inherit; font-weight: 600; line-height: 1.35; text-align: left;
  cursor: pointer; transform: none !important; transition: border-color .15s, background-color .15s;
}
body.liquid-glass-home #portal-shell .notice-sort > [data-i18n] { white-space: nowrap; }
body.liquid-glass-home #portal-shell .notice-sort-arrow {
  grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 5px; background: #eef3f7; color: #6b8397; font-size: 9px;
}
body.liquid-glass-home #portal-shell .notice-sort-mode {
  grid-column: 1; grid-row: 2; display: block; min-height: 13px;
  color: #718496; font-size: 10px; font-weight: 400; white-space: nowrap;
}
body.liquid-glass-home #portal-shell .notice-sort-mode:empty::before { content: '—'; color: #a0afbb; }
body.liquid-glass-home #portal-shell .notice-sort:hover { border-color: #96b6cd !important; background: #f5f9fc !important; }
body.liquid-glass-home #portal-shell .notice-sort[data-active="true"] { border-color: #8ab4d1 !important; background: #edf5fc !important; color: #245f88; }
body.liquid-glass-home #portal-shell .notice-sort[data-active="true"] .notice-sort-arrow { background: #dbeaf7; color: #246c9b; }
body.liquid-glass-home #portal-shell .notice-sort[data-active="true"] .notice-sort-mode { color: #3b759e; }
body.liquid-glass-home #portal-shell .notice-sort:focus-visible { outline: 2px solid #428ab3; outline-offset: 2px; }
@media(max-width:1100px) {
  body.liquid-glass-home #portal-shell .notice-column-head { display: flex; gap: 16px; padding: 6px 0; }
  body.liquid-glass-home #portal-shell .notice-column-head > span:not(:first-child):not(:nth-child(4)) { display: none; }
}

body.liquid-glass-home #portal-shell .announcement-unread-badge[hidden] { display:none; }

/* Desktop sidebar density: compact rows, unchanged touch targets on phones. */
@media(min-width:761px){
 html body.liquid-glass-home #portal-shell:not(.sidebar-collapsed) #portal-sidebar{padding-top:12px;padding-bottom:8px}
 html body.liquid-glass-home #portal-shell:not(.sidebar-collapsed) #portal-sidebar .brand{padding-bottom:8px}
 html body.liquid-glass-home #portal-shell:not(.sidebar-collapsed) #portal-sidebar nav{row-gap:6px}
 html body.liquid-glass-home #portal-shell:not(.sidebar-collapsed) #portal-sidebar .nav-label{margin:6px 8px 0}
 html body.liquid-glass-home #portal-shell:not(.sidebar-collapsed) #portal-sidebar nav>.nav-item,
 html body.liquid-glass-home #portal-shell:not(.sidebar-collapsed) #portal-sidebar .sidebar-bottom>.nav-item{min-height:36px!important;padding:6px 12px!important;border-radius:10px!important}
 html body.liquid-glass-home #portal-shell:not(.sidebar-collapsed) #portal-sidebar :is(#portal-announcement-link,#portal-daily-link,#portal-leave-link,#portal-contact-link,#portal-work-link,#portal-vehicle-link,#portal-gate-link){padding-right:26px!important}
 html body.liquid-glass-home #portal-shell:not(.sidebar-collapsed) #portal-sidebar .shell-sub-menu{gap:4px;padding-top:2px;padding-bottom:2px}
 html body.liquid-glass-home #portal-shell:not(.sidebar-collapsed) #portal-sidebar .shell-sub-item{min-height:30px!important;padding:4px 8px!important;border-radius:8px!important}
 html body.liquid-glass-home #portal-shell:not(.sidebar-collapsed) #portal-sidebar .sidebar-bottom{padding-top:8px}
}

/* Persistent one-click icon rail over the existing sidebar state. */
#portal-sidebar #sidebar-rail-toggle{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:32px;margin:0 0 10px;padding:4px 8px;border:1px solid #c6d7e3;border-radius:8px;background:#f8fbfd;color:#365f7c;cursor:pointer}
#sidebar-rail-toggle .rail-toggle-icon{font-size:24px;line-height:1;font-weight:700}
#sidebar-rail-toggle .rail-toggle-copy{font-size:12px}
@media(min-width:761px){
 html body #portal-shell.sidebar-collapsed{--sidebar-width:76px}
 html body #portal-shell.sidebar-collapsed #portal-sidebar{padding-left:8px!important;padding-right:8px!important;overflow-x:hidden}
 html body #portal-shell.sidebar-collapsed #portal-sidebar .brand{justify-content:center;padding:0 0 10px!important;min-width:0}
 html body #portal-shell.sidebar-collapsed #portal-sidebar .brand-logo-frame{width:46px!important;min-width:46px!important;height:46px!important;flex:0 0 46px!important}
 html body #portal-shell.sidebar-collapsed #portal-sidebar .brand-logo-frame img{max-width:100%;height:auto}
 html body #portal-shell.sidebar-collapsed #sidebar-rail-toggle{width:46px;margin:0 auto 8px;min-height:32px}
 html body #portal-shell.sidebar-collapsed #sidebar-rail-toggle .rail-toggle-copy{display:none}
 html body #portal-shell.sidebar-collapsed #portal-sidebar nav{padding-top:0!important;gap:8px!important}
 html body #portal-shell.sidebar-collapsed #portal-sidebar .nav-item{min-height:42px!important}
}
@media(max-width:760px){#portal-sidebar #sidebar-rail-toggle{display:none}}
