/* YBDC CRM: responsive header, hidden Settings nav item, and digital BDE ID cards. */
.sidebar .nav-btn[data-page="settings"]{display:none!important}
/* Respect the Emerald & Gold CRM branding. */
@media (max-width:900px){
  .layout .topbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;padding:10px 12px!important;box-sizing:border-box!important;}
  .layout .topbar > div:first-child{flex:0 0 auto!important;min-width:0!important;margin:0!important;}
  .layout .topbar .mobile-top{width:42px!important;min-width:42px!important;height:42px!important;}
  .layout .topbar .yp-global-search{display:flex!important;align-items:center!important;gap:8px!important;position:relative!important;flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;height:44px!important;min-height:44px!important;box-sizing:border-box!important;padding:0 11px!important;margin:0!important;overflow:hidden!important;border:1px solid #426351!important;border-radius:12px!important;background:#0e261d!important;box-shadow:none!important;}
  .layout .topbar .yp-global-search > svg{flex:0 0 19px!important;width:19px!important;height:19px!important;min-width:19px!important;margin:0!important;}
  .layout .topbar .yp-global-search input,
  .layout .topbar .yp-global-search input#ypGlobalSearch{display:block!important;flex:1 1 0!important;width:1px!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font-size:16px!important;line-height:normal!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#f0f7ef!important;-webkit-appearance:none!important;appearance:none!important;}
  .layout .topbar .yp-global-search input:focus{border:0!important;box-shadow:none!important;outline:0!important;}
  .layout .topbar .yp-today-badge,.layout .topbar .user-chip,.layout .topbar .breadcrumb{display:none!important;}
  .layout .topbar .top-actions{flex:0 0 auto!important;min-width:0!important;gap:0!important;margin:0!important;}
  .layout .topbar .top-actions .icon-btn{flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:42px!important;}
}
/* BDE cards: scoped styles avoid changing the main CRM tables or modals. */
#ybdcIdGallery{margin:22px 0 26px;}
.ybdc-id-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px;}
.ybdc-id-section-head h3{font-size:17px;color:#edd69c;font-weight:800;margin:0;}
.ybdc-id-section-head p{font-size:12px;color:#abbea9;margin:4px 0 0;}
.ybdc-id-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:16px;}
.ybdc-id-tile{display:block;width:100%;text-align:left;cursor:pointer;padding:0;border:0;border-radius:18px;background:transparent;}
.ybdc-id-tile:focus-visible,.ybdc-id-card:focus-visible{outline:3px solid #e8c373;outline-offset:3px;}
.ybdc-id-tile .ybdc-id-card{transition:transform .15s ease,box-shadow .15s ease;}
.ybdc-id-tile:hover .ybdc-id-card{transform:translateY(-2px);box-shadow:0 14px 30px #0006;}
.ybdc-id-card{position:relative;overflow:hidden;isolation:isolate;min-height:210px;border-radius:16px;border:1px solid #c2a15a;color:#f7f4e6;background:radial-gradient(circle at 95% 0, #1c7353 0%, transparent 44%),linear-gradient(135deg,#063f2c,#041b16 95%);box-shadow:0 9px 24px #0004;padding:19px 21px;display:flex;flex-direction:column;gap:14px;font-family:Manrope,'DM Sans',system-ui,sans-serif;}
.ybdc-id-card::after{content:'';pointer-events:none;position:absolute;right:-43px;bottom:-70px;width:210px;height:210px;border:1px solid #b7914e44;border-radius:50%;box-shadow:0 0 0 30px #b7914e11,0 0 0 64px #b7914e08;z-index:-1;}
.ybdc-id-logo{height:37px;width:37px;display:grid;place-items:center;flex:0 0 37px;border:1px solid #e8c17275;border-radius:50%;color:#e8c172;font-size:19px;font-weight:900;}
.ybdc-id-logo img{width:100%;height:100%;object-fit:contain;}
.ybdc-id-brandline{display:flex;align-items:center;gap:9px;}
.ybdc-id-brandline strong{font-family:Georgia,serif;color:#f2c871;letter-spacing:1.1px;font-size:17px;}
.ybdc-id-brandline small{display:block;color:#c9d6c6;letter-spacing:1.2px;font-size:8px;text-transform:uppercase;}
.ybdc-id-main{display:flex;align-items:center;gap:12px;min-width:0;margin-top:1px;}
.ybdc-id-avatar{height:58px;width:58px;flex:0 0 58px;display:grid;place-items:center;border-radius:12px;border:1px solid #9bc4a455;background:#1b6347;color:#f4db98;font-size:21px;font-weight:900;}
.ybdc-id-main div{min-width:0;}
.ybdc-id-name{display:block;color:#fff;font-weight:800;font-size:18px;line-height:1.2;overflow-wrap:anywhere;}
.ybdc-id-title{display:block;color:#e8c679;margin-top:6px;font-weight:700;font-size:10px;letter-spacing:.08em;text-transform:uppercase;}
.ybdc-id-meta{display:flex;justify-content:space-between;align-items:end;gap:8px;border-top:1px solid #a2bb9e4d;padding-top:11px;}
.ybdc-id-meta small{display:block;color:#a7bcaa;font-size:9px;letter-spacing:.05em;margin-bottom:4px;}
.ybdc-id-meta strong{display:block;color:#f5f4e6;font-size:11px;overflow-wrap:anywhere;}
.ybdc-id-company{font-size:9px;color:#d0ddc5;line-height:1.6;}
.ybdc-id-inactive{color:#ffcf9d!important;}
.ybdc-id-tile-caption{font-size:11px;margin:7px 2px 0;color:#cfbd8f;}
.ybdc-id-small-action{display:inline-block;margin-left:7px;}
#ybdc-id-overlay{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:#000b;padding:18px;overflow:auto;box-sizing:border-box;}
#ybdc-id-overlay[hidden]{display:none!important;}
.ybdc-id-dialog{width:min(100%,510px);max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #4e6f55;background:#0b231a;color:#f5f6ed;border-radius:18px;box-shadow:0 30px 90px #0009;padding:19px;box-sizing:border-box;}
.ybdc-id-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;}
.ybdc-id-dialog-head h2{font-size:18px;color:#f4d58b;margin:0;}
.ybdc-id-dialog-head button{font-size:27px;background:transparent;border:0;color:#fff;padding:4px 10px;}
.ybdc-id-dialog .ybdc-id-card{min-height:280px;}
.ybdc-id-dialog .ybdc-id-avatar{height:70px;width:70px;flex-basis:70px;}
.ybdc-id-dialog .ybdc-id-name{font-size:21px;}
.ybdc-id-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px;}
.ybdc-id-actions button{padding:11px 14px;min-height:42px;border-radius:10px;border:1px solid #af985c;background:#205a40;color:#fff;cursor:pointer;font:700 12px Manrope,system-ui,sans-serif;}
.ybdc-id-actions button:hover{background:#2b7050;}
.ybdc-id-actions button.ybdc-id-print{background:#e4bc6c;color:#12271d;}
.ybdc-id-disclaimer{margin-top:13px!important;font-size:11px!important;color:#abc3ac!important;line-height:1.5;}
@media(max-width:470px){.ybdc-id-card{padding:16px 17px}.ybdc-id-dialog{padding:12px}.ybdc-id-name{font-size:16px}.ybdc-id-brandline strong{font-size:15px}.ybdc-id-card{min-height:205px;}}
@media print{
  @page{size:A5 landscape;margin:10mm}
  body > *:not(#ybdc-id-overlay){display:none!important}
  #ybdc-id-overlay{position:static!important;background:transparent!important;padding:0!important;display:block!important;}
  #ybdc-id-overlay .ybdc-id-dialog{border:0!important;box-shadow:none!important;overflow:visible!important;width:100%!important;max-height:none!important;background:#fff!important;padding:0!important;}
  #ybdc-id-overlay .ybdc-id-dialog-head,#ybdc-id-overlay .ybdc-id-actions,#ybdc-id-overlay .ybdc-id-disclaimer{display:none!important}
  #ybdc-id-overlay .ybdc-id-card{width:100%!important;min-height:240px!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important;}
}
