/* Flow Task Manager app chrome (loaded after the shared blueview.css, which stays identical to
   Applications/Operaton-Branding/flowset/blueview.css so forms render exactly as on workflow.).
   Only what surrounds the forms lives here. UI spec: Development/AI_Flow-Task-Manager-UI-Spec.md. */

:root {
  --bv-page: #EEF1F5;          /* UI spec: one step darker than Flowset's #F5F7FA */
  --bv-line-300: #D5DCE6;
  --bv-success: #2E7D4F;
  --bv-tabbar-h: 60px;
}

/* ---------------------------------------------------------------- header brand (UI spec 4.1) */
.ant-layout-header { padding-inline: 20px !important; gap: 8px; }
.bv-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; margin-right: 1.5em; line-height: 1; }
.bv-brand__tile {
  width: 36px; height: 36px; border-radius: 9px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.bv-brand__mark { width: 26px; height: 26px; object-fit: contain; }
.bv-brand__text { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.bv-brand__eyebrow {
  color: var(--bv-gold-400); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.bv-brand__title { color: #fff; font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 17px; letter-spacing: .02em; }

/* ---------------------------------------------------------------- phone (< 640): bottom tab bar */
.bv-tabbar { display: none; }

@media (max-width: 639.98px) {
  .ant-layout-header { padding-inline: 12px !important; }
  .ant-layout-header .ant-menu { display: none !important; }   /* navigation moves to the tab bar */
  .ant-layout-header > div:has(.ant-menu) { flex: 1 1 auto; }
  .bv-brand__eyebrow { display: none; }
  .bv-brand__title { font-size: 15px; }
  .ant-layout-header > div:last-child { margin-left: auto !important; }

  .bv-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    height: calc(var(--bv-tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff; border-top: 1px solid var(--bv-line-300);
    box-shadow: 0 -2px 10px rgba(7, 56, 100, .08);
  }
  .bv-tabbar__item {
    flex: 1 1 0; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--bv-slate-500) !important; text-decoration: none !important;
    position: relative;
  }
  .bv-tabbar__item.is-active { color: var(--bv-navy-700) !important; }
  .bv-tabbar__item.is-active::before {
    content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--bv-gold-400);
  }
  /* keep content clear of the bar */
  .ant-layout-content { padding-bottom: calc(var(--bv-tabbar-h) + env(safe-area-inset-bottom, 0px)); }
}
