/* Plugin: InstructorPro Suite | File Version: 2016v2 */
/* Profile Generator - match visitors/orders visual system */
.ez2d-profile-settings {
  width: 100%;
  max-width: calc(100% - 3rem);
  margin: 0 auto;
}

/* Header banner */
.ez2d-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.ez2d-profile-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ez2d-profile-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  flex-shrink: 0;
}

.ez2d-profile-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.ez2d-profile-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.25rem 0 0;
}

.ez2d-profile-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Modal */
.ez2d-profile-settings .ez2d-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  z-index: 9999;
}

.ez2d-profile-settings .ez2d-modal.is-open {
  display: flex;
}

.ez2d-profile-settings .ez2d-modal-dialog {
  width: min(980px, 94vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.ez2d-profile-settings .ez2d-modal-title {
  margin: 0;
  padding: 18px 22px;
  font-size: 1.2rem;
  font-weight: 700;
  border-bottom: 1px solid #eef2f7;
}

.ez2d-profile-settings .ez2d-modal-close {\r\n  position: absolute;\r\n  top: 12px;\r\n  right: 12px;\r\n  width: 36px;\r\n  height: 36px;\r\n  display: flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n  background: #f1f5f9;\r\n  border: none;\r\n  border-radius: 8px;\r\n  cursor: pointer;\r\n  color: #64748b;\r\n  transition: all 0.2s ease;\r\n  font-size: 20px;\r\n  line-height: 1;\r\n}\r\n\r\n.ez2d-profile-settings .ez2d-modal-close:hover {\r\n  background: #e2e8f0;\r\n  color: #0f172a;\r\n  transform: rotate(90deg);\r\n}\r\n.ez2d-profile-settings .ez2d-modal-body {
  padding: 18px 22px 22px;
  overflow: auto;
  max-height: calc(90vh - 70px);
}

/* Modern cards */
.ez2d-modern-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.ez2d-modern-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eef2f7;
}

.ez2d-modern-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.ez2d-modern-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* Form */
.ez2d-profile-form-card {
  position: relative;
}

.ez2d-profile-form-card .ez2d-form-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.ez2d-profile-form-title-main {
  font-weight: 600;
}

.ez2d-profile-form-mode {
  font-size: 12px;
  opacity: 0.8;
}

.ez2d-profile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

.ez2d-profile-required {
  min-width: 180px;
}

.ez2d-profile-required-toggle {
  margin-top: 4px;
}

.ez2d-profile-sort input[type="number"] {
  max-width: 80px;
}

.ez2d-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

/* Table width */
.ez2d-profile-settings table.ez2d-table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
}

.ez2d-profile-settings .ez2d-profile-list-card,
.ez2d-profile-settings .ez2d-profile-list-card .ez2d-modern-card-body,
.ez2d-profile-settings #ez2d-profile-fields-list,
.ez2d-profile-settings .ez2d-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.ez2d-profile-settings .ez2d-profile-list-card {
  overflow: hidden;
}

.ez2d-profile-settings table.ez2d-table th,
.ez2d-profile-settings table.ez2d-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
  padding: 8px 6px;
  font-size: 12px;
  line-height: 1.25;
}

.ez2d-profile-settings table.ez2d-table th {
  font-size: 11px;
}

.ez2d-profile-settings table.ez2d-table td {
  font-size: 11px;
}

.ez2d-profile-settings table.ez2d-table th:nth-child(1),
.ez2d-profile-settings table.ez2d-table td:nth-child(1) {
  width: 5%;
}

.ez2d-profile-settings table.ez2d-table th:nth-child(2),
.ez2d-profile-settings table.ez2d-table td:nth-child(2),
.ez2d-profile-settings table.ez2d-table th:nth-child(3),
.ez2d-profile-settings table.ez2d-table td:nth-child(3) {
  width: 11%;
}

.ez2d-profile-settings table.ez2d-table th:nth-child(4),
.ez2d-profile-settings table.ez2d-table td:nth-child(4),
.ez2d-profile-settings table.ez2d-table th:nth-child(5),
.ez2d-profile-settings table.ez2d-table td:nth-child(5),
.ez2d-profile-settings table.ez2d-table th:nth-child(6),
.ez2d-profile-settings table.ez2d-table td:nth-child(6) {
  width: 9%;
}

.ez2d-profile-settings table.ez2d-table th:nth-child(1),
.ez2d-profile-settings table.ez2d-table td:nth-child(1),
.ez2d-profile-settings table.ez2d-table th:nth-child(7),
.ez2d-profile-settings table.ez2d-table td:nth-child(7),
.ez2d-profile-settings table.ez2d-table th:nth-child(8),
.ez2d-profile-settings table.ez2d-table td:nth-child(8),
.ez2d-profile-settings table.ez2d-table th:nth-child(9),
.ez2d-profile-settings table.ez2d-table td:nth-child(9),
.ez2d-profile-settings table.ez2d-table th:nth-child(10),
.ez2d-profile-settings table.ez2d-table td:nth-child(10),
.ez2d-profile-settings table.ez2d-table th:nth-child(11),
.ez2d-profile-settings table.ez2d-table td:nth-child(11) {
  text-align: center;
}

.ez2d-profile-settings table.ez2d-table th:nth-child(12),
.ez2d-profile-settings table.ez2d-table td:nth-child(12) {
  width: 18%;
  min-width: 120px;
}

.ez2d-profile-settings table.ez2d-table th:nth-child(2),
.ez2d-profile-settings table.ez2d-table td:nth-child(2),
.ez2d-profile-settings table.ez2d-table th:nth-child(3),
.ez2d-profile-settings table.ez2d-table td:nth-child(3),
.ez2d-profile-settings table.ez2d-table th:nth-child(5),
.ez2d-profile-settings table.ez2d-table td:nth-child(5),
.ez2d-profile-settings table.ez2d-table th:nth-child(6),
.ez2d-profile-settings table.ez2d-table td:nth-child(6) {
  max-width: 160px;
}

/* Row actions (3D buttons) */
.ez2d-profile-settings .ez2d-row-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Modern button (match orders) */
.ez2d-btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.ez2d-btn-modern.ez2d-btn-primary {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ez2d-btn-modern.ez2d-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

@media (max-width: 900px) {
  .ez2d-profile-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .ez2d-profile-settings {
    max-width: calc(100% - 1.5rem);
  }
  .ez2d-profile-settings .ez2d-modal-dialog {
    width: min(96vw, 720px);
  }
}

/* Mobile modal scrolling fix */
@media (max-width: 900px) {
  .ez2d-profile-settings .ez2d-modal {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
  }

  .ez2d-profile-settings .ez2d-modal-dialog {
    margin: 10px auto;
    max-height: none;
  }

  .ez2d-profile-settings .ez2d-modal-body {
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
}


.ez2d-profile-settings .ez2d-modern-modal-close{
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  font-size: 20px;
  line-height: 1;
}
.ez2d-profile-settings .ez2d-modern-modal-close:hover{
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}


.ez2d-profile-settings .ez2d-row-actions .ez2d-btn-3d img{
  display:none;
}

.ez2d-profile-settings .ez2d-btn-3d{font-size:0 !important;color:transparent !important;}
.ez2d-profile-settings .ez2d-btn-edit-3d::before{content:"" !important;width:18px;height:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25z'/%3E%3Cpath d='M20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") !important;background-size:contain;background-repeat:no-repeat;background-position:center;}
.ez2d-profile-settings .ez2d-btn-delete-3d::before{content:"" !important;width:18px;height:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E") !important;background-size:contain;background-repeat:no-repeat;background-position:center;}
.ez2d-profile-settings .ez2d-btn-deactivate-3d::before{content:"" !important;width:18px;height:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c-5 0-9.27 3.11-11 7 1.02 2.29 2.8 4.23 5.06 5.5L4 20l1.41 1.41 16-16L20 4l-2.03 2.03C16.21 5.36 14.14 5 12 5zm0 4a3 3 0 0 1 3 3c0 .55-.15 1.06-.41 1.5L10.5 9.41A3 3 0 0 1 12 9zm-7.31 3c.88 1.45 2.23 2.7 3.86 3.55l1.57-1.57A3 3 0 0 1 9 12c0-.5.12-.97.33-1.4L7.38 8.65A8.9 8.9 0 0 0 4.69 12zM12 19c2.08 0 4.06-.46 5.8-1.27l-1.68-1.68A3 3 0 0 1 12 15a3 3 0 0 1-1.32-.3l-1.6 1.6A9.54 9.54 0 0 0 12 19zm7.31-7c-.5-1.04-1.2-2.01-2.07-2.86l-1.49 1.49c.48.43.9.92 1.26 1.46-.72 1.17-1.77 2.2-3.08 3.02l1.55 1.55A10.66 10.66 0 0 0 19.31 12z'/%3E%3C/svg%3E") !important;background-size:contain;background-repeat:no-repeat;background-position:center;}
