/* TIM-OE visual patch 2026-05-02
   - Fix rounded header/container corners so square background does not show behind
   - Keep header area clean on admin pages
   - No login/auth changes here
*/

/* Round the outer main panel so the dark square behind the header disappears */
body.timoe-vibiz-admin [data-timoe-main="vibiz"] > div,
body.timoe-vibiz-admin [data-timoe-main="vibiz"] > div > div[class*="px-3"],
body.timoe-vibiz-admin [data-timoe-main="vibiz"] > div > div[class*="px-3"] > div[class*="rounded-[30px]"] {
  border-radius: 34px !important;
}

body.timoe-vibiz-admin [data-timoe-main="vibiz"] > div > div[class*="px-3"] {
  overflow: hidden !important;
  background: transparent !important;
}

body.timoe-vibiz-admin [data-timoe-main="vibiz"] > div > div[class*="px-3"] > div[class*="rounded-[30px]"] {
  overflow: hidden !important;
  background-clip: padding-box !important;
}

/* Top header card must clip its background/blur correctly */
body.timoe-vibiz-admin header,
body.timoe-vibiz-admin main > div > div:first-child,
body.timoe-vibiz-admin [data-timoe-main="vibiz"] > div > div:first-child {
  border-radius: 28px !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

/* Remove any accidental square pseudo/background edges behind the header */
body.timoe-vibiz-admin [data-timoe-main="vibiz"] > div > div:first-child::before,
body.timoe-vibiz-admin [data-timoe-main="vibiz"] > div > div:first-child::after,
body.timoe-vibiz-admin header::before,
body.timoe-vibiz-admin header::after {
  border-radius: inherit !important;
}

/* Materials page guest/auth warning should stay readable and not look broken */
body.timoe-vibiz-admin #timoe-material-stock-page .tms-wrap,
body.timoe-vibiz-admin #timoe-material-stock-page .tms-card {
  max-width: 100% !important;
  border-radius: 24px !important;
}
