/* Default controls for dialogs without a feature-specific button style. */
:where(dialog button, #notificationGuide button) {
  box-sizing:border-box;min-height:40px;padding:8px 16px;
  border:2px solid #a8cde5;border-radius:8px;background:#fff;color:#245472;
  font:inherit;font-weight:700;line-height:1.4;cursor:pointer;
}
:where(dialog button, #notificationGuide button):focus-visible {outline:3px solid #0878cc;outline-offset:3px;}
:where(dialog button, #notificationGuide button):disabled {opacity:.55;cursor:not-allowed;}
:root {
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  color: #07356f;
  background: #eff9ff;
  --blue: #157ef0;
  --deep: #063f82;
  --teal: #16c8c0;
  --line: #c8e3f5;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #eff9ff;
}

header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 3vw;
  color: #073bb7;
  background: #fff;
  border-bottom: 1px solid #d8ebf8;
  box-shadow: 0 4px 16px #2e80b414;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
}
.brand-name-short, .date-short { display: none; }

.tagline {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .03em;
}

.menu-toggle,
.app-user-meta { display: none; }

.company-logo {
  display: block;
  object-fit: contain;
  visibility: hidden;
}
.company-logo.logo-ready { visibility: visible; }

.header-logo { width: 70px; height: 42px; }
.login-logo { width: 132px; height: 74px; margin: 0 auto 10px; }
.change-logo { width: 92px; height: 58px; }

#ownerAccess, #ownerBack { width: 100%; margin-top: 12px; min-height: 40px; border:2px solid #85baff; border-radius: 7px; background: #f1f8ff; color: #0847a6; font: inherit; cursor: pointer; }
#ownerRecoverLink { width: 100%; margin-top: 10px; border: 0; background: transparent; color: #0754c5; text-decoration: underline; font: inherit; cursor: pointer; }
#ownerForm h2 { margin: 8px 0 18px; color: #0744ae; }
#setupForm h2 { margin: 8px 0 12px; color: #0744ae; }
#setupForm .setup-lead { margin: 0 0 14px; font-size: 14px; line-height: 1.6; }

main {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 132px);
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 34%, #fff 0 18%, transparent 43%),
    linear-gradient(160deg, #f8fdff 0%, #e9f8ff 44%, #fafdff 100%);
}

main::before,
main::after {
  position: absolute;
  left: -8%;
  width: 120%;
  height: 280px;
  content: "";
  border-radius: 50%;
  border-top: 74px solid #d7efff55;
  transform: rotate(4deg);
  pointer-events: none;
}

main::before { top: 140px; }
main::after { bottom: -125px; transform: rotate(-5deg); border-color: #bce9ff55; }

.card,
.dashboard {
  width: min(760px, 94vw);
  padding: 34px;
  background: #fffffff2;
  border:2px solid #d9eaf5;
  border-radius: 16px;
  box-shadow: 0 15px 45px #0d6ba31a;
}

.login-stage {
  position: relative;
  z-index: 1;
  display: block;
  width: min(1380px, 96vw);
  min-height: 720px;
}

.login-column {
  display: grid;
  width: min(650px, 94vw);
  margin: 0 auto;
  gap: 18px;
}

.login-card {
  width: 100%;
  padding: 40px 44px 34px;
}

.logo-block {
  margin-bottom: 24px;
  text-align: center;
}

.logo-block h1 {
  margin: 4px 0;
  color: #0735b6;
  font-size: 29px;
  letter-spacing: .04em;
}

form { display: grid; gap: 17px; }

label {
  display: grid;
  gap: 8px;
  color: #07356f;
  font-weight: 800;
}

input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  color: #092451;
  font-size: 17px;
  background: #fff;
  border:2px solid #a9d0f3;
  border-radius: 9px;
  outline: none;
}

input:focus {
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 3px #138de41c;
}

.password { display: flex; }
.password input { flex: 1; border-radius: 9px 0 0 9px; }

.show {
  width: 82px;
  color: #073b87;
  font-weight: 800;
  background: #fff;
  border:2px solid #a9d0f3;
  border-left: 0;
  border-radius: 0 9px 9px 0;
}

.primary {
  height: 64px;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(100deg, #2185f5, #17ccc1);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 9px 22px #168bd32d;
}

.primary span { margin-right: 12px; }
.primary:disabled { opacity: .55; }

.system-notice {
  padding: 12px 20px 8px;
  background: #fffffff2;
  border:2px solid #d9eaf5;
  border-radius: 14px;
  box-shadow: 0 12px 34px #0d6ba316;
}

.notice-title {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid #cce2f2;
}

.notice-title h2 { flex: 1; margin: 0; color: #053fb8; font-size: 20px; }
.notice-title button { color: #053fb8; font-weight: 800; background: transparent; border: 0; }
.notice-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #ff8a00; background: #fff1dc; border-radius: 50%; }
.system-notice a { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 9px 8px; color: #063da7; text-decoration: none; border-bottom: 1px solid #d7e8f4; }
.system-notice a:last-child { border-bottom: 0; }

.message-panel {
  position: absolute;
  top: 115px;
  left: calc(50% + 390px);
  width: 330px;
  padding: 20px 0;
}

.message-panel h2 { margin: 0; color: #0651b3; font-size: 40px; font-weight: 900; font-style: italic; line-height: 1.45; }
.message-panel h2 span { color: transparent; background: linear-gradient(90deg, #0866dc, #11bdb4); background-clip: text; }
.accent-line { width: 54px; height: 3px; margin: 26px 0; background: #11aeda; }
.message-panel p { color: #5074a8; font-size: 20px; line-height: 1.8; }

.password-change-stage {
  position: relative;
  z-index: 1;
  width: min(690px, 94vw);
}

.password-change-card { width: 100%; padding: 38px 46px 42px; }

.step-heading {
  display: flex;
  gap: 22px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #d8e9f4;
}

.step-heading h1 { margin: 4px 0 0; color: #0735a5; font-size: 28px; }
.step-label { color: #158bba; font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.lead { margin: 20px 0 24px; color: #526f91; line-height: 1.7; }

.rules {
  padding: 16px 20px;
  background: #f2fbff;
  border:2px solid #d8edf7;
  border-radius: 10px;
}

.rules h2 { margin: 0 0 6px; color: #0a5688; font-size: 15px; }
.rules ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin: 0; padding-left: 21px; color: #526f91; font-size: 14px; line-height: 1.7; }
.admin-rule { margin: 8px 0 0; color: #315d86; font-size: 13px; font-weight: 700; }
.password-status { min-height: 20px; font-size: 13px; font-weight: 800; text-align: right; transition: color .2s ease; }
.password-status.pending { color: #6b8198; }
.password-status.invalid { color: #d9363e; }
.password-status.valid { color: #12824a; }

.message { padding: 13px; border-radius: 8px; }
.error { color: #a01919; background: #fff0f0; border:2px solid #f3aaaa; }

.app-mode header { height: 76px; }
.app-mode .tagline { display: none; }
.app-mode .menu-toggle { display: grid; place-items: center; align-self: stretch; width: 76px; margin-left: -3vw; color: #fff; font-size: 30px; background: linear-gradient(180deg, #1b94cf, #1377bc); border: 0; }
.app-mode .app-user-meta { display: flex; gap: 16px; align-items: center; margin-left: auto; color: #0645be; font-size: 17px; font-weight: 800; }
.header-employee-id { display: none; }
.app-user-meta i { width: 1px; height: 26px; background: #78a8d2; }
.app-mode main { display: block; height: calc(100vh - 76px); min-height: 0; padding: 0; overflow: hidden; background: linear-gradient(135deg, #f1fbff 0%, #e7f7ff 100%); }
.app-mode main::before, .app-mode main::after, .app-mode footer { display: none; }

.app-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 230px minmax(0, 1fr); width: 100%; height: 100%; }
.side-menu { box-sizing: border-box; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 16px 12px; overflow-y: auto; overscroll-behavior-y: contain; color: #fff; background: linear-gradient(180deg, #168fcb 0%, #0877bd 48%, #0968b4 100%); box-shadow: inset -1px 0 #ffffff33; transition: width .2s ease; }
.side-menu > * { flex-shrink: 0; }
.nav-item { position: relative; display: flex; gap: 12px; align-items: center; width: 100%; min-height: 43px; padding: 0 14px; color: #fff; font-size: 15px; text-align: left; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.nav-item span { width: 22px; font-size: 21px; text-align: center; }
.nav-item.active { background: linear-gradient(90deg, #22c3cc, #28a7ee); box-shadow: inset 4px 0 #fff, 0 5px 14px #065eaa35; }
.nav-item em { display: grid; place-items: center; min-width: 26px; height: 26px; margin-left: auto; padding: 0 7px; font-style: normal; font-weight: 800; background: #ff5b64; border-radius: 20px; }
.nav-heading { margin: 15px 14px 5px; font-size: 14px; font-weight: 800; }
.nav-separator { height: 1px; margin: 12px 10px; background: #9bd2f5; }
.nav-spacer { flex: 1 0 0; }
.logout-item { margin-top: 4px; color: #e8f7ff; }
.mobile-bottom-nav { display: none; }
.mobile-chat-list, .mobile-room-header, .mobile-room-search { display: none; }
.menu-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.menu-collapsed .nav-item { justify-content: center; padding: 0; font-size: 0; }
.menu-collapsed .nav-item span { width: auto; }
.menu-collapsed .nav-item em { position: absolute; top: 0; right: 0; min-width: 20px; height: 20px; font-size: 11px; }
.menu-collapsed .nav-heading { display: none; }

.home-content { display: grid; grid-template-rows: minmax(260px, .95fr) minmax(285px, 1.05fr); gap: 16px; min-width: 0; padding: 20px; overflow: hidden; }
.app-user-meta { position: relative; }
.header-account-button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px; color: #0645be; background: none; border: 0; font: inherit; cursor: pointer; }
.header-account-button:hover,.header-account-button:focus-visible { background: #e6f5ff; border-radius: 6px; }
.header-account-menu { position: absolute; z-index: 50; top: calc(100% + 12px); right: 55px; width: 215px; padding: 8px; background: white; border:2px solid #b5d9f4; border-radius: 9px; box-shadow: 0 12px 28px #12477e27; }
.header-account-menu[hidden] { display: none; }
.header-account-menu button { display: block; width: 100%; padding: 10px 12px; text-align: left; color: #0755ba; background: none; border: 0; border-radius: 6px; cursor: pointer; font-size: 14px; }
.header-account-menu button:hover,.header-account-menu button:focus-visible { background: #eaf5ff; }
.header-account-menu button:last-child { border-top: 1px solid #d4e7f5; color: #174176; }
.profile-page { min-width: 0; padding: 18px 22px 25px; overflow-y: auto; overflow-x: hidden; color: #063b88; background: #f4fbff; }
.profile-top { margin-bottom: 13px; }
.profile-back { padding: 5px 2px; color: #075bcd; font-size: 14px; font-weight: 800; background: none; border: 0; cursor: pointer; }
.profile-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.profile-page h1 { margin: 4px 0 2px; color: #092da6; font-size: clamp(23px,2.5vw,34px); line-height: 1.2; }
.profile-title-row p { margin: 0; font-size: 15px; font-weight: 700; }
.profile-title-row button,.profile-card button { min-height: 38px; padding: 7px 12px; color: #0754cb; font: inherit; font-weight: 700; background: white; border:2px solid #78b8f4; border-radius: 6px; cursor: pointer; }
.profile-card button:hover:not(:disabled),.profile-title-row button:hover { background: #e9f6ff; }
.profile-card button:disabled { cursor: not-allowed; color: #6e86a4; background: #eef3f7; border-color: #cad9e8; }
.profile-grid { display: grid; grid-template-columns: minmax(205px,.95fr) minmax(275px,1.42fr) minmax(290px,1.42fr); gap: 10px; align-items: stretch; }
.profile-card { min-width: 0; padding: 14px; background: #fff; border:2px solid #b9e0f8; border-radius: 9px; box-shadow: 0 2px 10px #2e8db00d; }
.profile-card h2 { margin: 0 0 13px; color: #0733b4; font-size: 20px; line-height: 1.3; }
.profile-photo-card { display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.profile-photo-card h2 { text-align: left; }
.profile-avatar { display: grid; place-items: center; width: min(155px,80%); aspect-ratio: 1; margin: 4px auto 9px; flex: 0 0 auto; overflow: hidden; color: #fff; font-size: 59px; font-weight: 800; background: linear-gradient(145deg,#21b6bd,#2087e4); border-radius: 50%; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-card > strong { color: #0a315f; font-size: 19px; }
.profile-number { margin: 4px 0 12px; font-size: 13px; }
.profile-photo-card button { width: 100%; margin-bottom: 7px; }
.profile-photo-card > p:not(.profile-number) { margin: 5px 0; text-align: left; font-size: 12px; line-height: 1.5; }
.profile-inline-note { color: #54708e; font-size: 12px !important; }
.profile-info-card dl,.profile-account-card dl { margin: 0; }
.profile-info-card dl > div { display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 5px; align-items: center; margin-bottom: 6px; }
.profile-info-card dt,.profile-account-card dt { font-size: 13px; font-weight: 800; }
.profile-info-card dd { min-width: 0; margin: 0; padding: 7px 10px; overflow-wrap: anywhere; color: #174679; background: #eef4f8; border-radius: 5px; font-size: 13px; }
.profile-info-warning { display: grid; gap: 3px; margin-top: 9px; padding: 10px; color: #9c4611; background: #fff2da; border:2px solid #f4c369; border-radius: 6px; font-size: 12px; line-height: 1.45; }
.profile-info-card > .profile-inline-note { margin: 9px 0 0; }
.profile-password-card form { display: grid; gap: 10px; }
.profile-password-card label { display: grid; gap: 5px; font-size: 13px; font-weight: 800; }
.profile-password-card label > span { display: flex; align-items: stretch; min-width: 0; border:2px solid #a9d3fa; border-radius: 6px; overflow: hidden; }
.profile-password-card input { min-width: 0; width: 100%; height: 38px; padding: 7px 9px; background: #fff; border: 0; font: inherit; }
.profile-password-card label button { min-height: 38px; border: 0; border-left: 1px solid #d1e4f6; border-radius: 0; font-size: 12px; }
.profile-strength { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.profile-strength meter { flex: 1 1 100px; height: 12px; }
.profile-strength strong { color: #128c64; }
.profile-rule { padding: 11px; color: #1b5aa1; background: #e8f5fc; border-radius: 6px; font-size: 12px; line-height: 1.65; }
.profile-card .profile-primary { width: 100%; min-height: 43px; color: white; background: #0874ed; border-color: #0874ed; }
.profile-card .profile-primary:hover { color: #fff; background: #0664cb; }
.profile-card .profile-primary:disabled, .profile-card .profile-primary:disabled:hover { color: #7890ac; background: #edf3f9; border-color: #c8d9ec; }
.profile-password-card input:disabled { color: #7890ac; background: #f4f7fb; }
.profile-password-card .profile-inline-note { margin: 0; }
.profile-account-card { margin-top: 10px; }
.profile-account-grid { display: grid; grid-template-columns: 1fr 1fr minmax(240px,.8fr); gap: 15px; }
.profile-account-card dl > div { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; font-size: 13px; }
.profile-account-card dt { min-width: 125px; }
.profile-account-card dd { margin: 0; overflow-wrap: anywhere; }
.profile-account-actions { display: grid; gap: 6px; }
.home-photo-button { display: none; }
.photo-page { min-width: 0; padding: 26px; overflow-y: auto; }
.photo-page h1 { margin: 12px 0 20px; color: #073f89; font-size: 26px; }
.photo-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.photo-controls button { min-height: 44px; padding: 8px 12px; color: #07518e; font-weight: 800; background: #fff; border:2px solid #98cce6; border-radius: 9px; }
.photo-preview-list { display: grid; gap: 8px; margin-bottom: 16px; }
.photo-preview-item { display: flex; gap: 12px; min-width: 0; padding: 10px; background: #fff; border:2px solid #c7dfea; border-radius: 9px; }
.photo-preview-item img { width: 70px; height: 70px; flex: 0 0 auto; object-fit: cover; border-radius: 6px; }
.photo-preview-item > div { min-width: 0; }
.photo-preview-item b { display: block; overflow-wrap: anywhere; }
.photo-preview-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.photo-preview-actions button { padding: 5px 7px; color: #07518e; background: #eaf6ff; border: 0; border-radius: 5px; }
.photo-preview-actions button:disabled { opacity: .4; }
.photo-field { margin-bottom: 14px; }
.photo-field select { width: 100%; min-width: 0; min-height: 44px; padding: 8px; color: #174d6e; font: inherit; background: #fff; border:2px solid #a9cee2; border-radius: 8px; }
.photo-result { padding: 12px; overflow-wrap: anywhere; color: #075686; background: #e8f7fb; border-radius: 8px; }
.app-page[hidden] { display: none !important; }
.home-top-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; min-height: 0; }
.home-card, .list-panel { min-width: 0; background: #fff; border:2px solid #cae2f2; border-radius: 10px; box-shadow: 0 8px 20px #0c60931b; overflow: hidden; }
.home-card { padding: 16px 18px; border-top-width: 6px; }
.home-card h2 { display: flex; gap: 10px; align-items: center; margin: 0; padding-bottom: 12px; color: #075071; font-size: 18px; border-bottom: 1px solid #cfe5f4; }
.home-card h2 span { display: grid; place-items: center; width: 42px; height: 42px; font-size: 24px; border-radius: 50%; }
.annual h2 span { color: #08747d; background: #b7f3f1; }
.monthly h2 span { color: #0877d7; background: #c9e9ff; }
.accident-card h2 span { color: #0d9b42; background: #c9f6d5; }
.delivery-card h2 span { color: #ef8500; background: #ffebc8; }
.annual { background: linear-gradient(180deg, #e8ffff 0%, #fff 58%); border-top-color: #1db9bd; }
.monthly { background: linear-gradient(180deg, #eaf6ff 0%, #fff 58%); border-top-color: #369aee; }
.accident-card { background: linear-gradient(180deg, #edfff0 0%, #fff 62%); border-top-color: #38c963; }
.delivery-card { background: linear-gradient(180deg, #fff8e8 0%, #fff 64%); border-top-color: #f5a623; }
.goal-card p { margin: 42px 4px 0; color: #0642bd; font-size: 21px; font-weight: 800; line-height: 1.55; }
.accident-card dl { margin: 5px 0 0; }
.accident-card dl div { display: flex; align-items: center; justify-content: space-between; min-height: 57px; border-bottom: 1px solid #d5e8f3; }
.accident-card dl div:last-child { border-bottom: 0; }
.accident-card dt { color: #0743bb; font-weight: 800; }
.accident-card dd { margin: 0; color: #08758c; font-size: 35px; font-weight: 900; }
.accident-card small { margin-left: 3px; font-size: 16px; }
.delivery-card h2 { color: #ef7900; }
.delivery-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin: 10px 0; color: #0647bb; }
.delivery-meta b { padding: 5px 10px; color: #fff; background: #8a63e6; border-radius: 4px; }
.delivery-meta em { padding: 5px 13px; color: #fff; font-style: normal; font-weight: 800; background: #ff575d; border-radius: 4px; }
.delivery-card h3 { margin: 8px 0; color: #0642bd; font-size: 16px; }
.delivery-card p { margin: 0; color: #164c9a; font-size: 14px; line-height: 1.55; }
.delivery-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: #3d2fc0; font-size: 13px; }
.delivery-footer button, .panel-title button { color: #0645bd; font-weight: 800; background: #fff; border: 0; cursor: pointer; }
.delivery-pages { display: flex; align-items: center; gap: 5px; min-width: 0; }
.delivery-pages button { flex: none; min-width: 26px; min-height: 27px; border:2px solid #a7d2f8; border-radius: 5px; }
.delivery-pages span { white-space: nowrap; }

.home-bottom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-height: 0; }
.list-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr); padding: 12px 14px 10px; }
.important-panel { background: linear-gradient(180deg, #fff1f3 0%, #fff 30%); border-top: 6px solid #ff5558; }
.latest-panel { background: linear-gradient(180deg, #eaf6ff 0%, #fff 30%); border-top: 6px solid #3698ee; }
.panel-title { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 9px; }
.panel-title h2 { display: flex; gap: 10px; align-items: center; margin: 0; color: #0750bd; font-size: 19px; }
.important-panel .panel-title h2 { color: #e51d25; }
.panel-title h2 span { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; font-size: 23px; background: #359be7; border-radius: 50%; }
.important-panel .panel-title h2 span { background: #ed2028; }
.table-head, .home-list button { display: grid; grid-template-columns: 120px minmax(180px, 1fr) 120px 110px; gap: 8px; align-items: center; }
.table-head { padding: 10px; color: #0641b4; font-size: 13px; font-weight: 800; background: linear-gradient(90deg, #e3f1fa, #f1f8fd); border-radius: 5px; }
.home-list { min-height: 0; overflow-y: auto; }
.home-list button { width: 100%; min-height: 43px; padding: 6px 10px; color: #0641b4; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #d7e8f2; cursor: pointer; }
.home-list button b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-list button em { padding: 7px 5px; font-style: normal; font-weight: 800; text-align: center; border-radius: 6px; }
.unread, .new { color: #ee2930; background: #ffe3e4; }
.checked { color: #08778a; background: #d8f5f4; }
.updated { color: #087ec7; background: #d9effb; }

.chat-page { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; min-width: 0; padding: 12px 18px; overflow: hidden; }
.desktop-direct-mode { grid-template-columns: 290px minmax(0, 1fr); }
.desktop-direct-mode .desktop-direct-sidebar { grid-column: 1; grid-row: 1 / 4; }
.desktop-direct-mode .chat-toolbar, .desktop-direct-mode .chat-feed, .desktop-direct-mode .chat-composer { grid-column: 2; }
.desktop-direct-mode .chat-toolbar-tools { display: none; }
.desktop-direct-unselected .chat-toolbar, .desktop-direct-unselected .chat-feed, .desktop-direct-unselected .chat-composer { display: none; }
.desktop-direct-empty { display: grid; grid-column: 2; grid-row: 1 / 4; place-items: center; color: #53728b; font-size: 17px; background: #f6fbfe; border:2px solid #c8e1f0; border-radius: 12px; }
.desktop-direct-empty[hidden] { display: none; }
.desktop-direct-sidebar { min-height: 0; overflow: auto; background: #fff; border:2px solid #c8e1f0; border-radius: 12px; }
.desktop-direct-sidebar h2 { margin: 0; padding: 18px; color: #073e87; font-size: 20px; border-bottom: 1px solid #d9e9f2; }
.desktop-direct-sidebar label { display: block; margin: 14px; }
.desktop-direct-sidebar input { width: 100%; min-height: 40px; padding: 8px 10px; border:2px solid #a9cddd; border-radius: 8px; }
.desktop-direct-peer { display: flex; gap: 10px; align-items: center; width: 100%; padding: 13px; color: #123c62; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #deebf1; cursor: pointer; }
.desktop-direct-peer.active { background: #e9f6fc; box-shadow: inset 3px 0 #128eca; }
.direct-avatar { display: grid; flex: 0 0 42px; place-items: center; height: 42px; color: #fff; background: #168fcd; border-radius: 50%; }
.direct-peer-copy { display: grid; gap: 3px; min-width: 0; }
.direct-peer-copy small, .direct-peer-copy span { overflow: hidden; color: #627d90; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.desktop-direct-peer em { margin-left: auto; padding: 2px 6px; color: #fff; font-size: 12px; font-style: normal; background: #ef505e; border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.chat-toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.chat-toolbar > div:first-child { flex: 0 0 auto; white-space: nowrap; }
.page-kicker { color: #168eb4; font-size: 13px; font-weight: 800; }
.chat-toolbar h1 { display: inline; margin: 0 0 0 10px; color: #073e87; font-size: 22px; }
.chat-toolbar-tools { display: flex; flex: 1 1 auto; gap: 8px; align-items: center; justify-content: flex-end; min-width: 0; }
.chat-actions { display: flex; gap: 8px; }
.chat-actions button { min-height: 36px; padding: 0 11px; color: #07518e; font-size: 13px; font-weight: 800; white-space: nowrap; background: #fff; border:2px solid #9bc9e5; border-radius: 8px; }
.chat-actions .accent-button { color: #fff; background: linear-gradient(90deg, #1c8ee8, #19b9bf); border: 0; }
.view-switch { display: flex; padding: 2px; background: #eaf5fb; border-radius: 8px; }
.view-switch button { padding: 7px 10px; color: #50718b; font-size: 13px; font-weight: 800; white-space: nowrap; background: transparent; border: 0; border-radius: 6px; }
.view-switch button.active { color: #fff; background: #168fcd; box-shadow: 0 3px 10px #0874b72d; }
.chat-search { display: flex; flex: 1 1 220px; align-items: center; min-width: 150px; max-width: 320px; padding-left: 10px; color: #5380a3; font-weight: 400; background: #fff; border:2px solid #9fc9df; border-radius: 8px; transition: border-color .15s ease, box-shadow .15s ease; }
.chat-search:focus-within { border-color: #168fcd; box-shadow: 0 0 0 3px #168fcd1c; }
.chat-search input { height: 32px; font-size: 14px; background: transparent; border: 0; box-shadow: none; }
.chat-search input:focus { border: 0; box-shadow: none; }
.chat-feed { min-height: 0; padding: 14px; overflow-y: auto; background: linear-gradient(180deg, #eff9fe, #f8fcff); border:2px solid #c8e1f0; border-radius: 12px; }
.chat-empty-message { margin: 24px auto; text-align: center; color: #64839c; font-size: 14px; }
.pinned-message { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 12px; padding: 11px 14px; color: #885600; background: #fff8dc; border:2px solid #f2d788; border-radius: 9px; }
.pinned-message span { font-weight: 800; }
.pinned-message button { color: #8a5a00; background: #fff; border:2px solid #e4c971; border-radius: 6px; }
.target-highlight { animation: target-highlight 1.8s ease; }
@keyframes target-highlight { 0%, 55% { box-shadow: 0 0 0 4px #ffb52b8c; } 100% { box-shadow: 0 0 0 0 transparent; } }
.thread-entry { position: relative; margin: 8px 0; overflow: visible; background: #fff; border:2px solid #b9dcec; border-left: 5px solid #1a9bc4; border-radius: 10px; box-shadow: 0 5px 14px #0d668814; }
.thread-summary { display: grid; grid-template-columns: auto minmax(230px, 1fr) auto auto; gap: 12px; align-items: center; width: 100%; padding: 10px 14px; color: #164e79; text-align: left; background: #fff; border: 0; cursor: pointer; }
.thread-summary h2 { margin: 0 0 4px; color: #073f89; font-size: 16px; }
.thread-summary p { margin: 0; color: #5b7890; font-size: 13px; }
.thread-summary time { color: #69869c; font-size: 12px; }
.thread-summary em { color: #087cb5; font-style: normal; font-weight: 800; }
.thread-mark { padding: 5px 8px; color: #fff; font-size: 12px; font-weight: 800; background: #1b9ac1; border-radius: 5px; }
.thread-replies { padding: 4px 18px 14px 66px; background: #f4fbfe; border-top: 1px solid #d3e8f2; }
.thread-replies > div { position: relative; padding: 10px 38px 10px 0; border-bottom: 1px solid #dbeaf2; }
.thread-replies time { margin-left: 10px; color: #7290a3; font-size: 12px; }
.thread-replies p { margin: 5px 0 0; color: #335c79; }
.chat-bubble-row { display: flex; gap: 10px; align-items: flex-end; margin: 9px 0; }
.chat-bubble-row.sent { justify-content: flex-end; }
.person-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; color: #fff; font-weight: 800; background: #4da6d6; border-radius: 50%; }
.person-icon.own { background: #19aaa2; }
.chat-bubble { position: relative; max-width: 65%; padding: 10px 42px 10px 14px; background: #fff; border:2px solid #c8deeb; border-radius: 12px 12px 12px 3px; box-shadow: 0 4px 10px #07567d10; }
.sent .chat-bubble { background: #dcf7f2; border-color: #a7ded4; border-radius: 12px 12px 3px 12px; }
.chat-bubble time { margin-left: 10px; color: #70899a; font-size: 11px; }
.chat-bubble p { margin: 6px 0 0; color: #244f6e; line-height: 1.55; }
.entry-actions { position: absolute; z-index: 5; top: 5px; right: 5px; margin: 0; }
.entry-actions summary { display: grid; place-items: center; width: 28px; height: 28px; color: #477086; font-size: 23px; line-height: 1; list-style: none; background: transparent; border-radius: 50%; cursor: pointer; }
.entry-actions summary::-webkit-details-marker { display: none; }
.entry-actions summary:hover, .entry-actions[open] summary { background: #e5f3f9; }
.entry-action-menu { position: absolute; top: 29px; right: 0; display: grid; min-width: 92px; padding: 5px; background: #fff; border:2px solid #bdd7e4; border-radius: 7px; box-shadow: 0 8px 24px #063e6229; }
.entry-action-menu button { padding: 7px 10px; color: #477086; font-size: 12px; font-weight: 700; text-align: left; background: #fff; border: 0; border-radius: 5px; }
.entry-action-menu button:hover { background: #edf7fb; }
.entry-action-menu .delete-entry { color: #b23a41; }
.thread-entry > .entry-actions { top: 7px; right: 6px; }
.thread-entry:has(> .entry-actions) .thread-summary { padding-right: 48px; }
.thread-replies .entry-actions { top: 7px; right: 0; padding: 0; border: 0; }
.message-attachments { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.message-attachments span { max-width: 230px; padding: 4px 7px; overflow: hidden; color: #176486; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; background: #edf8fc; border:2px solid #c4e1ec; border-radius: 5px; }
.chat-composer { display: grid; grid-template-columns: 42px minmax(0, 1fr) 78px; gap: 8px; padding: 8px; background: #fff; border:2px solid #c5dfed; border-radius: 11px; }
.reply-context { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; padding: 5px 8px; color: #075a89; background: #e7f7fb; border-left: 4px solid #159bbc; border-radius: 7px; }
.reply-context > span { display: flex; gap: 8px; align-items: center; min-width: 0; }
.reply-context b { flex: 0 0 auto; font-size: 13px; }
.reply-context small { overflow: hidden; color: #55758b; text-overflow: ellipsis; white-space: nowrap; }
.reply-context button { flex: 0 0 auto; padding: 4px 8px; color: #a13a3a; font-size: 12px; font-weight: 800; background: #fff; border:2px solid #efb7b7; border-radius: 6px; }
.reply-quote { display: grid; gap: 2px; width: 100%; margin-bottom: 7px; padding: 7px 9px; color: #37647d; text-align: left; background: #ffffffb8; border: 0; border-left: 3px solid #168ebd; border-radius: 5px; cursor: pointer; }
.reply-quote b { color: #0a5882; font-size: 12px; }
.reply-quote span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.chat-bubble.reply-target { cursor: pointer; }
.chat-bubble.reply-target:hover { box-shadow: 0 0 0 2px #1a96c52e; }
.chat-composer textarea { min-height: 42px; max-height: 116px; padding: 9px 12px; color: #174d6e; font: inherit; line-height: 1.45; resize: none; overflow-y: auto; border:2px solid #abcfe2; border-radius: 8px; }
.chat-composer textarea:focus { outline: none; border-color: #abcfe2; box-shadow: none; }
.composer-file-list { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; padding: 2px 0; }
.composer-file-list[hidden] { display: none; }
.composer-file-chip { display: flex; flex: 0 0 auto; gap: 6px; align-items: center; max-width: 250px; padding: 5px 7px; color: #285f7b; font-size: 12px; background: #eff8fc; border:2px solid #bddce9; border-radius: 6px; }
.composer-file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-file-chip button { color: #b13d43; font-weight: 800; background: transparent; border: 0; }
.attach-button { color: #087bb0; font-size: 26px; background: #e5f5fb; border: 0; border-radius: 8px; }
.send-button { color: #fff; font-weight: 800; background: linear-gradient(180deg, #198fce, #0878b8); border: 0; border-radius: 8px; }

.thread-dialog { width: min(720px, 94vw); max-height: 92vh; padding: 0; color: #123f64; background: #f8fcff; border: 0; border-radius: 15px; box-shadow: 0 24px 80px #022e535c; }
.thread-dialog::backdrop { background: #032d4f80; backdrop-filter: blur(2px); }
.thread-dialog form { display: grid; gap: 17px; max-height: 92vh; padding: 26px 30px 0; overflow-y: auto; }
.dialog-fixed-header { position: sticky; top: -26px; z-index: 3; margin: -26px -30px 0; padding: 22px 30px 14px; background: #f8fcff; border-bottom: 1px solid #d0e5f1; box-shadow: 0 8px 18px #0b58730d; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-heading h1 { margin: 3px 0 0; color: #073f89; font-size: 25px; }
.dialog-close { min-width: 76px; height: 38px; padding: 0 14px; color: #315e79; font-size: 14px; font-weight: 800; background: #fff; border:2px solid #aacdde; border-radius: 7px; }
.dialog-guide { margin: 10px 0 0; color: #5a7890; }
.thread-dialog label { position: relative; }
.required-label { position: absolute; top: 0; right: 0; padding: 3px 8px; color: #d72831; font-size: 11px; background: #ffe9ea; border-radius: 4px; }
.thread-dialog textarea { width: 100%; padding: 13px 15px; color: #123f64; font: inherit; resize: vertical; border:2px solid #a9cee2; border-radius: 9px; outline: none; }
.thread-dialog textarea:focus { border: 2px solid #188fd0; box-shadow: 0 0 0 3px #188fd018; }
.field-count { color: #668399; font-size: 12px; text-align: right; }
.thread-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-option { display: flex; flex-direction: row; gap: 12px; align-items: center; padding: 13px; background: #fff; border:2px solid #c7dfea; border-radius: 9px; }
.check-option input { width: 20px; height: 20px; }
.check-option span { display: grid; gap: 3px; }
.check-option small { color: #6e8799; font-weight: 400; }
.attachment-box { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 15px; background: #eef8fc; border: 1px dashed #8cc5de; border-radius: 10px; }
.attachment-box h2 { margin: 0; color: #075686; font-size: 16px; }
.attachment-box p { margin: 4px 0 0; color: #6a8497; font-size: 12px; }
.file-select-button { display: block; padding: 10px 14px; color: #fff; font-size: 13px; background: #168fc5; border-radius: 7px; cursor: pointer; }
.selected-file-list { grid-column: 1 / -1; display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.selected-file-list li { display: flex; justify-content: space-between; padding: 7px 10px; color: #315e79; background: #fff; border-radius: 6px; }
.selected-file-list li > span { display: grid; gap: 2px; min-width: 0; }
.selected-file-list li > span b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file-list li > button { align-self: center; padding: 5px 9px; color: #b23339; font-weight: 800; background: #fff1f1; border:2px solid #efc2c4; border-radius: 5px; }
.selected-file-list .empty-file { color: #7e94a3; }
.dialog-actions { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 10px; margin: 0 -30px; padding: 14px 30px 18px; background: #f8fcff; border-top: 1px solid #d0e5f1; box-shadow: 0 -8px 18px #0b58730d; }
.dialog-actions button { min-height: 46px; padding: 0 20px; color: #486a80; font-weight: 800; background: #fff; border:2px solid #accdde; border-radius: 8px; }
.dialog-actions .accent-button { color: #fff; background: linear-gradient(90deg, #198edf, #18b8b9); border: 0; }

.status-dialog { width: min(680px, 94vw); max-height: 88vh; padding: 0; color: #123f64; background: #f8fcff; border: 0; border-radius: 15px; box-shadow: 0 24px 80px #022e535c; }
.status-dialog::backdrop { background: #032d4f80; backdrop-filter: blur(2px); }
.status-dialog-content { display: grid; gap: 14px; padding: 24px 28px 28px; }
.status-heading { align-items: center; padding-bottom: 12px; border-bottom: 1px solid #d0e5f1; }
.status-heading h1 { margin: 3px 0 0; color: #073f89; font-size: 25px; }
.status-target-label { display: grid; gap: 7px; font-weight: 800; }
.status-target-label select { width: 100%; min-width: 0; max-width: 100%; min-height: 43px; padding: 0 12px; color: #174d6e; font: inherit; background: #fff; border:2px solid #a9cee2; border-radius: 8px; }
.status-summary { padding: 11px 13px; color: #075686; font-weight: 800; background: #e8f7fb; border-left: 4px solid #159bbc; border-radius: 7px; }
.status-list-head, .status-list > div { display: grid; grid-template-columns: minmax(130px, 1fr) 100px 150px; gap: 10px; align-items: center; }
.status-list-head { padding: 9px 11px; color: #426c84; font-size: 12px; font-weight: 800; background: #eaf3f8; border-radius: 6px; }
.status-list { max-height: 320px; overflow-y: auto; }
.status-list > div { min-height: 44px; padding: 7px 11px; background: #fff; border-bottom: 1px solid #d9e8ef; }
.status-list em { width: fit-content; padding: 4px 8px; font-style: normal; font-weight: 800; border-radius: 5px; }
.status-list .is-read { color: #08778a; background: #d8f5f4; }
.status-list .is-unread { color: #d72d34; background: #ffe5e6; }
.status-list time { color: #668399; font-size: 12px; }
.status-export { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding-top: 8px; border-top: 1px solid #d0e5f1; }
.status-export button { min-height: 40px; padding: 8px 14px; color: #fff; font-weight: 800; background: #168fcd; border: 0; border-radius: 8px; cursor: pointer; }
.status-export small { color: #5b7284; font-size: 12px; }
.generate-password { align-self: start; padding: 9px 13px; color: #07518e; font-size: 14px; font-weight: 800; background: #e9f6fc; border:2px solid #9bc9e5; border-radius: 8px; cursor: pointer; }
.direct-read-preview { margin-left: 7px; color: #1977ab; font-size: 12px; white-space: nowrap; }

footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 3vw;
  color: #0643bf;
  font-weight: 700;
  background: #fff;
  border-top: 1px solid #d8e8f1;
}

@media (max-width: 1250px) {
  .message-panel { display: none; }
}

@media (max-width: 900px) {
  .tagline { font-size: 15px; }
  .login-card { padding: 32px; }
  .system-notice a { grid-template-columns: 110px 1fr; }
  .app-mode .brand span { display: none; }
  .app-mode .app-user-meta { font-size: 13px; }
  .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .side-menu .nav-item { justify-content: center; padding: 0; font-size: 0; }
  .side-menu .nav-item span { width: auto; }
  .side-menu .nav-item em { position: absolute; top: 0; right: 0; min-width: 20px; height: 20px; font-size: 11px; }
  .side-menu .nav-heading { display: none; }
  .home-content { display: block; padding: 12px; overflow-y: auto; }
  .chat-page { padding: 12px; }
  .chat-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .chat-toolbar-tools { flex-basis: 100%; }
  .thread-summary { grid-template-columns: auto minmax(180px, 1fr) auto; }
  .thread-summary time { display: none; }
  .home-top-grid, .home-bottom-grid { grid-template-columns: 1fr; }
  .home-card, .list-panel { margin-bottom: 12px; }
  .goal-card p { margin: 24px 4px; }
  .list-panel { min-height: 310px; }
}

@media (max-width: 600px) {
  .desktop-direct-sidebar { display: none !important; }
  html, body { max-width: 100%; overflow-x: clip; }
  body:not(.app-mode) { height: 100dvh; overflow: hidden; }
  body.app-mode { position: fixed; inset: 0; width: 100%; height: 100dvh; overflow: hidden; }
  header { height: 62px; padding: 0 16px; }
  .brand { font-size: 15px; }
  .header-logo { width: 52px; height: 34px; }
  .tagline { display: none; }
  body:not(.app-mode) main { display: block; height: calc(100dvh - 120px); min-height: 0; padding: 14px; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
  body:not(.app-mode) main::before, body:not(.app-mode) main::after { display: none; }
  .login-stage { width: 100%; min-height: auto; }
  .password-change-stage { width: 100%; max-width: 100%; min-width: 0; }
  .login-logo { width: 106px; height: 60px; }
  .card, .dashboard { width: 100%; padding: 22px; }
  .logo-block h1 { font-size: 23px; }
  .system-notice { padding: 10px 12px; }
  .notice-title h2 { font-size: 16px; }
  .system-notice a { grid-template-columns: 1fr; gap: 3px; font-size: 13px; }
  .step-heading { gap: 14px; }
  .change-logo { width: 70px; height: 45px; }
  .step-heading h1 { font-size: 22px; }
  .rules ul { grid-template-columns: 1fr; }
  .app-mode header { height: 58px; padding: 0 12px; }
  .app-mode .menu-toggle { display: none; }
  .app-mode .brand { min-width: 0; gap: 5px; }
  .app-mode .brand .brand-name-full { display: none; }
  .app-mode .brand .brand-name-short { display: inline; overflow: hidden; color: #0750a0; font-size: 14px; white-space: nowrap; }
  .app-mode .app-user-meta { gap: 6px; min-width: 0; font-size: 12px; }
  .app-mode .app-user-meta .user-role, .app-mode .app-user-meta i, .app-mode .app-user-meta .date-full { display: none; }
  .app-mode .app-user-meta .header-employee-id { display: inline; color: #0750a0; font-size: 13px; white-space: nowrap; }
  .app-mode .app-user-meta .date-short { display: inline; white-space: nowrap; }
  .app-mode .header-logo { width: 58px; height: 36px; flex: 0 0 auto; }
  .app-mode main { height: calc(100dvh - 58px); }
  .app-shell { display: block; height: 100%; padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .side-menu {
    position: absolute;
    z-index: 20;
    right: 10px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    left: auto;
    display: none;
    width: min(270px, calc(100vw - 20px));
    max-height: calc(100dvh - 145px);
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 18px 45px #043a6266;
  }
  .mobile-menu-open .side-menu { display: flex; }
  .side-menu .nav-item { justify-content: flex-start; min-height: 43px; padding: 0 12px; font-size: 14px; }
  .side-menu .nav-item span { width: 24px; }
  .side-menu .nav-item em { position: static; min-width: 24px; height: 24px; margin-left: auto; font-size: 11px; }
  .side-menu .nav-heading { display: block; }
  .nav-spacer { display: none; }
  .mobile-bottom-nav {
    position: absolute;
    z-index: 18;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(62px + env(safe-area-inset-bottom));
    padding: 5px 4px env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #c9dfed;
    box-shadow: 0 -5px 18px #07547a17;
  }
  .mobile-bottom-nav button {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    min-width: 0;
    padding: 2px;
    color: #315b78;
    background: transparent;
    border: 0;
  }
  .mobile-bottom-nav button span { height: 25px; font-size: 23px; line-height: 1; }
  .mobile-bottom-nav button svg { display: block; width: 23px; height: 23px; }
  .mobile-bottom-nav button b { font-size: 11px; white-space: nowrap; }
  .mobile-bottom-nav button.active { color: #0787d2; }
  .mobile-bottom-nav #mobileNavUnread { position: absolute; top: 1px; left: calc(50% + 8px); min-width: 22px; height: 22px; padding: 0 5px; font-size: 12px; line-height: 1; }
  .mobile-bottom-nav #mobileNavUnread[hidden] { display: none; }
  .home-content { height: 100%; padding: 8px; overflow-y: auto; }
  .home-photo-button { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 88px; margin-bottom: 12px; padding: 16px; text-align: left; color: #07518e; background: linear-gradient(115deg, #e4f7ff, #f5fcff); border:2px solid #b9dfef; border-top: 4px solid #249be3; border-radius: 12px; box-shadow: 0 4px 12px #1765880d; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .home-photo-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 50%; color: #087ac2; background: #c7edff; }
  .home-photo-icon svg { width: 26px; height: 26px; }
  .home-photo-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
  .home-photo-copy b { font-size: 18px; line-height: 1.3; }
  .home-photo-copy > span { color: #466e87; font-size: 11px; line-height: 1.5; }
  .home-photo-arrow { display: grid; place-items: center; flex: 0 0 28px; height: 28px; color: #087ac2; background: #fff; border-radius: 50%; }
  .home-photo-arrow svg { width: 16px; height: 16px; }
  .home-photo-button:active { background: #d6f0ff; box-shadow: inset 0 1px 4px #17658820; }
  .home-photo-button:focus-visible { outline: 3px solid #087ac2; outline-offset: 3px; }
  .photo-page { height: 100%; padding: 18px 14px; overflow-x: hidden; }
  .photo-page h1 { font-size: 23px; }
  .photo-controls button { flex: 1 1 130px; }
  .photo-page .primary { width: 100%; font-size: 17px; }
  .app-shell, .app-page, .home-content, .home-top-grid, .home-bottom-grid, .home-card, .list-panel, .mobile-chat-list, .chat-feed { min-width: 0; max-width: 100%; }
  .profile-page { height: 100%; padding: 12px 10px 85px; overflow-x: hidden; }
  .profile-page h1 { font-size: 24px; }
  .profile-title-row p { font-size: 12px; }
  .profile-title-row button { display: none; }
  .profile-grid,.profile-account-grid { grid-template-columns: minmax(0,1fr); }
  .profile-card { padding: 13px; }
  .profile-avatar { width: 114px; font-size: 42px; }
  .profile-info-card dl > div { grid-template-columns: 105px minmax(0,1fr); }
  .header-account-button { padding: 2px; }
  .header-account-button .user-role { display: none; }
  .header-account-menu { right: 0; top: calc(100% + 9px); }
  .home-content, .home-list, .chat-feed, .mobile-conversation-list { overflow-x: hidden; }
  .home-top-grid, .home-bottom-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-title { gap: 6px; }
  .panel-title h2 { min-width: 0; font-size: 16px; }
  .panel-title h2 span { flex: 0 0 auto; width: 30px; height: 30px; font-size: 20px; }
  .panel-title button { flex: 0 0 auto; font-size: 12px; }
  .home-list button { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 7px; min-width: 0; }
  .home-list button time { grid-column: 1; grid-row: 1; font-size: 12px; }
  .home-list button em { grid-column: 2; grid-row: 1; padding: 4px 6px; font-size: 11px; }
  .home-list button b { grid-column: 1 / -1; grid-row: 2; min-width: 0; overflow: visible; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
  .home-list button span { display: none; }
  .delivery-meta { grid-template-columns: auto minmax(0, 1fr) auto; }
  .delivery-meta time { min-width: 0; overflow-wrap: anywhere; }
  .chat-page { display: block; height: 100%; padding: 0; background: #fff; }
  .mobile-chat-room .chat-page { display: flex; flex-direction: column; }
  .mobile-chat-list { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); height: 100%; min-height: 0; padding: 14px 14px 4px; overflow: hidden; background: #fff; }
  .mobile-list-heading { display: flex; align-items: center; justify-content: space-between; }
  .mobile-list-heading h1 { margin: 0; color: #0a315f; font-size: 25px; }
  .mobile-list-heading button, .mobile-room-header button { display: grid; place-items: center; width: 42px; height: 42px; color: #0c5f91; font-size: 25px; background: transparent; border: 0; }
  .mobile-chat-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; border-bottom: 1px solid #d8e6ef; }
  .mobile-chat-tabs button { position: relative; min-height: 45px; color: #3f586b; font-size: 15px; font-weight: 800; background: transparent; border: 0; border-bottom: 3px solid transparent; }
  .mobile-chat-tabs button.active { color: #087dcc; border-bottom-color: #087dcc; }
  .mobile-chat-tabs em { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; color: #fff; font-size: 10px; font-style: normal; background: #f0525d; border-radius: 12px; }
  .mobile-list-search, .mobile-room-search { display: flex; align-items: center; gap: 7px; margin: 8px 0; padding: 0 12px; background: #f3f7fa; border:2px solid #d5e4ed; border-radius: 22px; }
  .mobile-list-search[hidden], .mobile-room-search[hidden] { display: none; }
  .mobile-list-search input, .mobile-room-search input { height: 40px; padding: 0; font-size: 15px; background: transparent; border: 0; box-shadow: none; }
  .mobile-conversation-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .mobile-conversation-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 11px; align-items: center; width: 100%; min-height: 70px; padding: 9px 2px; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #e0eaf0; }
  .mobile-conversation-avatar { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; font-weight: 900; background: linear-gradient(145deg, #21b6bd, #2087e4); border-radius: 50%; }
  .mobile-conversation-copy { display: grid; gap: 5px; min-width: 0; }
  .mobile-conversation-copy b { overflow: hidden; color: #123c62; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-conversation-copy small { overflow: hidden; color: #5d7385; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-conversation-meta { display: grid; justify-items: end; gap: 7px; }
  .mobile-conversation-meta time { color: #718594; font-size: 11px; }
  .mobile-conversation-meta em, .mobile-bottom-nav em { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; color: #fff; font-size: 10px; font-style: normal; font-weight: 800; background: #f0525d; border-radius: 12px; }
  .mobile-room-header { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px 34px; align-items: center; min-height: 52px; padding: 4px 6px; background: #fff; border-bottom: 1px solid #d8e6ef; }
  .mobile-room-header[hidden] { display: none; }
  .mobile-room-header h1 { overflow: hidden; margin: 0; color: #0a315f; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-room-header .mobile-back { font-size: 34px; }
  .mobile-room-search { margin: 6px 8px; }
  .mobile-chat-room { padding-bottom: 0; }
  .mobile-chat-room .mobile-bottom-nav { display: none; }
  .chat-toolbar { display: none; }
  .chat-toolbar > div:first-child { padding: 0 2px; }
  .chat-toolbar h1 { font-size: 20px; }
  .page-kicker { font-size: 12px; }
  .chat-actions button { min-height: 32px; padding: 0 8px; font-size: 11px; }
  .chat-toolbar-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; width: 100%; }
  .view-switch { grid-column: 1 / -1; }
  .view-switch button { flex: 1; }
  .view-switch button { padding: 6px 7px; font-size: 12px; }
  .chat-search { width: 100%; min-width: 0; max-width: none; padding-left: 8px; }
  .chat-search input { height: 30px; padding: 0 8px; font-size: 13px; }
  .chat-actions { display: flex; width: auto; }
  .chat-actions button { width: 34px; padding: 0; overflow: hidden; color: transparent; white-space: nowrap; }
  .chat-actions button::before { color: #07518e; font-size: 16px; content: "⋮"; }
  .chat-actions .accent-button { width: 34px; }
  .chat-actions .accent-button::before { color: #fff; content: "+"; }
  .chat-feed { flex: 1 1 auto; min-height: 0; padding: 8px 10px; overflow-y: auto; overscroll-behavior: contain; background: #f5f9fc; border: 0; border-radius: 0; }
  .unread-divider { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: #e33f49; font-size: 12px; font-weight: 800; }
  .unread-divider::before, .unread-divider::after { flex: 1; height: 1px; content: ""; background: #f2aeb3; }
  .pinned-message { gap: 7px; margin-bottom: 7px; padding: 7px 9px; font-size: 12px; }
  .pinned-message button { min-height: 30px; }
  .thread-summary { grid-template-columns: auto minmax(0, 1fr); gap: 5px 8px; padding: 8px 10px; }
  .thread-summary > div { min-width: 0; }
  .thread-summary h2 { display: -webkit-box; overflow: hidden; margin: 0; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .thread-summary p, .thread-summary .message-attachments { display: none; }
  .thread-summary em { grid-column: 2; font-size: 12px; }
  .thread-replies { padding-left: 14px; }
  .chat-bubble-row { gap: 6px; margin: 6px 0; }
  .person-icon { width: 32px; height: 32px; font-size: 13px; }
  .chat-bubble { max-width: 91%; padding: 8px 34px 8px 10px; }
  .entry-actions summary { width: 24px; height: 24px; font-size: 20px; }
  .chat-composer { flex: 0 0 auto; grid-template-columns: 36px minmax(0, 1fr) 58px; gap: 5px; padding: 6px; border-radius: 0; }
  .chat-composer textarea { min-height: 38px; padding: 8px 9px; font-size: 15px; }
  .composer-file-list { flex-wrap: wrap; overflow-x: hidden; }
  .composer-file-chip { max-width: 100%; min-width: 0; }
  .message-attachments span { max-width: 100%; }
  .chat-bubble p, .mobile-thread-head h2, .mobile-thread-head p { overflow-wrap: anywhere; }
  .attach-button { font-size: 22px; }
  .send-button { font-size: 13px; }
  .mobile-thread-head { position: relative; padding: 14px; background: #fff; border:2px solid #c7dfed; border-radius: 12px; }
  .mobile-thread-head > span { display: inline-block; padding: 4px 9px; color: #087cab; font-size: 12px; font-weight: 800; background: #e5f6fb; border-radius: 14px; }
  .mobile-thread-head h2 { margin: 10px 0 6px; color: #073f89; font-size: 18px; }
  .mobile-thread-head p { margin: 0; color: #355d77; line-height: 1.65; }
  .mobile-thread-head time { display: block; margin-top: 8px; color: #78909f; font-size: 11px; text-align: right; }
  .thread-dialog, .status-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); overflow-x: hidden; }
  .thread-dialog form { min-width: 0; padding: 16px 14px 0; overflow-x: hidden; }
  .dialog-fixed-header { top: -16px; margin: -16px -14px 0; padding: 16px 14px; }
  .thread-options, .attachment-box { grid-template-columns: minmax(0, 1fr); }
  .attachment-box > div { min-width: 0; }
  .file-select-button { width: fit-content; max-width: 100%; }
  .dialog-actions { flex-wrap: wrap; margin: 0 -14px; padding: 12px 14px; }
  .dialog-actions button { min-width: 0; }
  .status-dialog-content { padding: 16px; }
  .status-summary { overflow-wrap: anywhere; }
  .status-dialog-content { padding: 18px 16px 20px; }
  .status-list-head, .status-list > div { grid-template-columns: minmax(120px, 1fr) 86px; }
  .status-list-head span:last-child { display: none; }
  .status-list time { grid-column: 1 / -1; }
  .table-head { display: none; }
  footer { font-size: 13px; }
}

@media (max-width: 360px) {
  .app-mode .brand .brand-name-short { font-size: 13px; }
  .app-mode .header-logo { width: 50px; }
  .app-mode .app-user-meta .header-employee-id { font-size: 11px; }
  .app-mode .app-user-meta .date-short { font-size: 11px; }
}

.mobile-action-sheet { width: min(520px, 100%); margin: auto 0 0; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); color: #173e5b; background: #fff; border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -18px 45px #052f4f38; }
.mobile-action-sheet::backdrop { background: #052f4f66; }
.mobile-action-sheet[open] { display: grid; gap: 2px; }
.mobile-sheet-heading { display: flex; align-items: center; justify-content: space-between; padding: 7px 4px 10px; border-bottom: 1px solid #dce8ef; }
.mobile-sheet-heading button { color: #28708f; font-weight: 800; background: transparent; border: 0; }
.mobile-action-sheet > button { min-height: 52px; padding: 10px 8px; color: #174866; font-size: 16px; font-weight: 800; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #e2ebf0; }

/* Shared document and notice confirmation screens */
.document-page { min-width: 0; height: 100%; padding: 20px 26px 32px; overflow: auto; color: #103879; background: #f1faff; }
#documentWorkspace { max-width: 1420px; margin: 0 auto; }
.doc-header { margin-bottom: 18px; }
.doc-header .doc-text { display: block; margin: 0 0 10px; padding: 0; border: 0; color: #0566c9; background: transparent; font-weight: 700; text-align: left; }
.doc-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; }
.doc-title h1 { margin: 0; color: #063eac; font-size: clamp(24px,2.4vw,34px); }
.doc-title p { margin: 0; color: #31639e; }
.doc-toolbar,.doc-footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 14px 0; }
.doc-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.doc-filters label,.doc-panel label { display: grid; gap: 7px; color: #12418b; font-weight: 700; }
.doc-filters input,.doc-filters select,.doc-panel input:not([type=checkbox]):not([type=file]),.doc-panel textarea,.doc-panel select { min-height: 43px; max-width: 100%; padding: 9px 11px; border:2px solid #abd2f5; border-radius: 7px; background: white; color: #12396a; font: inherit; }
.doc-filters input { width: min(330px, 75vw); }
.doc-button { min-height: 40px; padding: 7px 15px; border:2px solid #58a4f2; border-radius: 7px; background: #fff; color: #0062c7; font: inherit; font-weight: 750; cursor: pointer; }
.doc-button:hover,.doc-row-open:hover { background: #e6f5ff; }
.doc-button.doc-primary { border-color: #087df5; background: #087df5; color: #fff; }
.doc-button.doc-primary:hover { background: #0069d3; }
.doc-list { display: grid; gap: 11px; }
.doc-row,.doc-panel { min-width: 0; padding: 17px 20px; border:2px solid #c2e5fb; border-radius: 12px; background: white; box-shadow: 0 3px 10px #0a66ac12; }
.doc-row-top,.doc-row-meta,.doc-row-actions { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; }
.doc-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 2px 10px; border-radius: 25px; background: #e4f3ff; color: #0061be; font-size: 13px; font-weight: 750; }
.doc-badge.pin { background: #d8efff; }.doc-badge.important,.doc-badge.unread { color: #bb2335; background: #ffe6e9; }.doc-badge.attention { color: #ad6400; background: #fff0d7; }.doc-badge.done { color: #13745a; background: #d9f6e9; }
.doc-row-open { display: grid; width: 100%; gap: 4px; margin: 7px 0; padding: 5px 0; border: 0; background: transparent; color: #0a3c9c; font: inherit; text-align: left; cursor: pointer; }
.doc-row-open strong { font-size: 19px; }.doc-row-open span { color: #38577a; }
.doc-row-meta { margin: 9px 0; color: #53749a; font-size: 13px; }
.doc-row-meta span:not(:last-child) { padding-right: 12px; border-right: 1px solid #bcdbf2; }
.doc-row-actions { justify-content: flex-end; }
.doc-row-actions .doc-button { min-height: 34px; padding: 4px 10px; font-size: 14px; }
.doc-detail-grid,.doc-form-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,1fr); gap: 14px; align-items: start; }
.doc-detail-side { display: grid; gap: 14px; min-width: 0; }
.doc-panel h2 { margin: 6px 0 15px; color: #073c9e; font-size: 23px; }.doc-panel h3 { color: #0945a8; }
.doc-panel label { margin: 12px 0; }.doc-panel label b { color: #cf3044; font-size: 13px; }
.doc-body { min-height: 100px; margin: 20px 0; padding: 18px 0; border-top: 1px solid #cbe6f6; border-bottom: 1px solid #cbe6f6; line-height: 1.75; white-space: normal; }
.doc-files { padding-left: 20px; overflow-wrap: anywhere; }.doc-files li { padding: 7px 0; }.doc-files small { display: block; color: #6584a0; }
.doc-history { display: grid; gap: 4px; border-bottom: 1px solid #d5e9f6; padding-bottom: 10px; }.doc-history time { color: #456d9a; }
.doc-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.doc-form-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.doc-panel textarea { width: 100%; resize: vertical; }.doc-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }.doc-checks label { display: flex; align-items: center; font-weight: 650; }.doc-checks input { width: 18px; height: 18px; }
.doc-demo-note { margin: 20px 0; padding: 10px 13px; border-radius: 7px; background: #e4f2fc; color: #315b83; font-size: 13px; }
.doc-summary { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 13px; }.doc-summary dt { font-weight: 750; }.doc-summary dd { margin: 0; overflow-wrap: anywhere; }.doc-summary .doc-badge { margin: 0 4px 4px 0; }
.doc-empty { padding: 36px; border:2px solid #d0e8f9; border-radius: 12px; background: #fff; text-align: center; }.doc-complete { text-align: center; }
@media(max-width:900px) { .doc-detail-grid,.doc-form-grid { grid-template-columns: minmax(0,1fr); } }
@media(max-width:600px) { .document-page { height: 100%; padding: 12px 11px 85px; overflow-x: hidden; }.doc-toolbar { align-items: stretch; flex-direction: column; }.doc-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.doc-filters label:first-child { grid-column: 1/-1; }.doc-filters input { width: 100%; }.doc-form-pair { grid-template-columns: 1fr; gap: 0; }.doc-footer { flex-wrap: wrap; }.doc-footer .doc-button { flex: 1 1 auto; }.doc-row,.doc-panel { padding: 14px; }.doc-row-open strong { font-size: 17px; }.doc-title h1 { font-size: 24px; } }

/* Document screens follow the supplied table, four-panel form and review layout. */
.document-page { overflow: hidden; padding: 18px 18px 0; }
#documentWorkspace { height: 100%; overflow-y: auto; }
#documentWorkspace:has(.doc-fixed-top) { display: flex; flex-direction: column; overflow: hidden; }
.doc-fixed-top { position: relative; z-index: 2; flex: none; }
.doc-list-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.doc-list-heading .doc-header { flex: 1; min-width: 0; margin-bottom: 0; }
.doc-list-heading .doc-button { white-space: nowrap; }
.doc-list-heading .doc-title { gap: 6px 18px; }
.doc-title-icon { display: inline-grid; place-items: center; color: #0554b3; font-size: 36px; }
.doc-search { padding: 17px 19px; border:2px solid #d2e8f8; border-radius: 15px; background: white; box-shadow: 0 4px 12px #0870aa10; }
.doc-search-line { display: flex; align-items: center; gap: 10px; margin: 5px 0; }
.doc-search input,.doc-search select { min-height: 42px; padding: 7px 12px; border:2px solid #b4d5fb; border-radius: 7px; background: white; color: #17458c; font: inherit; }
.doc-search input[type=search] { width: min(540px,100%); }
.doc-search select { min-width: 172px; }
.doc-search label { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.doc-search .doc-button { min-width: 105px; }
.doc-list-scroll { flex: 1; min-height: 0; overflow: auto; padding: 13px 0 12px; }
.doc-table-panel { padding: 13px 14px; border:2px solid #d1e8f8; border-radius: 14px; background: white; box-shadow: 0 4px 12px #0870aa12; }
.doc-table { width: 100%; border-collapse: collapse; color: #103b82; }
.doc-table th { padding: 14px 8px; background: #dcedfa; font-weight: 750; text-align: left; white-space: nowrap; }
.doc-table th:first-child { border-radius: 7px 0 0 0; }.doc-table th:last-child { border-radius: 0 7px 0 0; }
.doc-table td { padding: 12px 8px; border-bottom: 1px solid #d8ebf7; vertical-align: middle; white-space: nowrap; }
.doc-table .doc-subject { width: 44%; min-width: 220px; white-space: normal; }
.doc-subject button { padding: 0; border: 0; background: none; color: #073e97; font: inherit; font-weight: 750; text-align: left; cursor: pointer; }
.doc-subject small { display: block; max-width: 34vw; overflow: hidden; color: #607a9a; text-overflow: ellipsis; white-space: nowrap; }
.doc-pin-cell { width: 30px; }.doc-table-actions { white-space: nowrap; }
.doc-table-actions .doc-button { min-height: 33px; padding: 3px 9px; }
.doc-table-actions > .doc-button,.doc-table-actions > details { vertical-align: middle; }
.doc-table-actions details { position: relative; display: inline-block; margin-left: 4px; }.doc-table-actions summary { padding: 7px; cursor: pointer; list-style: none; font-size: 22px; }
.doc-table-actions details div { position: absolute; z-index: 3; right: 0; display: grid; gap: 4px; min-width: 130px; padding: 7px; border:2px solid #b8d8fa; border-radius: 8px; background: white; box-shadow: 0 5px 18px #12478530; }
.doc-pagination { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 7px; }.doc-pagination div { display: flex; flex-wrap: wrap; gap: 5px; }
.doc-pagination .doc-button { min-width: 35px; min-height: 35px; padding: 3px; }.doc-pagination .doc-button.active { color: white; background: #087df5; }
.doc-key { margin: 10px 2px; color: #4069a3; font-size: 13px; }.doc-key .doc-badge { margin: 0 5px; }
.doc-mobile-items { display: none; }.doc-selector-list { display: grid; gap: 12px; max-width: 750px; }.doc-selector-item { display: flex; align-items: center; gap: 15px; width: 100%; padding: 19px; border:2px solid #c3e0f6; border-radius: 12px; background: white; color: #064ba5; font: inherit; text-align: left; }.doc-selector-item strong { flex: 1; }
.doc-form-shell { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.doc-form-scroll,.doc-review-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 0 14px; }
.doc-form-grid { grid-template-columns: minmax(0,1.12fr) minmax(0,.92fr); align-items: stretch; }
.doc-form-grid .doc-panel { min-height: 250px; }.doc-form-grid h2,.doc-review-grid h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 20px; }
.doc-form-grid h2 small { margin-left: auto; font-size: 13px; font-weight: 500; }
.doc-input-row { display: grid; grid-template-columns: 92px minmax(0,1fr); align-items: center; gap: 10px; margin: 12px 0; }.doc-input-row > div { min-width: 0; }.doc-input-row > label { margin: 0; }
.doc-input-row input:not([type=checkbox]),.doc-input-row textarea,.doc-input-row select { width: 100%; }.doc-input-row small { display: block; color: #627da0; text-align: right; }
.doc-form-grid .doc-field-pair { gap: 10px; }.doc-form-grid .doc-field-pair .doc-input-row { grid-template-columns: auto minmax(0,1fr); }
.doc-dropzone { display: flex !important; flex-direction: column; align-items: center; padding: 18px; border: 1px dashed #79bbfb; border-radius: 10px; background: #f6fbff; text-align: center; cursor: pointer; }.doc-dropzone > span:first-child { color: #0879e9; font-size: 32px; }.doc-dropzone .doc-button { min-height: auto; margin-top: 8px; padding: 5px 25px; }
.doc-file-rows { padding: 0; list-style: none; }.doc-file-rows li { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; padding: 7px; border:2px solid #d7e8f8; border-radius: 6px; }.doc-file-rows .doc-button { min-height: 25px; border: 0; }
.doc-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }.doc-period input[type=date] { width: 165px !important; }.doc-period label { display: flex; align-items: center; margin: 0; white-space: nowrap; }
.doc-inline-hint,.doc-audience-summary { margin: 12px 0 0; padding: 10px 12px; border-radius: 7px; background: #e6f4fc; color: #12509d; font-size: 13px; }
.doc-audience-tabs { display: flex; border:2px solid #afd5f3; border-radius: 7px; overflow: hidden; }.doc-audience-tabs button { flex: 1; min-height: 38px; border: 0; border-right: 1px solid #c5dff5; background: #eff8ff; color: #1253a5; font: inherit; cursor: pointer; }.doc-audience-tabs button.active { background: #0788f5; color: white; }
.doc-all-staff { display: flex !important; align-items: center; gap: 8px !important; }.doc-all-staff input { width: 18px; height: 18px; }
.doc-sticky-footer { flex: none; align-items: center; min-height: 65px; margin: 0 -18px; padding: 9px 18px; border-top: 1px solid #d6e9f6; background: white; }.doc-sticky-footer > span,.doc-sticky-footer > label { flex: 1; font-size: 13px; }
.doc-steps { display: flex; gap: 22px; justify-content: end; margin: -20px 2px 14px; color: #5280b6; }.doc-steps strong { color: #087af4; }
.doc-review-grid { grid-template-columns: minmax(0,1.25fr) minmax(0,.95fr); }.doc-review-grid .doc-summary { grid-template-columns: 100px minmax(0,1fr); margin: 0; }.doc-review-grid .doc-summary dt { color: #0750a5; }.doc-review-grid .doc-summary dd { border-left: 1px solid #cfe4f4; padding-left: 12px; }
.doc-user-preview { margin-top: 14px; padding-top: 14px; border-top: 1px solid #d6e9f6; }.doc-user-preview h3 { margin: 0 0 8px; font-size: 16px; }.doc-user-preview article { display: grid; gap: 7px; padding: 12px; border:2px solid #bcdcf9; border-radius: 8px; }.doc-user-preview article strong { font-size: 17px; }.doc-user-preview article span,.doc-user-preview article small { color: #49709f; }.doc-user-preview article p { margin: 0; white-space: pre-line; }
.doc-audience-table { display: grid; grid-template-columns: 80px minmax(0,1fr); margin: 12px 0 0; }.doc-audience-table dt,.doc-audience-table dd { margin: 0; padding: 10px; border-bottom: 1px solid #d6e9f6; }.doc-audience-table dt { font-weight: 750; }
@media(max-width:1150px) and (min-width:601px) { .doc-table-panel { overflow-x: auto; }.doc-table { min-width: 1050px; }.doc-search-line { flex-wrap: wrap; } }
@media(max-width:900px) { .doc-form-grid,.doc-review-grid { grid-template-columns: 1fr; } }
@media(max-width:600px) {
  .document-page { padding: 10px 10px 64px; }.doc-list-heading { flex-wrap: wrap; }.doc-list-heading .doc-header { flex-basis: 100%; }.doc-title-icon { font-size: 28px; }.doc-title p { font-size: 13px; }
  .doc-search { padding: 10px; }.doc-search-line { flex-wrap: wrap; }.doc-search-line input[type=search] { width: 100%; }.doc-search-line select { flex: 1 1 44%; min-width: 0; }.doc-search-line label { flex: 1 1 100%; }.doc-search-line input[type=date] { min-width: 0; width: 45%; flex: 1; }.doc-search-line .doc-button { flex: 1; }
  .doc-table { display: none; }.doc-mobile-items { display: grid; gap: 9px; }.doc-table-panel { padding: 10px; }.doc-mobile-row { padding: 10px; border:2px solid #d5e8f9; border-radius: 8px; }.doc-mobile-meta,.doc-mobile-badges { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; font-size: 12px; }.doc-mobile-title { width: 100%; margin: 10px 0; padding: 0; border: 0; background: transparent; color: #08469d; font: inherit; font-weight: 750; text-align: left; }.doc-mobile-row .doc-row-actions { margin-top: 8px; }
  .doc-form-grid .doc-panel { min-height: auto; }.doc-input-row,.doc-form-grid .doc-field-pair .doc-input-row { grid-template-columns: 1fr; }.doc-period input[type=date] { width: 44% !important; }.doc-period label { width: 100%; }.doc-steps { justify-content: start; margin: 0 0 12px; }.doc-sticky-footer { flex-wrap: wrap; gap: 5px; margin: 0 -10px; padding: 8px 10px; }.doc-sticky-footer > span,.doc-sticky-footer > label { flex-basis: 100%; }.doc-sticky-footer .doc-button { min-width: 0; padding: 7px; font-size: 13px; }.doc-review-grid .doc-summary { grid-template-columns: 78px minmax(0,1fr); }
}

/* Compact search and a single vertical scrolling region. */
.document-page { background: #f5fbff; }
.doc-list-heading { margin-bottom: 8px; }
.doc-list-heading .doc-header { padding: 0; }
.doc-list-heading .doc-title h1,.doc-panel h2 { color: #003fae; }
.doc-list-heading .doc-title p { color: #2754a3; }
.doc-search { padding: 9px 11px; border-color: #c6e2fb; border-radius: 10px; box-shadow: 0 2px 8px #0d5bb20d; }
.doc-search-line { gap: 7px; margin: 0; flex-wrap: nowrap; }
.doc-search input,.doc-search select { min-height: 36px; padding: 5px 9px; border-color: #a9d0fc; }
.doc-search input[type=search],.doc-search select { flex: 0 1 170px; width: 170px; min-width: 120px; }
.doc-search .doc-button { min-height: 36px; min-width: 68px; padding: 5px 9px; white-space: nowrap; }
.doc-advanced { position: relative; flex: none; color: #0953a9; }
.doc-advanced summary { padding: 7px 8px; border:2px solid #b5d6fa; border-radius: 6px; cursor: pointer; white-space: nowrap; font-weight: 700; list-style: none; }
.doc-advanced summary::after { content: ' ▾'; }.doc-advanced[open] summary::after { content: ' ▴'; }
.doc-advanced > div { position: absolute; z-index: 5; right: 0; top: calc(100% + 5px); display: flex; align-items: center; gap: 6px; padding: 9px; border:2px solid #b5d6fa; border-radius: 8px; background: white; box-shadow: 0 8px 20px #17599d26; }
.doc-advanced input[type=date] { width: 142px; }
.doc-list-scroll { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; padding-top: 9px; }
.doc-table-panel { overflow: visible; padding: 9px 11px; border-color: #c4e1f9; border-radius: 12px; box-shadow: 0 3px 10px #0a66ac13; }
.doc-table-wrap { max-width: 100%; overflow-x: auto; overflow-y: visible; }
.doc-table th { background: #dcefff; color: #003d99; }
.doc-table td { border-bottom-color: #cce3f8; }
.doc-table tbody tr:hover { background: #f1f8ff; }
.doc-panel { border-color: #b9ddfa; box-shadow: 0 2px 8px #0a66ac12; }
.doc-button.doc-primary { background: #007afa; border-color: #007afa; }
.doc-inline-hint,.doc-audience-summary { background: #e2f2ff; color: #06499e; }
.doc-form-scroll,.doc-review-scroll { overscroll-behavior: contain; scrollbar-gutter: stable; }
@media (max-width: 1150px) and (min-width: 601px) { .doc-table-panel { overflow: visible; }.doc-search-line { flex-wrap: wrap; }.doc-advanced { margin-left: auto; } }
@media (max-width: 600px) {
  .document-page { padding: 9px 9px calc(63px + env(safe-area-inset-bottom)); }
  .doc-search { padding: 8px; }
  .doc-search-line { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .doc-search input[type=search] { grid-column: 1/-1; min-width: 0; width: 100%; }
  .doc-search select { width: 100%; min-width: 0; }
  .doc-search .doc-button { min-width: 0; }
  .doc-advanced { grid-column: 1/-1; margin-left: 0; }
  .doc-advanced summary { text-align: center; }
  .doc-advanced > div { left: 0; right: 0; justify-content: center; }
  .doc-advanced input[type=date] { min-width: 0; width: 45%; }
  .doc-list-scroll { scrollbar-gutter: auto; }
  .doc-table-wrap { display: none; }
  .doc-form-scroll,.doc-review-scroll { scrollbar-gutter: auto; }
}

/* Scroll the rows while keeping search and pagination in place. */
.doc-list-scroll { display: flex; overflow: hidden; scrollbar-gutter: auto; padding: 8px 0 10px; }
.doc-table-panel { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.doc-table-wrap { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.doc-table { table-layout: auto; }
.doc-table th { position: sticky; top: 0; z-index: 1; }
.doc-table th,.doc-table td { border-right: 1px solid #c4dcf3; }
.doc-table th:last-child,.doc-table td:last-child { border-right: 0; }
.doc-table .doc-destination-cell { border-left: 1px solid #b2d3f1; border-right: 1px solid #b2d3f1; font-weight: 700; }
.doc-table th:nth-child(4) { border-left: 1px solid #b2d3f1; border-right: 1px solid #b2d3f1; }
.doc-table tbody tr { height: clamp(46px,calc((100dvh - 375px) / var(--doc-visible-rows,5)),82px); cursor: default; }
.doc-table tbody tr:hover { background: #eef7ff; }
.doc-subject .doc-subject-text { display: block; color: #073e97; font-weight: 750; line-height: 1.35; }
.doc-subject small { max-width: 28vw; }
.doc-attachment-cell { text-align: center; }
.doc-badge.file-present { color: #0757ad; background: #dceefe; }
.doc-badge.file-absent { color: #6a7891; background: #edf2f7; }
.doc-demo-inline { color: #42669b; white-space: nowrap; }
.doc-mobile-filter-button { display: none; }
.doc-mobile-back,.doc-mobile-navback { display: none; }
.doc-home-check { display: flex !important; align-items: center; gap: 8px !important; margin: 0 0 4px !important; }
.doc-home-check input { width: 18px; height: 18px; }
.doc-key { margin: auto 2px 6px; }
.doc-pagination { flex: none; margin: 0; padding: 8px 2px 1px; border-top: 1px solid #d4e7f7; }
.doc-form-scroll,.doc-review-scroll { overflow-x: hidden; }
@media(min-width:901px) {
  .doc-form-scroll,.doc-review-scroll { overflow-y: auto; overscroll-behavior: contain; }
  .doc-form-grid { gap: 9px 12px; }
  .doc-form-grid .doc-panel { min-height: 0; padding: 12px 15px; }
  .doc-form-grid h2,.doc-review-grid h2 { margin-bottom: 9px; font-size: 18px; }
  .doc-form-grid .doc-input-row { margin: 7px 0; }
  .doc-form-grid textarea { min-height: 65px; max-height: 90px; }
  .doc-form-grid .doc-dropzone { padding: 8px; }
  .doc-form-grid .doc-dropzone > span:first-child { font-size: 23px; }
  .doc-form-grid .doc-dropzone .doc-button { margin-top: 3px; }
  .doc-form-grid .doc-file-rows { margin: 4px 0; }
  .doc-form-grid .doc-file-rows li { padding: 3px 6px; }
  .doc-form-grid .doc-inline-hint { margin-top: 5px; padding: 6px 9px; }
  .doc-form-grid .doc-audience-tabs button { min-height: 33px; }
  .doc-form-grid .doc-audience-summary { margin-top: 5px; padding: 6px 9px; }
  .doc-form-grid .doc-all-staff { margin: 6px 0; }
  .doc-form-scroll > .doc-demo-note,.doc-review-scroll > .doc-demo-note { margin: 6px 0; padding: 6px 9px; }
  .doc-review-grid { gap: 10px; }
  .doc-review-grid .doc-panel { padding: 11px 15px; }
  .doc-review-grid .doc-summary { gap: 7px; }
  .doc-review-grid .doc-audience-table { margin-top: 6px; }
  .doc-review-grid .doc-audience-table dt,.doc-review-grid .doc-audience-table dd { padding: 6px 9px; }
  .doc-review-grid .doc-user-preview { margin-top: 9px; padding-top: 8px; }
  .doc-review-grid .doc-user-preview article { gap: 4px; padding: 8px; }
}
@media (max-width:900px) {
  .doc-form-scroll,.doc-review-scroll { overflow-y: auto; }
  .doc-table tbody tr { height: 58px; }
}
@media(max-width:600px) {
  .doc-list-heading { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 5px; margin-bottom: 6px; }
  .doc-list-heading .doc-mobile-back { display: inline-block; grid-column: 1; min-height: 35px; padding: 3px 5px; font-size: 13px; white-space: nowrap; }
  .doc-list-heading .doc-header { grid-column: 2; min-width: 0; }
  .doc-list-heading .doc-title { display: block; }
  .doc-list-heading .doc-title-icon,.doc-list-heading .doc-title p,.doc-list-heading .doc-demo-inline,.doc-list-heading [data-doc-action="export"] { display: none; }
  .doc-list-heading .doc-title h1 { overflow: hidden; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
  .doc-list-heading .doc-list-add { grid-column: 3; min-width: 36px; min-height: 35px; padding: 4px; font-size: 0; }
  .doc-list-heading .doc-list-add::after { content: '＋'; font-size: 22px; line-height: 1; }
  .doc-list-heading .doc-mobile-filter-button { display: inline-block; grid-column: 4; min-height: 35px; padding: 4px 8px; font-size: 13px; }
  .doc-mobile-navback { display: block; margin-bottom: 7px; }
  .doc-mobile-navback .doc-button { min-height: 35px; padding: 3px 8px; }
  .doc-search { display: none; }
  .doc-search.mobile-open { display: block; }
  .doc-list-scroll { padding: 6px 0; }
  .doc-table-panel { padding: 7px; }
  .doc-mobile-items { flex: 1; min-height: 0; align-content: start; gap: 5px; overflow-y: auto; overscroll-behavior: contain; }
  .doc-mobile-row { padding: 7px 9px; }
  .doc-mobile-title { margin: 5px 0; }
  .doc-mobile-row .doc-row-actions { margin-top: 4px; }
  .doc-mobile-row .doc-row-actions .doc-button { min-height: 30px; }
.doc-mobile-row [data-doc-action="pin"],.doc-key { display: none; }
  .doc-pagination .doc-button { min-width: 29px; min-height: 30px; }
}

/* PC administrator hub and the separate photo review screen. */
.admin-page,.photo-inbox-page { min-width: 0; height: 100%; padding: 18px 20px; overflow-y: auto; background: #f4fbff; }
.admin-page { padding: 20px 22px; background: linear-gradient(160deg,#faffff,#eff9ff); }
.admin-heading,.photo-inbox-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.admin-heading-title { display: flex; align-items: center; gap: 15px; min-width: 0; color: #003ab5; }
.admin-heading-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; }
.admin-heading-icon svg { width: 44px; height: 44px; }
.admin-heading-title h1,.photo-inbox-heading h1 { margin: 0; color: #073daf; font-size: 29px; }
.admin-heading-title p,.photo-inbox-heading p { margin: 0; color: #305dad; font-size: 14px; }
.admin-heading-title h1 { font-size: clamp(25px,2.2vw,34px); white-space: nowrap; }
.admin-info { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border:2px solid #d5ebf8; border-radius: 8px; background: #eaf7fd; color: #1451af; }
.admin-info > span { font-size: 22px; }
.admin-info p { margin: 0; font-size: 12px; line-height: 1.55; white-space: nowrap; }
.admin-search { position: relative; display: block; width: min(300px,100%); }
.admin-search > span { position: absolute; top: 6px; left: 11px; color: #638dd3; font-size: 25px; }
.admin-search input { height: 48px; padding: 0 10px 0 36px; font-size: 15px; border-color: #a7cefa; }
.admin-sections { display: grid; gap: 13px; }
.admin-section { padding: 13px 14px 15px; border:2px solid #d2e8f9; border-radius: 11px; background: #f9fdff; }
.admin-section h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: #063bc1; font-size: 20px; }
.admin-section h2 svg { width: 28px; height: 28px; }
.admin-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.admin-cards-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.admin-cards-three:has(> :only-child) { grid-template-columns: 1fr; }
.admin-cards-three:has(> :first-child:nth-last-child(2)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.admin-card { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: clamp(82px,9vh,104px); padding: 12px 14px; text-align: left; color: #063bb4; background: white; border:2px solid #c8e2f8; border-radius: 9px; cursor: pointer; }
.admin-card:hover,.admin-card:focus-visible { background: #e9f5ff; border-color: #69a9f5; }
.admin-card-icon { display: grid; place-items: center; flex: 0 0 54px; color: #0069ee; }
.admin-card-icon svg { width: 46px; height: 46px; }
.admin-card-text { min-width: 0; }
.admin-card strong,.admin-card small { display: block; }
.admin-card strong { font-size: 18px; line-height: 1.35; }
.admin-card small { margin-top: 5px; color: #355bab; font-size: 14px; line-height: 1.4; }
.admin-card-arrow { margin-left: auto; color: #006cef; font-size: 26px; }
.admin-selection,.admin-note,.admin-empty { margin: 12px 0 0; padding: 12px 15px; border:2px solid #cde4f8; border-radius: 9px; background: white; }
.admin-selection-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-selection-heading h2 { margin: 0; font-size: 19px; color: #08419f; }
.admin-selection-heading button { border: 0; color: #1c5da8; background: transparent; font-size: 26px; cursor: pointer; }
.admin-selection p { margin: 9px 0; }
.admin-note { color: #24549a; font-size: 13px; }
.admin-permissions { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.admin-permissions label { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.admin-permissions input { width: 18px; height: 18px; }
.photo-inbox-heading > span { font-weight: 700; color: #1959a3; }
.photo-inbox-heading > div:last-child { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.photo-inbox-heading :is([data-photo-refresh],[data-photo-categories],[data-photo-destinations]) { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; font:inherit; padding:6px 12px; border:2px solid #8cc5fa; border-radius:5px; background:#fff; color:#0754c5; cursor:pointer; }
.photo-inbox-filters { display: flex; gap: 9px; margin-bottom: 15px; }
.photo-inbox-filters input,.photo-inbox-filters select { height: 40px; padding: 7px 10px; font-size: 14px; border:2px solid #a9d0f3; border-radius: 7px; background: white; }
.photo-inbox-filters input { width: min(400px,100%); }
.photo-inbox-filters .photo-inbox-deleted { display:flex; align-items:center; gap:6px; color:#245788; white-space:nowrap; }
.photo-inbox-filters .photo-inbox-deleted input { width:18px; height:18px; }
.photo-inbox-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.photo-inbox-card { display: flex; gap: 13px; min-width: 0; padding: 13px; border:2px solid #c7dff6; border-radius: 10px; background: white; }
.photo-inbox-card img { width: 116px; height: 116px; flex: none; border-radius: 8px; object-fit: cover; background: #edf5fb; }
.photo-inbox-details { min-width: 0; }
.photo-inbox-details strong { overflow-wrap: anywhere; color: #093fa4; font-size: 16px; }
.photo-inbox-details p { margin: 6px 0; }
.photo-inbox-details small { display: block; margin-top: 4px; color: #446796; }
.photo-inbox-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.photo-inbox-actions button { padding: 5px 10px; border:2px solid #98c9ef; border-radius: 7px; color: #0753a9; background: #f4faff; cursor: pointer; }
.photo-inbox-actions .photo-danger { border-color:#dc7b82; color:#a91f2b; background:#fff6f6; }
.photo-delete-dialog { width:min(480px,calc(100vw - 32px)); border:2px solid #c5dbef; border-radius:12px; padding:24px; color:#123f72; background:white; box-shadow:0 12px 45px #102c4b44; }
.photo-delete-dialog::backdrop { background:#102c4b88; }
.photo-delete-dialog h2 { margin:0 0 14px; color:#a91f2b; }
.photo-delete-dialog p { line-height:1.6; overflow-wrap:anywhere; }
.photo-delete-dialog > div { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
.photo-delete-dialog button { padding:9px 18px; border:2px solid #8cc5fa; border-radius:7px; background:#f4faff; color:#0754c5; font:inherit; cursor:pointer; }
.photo-delete-dialog button.photo-danger { border-color:#b91f2b; background:#b91f2b; color:white; }
.photo-inbox-empty { padding: 40px 14px; text-align: center; border:2px solid #c7dff6; border-radius: 10px; background: white; }
.photo-inbox-table-wrap { overflow:auto; border:2px solid #c7dff6; border-radius:8px; background:white; }.photo-inbox-table { width:100%; border-collapse:collapse; font-size:14px; }.photo-inbox-table th,.photo-inbox-table td { padding:11px 9px; border-bottom:1px solid #d8e8f7; text-align:left; white-space:nowrap; }.photo-inbox-table th { background:#e6f4ff; color:#0644aa; }.photo-inbox-table tr[data-photo-receipt] { cursor:pointer; }.photo-inbox-table tr:hover { background:#f1f9ff; }.photo-inbox-table button,.photo-inbox-page [data-photo-back] { border:2px solid #8cc5fa; border-radius:5px; padding:6px 12px; color:#0754c5; background:#fff; cursor:pointer; }
.doc-person-list { display:grid; gap:7px; max-height:190px; overflow:auto; margin-top:10px; padding:10px; border:2px solid #bfd9f1; border-radius:6px; }.doc-person-list label { display:flex; align-items:center; gap:8px; }.doc-person-list label[hidden] { display:none; }.doc-person-list input[type="checkbox"] { width:16px; height:16px; flex:none; }
.doc-sent-photos { margin: 9px 0 0; padding: 9px; border:2px solid #c7dff6; border-radius: 8px; color: #0850a3; background: #f4faff; }
.doc-sent-photos > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.doc-sent-photos .doc-button { min-height: 30px; padding: 4px 9px; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 1250px) and (min-width: 901px) { .admin-page { padding: 14px 15px; } .admin-heading { gap: 9px; } .admin-heading-title { gap: 7px; } .admin-heading-title p { font-size: 12px; } .admin-info { padding: 6px; } .admin-info p { font-size: 10px; } .admin-search { width: 165px; } .admin-card { gap: 8px; min-height: 79px; padding: 8px; } .admin-card-icon { flex-basis: 35px; } .admin-card-icon svg { width: 35px; height: 35px; } .admin-card strong { font-size: 14px; } .admin-card small { font-size: 11px; } .admin-card-arrow { font-size: 19px; } }
@media (max-width: 900px) and (min-width: 601px) { .admin-cards,.admin-cards-three { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 1100px) and (min-width: 601px) { .photo-inbox-grid { grid-template-columns: 1fr; } }
.home-delivery-page { overflow-y: auto; padding: 18px 22px; color: #063fae; background: #f7fcff; }
.hd-heading { margin-bottom: 12px; }
.hd-heading > button { padding: 0; border: 0; background: none; color: #075bea; font-weight: 700; cursor: pointer; }
.hd-title { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 10px; }
.hd-title h1 { margin: 0; font-size: 29px; color: #063bb3; }
.hd-title p { margin: 0; font-size: 15px; }
.hd-heading-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.hd-heading-actions > button:not(.hd-primary),.hd-subpage-title > div > button:not(.hd-primary) { padding: 10px 16px; border:2px solid #8cc5fa; border-radius: 6px; background: white; color: #075aeb; font-weight: 700; cursor: pointer; }
.hd-primary { padding: 10px 18px; color: white; background: #0879f5; border:2px solid #0879f5; border-radius: 6px; font-weight: 700; cursor: pointer; }
.hd-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.hd-stats > div { display: flex; justify-content: center; align-items: center; gap: 20px; min-height: 82px; border:2px solid #c0e0f6; border-radius: 8px; background: white; }
.hd-stats strong { color: #0447bd; }
.hd-stats b { color: #0876eb; font-size: 29px; }
.hd-stats small { margin-left: 3px; font-size: 15px; }
.hd-stats > div:first-child b { color: #04a278; }
.hd-stats > div:last-child b { color: #ed4259; }
.hd-main { display: grid; grid-template-columns: minmax(0,3.1fr) minmax(265px,1fr); align-items: start; gap: 12px; }
.hd-filters,.hd-table-wrap,.hd-preview,.hd-edit,.hd-note { min-width: 0; margin-bottom: 12px; padding: 13px; border:2px solid #c5e5f8; border-radius: 9px; background: white; }
.hd-filters h2,.hd-table-wrap h2,.hd-preview h2,.hd-edit h2 { margin: 0 0 11px; font-size: 18px; color: #083fc0; }
.hd-filters > div { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.hd-filters label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.hd-filters input,.hd-filters select,.hd-form-grid input,.hd-form-grid select,.hd-form-grid textarea { box-sizing: border-box; width: 100%; min-height: 39px; padding: 7px 9px; color: #0640a6; background: white; border:2px solid #abcff5; border-radius: 5px; font: inherit; }
.hd-filters input,.hd-filters select { height: 42px; min-height: 42px; }
.hd-filters label { flex: 0 1 160px; min-width: 0; }
.hd-filters label:first-child { flex: 0 1 240px; }
.hd-filters button,.hd-table button,.hd-edit-head button,.hd-form-actions button:not(.hd-primary),.hd-outline { padding: 7px 11px; color: #075aeb; background: white; border:2px solid #8cc5fa; border-radius: 5px; cursor: pointer; }
.hd-table-scroll { overflow-x: auto; }
.hd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hd-table th,.hd-table td { padding: 9px 6px; border:2px solid #d5e8f7; text-align: left; vertical-align: middle; }
.hd-table th { background: #e5f3ff; text-align: center; white-space: nowrap; }
.hd-table td:nth-child(4) { min-width: 180px; }
.hd-table td:last-child { min-width: 95px; white-space: nowrap; }
.hd-table td:last-child button { padding: 5px 7px; margin-right: 3px; }
.hd-table-wrap > p { margin: 10px 0 0; font-size: 13px; }
.hd-badge { display: inline-block; padding: 4px 7px; border-radius: 5px; font-style: normal; white-space: nowrap; }
.hd-badge.important { background: #ff6681; color: white; }.hd-badge.confirm { background: #ffe4c3; color: #b65d00; }.hd-badge.live { background: #c5f9e7; color: #078567; }.hd-badge.quiet { background: #dfedfb; color: #155a9d; }
.hd-preview-step { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 10px; }
.hd-preview-step button { border:2px solid #a3d3fb; background: white; color: #0a6bec; border-radius: 5px; font-size: 20px; cursor: pointer; }
.hd-preview-card { padding: 12px; border:2px solid #d0e9fd; border-radius: 7px; min-height: 245px; }
.hd-preview-meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 13px; }
.hd-preview-meta b { padding: 4px; border:2px solid #b2ddf7; }.hd-preview-meta em { padding: 4px 7px; color: white; background: #f35e70; border-radius: 4px; font-style: normal; }
.hd-preview-card h3 { font-size: 16px; }.hd-preview-card p { line-height: 1.6; font-size: 14px; }
.hd-dots { display: flex; justify-content: center; }.hd-dots button { border: 0; color: #afcceb; background: none; cursor: pointer; }.hd-dots button.active { color: #125bea; }
.hd-outline { width: 100%; margin-top: 14px; font-weight: 700; }
.hd-preview-note,.hd-note { font-size: 13px; line-height: 1.5; }
.hd-edit { margin-top: 14px; }.hd-edit-head { display: flex; justify-content: space-between; }.hd-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.hd-form-grid label { display: grid; gap: 6px; min-width: 0; font-size: 14px; font-weight: 700; }.hd-body-field { grid-column: 1 / -1; }.hd-flags,.hd-form-actions { display: flex; gap: 15px; align-items: center; margin-top: 15px; }.hd-flags label { display: inline-flex; align-items: center; gap: 7px; }.hd-flags input[type="checkbox"] { width: 18px; height: 18px; margin: 0; padding: 0; flex: none; }.hd-form-actions { justify-content: end; }.hd-confirm { padding: 10px; background: #eaf5ff; }.hd-error { color: #c02939; }
.hd-recipient-field { grid-column:1/-1; border:2px solid #abcff5; border-radius:6px; }.hd-recipient-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:6px; max-height:150px; overflow:auto; margin-top:8px; }.hd-recipient-list label { display:flex; align-items:center; gap:7px; }.hd-recipient-list input[type="checkbox"] { width:16px; height:16px; min-height:16px; flex:none; }.hd-recipient-field[hidden],.hd-recipient-list label[hidden] { display:none; }
.hd-table tbody tr[data-hd-row] { cursor: pointer; }.hd-table tbody tr[data-hd-row]:hover,.hd-table tbody tr[data-hd-row]:focus-visible { background: #eaf5ff; outline: 2px solid #8cc5fa; outline-offset: -2px; }
.hd-subpage { max-width: 980px; margin: 4px auto; }.hd-subpage > button { padding: 7px 0; border: 0; background: none; color: #075bea; font-weight: 700; cursor: pointer; }.hd-subpage .hd-edit { margin-top: 12px; padding: 20px; }.hd-subpage-title { display: flex; justify-content: space-between; align-items: center; }.hd-subpage-title h1 { color: #063bb3; }.hd-detail { padding: 24px; border:2px solid #c5e5f8; border-radius: 9px; background: white; }.hd-detail h2 { margin: 0 0 18px; color: #063bb3; }.hd-detail dl { margin: 0; }.hd-detail dl div { display: grid; grid-template-columns: 130px 1fr; gap: 15px; padding: 10px 0; border-bottom: 1px solid #e1eff9; }.hd-detail dt { font-weight: 700; }.hd-detail dd { margin: 0; }.hd-detail-body { line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.hd-form-grid input,.hd-form-grid select { height: 42px; min-height: 42px; padding: 7px 10px; }
.hd-form-grid textarea { height: auto; min-height: 112px; }
.hd-subpage-title > div { display: flex; gap: 9px; }
@media (max-width: 1250px) { .hd-main { grid-template-columns: 1fr; }.hd-stats > div { gap: 8px; }.home-delivery-page { padding: 12px; } }
@media (max-width: 600px) { .home-delivery-page { display: none !important; } }
.hd-mobile-detail { width: min(90vw,420px); padding: 20px; border:2px solid #94cafa; border-radius: 10px; color: #10449e; line-height: 1.6; }.hd-mobile-detail::backdrop { background: #142c5680; }.hd-mobile-detail form { text-align: right; }.hd-mobile-detail button { padding: 8px 18px; border:2px solid #4d9aef; border-radius: 6px; background: #eaf5ff; color: #0755b2; }
.company-page { overflow-y: auto; padding: 16px 20px; background: #f7fcff; color: #063dae; }
.co-heading > button,.co-confirm > button { padding: 0; border: 0; background: none; color: #0762ea; font-weight: 700; cursor: pointer; }
.co-heading > div { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin: 8px 0 14px; }.co-heading h1 { margin: 0; color: #053aae; font-size: 30px; }.co-heading p { margin: 0; }.co-heading > div > button { margin-left: auto; padding: 9px 15px; border:2px solid #a5ccf4; border-radius: 6px; color: #0756c5; background: white; cursor: pointer; }
.co-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin-bottom: 12px; }.co-tabs button { min-height: 43px; border:2px solid #bddbf4; border-radius: 7px 7px 0 0; color: #0640bb; background: #eaf6ff; font-weight: 750; cursor: pointer; }.co-tabs button.active { color: white; background: #0978f0; }
#companyForm { display: block; }.co-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.co-panel,.co-office-editor,.co-confirm { min-width: 0; padding: 13px; border:2px solid #c7e3f7; border-radius: 9px; background: white; }.co-panel h2,.co-office-editor h2 { margin: 0 0 12px; color: #0740b9; font-size: 20px; }.co-panel p { margin: 0 0 9px; line-height: 1.5; font-size: 13px; }
.co-row { display: grid; grid-template-columns: 165px minmax(0,1fr); align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; font-weight: 700; }.co-row > span { white-space: nowrap; }.co-row em { margin-left: 8px; color: #ee3752; font-size: 12px; font-style: normal; }.co-row input,.co-row output,.co-office-search input,.co-office-search select,.co-office-editor input:not([type="checkbox"]),.co-office-editor select { box-sizing: border-box; width: 100%; height: 37px; padding: 6px 10px; border:2px solid #b2d3f6; border-radius: 5px; background: #fff; color: #093fa6; font: inherit; }.co-row output { display: flex; align-items: center; background: #eef3f6; color: #55718f; }
.co-actions { position:static; display: flex; align-items: center; justify-content: end; gap: 10px; margin-top: 12px; padding: 9px; border:2px solid #d1e5f8; border-radius: 8px; background: #f8fcff; }.co-actions span { margin-right: auto; font-size: 13px; }.co-primary { padding: 9px 16px; border:2px solid #0572e8; border-radius: 6px; background: #0b78ee; color: white; font-weight: 750; cursor: pointer; }
.co-office-top button:not(.co-primary),.co-office-scroll button,.co-office-editor button:not(.co-primary),.co-actions button:not(.co-primary),.co-confirm-actions button:not(.co-primary) { padding: 7px 10px; border:2px solid #8cc3fa; border-radius: 5px; color: #0754c5; background: white; cursor: pointer; }
#company-offices { display: none; grid-column: 1 / -1; }.co-office-view #company-offices { display: block; }.co-office-view .co-panel:not(#company-offices) { display: none; }.co-office-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.co-office-top > div:last-child { display: flex; gap: 7px; }.co-office-search { display: flex; align-items: center; gap: 16px; margin: 10px 0; }.co-office-search > input { max-width: 320px; }.co-office-search label { display: flex; align-items: center; gap: 8px; }.co-office-search select { width: 155px; }.co-office-scroll { overflow-x: auto; }.co-office-scroll table { width: 100%; border-collapse: collapse; font-size: 14px; }.co-office-scroll th,.co-office-scroll td { padding: 10px; border:2px solid #d3e5f5; text-align: left; }.co-office-scroll th { background: #eaf5fe; }.co-office-scroll td { white-space: nowrap; }.co-office-scroll button { min-width: 70px; }.co-status { padding: 5px 11px; border-radius: 5px; background: #fff2df; color: #b46c00; }.co-status.on { background: #e1faea; color: #168349; }.co-office-hint { margin-top: 13px !important; padding: 10px; background: #eef8ff; }.co-office-editor { max-width: 760px; margin: 8px auto; padding: 22px; }.co-office-page > button { padding: 0; border: 0; background: none; color: #075bea; font-weight: 700; cursor: pointer; }.co-office-page h1 { margin: 15px 0; color: #0640ae; }.co-office-editor form { gap: 14px; }.co-office-editor label:not(.co-office-enable) { display: grid; grid-template-columns: 160px 1fr; align-items: center; font-size: 14px; }.co-office-editor output { color: #60799a; }.co-office-editor form > div { display: flex; justify-content: end; gap: 9px; }.co-office-top button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 1100px) { .co-grid { grid-template-columns: 1fr; }.co-tabs button { font-size: 12px; }.co-row { grid-template-columns: 145px minmax(0,1fr); } }
@media (max-width: 600px) { .company-page { display: none !important; } }
@media (max-width: 600px) { .admin-cards-three,.admin-cards-four { grid-template-columns:1fr; } .admin-search { width:100%; } .admin-page { overflow:auto; } }

#company-logo .co-image-row { margin-bottom: 10px; } #company-logo small { color: #466eaa; }
.co-image-row { display: flex; align-items: center; gap: 12px; }.co-image-row img { width: min(100%,185px); height: 100px; object-fit: contain; border:2px solid #bad8f1; border-radius: 6px; }.co-image-row > div { display: grid; gap: 8px; }.co-image-row button { padding: 7px 10px; border:2px solid #8cc3fa; border-radius: 5px; color: #0754c5; background: white; cursor: pointer; }.co-office-view .co-actions { display: none; }
.co-confirm { max-width: 900px; margin: 15px auto; }.co-confirm h1 { color: #0640ae; }.co-confirm-grid > div { display: grid; grid-template-columns: 190px 1fr; padding: 12px 7px; border-bottom: 1px solid #d9e9f6; }.co-confirm-logo { max-width: 180px; max-height: 75px; object-fit: contain; }.co-confirm-actions { display: flex; justify-content: end; gap: 10px; margin-top: 15px; }
.co-excel-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:12px; }
.co-excel-actions button { padding:7px 10px; border:2px solid #8cc3fa; border-radius:5px; color:#0754c5; background:#fff; cursor:pointer; }
.co-features { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-bottom:10px; }
.co-features label { display:flex; align-items:center; gap:7px; font-size:14px; }
.co-features input,.co-office-enable input { appearance:auto; width:17px; height:17px; margin:0; flex:none; }
.co-office-enable { display:flex; align-items:center; gap:9px; font-size:14px; font-weight:700; }
.co-office-top > div:last-child { flex-wrap:wrap; justify-content:flex-end; }
.co-office-top > p { margin:0; }
.co-confirm .co-office-scroll { max-height:55vh; overflow:auto; }
/* Department and role administration */
.organization-page { overflow-y:auto; padding:17px 20px; background:#f5fbff; color:#063dae; }
.org-back button,.org-form-page > button { border:0; background:none; padding:0; color:#0762ea; font-weight:700; cursor:pointer; }
.org-heading { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin:10px 0 16px; }
.org-heading h1 { margin:0; font-size:29px; }.org-heading > button { margin-left:auto; }
.org-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-bottom:14px; }
.org-tabs button { min-height:43px; border:2px solid #bddbf4; border-radius:7px 7px 0 0; background:#eaf6ff; color:#0640bb; font-weight:700; cursor:pointer; }
.org-tabs button.active { background:#0878ee; color:white; }
.org-panel,.org-form-page { border:2px solid #c7e3f7; border-radius:9px; padding:16px; background:white; }
.org-panel h2 { margin:0 0 10px; font-size:20px; }.org-panel p { line-height:1.5; }
.org-list-head,.org-list-head > div,.org-filter,.org-choice,.org-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.org-list-head { justify-content:space-between; }.org-list-head > div { justify-content:flex-end; }
.organization-page button:not(.org-primary):not(.org-tabs button):not(.org-back button):not(.org-form-page > button) { border:2px solid #8cc3fa; border-radius:5px; padding:7px 10px; background:white; color:#0754c5; cursor:pointer; }
.organization-page .org-primary { border:2px solid #0572e8; border-radius:6px; padding:8px 15px; background:#0b78ee; color:white; font-weight:700; cursor:pointer; }
.org-filter { margin:14px 0; }.org-filter input { width:min(100%,330px); }
.org-filter input,.org-filter select,.org-choice select,.org-form-page input:not([type=checkbox]),.org-form-page select { box-sizing:border-box; min-height:37px; border:2px solid #b2d3f6; border-radius:5px; padding:6px 10px; background:white; color:#093fa6; font:inherit; }
.org-table-scroll { max-height:55vh; overflow:auto; }.org-table-scroll table { width:100%; border-collapse:collapse; font-size:14px; }.org-table-scroll th,.org-table-scroll td { padding:10px; border:2px solid #d3e5f5; text-align:left; }.org-table-scroll th { background:#eaf5fe; white-space:nowrap; }.org-status { border-radius:5px; padding:5px 9px; background:#fff2df; color:#b46c00; }.org-status.on { background:#e1faea; color:#168349; }
.org-form-page { max-width:760px; margin:10px auto; padding:24px; }.org-form-page.org-wide { max-width:1100px; }.org-form-page h1 { margin:14px 0; }.org-form-page form > label:not(.org-check) { display:grid; grid-template-columns:170px minmax(0,1fr); align-items:center; gap:12px; margin:12px 0; }.org-form-page output { color:#55718f; }.org-check,.org-permission-items label,.org-group-head { display:flex; align-items:center; gap:9px; }.org-check { margin:16px 0; }.org-check input,.org-permission-items input,.org-group-head input { appearance:auto; width:17px; height:17px; flex:none; margin:0; }.org-actions { justify-content:flex-end; margin-top:18px; }.org-form-page dl { display:grid; grid-template-columns:170px 1fr; gap:12px; }.org-form-page dt { font-weight:700; }
.org-choice { margin-bottom:14px; }.org-choice label { display:flex; align-items:center; gap:9px; }.org-choice select { min-width:200px; }.org-permission-layout { display:grid; grid-template-columns:minmax(210px,1fr) minmax(0,3fr); gap:12px; align-items:start; }.org-permission-table { max-height:60vh; overflow:auto; }.org-group { margin:12px 0; border:2px solid #c7e3f7; border-radius:7px; overflow:hidden; }.org-group-head { padding:10px; background:#eaf6ff; cursor:pointer; }.org-group-head span { margin-left:auto; }.org-permission-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:14px; }.org-permission-items label { cursor:pointer; }.org-sticky { position:static; display:flex; justify-content:flex-end; gap:8px; padding:10px; border:2px solid #d1e5f8; background:#f8fcff; }
@media(max-width:1000px) { .org-permission-layout { grid-template-columns:1fr; }.org-permission-items { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .organization-page { display:none!important; } }
/* Employee administration */
.employee-page { min-width:0; height:100%; overflow-y:auto; padding:16px 20px; background:#f5fbff; color:#063dae; }
.emp-back,.emp-confirm > button { border:0; padding:0; background:none; color:#0762ea; font-weight:700; cursor:pointer; }
.emp-heading { display:flex; flex-wrap:wrap; align-items:center; gap:15px; margin:12px 0 15px; }.emp-heading h1 { margin:0; font-size:29px; }.emp-heading p { margin:0; }.emp-heading > button,.emp-header-actions { margin-left:auto; }.emp-header-actions { display:flex; flex-wrap:wrap; gap:8px; }
.employee-page button:not(.emp-primary):not(.emp-back):not(.emp-confirm > button) { border:2px solid #8cc3fa; border-radius:5px; padding:7px 10px; color:#0754c5; background:white; cursor:pointer; }.employee-page button:disabled { opacity:.55; cursor:not-allowed!important; }
.employee-page .emp-primary { border:2px solid #0572e8; border-radius:6px; padding:9px 16px; background:#0b78ee; color:white; font-weight:700; cursor:pointer; }
.emp-panel,.emp-confirm { border:2px solid #c7e3f7; border-radius:9px; padding:14px; background:white; }.emp-panel h2 { margin:0 0 14px; font-size:19px; }.emp-panel p { line-height:1.5; font-size:13px; }.emp-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:12px; }.emp-stats > div { display:grid; gap:6px; border:2px solid #c7e3f7; border-radius:8px; padding:13px; background:white; }.emp-stats b { font-size:25px; }.emp-stats strong { font-size:14px; }
.emp-filter-grid { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }.emp-filter-grid > label { display:flex; align-items:center; gap:6px; }.emp-filter-grid input,.emp-filter-grid select,.emp-form-grid input:not([type=checkbox]):not([type=file]),.emp-form-grid select { box-sizing:border-box; min-height:37px; border:2px solid #b2d3f6; border-radius:5px; padding:6px 10px; background:white; color:#093fa6; font:inherit; }.emp-filter-grid #empQuery { width:min(100%,300px); }.emp-filter-grid select { min-width:145px; }.emp-search { margin-bottom:12px; }
.emp-table-scroll { overflow:auto; max-height:54vh; }.emp-table-scroll table { border-collapse:collapse; width:100%; font-size:14px; }.emp-table-scroll th,.emp-table-scroll td { padding:10px; border:2px solid #d3e5f5; text-align:left; }.emp-table-scroll th { background:#eaf5fe; white-space:nowrap; }.emp-table-scroll td { white-space:nowrap; }.emp-name img { width:28px; height:28px; border-radius:50%; object-fit:cover; vertical-align:middle; }.emp-badge { display:inline-block; min-width:70px; text-align:center; border-radius:5px; padding:5px; }.emp-badge.good { background:#dff9e9; color:#157343; }.emp-badge.warn { background:#fff0e2; color:#bd5800; }
.emp-pager { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; }.emp-pager > div { display:flex; align-items:center; flex-wrap:wrap; gap:4px; }.emp-pager label { display:flex; align-items:center; gap:6px; margin-right:8px; }.emp-pager select { min-height:34px; padding:4px 8px; border:2px solid #b2d3f6; border-radius:5px; background:white; color:#093fa6; font:inherit; }.emp-pager button.active { background:#0b78ee!important; color:white!important; }.emp-help { display:flex; align-items:center; flex-wrap:wrap; gap:15px; margin-top:12px; }.emp-help span { font-size:13px; }
.emp-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.emp-form-grid .emp-panel > label:not(.emp-checkbox) { display:grid; grid-template-columns:150px minmax(0,1fr); align-items:center; gap:8px; margin:10px 0; font-size:14px; }.emp-form-grid label span { font-weight:700; }.emp-form-grid em { color:#e33b50; font-size:12px; font-style:normal; }.emp-form-grid .emp-panel > label:not(.emp-checkbox) input,.emp-form-grid .emp-panel > label:not(.emp-checkbox) select { width:100%; }.emp-form-grid output { color:#60799a; }.emp-checkbox { display:flex; align-items:center; gap:9px; margin:13px 0; font-size:14px; }.emp-checkbox input { appearance:auto; width:17px; height:17px; margin:0; flex:none; }.emp-rule { border-radius:5px; padding:10px; background:#e9f5ff; }.emp-static { display:flex; align-items:center; gap:12px; padding:10px; border-bottom:1px solid #d3e5f5; }.emp-static b { min-width:120px; }.emp-photo { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:12px; }.emp-photo > div { display:grid; place-items:center; width:85px; height:85px; border-radius:50%; background:#e6f3fc; font-size:36px; overflow:hidden; }.emp-photo img { width:100%; height:100%; object-fit:cover; }
.emp-bottom { display:flex; align-items:center; flex-wrap:wrap; gap:12px; position:static; z-index:1; margin-top:12px; padding:10px; border:2px solid #c7e3f7; border-radius:7px; background:#f8fcff; }.emp-bottom span { margin-left:auto; font-size:13px; }.emp-operations { margin-top:12px; }.emp-operations > div { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }.emp-confirm { max-width:1000px; margin:12px auto; padding:22px; }.emp-confirm h1 { margin:14px 0; }.emp-confirm dl { display:grid; grid-template-columns:170px 1fr; gap:10px; }.emp-confirm dt { font-weight:700; }.emp-confirm dd { margin:0; min-width:0; overflow-wrap:anywhere; }.emp-confirm-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; margin-top:15px; }.emp-import { max-width:1200px; }.emp-notice { margin-bottom:10px; padding:10px; border:2px solid #74b8f1; border-radius:6px; background:#eaf7ff; }
@media(max-width:1050px) { .emp-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }.emp-form-grid { grid-template-columns:1fr; } }
@media(max-width:600px) { .employee-page { display:none!important; } }
/* Management search fields must override the 56px login input height. */
.employee-page .emp-filter-grid input[type="search"],
.organization-page .org-filter input[type="search"],
.company-page .co-office-search input[type="search"] { box-sizing:border-box; height:37px; min-height:37px; padding:6px 10px; font-size:14px; }
.document-page .doc-search input[type="search"] { box-sizing:border-box; height:36px; min-height:36px; }
/* Individual permission management */
.individual-page { height:100%; overflow-y:auto; min-width:0; box-sizing:border-box; padding:16px 20px; color:#073da9; background:#f4fbff; }
.individual-page button { cursor:pointer; border:2px solid #8ac5fc; border-radius:5px; padding:7px 12px; color:#0754c5; background:white; font:inherit; }
.individual-page button:disabled { opacity:.5; cursor:not-allowed; }
.individual-page button.ip-primary,.individual-page .ip-controls button.active { color:white; background:#0878ef; border-color:#0878ef; font-weight:700; }
.individual-page .ip-back,.individual-page .ip-confirm>button { border:0; background:transparent; padding:0; }
.ip-heading,.ip-heading>div,.ip-panel-head,.ip-controls,.ip-bottom,.ip-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.ip-heading { margin:12px 0 16px; }.ip-heading h1 { margin:0; font-size:28px; }.ip-heading>div { margin-left:auto; }
.ip-layout { display:grid; grid-template-columns:minmax(215px,23%) minmax(390px,1fr) minmax(190px,22%); gap:10px; align-items:stretch; min-height:0; }
.ip-panel { border:2px solid #c6e3fa; border-radius:8px; padding:14px; background:#fff; min-width:0; }.ip-panel h2 { margin:0 0 12px; font-size:19px; }.ip-panel h2 small,.ip-panel-head small { font-size:12px; font-weight:400; }
.ip-employees { display:flex; flex-direction:column; gap:9px; }.ip-employees>label { display:flex; align-items:center; justify-content:space-between; gap:8px; font-weight:700; font-size:13px; }
.ip-employees input,.ip-employees select,.ip-controls input { box-sizing:border-box; width:100%; height:36px; min-height:36px; padding:6px 9px; border:2px solid #b2d3f6; border-radius:5px; background:#fff; color:#093fa6; font:inherit; font-size:14px; }.ip-employees select { width:70%; }
.ip-employee-list { overflow:auto; max-height:min(53vh,600px); border:2px solid #d4e8f8; border-radius:6px; }.individual-page .ip-employee { display:flex; width:100%; align-items:center; gap:9px; text-align:left; border:0; border-bottom:1px solid #e1eaf2; border-radius:0; padding:8px; }.individual-page .ip-employee.active { background:#dbf0ff; box-shadow:inset 3px 0 #0079ec; }.ip-employee img,.ip-avatar { width:30px; height:30px; flex:none; border-radius:50%; object-fit:cover; }.ip-avatar { display:grid; place-items:center; background:#e0ecf8; }.ip-employee span:not(.ip-avatar) { display:grid; gap:3px; min-width:0; }.ip-employee strong,.ip-employee small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.ip-employee small { font-size:11px; }
.ip-panel-head { justify-content:space-between; }.ip-panel-head h2 { display:grid; gap:4px; }.ip-standard { margin:0 0 10px; padding:8px; background:#eaf6ff; border-radius:5px; font-size:13px; }.ip-controls { margin-bottom:10px; }.ip-controls input { flex:1; min-width:160px; }
.ip-table-scroll { overflow:auto; max-height:58vh; }.ip-table-scroll table,.ip-confirm table { border-collapse:collapse; width:100%; font-size:13px; }.ip-table-scroll th,.ip-table-scroll td,.ip-confirm th,.ip-confirm td { border:2px solid #d1e5f6; padding:7px 5px; text-align:left; }.ip-table-scroll thead th,.ip-confirm thead th,.ip-group th { background:#e7f4ff; white-space:nowrap; }.ip-table-scroll tbody th { min-width:100px; }.ip-radios { min-width:245px; white-space:nowrap; }.ip-radios label { display:inline-flex; align-items:center; gap:2px; margin-right:6px; cursor:pointer; font-size:12px; }.ip-radios input { margin:0; }.ip-allowed { color:#0c7d4b; font-weight:700; }.ip-denied { color:#d43f4f; font-weight:700; }.ip-unset { color:#a25a00; font-weight:700; }
.ip-preview-list { overflow:auto; max-height:46vh; }.ip-preview-list section { border-top:1px solid #d7eaf9; padding:8px 0; }.ip-preview-list ul { margin:5px 0; padding-left:20px; font-size:13px; }.ip-preview p,.ip-empty p { font-size:13px; line-height:1.5; }.ip-warning { padding:8px; background:#fff1e1; border-radius:5px; }
.ip-bottom { position:static; z-index:2; justify-content:flex-end; border:2px solid #c8e2f8; border-radius:6px; margin-top:12px; padding:10px; background:#f8fcff; }.ip-bottom span { margin-right:auto; font-size:12px; }.ip-notice { padding:10px; background:#e8f7fe; border:2px solid #9cd1f6; border-radius:5px; }.ip-confirm { max-width:1000px; margin:16px auto; }.ip-confirm table { margin-top:12px; }.ip-actions { justify-content:flex-end; margin-top:16px; }
@media(max-width:1150px) { .ip-layout { grid-template-columns:minmax(180px,27%) minmax(0,1fr); }.ip-preview { grid-column:2; }.ip-preview-list { max-height:22vh; } }
@media(max-width:640px) { .individual-page { display:none!important; } }
/* 1-to-1 chat administrative setting */
.direct-setting-page { height:100%; overflow-y:auto; box-sizing:border-box; min-width:0; padding:16px 20px; color:#073da9; background:#f4fbff; }
.direct-setting-page button { cursor:pointer; border:2px solid #8ac5fc; border-radius:5px; padding:7px 12px; color:#0754c5; background:white; font:inherit; }.direct-setting-page button:disabled { cursor:not-allowed; opacity:.5; }.direct-setting-page button.ds-primary { color:white; background:#0878ef; border-color:#0878ef; font-weight:700; }.direct-setting-page .ds-back,.direct-setting-page .ds-confirm>button { border:0; padding:0; background:transparent; }
.ds-heading,.ds-heading>div:last-child,.ds-filters,.ds-bulk,.ds-pager,.ds-pager>div,.ds-bottom,.ds-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }.ds-heading { margin:12px 0 16px; justify-content:space-between; }.ds-heading h1 { font-size:28px; margin:0; }.ds-heading p { margin:4px 0 0; }.ds-panel { padding:14px; border:2px solid #c6e3fa; border-radius:8px; background:#fff; }.ds-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:12px; }.ds-stats>div { display:flex; align-items:baseline; gap:9px; padding:12px; border:2px solid #c6e3fa; border-radius:7px; background:white; }.ds-stats b { font-size:25px; }.ds-stats span { font-size:13px; }
.ds-filters { margin-bottom:12px; }.ds-filters label { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700; }.ds-filters input,.ds-filters select { box-sizing:border-box; height:36px; min-height:36px; border:2px solid #b2d3f6; border-radius:5px; padding:6px 10px; color:#093fa6; background:white; font:inherit; font-size:14px; }.ds-filters #dsQuery { width:min(100%,250px); }.ds-filters select { min-width:125px; }.ds-bulk { padding:8px 0; border-top:1px solid #d6eafa; }.ds-bulk label { display:flex; align-items:center; gap:6px; font-weight:700; }.ds-bulk small { margin-left:auto; }
.ds-table-scroll { overflow:auto; max-height:52vh; }.ds-table-scroll table,.ds-confirm table { width:100%; border-collapse:collapse; font-size:14px; }.ds-table-scroll th,.ds-table-scroll td,.ds-confirm th,.ds-confirm td { padding:10px; border:2px solid #d3e5f5; text-align:left; }.ds-table-scroll th,.ds-confirm th { white-space:nowrap; background:#e9f5ff; }.ds-table-scroll td { white-space:nowrap; }.ds-pager { justify-content:space-between; margin-top:12px; }.ds-pager button.active { color:white; background:#0878ef; }.ds-note { margin-top:12px; font-size:13px; line-height:1.5; }.ds-bottom { position:static; justify-content:flex-end; margin-top:12px; padding:10px; border:2px solid #c8e2f8; border-radius:6px; background:#f8fcff; }.ds-bottom span { margin-right:auto; font-size:13px; }.ds-notice { padding:10px; border:2px solid #9cd1f6; border-radius:5px; background:#e8f7fe; }.ds-confirm { max-width:1000px; margin:16px auto; }.ds-confirm table { margin-top:14px; }.ds-actions { justify-content:flex-end; margin-top:16px; }
.ds-columns { display:grid; grid-template-columns:minmax(215px,23%) minmax(350px,1fr) minmax(205px,23%); gap:10px; align-items:start; }
.ds-columns h2 { margin:0 0 12px; font-size:17px; }.ds-columns h2 small { color:#6f94ba; font-size:12px; }
.ds-left { display:flex; flex-direction:column; gap:8px; }.ds-left>label { display:grid; grid-template-columns:52px 1fr; align-items:center; gap:5px; font-size:13px; }.ds-left input,.ds-left select,.ds-toolbar input[type="search"] { box-sizing:border-box; width:100%; min-width:0; height:34px; border:2px solid #b2d3f6; border-radius:5px; padding:5px 8px; color:#093fa6; background:white; }
.ds-people { max-height:50vh; overflow:auto; }.direct-setting-page button.ds-person { display:flex; align-items:center; gap:8px; width:100%; padding:8px; border:0; border-bottom:1px solid #d3e5f5; border-radius:0; text-align:left; }.direct-setting-page button.ds-person.active { background:#d9efff; border-left:3px solid #0878ef; }.ds-person img { width:30px; height:30px; border-radius:50%; object-fit:cover; }.ds-person small { display:block; color:#55789f; }
.ds-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-bottom:10px; }.ds-toolbar label { font-size:12px; white-space:nowrap; }.ds-toolbar input[type="search"] { flex:1 1 190px; }.ds-side p { line-height:1.5; }.ds-side strong { font-size:22px; color:#0878ef; }
.direct-setting-page input[type="checkbox"] { box-sizing:border-box; width:16px; height:16px; min-width:16px; min-height:16px; margin:0; padding:0; flex:none; accent-color:#0878ef; vertical-align:middle; }
.ds-toolbar button,.ds-toolbar input[type="search"],.ds-heading button { box-sizing:border-box; min-height:36px; }
@media(max-width:1080px) { .ds-columns { grid-template-columns:minmax(190px,32%) 1fr; }.ds-side { grid-column:1/-1; } }
@media(max-width:680px) { .ds-columns { display:block; }.ds-columns>* { margin-bottom:10px; }.ds-people { max-height:190px; }.ds-table-scroll { max-height:42vh; } }
@media(max-width:600px) { .direct-setting-page { display:none!important; } }
.menu-manager-page { box-sizing:border-box; min-width:0; min-height:0; height:100%; padding:12px 18px 24px; overflow-y:auto; overscroll-behavior-y:contain; color:#073e9d; background:#f3fbff; }
.menu-manager-page button { cursor:pointer; border:2px solid #7bb9fa; border-radius:5px; background:white; color:#0754c5; padding:6px 12px; font:inherit; }
.menu-manager-page button:disabled { cursor:not-allowed; opacity:.45; }
.menu-manager-page .mm-primary { background:#0878ef; border-color:#0878ef; color:white; font-weight:700; }
.menu-manager-page .mm-back,.menu-manager-page .mm-review>button { border:0; padding:3px 0; background:transparent; }
.mm-head,.mm-head>div:last-child,.mm-actions,.mm-bottom { display:flex; align-items:center; gap:10px; }
.mm-head { justify-content:space-between; margin:12px 0; flex-wrap:wrap; }.mm-head h1 { margin:0; font-size:28px; }.mm-head p { margin:3px 0; font-size:14px; }
.mm-grid { display:grid; grid-template-columns:minmax(460px,1.8fr) minmax(260px,.9fr) minmax(190px,.65fr); gap:8px; align-items:start; }
.mm-panel { min-width:0; padding:12px; border:2px solid #bde2fb; border-radius:8px; background:white; }.mm-panel h2 { margin:0 0 12px; font-size:18px; }
.mm-table-scroll { overflow:auto; max-height:66vh; }.mm-table-scroll table { width:100%; border-collapse:collapse; font-size:13px; }.mm-table-scroll th,.mm-table-scroll td { border:2px solid #cfe4f8; padding:8px 5px; white-space:nowrap; }.mm-table-scroll th { background:#e2f3ff; }.mm-fixed { background:#f3f8fc; }.mm-order { display:flex; align-items:center; gap:3px; }.menu-manager-page .mm-order button { padding:2px 5px; }.mm-icon { font-size:20px; }.mm-on { color:#008452; }.mm-off { color:#777; }.mm-help { font-size:12px; line-height:1.5; }
.mm-editor form { display:grid; gap:11px; }.mm-editor label { display:grid; gap:5px; font-size:13px; font-weight:700; }.mm-editor input:not([type="checkbox"]),.mm-editor select { box-sizing:border-box; width:100%; min-width:0; height:35px; padding:5px 8px; border:2px solid #b1d2f2; border-radius:5px; color:#073e9d; background:white; }.mm-editor .mm-check { display:flex; align-items:center; gap:7px; }.mm-check input { width:17px; height:17px; margin:0; }.mm-actions { justify-content:flex-end; flex-wrap:wrap; }
.mm-preview-nav { padding:12px; background:#0878ef; color:white; border-radius:6px; }.mm-preview-nav>b { display:block; margin-bottom:10px; }.mm-nav-row { display:flex; align-items:center; gap:9px; padding:7px 4px; }.mm-nav-row span { width:24px; font-size:21px; }.mm-preview>p { font-size:12px; }.mm-managed-nav { display:contents; }
.mm-bottom { position:static; justify-content:flex-end; margin-top:12px; padding:8px; background:#f4fbff; border:2px solid #bde2fb; }.mm-bottom span { margin-right:auto; font-size:12px; }.mm-notice { padding:10px; background:#e5f8ff; }.mm-review { max-width:760px; margin:14px auto; }.mm-review li { margin:8px 0; }
@media(max-width:1150px) { .mm-grid { grid-template-columns:minmax(430px,1.5fr) minmax(240px,.85fr); }.mm-preview { grid-column:1/-1; } }
@media(max-width:760px) { .mm-grid { display:block; }.mm-grid>* { margin:8px 0; }.mm-table-scroll { max-height:48vh; } }
@media(max-width:600px) { .menu-manager-page { display:none!important; } }
.home-manager-page { box-sizing:border-box; min-width:0; min-height:0; height:100%; padding:12px 18px 24px; overflow-y:auto; overscroll-behavior-y:contain; background:#f3fbff; color:#063d9e; }
.home-manager-page button { cursor:pointer; padding:7px 12px; border:2px solid #91c7fa; border-radius:5px; color:#0754c5; background:white; font:inherit; }.home-manager-page button:disabled { opacity:.45; cursor:not-allowed; }.home-manager-page .hm-primary { color:white; background:#0878ef; border-color:#0878ef; font-weight:700; }.home-manager-page .hm-back,.home-manager-page .hm-review>button { border:0; background:transparent; padding:3px 0; }
.hm-head,.hm-head>div:last-child,.hm-bottom,.hm-inline,.hm-actions,.hm-preview-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }.hm-head { justify-content:space-between; margin:12px 0; }.hm-head h1 { margin:0; font-size:28px; }.hm-head p { margin:3px 0; }
.hm-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.hm-panel { min-width:0; padding:14px; border:2px solid #bfe3fb; border-radius:8px; background:white; }.hm-panel h2 { margin:0 0 12px; font-size:19px; }.hm-panel>label { display:grid; gap:5px; margin:10px 0; font-weight:700; }.hm-panel textarea,.hm-panel input[type="date"],.hm-panel input[type="number"] { box-sizing:border-box; max-width:100%; padding:7px; border:2px solid #b3d5f5; border-radius:5px; color:#0644a6; background:white; font:inherit; }.hm-panel textarea { width:100%; resize:vertical; }.hm-panel p { font-size:12px; line-height:1.5; }.hm-inline label { display:inline-flex; gap:5px; align-items:center; }.hm-inline input { width:70px; height:35px; }.hm-counts { display:grid; gap:8px; }.hm-counts label { display:flex; align-items:center; gap:10px; justify-content:space-between; }.hm-counts strong { color:#08758c; font-size:23px; }.hm-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }.hm-check { display:flex; align-items:center; gap:7px; }.hm-check input { width:17px; height:17px; margin:0; accent-color:#0878ef; }.hm-nested { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:14px; padding-left:20px; }.hm-preview-row span { padding:8px; border:2px solid #b8ddfa; border-radius:5px; }.hm-bottom { position:static; justify-content:flex-end; padding:9px; margin-top:10px; border:2px solid #bfe3fb; background:#f5fbff; }.hm-bottom span { margin-right:auto; font-size:12px; }.hm-notice { padding:10px; background:#e2f7ff; }.hm-review { max-width:800px; margin:16px auto; }.hm-review dl { display:grid; grid-template-columns:120px 1fr; gap:8px; }.hm-review dd { margin:0; white-space:pre-wrap; }.hm-actions { justify-content:flex-end; margin-top:15px; }
@media(max-width:760px) { .hm-grid { display:block; }.hm-grid>* { margin:9px 0; } }
@media(max-width:600px) { .home-manager-page { display:none!important; } }
.accident-page { box-sizing:border-box; min-width:0; min-height:0; height:100%; padding:12px 18px 24px; overflow-y:auto; overscroll-behavior-y:contain; color:#063d9e; background:#f3fbff; }
.accident-page button { cursor:pointer; padding:7px 12px; border:2px solid #91c7fa; border-radius:5px; background:white; color:#0754c5; font:inherit; }.accident-page button:disabled { opacity:.45; cursor:not-allowed; }.accident-page .ac-primary { color:white; background:#0878ef; border-color:#0878ef; font-weight:700; }.accident-page .ac-back { border:0; padding:3px 0; background:transparent; }
.ac-header,.ac-header>div,.ac-actions,.ac-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }.ac-header { margin:10px 0; }.ac-header h1 { margin:0; font-size:28px; }.ac-header p { margin:2px 0; }.ac-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0; }.ac-stats>div,.ac-panel { min-width:0; padding:14px; border:2px solid #bfe3fb; border-radius:8px; background:white; }.ac-stats strong { display:block; font-size:25px; }.ac-layout { display:grid; grid-template-columns:minmax(0,3fr) minmax(230px,1fr); gap:10px; }.ac-layout>div { min-width:0; display:grid; gap:10px; align-content:start; }.ac-panel h2 { margin:0 0 12px; font-size:18px; }.ac-filter { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }.ac-filter input { flex:1 1 250px; }.accident-page input,.accident-page select,.accident-page textarea { box-sizing:border-box; min-height:34px; max-width:100%; padding:6px; border:2px solid #b3d5f5; border-radius:5px; color:#0644a6; background:white; font:inherit; }.ac-table-wrap { overflow-x:auto; }.ac-table-wrap table { width:100%; border-collapse:collapse; font-size:13px; }.ac-table-wrap th,.ac-table-wrap td { padding:8px 5px; border:2px solid #cfe4f8; white-space:nowrap; }.ac-table-wrap th { background:#e2f3ff; }.ac-table-wrap tr[data-ac-row] { cursor:pointer; }.ac-selected { background:#e6f5ff; }.ac-pager { display:flex; align-items:center; justify-content:flex-end; gap:7px; margin-top:10px; }.ac-notice { padding:9px; background:#dff5ff; }.ac-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.ac-panel label:not(.ac-checkbox) { display:block; margin:10px 0; font-weight:700; }.ac-panel label input,.ac-panel label select,.ac-panel label textarea { width:100%; }.ac-panel label em { color:#e33; font-style:normal; }.ac-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 10px; }.ac-panel .ac-checkbox { display:flex; align-items:center; gap:8px; margin:12px 0; }.ac-panel .ac-checkbox input { width:18px; height:18px; }.ac-scope { display:flex; gap:8px; flex-wrap:wrap; }.ac-scope span { padding:10px; background:#e7f5ff; }.ac-bottom { position:static; justify-content:flex-end; padding:9px; margin-top:10px; border:2px solid #bfe3fb; background:#f5fbff; }.ac-confirm { max-width:900px; margin:auto; }.ac-confirm dl { display:grid; grid-template-columns:150px 1fr; gap:8px; }.ac-confirm dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:1050px) { .ac-layout,.ac-form-grid { grid-template-columns:1fr; } }
.ac-panel label:not(.ac-checkbox)>input,.ac-panel label:not(.ac-checkbox)>select,.ac-panel label:not(.ac-checkbox)>textarea { display:block; margin-top:5px; }
.accident-page input:not([type="checkbox"]):not([type="file"]),.accident-page select { box-sizing:border-box; height:38px; min-height:38px; padding:0 9px; border:2px solid #b3d5f5; border-radius:5px; box-shadow:none; outline:none; appearance:auto; }
.accident-page textarea { box-sizing:border-box; min-height:76px; padding:8px 9px; border:2px solid #b3d5f5; border-radius:5px; box-shadow:none; outline:none; }
.accident-page input:not([type="checkbox"]):focus-visible,.accident-page select:focus-visible,.accident-page textarea:focus-visible { border-color:#0878ef; box-shadow:none; }
@media(max-width:600px) { .accident-page { display:none!important; } }
.sn-login-item { display:grid; grid-template-columns:130px 1fr; gap:14px; width:100%; padding:9px 8px; color:#063da7; text-align:left; background:transparent; border:0; border-bottom:1px solid #d7e8f4; cursor:pointer; font:inherit; }.sn-login-item:last-child { border-bottom:0; }.sn-login-item:hover { background:#e9f6ff; }
.system-notice-page { box-sizing:border-box; min-width:0; min-height:0; height:100%; padding:12px 18px 24px; overflow-y:auto; overscroll-behavior-y:contain; background:#f3fbff; color:#063d9e; }.system-notice-page button { padding:7px 12px; color:#0754c5; background:white; border:2px solid #91c7fa; border-radius:5px; cursor:pointer; font:inherit; }.system-notice-page button:disabled { opacity:.45; cursor:not-allowed; }.system-notice-page .sn-primary { color:white; background:#0878ef; border-color:#0878ef; font-weight:700; }.system-notice-page .sn-back { padding:3px 0; border:0; background:transparent; }
.sn-header,.sn-header>div,.sn-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }.sn-header { margin:10px 0; }.sn-header h1 { margin:0; font-size:28px; }.sn-header p { margin:2px 0; }.sn-layout { display:grid; grid-template-columns:minmax(0,2.4fr) minmax(260px,1fr); gap:10px; }.sn-layout>div,.sn-side { min-width:0; display:grid; gap:10px; align-content:start; }.sn-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }.sn-stats>div,.sn-panel { min-width:0; padding:14px; background:white; border:2px solid #bfe3fb; border-radius:8px; }.sn-stats strong { display:block; font-size:24px; }.sn-panel h2 { margin:0 0 12px; font-size:18px; }.sn-filters { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }.sn-filters>input { flex:1 1 250px; }.sn-filters label { display:flex; align-items:center; gap:5px; }.sn-filters label input { width:145px; }.system-notice-page input,.system-notice-page select,.system-notice-page textarea { box-sizing:border-box; min-height:36px; max-width:100%; padding:6px; border:2px solid #b3d5f5; border-radius:5px; color:#0644a6; background:white; font:inherit; }.sn-table-wrap { overflow-x:auto; }.sn-table-wrap table { width:100%; border-collapse:collapse; font-size:13px; }.sn-table-wrap th,.sn-table-wrap td { padding:8px 5px; border:2px solid #cfe4f8; white-space:nowrap; }.sn-table-wrap th { background:#e2f3ff; }.sn-table-wrap tr[data-sn-row] { cursor:pointer; }.sn-selected { background:#e6f5ff; }.sn-pager { display:flex; align-items:center; justify-content:flex-end; gap:7px; margin-top:10px; }.sn-preview { padding:12px; border:2px solid #b3d5f5; border-radius:7px; margin-bottom:10px; }.sn-preview strong { display:block; margin-bottom:10px; }.sn-preview>div { display:grid; grid-template-columns:90px 1fr; gap:7px; border-bottom:1px dotted #cfe4f8; padding:7px 0; font-size:13px; }.sn-side p { line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }.sn-footnote,.sn-notice { padding:10px; background:#e2f7ff; }.sn-form { max-width:950px; margin:auto; }.sn-form label:not(.sn-check) { display:block; margin:12px 0; font-weight:700; }.sn-form label:not(.sn-check)>input,.sn-form label:not(.sn-check)>textarea { display:block; width:100%; margin-top:5px; }.sn-form label em { color:#e33; font-style:normal; }.sn-form-dates { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.sn-check { display:flex; align-items:center; gap:8px; }.sn-check input { width:18px; height:18px; }.sn-bottom { display:flex; justify-content:flex-end; gap:10px; position:static; padding:10px; background:#f5fbff; }.sn-confirm { max-width:850px; margin:auto; }.sn-confirm dl { display:grid; grid-template-columns:130px 1fr; gap:10px; }.sn-confirm dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }.sn-login-dialog { width:min(650px,90vw); max-height:80vh; padding:20px; color:#063d9e; border:2px solid #bfe3fb; border-radius:10px; }.sn-login-dialog [data-sn-close] { float:right; padding:6px 10px; }.sn-login-dialog article { padding:10px; margin:8px 0; background:#f2fbff; border:2px solid #d2e7f8; }.sn-login-dialog article p { white-space:pre-wrap; }
@media(max-width:1050px) { .sn-layout { grid-template-columns:1fr; } }
@media(max-width:600px) { .system-notice-page { display:none!important; } .sn-login-item { grid-template-columns:95px 1fr; gap:5px; font-size:12px; } }
.system-notice-page input:not([type="checkbox"]):not([type="file"]),.system-notice-page select { height:38px; min-height:38px; padding:0 9px; border:2px solid #b3d5f5; border-radius:5px; box-shadow:none; outline:none; appearance:auto; }
.system-notice-page textarea { min-height:76px; padding:8px 9px; border:2px solid #b3d5f5; border-radius:5px; box-shadow:none; outline:none; }
.system-notice-page input:not([type="checkbox"]):focus-visible,.system-notice-page select:focus-visible,.system-notice-page textarea:focus-visible { border-color:#0878ef; box-shadow:none; }
.manual-page { box-sizing:border-box; min-width:0; min-height:0; height:100%; padding:12px 18px 24px; overflow-y:auto; overscroll-behavior-y:contain; color:#063d9e; background:#f3fbff; }
.manual-page button { cursor:pointer; padding:7px 12px; border:2px solid #91c7fa; border-radius:5px; background:#fff; color:#0754c5; font:inherit; }.manual-page button:disabled { opacity:.45; cursor:not-allowed; }.manual-page .man-primary { background:#0878ef; color:#fff; border-color:#0878ef; font-weight:700; }.manual-page .man-back { padding:3px 0; border:0; background:transparent; }
.man-heading,.man-heading>div,.man-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }.man-heading { margin:10px 0; }.man-heading h1 { margin:0; font-size:28px; }.man-heading p { margin:2px 0; }.man-layout { display:grid; grid-template-columns:minmax(0,2.25fr) minmax(280px,1fr); gap:10px; }.man-main,.man-side { min-width:0; display:grid; gap:10px; align-content:start; }.man-panel { min-width:0; padding:14px; border:2px solid #bfe3fb; border-radius:8px; background:#fff; }.man-panel h2 { margin:0 0 12px; font-size:18px; }.man-panel h3 { margin:8px 0; }.man-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }.man-stats>div { padding:10px; background:#eef8ff; }.man-stats strong { display:block; font-size:24px; color:#0862c8; }.man-filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }.man-filters>input { flex:1 1 300px; }.manual-page input:not([type="file"]),.manual-page select { box-sizing:border-box; height:38px; min-height:38px; max-width:100%; padding:0 9px; border:2px solid #b3d5f5; border-radius:5px; background:#fff; color:#0644a6; font:inherit; }.manual-page textarea { box-sizing:border-box; min-height:76px; max-width:100%; padding:8px 9px; border:2px solid #b3d5f5; border-radius:5px; background:#fff; color:#0644a6; font:inherit; }.manual-page input:focus-visible,.manual-page select:focus-visible,.manual-page textarea:focus-visible { outline:1px solid #0878ef; outline-offset:1px; }.man-table-wrap { overflow-x:auto; }.man-table-wrap table { border-collapse:collapse; width:100%; font-size:13px; }.man-table-wrap th,.man-table-wrap td { padding:8px 5px; border:2px solid #d1e5f8; white-space:nowrap; }.man-table-wrap th { background:#e2f3ff; }.man-table-wrap tr[data-man-row] { cursor:pointer; }.man-selected { background:#e6f5ff; }.man-badge { display:inline-block; padding:3px 7px; border-radius:5px; }.man-badge.is-public { background:#d7f8eb; color:#08724d; }.man-badge.is-draft { background:#e9edf3; color:#526883; }.man-badge.is-pending { background:#fff0d6; color:#9b5900; }.man-pager { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; }.man-side dl,.man-review dl { display:grid; grid-template-columns:100px minmax(0,1fr); gap:8px; }.man-side dd,.man-review dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }.man-side ol { padding-left:23px; line-height:1.8; }.man-note,.man-notice { padding:10px; background:#e2f7ff; }.man-form,.man-review { max-width:920px; margin:auto; }.man-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }.man-form label { display:block; margin:12px 0; font-weight:700; }.man-form label>input:not([type="file"]),.man-form label>select,.man-form label>textarea { display:block; width:100%; margin-top:5px; }.man-form label em { color:#e33; font-style:normal; }.man-bottom { display:flex; justify-content:flex-end; gap:8px; position:static; padding:10px; background:#f5fbff; }.man-review .man-actions { justify-content:flex-end; }.man-history { padding:10px; border-bottom:1px solid #d1e5f8; }
.man-dialog { box-sizing:border-box; width:min(700px,90vw); max-height:80vh; padding:20px; color:#063d9e; border:2px solid #bfe3fb; border-radius:8px; }.man-dialog [data-man-close] { float:right; }.man-preview-body { white-space:pre-wrap; line-height:1.7; }.man-public-item { display:block; width:100%; margin:8px 0; padding:10px; text-align:left; background:#f2faff; border:2px solid #bfe3fb; border-radius:5px; color:#0644a6; cursor:pointer; font:inherit; }
footer button { border:0; padding:0; background:transparent; color:inherit; cursor:pointer; font:inherit; }
@media(max-width:950px) { .man-layout { grid-template-columns:1fr; }.man-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .manual-page { display:none!important; }.man-form-grid { grid-template-columns:1fr; } }
.sys-page { box-sizing:border-box; min-width:0; min-height:0; height:100%; padding:12px 18px 24px; overflow-y:auto; overscroll-behavior-y:contain; background:#f3fbff; color:#073d9e; }
.sys-page button { cursor:pointer; padding:7px 12px; border:2px solid #91c7fa; border-radius:5px; background:white; color:#0754c5; font:inherit; }.sys-page button:disabled { opacity:.45; cursor:not-allowed; }.sys-page .sys-primary { background:#0878ef; color:#fff; border-color:#0878ef; font-weight:700; }.sys-page .sys-back { padding:3px 0; border:0; background:transparent; }
.sys-heading,.sys-heading>div,.sys-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }.sys-heading { margin:10px 0; }.sys-heading h1 { margin:0; font-size:28px; }.sys-heading p { margin:2px 0; }.sys-heading .sys-actions { justify-content:flex-end; }.sys-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.sys-policy-grid { align-items:stretch; }.sys-wide { grid-column:1/-1; }.sys-panel { min-width:0; padding:14px; border:2px solid #bfe3fb; border-radius:8px; background:white; }.sys-panel h2 { margin:0 0 12px; font-size:18px; }.sys-panel h3 { margin:8px 0; font-size:15px; }.sys-panel label { display:block; margin:8px 0; }.sys-panel input:not([type=checkbox]),.sys-panel select,.sys-filters input,.sys-filters select { box-sizing:border-box; min-width:0; height:38px; padding:0 9px; border:2px solid #b3d5f5; border-radius:5px; background:white; color:#073d9e; font:inherit; }.sys-panel input[type=number] { width:76px; }.sys-panel input[type=checkbox] { width:18px; height:18px; margin:0 5px 0 0; accent-color:#0878ef; }.sys-panel .sys-check { display:inline-flex; align-items:center; gap:3px; margin:7px 12px 7px 0; font-weight:600; }.sys-soft { padding:10px; margin:8px 0; border-radius:6px; background:#edf8ff; }.sys-rule-grid { display:grid; gap:7px; }.sys-inline { display:flex; flex-wrap:wrap; gap:4px 9px; }.sys-muted { color:#526e9e; font-size:13px; line-height:1.5; }.sys-expiry { display:grid; grid-template-columns:95px minmax(130px,1fr) minmax(190px,1.7fr); gap:8px; align-items:center; padding:8px; margin-bottom:9px; border:2px solid #d1e5f8; }.sys-expiry .sys-check { margin:2px; }.sys-note,.sys-notice { padding:10px; background:#e2f7ff; border:2px solid #cae5f9; border-radius:6px; }.sys-bottom { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:9px; position:static; margin-top:10px; padding:10px; border:2px solid #cfe5f7; background:#f5fbff; }.sys-bottom span { margin-right:auto; font-size:13px; }.sys-review { max-width:900px; margin:auto; }.sys-review .sys-actions { justify-content:flex-end; margin-top:15px; }.sys-page form label:not(.sys-check) { font-weight:700; }.sys-page form input[type=password] { display:block; width:100%; max-width:430px; margin-top:5px; }.sys-panel dl { display:grid; grid-template-columns:135px minmax(0,1fr); gap:8px; }.sys-panel dd { margin:0; overflow-wrap:anywhere; }.sys-split { display:grid; grid-template-columns:minmax(0,2.2fr) minmax(270px,1fr); gap:10px; }.sys-split>div,.sys-split aside { min-width:0; display:grid; gap:10px; align-content:start; }.sys-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }.sys-stats>div { min-width:0; padding:12px; border:2px solid #bfe3fb; border-radius:7px; background:white; }.sys-stats strong { display:block; margin-top:4px; font-size:21px; color:#0767c9; overflow-wrap:anywhere; }.sys-filters { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }.sys-filters input { flex:1 1 250px; }.sys-table-wrap { overflow-x:auto; }.sys-table-wrap table,.sys-review table { width:100%; border-collapse:collapse; font-size:13px; }.sys-table-wrap th,.sys-table-wrap td,.sys-review th,.sys-review td { padding:8px 6px; border:2px solid #d1e5f8; text-align:left; white-space:nowrap; }.sys-table-wrap th,.sys-review th { background:#e2f3ff; }.sys-selected { background:#e7f5ff; }.sys-pager { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px; }.sys-panel ol { padding-left:23px; line-height:1.8; }.sys-restore { border-color:#87b9f8; }.sys-restore .sys-table-wrap { margin:10px 0; }.sys-page input:focus-visible,.sys-page select:focus-visible { outline:1px solid #0878ef; outline-offset:1px; }
@media(max-width:1100px) { .sys-split { grid-template-columns:1fr; }.sys-expiry { grid-template-columns:90px minmax(110px,1fr); }.sys-expiry span { grid-column:1/-1; } }
@media(max-width:760px) { .sys-grid { grid-template-columns:1fr; }.sys-wide { grid-column:auto; }.sys-stats { grid-template-columns:1fr; } }
@media(max-width:600px) { .sys-page { display:none!important; } }
@media print { body:has(#auditLogPage:not([hidden]))>header,body:has(#auditLogPage:not([hidden])) .side-menu,body:has(#auditLogPage:not([hidden])) .sys-back,body:has(#auditLogPage:not([hidden])) .sys-actions,body:has(#auditLogPage:not([hidden])) .sys-filters,body:has(#auditLogPage:not([hidden])) .sys-split aside,body:has(#auditLogPage:not([hidden])) .sys-stats,body:has(#auditLogPage:not([hidden])) .sys-pager { display:none!important; } body:has(#auditLogPage:not([hidden])) .app-shell,body:has(#auditLogPage:not([hidden])) #auditLogPage { display:block!important; height:auto; overflow:visible; background:#fff; } body:has(#auditLogPage:not([hidden])) .sys-split { display:block; } }
.emp-header-actions { align-items:center; }
.emp-selected-count { display:inline-flex; align-items:center; min-height:35px; padding:0 8px; border-radius:5px; background:#e8f5ff; color:#0754c5; font-weight:700; white-space:nowrap; }
.emp-select { display:flex; align-items:center; gap:6px; margin:0; cursor:pointer; }
.emp-select input,.emp-row-check { appearance:auto; box-sizing:border-box; width:17px; height:17px; min-height:0; margin:0; padding:0; vertical-align:middle; cursor:pointer; }
.emp-row-check:disabled { cursor:not-allowed; }
@media (max-width: 1050px) and (min-width: 601px) {
  .profile-grid { grid-template-columns: minmax(205px,.85fr) minmax(310px,1.15fr); }
  .profile-password-card { grid-column: 1 / -1; }
  .profile-account-grid { grid-template-columns: 1fr 1fr; }
  .profile-account-actions { grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); }
}

.chat-pin-toggle{border:2px solid #b8d7ea;border-radius:5px;background:#f3faff;color:#1763a0;padding:3px 7px;font-size:11px;margin:5px 0;cursor:pointer;}


/* Keep the office selector beside the search field. */
.org-filter > label { display:flex; align-items:center; gap:8px; }
.chat-member-count { margin-inline-start:8px; border:2px solid #b2d3f6; border-radius:6px; background:white; color:#093fa6; padding:3px 8px; font:inherit; font-size:12px; }
.chat-members-dialog { border:2px solid #b2d3f6; border-radius:10px; max-width:calc(100vw - 32px); max-height:80vh; overflow:auto; }

/* Keep audience checkboxes independent of full-width form input styles. */
.document-page .audience-options label { display:flex; align-items:center; gap:8px; min-height:36px; }
.document-page .audience-options input[type="checkbox"] { box-sizing:border-box; width:18px; height:18px; min-width:18px; min-height:18px; flex:0 0 18px; margin:0; padding:0; }
.document-page .audience-options label span { flex:1; min-width:0; overflow-wrap:anywhere; }
.doc-search-line { flex-wrap:wrap; }
.doc-search .doc-advanced { flex-basis:100%; margin-left:0; }
.doc-search .doc-advanced summary { width:fit-content; }
.doc-search .doc-advanced > div { position:static; box-shadow:none; margin-top:6px; width:fit-content; max-width:100%; box-sizing:border-box; }
.mm-pending { background:#e7f4ff; }
@media(max-width:600px) { .document-page .audience-options label { min-height:44px; } .doc-search .doc-advanced > div { width:100%; } }

/* Keep member count on one row even for large groups; the title yields space. */
.chat-member-count { white-space:nowrap; width:auto; flex-shrink:0; }
.doc-sticky-footer #docNotify { width:18px; height:18px; min-width:18px; min-height:18px; margin:0 6px 0 0; flex:none; }
.doc-sticky-footer label:has(#docNotify) { display:flex; align-items:center; min-height:36px; }
.chat-document-card { display:block; width:min(100%,560px); padding:12px; margin:8px 0; border:2px solid #b2d3f6; border-radius:8px; background:white; text-align:left; color:#093fa6; }
.chat-document-card strong,.chat-document-card small { display:block; overflow-wrap:anywhere; }
.mobile-room-header .chat-member-count { width:auto; height:36px; padding:0 6px; margin:0; font-size:13px; white-space:nowrap; }
@media(max-width:767px) {
 .mobile-room-header { grid-template-columns:36px minmax(0,1fr) auto 36px 30px; gap:2px; }
 .mobile-room-header button { width:100%; max-width:100%; }
 .mobile-room-header .chat-member-count { width:auto; height:36px; padding:0 6px; margin:0; font-size:13px; white-space:nowrap; }
 .mobile-room-header:not(:has(.chat-member-count)) { grid-template-columns:36px minmax(0,1fr) 36px 30px; }
}

/* Notification setup instructions remain readable on narrow screens. */
#notificationDetails { text-align:left; }
#notificationDetails p,#notificationDetails li { font-size:13px; line-height:1.65; overflow-wrap:anywhere; }
#notificationDetails details { margin:10px 0; padding:8px; border:2px solid #c4dcf3; border-radius:6px; }
#notificationDetails ol { padding-left:22px; }
#notificationFeedback:empty { display:none; }
#notificationFeedback { font-size:13px; line-height:1.6; }
#notificationEnable:disabled { opacity:1; background:#e8f8ee; color:#215b38; }

.mobile-thread-head { position:relative; padding-right:40px; }


/* Confine fixed table headings to the list's own scroll viewport. */
:is(.doc-table-wrap,.emp-table-scroll,.org-table-scroll,.ip-table-scroll,.ds-table-scroll,.mm-table-scroll) { isolation:isolate; }
:is(.doc-table-wrap,.emp-table-scroll,.org-table-scroll,.ip-table-scroll,.ds-table-scroll,.mm-table-scroll) > table > thead { position:sticky; top:0; z-index:2; background:#eaf5fe; box-shadow:0 1px 0 #c7dff0; }
:is(.doc-table-wrap,.emp-table-scroll,.org-table-scroll,.ip-table-scroll,.ds-table-scroll,.mm-table-scroll) > table > thead th { position:static; }
/* Match the baseline and height of search buttons to their neighboring controls. */
.org-filter,.emp-filter-grid,.co-office-search { --toolbar-control-height:37px; }
.ds-filters { --toolbar-control-height:36px; }
.man-filters,.sys-filters { --toolbar-control-height:38px; }
.sn-filters,.ac-filter { --toolbar-control-height:36px; }
.hd-filters>div { --toolbar-control-height:42px; }
.photo-inbox-filters { --toolbar-control-height:40px; flex-wrap:wrap; }
:is(.org-filter,.emp-filter-grid,.co-office-search,.ds-filters,.man-filters,.sys-filters,.sn-filters,.ac-filter,.photo-inbox-filters),.hd-filters>div { align-items:flex-end; }
:is(.org-filter,.emp-filter-grid,.co-office-search,.ds-filters,.man-filters,.sys-filters,.sn-filters,.ac-filter,.photo-inbox-filters)>button,.hd-filters>div>button { min-height:var(--toolbar-control-height); }
/* A narrow desktop window cannot fit the menu editor's former 430px + 240px columns. */
@media(max-width:1000px) { .mm-grid { grid-template-columns:minmax(0,1fr); } .mm-grid>* { min-width:0; } .mm-preview { grid-column:auto; } }
/* Long chat toolbars must shrink/wrap inside the message column, never widen it. */
.chat-page:not(.desktop-direct-mode) { grid-template-columns:minmax(0,1fr); }
.chat-toolbar,.chat-feed,.chat-composer { min-width:0; }
.chat-toolbar,.chat-toolbar-tools { flex-wrap:wrap; }
.chat-toolbar>div:first-child { flex:0 1 auto; min-width:0; white-space:normal; overflow-wrap:anywhere; }
/* A one-column delivery screen must allow its wide table to scroll inside the panel. */
.hd-main>div { min-width:0; }
@media(max-width:1250px) { .hd-main { grid-template-columns:minmax(0,1fr); } }
.ds-columns>.ds-panel { min-width:0; }
@media(max-width:1080px) { .ds-columns { grid-template-columns:minmax(190px,32%) minmax(0,1fr); } }

/* Reveal navigation after employee menus and access gates have settled. */
.side-menu[aria-busy="true"]{position:relative;pointer-events:none}
.side-menu[aria-busy="true"]>*{visibility:hidden}
.side-menu[aria-busy="true"]::before{content:'メニューを読み込んでいます…';position:absolute;top:24px;left:16px;right:12px;font-size:13px;color:#48718b;line-height:1.7}
.mobile-bottom-nav[aria-busy="true"]{visibility:hidden;pointer-events:none}

.photo-category-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:88vh;overflow:auto;border:2px solid #8bb9dc;border-radius:14px;padding:24px;color:#173d59}.photo-category-table{overflow-x:auto}.photo-category-table table{width:100%;border-collapse:collapse}.photo-category-table th,.photo-category-table td{padding:10px;text-align:left;border-bottom:1px solid #d9e7f1}.photo-category-table input{width:100%;min-width:160px;box-sizing:border-box}.photo-category-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.photo-category-dialog [role=status]{color:#a42d2d}
.photo-category-dialog button{min-height:40px;padding:8px 12px;border:2px solid #8bb9dc;border-radius:6px;background:#f3f9ff;color:#173d59;font:inherit;cursor:pointer}.photo-category-dialog h2{margin:0 0 12px;font-size:22px}.photo-category-dialog p{line-height:1.6}.photo-category-table th:nth-child(2),.photo-category-table td:nth-child(2){white-space:nowrap}.photo-category-table input{min-width:130px}

/* Keep save/review actions after their content, including short desktop windows. */
:is(.co-actions,.org-sticky,.emp-bottom,.ip-bottom,.ds-bottom,.mm-bottom,.hm-bottom,.ac-bottom,.sn-bottom,.man-bottom,.sys-bottom) { flex-wrap:wrap; }
.photo-inbox-heading :is([data-photo-categories],[data-photo-destinations]) svg { width:16px; height:16px; flex:none; }

/* In-app manuals use headings, a compact index and responsive screen examples. */
.man-preview-body { white-space:normal; overflow-wrap:anywhere; color:#183951; }
.man-preview-body p { margin:10px 0; white-space:pre-wrap; }
.man-preview-body h3 { margin:24px 0 10px; scroll-margin-top:12px; color:#0644a6; }
.man-guide-index { margin:16px 0; padding:10px 12px; border:2px solid #c7dff6; border-radius:6px; background:#f2faff; }
.man-guide-index summary { cursor:pointer; font-weight:700; }
.man-guide-index nav { display:grid; gap:8px; margin-top:12px; }
.man-guide-index a { color:#0754c5; }
.man-guide-figure { margin:16px auto; max-width:100%; text-align:center; }
.man-guide-figure img { display:block; width:auto; max-width:100%; height:auto; max-height:600px; margin:auto; border:2px solid #d2e5f3; border-radius:6px; }
.man-guide-mobile img { max-width:min(100%,300px); }
.man-guide-figure figcaption { margin-top:5px; color:#526e85; font-size:12px; }
#manPreview { width:min(940px,94vw); max-height:90dvh; overflow:auto; }
#manPreview [data-man-public-back] { min-height:36px; padding:6px 10px; border:2px solid #8cc5fa; border-radius:5px; color:#0754c5; background:white; }
@media(max-width:600px) { .man-dialog { width:calc(100vw - 16px); max-width:calc(100vw - 16px); padding:16px; } #manPreview { width:calc(100vw - 16px); } .man-preview-body { font-size:15px; line-height:1.8; } }


.chat-access-grid{display:grid;gap:10px;padding:12px}.chat-access-grid label{display:flex;align-items:center;justify-content:space-between;gap:12px}.chat-access-grid select,.ip-radios select{min-height:36px;max-width:100%;border:2px solid #a8d5f0;border-radius:7px;background:#fff;color:#075191;padding:6px 10px;font:inherit}.chat-read-only-note{margin:0;padding:12px 16px;background:#edf7ff;color:#376480;font-size:13px}.chat-read-only-note[hidden]{display:none}

.chat-composer.is-file-drop{outline:2px dashed #0589d6;outline-offset:-3px;background:#e8f7ff}.chat-composer.is-file-drop textarea{background:#f5fcff}.composer-drop-hint{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

.photo-routing-help{padding:10px 12px;margin:12px 0;color:#39647d;background:#f0f9ff;border-radius:8px;font-size:13px;line-height:1.6}.ac-employee-picker{display:flex;flex-direction:column;gap:6px}.ac-employee-picker small{color:#57758a;font-size:12px}.photo-inbox-filters{flex-wrap:wrap}.photo-inbox-table{min-width:780px}

.ab-dialog{width:min(1000px,96vw);max-height:94dvh;overflow:auto;border:2px solid #9fc6e3;border-radius:12px;padding:20px;color:#16476b;background:#f5faff}.ab-dialog::backdrop{background:#12334c99}.ab-dialog>header,.ab-dialog footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.ab-dialog>label{display:grid;gap:5px;margin:12px 0}.ab-dialog input:not([type=checkbox]),.ab-dialog select{width:100%;padding:8px;border:2px solid #acd0e8;border-radius:6px;font:inherit}.ab-dialog button{padding:8px 12px;border:2px solid #88bdf1;border-radius:6px;background:white;color:#07539f;font:inherit;cursor:pointer}.ab-dialog button:disabled{opacity:.5;cursor:default}.ab-preview{background:white;margin-top:12px}.ab-photo-choices{display:flex;gap:12px;flex-wrap:wrap}.ab-photo-edit article{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #cbdfed}.ab-photo-edit img{width:120px;height:90px;object-fit:contain}.ab-photo-edit article>div{flex:1;min-width:0}.ab-dialog footer{position:sticky;bottom:-20px;background:#edf7ff;padding:12px 0}.ab-print-frame{position:fixed;width:210mm;height:297mm;top:0;left:-10000px;border:0}.ab-note{font-size:13px}@media(max-width:600px){.ab-dialog{padding:12px}.ab-preview .ab-photos{grid-template-columns:1fr}.ab-preview .ab-fields{grid-template-columns:24mm 1fr}.ab-dialog footer{bottom:-12px}}

.ab-dialog iframe.ab-preview{display:block;width:100%;height:65dvh;border:2px solid #d2dfeb}

/* First reports and the touch-friendly scene template editor. */
.ab-dialog h2{margin:0}.ab-dialog h3{margin:20px 0 10px}.ab-dialog textarea{width:100%;font:inherit}.ab-dialog input[type=file]{max-width:100%}.ab-diagram-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ab-diagram-cards article{padding:10px;border:2px solid #b8cedd;background:white;border-radius:8px;min-width:0}.ab-diagram-cards svg{display:block;width:100%;background:white}.ab-dialog [data-ab-publish],.ab-dialog [data-av=save]{background:#0968b5;color:white;border-color:#0968b5}.ab-dialog footer{position:static;margin-top:18px;padding:12px;border-top:1px solid #c9dce9}.av-settings{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.av-settings label{flex:1;min-width:150px}.av-tools,.av-actions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.av-tools button{min-height:42px}.av-tools [aria-pressed=true]{background:#d9efff;border:2px solid #0769b5}.av-canvas{width:100%;aspect-ratio:5/3;border:2px solid #8fbdcf;border-radius:8px;overflow:hidden;background:white;touch-action:none}.av-canvas svg{display:block;width:100%;height:100%;touch-action:none;user-select:none}.av-canvas [data-item]{cursor:move}.av-selected{filter:drop-shadow(0 0 4px #008cff);outline:none}.av-dialog>label{display:grid;gap:5px;margin:10px 0}.av-dialog [data-av-status]{min-height:24px}.ac-panel details{margin:16px 0}.ac-panel summary{cursor:pointer;font-weight:bold}@media(max-width:600px){.ab-diagram-cards{grid-template-columns:1fr}.ab-photo-edit article{flex-wrap:wrap}.ab-photo-edit article>div{flex-basis:180px}.ab-dialog button{min-height:42px}.av-tools button{padding:7px}.av-dialog{width:98vw;max-width:98vw}.av-settings{display:grid;grid-template-columns:1fr 1fr}.av-settings label{min-width:0}.av-settings>button{grid-column:1/-1}}
@media(max-width:600px){.accident-page:not([hidden]){display:block!important;padding:12px 10px 24px}.accident-page .ac-fields{grid-template-columns:1fr}.accident-page .ac-header h1{font-size:23px}.accident-page .ac-confirm dl{grid-template-columns:90px minmax(0,1fr)}.accident-page .ac-stats{gap:5px}.accident-page .ac-stats>div{padding:8px}}
.photo-notice-settings{background:#f5faff}.photo-notice-settings fieldset{border:2px solid #c6deef;border-radius:8px;padding:12px}.photo-notice-settings label{font-weight:normal}.photo-notice-settings input[type=checkbox]{width:18px;min-width:18px;min-height:18px;margin:0 6px 0 0;vertical-align:middle}.photo-notice-settings .doc-audience-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.photo-notice-settings [aria-pressed=true]{background:#dff0ff;border-color:#1477bd}.photo-notice-settings p{font-size:12px}.photo-notice-settings .audience-options{background:white}

/* Visible manual entrances next to the tasks people start with. */
.manual-entry{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 14px;border:2px solid #85baff;border-radius:8px;background:#f1f8ff;color:#0754c5;font:inherit;font-weight:700;cursor:pointer;text-align:left}
.manual-entry small{display:block;margin-top:4px;font-size:12px;font-weight:400;line-height:1.5}
.manual-entry>span:last-child{margin-left:auto}.manual-entry:focus-visible{outline:3px solid #157ef0;outline-offset:3px}
 .login-manual-entry{width:100%;margin-top:14px}
.header-manual-entry{display:none}
.app-mode .header-manual-entry{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;align-self:center;min-height:36px;max-height:44px;margin-left:auto;margin-right:14px;padding:6px 10px;border:2px solid #85baff;border-radius:7px;background:#f1f8ff;color:#0754c5;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.app-mode .app-user-meta{margin-left:0}
.header-manual-entry:focus-visible{outline:3px solid #157ef0;outline-offset:3px}
@media(max-width:767px){#photoDestinationField{display:none}.app-mode .header-manual-entry{font-size:10px;line-height:1.3;max-width:62px;white-space:normal;gap:3px;margin-right:5px;padding:4px;min-height:36px}.app-mode .header-manual-entry>span:last-child{max-width:42px}.app-mode .app-user-meta{margin-left:auto}}
@media(max-width:380px){.app-mode .header-logo{width:40px;flex-basis:40px}.app-mode header{padding-left:8px;padding-right:8px}}

.photo-pc-destination{display:grid;gap:5px;margin:10px 0;font-size:13px}.photo-pc-destination select{min-height:38px;width:100%;border:2px solid #85baff;border-radius:6px;background:white;color:#0754c5;padding:6px;font:inherit}@media(max-width:767px){.photo-pc-destination{display:none}}

.header-manual-short{display:none}@media(max-width:767px){.header-manual-full{display:none}.header-manual-short{display:inline}.app-mode .header-manual-entry{font-size:11px;white-space:nowrap;max-width:none}}

.ac-import-dialog{width:min(1200px,96vw);max-height:92dvh;overflow:auto;border:2px solid #85baff;border-radius:12px;padding:20px;color:#173d59}.ac-import-dialog p{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.ac-import-table{max-height:60dvh;overflow:auto}.ac-import-table table{border-collapse:collapse;width:100%;min-width:820px}.ac-import-table th,.ac-import-table td{border-bottom:1px solid #c8dff1;padding:9px;text-align:left;vertical-align:top}.ac-import-table th{position:sticky;top:0;background:#eaf5fe}.ac-import-table td:nth-child(5){min-width:280px;max-width:480px}.ac-import-dialog footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:12px 0;background:white}.ac-import-dialog button{min-height:40px;padding:8px 12px;border:2px solid #85baff;border-radius:6px;background:#f1f8ff;color:#0754c5;font:inherit;cursor:pointer}.ac-import-dialog input[type=checkbox]{width:18px;height:18px}.ac-import-dialog [data-ac-import-status]{color:#a12f24}.ac-import-dialog::backdrop{background:#12334c88}

/* Shared video attachments: fetch only when played and fit phones and PCs. */
.mercury-attachment-video{display:block;width:100%;max-width:640px;max-height:60vh;height:auto;margin:8px 0;border:2px solid #9cc7e3;border-radius:10px;background:#111;object-fit:contain;}
.message-attachments:has(.mercury-attachment-video){flex-direction:column;align-items:stretch;max-width:100%;min-width:0;}

/* Match every accident filter control, including reset, to the same height. */
.accident-page .ac-filter{align-items:center;}
.accident-page .ac-filter>input,.accident-page .ac-filter>select,.accident-page .ac-filter>[data-ac="clear"]{box-sizing:border-box;height:var(--toolbar-control-height,36px);min-height:var(--toolbar-control-height,36px);}
.accident-page .ac-filter>[data-ac="clear"]{flex:0 0 auto;width:auto;padding:6px 10px;font-size:inherit;line-height:normal;white-space:nowrap;align-self:center;}

.accident-page button.ac-delete{color:#b42318;border-color:#e6b0aa;background:#fff7f6;}

.ac-bulk-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 10px;}
.ac-bulk-actions strong{margin-right:auto;font-size:14px;}
.accident-page .ac-select-cell{width:38px;text-align:center;}
.accident-page .ac-select-cell input[type="checkbox"]{width:18px;height:18px;min-height:18px;padding:0;margin:4px;vertical-align:middle;}

.ac-stats{grid-template-columns:repeat(4,minmax(0,1fr));}.ac-stats small{display:block;font-size:11px;margin-top:5px;}.ac-count-note{font-size:12px;margin:6px 0 12px;}.ac-page-size{display:flex!important;align-items:center;justify-content:flex-end;gap:8px;font-size:13px;}.ac-page-size select{width:auto!important;}.ac-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;}.nav-item>.mm-label{font:inherit;text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis;}
@media(max-width:700px){.ac-stats{grid-template-columns:repeat(2,minmax(0,1fr));}.ac-stat-grid{grid-template-columns:1fr;}}
/* Section headers must grow with their actions instead of inheriting the app header height. */
.accident-page .ac-header{height:auto;min-height:0;padding:12px 14px;display:block;}
.accident-page .ac-header>div{display:block;}
.accident-page .ac-header>.ac-actions{display:flex;justify-content:flex-start;gap:6px;margin-top:10px;}
.accident-page .ac-header p{margin-top:6px;}

/* Accident analysis: static charts share the existing filters and counts. */
.accident-page .ac-chart-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px;}
.accident-page .ac-chart-summary>div{min-width:0;display:flex;flex-direction:column;gap:6px;padding:16px;border:2px solid #bfe3fb;border-radius:10px;background:#fff;}
.accident-page .ac-chart-summary>div:first-child{background:#eaf6ff;border-top:4px solid #0878cc;}
.accident-page .ac-chart-summary span{font-size:13px;font-weight:700;}
.accident-page .ac-chart-summary strong{font-size:30px;line-height:1.3;overflow-wrap:anywhere;}
.accident-page .ac-chart-summary strong.ac-summary-category{font-size:20px;}
.accident-page .ac-chart-summary small{font-size:12px;font-weight:400;}
.accident-page .ac-chart-summary strong small{margin-left:5px;}
.accident-page .ac-chart-card{margin:0;align-self:start;padding:18px;border-radius:10px;overflow:hidden;}
.accident-page .ac-chart-wide{grid-column:1/-1;}
.accident-page .ac-chart-card figcaption{margin-bottom:20px;}
.accident-page .ac-chart-card figcaption h2{margin:0 0 5px;font-size:18px;}
.accident-page .ac-chart-card figcaption p{margin:0;font-size:12px;color:#466780;}
.accident-page .ac-chart-switch{display:flex;gap:0;margin-top:10px;}
.accident-page .ac-chart-switch button{min-height:34px;padding:5px 12px;font-size:12px;border-radius:0;border-color:#86b9dc;}
.accident-page .ac-chart-switch button:first-child{border-radius:6px 0 0 6px;}
.accident-page .ac-chart-switch button:last-child{border-radius:0 6px 6px 0;border-left:0;}
.accident-page .ac-chart-switch button[aria-pressed="true"]{color:white;background:#0878cc;}
.accident-page .ac-chart-switch button:focus-visible{outline:3px solid #064890;outline-offset:3px;}
.accident-page .ac-month-scroll{overflow-x:auto;padding:20px 8px 3px;}
.accident-page .ac-month-chart{display:grid;gap:10px;}
.accident-page .ac-month-column{min-width:0;display:flex;flex-direction:column;align-items:stretch;text-align:center;gap:6px;}
.accident-page .ac-month-plot{height:172px;display:flex;gap:5px;align-items:flex-end;justify-content:center;border-bottom:2px solid #a6c6dd;background:repeating-linear-gradient(to top,transparent 0,transparent 41px,#e8f0f6 42px,#e8f0f6 43px);}
.accident-page .ac-month-bar{position:relative;min-height:0;width:min(46px,75%);background:#0878cc;border-radius:4px 4px 0 0;}
.accident-page .ac-month-bar b{position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);font-size:14px;color:#153f64;}
.accident-page .ac-month-previous{background:#e58b16;}
.accident-page .ac-compare-legend{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:8px;font-size:12px;}
.accident-page .ac-compare-legend span{display:flex;align-items:center;gap:7px;}
.accident-page .ac-compare-legend i{width:12px;height:12px;border-radius:3px;}
.accident-page .ac-change-up{color:#b42318;}.accident-page .ac-change-down{color:#06735b;}
.accident-page .ac-month-column>span{font-size:13px;font-weight:700;}
.accident-page .ac-month-column>small{font-size:11px;color:#48697f;}
.accident-page .ac-horizontal-chart{display:grid;gap:16px;padding:8px 0;}
.accident-page .ac-bar-row{display:grid;grid-template-columns:minmax(82px,1fr) minmax(0,1.5fr) 45px;gap:10px;align-items:center;}
.accident-page .ac-bar-label{font-size:13px;line-height:1.5;overflow-wrap:anywhere;}
.accident-page .ac-bar-track{height:18px;border-radius:4px;background:#edf3f7;overflow:hidden;}
.accident-page .ac-bar-fill{display:block;height:100%;border-radius:4px;}
.accident-page .ac-bar-row>b{text-align:right;white-space:nowrap;font-size:15px;}
.accident-page .ac-bar-row>b small{font-size:11px;margin-left:3px;}
.accident-page .ac-donut-layout{display:grid;grid-template-columns:minmax(130px,.9fr) minmax(0,1.1fr);align-items:center;gap:16px;}
.accident-page .ac-donut{display:block;width:100%;max-width:240px;margin:auto;overflow:visible;}
.accident-page .ac-donut text{fill:#153f64;font-family:inherit;}
.accident-page .ac-donut-label{font-size:14px;}
.accident-page .ac-donut-total{font-size:26px;font-weight:700;}
.accident-page .ac-chart-legend{list-style:none;padding:0;margin:0;display:grid;gap:12px;}
.accident-page .ac-chart-legend li{display:grid;grid-template-columns:11px minmax(0,1fr);gap:4px 8px;align-items:start;font-size:13px;overflow-wrap:anywhere;}
.accident-page .ac-chart-dot{width:11px;height:11px;border-radius:3px;margin-top:4px;}
.accident-page .ac-chart-legend b{grid-column:2;font-size:14px;}
.accident-page .ac-chart-legend small{margin-left:6px;font-size:12px;font-weight:400;color:#48697f;}
.accident-page .ac-chart-note{font-size:12px!important;line-height:1.6;color:#466780;}
.accident-page .ac-chart-empty{min-height:110px;display:grid;place-items:center;text-align:center;padding:20px;color:#48697f;background:#f5f9fc;border-radius:6px;}
.accident-page .ac-chart-details{margin-top:18px;border-top:1px solid #cfe0ec;padding-top:12px;}
.accident-page .ac-chart-details summary{font-size:13px;font-weight:700;cursor:pointer;padding:5px 0;}
.accident-page .ac-chart-details .ac-table-wrap{margin-top:10px;}
.accident-page .ac-chart-details caption{text-align:left;font-size:12px;padding:5px 0;}
.accident-page .ac-chart-details td:first-child{white-space:normal;overflow-wrap:anywhere;}
@media(max-width:700px){.accident-page .ac-chart-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}.accident-page .ac-chart-summary>div{padding:10px;}.accident-page .ac-chart-summary strong{font-size:24px;}.accident-page .ac-chart-summary strong.ac-summary-category{font-size:15px;}.accident-page .ac-chart-summary span{font-size:11px;}.accident-page .ac-chart-card{padding:14px;}.accident-page .ac-month-chart{gap:8px;}}
@media(max-width:700px){.accident-page .ac-donut-layout{grid-template-columns:1fr;}.accident-page .ac-donut{max-width:220px;}.accident-page .ac-chart-legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;}}
.ac-stat-print-frame{position:fixed;width:210mm;height:297mm;top:0;left:-10000px;border:0;}
@media print{.accident-page .ac-chart-switch,.accident-page .ac-chart-details{display:none;}.accident-page .ac-chart-card{break-inside:avoid;}.accident-page .ac-month-scroll{overflow:visible;}.accident-page .ac-chart-card{-webkit-print-color-adjust:exact;print-color-adjust:exact;}}

/* Audit filters share the search button's 38px control height. */
#serverAuditForm { --audit-control-height:38px; align-items:flex-end; }
#serverAuditForm > label { display:flex; flex-direction:column; gap:6px; margin:0; min-width:0; }
#serverAuditForm input,#serverAuditForm select,#serverAuditForm button { box-sizing:border-box; height:var(--audit-control-height); min-height:var(--audit-control-height); max-height:var(--audit-control-height); margin:0; padding:0 9px; font:inherit; line-height:normal; vertical-align:middle; }
#serverAuditForm button { display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; }

/* Persistent save/review bars; geometry follows the actual page or dialog. */
.mercury-fixed-actions {
  position:fixed !important; left:var(--save-left) !important; width:var(--save-width) !important;
  right:auto !important; bottom:var(--save-bottom) !important; top:auto !important;
  box-sizing:border-box !important; z-index:80; display:flex !important; align-items:center;
  justify-content:flex-end; flex-wrap:wrap; gap:8px; margin:0 !important;
  padding:10px 16px max(10px,env(safe-area-inset-bottom)) !important;
  border:0 !important; border-top:2px solid #b5d9f4 !important; border-radius:0 !important;
  background:#f5fbff !important; box-shadow:0 -4px 12px #17476b18;
}
.mercury-fixed-actions > span {margin-right:auto;font-size:12px;}
.mercury-fixed-actions button {flex:0 0 auto;width:auto !important;max-width:100%;min-height:38px;margin:0 !important;}
.mercury-save-spacer {box-sizing:border-box;flex:0 0 auto;width:100%;pointer-events:none;}
@media(max-width:600px){.mercury-fixed-actions{padding:8px 10px max(8px,env(safe-area-inset-bottom)) !important;gap:6px;}.mercury-fixed-actions > span{flex-basis:100%;}.mercury-fixed-actions button{font-size:13px;}}
@media print{.mercury-fixed-actions,.mercury-save-spacer{display:none !important;}}

/* Shared close controls and the first-login notification prompt. */
.man-dialog [data-man-close],.sn-login-dialog [data-sn-close],#closeMobileGroupMenu {
  min-height:40px;min-width:80px;padding:8px 16px;border:2px solid #a8cde5;
  border-radius:8px;background:#fff;color:#245472;font:inherit;font-weight:700;cursor:pointer;
}
.man-dialog [data-man-close] {margin:0 0 12px 16px;}
#notificationGuide {
  box-sizing:border-box;position:fixed;bottom:80px;left:16px;right:16px;z-index:1000;
  max-width:560px;max-height:40dvh;overflow:auto;padding:18px;
  background:#fff;border:2px solid #b5d8ee;border-radius:14px;
  box-shadow:0 8px 28px #174b7026;color:#245472;
}
#notificationGuideText {display:block;font-size:14px;line-height:1.7;}
.notification-guide-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
#notificationGuideOpen {background:#0878cc;border-color:#0878cc;color:#fff;}
@media(hover:hover){
  #notificationGuideOpen:not(:disabled):hover {background:#0664ac;border-color:#0664ac;}
  #notificationGuideDismiss:not(:disabled):hover,.man-dialog [data-man-close]:hover {background:#edf7ff;border-color:#6ba8d2;}
}
@media(max-width:600px){
  #notificationGuide {left:12px;right:12px;bottom:calc(80px + env(safe-area-inset-bottom));padding:16px;}
  #notificationGuide button,.man-dialog [data-man-close],.sn-login-dialog [data-sn-close],#closeMobileGroupMenu {min-height:44px;}
  .notification-guide-actions button {flex:1 1 auto;}
}

.co-image-row.co-logo-dragover { outline: 2px dashed #087cc8; outline-offset: 4px; background: #eef8ff; }

.message-read-button { margin-inline-start: 6px; padding: 4px 6px; border: 0; border-radius: 4px; background: transparent; color: #0754a2; font-size: 12px; white-space: nowrap; cursor: pointer; }
.message-read-button:hover, .message-read-button:focus-visible { background: #e4f2ff; }
.message-read-tabs { display: flex; gap: 8px; }
.message-read-tabs button { padding: 8px 14px; border: 1px solid #a8c9e8; border-radius: 6px; background: #fff; color: #164979; cursor: pointer; }
.message-read-tabs button[aria-pressed="true"] { background: #0754a2; color: #fff; }
@media(max-width:900px) { .message-read-button { min-height: 32px; } }

/* Keep long safety goals readable in narrow or short desktop windows. */
.home-content .goal-card { overflow-wrap: anywhere; }
@media (min-width: 901px) {
  .home-content { grid-template-rows: minmax(max-content, .95fr) minmax(285px, 1.05fr); overflow-y: auto; }
  .home-top-grid { min-height: 260px; }
  .home-top-grid .goal-card { min-height: min-content; }
}

.accident-page .ac-time-stats{margin-top:12px;}
.accident-page .ac-time-stats table{width:100%;}
.accident-page .ac-time-stats :is(th,td){white-space:nowrap;text-align:center;}
.accident-page .ac-time-stats button{min-width:32px;padding:4px;}
.accident-page .ac-time-stats button[aria-pressed="true"]{outline:2px solid #0878cc;}


/* PC layout audit: reserve space for notices and keep dialog navigation in view. */
body.app-mode { --app-header-height:76px; --notice-height:0px; }
body.app-mode > main {
  margin-top:var(--notice-height);
  height:calc(100dvh - var(--app-header-height) - var(--notice-height));
}
#notificationGuide {
  top:var(--app-header-height,76px);bottom:auto;left:0;right:0;
  width:100%;max-width:none;max-height:25dvh;margin:0;padding:8px 16px;
  border-radius:0;display:flex;align-items:center;justify-content:space-between;gap:12px;
}
#notificationGuideText {min-width:0;}
.notification-guide-actions {flex:0 0 auto;margin:0;}
.home-content {overflow:auto;overscroll-behavior:contain;}
/* The main element's stacking context must also clear the site header. */
body.dispatch-expanded-body > header {visibility:hidden;pointer-events:none;}
body.dispatch-expanded-body > main {position:relative;z-index:10001;margin-top:0;}
body.dispatch-expanded-body #notificationGuide {display:none !important;}
/* Bound every popup to the available viewport, including short PC windows. */
dialog {box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;}
.mercury-dialog-top {position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;background:#fff;border-bottom:1px solid #c8e3f5;}
.mercury-dialog-top h2 {margin:0;font-size:22px;min-width:0;overflow-wrap:anywhere;}
.mercury-dialog-top button {flex:none;}
.chat-members-dialog,.document-receipts-dialog {padding-top:0;scroll-padding-top:80px;}
.chat-members-dialog ul {padding-inline-start:24px;}
.man-dialog > [data-man-close],.sn-login-dialog [data-sn-close] {position:sticky;top:0;z-index:4;}
.status-heading,.dialog-fixed-header {position:sticky;top:0;z-index:4;background:#f5fbff;}
@media(max-width:900px){body.app-mode{--app-header-height:58px;}}
@media(max-width:600px){
  #notificationGuide{left:0;right:0;bottom:auto;padding:8px 12px;gap:8px;flex-wrap:wrap;}
  #notificationGuideText{font-size:12px;line-height:1.4;}
  .notification-guide-actions{margin-left:auto;gap:8px;}
  #notificationGuide button{min-height:36px;padding:5px 10px;}
}

/* Keep bulletin close controls visible and checkboxes at their native control scale. */
dialog.ab-dialog { padding-top:0; scroll-padding-top:110px; }
body dialog.ab-dialog > header {
  position:sticky; top:0; z-index:5; height:auto; min-height:0;
  margin:0 -20px; padding:12px 20px; box-sizing:border-box;
  background:#edf8f3; border-bottom:1px solid #bedccc;
}
body dialog.ab-dialog > header > div { min-width:0; }
body dialog.ab-dialog > header h2 { margin:0; overflow-wrap:anywhere; }
body dialog.ab-dialog > header p { margin:4px 0 0; line-height:1.5; }
body dialog.ab-dialog > header button { flex-shrink:0; }
.ab-dialog > label.ab-name-option { display:flex; align-items:center; gap:8px; margin:10px 0 6px; cursor:pointer; }
.ab-dialog input[type="checkbox"] { width:18px; height:18px; min-width:18px; min-height:18px; flex:0 0 18px; margin:0; padding:0; }
@media(max-width:600px) {
  dialog.ab-dialog { padding-top:0; }
  body dialog.ab-dialog > header { margin-inline:-12px; padding-inline:12px; }
}
/* Compact notification checkboxes and persistent close controls. */
.photo-notice-settings input[type="checkbox"] {
  width:18px; height:18px; min-width:18px; min-height:18px; max-width:18px;
  flex:0 0 18px; padding:0; vertical-align:middle;
}
dialog.hd-mobile-detail,dialog.system-service-dialog { padding-top:0 !important; scroll-padding-top:90px; }
dialog .mercury-dialog-top { height:auto; min-height:0; flex-wrap:wrap; background:#fff; }
dialog .mercury-dialog-top form { margin:0; flex:0 0 auto; }
dialog .mercury-dialog-top h2 { flex:1 1 180px; }


/* Reserve fixed action space after all page sections, including independent side lists. */
.app-page > .mercury-save-spacer { grid-column:1 / -1; clear:both; min-height:0; }
.profile-page { min-height:0; height:100%; }
.profile-password-card label > span > input { flex:1 1 0; width:0; }
.profile-password-card label button { flex:0 0 auto; min-width:52px; white-space:nowrap; }

/* Keep both manual navigation actions visible while reading long illustrated guides. */
.man-dialog-navigation {
  position:sticky; top:0; z-index:5; display:flex; flex-wrap:wrap;
  align-items:center; justify-content:space-between; gap:8px;
  margin-bottom:12px; padding:8px 0; background:#fff;
  border-bottom:1px solid #c8e3f5;
}
.man-dialog-navigation [data-man-close] { float:none; margin:0; order:2; margin-left:auto; }
.man-dialog-navigation [data-man-public-back] { order:1; }
#manPreview { padding-top:0; scroll-padding-top:100px; }
#manPreview .man-preview-body h3 { scroll-margin-top:100px; }
