/* Bizbot's own styles, on top of web.css */

/* The login dialog over the public website */
.jmt-web-login { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.web-login-content .jmt-login { height: auto; }
.web-login-content .col-10 { width: 100%; padding: 0; }
.web-login-content h1 { font-size: 1.75rem; }

/* JMT_APP_TOPBAR: the current tenant (a list to switch to when the user has several) */
.jmt-tenant { border-radius: 10px; height: 2.8rem; padding: 0 12px; display: flex; align-items: center; font-size: .875rem;
              font-weight: 600; color: #000; white-space: nowrap; opacity: .85; list-style: none; }
.jmt-tenant::-webkit-details-marker { display: none; }
.jmt-tenant-many { cursor: pointer; opacity: 1; }
.jmt-tenant-options { min-width: 190px; }

/* JMT_CARD */
.bb-card { background: var(--surface-card); border: 1px solid var(--surface-border); border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.1);
           overflow: hidden; padding: 10px; }

/* JMT_CUSTOM_BUTTON: the module's screen tiles */
.bb-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.bb-tile { color: white; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.15); transition: all .25s ease; user-select: none; display: flex;
           flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; overflow: hidden; text-align: center;
           position: relative; }
.bb-tile-small { border-radius: 12px; padding: 5px; }
.bb-tile-big { border-radius: 18px; padding: 15px; }
.bb-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.25); color: white; }
.bb-tile-icon { width: 30px; height: 30px; min-width: 30px; border-radius: 10px; background-color: rgba(255,255,255,.25); backdrop-filter: blur(8px);
                display: flex; align-items: center; justify-content: center; }
.bb-tile-icon-big { width: 55px; height: 55px; min-width: 55px; border-radius: 14px; }
.bb-emoji { line-height: 1; display: flex; align-items: center; justify-content: center; }
.bb-tile-caption { font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding-bottom: 2px;
                   border-bottom: 3px solid transparent; transition: all .2s ease; }
.bb-tile-big .bb-tile-caption { font-size: 1.05rem; }
.bb-tile-selected { font-weight: 800; border-bottom-color: white; }
.bb-tile-subtitle { font-size: .8rem; opacity: .85; }
.bb-tile-value { font-size: 1.3rem; font-weight: 800; }

/* JMT_PAGE_HEADER */
.bb-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding: 12px 20px; margin-bottom: 15px;
             background: linear-gradient(135deg,#d60e09,#333333); color: #fff; border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.bb-header-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(255,255,255,.12); display: flex; align-items: center;
                  justify-content: center; font-size: 1.5rem; backdrop-filter: blur(6px); }
.bb-header-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 2px; }
.bb-header-description { font-size: .82rem; opacity: .9; max-width: 700px; }
.bb-header-sub { display: inline-flex; align-items: center; margin-top: 6px; padding: 4px 10px; font-size: .72rem; background: rgba(255,255,255,.12);
                 border: 1px solid rgba(255,255,255,.15); border-radius: 999px; opacity: .9; max-width: 700px; white-space: nowrap; overflow: hidden;
                 text-overflow: ellipsis; }
.bb-header-stat { background: rgba(255,255,255,.12); padding: 8px 14px; border-radius: 10px; display: flex; align-items: center; gap: 8px;
                  font-size: .85rem; white-space: nowrap; }

/* JMT_ADV_PAGE */
@keyframes bizbotGradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.bb-adv-hero { animation: bizbotGradientMove 10s ease infinite; border-radius: 14px; padding: 30px; color: white; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.bb-adv-title { font-size: 42px; margin-bottom: 10px; font-weight: 700; }
.bb-adv-text { font-size: 18px; line-height: 30px; margin-bottom: 20px; opacity: .95; }
.bb-adv-chip { background-color: #d60d0a; padding: 10px 16px; border-radius: 50px; font-size: 14px; font-weight: 600; }
.bb-adv-video { background-color: black; border-radius: 12px; width: 100%; max-height: 420px; }
.bb-adv-why { max-width: 900px; margin: 0 auto; color: #d60d0a; line-height: 28px; font-size: 16px; }
.bb-adv-cards-box { background-color: #f8fafc; border-radius: 12px; padding: 25px; border: 1px solid #e2e8f0; }
.bb-adv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.bb-adv-card { background-color: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.bb-adv-card h3 { margin-top: 0; margin-bottom: 12px; color: #d60d0a; font-size: 20px; }
.bb-adv-card-text { color: #555; line-height: 24px; margin-bottom: 15px; }
.bb-adv-card ul { padding-left: 18px; margin: 0; line-height: 28px; color: #333; }
.bb-adv-perfect { margin-top: 20px; background-color: #fff; border-radius: 12px; padding: 30px; border: 1px solid #e5e7eb; }
.bb-adv-included { margin-top: 20px; border-radius: 12px; background-color: #eff6ff; border: 1px solid #e2e8f0; padding: 30px; }
.bb-adv-feature { background-color: #d60d0a; color: white; padding: 14px 24px; border-radius: 10px; font-weight: 600; min-width: 140px; text-align: center; }
.bb-adv-footer { margin-top: 30px; background-color: #111827; color: white; border-radius: 14px; padding: 40px; text-align: center; }
.bb-adv-footer-body { max-width: 850px; margin: 0 auto; line-height: 30px; font-size: 18px; color: #d60d0a; }

/* JMT_FIELD_SWITCH (PrimeReact InputSwitch) */
.bb-switch-box { flex: 1 1 auto; display: flex; align-items: center; padding-left: 10px; background-color: white; border-left: 1px solid lightgrey;
                 border-right: 1px solid lightgrey; height: 25px; }
.bb-switch { transform: scale(.9); cursor: pointer; }
.bb-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.bb-switch:has(input:checked) .p-inputswitch-slider { background: var(--primary-color, #3B82F6); }
.bb-switch:has(input:checked) .p-inputswitch-slider:before { transform: translateX(1.25rem); }
.bb-switch:has(input:disabled) { opacity: .6; cursor: not-allowed; }

/* The warning band in the user dialogs */
.bb-warning { width: 100%; margin-bottom: 8px; padding: 10px 15px; background: linear-gradient(135deg,#d60e09,#333333); color: white; border-radius: 8px;
              font-size: .9rem; line-height: 1.4; }

/* An e-mail address chip (Certificates' Email List) */
.bb-chip { background: #eef2ff; border-radius: 12px; padding: 2px 8px; font-size: .75rem; }

/* Checklist: categories and their items */
.bb-check-list { border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.bb-check-category { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #f5f5f5;
                     color: #333; border-bottom: 1px solid #ddd; font-weight: 700; }
.bb-check-category-selected { background: linear-gradient(135deg,#d60e09,#333333); color: #fff; }
.bb-check-item { padding: 7px 20px; cursor: pointer; background: #fff; border-bottom: 1px solid #eee; transition: .15s; color: #333; }
.bb-check-item:hover { background: #fef2f2; }
.bb-check-empty { padding: 7px 20px; color: #999; font-style: italic; border-bottom: 1px solid #eee; }
.bb-check-add { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px; box-shadow: 0 6px 18px rgba(0,0,0,.06); color: #333; }
.bb-check-add-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg,#d60e09,#333333); color: #fff; display: flex;
                     align-items: center; justify-content: center; font-size: 1.3rem; }

/* MonthGrid (FullCalendar dayGridMonth) */
.bb-cal { border: 1px solid #ddd; font-size: .8rem; background: #fff; color: #333; }
.bb-cal-title { text-align: center; font-weight: 700; margin: .5rem 0; }
.bb-cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bb-cal-head { text-align: center; font-weight: 700; padding: 2px; border: 1px solid #ddd; background: #f8f9fa; }
.bb-cal-day { min-height: 70px; border: 1px solid #ddd; padding: 1px; overflow: hidden; cursor: default; }
.bb-cal-day[hx-get], .bb-cal-day[onclick] { cursor: pointer; }
.bb-cal-other { background: #f5f5f5; opacity: .6; }
.bb-cal-today { background: #fffbe6; }
.bb-cal-daynum { text-align: right; padding: 0 2px; }
.bb-cal-event { color: #fff; font-size: .65rem; font-weight: 600; line-height: 1.1; padding: 1px 2px; margin: 1px 0; border-radius: 3px;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.bb-cal-more { font-size: .65rem; color: #2563eb; cursor: pointer; padding: 0 2px; }

/* Leave: the titled boxes, balance cards, history filters, approval table, legend */
.bb-box { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.05); color: #333; }
.bb-box-head { background: #f8fafc; padding: 8px 12px; border-bottom: 1px solid #e5e7eb; }
.bb-box-sub { font-size: .8rem; color: #6b7280; margin-top: 2px; }
.bb-box-body { padding: 10px 12px; }
.bb-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.bb-balance { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; background: #fff; }
.bb-balance-title { font-weight: 600; font-size: .85rem; color: #374151; margin-bottom: 8px; }
.bb-balance-value { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.bb-balance-small { margin-top: 6px; font-size: .8rem; color: #6b7280; }
.bb-balance-caption { font-weight: 500; font-size: .8rem; color: #374151; white-space: nowrap; }
.bb-badge { background-color: red; color: white; border-radius: 10px; font-size: 12px; padding: 0 6px; margin-left: 6px; }
.bb-band { display: flex; align-items: center; gap: .75rem; background: linear-gradient(135deg,#d60e09,#333333); color: #fff; border-radius: 12px;
           padding: 12px 16px; box-shadow: 0 4px 12px rgba(0,0,0,.12); flex-wrap: wrap; }
.bb-band > div:only-child, .bb-band > div:first-child:nth-last-child(2) { flex: none; }
.bb-approve-cell { padding: 8px; border: 1px solid #dee2e6; }
.bb-approve-note { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 6px; padding: 6px 8px; font-size: .8rem; }
.bb-legends { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; padding: .75rem; border-top: 1px solid #dee2e6; }
.bb-legend { color: #fff; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }

/* Tickets: the work-in-progress cards and the ticket trail */
.bb-wip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; margin-top: 1rem; }
@media (max-width: 1200px) { .bb-wip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .bb-wip-grid { grid-template-columns: 1fr; } }
.bb-wip-card { border-radius: 14px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.12); border: 1px solid #e5e7eb; background: #fff; height: 300px; }
.bb-wip-head { padding: 12px 16px; background: linear-gradient(135deg,#d60e09,#333333); color: #fff; font-weight: 700; display: flex;
               justify-content: space-between; align-items: center; }
.bb-wip-add { width: 28px; height: 28px; padding: 0; color: #fff !important; margin: 0 !important; }
.bb-trail { width: 100%; border-radius: 5px; padding: 10px; margin-bottom: 1em; background-color: #dddddd; color: #333; }

/* Timesheet: title band, week pivot, entry dialog note */
.bb-ts-band { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 15px 20px; margin-bottom: 15px;
              background: linear-gradient(135deg,#d60e09,#333333); color: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.20); }
.bb-ts-band-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.15); display: flex; align-items: center;
                   justify-content: center; font-size: 1.2rem; }
.bb-ts-chip { background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 8px; font-size: .85rem; }
.bb-ts-band .p-button { margin: 0 !important; }
.bb-ts-today { font-weight: 700; background-color: #d60e09; color: #fff; padding: 6px 8px; border-radius: 6px; border: 1px solid #ff443d; }
.bb-ts-group td { background-color: #aaffaa !important; font-weight: 700; }
.bb-ts-value { text-align: center; width: 100%; padding: .75rem; border: 1px solid #ced4da; border-right: none; }
.bb-ts-edit { margin: 0 !important; height: auto !important; }
.bb-note { padding: 10px; margin-bottom: 10px; border-radius: 4px; background: #fff3cd; border: 1px solid #ffe69c; color: #664d03; }
.bb-ts-summary { position: fixed; top: 56px; right: 0; bottom: 0; width: 420px; z-index: 1500; padding: 1.25rem; color: #fff;
                 background: linear-gradient(180deg,#333333,#222222); box-shadow: -8px 0 30px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 16px; }
.bb-ts-sum { padding: 16px; border-radius: 12px; background: #2d2d2d; border: 1px solid #444; }
.bb-ts-sum-red { background: linear-gradient(135deg,#d60e09,#333333); border: none; }

/* Timesheet Calendar: the week time grid (FullCalendar timeGridWeek) */
.bb-tg { border-radius: 12px; overflow: hidden; padding: 8px; background: linear-gradient(180deg,#333333,#222222); box-shadow: 0 20px 40px rgba(0,0,0,.25);
         border: 1px solid #444; }
.bb-tg-heads, .bb-tg-body { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); }
.bb-tg-head { text-align: center; padding: 12px 8px; background: #333; color: #fff; border-radius: 8px; margin: 2px; }
.bb-tg-head-today { background: linear-gradient(135deg,#d60e09,#ff4d4d); }
.bb-tg-body { height: calc(100vh - 360px); min-height: 400px; overflow-y: auto; position: relative; }
.bb-tg-labels { color: #ccc; font-size: .75rem; }
.bb-tg-label { height: 48px; text-align: right; padding-right: 6px; border-top: 1px solid #555; }
.bb-tg-day { position: relative; border: 2px solid #555; border-top: 0; background: #2a2a2a; }
.bb-tg-weekend { background-color: rgba(59, 130, 246, 0.12); }
.bb-tg-slot { height: 12px; cursor: pointer; }
.bb-tg-hour { border-top: 1px solid #555; }
.bb-tg-slot:hover { background: rgba(255,255,255,.08); }
.bb-tg-select { position: absolute; left: 2px; right: 2px; border-radius: 6px; background: rgba(214,14,9,.35); border: 1px dashed #ff443d; pointer-events: none; z-index: 1; }
.bb-ev { position: absolute; left: 2px; right: 2px; padding: 6px; overflow: hidden; border-radius: 10px; color: #fff; cursor: grab; z-index: 2;
         touch-action: none; user-select: none; transition: transform .15s ease; border: 1px solid #ff443d; }
.bb-ev:hover { transform: scale(1.03); z-index: 10; }
.bb-ev-billable { background: linear-gradient(135deg,#d60e09,#8b0000); }
.bb-ev-plain { background: linear-gradient(135deg,#555,#222); border-color: #777; }
.bb-ev-saving { background: linear-gradient(135deg,#f59e0b,#fbbf24); }
.bb-ev-project { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-ev-group { font-size: .7rem; opacity: .8; margin-top: 2px; }
.bb-ev-time { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: .72rem; }
.bb-ev-desc { display: flex; gap: 5px; margin-top: 5px; font-size: .68rem; opacity: .9; line-height: 1.2; }
.bb-ev-badge { margin-top: 5px; display: inline-flex; align-items: center; gap: 4px; font-size: .65rem; padding: 2px 7px; border-radius: 20px;
               background: rgba(255,255,255,.2); }
.bb-ev-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; cursor: ns-resize; }

/* Plate Planner: the recipe cost footer */
.bb-pp-total { display: flex; justify-content: flex-end; gap: 2rem; padding: .25rem .5rem; font-weight: 700; border-top: 1px solid #dee2e6; color: #333; }

/* Cart: Select Bot, Telegram requirements, theme preview */
.bb-bot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; margin-bottom: 6px;
          background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.12); transition: all .2s ease; }
.bb-bot-selected { background: rgba(214,14,9,.08); border-color: rgba(214,14,9,.35); }
.bb-bot-active { background: rgba(0,0,0,.08); padding: 4px 8px; border-radius: 999px; font-size: .7rem; font-weight: 600; }
.bb-requirements { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(214,14,9,.08); border: 1px solid rgba(214,14,9,.2);
                   display: flex; align-items: flex-start; gap: 8px; }
.bb-file { padding: 4px 8px; background-color: lavender; border: 1px solid #ccc; border-radius: 4px; width: 100%; }
.bb-logo-preview { width: 45px; height: 45px; object-fit: cover; border-radius: 4px; border: 1px solid #ccc; }

/* Billing: status pill, changed amount, tier choices, summary card, PaymentResult */
.bb-status { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(107,114,128,.12);
             color: #6b7280; border: 1px solid rgba(107,114,128,.25); }
.bb-status-active { background: rgba(214,14,9,.12); color: #d60e09; border-color: rgba(214,14,9,.35); }
.bb-status-cancelled { background: rgba(245,158,11,.15); color: #d97706; border-color: rgba(245,158,11,.35); }
.bb-amount-changed { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: rgba(245,158,11,.15); color: #d97706;
                     border: 1px solid rgba(245,158,11,.35); font-weight: 700; }
.bb-tier { display: flex; align-items: center; gap: 14px; cursor: pointer; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; background: #fff;
           transition: all .2s ease; box-shadow: 0 2px 8px rgba(0,0,0,.05); color: #333; }
.bb-tier-selected { border: 2px solid #d60e09; background: rgba(214,14,9,.06); box-shadow: 0 6px 18px rgba(214,14,9,.15); }
.bb-tier-sub { color: #6b7280; font-size: .85rem; margin-top: 4px; }
.bb-tier-buttons { margin-top: 10px; padding-top: 18px; border-top: 1px solid #e5e7eb; display: flex; justify-content: space-between; }
.bb-summary { background: linear-gradient(135deg,#d60e09,#333333); border-radius: 18px; padding: 18px; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.15);
              display: flex; flex-direction: column; gap: 12px; position: sticky; top: 1rem; }
.bb-summary-icon { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.25); display: flex; align-items: center;
                   justify-content: center; font-size: 1.2rem; }
.bb-summary-box { background: rgba(255,255,255,.12); border-radius: 12px; padding: 12px; }
.bb-summary-total { border-top: 1px solid rgba(255,255,255,.25); margin-top: 10px; padding-top: 10px; display: flex; justify-content: space-between;
                    align-items: center; }
.bb-pay { min-height: 80vh; display: flex; justify-content: center; align-items: center; padding: 2rem; background: #f5f7fb; }
.bb-pay-card { width: 100%; max-width: 650px; background: #fff; border-radius: 24px; padding: 3rem; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.bb-pay-icon { width: 120px; height: 120px; margin: 0 auto 1.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.bb-pay-badge { margin-top: 2rem; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; font-weight: 600; }

/* Dash: deployment logs, server history charts, IP map */
.bb-log { padding: 10px; background-color: black; color: white; white-space: pre-wrap; }
.bb-charts { display: flex; flex-direction: column; gap: 1rem; }
.bb-chart { position: relative; height: 32vh; }
.bb-maps { display: flex; gap: 10px; width: 100%; overflow: hidden; }
.bb-map { width: 42%; height: 620px; border-radius: 14px; overflow: hidden; }
.bb-map-za { width: 30%; }
.bb-map-reset { width: 34px; height: 34px; background: white; cursor: pointer; font-size: 18px; }
.bb-ip-list { width: 28%; height: 620px; overflow-y: auto; }
.bb-ip { border-bottom: 1px solid #ddd; padding: 8px; word-break: break-word; cursor: pointer; border-radius: 8px; color: #333; }
.bb-ip-selected { background: #ffe066; color: #000; font-weight: bold; }
@media (max-width: 768px) {
  .bb-maps { flex-direction: column; }
  .bb-map, .bb-map-za, .bb-ip-list { width: 100%; height: 360px; }
}
.bb-tile.bizbot-safari-only { display: none; }
.bizbot-safari .bb-tile.bizbot-safari-only { display: flex; }

/* Timesheet Stats (dashboard): KPI tiles, empty chart boxes, the period's bars in tables */
.jmt-muted { color: #6b6a65; }
.jmt-empty { display: flex; align-items: center; justify-content: center; color: #6b6a65; background: #fafaf8; border-radius: 8px; }
.bb-stat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bb-stat-tile { border-radius: 12px; padding: 12px 14px; color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.bb-stat-tile-label { font-size: .75rem; opacity: .9; text-transform: uppercase; letter-spacing: .04em; }
.bb-stat-tile-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.bb-stat-tile-sub { font-size: .75rem; opacity: .85; }
.bb-stat-bar { height: 8px; border-radius: 4px; background: #eeecea; overflow: hidden; min-width: 60px; }
.bb-stat-bar > div { height: 100%; background: #d60e09; }
.bb-stats .p-panel { height: calc(100% - 1rem); }

/* Task Categories: each project's heading in the table, red like the screen's band, with its own Add */
.bb-red-groups .p-datatable .p-rowgroup-header td { background: linear-gradient(90deg, #d60e09, #8b0000); color: #fff; padding: 8px 12px; font-size: .95rem; }
.bb-red-groups .bb-group-sub { font-weight: 400; opacity: .85; font-size: .8rem; margin-left: 4px; }
.bb-red-groups .bb-group-add { background: rgba(255,255,255,.15) !important; border: 1px solid rgba(255,255,255,.6) !important; color: #fff !important;
  padding: 2px 10px !important; margin: 0 !important; font-size: .75rem; }
.bb-red-groups .bb-group-add:hover { background: rgba(255,255,255,.3) !important; }

/* Standby calendar: one month, room for the person on duty and their backup */
.bb-standby-cal .bb-cal-day { min-height: 92px; }
.bb-standby-cal .bb-cal-event { font-size: .78rem; padding: 3px 4px; }

/* Reservations: an area's floor plan (1000 x 600 units, tables placed and sized in % of it), the day's timeline (a row per
   table, a bar per booking), the free times in the booking dialog */
.rs-plan { position: relative; width: 100%; aspect-ratio: 1000 / 600; border: 1px solid #dee2e6; border-radius: 12px; overflow: hidden;
  background-color: #faf9f6; background-image: linear-gradient(#eeece8 1px, transparent 1px), linear-gradient(90deg, #eeece8 1px, transparent 1px);
  background-size: 5% 8.333%; }
.rs-plan-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6b6a65; }
.rs-table { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px;
  border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.25); font-size: .7rem; line-height: 1.1; text-align: center; cursor: pointer;
  overflow: hidden; user-select: none; transition: transform .1s; }
.rs-table:hover { transform: scale(1.04); z-index: 2; }
.rs-table b { font-size: .85rem; }
.rs-table-who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rs-round { border-radius: 50%; }
.rs-off { border: 2px dashed #6b7280; color: #374151 !important; }
.rs-layout .rs-table { cursor: grab; touch-action: none; }
.rs-layout .rs-table.rs-dragging { cursor: grabbing; opacity: .85; z-index: 5; transition: none; }
.rs-timeline { border: 1px solid #dee2e6; border-radius: 12px; padding: 6px 8px; overflow-x: auto; }
.rs-tl-row { display: flex; align-items: center; min-width: 640px; }
.rs-tl-name { flex: 0 0 70px; font-weight: 600; font-size: .8rem; }
.rs-tl-track { position: relative; flex: 1; height: 26px; border-bottom: 1px solid #f0efec; }
.rs-tl-hours { height: 18px; }
.rs-tl-hour { position: absolute; top: 0; font-size: .7rem; color: #6b6a65; transform: translateX(-50%); }
.rs-tl-bar { position: absolute; top: 3px; height: 20px; border-radius: 5px; padding: 0 4px; font-size: .7rem; line-height: 20px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.rs-tl-block { background: repeating-linear-gradient(45deg, #9ca3af, #9ca3af 4px, #d1d5db 4px, #d1d5db 8px); color: #111; cursor: default; }
.rs-tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: #d60e09; z-index: 1; pointer-events: none; }
.rs-free { margin: .5rem 0 .75rem; }
.rs-free-time { padding: 2px 8px; border-radius: 999px; border: 1px solid #10b981; color: #047857; font-size: .8rem; cursor: pointer; }
.rs-free-time:hover, .rs-free-time.rs-picked { background: #10b981; color: #fff; }

/* Home ("/"): one card per service */
.bb-service { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 15px; }
.bb-service-active { border-color: rgba(214,14,9,.35); }
.bb-service-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
                   background: linear-gradient(135deg, #d60d0a, #6b7280); color: #fff; }
.bb-service-title { font-size: 1.05rem; font-weight: 700; flex: 1; }
.bb-service-text { font-size: .85rem; opacity: .85; line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
                   overflow: hidden; }
.bb-service-price { font-size: .9rem; font-weight: 700; color: #d60d0a; min-height: 1.2em; }
/* Services home (pages/home.py): a mini dashboard per subscribed service */
.bb-mini { gap: 8px; }
/* figures and rows in neutral ink: red is kept for the title and for what needs attention (.bb-mini-bad) */
.bb-mini-stats, .bb-mini-rows, .bb-mini-pills, .bb-mini-caption, .bb-mini-muted, .bb-mini-empty { color: var(--text-color, #4b5563); }
.jmt-dark .bb-mini-stats, .jmt-dark .bb-mini-rows, .jmt-dark .bb-mini-pills, .jmt-dark .bb-mini-caption, .jmt-dark .bb-mini-muted,
.jmt-dark .bb-mini-empty { color: #f5f5f5; }
.bb-mini-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-mini-stat { flex: 1 1 0; min-width: 80px; padding: 8px 10px; border-radius: 8px; background: rgba(127,127,127,.08); }
.bb-mini-value { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.bb-mini .bb-mini-value.bb-mini-bad, .bb-mini .bb-mini-bad { color: #d60e09; }
.bb-mini-label { font-size: .72rem; opacity: .75; text-transform: uppercase; letter-spacing: .03em; }
.bb-mini-rows { display: flex; flex-direction: column; }
.bb-mini-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(127,127,127,.15); font-size: .85rem; }
.bb-mini-row:last-child { border-bottom: none; }
.bb-mini-row-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-mini-row-side { flex: none; opacity: .8; text-align: right; }
.bb-mini-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.bb-mini-pill { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: rgba(127,127,127,.12); }
.bb-mini-caption { font-size: .75rem; opacity: .75; }
.bb-mini-muted, .bb-mini-empty { font-size: .85rem; opacity: .7; }
/* Home: the sub-panels inside a wide service card (pages/home.py Sub) */
.bb-subs { margin: 0 -.5rem; }
.bb-sub { height: 100%; padding: 10px 12px; border-radius: 10px; background: rgba(127,127,127,.06); color: var(--text-color, #4b5563); }
.jmt-dark .bb-sub { color: #f5f5f5; }
.bb-sub-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .75; margin-bottom: 6px; }

/* Tickets > Send to Support: the prompt as the support mailbox will get it */
.bb-support-preview { max-height: 45vh; overflow: auto; white-space: pre-wrap; font-size: .8rem; line-height: 1.45;
                      background: rgba(127,127,127,.08); border: 1px solid rgba(127,127,127,.25); border-radius: 8px; padding: 10px 12px; }

/* Cart > Theme: the Bizbot app's four screens side by side (pages/cart.py Preview), each a 375px-wide phone scaled to
   its column by bizbot.js bbThemePreview */
.bb-phones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1200px) { .bb-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .bb-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bb-phone-label { font-weight: 600; font-size: .85rem; text-align: center; margin-bottom: 4px; }
.bb-phone { position: relative; overflow: hidden; border-radius: 14px; border: 6px solid #222; background: #222; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.bb-phone iframe { position: absolute; top: 0; left: 0; width: 375px; height: 585px; border: 0; transform-origin: 0 0; background: #fff; }
/* Cart > Theme: the colour fields that paint the part of the preview under the pointer (dashed), or pinned by a click (red) */
#cart-theme-form [data-theme-hover] { outline: 2px dashed #ff9800; outline-offset: 1px; background: rgba(255, 152, 0, .12); border-radius: 4px; }
#cart-theme-form [data-theme-pick] { outline: 2px solid #e53935; outline-offset: 1px; background: rgba(229, 57, 53, .14); border-radius: 4px; }
.bb-theme-hint { font-size: .85rem; font-weight: 600; margin: 0 0 8px; min-height: 1.3em; color: #e53935; }
/* Cart > Theme: the settings as one row of four columns above the full-width preview (pages/cart.py theme_screen) */
.bb-theme-settings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; padding: 10px 14px; margin-bottom: 12px;
                     background: var(--surface-card, #fff); border: 1px solid var(--surface-border, #dee2e6); border-radius: 6px; }
.bb-theme-settings > form { display: contents; }
.bb-theme-col { min-width: 0; }
.bb-theme-col .jmt-field { padding-top: 1px; padding-bottom: 1px; }
.bb-theme-sub { font-weight: 600; font-size: .85rem; margin: 2px 0 4px; display: block; }
.bb-theme-preview { padding: 10px 14px; background: var(--surface-card, #fff); border: 1px solid var(--surface-border, #dee2e6); border-radius: 6px; }
@media (max-width: 1100px) { .bb-theme-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bb-theme-settings { grid-template-columns: minmax(0, 1fr); } }
/* the form's own pieces that are not columns (its hidden state, the empty place of its Update button) take no cell */
.bb-theme-settings > form > :not(.bb-theme-col) { display: none; }
.bb-theme-settings .jmt-field-caption { color: var(--text-color, #212529); }
.bb-theme-settings .bb-theme-sub { color: var(--text-color, #212529); }

/* Cart > About Us: the two panels the same height, each one's button at its foot, so Update and Copy Monday line up */
.bb-about-col { display: flex; flex-direction: column; }
.bb-about-col > .p-panel { flex: 1; display: flex; flex-direction: column; }
.bb-about-col > .p-panel > .p-toggleable-content,
.bb-about-col > .p-panel > .p-toggleable-content > .p-panel-content { flex: 1; display: flex; flex-direction: column; }
.bb-panel-foot { margin-top: auto; padding-top: .75rem; }

/* Cart > Back of House > Add Device: the camera window that reads the app's Device ID QR code (bizbot.js bbScanQr) */
.bb-qr-scan { margin-top: .75rem; }
.bb-qr-note { font-size: .85rem; color: #555; margin-top: .4rem; min-height: 1.2em; }
.bb-qr-mask { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.bb-qr-window { background: #fff; color: #222; border-radius: 8px; width: min(640px, 100%); box-shadow: 0 10px 40px rgba(0,0,0,.4); overflow: hidden; }
.bb-qr-head { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid #ddd; }
.bb-qr-x { border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: #555; }
.bb-qr-view { position: relative; background: #000; aspect-ratio: 4 / 3; }
.bb-qr-view video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.bb-qr-frame { position: absolute; inset: 18% 28%; border: 3px solid rgba(255,255,255,.85); border-radius: 12px; pointer-events: none; }
.bb-qr-status { padding: .6rem 1rem; font-size: .9rem; }
.bb-qr-status.bb-qr-bad { color: #c62828; font-weight: 600; }
.bb-qr-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 1rem .8rem; gap: 1rem; }
.bb-qr-photo { color: #1d4ed8; cursor: pointer; text-decoration: underline; font-size: .9rem; }

/* Cart > Stationary: each menu / flyer as a small picture of its first page, clicked to open it */
.bb-pdf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.bb-pdf-thumb { cursor: pointer; border: 1px solid #ddd; border-radius: 6px; padding: .5rem; background: #fafafa; transition: box-shadow .15s, border-color .15s; }
.bb-pdf-thumb:hover, .bb-pdf-thumb:focus { border-color: #f97316; box-shadow: 0 4px 14px rgba(0,0,0,.15); outline: none; }
.bb-pdf-page { min-height: 200px; display: flex; align-items: center; justify-content: center; background: #fff; }
.bb-pdf-page canvas { width: 100%; height: auto; display: block; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.bb-pdf-wait { font-size: .85rem; color: #777; }
.bb-pdf-title { text-align: center; font-weight: 600; font-size: .9rem; margin-top: .5rem; }
