/* Tabulações 1.4.74: Configurações → Tabulações e a escolha dentro da fila. */
.tb-root{display:flex;flex-direction:column;gap:16px;min-width:0}
.tb-root .cp-section-heading{margin-bottom:0}
.tb-head-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.tb-file{position:relative;overflow:hidden;cursor:pointer}
.tb-file input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.tb-file:focus-within{outline:2px solid #6a3df0;outline-offset:2px}
.tb-rule{margin:0;padding:12px 14px;border-radius:12px;background:#f7f4fd;color:#5b4e74;font-size:12.5px;line-height:1.6}
.tb-link{border:0;background:none;padding:0;font:inherit;font-weight:800;color:#6a3df0;cursor:pointer;text-decoration:underline}
.tb-ai{padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.tb-ai h3{margin:0;font-size:14px;color:#2a1d40;display:flex;align-items:center;gap:8px}
.tb-ai h3 span{color:#6a3df0}
.tb-switch{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:#2a1d40;cursor:pointer}
.tb-switch input{margin-top:3px;width:16px;height:16px;flex:0 0 16px;accent-color:#6a3df0}
.tb-switch small{display:block;margin-top:2px;font-size:11.5px;color:#8a7e9e;line-height:1.5}
.tb-off{margin:0;padding:9px 12px;border-radius:10px;background:#fff8eb;color:#8a5a12;font-size:12px}
.tb-list{padding:0}
.tb-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:14px 16px;border-bottom:1px solid #f0ecf6}
.tb-filters input,.tb-filters select{height:38px;border:1px solid #ddd5ec;border-radius:10px;padding:0 11px;font:inherit;font-size:13px;color:#2a1d40;background:#fff;min-width:0}
.tb-search{flex:1 1 220px;min-width:0}.tb-search input{width:100%}
.tb-count{margin-left:auto;font-size:12px;color:#8a7e9e;font-weight:700}
.tb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tb-table td{vertical-align:middle}
.tb-name{display:flex;gap:10px;align-items:flex-start;min-width:200px}
.tb-name i{width:10px;height:10px;border-radius:50%;flex:0 0 10px;margin-top:5px}
.tb-name b{display:block;color:#2a1d40}
.tb-name small{display:block;margin-top:2px;font-size:11.5px;color:#8a7e9e;max-width:420px}
.tb-queues{font-size:12px;color:#5b4e74;min-width:160px;max-width:300px}
.tb-actions{white-space:nowrap;text-align:right}
.tb-actions .cp-button+.cp-button{margin-left:6px}
.tb-inactive td{opacity:.62}
.tb-inactive td.tb-actions{opacity:1}
.tb-root .cp-badge.danger{background:#fdecef;color:#b4405c}
.tb-empty,.tb-loading{margin:0;padding:28px 16px;text-align:center;color:#8a7e9e;font-size:13px}
.tb-foot{margin:0;padding:12px 16px;border-top:1px solid #f0ecf6;font-size:11.5px;color:#8a7e9e;line-height:1.6}
.tb-confirm p{margin:0 0 10px;font-size:13.5px;color:#2a1d40;line-height:1.6}
.tb-preview{display:flex;flex-direction:column;gap:12px}
.tb-preview-summary{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.tb-preview-summary span{padding:4px 10px;border-radius:999px;background:#f2f1f5;font-size:12px;font-weight:700;color:#5b4e74}
.tb-preview-summary .new{background:#eaf8f1;color:#2f7a55}.tb-preview-summary .upd{background:#f0ebfa;color:#6a3df0}.tb-preview-summary .err{background:#fdecef;color:#b4405c}
.tb-errors{margin:0;padding-left:18px;color:#b4405c;font-size:12.5px;line-height:1.6}
/* Dentro da fila (Configurações → Filas): the list uses the check options of the platform. */
.tb-queue-choice{display:flex;flex-direction:column;gap:10px}
.cp-form .tb-queue-mode{display:flex;flex-wrap:wrap;gap:8px 20px}
.cp-form .tb-queue-mode label{flex-direction:row;align-items:center;gap:8px;font-size:12px;color:#5b4e74;cursor:pointer}
.cp-form .tb-queue-mode input[type=radio]{width:15px;height:15px;min-height:0;margin:0;accent-color:#8651cb;flex:0 0 15px}
.tb-queue-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.cp-form .tb-queue-tools input{flex:1 1 200px;width:auto;min-width:0}
.tb-queue-tools small{font-size:12px;color:#8a7e9e;font-weight:700}
.tb-queue-list{max-height:260px;margin-top:8px}
.tb-queue-list [hidden]{display:none!important}
.tb-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:1px}
@media(max-width:650px){
  .tb-head-actions{justify-content:flex-start;width:100%}
  .tb-count{margin-left:0;width:100%}
  .tb-filters select{flex:1 1 140px}
  /* each tabulation is a card: name, type and status, the queues, then the actions */
  .tb-table thead{display:none}
  .tb-table,.tb-table tbody{display:block}
  .tb-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:14px 16px;border-bottom:1px solid #f0ecf6}
  .tb-table td{display:block;padding:0!important;border:0!important}
  .tb-table td:first-child{grid-column:1/-1}
  .tb-name{min-width:0}
  .tb-table td.tb-queues{grid-column:1/-1;max-width:none;min-width:0}
  .tb-table td.tb-queues::before{content:'Usada nas filas: ';font-weight:700;color:#8a7e9e}
  .tb-table td.tb-actions{grid-column:1/-1;text-align:left}
}
