/* Extraatom Portal's own screens: the inline styles of react/extraatom_portal/src/pages/* (shared components are in
   static/web.css). */

.jmt-muted { color: #6b6a65; }
.jmt-warning { border: 1px solid #eda100; background-color: #fff8e6; border-radius: 8px; padding: 10px; color: #333; }
.jmt-empty { display: flex; align-items: center; justify-content: center; color: #6b6a65; }
.jmt-clickable { cursor: pointer; }

/* Coretrack / Quick Scan: camera with the scanned barcodes over it (yellow, black outline) */
.jmt-quickscan { position: relative; width: 100%; }
.jmt-quickscan-reader { width: 100%; min-height: 120px; background: #000; }
.jmt-quickscan-list { position: absolute; inset: 0; pointer-events: none; overflow-y: auto; padding: 10px; }
.jmt-quickscan-list ul { list-style: none; margin: 0; padding: 0; color: yellow;
                         text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black; }
.jmt-quickscan-error { color: #b00020; min-height: 1.2em; margin: .5rem 0; }
.jmt-big-button { padding: 12px !important; font-size: 1.1rem; font-weight: bold; border-radius: 12px !important; margin: 0 !important;
                  justify-content: center; }
.jmt-row-danger td { background: #ef4444 !important; color: #000 !important; }

/* Coretrack / Asset History cards */
.jmt-history { display: grid; gap: .85rem; }
.jmt-history-card { border: 1px solid var(--surface-border, #dee2e6); border-radius: .65rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); overflow: hidden; }
.jmt-history-head { border-bottom: 1px solid var(--surface-border, #dee2e6); padding: .8rem .9rem; }
.jmt-history-event { border-radius: 1rem; font-size: .78rem; font-weight: 600; padding: .25rem .65rem; background: var(--surface-100, #f3f4f6); }
.jmt-history-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding: .9rem; }
.jmt-history-label { font-size: .74rem; margin-bottom: .25rem; color: #6b7280; }
.jmt-history-value { font-size: .86rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.jmt-history-more { cursor: pointer; font-size: .8rem; font-weight: 600; padding: 0 .9rem .9rem; list-style: none; }
.jmt-history-more::-webkit-details-marker { display: none; }

/* Coretrack / Stats */
.jmt-stat-tile { border: 1px solid #e4e3de; border-radius: 10px; padding: 12px; height: 100%; }
.jmt-stat-tile-click { cursor: pointer; }
.jmt-thermos { height: 340px; display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 16px; }
.jmt-thermo { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.jmt-thermo-title { font-weight: 600; margin-bottom: 8px; text-align: center; }
.jmt-thermo-body { display: flex; align-items: flex-end; gap: 10px; }
.jmt-thermo-glass { display: flex; flex-direction: column; align-items: center; }
.jmt-thermo-tube { position: relative; width: 28px; height: 200px; border-radius: 14px 14px 0 0; border: 2px solid #b8b7b0; border-bottom: none;
                   background-color: #f3f2ee; overflow: hidden; }
.jmt-thermo-fill { position: absolute; bottom: 0; left: 0; right: 0; transition: height .6s ease; }
.jmt-thermo-mark { position: absolute; right: 0; width: 8px; border-top: 1px solid #8a8984; }
.jmt-thermo-bulb { width: 48px; height: 48px; margin-top: -6px; border-radius: 50%; border: 2px solid #b8b7b0; }
.jmt-thermo-scale { height: 248px; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 48px; font-size: .75em; color: #6b6a65; }
.jmt-thermo-pct { font-size: 1.6em; font-weight: 700; margin-top: 8px; }
.jmt-progress-track { flex: 1; height: 10px; border-radius: 5px; background-color: #f0efec; overflow: hidden; min-width: 80px; }

/* Coretrack / Exceptions */
.jmt-severity { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.jmt-severity-row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid #e4e3de; }

/* Billing / Subscriptions */
.jmt-status-pill { display: inline-flex; align-items: center; justify-content: center; 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); }
.jmt-status-pill.jmt-status-on { background: rgba(214,14,9,.12); color: #d60e09; border-color: rgba(214,14,9,.35); }
.jmt-diff-pill { display: inline-flex; align-items: center; 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; }
.jmt-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; }
.jmt-summary-title { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.jmt-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; }
.jmt-summary-box { background: rgba(255,255,255,.12); border-radius: 12px; padding: 12px; }
.jmt-summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.jmt-summary-total { border-top: 1px solid rgba(255,255,255,.25); margin-top: 10px; padding-top: 10px; align-items: center; }
.jmt-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); margin-bottom: 12px; }
.jmt-tier-selected { border: 2px solid #d60e09; background: rgba(214,14,9,.06); box-shadow: 0 6px 18px rgba(214,14,9,.15); }
.jmt-tier-disable { font-weight: 700; color: #d60e09; }
.jmt-tier-note { color: #6b7280; font-size: .85rem; margin-top: 4px; }
.jmt-tier-amount { font-size: 1.25rem; font-weight: 800; color: #d60e09; }
.jmt-tier-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e5e7eb; display: flex; justify-content: space-between; }

/* Billing / PaymentResult */
.jmt-pay { min-height: 70vh; display: flex; justify-content: center; align-items: center; padding: 2rem; background: #f5f7fb; }
.jmt-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);
                border: 2px solid #ef444420; }
.jmt-pay-card.jmt-pay-ok { border-color: #22c55e20; }
.jmt-pay-icon { width: 120px; height: 120px; margin: 0 auto 1.5rem; border-radius: 50%; background: linear-gradient(135deg,#fee2e2,#fecaca);
                display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.jmt-pay-icon.jmt-pay-ok { background: linear-gradient(135deg,#dcfce7,#bbf7d0); }
.jmt-pay-text { margin-top: 1rem; font-size: 1.1rem; color: #64748b; line-height: 1.7; }
.jmt-pay-divider { height: 1px; background: #e5e7eb; margin: 2rem 0; }
.jmt-pay-badge { margin-top: 2rem; display: inline-flex; align-items: center; gap: .5rem; background: rgba(239,68,68,.10); color: #dc2626;
                 padding: .6rem 1rem; border-radius: 999px; font-weight: 600; }
.jmt-pay-badge.jmt-pay-ok { background: rgba(34,197,94,.10); color: #16a34a; }

/* Dash / Tenants: Modules dialog */
.jmt-module { border-bottom: 1px solid var(--surface-border, #dee2e6); padding: .5rem 0; }
.jmt-module-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.jmt-module-end { flex: 1 1 320px; }
.jmt-module-end .jmt-field { border-bottom: none; }
.jmt-feature-list { padding: .5rem 1rem .75rem 4rem; }
.jmt-feature-row { display: flex; align-items: center; gap: .75rem; padding: .25rem 0; cursor: pointer; }
