
:root{
  --bc-bg:#f4f6f8;
  --bc-surface:#ffffff;
  --bc-surface-2:#f8fafc;
  --bc-sidebar:#ffffff;
  --bc-border:#e5e7eb;
  --bc-border-2:#d7dce3;
  --bc-text:#111827;
  --bc-text-soft:#6b7280;
  --bc-accent:#111111;
  --bc-accent-2:#2d2d2d;
  --bc-accent-soft:#f1f3f5;
  --bc-shadow:0 16px 40px rgba(17,24,39,.05);
  --bc-radius:22px;
  --bc-radius-sm:16px;
  --bc-sidebar-width:280px;
  --bc-topbar-height:88px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bc-bg);
  color:var(--bc-text);
}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
button,input,select,textarea{font:inherit}

.bc-app{
  min-height:100vh;
  display:grid;
  grid-template-columns:var(--bc-sidebar-width) minmax(0,1fr);
}

.bc-sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--bc-sidebar-width);
  background:var(--bc-sidebar);
  border-right:1px solid var(--bc-border);
  padding:22px 18px;
  overflow:auto;
  z-index:40;
}
.bc-brand{
  display:flex;
  align-items:center;
  gap:14px;
  padding:2px 8px 24px;
}
.bc-brand img,.bc-brand .custom-logo{
  width:auto;
  max-height:56px;
}
.bc-brand-fallback{
  width:52px;height:52px;border-radius:16px;
  background:linear-gradient(135deg,var(--bc-accent),var(--bc-accent-2));
  color:#fff;display:grid;place-items:center;font-weight:800
}
.bc-brand-text strong{
  display:block;
  font-size:1.2rem;
  letter-spacing:.03em;
}
.bc-brand-text span{
  display:block;
  margin-top:4px;
  color:var(--bc-text-soft);
  font-size:.92rem;
}

.bc-nav-section{
  margin-top:10px;
}
.bc-nav-label{
  display:block;
  padding:10px 10px 12px;
  color:var(--bc-text-soft);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.75rem;
  font-weight:700;
}
.bc-nav-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}
.bc-nav-link{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 18px;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:0 12px 0 0;
  border-radius:18px;
  color:var(--bc-text);
  transition:.18s ease;
}
.bc-nav-link:hover{
  background:var(--bc-surface-2);
}
.bc-nav-link.is-active{
  background:var(--bc-surface-2);
  box-shadow:inset 0 0 0 1px var(--bc-border);
}
.bc-nav-ic{
  width:40px;height:40px;margin-left:9px;border-radius:14px;
  display:grid;place-items:center;
  background:#fff;
  border:1px solid var(--bc-border);
}
.bc-nav-ic svg{width:20px;height:20px;stroke:#1f2937}
.bc-nav-link strong{
  font-size:1rem;
  font-weight:700;
}
.bc-nav-link small{
  display:block;
  margin-top:3px;
  color:var(--bc-text-soft);
  font-size:.83rem;
}
.bc-nav-arrow{
  color:#9ca3af;
  font-size:1.1rem;
}

.bc-main{
  grid-column:2;
  min-width:0;
  min-height:100vh;
}
.bc-topbar{
  position:sticky;
  top:0;
  z-index:30;
  height:var(--bc-topbar-height);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--bc-border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 28px;
}
.bc-topbar-left{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}
.bc-mobile-toggle{
  display:none;
  width:44px;height:44px;border-radius:14px;
  border:1px solid var(--bc-border);
  background:#fff;
  place-items:center;
}
.bc-mobile-toggle svg{width:20px;height:20px;stroke:#111827}
.bc-search{
  position:relative;
  width:min(560px, 52vw);
}
.bc-search input{
  width:100%;
  height:50px;
  border-radius:999px;
  border:1px solid var(--bc-border);
  background:#fff;
  padding:0 18px 0 48px;
  color:var(--bc-text);
}
.bc-search svg{
  position:absolute;
  left:16px;top:50%;transform:translateY(-50%);
  width:20px;height:20px;stroke:#6b7280;
}
.bc-topbar-right{
  display:flex;
  align-items:center;
  gap:14px;
}
.bc-user-chip{
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid var(--bc-border);
  border-radius:999px;
  padding:6px 14px 6px 6px;
  box-shadow:var(--bc-shadow);
}
.bc-user-avatar{
  width:42px;height:42px;border-radius:50%;
  background:linear-gradient(135deg,#d1d5db,#9ca3af);
  display:grid;place-items:center;
  color:#111827;font-weight:800;
}
.bc-user-meta strong{
  display:block;font-size:.95rem
}
.bc-user-meta span{
  display:block;color:var(--bc-text-soft);font-size:.8rem;margin-top:2px
}
.bc-logout{
  height:46px;
  display:inline-flex;align-items:center;justify-content:center;
  padding:0 16px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--bc-border);
  font-weight:700;
}

.bc-content{
  padding:26px 28px 28px;
}
.bc-page-title{
  margin:0 0 18px;
  font-size:2rem;
  letter-spacing:.01em;
}
.bc-page-subtitle{
  margin:-8px 0 18px;
  color:var(--bc-text-soft);
  line-height:1.6;
}

.bc-dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr) minmax(280px,.75fr);
  gap:24px;
}
.bc-card{
  background:var(--bc-surface);
  border:1px solid var(--bc-border);
  border-radius:var(--bc-radius);
  box-shadow:var(--bc-shadow);
  overflow:hidden;
}
.bc-card-pad{padding:24px}
.bc-hero-card{
  min-height:360px;
  background:linear-gradient(135deg,#0d0d0d 0%, #1b1b1b 30%, #353535 70%, #111111 100%);
  color:#fff;
  position:relative;
  border-radius:24px;
  overflow:hidden;
}
.bc-hero-card:before{
  content:"";
  position:absolute;
  inset:-80px -120px auto auto;
  width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 66%);
}
.bc-hero-inner{
  position:relative;
  z-index:1;
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:360px;
}
.bc-pill{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.bc-hero-inner h2{
  margin:18px 0 12px;
  font-size:clamp(2rem,3.5vw,3.2rem);
  line-height:1.05;
  max-width:740px;
}
.bc-hero-inner p{
  margin:0;
  max-width:680px;
  color:rgba(255,255,255,.82);
  font-size:1rem;
  line-height:1.7;
}
.bc-stats{
  display:flex;
  gap:18px;
  margin-top:20px;
  color:rgba(255,255,255,.82);
  font-size:.92rem;
  flex-wrap:wrap;
}
.bc-mini-card h3,.bc-side-card h3{
  margin:0 0 16px;
  font-size:1.05rem;
}
.bc-sep{
  height:1px;
  background:var(--bc-border);
  margin:0 0 16px;
}
.bc-online-row{
  display:flex;align-items:center;gap:14px
}
.bc-avatar{
  width:54px;height:54px;border-radius:50%;
  background:linear-gradient(135deg,#d1d5db,#9ca3af);
  position:relative;
}
.bc-avatar:after{
  content:"";
  position:absolute;right:1px;top:1px;
  width:10px;height:10px;border-radius:50%;
  background:#22c55e;border:2px solid #fff;
}
.bc-online-name{
  font-weight:700
}
.bc-community-list{
  display:grid;gap:16px
}
.bc-person{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 20px;
  align-items:center;
  gap:14px;
}
.bc-person .bc-avatar{width:52px;height:52px}
.bc-person strong{
  display:block;font-size:.97rem
}
.bc-person span{
  display:block;color:var(--bc-text-soft);font-size:.82rem;margin-top:4px;line-height:1.45
}
.bc-dotmenu{color:#9ca3af;font-weight:700;text-align:right}

.bc-calendar-wrap{
  padding:0 0 14px;
}
.bc-calendar-art{
  height:210px;
  background:linear-gradient(135deg,#d1d5db 0%, #f5f5f5 28%, #bdbdbd 48%, #3b3b3b 100%);
}
.bc-calendar-pad{padding:22px}
.bc-calendar-title{
  margin:0 0 16px;
  font-size:1.85rem;
  text-align:center;
}
.bc-cal-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:10px;
  text-align:center;
  color:#4b5563;
  font-size:.92rem;
}
.bc-cal-grid strong{
  color:#111827;
  font-size:.8rem;
  letter-spacing:.12em;
}
.bc-progress-bar{
  height:12px;border-radius:999px;background:#eceff3;overflow:hidden
}
.bc-progress-bar span{
  display:block;height:100%;width:68%;
  background:linear-gradient(90deg,#111,#555);
  border-radius:999px;
}

.bc-blog-card .bc-card-pad{padding:28px}
.bc-blog-head{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  margin-bottom:20px
}
.bc-blog-head h3{margin:0;font-size:1.9rem}
.bc-blog-item{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:22px;
  align-items:center;
}
.bc-blog-thumb{
  min-height:180px;border-radius:18px;
  background:linear-gradient(135deg,#d9d2cc 0%, #f2e6da 45%, #d2b59f 100%);
}
.bc-blog-item h4{
  margin:10px 0 10px;font-size:2rem;line-height:1.15
}
.bc-blog-meta,.bc-blog-desc{
  color:var(--bc-text-soft);line-height:1.7
}
.bc-tag-row{
  display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px
}
.bc-tag{
  min-height:32px;padding:0 14px;border-radius:999px;
  display:inline-flex;align-items:center;
  background:var(--bc-accent-soft);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase
}

.bc-module-shell{
  min-height:calc(100vh - var(--bc-topbar-height) - 54px);
}
.bc-module-page{
  background:var(--bc-surface);
  border:1px solid var(--bc-border);
  border-radius:24px;
  box-shadow:var(--bc-shadow);
  padding:18px;
}
.bc-module-page--fullscreen{
  min-height:calc(100vh - var(--bc-topbar-height) - 76px);
  padding:12px;
}
.bc-module-page > *:first-child{margin-top:0}
.bc-module-page > *:last-child{margin-bottom:0}

.bc-shellless .bc-content{
  padding:18px;
}
.bc-shellless .bc-module-page{
  border-radius:18px;
}
.bc-hidden-footer .bc-footer{display:none}

.bc-footer{
  padding:0 28px 26px 28px;
}
.bc-footer-card{
  background:#fff;border:1px solid var(--bc-border);
  border-radius:18px;padding:16px 18px;color:var(--bc-text-soft)
}

.wp-block-group,.wp-block-columns{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  padding:0!important;
}
table{width:100%;border-collapse:collapse;background:#fff}
th,td{padding:14px;border-bottom:1px solid #ececec;text-align:left}
th{background:#f8fafc;color:#4b5563}
input[type=text],input[type=email],input[type=url],input[type=number],input[type=date],input[type=password],select,textarea{
  width:100%;padding:12px 14px;border-radius:14px;border:1px solid #d2d7de;background:#fff;color:var(--bc-text)
}
textarea{min-height:120px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;border-color:#9ca3af;box-shadow:0 0 0 4px rgba(17,24,39,.05)}
button,.button,input[type=submit],input[type=button],.wp-element-button{
  appearance:none;border:none;
  min-height:44px;padding:0 16px;border-radius:14px;
  background:linear-gradient(135deg,var(--bc-accent),var(--bc-accent-2));
  color:#fff;font-weight:700;cursor:pointer
}

body.login{
  background:linear-gradient(135deg,#111827 0%, #31343a 100%);
}
.login h1 a{
  background-image:none!important;text-indent:0;color:#fff!important;
  width:auto;height:auto;font-size:28px;font-weight:800;line-height:1.2
}
.login form{
  border-radius:18px;border:1px solid rgba(255,255,255,.14);
  box-shadow:0 24px 60px rgba(0,0,0,.18)
}
.login #nav a,.login #backtoblog a{color:#fff!important}

@media (max-width:1280px){
  .bc-dashboard-grid{
    grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);
  }
  .bc-dashboard-grid > .bc-card:last-child{
    grid-column:2;
  }
}
@media (max-width:1080px){
  .bc-app{
    grid-template-columns:1fr;
  }
  .bc-sidebar{
    transform:translateX(-100%);
    transition:transform .22s ease;
  }
  .bc-sidebar.is-open{
    transform:translateX(0);
  }
  .bc-main{
    grid-column:auto;
  }
  .bc-mobile-toggle{
    display:grid;
  }
  .bc-search{
    width:min(100%, 560px);
  }
}
@media (max-width:980px){
  .bc-dashboard-grid{
    grid-template-columns:1fr;
  }
  .bc-blog-item{
    grid-template-columns:1fr;
  }
}
@media (max-width:700px){
  .bc-topbar{
    height:auto;
    padding:14px 16px;
    flex-wrap:wrap;
  }
  .bc-content,.bc-footer{
    padding-left:16px;
    padding-right:16px;
  }
  .bc-user-chip{
    padding-right:10px;
  }
  .bc-user-meta{
    display:none;
  }
}


/* v1.1 refinements */
body.admin-bar .bc-topbar{top:0}
html{margin-top:0!important}
#wpadminbar{display:none!important}

.bc-collapse-toggle{display:grid;width:44px;height:44px;border-radius:14px;border:1px solid var(--bc-border);background:#fff;place-items:center;cursor:pointer}
.bc-collapse-toggle svg{width:18px;height:18px;stroke:#111827}

.bc-app.is-collapsed{grid-template-columns:92px minmax(0,1fr)}
.bc-app.is-collapsed .bc-sidebar{width:92px;padding:18px 10px}
.bc-app.is-collapsed .bc-brand{padding:2px 4px 18px;justify-content:center}
.bc-app.is-collapsed .bc-brand-text,
.bc-app.is-collapsed .bc-nav-label,
.bc-app.is-collapsed .bc-nav-link small,
.bc-app.is-collapsed .bc-nav-link strong,
.bc-app.is-collapsed .bc-nav-arrow{display:none!important}
.bc-app.is-collapsed .bc-nav-link{grid-template-columns:1fr;justify-items:center;padding:0;min-height:52px}
.bc-app.is-collapsed .bc-nav-ic{margin-left:0}
.bc-app.is-collapsed .bc-sidebar{overflow:visible}
.bc-app.is-collapsed .bc-nav-link{position:relative}
.bc-app.is-collapsed .bc-nav-link:hover:after{
  content:attr(data-label);position:absolute;left:64px;top:50%;transform:translateY(-50%);
  white-space:nowrap;background:#111827;color:#fff;padding:8px 10px;border-radius:10px;font-size:.82rem;font-weight:700;z-index:90
}
.bc-app.is-collapsed .bc-nav-link:hover:before{
  content:'';position:absolute;left:58px;top:50%;transform:translateY(-50%);
  border:6px solid transparent;border-right-color:#111827;z-index:90
}
.bc-brand-text strong{font-size:1rem;line-height:1.15}
.bc-brand-text span{font-size:.82rem}
.bc-brand img,.bc-brand .custom-logo{max-height:52px;max-width:120px}

.bc-topbar-left{flex:1}
.bc-search{width:min(640px,100%)}
.bc-content{padding:22px 24px 24px}
.bc-page-title{font-size:1.8rem}
.bc-page-subtitle{font-size:.95rem}

/* Home dashboard should look like dashboard, not old shortcode cards */
.bc-dashboard-grid{align-items:start}

/* Module pages more full-screen */
.bc-shellless .bc-content{padding:14px 18px 18px}
.bc-module-page,.bc-module-page--fullscreen{min-height:calc(100vh - var(--bc-topbar-height) - 36px);padding:14px;border-radius:20px}

/* Front office cleanup */
.tbb-actions a[href*="admin.php?page=tbb332_"],
a[href*="/wp-admin/"]{display:none!important}

/* Uniform buttons for frontoffice modules */
.tbb-wrap .button,
.tbb-wrap button,
.bc-orc-list .btn,
.bc-orc-wrap .btn,
.bc-list .btn,
.bcp-wrap .btn,
.bc-caixa .btn,
.bc-caixa button,
.bc-module-page .button,
.bc-module-page button,
.bc-module-page input[type=submit],
.bc-module-page .wp-element-button{
  background:#111827!important;
  color:#fff!important;
  border:1px solid #111827!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.tbb-wrap .button.ghost,
.tbb-wrap .button-secondary,
.bc-module-page .button-secondary{
  background:#fff!important;
  color:#111827!important;
  border:1px solid #d1d5db!important;
}
.bc-list .icon-btn,
.bcp-wrap .icon-btn{
  background:#fff!important;
  border:1px solid #d1d5db!important;
  border-radius:10px!important;
}
.bc-list .delete,
.bcp-wrap .delete,
.bc-module-page .is-danger,
.bc-module-page .danger{
  color:#fff!important;
  background:#111827!important;
  border-color:#111827!important;
}

/* Portfolio/Orçamentos/Trabalhos wrappers */
.tbb-wrap,.bcp-wrap,.bc-orc-list,.bc-orc-wrap,.bc-caixa,.bc-shell{
  max-width:none!important;
}
.tbb-wrap .tbb-header,
.bc-orc-list,
.bcp-wrap,
.bc-caixa{
  background:#fff;
  border:1px solid var(--bc-border);
  border-radius:18px;
}
.tbb-wrap .tbb-header{padding:12px 14px}
.tbb-wrap .tbb-board{border-radius:18px;overflow:auto}

@media (max-width:1080px){
  .bc-collapse-toggle{display:none}
  .bc-app.is-collapsed{grid-template-columns:1fr}
}


/* v1.2 home hero clock */
.bc-dashboard-grid{grid-template-columns:minmax(0,1.45fr) minmax(280px,.7fr) minmax(280px,.7fr)}
.bc-hero-card{
  min-height:390px;
  background:
    linear-gradient(135deg, rgba(17,24,39,.82), rgba(17,24,39,.46)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.14), transparent 34%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.12), transparent 28%),
    linear-gradient(120deg, #dfe6ea 0%, #f8fafb 35%, #d4d9de 65%, #eef1f4 100%);
}
.bc-hero-inner{min-height:390px;justify-content:space-between}
.bc-hero-topline{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.bc-welcome-wrap{max-width:780px}
.bc-clock-time{font-size:clamp(3.3rem,8vw,6.2rem);font-weight:800;line-height:.95;letter-spacing:-.04em;margin:6px 0 0}
.bc-clock-date{margin-top:10px;color:rgba(255,255,255,.82);font-size:1.06rem;line-height:1.6}
.bc-welcome-title{margin:16px 0 0;font-size:clamp(1.5rem,3vw,2.35rem);line-height:1.08;max-width:780px}
.bc-welcome-sub{margin:14px 0 0;max-width:680px;color:rgba(255,255,255,.82);font-size:1rem;line-height:1.7}
.bc-quick-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.bc-quick-link{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#fff;font-weight:700}
.bc-quick-link svg{width:16px;height:16px;stroke:#fff}
.bc-quick-link:hover{background:rgba(255,255,255,.18)}
.bc-card h3{font-size:1.05rem}
@media (max-width:980px){.bc-hero-card,.bc-hero-inner{min-height:320px}.bc-clock-time{font-size:3.6rem}}


/* v1.3 homepage hero full width */
.bc-dashboard-grid-home .bc-hero-card--full{grid-column:1 / -1;min-height:420px}
.bc-dashboard-grid-home .bc-hero-card--full .bc-hero-inner{min-height:420px;padding:34px 36px}
.bc-dashboard-grid-home .bc-welcome-wrap{max-width:920px}
.bc-dashboard-grid-home .bc-clock-time{font-size:clamp(4rem,9vw,7rem);font-weight:800;line-height:.92;margin:18px 0 10px;letter-spacing:-.04em}
.bc-dashboard-grid-home .bc-clock-date{font-size:1.5rem;color:rgba(255,255,255,.88);margin-bottom:18px}
.bc-dashboard-grid-home .bc-welcome-title{max-width:none;font-size:clamp(2.2rem,4vw,4rem);margin:0 0 12px}
.bc-dashboard-grid-home .bc-welcome-sub{max-width:860px;font-size:1.12rem}
.bc-dashboard-grid-home .bc-quick-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.bc-dashboard-grid-home .bc-quick-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 16px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#fff;font-weight:700}
.bc-dashboard-grid-home .bc-quick-link svg{width:16px;height:16px;stroke:#fff}
.bc-dashboard-grid-home .bc-home-maincard .bc-card-pad{padding:24px}
.bc-dashboard-grid-home .bc-home-maincard .bc-blog-item h4{font-size:2.1rem}
@media (max-width:980px){
  .bc-dashboard-grid-home .bc-hero-card--full,.bc-dashboard-grid-home .bc-home-maincard{grid-column:auto!important}
  .bc-dashboard-grid-home .bc-clock-time{font-size:4.5rem}
  .bc-dashboard-grid-home .bc-clock-date{font-size:1.12rem}
}


/* v1.4 minimal homepage clock */
.bc-dashboard-grid-home--minimal{display:block}
.bc-dashboard-grid-home--minimal .bc-hero-card--onlytime{
  min-height:calc(100vh - var(--bc-topbar-height) - 48px);
  border-radius:28px;
}
.bc-dashboard-grid-home--minimal .bc-hero-card--onlytime .bc-hero-inner{
  min-height:calc(100vh - var(--bc-topbar-height) - 48px);
  display:flex;
  align-items:center;
  padding:44px 52px;
}
.bc-dashboard-grid-home--minimal .bc-welcome-wrap--minimal{
  max-width:1000px;
}
.bc-dashboard-grid-home--minimal .bc-clock-time{
  font-size:clamp(5rem, 13vw, 9rem);
  font-weight:800;
  line-height:.9;
  letter-spacing:-.06em;
  margin:0 0 16px;
}
.bc-dashboard-grid-home--minimal .bc-clock-date{
  font-size:clamp(1.35rem, 2.2vw, 2rem);
  color:rgba(255,255,255,.88);
  margin:0 0 24px;
}
.bc-dashboard-grid-home--minimal .bc-welcome-title{
  margin:0;
  font-size:clamp(2.4rem, 4.6vw, 5rem);
  line-height:1.03;
  max-width:1100px;
}
.bc-dashboard-grid-home--minimal .bc-hero-card:before{
  inset:-60px -80px auto auto;
  width:520px;height:520px;
}
@media (max-width:980px){
  .bc-dashboard-grid-home--minimal .bc-hero-card--onlytime,
  .bc-dashboard-grid-home--minimal .bc-hero-card--onlytime .bc-hero-inner{
    min-height:calc(100vh - var(--bc-topbar-height) - 40px);
    padding:28px;
  }
  .bc-dashboard-grid-home--minimal .bc-clock-time{font-size:4.4rem}
  .bc-dashboard-grid-home--minimal .bc-clock-date{font-size:1.1rem}
  .bc-dashboard-grid-home--minimal .bc-welcome-title{font-size:2.2rem}
}


/* v1.5 centered clean home clock */
.bc-dashboard-grid-home--minimal .bc-hero-card--clean{
  background:#ffffff!important;
  color:#111827!important;
  border:1px solid var(--bc-border)!important;
  box-shadow:var(--bc-shadow)!important;
}
.bc-dashboard-grid-home--minimal .bc-hero-card--clean:before{display:none!important}
.bc-dashboard-grid-home--minimal .bc-hero-card--clean .bc-hero-inner{
  justify-content:center;
  align-items:center;
  text-align:center;
}
.bc-dashboard-grid-home--minimal .bc-welcome-wrap--minimal{
  max-width:none;
  width:100%;
}
.bc-dashboard-grid-home--minimal .bc-clock-time{
  color:#111827!important;
  font-size:clamp(5.5rem, 14vw, 10rem);
  line-height:.9;
  margin:0;
}
.bc-dashboard-grid-home--minimal .bc-clock-date{
  color:#6b7280!important;
  font-size:clamp(1.05rem, 1.7vw, 1.4rem);
  margin-top:16px;
  margin-bottom:0;
}


/* v1.6 white backgrounds + typography + unified plugin buttons */
html,body,
.bc-app,
.bc-sidebar,
.bc-main,
.bc-topbar,
.bc-content,
.bc-content *:not(svg):not(path){
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bc-main,
.bc-content,
.bc-module-page,
.bc-module-page--fullscreen,
.bc-shell,
.bc-panel,
.tbb-wrap,
.bcp-wrap,
.bc-orc-wrap,
.bc-orc-list,
.bc-caixa,
.bc-caixa-shell{
  background:#ffffff!important;
}

/* Trabalhos visual mais clean */
.tbb-wrap .tbb-header,
.tbb-wrap .tbb-board,
.tbb-wrap [class*="modal"],
.tbb-wrap [class*="dialog"],
.tbb-wrap [class*="panel"],
.tbb-wrap form,
.tbb-wrap textarea,
.tbb-wrap input,
.tbb-wrap select,
.tbb-wrap [class*="card"],
.tbb-wrap [class*="task"],
.tbb-wrap [class*="column"],
.tbb-wrap [class*="col"]{
  background:#ffffff!important;
}
.tbb-wrap [class*="modal"],
.tbb-wrap [class*="dialog"]{
  border-radius:24px!important;
  border:1px solid #e5e7eb!important;
  box-shadow:0 20px 60px rgba(17,24,39,.12)!important;
}

/* Portfólio / Orçamentos / Caixa clean */
.bcp-wrap,
.bcp-wrap [class*="modal"],
.bcp-wrap [class*="dialog"],
.bcp-wrap [class*="card"],
.bc-orc-wrap,
.bc-orc-wrap form,
.bc-orc-wrap [class*="card"],
.bc-orc-list,
.bc-orc-list table,
.bc-caixa,
.bc-caixa [class*="card"],
.bc-caixa form,
.bc-caixa table{
  background:#ffffff!important;
}

/* Fields uniformes */
.tbb-wrap input,
.tbb-wrap textarea,
.tbb-wrap select,
.bcp-wrap input,
.bcp-wrap textarea,
.bcp-wrap select,
.bc-orc-wrap input,
.bc-orc-wrap textarea,
.bc-orc-wrap select,
.bc-orc-list input,
.bc-orc-list textarea,
.bc-orc-list select,
.bc-caixa input,
.bc-caixa textarea,
.bc-caixa select,
.bc-module-page input,
.bc-module-page textarea,
.bc-module-page select{
  min-height:48px;
  background:#ffffff!important;
  color:#111827!important;
  border:1px solid #dbe1ea!important;
  border-radius:14px!important;
  padding:0 14px!important;
  box-shadow:none!important;
  font-size:15px!important;
}
.tbb-wrap textarea,
.bcp-wrap textarea,
.bc-orc-wrap textarea,
.bc-orc-list textarea,
.bc-caixa textarea,
.bc-module-page textarea{
  min-height:110px;
  padding:14px!important;
}
.tbb-wrap input:focus,
.tbb-wrap textarea:focus,
.tbb-wrap select:focus,
.bcp-wrap input:focus,
.bcp-wrap textarea:focus,
.bcp-wrap select:focus,
.bc-orc-wrap input:focus,
.bc-orc-wrap textarea:focus,
.bc-orc-wrap select:focus,
.bc-orc-list input:focus,
.bc-orc-list textarea:focus,
.bc-orc-list select:focus,
.bc-caixa input:focus,
.bc-caixa textarea:focus,
.bc-caixa select:focus,
.bc-module-page input:focus,
.bc-module-page textarea:focus,
.bc-module-page select:focus{
  outline:none!important;
  border-color:#111827!important;
  box-shadow:0 0 0 3px rgba(17,24,39,.08)!important;
}

/* Tipografia uniforme */
.tbb-wrap,
.tbb-wrap *:not(svg):not(path),
.bcp-wrap,
.bcp-wrap *:not(svg):not(path),
.bc-orc-wrap,
.bc-orc-wrap *:not(svg):not(path),
.bc-orc-list,
.bc-orc-list *:not(svg):not(path),
.bc-caixa,
.bc-caixa *:not(svg):not(path),
.bc-module-page,
.bc-module-page *:not(svg):not(path){
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif!important;
  color:#111827;
}
.tbb-wrap h1,.tbb-wrap h2,.tbb-wrap h3,.tbb-wrap h4,
.bcp-wrap h1,.bcp-wrap h2,.bcp-wrap h3,.bcp-wrap h4,
.bc-orc-wrap h1,.bc-orc-wrap h2,.bc-orc-wrap h3,.bc-orc-wrap h4,
.bc-orc-list h1,.bc-orc-list h2,.bc-orc-list h3,.bc-orc-list h4,
.bc-caixa h1,.bc-caixa h2,.bc-caixa h3,.bc-caixa h4{
  font-weight:800!important;
  letter-spacing:-.02em;
}

/* Botões uniformizados em todos os plugins */
.tbb-wrap .button,
.tbb-wrap button,
.tbb-wrap [type="submit"],
.tbb-wrap [type="button"],
.tbb-wrap a.button,
.bcp-wrap .button,
.bcp-wrap button,
.bcp-wrap [type="submit"],
.bcp-wrap [type="button"],
.bcp-wrap a.button,
.bc-orc-wrap .btn,
.bc-orc-wrap .button,
.bc-orc-wrap button,
.bc-orc-wrap [type="submit"],
.bc-orc-wrap [type="button"],
.bc-orc-wrap a.btn,
.bc-orc-list .btn,
.bc-orc-list .button,
.bc-orc-list button,
.bc-orc-list [type="submit"],
.bc-orc-list [type="button"],
.bc-orc-list a.btn,
.bc-caixa .btn,
.bc-caixa .button,
.bc-caixa button,
.bc-caixa [type="submit"],
.bc-caixa [type="button"],
.bc-caixa a.btn,
.bc-module-page .btn,
.bc-module-page .button,
.bc-module-page button,
.bc-module-page [type="submit"],
.bc-module-page [type="button"],
.bc-module-page a.btn{
  appearance:none!important;
  min-height:46px!important;
  padding:0 18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  background:#111827!important;
  color:#ffffff!important;
  border:1px solid #111827!important;
  border-radius:14px!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:none!important;
  transition:all .18s ease!important;
}
.tbb-wrap .button:hover,
.tbb-wrap button:hover,
.tbb-wrap a.button:hover,
.bcp-wrap .button:hover,
.bcp-wrap button:hover,
.bcp-wrap a.button:hover,
.bc-orc-wrap .btn:hover,
.bc-orc-wrap button:hover,
.bc-orc-wrap a.btn:hover,
.bc-orc-list .btn:hover,
.bc-orc-list button:hover,
.bc-orc-list a.btn:hover,
.bc-caixa .btn:hover,
.bc-caixa button:hover,
.bc-caixa a.btn:hover,
.bc-module-page .btn:hover,
.bc-module-page button:hover,
.bc-module-page a.btn:hover{
  background:#0b1220!important;
  border-color:#0b1220!important;
  transform:translateY(-1px);
}
.tbb-wrap .button:disabled,
.tbb-wrap button:disabled,
.bcp-wrap .button:disabled,
.bcp-wrap button:disabled,
.bc-orc-wrap .btn:disabled,
.bc-orc-wrap button:disabled,
.bc-orc-list .btn:disabled,
.bc-orc-list button:disabled,
.bc-caixa .btn:disabled,
.bc-caixa button:disabled,
.bc-module-page .btn:disabled,
.bc-module-page button:disabled{
  background:#d1d5db!important;
  border-color:#d1d5db!important;
  color:#6b7280!important;
  transform:none!important;
}

/* Botões ghost/secundários */
.tbb-wrap .button-secondary,
.tbb-wrap .secondary,
.bcp-wrap .button-secondary,
.bcp-wrap .secondary,
.bc-orc-wrap .button-secondary,
.bc-orc-list .button-secondary,
.bc-caixa .button-secondary,
.bc-module-page .button-secondary{
  background:#ffffff!important;
  color:#111827!important;
  border:1px solid #d1d5db!important;
}

/* Eliminar/remover deixam de aparecer a rosa/vermelho */
.tbb-wrap .remove,
.tbb-wrap .delete,
.tbb-wrap .danger,
.tbb-wrap .is-danger,
.bcp-wrap .remove,
.bcp-wrap .delete,
.bcp-wrap .danger,
.bcp-wrap .is-danger,
.bc-orc-wrap .remove,
.bc-orc-wrap .delete,
.bc-orc-wrap .danger,
.bc-orc-list .remove,
.bc-orc-list .delete,
.bc-orc-list .danger,
.bc-caixa .remove,
.bc-caixa .delete,
.bc-caixa .danger,
.bc-module-page .remove,
.bc-module-page .delete,
.bc-module-page .danger,
.bc-module-page .is-danger{
  background:#111827!important;
  border-color:#111827!important;
  color:#ffffff!important;
}

/* Tabelas e blocos */
.bc-orc-list table,
.bc-caixa table,
.bc-module-page table{
  border-collapse:separate!important;
  border-spacing:0!important;
  border:1px solid #e5e7eb!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
.bc-orc-list th,.bc-orc-list td,
.bc-caixa th,.bc-caixa td,
.bc-module-page th,.bc-module-page td{
  border-color:#eef2f7!important;
  padding:12px 14px!important;
  font-size:14px!important;
}


/* v1.6.1 modal actions aligned bottom, black buttons, white text */
.tbb-wrap #tbb-modal .tbb-modal-box,
.tbb-wrap .tbb-modal-box{
  display:flex!important;
  flex-direction:column!important;
  min-height:640px!important;
}

.tbb-wrap #tbb-modal .tbb-modal-actions,
.tbb-wrap .tbb-modal-actions{
  margin-top:auto!important;
  padding-top:18px!important;
  border-top:1px solid #e5e7eb!important;
  background:#fff!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-end!important;
  gap:16px!important;
  position:sticky!important;
  bottom:0!important;
}

.tbb-wrap #tbb-modal .tbb-modal-actions .left,
.tbb-wrap #tbb-modal .tbb-modal-actions .right,
.tbb-wrap .tbb-modal-actions .left,
.tbb-wrap .tbb-modal-actions .right{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex-wrap:wrap!important;
}

.tbb-wrap #tbb-modal .tbb-modal-actions .right,
.tbb-wrap .tbb-modal-actions .right{
  margin-left:auto!important;
  justify-content:flex-end!important;
}

.tbb-wrap #tbb-modal.open-edit .tbb-modal-actions .only-exist,
.tbb-wrap .tbb-modal.open-edit .tbb-modal-actions .only-exist{
  display:inline-flex!important;
}

.tbb-wrap #tbb-modal:not(.open-edit) .tbb-modal-actions .only-exist,
.tbb-wrap .tbb-modal:not(.open-edit) .tbb-modal-actions .only-exist{
  display:none!important;
}

.tbb-wrap #tbb-modal .tbb-modal-actions .button,
.tbb-wrap #tbb-modal .tbb-modal-actions .button.button-primary,
.tbb-wrap #tbb-modal .tbb-modal-actions .button.ghost,
.tbb-wrap #tbb-modal .tbb-modal-actions .button.danger,
.tbb-wrap .tbb-modal-actions .button,
.tbb-wrap .tbb-modal-actions .button.button-primary,
.tbb-wrap .tbb-modal-actions .button.ghost,
.tbb-wrap .tbb-modal-actions .button.danger{
  background:#111827!important;
  color:#ffffff!important;
  border:1px solid #111827!important;
  min-height:46px!important;
  padding:0 18px!important;
  border-radius:14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-weight:700!important;
  box-shadow:none!important;
  text-decoration:none!important;
}

.tbb-wrap #tbb-modal .tbb-modal-actions .button:hover,
.tbb-wrap .tbb-modal-actions .button:hover{
  background:#0b1220!important;
  border-color:#0b1220!important;
}

@media (max-width: 820px){
  .tbb-wrap #tbb-modal .tbb-modal-box,
  .tbb-wrap .tbb-modal-box{
    min-height:auto!important;
  }
  .tbb-wrap #tbb-modal .tbb-modal-actions,
  .tbb-wrap .tbb-modal-actions{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .tbb-wrap #tbb-modal .tbb-modal-actions .left,
  .tbb-wrap #tbb-modal .tbb-modal-actions .right,
  .tbb-wrap .tbb-modal-actions .left,
  .tbb-wrap .tbb-modal-actions .right{
    width:100%!important;
    margin-left:0!important;
    justify-content:flex-start!important;
  }
}


/* v1.6.2 modal footer fixed: show print/cancel and align all actions to bottom */
.tbb-wrap #tbb-modal .tbb-modal-box{
  display:flex!important;
  flex-direction:column!important;
  min-height:680px!important;
}
.tbb-wrap #tbb-modal .tbb-modal-actions{
  margin-top:auto!important;
  padding-top:20px!important;
  border-top:1px solid #e5e7eb!important;
  background:#fff!important;
  position:sticky!important;
  bottom:0!important;
  display:grid!important;
  grid-template-columns:1fr auto!important;
  align-items:end!important;
  gap:14px!important;
}
.tbb-wrap #tbb-modal .tbb-modal-actions .left,
.tbb-wrap #tbb-modal .tbb-modal-actions .right{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex-wrap:wrap!important;
}
.tbb-wrap #tbb-modal .tbb-modal-actions .right{
  justify-content:flex-end!important;
}
.tbb-wrap #tbb-modal.open-edit .tbb-modal-actions .only-exist{
  display:inline-flex!important;
}
.tbb-wrap #tbb-modal:not(.open-edit) .tbb-modal-actions .only-exist{
  display:none!important;
}

/* Force these controls visible and styled equally */
.tbb-wrap #tbb-print,
.tbb-wrap #tbb-cancel,
.tbb-wrap #tbb-save,
.tbb-wrap #tbb-archive,
.tbb-wrap #tbb-delete{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  background:#111827!important;
  color:#fff!important;
  border:1px solid #111827!important;
  min-height:46px!important;
  padding:0 18px!important;
  border-radius:14px!important;
  align-items:center!important;
  justify-content:center!important;
  font-weight:700!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.tbb-wrap #tbb-print:hover,
.tbb-wrap #tbb-cancel:hover,
.tbb-wrap #tbb-save:hover,
.tbb-wrap #tbb-archive:hover,
.tbb-wrap #tbb-delete:hover{
  background:#0b1220!important;
  border-color:#0b1220!important;
}

/* Also catch generic modal action buttons from plugin CSS */
.tbb-wrap #tbb-modal .tbb-modal-actions .button,
.tbb-wrap #tbb-modal .tbb-modal-actions .button.button-primary,
.tbb-wrap #tbb-modal .tbb-modal-actions .button.ghost,
.tbb-wrap #tbb-modal .tbb-modal-actions .button.danger{
  background:#111827!important;
  color:#fff!important;
  border:1px solid #111827!important;
}

/* Mobile layout */
@media (max-width: 820px){
  .tbb-wrap #tbb-modal .tbb-modal-box{
    min-height:auto!important;
  }
  .tbb-wrap #tbb-modal .tbb-modal-actions{
    grid-template-columns:1fr!important;
  }
  .tbb-wrap #tbb-modal .tbb-modal-actions .left,
  .tbb-wrap #tbb-modal .tbb-modal-actions .right{
    width:100%!important;
    justify-content:flex-start!important;
  }
}
