.tf-autocomplete{ position:relative; }
      .tf-suggest{ position:absolute; z-index:9999; background:#fff; border:1px solid #ccd0d4; width:100%; max-height:220px; overflow:auto; box-shadow:0 2px 6px rgba(0,0,0,.08); }
      .tf-suggest div{ padding:6px 10px; cursor:pointer; }
      .tf-suggest div:hover{ background:#f6f7f7; }
    
      /* Status color-coding */
      .tfe-event-scheduled{ border-left:4px solid #3b82f6; background:#eff6ff; }
      .tfe-event-enrolled{ border-left:4px solid #10b981; background:#ecfdf5; }
      .tfe-event-cancelled{ border-left:4px solid #ef4444; background:#fef2f2; opacity:.95; }

      .tfe-badge{ display:inline-block; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:600; letter-spacing:.3px; }
      .tfe-badge-scheduled{ background:#dbeafe; color:#1d4ed8; }
      .tfe-badge-enrolled{ background:#d1fae5; color:#065f46; }
      .tfe-badge-cancelled{ background:#fee2e2; color:#991b1b; }

.tfe-wrap{max-width:1200px;margin:0 auto}
      /* Admin page is already constrained by wp-admin; let the UI breathe and align nicely */
      .wp-admin .tfe-wrap{max-width:none;margin:0}
      /* Use responsive columns in wp-admin so the layout doesn't "break" when a field is hidden */
      .wp-admin .tfe-filter-form{
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap:18px 20px;
      }
      .wp-admin .tfe-filter-form .tfe-field{min-width:260px;}
      /* Keep the action button aligned to the right in admin */
      .wp-admin .tfe-actions{grid-column: 1 / -1;justify-content:flex-end;}

      .tfe-msg{padding:10px 12px;margin:10px 0 18px;border-radius:8px;border:1px solid #ccc}
      .tfe-ok{background:#e8fff0;border-color:#bfe8cc;color:#1c6b36}
      .tfe-err{background:#fff0f0;border-color:#f0bcbc;color:#7a1b1b}

      .tfe-filter-form{
        display:grid;
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap:16px 18px;
        align-items:end;
        margin-bottom:12px;
      }

      .tfe-field label{display:block;font-weight:700;margin:0 0 6px;font-size:14px}
      .tfe-field select,.tfe-field input{
        width:100%;
        padding:10px 12px;
        border-radius:10px;
        border:1px solid #cfcfcf;
        background:#fff;
        box-sizing:border-box;
      }

      .tfe-hint{opacity:.8;margin-top:6px;font-size:12px;line-height:1.25}
      .tfe-actions{display:flex;justify-content:center;margin-top:4px}

      .tfe-btn{padding:10px 16px;border-radius:12px;border:1px solid #1e73be;background:#1e73be;color:#fff;cursor:pointer;font-weight:700}
      .tfe-btn2{padding:9px 12px;border-radius:12px;border:1px solid #bbb;background:#fff;color:#222;cursor:pointer;font-weight:600}

      .tfe-table{width:100%;border-collapse:collapse}
      .tfe-table th,.tfe-table td{padding:10px;border-bottom:1px solid #eee;text-align:left;font-size:14px}
      .tfe-box{max-height:380px;overflow:auto;border:1px solid #eee;border-radius:12px;background:#fff}

      .tfe-card{border:1px solid #eee;border-radius:12px;background:#fff;padding:14px;margin:14px 0;}
      .tfe-card h3{margin:0 0 10px;font-size:18px}
      .tfe-small{font-size:12px;opacity:.8;margin-top:6px}

      .tfe-inline{
        display:grid !important;
        grid-template-columns: 1.3fr 1fr 1.2fr auto;
        gap:14px;
        align-items:center;
        margin-top:10px;
      }
      .tfe-file{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
      .tfe-file input[type="file"]{
        width:100%;
        max-width:520px;
        padding:8px 10px;
        border:1px solid #cfcfcf;
        border-radius:10px;
        background:#fff;
        box-sizing:border-box;
      }
      .tfe-check{display:flex;gap:10px;align-items:center;font-weight:600;font-size:13px;white-space:nowrap}
      .tfe-inline .tfe-btn{height:42px;padding:0 18px;border-radius:12px}

      .tfe-course-grid{display:grid;grid-template-columns: 1fr 1fr;gap:10px}
      .tfe-course-pill{
        display:flex;gap:10px;align-items:flex-start;
        border:1px solid #eee;border-radius:12px;padding:10px;background:#fafafa;
        font-size:13px;font-weight:600;
      }
      .tfe-date-badge{
        display:inline-block;
        font-size:12px;
        padding:3px 8px;
        border-radius:999px;
        border:1px solid #cfcfcf;
        background:#fff;
        opacity:.9;
        width:fit-content;
      }
      .tfe-date-none{opacity:.7}

      @media (max-width: 1100px){ .tfe-filter-form{grid-template-columns: 1fr 1fr} }
      @media (max-width: 980px){
        .tfe-inline{grid-template-columns: 1fr}
        .tfe-check{white-space:normal}
        .tfe-inline .tfe-btn{width:100%}
        .tfe-course-grid{grid-template-columns: 1fr}
      }
      @media (max-width: 640px){ .tfe-filter-form{grid-template-columns: 1fr} }

.tfe-calwrap{max-width:1200px;margin:0 auto}
      .tfe-calcard{background:#fff;border:1px solid #e8e8e8;border-radius:16px;box-shadow:0 1px 10px rgba(0,0,0,.04);padding:16px}
      .tfe-calhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
      .tfe-calh1{margin:0;font-size:22px;line-height:1.15}
      .tfe-calsub{margin:6px 0 0;opacity:.75;font-size:13px}
      .tfe-calnav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
      .tfe-btn2{padding:9px 12px;border-radius:12px;border:1px solid #bbb;background:#fff;color:#222;cursor:pointer;font-weight:600;text-decoration:none;display:inline-block}
      .tfe-month{font-weight:800;opacity:.85;padding:8px 10px;border-radius:12px;border:1px solid #eee;background:#fafafa}
      .tfe-grid{margin-top:14px;border:1px solid #eee;border-radius:14px;overflow:hidden}
      .tfe-dow{display:grid;grid-template-columns:repeat(7,1fr);background:#fafafa;border-bottom:1px solid #eee}
      .tfe-dow div{padding:10px 8px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;font-weight:800;opacity:.65}
      .tfe-days{display:grid;grid-template-columns:repeat(7,1fr)}
      .tfe-daycell{min-height:120px;border-right:1px solid #eee;border-bottom:1px solid #eee;padding:8px;background:#fff}
      .tfe-daycell:nth-child(7n){border-right:none}
      .tfe-daynum{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
      .tfe-daynum span{font-weight:900;font-size:13px}
      .tfe-muted{opacity:.65}
      .tfe-outside{background:#fcfcfc}
      .tfe-event{display:flex;gap:8px;align-items:flex-start;border:1px solid #eee;border-radius:12px;padding:8px;margin:6px 0;background:#fff}
      .tfe-evtmeta{min-width:0}
      .tfe-evttitle{font-weight:800;font-size:13px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
      .tfe-evtsub{font-size:12px;opacity:.78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
      .tfe-dot{width:10px;height:10px;border-radius:999px;border:1px solid #ddd;margin-top:2px;flex:0 0 auto;background:#fff}
      .tfe-dot-scheduled{background:#fff7ed;border-color:#fed7aa}
      .tfe-dot-enrolled{background:#ecfdf5;border-color:#a7f3d0}
      .tfe-dot-cancelled{background:#fef2f2;border-color:#fecaca}
      .tfe-dot-failed{background:#fff1f2;border-color:#fecdd3}

        .tfe-event{border:1px solid #e5e7eb;background:#fff;border-radius:14px;padding:12px 12px 10px;box-shadow:0 1px 2px rgba(0,0,0,.04);}
        .tfe-event-scheduled{border-color:#b6d4fe;background:#f0f7ff;}
        .tfe-event-enrolled{border-color:#b7eb8f;background:#f6ffed;}
        .tfe-event-cancelled{border-color:#ffccc7;background:#fff1f0;opacity:.9;}
        .tfe-event-failed{border-color:#ffd666;background:#fffbe6;}
      .tfe-legend{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}
      .tfe-legend span{display:flex;gap:6px;align-items:center;font-size:12px;opacity:.85}
      .tfe-badge{display:inline-block;padding:4px 10px;border-radius:999px;border:1px solid #ddd;font-size:12px;font-weight:800}
      .tfe-badge-scheduled{background:#fff7ed;border-color:#fed7aa;color:#9a4b00}
      .tfe-badge-enrolled{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
      .tfe-badge-cancelled{background:#fef2f2;border-color:#fecaca;color:#7f1d1d}
      .tfe-badge-failed{background:#fff1f2;border-color:#fecdd3;color:#9f1239}
      @media (max-width: 980px){
        .tfe-daycell{min-height:110px}
        .tfe-evtsub{display:none}
      }
      @media (max-width: 740px){
        .tfe-daycell{min-height:95px}
        .tfe-event{padding:6px}
      }

.tfe-tcwrap{max-width:1200px;margin:0 auto}
      .tfe-tccard{background:#fff;border:1px solid #e9e9e9;border-radius:16px;box-shadow:0 2px 18px rgba(0,0,0,.05);padding:16px}
      .tfe-tchdr{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
      .tfe-tcttl{margin:0;font-size:22px;line-height:1.1}
      .tfe-tcnav{display:flex;gap:8px;align-items:center}
      /* Calendar header buttons (Prev/Next/Clear) */
      .tfe-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #ddd;border-radius:12px;background:#fff;font-weight:800;text-decoration:none;color:#111;cursor:pointer}
      .tfe-btn:hover,.tfe-btn:focus{color:#111;text-decoration:none;outline:none}
      .tfe-msg{margin:10px 0 14px;padding:10px 12px;border-radius:12px;border:1px solid #ddd;font-weight:700}
      .tfe-ok{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
      .tfe-err{background:#fef2f2;border-color:#fecaca;color:#7f1d1d}

      .tfe-grid{display:grid;grid-template-columns:repeat(7, 1fr);border:1px solid #eee;border-radius:14px;overflow:hidden;background:#fff}
      .tfe-dow{padding:10px 12px;font-size:12px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;background:#fafafa;border-bottom:1px solid #eee}
      .tfe-day{min-height:140px;border-right:1px solid #eee;border-bottom:1px solid #eee;padding:10px 10px 12px}
      .tfe-day:nth-child(7n){border-right:none}
      .tfe-daynum{font-weight:900;font-size:13px;opacity:.8;margin-bottom:8px}
      .tfe-day.out{background:#fcfcfc;opacity:.55}

      .tfe-evt{background:#fff;border:1px solid #eee;border-radius:16px;padding:10px;margin:8px 0;box-shadow:0 1px 10px rgba(0,0,0,.03)}
      /* Status color-coding (subtle background + strong left border) */
      .tfe-evt.tfe-st-scheduled{border-left:6px solid #2563eb;background:#eff6ff}
      .tfe-evt.tfe-st-enrolled{border-left:6px solid #16a34a;background:#f0fdf4}
      .tfe-evt.tfe-st-cancelled{border-left:6px solid #dc2626;background:#fef2f2;opacity:.9}
      .tfe-evt.tfe-st-failed{border-left:6px solid #f59e0b;background:#fffbeb}
      .tfe-evt.tfe-st-drift{border-left:6px solid #9333ea;background:#faf5ff}
      .tfe-evt-title{font-weight:900;font-size:14px;line-height:1.2;margin:0 0 4px}
      .tfe-evt-meta{font-size:12px;opacity:.75;margin-bottom:8px}

      .tfe-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px}
      .tfe-actbtn{padding:8px 12px;border-radius:12px;border:1px solid #ddd;background:#fff;font-weight:900;cursor:pointer}
      .tfe-actbtn.cancel{border-color:#fecaca}
      .tfe-actbtn.resched{border-color:#c7d2fe}
      .tfe-date{padding:8px 10px;border-radius:12px;border:1px solid #ddd;font-weight:800}

      .tfe-tcfilters{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:12px 0 14px}
      .tfe-tcfilters .tfe-f{display:flex;flex-direction:column;gap:6px}
      .tfe-tcfilters label{font-weight:900;font-size:12px}
      .tfe-tcfilters select,.tfe-tcfilters input[type=text]{min-width:210px;padding:8px 10px;border:1px solid #ddd;border-radius:12px}
      .tfe-tcfilters .tfe-fsmall select{min-width:170px}
      .tfe-tcfilters .tfe-fcheck{flex-direction:row;align-items:center;gap:8px;margin-bottom:4px}
      .tfe-tcfilters .tfe-fcheck input{margin:0}

      @media (max-width: 980px){
        .tfe-grid{grid-template-columns:repeat(2, 1fr)}
        .tfe-day{border-right:1px solid #eee}
        .tfe-day:nth-child(2n){border-right:none}
        .tfe-dow{display:none}
      }

.trainingflow-embed .wrap{max-width:1200px;margin:0 auto;}
        .trainingflow-embed h1{margin:.6em 0 .4em;}
        .trainingflow-embed table.widefat{width:100%;border-collapse:collapse;border:1px solid #dcdcde;background:#fff;}
        .trainingflow-embed table.widefat th,.trainingflow-embed table.widefat td{border-bottom:1px solid #dcdcde;padding:10px;vertical-align:top;}
        .trainingflow-embed table.widefat thead th{background:#f6f7f7;font-weight:600;}
        .trainingflow-embed table.striped tbody tr:nth-child(odd){background:#fcfcfd;}
        .trainingflow-embed .button{display:inline-block;padding:6px 10px;border:1px solid #2271b1;border-radius:4px;background:#f6f7f7;color:#2271b1;text-decoration:none;font-size:13px;line-height:1.2;}
        .trainingflow-embed .button:hover{background:#eef5fb;}
        .trainingflow-embed .button.button-primary{background:#2271b1;color:#fff;}
        .trainingflow-embed .button.button-primary:hover{background:#1e5f96;}
        .trainingflow-embed .button.button-small{padding:4px 8px;font-size:12px;}
        .trainingflow-embed .notice{border-left:4px solid #d63638;background:#fff;padding:10px 12px;margin:12px 0;}
        .trainingflow-embed .notice.notice-error{border-left-color:#d63638;}
        .trainingflow-embed .notice.notice-info{border-left-color:#72aee6;}

/* Force nav button text visible (some themes override button/link colors) */
.tfe-btn2,
.tfe-btn2:visited,
.tfe-btn2:hover,
.tfe-btn2:focus {
  color: #222 !important;
  opacity: 1 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

/* -------------------------------------------------------------------------
 * Front-end typography normalization
 * -------------------------------------------------------------------------
 * Scope a few sane defaults to the shortcode wrapper so theme typography
 * doesn't make the UI look broken.
 */

.yaqetrop-embed{
  font-size:16px;
  line-height:1.5;
}

.yaqetrop-embed h1{font-size:28px;line-height:1.25;margin:0 0 12px 0;}
.yaqetrop-embed h2{font-size:20px;line-height:1.25;margin:0 0 10px 0;}
.yaqetrop-embed h3{font-size:16px;line-height:1.25;margin:0 0 10px 0;}
.yaqetrop-embed p{margin:0 0 10px 0;}

.yaqetrop-embed .wrap,
.yaqetrop-embed .tfe-wrap{
  max-width:1200px;
  margin:0 auto;
}
