*,*::before,*::after{box-sizing:border-box}
body.page-conference{
  height:100%;
  overflow:hidden;
  margin:0;
  display:flex;
  flex-direction:column;
}
#app{display:contents}
#badge-app{
  font-family:'Montserrat',Arial,Helvetica,sans-serif;
  background:#f6f8fb;
  color:#1f2937;
  padding:16px;
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
}
#badge-app .bp-shell{display:grid;grid-template-columns:clamp(240px,24vw,320px) 1fr;gap:20px;align-items:stretch;flex:1;min-height:0}
#badge-app .bp-stack{overflow-y:auto;min-height:0;max-height:100%;}
#badge-app .bp-stack > .bp-card{display:flex;flex-direction:column;min-height:0;max-height:100%;overflow:hidden;}
#badge-app .bp-stack > .bp-card > .bp-card-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto;}
#badge-app .bp-shell > .bp-card{display:flex;flex-direction:column;overflow:hidden;height:100%}
#badge-app .bp-shell > .bp-card > .bp-card-body{flex:1;min-height:0;display:flex;flex-direction:column}
#badge-app .bp-shell > .bp-card > .bp-card-body > .bp-table-wrap{flex:1;min-height:0;display:flex;flex-direction:column}
#badge-app .bp-shell > .bp-card > .bp-card-body > .bp-table-wrap > .bp-table-scroll{flex:1;min-height:0;overflow:auto}
#badge-app .bp-card{
  background:#fff;border:1px solid #e5e7eb;border-radius:24px;
  box-shadow:0 8px 30px rgba(15,23,42,.06);overflow:hidden
}
#badge-app .bp-card-header{padding:20px 22px 12px}
#badge-app .bp-card-title{margin:0;font-size:24px;line-height:1.2;font-weight:700;color:#111827}
#badge-app .bp-card-subtitle{margin:8px 0 0;color:#6b7280;font-size:14px;line-height:1.45}
#badge-app .bp-card-body{padding:0 22px 22px}
#badge-app .bp-stack{display:flex;flex-direction:column;gap:18px}
#badge-app .bp-label{display:block;margin-bottom:8px;font-size:13px;font-weight:700;color:#374151}
#badge-app .bp-input,#badge-app .bp-file,#badge-app .bp-button,#badge-app .bp-textarea,#badge-app .bp-select{font:inherit}
#badge-app .bp-input,#badge-app .bp-file,#badge-app .bp-textarea,#badge-app .bp-select{
  width:100%;border:1px solid #d1d5db;background:#fff;border-radius:14px;
  padding:12px 14px;font-size:14px;color:#111827;outline:none;
  transition:border-color .2s ease,box-shadow .2s ease
}
#badge-app .bp-input:focus,#badge-app .bp-file:focus,#badge-app .bp-textarea:focus,#badge-app .bp-select:focus{
  border-color:#7B2C8E;box-shadow:0 0 0 4px rgba(123,44,142,.10)
}
#badge-app .bp-button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:0;border-radius:14px;padding:11px 16px;min-height:42px;
  background:#111827;color:#fff;font-size:14px;font-weight:700;cursor:pointer;
  transition:transform .15s ease,opacity .15s ease,background .2s ease
}
#badge-app .bp-button:hover{transform:translateY(-1px)}
#badge-app .bp-button:disabled{opacity:.5;cursor:not-allowed;transform:none}
#badge-app .bp-button-outline{background:#fff;color:#111827;border:1px solid #d1d5db}
#badge-app .bp-button-soft{background:#f3f4f6;color:#111827}
#badge-app .bp-button-violet{background:#7B2C8E;color:#fff}
#badge-app .bp-button-violet:hover{background:#6A247A}
#badge-app .bp-button-red{background:#dc2626;color:#fff}
#badge-app .bp-button-red:hover{background:#b91c1c}
#badge-app .bp-button-beige{background:#f8f0e6;color:#1f2937}
#badge-app .bp-button-beige:hover{background:#e8dccf}
#badge-app .bp-button-green{background:#166534;color:#fff}
#badge-app .bp-button-green:hover{background:#14532d}
#badge-app .bp-button-gray{background:#e5e7eb;color:#6b7280}
#badge-app .bp-button-lime{background:#B9F36B;color:#1f2937}
#badge-app .bp-button-lime:hover{background:#A8E259}
#badge-app .bp-row{display:flex;gap:10px;flex-wrap:wrap}
#badge-app .bp-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#badge-app .bp-note{
  padding:14px;border:1px solid #e5e7eb;border-radius:16px;background:#fafafa;
  color:#6b7280;font-size:13px;line-height:1.5
}
#badge-app .bp-stat-group{
  border:1px solid #e5e7eb;border-radius:16px;background:#fff;overflow:hidden
}
#badge-app .bp-stat{
  display:flex;justify-content:space-between;align-items:center;padding:13px 14px;
  font-size:14px;border-bottom:1px solid #e5e7eb
}
#badge-app .bp-stat:last-child{border-bottom:none}
#badge-app .bp-badge{
  display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;
  border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap
}
#badge-app .bp-badge-gray{background:#f3f4f6;color:#374151}
#badge-app .bp-badge-green{background:#dcfce7;color:#166534}
#badge-app .bp-badge-violet{background:#ede9fe;color:#6d28d9}
#badge-app .bp-badge-amber{background:#fef3c7;color:#92400e}
#badge-app .bp-badge-blue{background:#dbeafe;color:#1d4ed8}
#badge-app .bp-badge-yookassa{background:#7B2C8E;color:#fff}
#badge-app .bp-badge-rose{background:#ffe4e6;color:#be123c}
#badge-app .bp-badge-indigo{background:#e0e7ff;color:#4338ca}
#badge-app .bp-badge-teal{background:#ccfbf1;color:#0f766e}
#badge-app .bp-badge-docs{background:#ecfccb;color:#3f6212}
#badge-app .bp-badge-edo{background:#e0f2fe;color:#075985}
#badge-app .bp-top-stats{display:flex;gap:12px;align-items:center;margin-bottom:18px;justify-content:flex-end;flex-wrap:nowrap;margin-left:auto;margin-right:0;}
#badge-app .bp-inline-stats{display:flex;gap:0;align-items:center;flex-wrap:wrap;padding:12px 22px;border-bottom:1px solid #f3f4f6;background:#fafbfc;border-radius:22px 22px 0 0;}
#badge-app .bp-inline-stats .bp-top-stat{border:none;box-shadow:none;background:transparent;padding:6px 18px;min-width:0;gap:10px;border-right:1px solid #e5e7eb;}
#badge-app .bp-inline-stats .bp-top-stat:last-child{border-right:none;}
#badge-app .bp-inline-stats .bp-button{flex-shrink:0;margin-left:auto;}
#badge-app .bp-top-stat{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;min-width:150px;box-shadow:0 4px 8px rgba(15,23,42,.08);flex-shrink:0;}
/* Sidebar sections */
#badge-app .bp-sidebar-card{display:flex;flex-direction:column;height:100%;overflow:hidden;}
#badge-app .bp-sidebar-section{padding:16px 18px;border-bottom:1px solid #f3f4f6;flex-shrink:0;}
#badge-app .bp-sidebar-section-grow{flex:1;min-height:0;overflow:hidden;border-bottom:none;display:flex;flex-direction:column;padding-bottom:0;}
#badge-app .bp-sidebar-section-grow .bp-sidebar-section-title{flex-shrink:0;}
#badge-app .bp-sidebar-section-grow .bp-doc-alerts{flex:1;min-height:0;overflow-y:auto;}
#badge-app .bp-sidebar-section-title{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#9ca3af;margin-bottom:12px;}
#badge-app .bp-doc-alerts-label{font-size:12px;font-weight:700;color:#374151;margin-bottom:8px;margin-top:4px;}
#badge-app .bp-doc-alerts{display:flex;flex-direction:column;gap:6px;}
#badge-app .bp-top-stat-title{color:#6b7280;font-size:12px;font-weight:700;white-space:nowrap}
#badge-app .bp-shell{grid-template-columns:clamp(240px,24vw,340px) 1fr;grid-auto-rows:minmax(0,auto);}
#badge-app .bp-top-stat-value{font-size:16px;font-weight:800;color:#111827}
#badge-app #bp-export{flex-shrink:0;}
#badge-app .bp-main-top{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap}
#badge-app .bp-search-wrap{position:relative}
#badge-app .bp-search-icon{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  color:#9ca3af;font-size:16px;pointer-events:none
}
#badge-app .bp-search-input{padding-left:40px}
#badge-app .bp-check-wrap{display:inline-flex;align-items:center;gap:8px;color:#374151;font-size:14px;font-weight:600}
#badge-app .bp-table-wrap{border:1px solid #e5e7eb;border-radius:22px;overflow:hidden;background:#fff}
#badge-app .bp-table-scroll{overflow-y:auto;overflow-x:auto}
#badge-app table{width:100%;border-collapse:collapse;table-layout:fixed}
#badge-app thead th{
  position:sticky;top:0;z-index:2;background:#f8fafc;color:#374151;
  font-size:13px;font-weight:800;letter-spacing:.01em;padding:15px 12px;
  text-align:left;border-bottom:1px solid #e5e7eb
}
#badge-app tbody td{
  padding:15px 12px;border-top:1px solid #eef2f7;vertical-align:top;font-size:14px;
  word-wrap:break-word;overflow-wrap:break-word
}
#badge-app .bp-person-name{font-size:15px;font-weight:700;color:#111827;line-height:1.35}
#badge-app .bp-person-meta{margin-top:6px;font-size:12px;color:#6b7280;line-height:1.45}
#badge-app .bp-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:nowrap;overflow-x:visible;min-width:0;min-height:42px;align-items:center}
#badge-app .bp-actions .bp-button{white-space:nowrap;flex-shrink:0;min-width:80px;max-width:180px;padding:8px 12px;font-size:13px;line-height:1.1}
#badge-app .bp-empty{padding:46px 20px;text-align:center;color:#6b7280;font-size:15px}
#badge-app .bp-modal-backdrop{
  position:fixed;inset:0;background:rgba(15,23,42,.45);
  display:none;align-items:center;justify-content:center;
  padding:20px;z-index:99999
}
#badge-app .bp-modal-backdrop.bp-open{display:flex}
#badge-app .bp-modal{
  width:100%;max-width:560px;background:#fff;border-radius:24px;
  box-shadow:0 20px 60px rgba(15,23,42,.25);overflow:hidden
}
#badge-app .bp-doc-notification{max-width:80%; width:80%; min-width:420px; max-height:60%;}
#badge-app .bp-doc-notification .bp-modal{height:100%; width:100%;}
#badge-app .bp-doc-alerts{display:flex;flex-direction:column;gap:6px;flex:1;min-height:0;overflow-y:auto;}
#badge-app .bp-doc-notification #bp-doc-notification-text{padding:30px 24px;}
#badge-app .bp-modal-backdrop.bp-open{align-items:flex-start; padding-top:80px;}
#badge-app .bp-doc-alert-item{border:1px solid #d1d5db;border-radius:14px;padding:10px 12px;background:#ffffff;flex-shrink:0;}
#badge-app .bp-doc-alert-top{font-size:14px;font-weight:700;color:#111827;margin-bottom:4px;}
#badge-app .bp-doc-alert-line{font-size:13px;color:#4b5563;margin-bottom:3px;}
#badge-app .bp-doc-alert-btn{margin-top:6px;}
#badge-app .bp-doc-alert-history{border-top:1px solid #e5e7eb;margin-top:8px;padding-top:8px;}
#badge-app .bp-doc-alert-history .bp-doc-alert-item{margin-bottom:6px;}
#badge-app .bp-modal-header{padding:20px 22px 10px}
#badge-app .bp-modal-body{padding:0 22px 22px}
#badge-app .bp-modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:18px}
#badge-app .bp-doc-cell{min-width:0}
#badge-app .bp-doc-main{font-size:13px;font-weight:700;line-height:1.35;color:#111827;word-break:break-word}
#badge-app .bp-doc-sub{margin-top:6px;font-size:12px;line-height:1.4;color:#6b7280}
/* Medium laptops (1280–1400px) and high zoom */
@media (max-width:1400px){
  #badge-app{padding:12px}
  #badge-app .bp-card-header{padding:16px 18px 10px}
  #badge-app .bp-card-body{padding:0 18px 18px}
  #badge-app .bp-card-title{font-size:20px}
  #badge-app .bp-button{padding:8px 10px;font-size:13px;min-height:34px}
  #badge-app thead th,#badge-app tbody td{padding:12px 9px}
  #badge-app thead th{font-size:12px}
  #badge-app tbody td{font-size:13px}
  #badge-app .bp-person-name{font-size:14px}
  #badge-app .bp-card-subtitle{font-size:13px}
}
/* Stack layout: switch to normal page scroll */
@media (max-width:1100px){
  html,body{overflow:auto}
  #badge-app{flex:none;height:auto;min-height:100vh}
  #badge-app .bp-shell{grid-template-columns:1fr}
  #badge-app .bp-shell > .bp-card{height:auto}
  #badge-app .bp-shell > .bp-card > .bp-card-body{flex:none}
  #badge-app .bp-shell > .bp-card > .bp-card-body > .bp-table-wrap{flex:none}
  #badge-app .bp-shell > .bp-card > .bp-card-body > .bp-table-wrap > .bp-table-scroll{max-height:65vh}
}
@media (max-width:640px){
  #badge-app{padding:8px}
  #badge-app .bp-card-header{padding:16px 14px 10px}
  #badge-app .bp-card-body{padding:0 14px 14px}
  #badge-app .bp-card-title{font-size:18px}
  #badge-app .bp-grid-2{grid-template-columns:1fr}
  #badge-app thead th,#badge-app tbody td{padding:10px 8px}
  #badge-app .bp-actions{justify-content:flex-start}
  #badge-app .bp-modal-header{padding:16px 14px 10px}
  #badge-app .bp-modal-body{padding:0 14px 14px}
}
#badge-app thead th.bp-sortable{cursor:pointer;user-select:none}
#badge-app thead th.bp-sortable:hover{background:#eef2f7}
#badge-app thead th.bp-sort-active{color:#7B2C8E}
#badge-app .bp-sort-icon{margin-left:5px;opacity:.35;font-style:normal;font-size:11px;vertical-align:middle}
#badge-app thead th.bp-sort-active .bp-sort-icon{opacity:1}
