/* IPDA BI app - Infopro Digital Automotive styling (Roboto, Infopro blue). */
:root {
  --blue: #00378C; --blue-800: #002E75; --blue-900: #000A1A; --blue-500: #335FA3; --blue-300: #99AFD1;
  --blue-100: #CCD7E8; --blue-50: #E5EBF3; --grey-50: #F5F5F5; --grey-100: #EAEAEA; --grey-300: #C8C8C8;
  --grey-500: #6E6E6E; --ink: #000917; --err: #B00020; --ok: #0B7A3E;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Roboto, Arial, sans-serif; color: var(--ink); background: var(--grey-50); font-size: 14px;
       -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; }

/* ---------------------------------------------------------------- sign-in */
.login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.login .brand { background: var(--blue); color: #fff; padding: 56px; display: flex; flex-direction: column;
                justify-content: space-between; position: relative; overflow: hidden; }
.login .brand img { height: 44px; width: auto; align-self: flex-start; position: relative; z-index: 1; }
.login .brand h2 { font-size: 40px; font-weight: 500; line-height: 1.15; margin: 0 0 16px; position: relative; z-index: 1; }
.login .brand p { color: var(--blue-100); max-width: 440px; line-height: 1.55; margin: 0; font-size: 16px; position: relative; z-index: 1; }
.login .brand ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.login .brand li { color: #fff; display: flex; gap: 10px; align-items: center; font-size: 15px; }
.login .brand li::before { content: ""; width: 6px; height: 6px; background: var(--blue-300); border-radius: 50%; flex: none; }
.login .brand small { color: var(--blue-300); position: relative; z-index: 1; }
.login .brand::after { content: ""; position: absolute; right: -60px; bottom: -40px; width: 360px; height: 460px;
  background: linear-gradient(115deg, transparent 40%, var(--blue-800) 40%, var(--blue-800) 62%, transparent 62%); opacity: .7; }
.login .panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; background: #fff; }
.login form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.login h1 { font-size: 28px; color: var(--blue); margin: 0; font-weight: 500; }
.login .lead { color: var(--grey-500); margin: -6px 0 8px; }
label { font-size: 13px; color: var(--grey-500); display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
input { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--blue-100); border-radius: 4px; color: var(--ink); background: #fff; }
input:focus { outline: 2px solid var(--blue-300); border-color: var(--blue); }
.pw { position: relative; display: flex; }
.pw input { flex: 1; padding-right: 64px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent;
             color: var(--blue); font-size: 13px; font-weight: 500; padding: 6px 8px; }
.primary { border: 0; border-radius: 4px; padding: 13px 18px; background: var(--blue); color: #fff; font-weight: 500; font-size: 15px; }
.primary:hover { background: var(--blue-800); }
.primary:disabled { opacity: .6; cursor: default; }
.err { color: var(--err); font-size: 14px; min-height: 20px; }
.login .help { color: var(--grey-500); font-size: 13px; line-height: 1.5; border-top: 1px solid var(--grey-100); padding-top: 16px; margin-top: 8px; }
.login .legal { color: var(--grey-500); font-size: 12px; margin-top: 32px; }

/* ---------------------------------------------------------------- app shell */
.top { background: #fff; border-bottom: 1px solid var(--grey-100); position: sticky; top: 0; z-index: 10; }
.top .bar { display: flex; align-items: center; gap: 24px; padding: 0 28px; height: 64px; max-width: 1600px; margin: 0 auto; }
.top .logo { height: 32px; width: auto; flex: none; }
.top .product { color: var(--grey-500); font-size: 13px; border-left: 1px solid var(--grey-100); padding-left: 16px; white-space: nowrap; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.customer { display: flex; align-items: center; gap: 8px; color: var(--grey-500); font-size: 13px; }
.customer select { font: inherit; font-size: 14px; color: var(--ink); border: 1px solid var(--blue-100); border-radius: 4px;
                   padding: 7px 28px 7px 10px; background: #fff; max-width: 260px; }
.customer .one { color: var(--ink); font-weight: 500; background: var(--blue-50); border-radius: 4px; padding: 6px 10px; }
.seg { display: inline-flex; border: 1px solid var(--blue-100); border-radius: 4px; overflow: hidden; }
.seg button { border: 0; background: #fff; color: var(--grey-500); padding: 6px 10px; font-size: 13px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.user { position: relative; }
.user > button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px 6px; border-radius: 4px; color: var(--ink); }
.user > button:hover { background: var(--grey-50); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center;
          font-size: 13px; font-weight: 500; flex: none; }
.user .uname { font-weight: 500; white-space: nowrap; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--grey-100); border-radius: 6px;
        box-shadow: 0 8px 24px rgba(0, 10, 26, .12); min-width: 240px; padding: 6px; }
.menu .who { padding: 10px 12px; border-bottom: 1px solid var(--grey-100); margin-bottom: 6px; }
.menu .who b { display: block; } .menu .who span { color: var(--grey-500); font-size: 12px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 4px; color: var(--ink); }
.menu button:hover { background: var(--blue-50); color: var(--blue); }

nav.tabs { background: #fff; border-bottom: 1px solid var(--grey-100); }
nav.tabs .inner { display: flex; gap: 4px; padding: 0 28px; max-width: 1600px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
nav.tabs .inner::-webkit-scrollbar { display: none; }
nav.tabs button { border: 0; background: transparent; color: var(--grey-500); font-weight: 500; padding: 14px 14px 12px;
                  border-bottom: 3px solid transparent; white-space: nowrap; }
nav.tabs button:hover { color: var(--blue); }
nav.tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
nav.tabs .sep { width: 1px; background: var(--grey-100); margin: 10px 8px; flex: none; }
nav.tabs .ai::before { content: "✦ "; color: var(--blue-500); }

main.page { max-width: 1600px; margin: 0 auto; padding: 24px 28px 8px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.head h1 { font-size: 26px; color: var(--blue); margin: 0; font-weight: 500; }
.head .sub { color: var(--grey-500); margin: 4px 0 0; }
.scope { display: inline-flex; align-items: center; gap: 6px; color: var(--grey-500); font-size: 12px; }
.scope::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
ipda-bi { display: block; background: transparent; font-family: Roboto, Arial, sans-serif; margin: 0 -16px; min-height: 60vh; }
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
         color: var(--grey-500); padding: 80px 20px; }
.state h2 { color: var(--ink); font-weight: 500; margin: 0; font-size: 20px; }
footer.foot { max-width: 1600px; margin: 0 auto; padding: 16px 28px 24px; color: var(--grey-500); font-size: 12px;
              display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login .brand { padding: 32px 24px; min-height: 0; gap: 24px; }
  .login .brand h2 { font-size: 28px; }
  .login .brand ul { display: none; }
  .top .bar { padding: 0 16px; gap: 12px; }
  .top .product, .user .uname, .customer > span { display: none; }
  .customer select { max-width: 150px; }
  nav.tabs .inner { padding: 0 8px; }
  main.page { padding: 16px 16px 8px; }
  footer.foot { padding: 16px; }
}
@media (max-width: 520px) {
  .seg { display: none; }
  .top .bar { gap: 8px; }
  .top .logo { height: 26px; }
  .tools { gap: 6px; min-width: 0; }
  .customer { min-width: 0; }
  .customer select { max-width: 140px; }
  .customer .one { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
