/* TIM HEBAT REV5.9.2 - PIC More bottom sheet matches the Employee More UI.
   Layout only. Existing PIC menu routing and authorization remain untouched. */
@media (max-width: 979px) {
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet {
    justify-content: center !important;
    padding: 0 !important;
    background: rgba(13, 25, 43, .45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet.open {
    display: flex !important;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-sheet-card {
    box-sizing: border-box !important;
    width: min(600px, 100%) !important;
    max-height: min(86dvh, 720px) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 11px 14px max(20px, env(safe-area-inset-bottom)) !important;
    border-radius: 24px 24px 0 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    background: #f7f9fc !important;
    box-shadow: 0 -16px 42px rgba(13, 25, 43, .16) !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-handle {
    width: 38px !important;
    height: 5px !important;
    border-radius: 99px !important;
    background: #cbd5e1 !important;
    margin: 2px auto 14px !important;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-sheet-head {
    position: sticky;
    top: -11px;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 52px !important;
    padding: 1px 0 12px !important;
    margin: 0 !important;
    background: #f7f9fc !important;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-sheet-head strong {
    color: #17263c !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -.02em;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-sheet-head button {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #e9eef5 !important;
    color: #9a2334 !important;
    font: inherit !important;
    font-size: 26px !important;
    font-weight: 650 !important;
    cursor: pointer;
  }
  /* The old <=390px rule forced the PIC menu to one column.
     Use the same two-column grid as Employee on ordinary phone widths. */
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu > button {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 66px !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    padding: 10px !important;
    text-align: left !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #17263c !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: clamp(11.5px, 3.3vw, 13px) !important;
    font-weight: 760 !important;
    line-height: 1.32 !important;
    cursor: pointer;
    white-space: normal !important;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu > button > span:last-child {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu .thmd-menu-ic {
    box-sizing: border-box !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 5px !important;
    border-radius: 10px !important;
    background: #f1f4f8 !important;
    color: #7f2436 !important;
    line-height: 1 !important;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu .thmd-menu-ic svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 100%;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu > button.active {
    border-color: #e4b6c1 !important;
    background: #fdf1f3 !important;
    color: #891f33 !important;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu > button.danger {
    grid-column: 1 / -1;
    min-height: 58px !important;
    justify-content: center !important;
    background: #fff5f6 !important;
    border-color: #f2dfe2 !important;
    color: #a22733 !important;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu > button.danger > span:last-child {
    flex: 0 1 auto;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu > button:focus-visible,
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-sheet-head button:focus-visible {
    outline: 2px solid #a63b53 !important;
    outline-offset: 1px !important;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu button:disabled {
    opacity: .62 !important;
    cursor: wait !important;
  }
  body.thpic592-sheet-visible { overflow: hidden !important; }
}
@media (max-width: 330px) {
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-sheet-card {
    padding-inline: 10px !important;
  }
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu {gap: 7px !important;}
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu > button {padding: 8px !important;font-size: 11px !important;gap: 6px !important;}
  body.th-pic-mobile-v35zzr #th-pic-mobile-sheet.thum-sheet .thmd-menu .thmd-menu-ic {width: 28px !important;height: 28px !important;flex-basis: 28px !important;}
}
