
:root{
  --blue:#062b6f;
  --blue2:#0b55c8;
  --gold:#f2a51a;
  --bg:#f5f7fb;
  --text:#061f52;
  --muted:#64748b;
  --line:#dfe5ef;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}
body{padding-bottom:92px}
.bpms-page{min-height:100vh;background:var(--bg)}
.bpms-top{background:linear-gradient(135deg,var(--blue),var(--blue2));padding:14px 12px 16px;color:#fff;box-shadow:0 10px 28px rgba(6,43,111,.25)}
.bpms-top-row{max-width:1050px;margin:0 auto;display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center}
.bpms-logo-block{display:flex;align-items:center;gap:10px;min-width:0}
.bpms-logo{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:10px;padding:2px;flex:0 0 auto}
.bpms-company-text{line-height:1.02;min-width:0}
.bpms-company-text .brothers{font-size:22px;font-weight:900;letter-spacing:.04em;color:#fff;text-transform:uppercase;white-space:nowrap}
.bpms-company-text .concepts{font-size:10px;font-weight:700;color:rgba(255,255,255,.92);white-space:nowrap;margin-top:2px}
.bpms-separator{width:1px;height:52px;background:rgba(255,255,255,.36)}
.bpms-system-title{min-width:0}
.bpms-system-title b{display:block;font-size:19px;line-height:1.08;color:#fff;font-weight:900}
.bpms-system-title span{display:block;font-size:19px;line-height:1.08;color:#fff;font-weight:900}
.bpms-home-actions{display:flex;align-items:center;gap:8px}
.bpms-lang-toggle,.bpms-signout{border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.12);color:#fff;border-radius:999px;font-weight:900}
.bpms-lang-toggle{width:48px;height:38px;font-size:14px}
.bpms-signout{height:38px;padding:0 13px;font-size:12px;white-space:nowrap}

.bpms-main{max-width:1050px;margin:0 auto;padding:22px 14px 100px}
.bpms-welcome{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 26px rgba(15,23,42,.07);padding:16px;margin-bottom:16px;display:flex;justify-content:space-between;gap:14px;align-items:center}
.bpms-welcome small{display:block;color:var(--muted);font-size:17px;font-weight:600;margin-bottom:4px}
.bpms-welcome h1{margin:0;color:var(--text);font-size:34px;line-height:1.05;font-weight:900}
.bpms-welcome p{margin:5px 0 0;color:var(--muted);font-size:15px;word-break:break-word}
.bpms-user-role{background:#eef4ff;border:1px solid #dbe7ff;border-radius:16px;min-width:108px;padding:12px;text-align:center}
.bpms-user-role small{font-size:12px;color:#41516b;margin:0 0 4px}
.bpms-user-role b{display:block;color:#0b55c8;font-size:18px;line-height:1.1;text-transform:none}

.bpms-project{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 30px rgba(15,23,42,.07);overflow:hidden;margin-bottom:18px}
.bpms-project-hero{display:grid;grid-template-columns:1fr 45%;min-height:260px}
.bpms-project-copy{position:relative;z-index:2;background:#fff;padding:28px 0 22px 26px}
.bpms-project-copy:after{content:"";position:absolute;top:0;bottom:0;right:-150px;width:240px;z-index:-1;background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.92) 28%,rgba(255,255,255,.55) 58%,rgba(255,255,255,0) 100%);pointer-events:none}
.bpms-project-copy small{display:block;color:#0058d8;font-size:18px;font-weight:700;margin-bottom:14px}
.bpms-project-copy h2{margin:0 0 16px;color:var(--text);font-size:30px;line-height:1.1;font-weight:900}
.bpms-location{display:flex;align-items:center;gap:9px;color:#41516b;font-size:17px}
.bpms-location .pin{font-size:23px;color:#0b55c8}
.bpms-house{position:relative;min-height:260px;overflow:hidden}
.bpms-house img{width:100%;height:100%;object-fit:cover;object-position:center center;display:block}
.bpms-house:before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,.92) 0%,rgba(255,255,255,.55) 25%,rgba(255,255,255,0) 55%)}

.bpms-project-bottom{padding:22px 26px 26px;border-top:1px solid #e5eaf2}
.bpms-progress-title{color:#0058d8;font-size:17px;margin-bottom:10px}
.bpms-progress-grid{display:grid;grid-template-columns:110px 1fr;gap:16px;align-items:center}
.bpms-progress-num{font-size:48px;color:#0b55c8;font-weight:900;line-height:1}
.bpms-progressbar{height:16px;background:#e6edf7;border-radius:999px;position:relative}
.bpms-progressbar span{display:block;height:100%;width:0%;background:#0b55c8;border-radius:999px;transition:.45s ease}
.bpms-progress-bubble{position:absolute;top:-39px;left:0%;transform:translateX(-50%);background:#0b55c8;color:#fff;font-size:14px;font-weight:900;border-radius:8px;padding:7px 9px}
.bpms-progress-bubble:after{content:"";position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #0b55c8}
.bpms-project-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:20px;color:#53627a;font-size:14px}
.bpms-schedule{display:flex;align-items:center;gap:8px;color:#079638;font-weight:700}
.bpms-schedule .check{width:22px;height:22px;border-radius:50%;background:#059b3a;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}

.bpms-section-title{margin:0 0 13px 6px;color:var(--text);font-size:22px;font-weight:900}
.bpms-modules{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}
.bpms-module{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 24px rgba(15,23,42,.06);min-height:120px;padding:20px;text-decoration:none;color:var(--text);display:grid;grid-template-columns:45px 1fr;gap:12px;align-items:center}
.bpms-module .ico{width:45px;height:45px;border-radius:10px;background:#eef4ff;color:#0b55c8;display:flex;align-items:center;justify-content:center;font-size:24px}
.bpms-module b{display:block;font-size:16px;color:var(--text);margin-bottom:7px}
.bpms-module span{display:block;color:#53627a;font-size:14px}

.bpms-status{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 24px rgba(15,23,42,.05);padding:14px 22px;font-size:15px;color:#53627a}
.bpms-online{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:900}
.bpms-dot{width:13px;height:13px;background:#04a143;border-radius:50%;display:inline-block}
.bpms-online .status-text{color:#079638;margin-left:12px;font-weight:700}

.mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;height:74px;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:space-around;align-items:center;z-index:5000;box-shadow:0 -8px 24px rgba(15,23,42,.08)}
.mobile-bottom-nav a{color:var(--text);text-decoration:none;font-size:22px;font-weight:900;text-align:center;display:flex;flex-direction:column;gap:3px;align-items:center}
.mobile-bottom-nav a span{font-size:12px}
.mobile-bottom-nav a.active{color:#0b5cff}

/* remove any old floating notification bell */
.bpms-bell-fixed,#bpmsBellFixed{display:none!important}

@media(max-width:760px){
  .bpms-top-row{grid-template-columns:auto 1px minmax(0,1fr) auto;gap:8px}
  .bpms-logo{width:44px;height:44px}
  .bpms-company-text .brothers{font-size:17px}
  .bpms-company-text .concepts{font-size:8px}
  .bpms-separator{height:44px}
  .bpms-system-title b,.bpms-system-title span{font-size:14px}
  .bpms-home-actions{grid-column:1 / -1;justify-content:flex-end}
  .bpms-main{padding-top:18px}
  .bpms-welcome{padding:15px}
  .bpms-welcome small{font-size:16px}
  .bpms-welcome h1{font-size:32px}
  .bpms-welcome p{font-size:14px}
  .bpms-user-role{min-width:92px;padding:10px}
  .bpms-user-role b{font-size:16px}
  .bpms-project-hero{grid-template-columns:1fr 46%;min-height:236px}
  .bpms-project-copy{padding:22px 0 18px 20px}
  .bpms-project-copy:after{right:-80px;width:140px}
  .bpms-project-copy small{font-size:16px;margin-bottom:14px}
  .bpms-project-copy h2{font-size:25px}
  .bpms-location{font-size:16px}
  .bpms-house{min-height:236px}
  .bpms-project-bottom{padding:18px 20px 22px}
  .bpms-progress-grid{grid-template-columns:90px 1fr;gap:14px}
  .bpms-progress-num{font-size:44px}
  .bpms-modules{grid-template-columns:1fr 1fr;gap:14px}
  .bpms-module{min-height:106px;padding:15px;grid-template-columns:42px 1fr;gap:10px}
  .bpms-module .ico{width:42px;height:42px;font-size:22px}
  .bpms-module b{font-size:14px}
  .bpms-module span{font-size:12px}
  .bpms-status{font-size:13px;padding:12px 14px}
}

@media(max-width:390px){
  .bpms-top-row{grid-template-columns:1fr;justify-items:center;text-align:left}
  .bpms-logo-block{justify-content:center}
  .bpms-separator{display:none}
  .bpms-system-title{text-align:center}
  .bpms-home-actions{justify-content:center}
  .bpms-project-hero{grid-template-columns:1fr}
  .bpms-house{order:-1;min-height:145px}
  .bpms-house:before{background:linear-gradient(180deg,rgba(255,255,255,0),#fff)}
  .bpms-project-copy{padding:18px}
  .bpms-project-copy:after{display:none}
  .bpms-modules{grid-template-columns:1fr}
}

@media(min-width:761px){
  body{padding-bottom:0}
  .mobile-bottom-nav{display:none}
}


/* Increment 38.6 - Portrait header/user fixes */
.bpms-top{
  position:relative!important;
  overflow:hidden!important;
}

.bpms-logo-block{
  position:relative!important;
  z-index:2!important;
}

.bpms-logo{
  width:82px!important;
  height:82px!important;
  background:transparent!important;
  border-radius:0!important;
  padding:0!important;
  object-fit:contain!important;
  filter:drop-shadow(0 8px 14px rgba(0,0,0,.18))!important;
}

.bpms-company-text .brothers{
  font-size:28px!important;
  line-height:1!important;
}

.bpms-company-text .concepts{
  font-size:12px!important;
  letter-spacing:.02em!important;
}

.bpms-system-title b,
.bpms-system-title span{
  font-size:23px!important;
  line-height:1.08!important;
}

.bpms-lang-toggle{
  width:auto!important;
  min-width:116px!important;
  padding:0 14px!important;
  font-size:13px!important;
  letter-spacing:.01em!important;
}

.bpms-welcome{
  grid-template-columns:1fr!important;
  display:block!important;
}

.bpms-user-role,
.bpms-role-card{
  display:none!important;
}

#homeUserName:empty:before{
  content:"Loading...";
}

@media(max-width:760px){
  .bpms-top-row{
    grid-template-columns:1fr!important;
    justify-items:center!important;
    text-align:center!important;
    gap:10px!important;
  }

  .bpms-logo-block{
    justify-content:center!important;
    flex-direction:column!important;
    gap:4px!important;
  }

  .bpms-logo{
    width:112px!important;
    height:112px!important;
    margin-bottom:0!important;
  }

  .bpms-company-text .brothers{
    font-size:31px!important;
    text-align:center!important;
  }

  .bpms-company-text .concepts{
    font-size:12px!important;
    text-align:center!important;
  }

  .bpms-separator{
    display:none!important;
  }

  .bpms-system-title{
    text-align:center!important;
  }

  .bpms-system-title b,
  .bpms-system-title span{
    font-size:21px!important;
    text-align:center!important;
  }

  .bpms-home-actions{
    justify-content:center!important;
    grid-column:auto!important;
    width:100%!important;
    display:flex!important;
    gap:10px!important;
  }

  .bpms-lang-toggle{
    min-width:132px!important;
    height:40px!important;
  }

  .bpms-signout{
    height:40px!important;
    min-width:112px!important;
  }

  .bpms-welcome{
    text-align:left!important;
  }

  .bpms-welcome h1{
    font-size:34px!important;
  }
}

@media(max-width:390px){
  .bpms-logo{
    width:100px!important;
    height:100px!important;
  }

  .bpms-company-text .brothers{
    font-size:28px!important;
  }

  .bpms-system-title b,
  .bpms-system-title span{
    font-size:19px!important;
  }
}

/* Increment 38.7 - User Management module */
.bpms-module[href="admin-users.html"] .ico{
  background:#fff7ed!important;
  color:#c2410c!important;
}
