/*
 * Ebadi Partner Design System — v0.18.7
 * Canonical green visual language for every Partner front-end screen.
 */
:root{
  --ebp-green-950:#063b35;
  --ebp-green-900:#064b42;
  --ebp-green-800:#07584f;
  --ebp-green-700:#0b6b5f;
  --ebp-green-600:#0f7d6e;
  --ebp-green-500:#168f7c;
  --ebp-green-200:#bcded5;
  --ebp-green-100:#dceee9;
  --ebp-green-75:#e9f5f1;
  --ebp-green-50:#f3faf7;
  --ebp-surface:#ffffff;
  --ebp-page:#f7fbf9;
  --ebp-text:#15302b;
  --ebp-text-strong:#102722;
  --ebp-muted:#627872;
  --ebp-muted-2:#82938e;
  --ebp-line:#deebe7;
  --ebp-icon-bg:#f0f7f5;
  --ebp-danger:#b94a43;
  --ebp-danger-bg:#fff2f1;
  --ebp-success:#167451;
  --ebp-success-bg:#eaf7f0;
  --ebp-radius-xs:9px;
  --ebp-radius-sm:11px;
  --ebp-radius-md:14px;
  --ebp-radius-lg:17px;
  --ebp-shadow-card:0 2px 10px rgba(12,74,63,.035);
  --ebp-shadow-float:0 12px 30px rgba(7,88,79,.13);

  /* Legacy aliases intentionally point to the green system. */
  --eb-ui-bg:var(--ebp-surface);
  --eb-ui-surface:var(--ebp-surface);
  --eb-ui-soft:var(--ebp-green-50);
  --eb-ui-warm:var(--ebp-green-75);
  --eb-ui-warm-2:var(--ebp-green-50);
  --eb-ui-text:var(--ebp-text);
  --eb-ui-muted:var(--ebp-muted);
  --eb-ui-line:var(--ebp-line);
  --eb-ui-gold:var(--ebp-green-800);
  --eb-ui-gold-2:var(--ebp-green-700);
  --eb-ui-gold-soft:var(--ebp-green-75);
  --bg:var(--ebp-surface);
  --card:var(--ebp-surface);
  --ink:var(--ebp-text);
  --muted:var(--ebp-muted);
  --line:var(--ebp-line);
  --gold:var(--ebp-green-800);
  --gold2:var(--ebp-green-700);
  --gold-soft:var(--ebp-green-75);
}

/* Base */
html,body{background:#edf2f0}
body:not(.wp-admin){color:var(--ebp-text)}
.ebp-app{background:var(--ebp-surface)!important}
.ebp-main{background:var(--ebp-surface)!important}
.ebp-page-head{background:var(--ebp-surface)!important}
.ebp-page-head h1{color:var(--ebp-text-strong)!important;font-size:20px!important;font-weight:900!important}
.ebp-icon{fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}

/* Header */
.ebp-topbar,.ebp-shared-global-header{border-bottom:1px solid var(--ebp-line)!important;background:#fff!important}
.ebp-header-icon{color:var(--ebp-text)!important}
.ebp-header-icon:active{color:var(--ebp-green-800)!important;background:var(--ebp-green-50)!important;border-radius:10px}
.ebp-brand__copy strong{color:var(--ebp-text-strong)!important}
.ebp-brand__copy small{color:var(--ebp-muted)!important}

/* Canonical icon tile. This is the exact family used by the home service grid. */
:where(.stat-icon,.quick-icon,.menu-ic,.notif-ic,.big-icon,.connection-card>span,.preference-intro>span,.form-card__heading>span,.settings-row__icon,.feature-app__header>span,.inquiries-service__icon,.inquiries-page-header__mark,.inspection-empty__icon,.ebp-service-history-icon){
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:10px!important;
  background:var(--ebp-icon-bg)!important;
  color:var(--ebp-green-800)!important;
  box-shadow:none!important;
}
:where(.stat-icon,.quick-icon,.menu-ic,.notif-ic,.big-icon,.connection-card>span,.preference-intro>span,.form-card__heading>span,.settings-row__icon,.feature-app__header>span,.inquiries-service__icon,.inquiries-page-header__mark,.inspection-empty__icon,.ebp-service-history-icon) .ebp-icon,
:where(.stat-icon,.quick-icon,.menu-ic,.notif-ic,.big-icon,.connection-card>span,.preference-intro>span,.form-card__heading>span,.settings-row__icon,.feature-app__header>span,.inquiries-service__icon,.inquiries-page-header__mark,.inspection-empty__icon,.ebp-service-history-icon) svg{
  color:inherit!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important
}

/* Cards */
:where(.profile-card,.menu-list,.notif-card,.detail-card,.form-card,.empty-card,.request-card,.offer-card,.wallet-card,.plan,.preference-brand,.choice-card,.toggle-row,.connection-card,.notification-intro,.offer-target,.feature-form,.feature-list>article,.branch-card,.branch-info-panel,.inquiries-services,.inquiries-history,.inspection-card){
  border-color:var(--ebp-line)!important;
  background:var(--ebp-surface)!important;
  box-shadow:var(--ebp-shadow-card)!important;
}
:where(.profile-card,.detail-card,.form-card,.empty-card,.request-card,.offer-card,.wallet-card,.plan,.connection-card,.notification-intro,.offer-target,.feature-form,.branch-card,.branch-info-panel,.inquiries-services,.inquiries-history,.inspection-card){border-radius:var(--ebp-radius-md)!important}

/* Home-derived service icon family */
.partner-home-services a>span,.partner-home-metric__icon,.partner-home-promo__icon{
  background:var(--ebp-icon-bg)!important;color:var(--ebp-green-800)!important
}
.partner-home-promo__icon{background:rgba(255,255,255,.12)!important;color:#fff!important}
.partner-home-services a{border-color:var(--ebp-line)!important;box-shadow:var(--ebp-shadow-card)!important}
.partner-home-services small{color:#314c46!important}
.partner-home-band{background:#e7f3ef!important}

/* Profile */
.profile-card{padding:17px!important}
.profile-avatar{
  width:64px!important;height:64px!important;border:1px solid var(--ebp-green-200)!important;
  background:linear-gradient(145deg,var(--ebp-green-75),#fff)!important;
  color:var(--ebp-green-800)!important;box-shadow:none!important
}
.profile-card h2{color:var(--ebp-text-strong)!important}
.profile-card p{color:var(--ebp-muted)!important}
.profile-complete{background:var(--ebp-green-75)!important;color:var(--ebp-green-800)!important}
.menu-list{overflow:hidden!important;border-radius:15px!important}
.menu-list a{min-height:57px!important;padding:9px 12px!important;border-bottom:1px solid var(--ebp-line)!important;color:var(--ebp-text)!important;font-size:10px!important}
.menu-list a:last-child{border-bottom:0!important}
.menu-list .menu-ic{width:38px!important;height:38px!important;flex:0 0 38px!important}
.menu-list .menu-ic .ebp-icon{width:20px!important;height:20px!important}
.menu-list>a>.ebp-icon:last-child{width:17px!important;height:17px!important;color:#8ba09a!important}
.menu-list a:active{background:var(--ebp-green-50)!important}
.profile-privacy-note{background:var(--ebp-green-50)!important;color:var(--ebp-muted)!important}

/* Forms */
.field label,.feature-form label,.ebadi-field label{color:var(--ebp-text)!important}
:where(.ebp-app,.feature-app,.inquiries-app,.booking-app-shell) :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){
  border-color:var(--ebp-line)!important;background:#fff!important;color:var(--ebp-text)!important;box-shadow:none!important
}
:where(.ebp-app,.feature-app,.inquiries-app,.booking-app-shell) :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea):focus{
  border-color:var(--ebp-green-500)!important;box-shadow:0 0 0 3px rgba(22,143,124,.10)!important;outline:0!important
}
:where(.ebp-app,.feature-app,.inquiries-app) input[type=checkbox],:where(.ebp-app,.feature-app,.inquiries-app) input[type=radio]{accent-color:var(--ebp-green-700)!important}

/* Actions */
.primary-btn,.feature-primary,.settings-save,.auth-submit,
button.primary-btn,a.primary-btn{
  background:linear-gradient(145deg,var(--ebp-green-700),var(--ebp-green-800))!important;
  color:#fff!important;border:0!important;box-shadow:0 7px 16px rgba(7,88,79,.16)!important
}
.primary-btn .ebp-icon,.feature-primary .ebp-icon{color:#fff!important;stroke:#fff!important}
.secondary-btn,.settings-calendar-button,.settings-inline-link{border-color:var(--ebp-line)!important;background:#fff!important;color:var(--ebp-text)!important;box-shadow:none!important}
.circle-link{background:var(--ebp-green-75)!important;color:var(--ebp-green-800)!important}

/* Tabs / filters */
.tabs,.financial-tabs{background:var(--ebp-green-50)!important}
.tabs a,.financial-tabs a{color:var(--ebp-muted)!important}
.tabs a.is-active,.financial-tabs a.is-active{background:#fff!important;color:var(--ebp-green-800)!important;box-shadow:0 2px 8px rgba(7,88,79,.06)!important}
.filter-btn,.searchbox{border-color:var(--ebp-line)!important;background:#fff!important;color:var(--ebp-text)!important}

/* Request / offer */
.request-grid>div,.request-count,.offer-submit-note{background:var(--ebp-green-50)!important}
.badge-new,.status-active,.status-syncing{background:var(--ebp-green-75)!important;color:var(--ebp-green-800)!important}
.request-live-badge{color:var(--ebp-green-800)!important}
.offer-target>b{background:var(--ebp-green-75)!important;color:var(--ebp-green-800)!important}
.upload-field,.offer-image-slot__pick{border-color:var(--ebp-green-200)!important;background:var(--ebp-green-50)!important;color:var(--ebp-green-800)!important}
.offer-image-slot__icon{background:var(--ebp-green-75)!important;color:var(--ebp-green-800)!important}

/* Notifications */
.notif-card{padding:12px!important}
.notif-ic{width:40px!important;height:40px!important;flex:0 0 40px!important}
.notif-card h3{color:var(--ebp-text-strong)!important}
.notif-card p,.notif-card time{color:var(--ebp-muted)!important}

/* Preferences */
.preference-intro{border-color:var(--ebp-green-100)!important;background:var(--ebp-green-50)!important}
.choice-card:has(input:checked),.preference-brand.is-selected,.toggle-row:has(input:checked){border-color:var(--ebp-green-500)!important;background:var(--ebp-green-50)!important}
.preference-brand__head strong,.choice-card strong,.toggle-row strong{color:var(--ebp-text)!important}
.preference-brand__head small,.choice-card small,.toggle-row small{color:var(--ebp-muted)!important}

/* Wallet / plans */
.wallet-card,.plan{border-color:var(--ebp-line)!important;background:#fff!important}
.wallet-balance,.plan .price{color:var(--ebp-green-800)!important}
.plan.featured{border-color:var(--ebp-green-500)!important;background:linear-gradient(180deg,#fff,var(--ebp-green-50))!important}
.plan-tag{background:var(--ebp-green-800)!important;color:#fff!important}

/* Imported shared services: normalize any leftover dark component */
body.ebp-shared-shell-page :where(.account-app,.feature-app,.inquiries-app,.inspection-list,.inspection-report,.inspection-review-app){color:var(--ebp-text)!important}
body.ebp-shared-shell-page :where(.feature-list>article,.feature-form,.inspection-card,.wallet-iban,.wallet-settlement-history,.inspection-review-form,.inspection-approved-reviews article){
  border-color:var(--ebp-line)!important;background:#fff!important;color:var(--ebp-text)!important;box-shadow:var(--ebp-shadow-card)!important
}
body.ebp-shared-shell-page :where(.feature-list h1,.feature-list h2,.feature-form h1,.feature-form h2,.inspection-card h1,.inspection-card h2,.inspection-review-form h1,.inspection-review-form h2){color:var(--ebp-text-strong)!important}
body.ebp-shared-shell-page :where(.feature-list small,.feature-list p,.feature-list span,.inspection-card p,.inspection-card small,.inspection-approved-reviews p,.inspection-approved-reviews small){color:var(--ebp-muted)!important}
body.ebp-shared-shell-page :where(.feature-form input,.feature-form select,.feature-form textarea,.inspection-review-form select,.inspection-review-form textarea,.wallet-iban input){
  border-color:var(--ebp-line)!important;background:#fff!important;color:var(--ebp-text)!important
}
body.ebp-shared-shell-page .feature-tabs button,body.ebp-shared-shell-page .vehicle-context-tabs a{border-color:var(--ebp-line)!important;background:#fff!important;color:var(--ebp-muted)!important}
body.ebp-shared-shell-page .feature-tabs .is-active,body.ebp-shared-shell-page .vehicle-context-tabs .is-active{border-color:var(--ebp-green-700)!important;background:var(--ebp-green-700)!important;color:#fff!important}
body.ebp-shared-shell-page .feature-list footer a,body.ebp-shared-shell-page .feature-list details button{background:var(--ebp-green-75)!important;color:var(--ebp-green-800)!important}

/* Hamburger drawer */
.ebp-side-menu{border-color:var(--ebp-line)!important;background:var(--ebp-page)!important}
.ebp-side-menu__header{border-color:var(--ebp-line)!important}
.ebp-side-menu__brand strong{color:var(--ebp-text)!important}.ebp-side-menu__brand small{color:var(--ebp-muted)!important}
.ebp-side-menu__group h3{color:var(--ebp-green-800)!important}
.ebp-side-menu__links a{border-color:var(--ebp-line)!important;background:#fff!important;color:var(--ebp-text)!important;box-shadow:var(--ebp-shadow-card)!important}
.ebp-side-menu__icon{background:var(--ebp-icon-bg)!important;color:var(--ebp-green-800)!important}
.ebp-side-menu__arrow{color:#8ba09a!important}

/* Bottom navigation — same canonical SVG family as home. */
body .ebadi-global-navigation.ebadi-ui-v2-chrome>.ebadi-app-bottom.mobile-bottom-nav{border-color:var(--ebp-line)!important;background:rgba(255,255,255,.97)!important;box-shadow:0 -8px 24px rgba(16,58,49,.07)!important}
body .ebadi-app-bottom .ebadi-app-bottom__item{color:#657b75!important}
body .ebadi-app-bottom .ebadi-app-bottom__icon{color:#536a64!important}
body .ebadi-app-bottom .ebadi-app-bottom__icon .ebp-icon{width:21px!important;height:21px!important;stroke-width:1.7!important}
body .ebadi-app-bottom .ebadi-app-bottom__item.is-active{color:var(--ebp-green-800)!important}
body .ebadi-app-bottom .ebadi-app-bottom__item.is-active .ebadi-app-bottom__icon{
  background:linear-gradient(145deg,var(--ebp-green-600),var(--ebp-green-900))!important;color:#fff!important;
  box-shadow:0 5px 15px rgba(7,88,79,.27),inset 0 1px rgba(255,255,255,.25)!important
}
body .ebadi-app-bottom .ebadi-app-bottom__item.is-active .ebadi-app-bottom__icon .ebp-icon{color:#fff!important;stroke:#fff!important;stroke-width:1.9!important}
body .ebadi-app-bottom .ebadi-app-bottom__item.is-active .ebadi-app-bottom__label{color:var(--ebp-green-800)!important}

/* Empty / informational states */
.empty-card .big-icon{width:52px!important;height:52px!important;margin-inline:auto!important}
.connection-card.is-warning{border-color:var(--ebp-green-100)!important;background:var(--ebp-green-50)!important}
.connection-card.is-warning>span{background:var(--ebp-green-75)!important;color:var(--ebp-green-800)!important}
.connection-card.is-error{border-color:#f0d5d2!important;background:#fffafa!important}
.connection-card.is-error>span{background:var(--ebp-danger-bg)!important;color:var(--ebp-danger)!important}

/* Login uses the same palette but keeps its auth-only layout. */
body.ebadi-login-page .auth-card{border-color:var(--ebp-line)!important}
body.ebadi-login-page .auth-eyebrow,body.ebadi-login-page .auth-inline-back,body.ebadi-login-page .auth-resend,body.ebadi-login-page .auth-legal a{color:var(--ebp-green-800)!important}
body.ebadi-login-page .auth-submit{background:linear-gradient(145deg,var(--ebp-green-700),var(--ebp-green-800))!important}

@media(max-width:390px){
  .menu-list a{min-height:55px!important}
  .menu-list .menu-ic{width:36px!important;height:36px!important;flex-basis:36px!important}
}
