body {
      font-family: 'Segoe UI', Arial, sans-serif;
      margin: 0;
      background: #f7f7f7;
    }
.page-wrapper {
  min-height: 100vh;   /* full viewport height */
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;             /* pushes footer down */
}

    .tabs-container {
      background: #fff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      border-radius: 8px 8px 0 0;
      margin: 24px auto 0 auto;
      max-width: 90%;
      width: 100%;
      box-sizing: border-box;
      overflow: hidden;
      position: relative;
      padding: 0;
      min-height: 60px;
    }
    .swiper {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      position: relative;
    }
    .swiper-slide {
      text-align: center;
      font-size: 1.1rem;
      background: #f2f2f2;
      color: #555;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px 8px;
      border: none;
      outline: none;
      white-space: nowrap;
      min-width: 0;
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
    }
    .swiper-slide.active {
      background: #1976d2;
      color: #fff;
      font-weight: bold;
    }
    .swiper-slide:hover {
      background: #e0e0e0;
    }
    .swiper-slide.active:hover {
      background: #1565c0;
    }
    
    /* Custom navigation arrows */
    .swiper-button-next,
    .swiper-button-prev {
      width: 32px !important;
      height: 32px !important;
      background-color: rgba(25, 118, 210, 0.9) !important;
      border-radius: 50% !important;
      color: #fff !important;
      transition: all 0.2s ease;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 0;
      border: none !important;
      outline: none !important;
      box-sizing: border-box !important;
    }
    
    .swiper-button-prev {
      left: 8px;
    }
    
    .swiper-button-next {
      right: 8px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
      font-size: 14px !important;
      font-weight: bold !important;
      color: #fff !important;
    }
    
    .swiper-button-next:hover,
    .swiper-button-prev:hover {
      background-color: rgba(25, 118, 210, 1) !important;
      border-radius: 50% !important;
      width: 32px !important;
      height: 32px !important;
    }
    
    .swiper-button-disabled {
      opacity: 0.3;
      cursor: not-allowed;
      border-radius: 50% !important;
    }
    
    .swiper-button-disabled:hover {
      transform: none;
      border-radius: 50% !important;
    }
    
    /* Force circular shape in all states */
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-button-next:hover,
    .swiper-button-prev:hover,
    .swiper-button-next:active,
    .swiper-button-prev:active,
    .swiper-button-next:focus,
    .swiper-button-prev:focus {
      border-radius: 50% !important;
      width: 32px !important;
      height: 32px !important;
    }
    
    /* Override Swiper's default button styles */
    .tabs-container .swiper-button-next,
    .tabs-container .swiper-button-prev {
      border-radius: 50% !important;
      width: 32px !important;
      height: 32px !important;
      background-color: rgba(25, 118, 210, 0.9) !important;
      color: #fff !important;
      border: none !important;
      outline: none !important;
    }
    
    /* Force circular shape even after click */
    .tabs-container .swiper-button-next:not(.swiper-button-disabled),
    .tabs-container .swiper-button-prev:not(.swiper-button-disabled) {
      border-radius: 50% !important;
      width: 32px !important;
      height: 32px !important;
    }
    
    /* Additional specificity for clicked state */
    .tabs-container .swiper .swiper-button-next,
    .tabs-container .swiper .swiper-button-prev {
      border-radius: 50% !important;
      width: 32px !important;
      height: 32px !important;
      background-color: rgba(25, 118, 210, 0.9) !important;
    }
    .tab-content {
      background: #fff;
      border-radius: 0 0 8px 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      max-width: 90%;
      width: 100%;
      margin: 0 auto 24px auto;
      padding: 32px 24px;
      display: none;
      min-height: 220px;
      min-width: 0;
      box-sizing: border-box;
    }
    .tab-content.active {
      display: block;
    }
    .icon-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 32px;
      margin-top: 24px;
      justify-items: center;
      max-width: 1000px;
      margin-left: auto;
      margin-right: auto;
    }
    .icon-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 180px;
      height: 180px;
      background: #e3eafc;
      border-radius: 16px;
      box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
      cursor: pointer;
      transition: background 0.2s, box-shadow 0.2s;
      font-size: 1.1rem;
      color: #1976d2;
      border: 2px solid transparent;
    }
    .icon-card:hover {
      background: #1976d2;
      color: #fff;
      box-shadow: 0 4px 16px rgba(25, 118, 210, 0.15);
      border: 2px solid #1976d2;
    }
    .icon-card svg {
      width: 48px;
      height: 48px;
      margin-bottom: 12px;
    }
    .workflow-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 24px;
      justify-content: center;
      margin: 32px 0 0 0;
    }
    .workflow-region {
      background: #e3eafc;
      border-radius: 14px;
      width: 180px;
      height: 180px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
      cursor: pointer;
      transition: background 0.2s, box-shadow 0.2s;
      border: 2px solid transparent;
      font-size: 1.1rem;
      margin-bottom: 12px;
      position: relative;
    }
    .workflow-region:hover {
      background: #1976d2;
      color: #fff;
      border: 2px solid #1976d2;
    }
    .region-icon {
      font-size: 2.5rem;
      margin-bottom: 10px;
    }
    .region-name {
      font-weight: bold;
      margin-bottom: 4px;
      text-align: center;
    }
    .region-templates {
      font-size: 0.95rem;
      color: #1976d2;
    }
    .workflow-region:hover .region-templates {
      color: #fff !important;
    }
    .workflow-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 18px;
    }
    .back-to-regions {
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: #1976d2;
      margin-right: 8px;
      transition: color 0.2s;
    }
    .back-to-regions:hover {
      color: #0d47a1;
    }
    .template-table-wrapper {
      width: 100%;
    }
    .template-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: auto;
    }
    .template-table th, .template-table td {
      padding: 12px 10px;
      text-align: left;
    }
    .template-table th {
      background: #e3eafc;
      color: #1976d2;
      font-weight: 600;
    }
    .template-table tbody tr {
      background: #f7f7f7;
      border-bottom: 1px solid #e0e0e0;
    }
    .template-table tbody tr:last-child {
      border-bottom: none;
    }
    .action-btn {
      background: none;
      border: none;
      cursor: pointer;
      margin-right: 8px;
      font-size: 1.2rem;
      color: #1976d2;
      position: relative;
      padding: 4px;
      border-radius: 50%;
      transition: background 0.2s, color 0.2s;
    }
    .action-btn:last-child {
      margin-right: 0;
    }
    .action-btn:hover {
      background: #e3eafc;
      color: #0d47a1;
    }
    .action-btn .tooltip {
      visibility: hidden;
      opacity: 0;
      background: #222;
      color: #fff;
      text-align: center;
      border-radius: 4px;
      padding: 4px 8px;
      position: absolute;
      z-index: 1;
      bottom: 120%;
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.85rem;
      white-space: nowrap;
      pointer-events: none;
      transition: opacity 0.2s;
    }
    .action-btn:hover .tooltip {
      visibility: visible;
      opacity: 1;
    }
    .breadcrumbs {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      font-size: 1.1rem;
      color: #1976d2;
      overflow-x: auto;
      max-width: 80vw;
      white-space: nowrap;
    }
    .breadcrumb-item {
      cursor: pointer;
      text-decoration: underline;
      color: #1976d2;
      font-weight: 500;
      background: none;
      border: none;
      padding: 0 2px;
      font-size: inherit;
    }
    .breadcrumb-sep {
      color: #888;
      font-size: 1.1em;
      margin: 0 2px;
    }
    .breadcrumbs .ellipsis {
      color: #888;
      font-size: 1.1em;
      margin: 0 2px;
      pointer-events: none;
    }
    @media (max-width: 700px) {
      .workflow-grid {
        gap: 12px;
      }
      .workflow-region {
        width: 110px;
        height: 110px;
        font-size: 0.98rem;
      }
      .region-icon {
        font-size: 1.6rem;
      }
      .template-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
      .breadcrumbs {
        font-size: 0.98rem;
        max-width: 98vw;
      }
      .swiper-slide {
        font-size: 1rem;
        padding: 14px 6px;
      }
    }
    
    @media (max-width: 480px) {
      .swiper-slide {
        font-size: 1rem;
        padding: 16px 8px;
        width: 100% !important;
        min-width: 100% !important;
        flex-shrink: 0;
        margin: 0 !important;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
      .swiper-button-next,
      .swiper-button-prev {
        display: flex !important;
        width: 28px;
        height: 28px;
        top: 50%;
        transform: translateY(-50%);
      }
      .swiper-button-next:after,
      .swiper-button-prev:after {
        font-size: 12px;
        font-weight: bold;
      }
      .tabs-container {
        overflow: visible;
      }
      .swiper-wrapper {
        margin: 0 !important;
        padding: 0 !important;
      }
    }
    
    @media (min-width: 481px) and (max-width: 839px) {
      .swiper.hybrid-tabs { display: none !important; }
      .custom-scroll-tabs { display: flex !important; align-items: center; width: 100%; background: #fff; border-radius: 8px 8px 0 0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
      .scroll-btn { background: rgba(25, 118, 210, 0.9); color: #fff; border: none; border-radius: 50%; width: 32px; height: 32px; margin: 0 4px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
      .scrollable-tab-bar { display: flex; overflow-x: auto; flex: 1 1 auto; scrollbar-width: none; -ms-overflow-style: none; }
      .scrollable-tab-bar::-webkit-scrollbar { display: none; }
      .tab-item { flex: 0 0 auto; padding: 16px 12px; margin: 0; background: #f2f2f2; color: #555; border-radius: 6px 6px 0 0; font-size: 1.1rem; white-space: nowrap; cursor: pointer; transition: background 0.2s, color 0.2s; text-align: center; user-select: none; min-width: 120px; }
      .tab-item.active { background: #1976d2; color: #fff; font-weight: bold; }
      .tab-item:hover { background: #e0e0e0; }
      .tab-item.active:hover { background: #1565c0; }
    }
    @media (max-width: 480px), (min-width: 840px) {
      .swiper.hybrid-tabs { display: block !important; }
      .custom-scroll-tabs { display: none !important; }
    }
    @media (min-width: 840px) {
      .swiper-slide {
        min-width: fit-content;
        max-width: 220px;
        flex: 1 1 auto;
        text-overflow: ellipsis;
        overflow: hidden;
      }
      .swiper-button-next,
      .swiper-button-prev {
        display: none !important;
      }
    }
    .unified-tabs {
      position: relative;
      background: #fff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      border-radius: 8px 8px 0 0;
      margin: 24px auto 0 auto;
      max-width: 90%;
      width: 100%;
      box-sizing: border-box;
      overflow: hidden;
      min-height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .tab-bar-wrapper {
      flex: 1 1 auto;
      overflow-x: auto;
      overflow-y: visible;
      position: relative;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .tab-bar-wrapper::-webkit-scrollbar { display: none; }
    .tab-bar {
      display: flex;
      flex-direction: row;
      align-items: stretch;
      width: 100%;
      min-width: 0;
    }
    .tab-slide {
      flex: 1 1 0;
      text-align: center;
      font-size: 1.1rem;
      background: #f2f2f2;
      color: #555;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px 8px;
      border: none;
      outline: none;
      white-space: nowrap;
      min-width: 0;
      user-select: none;
      border-radius: 0;
      margin: 0;
    }
    .tab-slide.active {
      background: #1976d2;
      color: #fff;
      font-weight: bold;
    }
    .tab-slide:hover {
      background: #e0e0e0;
    }
    .tab-slide.active:hover {
      background: #1565c0;
    }
    .scroll-btn {
      display: none;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
      width: 32px;
      height: 32px;
      background: rgba(25, 118, 210, 0.9);
      color: #fff;
      border: none;
      border-radius: 50%;
      font-size: 1.2rem;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0.95;
    }
    .template-table td.doc-icon, .template-table th:nth-child(2) {
      width: 40px;
      text-align: center;
    }
    .scroll-btn-left { left: 8px; }
    .scroll-btn-right { right: 8px; }
    .template-table th:nth-child(1),
.template-table td:nth-child(1) {
  width: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
}

.template-table th:nth-child(2),
.template-table td:nth-child(2) {
  width: 40px;
  text-align: center;
}

.template-table th:nth-child(3),
.template-table td:nth-child(3) {
  width: 70px;
  text-align: center;
}
    @media (max-width: 480px), (min-width: 1024px) {
      .scroll-btn { display: none !important; }
      .tab-bar-wrapper { overflow-x: hidden; }
    }
    @media (min-width: 481px) and (max-width: 1023px) {
      .scroll-btn { display: flex !important; }
      .tab-bar-wrapper { overflow-x: auto; }
    }
  

.template-table th,
.template-table td {
  padding: 8px;
  white-space: nowrap;
}

.template-table th:nth-child(1),
.template-table td:nth-child(1) {
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-table th:nth-child(2),
.template-table td:nth-child(2) {
  width: 50px;
  text-align: center;
}

.template-table th:nth-child(3),
.template-table td:nth-child(3) {
  width: 70px;
  text-align: center;
}

.cart-added {
  display: none;
}

.button-container.added-to-cart > .cart-added {
  display: inline;
}

.button-container.added-to-cart > .edd-add-to-cart {
  display: none;
}
