/* FIX34 - role-based home dashboard. Owner/master dashboard is untouched. */
.content.erp34-role-home-mode > :not(.erp34-role-home){
  display:none!important;
}

.erp34-role-home{
  width:100%;
  padding:28px 30px 46px;
  box-sizing:border-box;
  color:#17243a;
}

.erp34-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:28px 30px;
  border:1px solid #e0e8f3;
  border-radius:20px;
  background:linear-gradient(135deg,#f8fbff 0%,#eef5ff 100%);
  box-shadow:0 12px 34px rgba(29,65,112,.07);
  margin-bottom:20px;
}

.erp34-eyebrow{
  color:#5378ad;
  font-size:13px;
  font-weight:800;
  margin-bottom:8px;
}
.erp34-hero h1{margin:0;color:#13233c;font-size:30px;line-height:1.2;letter-spacing:-.7px}
.erp34-hero p{margin:9px 0 0;color:#728198;font-size:14px}
.erp34-userbox{
  min-width:210px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  padding:12px 14px;
}
.erp34-userbox span{
  padding:5px 9px;border-radius:999px;background:#e7f0ff;color:#3567aa;font-size:11px;font-weight:900;
}
.erp34-userbox b{font-size:17px;color:#1d2d47}
.erp34-userbox small{font-size:12px;color:#8592a6;text-align:right}

.erp34-card-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}
.erp34-card{
  appearance:none;
  width:100%;
  min-height:132px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px;
  border:1px solid #e0e7f0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(28,59,103,.055);
  text-align:left;
  cursor:pointer;
  color:inherit;
}
.erp34-card:hover{transform:translateY(-1px);box-shadow:0 11px 27px rgba(28,59,103,.09)}
.erp34-card-icon{
  width:46px;height:46px;flex:0 0 46px;display:flex;align-items:center;justify-content:center;
  border-radius:14px;font-size:20px;font-weight:900;background:#eaf2ff;color:#3d6fab;
}
.erp34-card.mint .erp34-card-icon{background:#e8f7f2;color:#438c77}
.erp34-card.orange .erp34-card-icon{background:#fff1dd;color:#bd7935}
.erp34-card.violet .erp34-card-icon{background:#f0ebff;color:#7560ac}
.erp34-card-copy{min-width:0;display:flex;flex-direction:column;gap:4px;flex:1}
.erp34-card-copy small{font-size:13px;color:#78869a}
.erp34-card-copy b{font-size:25px;line-height:1.15;color:#192840;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.erp34-card-copy em{font-size:11px;color:#9aa5b5;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.erp34-card > i{font-size:22px;color:#a8b5c6;font-style:normal}

.erp34-lower-grid{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(320px,.8fr);
  gap:16px;
}
.erp34-section{
  border:1px solid #e0e7f0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(28,59,103,.045);
  padding:20px;
}
.erp34-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.erp34-section-head h2{margin:0;font-size:18px;color:#1a2941}
.erp34-section-head p{margin:5px 0 0;font-size:12px;color:#8a97a8}
.erp34-section-head button{
  border:0;background:transparent;color:#426da7;font-weight:800;font-size:12px;cursor:pointer;padding:8px;
}

.erp34-task-list{display:flex;flex-direction:column;gap:8px}
.erp34-task{
  width:100%;min-height:60px;display:flex;align-items:center;gap:12px;padding:11px 12px;
  border:1px solid #edf1f6;border-radius:13px;background:#fbfcfe;color:inherit;cursor:pointer;text-align:left;
}
.erp34-task:hover{background:#f6f9fd}
.erp34-task-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#6b92c7}
.erp34-task-dot.orange{background:#e59b4f}.erp34-task-dot.violet{background:#8c76c4}.erp34-task-dot.mint{background:#55a78e}
.erp34-task-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.erp34-task-copy b{font-size:13px;color:#2a3951}
.erp34-task-copy small{font-size:11px;color:#909caf}
.erp34-task strong{font-size:13px;color:#365f99;white-space:nowrap}
.erp34-task i{font-style:normal;color:#a0aec0;font-size:19px}
.erp34-empty-good{
  min-height:110px;display:flex;align-items:center;justify-content:center;gap:12px;
  border-radius:14px;background:#f0faf6;color:#397c68;
}
.erp34-empty-good > span{
  width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#dff3eb;font-weight:900
}
.erp34-empty-good div{display:flex;flex-direction:column;gap:4px}
.erp34-empty-good small{font-size:11px;color:#75998c}

.erp34-quick-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.erp34-quick{
  min-height:58px;display:flex;align-items:center;gap:9px;padding:10px 11px;
  border:1px solid #edf1f6;border-radius:12px;background:#fbfcfe;color:#2d3d55;cursor:pointer;text-align:left
}
.erp34-quick:hover{background:#f4f8fe;border-color:#dce7f6}
.erp34-quick > span{width:26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#e9f1fd;color:#557db2;font-weight:800}
.erp34-quick b{font-size:12px;flex:1}
.erp34-quick i{font-style:normal;color:#a8b4c5}
.erp34-empty{padding:24px;text-align:center;color:#9ba7b6;font-size:12px}

.erp34-recent-section{margin-top:16px}
.erp34-recent-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.erp34-recent-doc{
  min-height:62px;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #edf1f6;
  border-radius:12px;background:#fbfcfe;color:inherit;text-align:left;cursor:pointer
}
.erp34-doc-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#eaf2ff;color:#527cb2}
.erp34-recent-doc > span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:3px;flex:1}
.erp34-recent-doc b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.erp34-recent-doc small{font-size:10px;color:#95a1b1}
.erp34-recent-doc em{font-style:normal;font-size:10px;font-weight:800;padding:4px 7px;border-radius:999px;background:#e9f2ff;color:#527db7}
.erp34-recent-doc em.orange{background:#fff0df;color:#b97737}.erp34-recent-doc em.mint{background:#e8f7f1;color:#438b77}

.erp34-load-error{
  max-width:520px;margin:80px auto;padding:30px;border:1px solid #f0d1d1;border-radius:18px;background:#fff8f8;text-align:center
}
.erp34-load-error b{font-size:18px;color:#913f3f}.erp34-load-error p{color:#a06a6a;font-size:13px}
.erp34-load-error button{border:0;border-radius:10px;background:#2f67b7;color:#fff;font-weight:800;padding:10px 16px;cursor:pointer}

@media(max-width:1100px){
  .erp34-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .erp34-lower-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .erp34-role-home{padding:14px 12px calc(96px + env(safe-area-inset-bottom))}
  .erp34-hero{padding:18px 16px;flex-direction:column;gap:12px;border-radius:16px}
  .erp34-hero h1{font-size:24px}
  .erp34-userbox{align-items:flex-start;min-width:0;padding:0}
  .erp34-userbox small{text-align:left}
  .erp34-card-grid{grid-template-columns:1fr 1fr;gap:9px}
  .erp34-card{min-height:118px;padding:14px;gap:10px;flex-direction:column;align-items:flex-start}
  .erp34-card-icon{width:34px;height:34px;flex-basis:34px;border-radius:10px;font-size:16px}
  .erp34-card-copy b{font-size:20px}
  .erp34-card > i{display:none}
  .erp34-section{padding:15px;border-radius:15px}
  .erp34-section-head{align-items:flex-start}
  .erp34-section-head h2{font-size:16px}
  .erp34-quick-list{grid-template-columns:1fr 1fr}
  .erp34-recent-list{grid-template-columns:1fr}
}
@media(max-width:390px){
  .erp34-card-grid{grid-template-columns:1fr}
  .erp34-quick-list{grid-template-columns:1fr}
}
