
/* Only resize dialogs that we tag with .portal-edit-dialog */
/*.shift-quanity {
  max-width: 1000px;  
  width: 95vw;
}

.portal-edit-dialog .modal-content {
  max-height: 85vh;   
  display: flex;
  flex-direction: column;
}

.portal-edit-dialog .modal-body {
  overflow: auto;     
}
*/

.shift-quanity iframe,
.shift-resource iframe {
 height: 200px !important;
}

.left-label-form .control-label {
    float: left;
    width: 180px;
    text-align: right;
    margin-right: 12px;
}

.left-label-form .control {
    display: inline-block;
}

.crmEntityFormView, .entitylist
{
  border: 0px !important;
}

/*.nlfilter,
.aiInsights,  *//*+ pages-native-container*/
/*pages-native-container
{
    display: none !important;
}*/

/*.navbar, .card, .table-responsive 
{
  overflow: visible !important; /* allows dropdown to escape the box */
/*}*/


#external-login-heading {
  display:none;
}

.columnBlockLayout {
  margin-top: 0 !important;
}

/* =========================
   Shared Wizard + Form Base
   ========================= */

:root {
  --glad-font-body: "Century Gothic", Roboto, "Segoe UI", Arial, sans-serif;
  --glad-text: #444444;
  --glad-heading: #101828;
  --glad-link: #1bb0ce;
  --glad-link-hover: #1593ac;
  --glad-primary: #1bb0ce;
  --glad-primary-hover: #1593ac;
  --glad-border: #e4e7ec;
  --glad-border-strong: #d0d5dd;
  --glad-surface: #ffffff;
  --glad-surface-soft: #f8fafc;
}

.supplier-wizard-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--glad-font-body);
  color: var(--glad-text);
}

.wizard-header-block { padding: 8px 0; }
.wizard-title { margin: 0 0 8px; font-size: 2rem; color: var(--glad-heading); }
.wizard-subtitle { margin: 0; color: var(--glad-text); }

.wizard-progress { position: relative; padding: 8px 0 0; }
.wizard-progress-line {
  position: absolute;
  top: 30px;
  left: 12%;
  right: 12%;
  height: 4px;
  background: var(--glad-border);
  border-radius: 999px;
}
.wizard-progress-fill {
  width: 0;
  height: 100%;
  background: var(--glad-primary);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.wizard-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}

.wizard-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.wizard-step-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 3px solid var(--glad-border-strong);
  background: var(--glad-surface);
  color: #475467;
  font-weight: 600;
  z-index: 1;
}

.wizard-step-label { font-size: 0.875rem; color: #475467; font-weight: 500; }

.wizard-progress-step.active .wizard-step-number,
.wizard-progress-step.completed .wizard-step-number {
  border-color: var(--glad-primary);
  background: var(--glad-primary);
  color: #ffffff;
}

.wizard-progress-step.active .wizard-step-label,
.wizard-progress-step.completed .wizard-step-label {
  color: var(--glad-link-hover);
}

.wizard-alert { padding: 12px 14px; border-radius: 8px; font-size: 0.875rem; }
.wizard-alert.info { background: #e9f9fc; color: #0f7f97; border: 1px solid #b7e7f1; }
.wizard-alert.error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

.wizard-step { display: none; }
.wizard-step.active { display: block; }

.wizard-card {
  border: 1px solid var(--glad-border);
  border-radius: 14px;
  background: var(--glad-surface);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.wizard-card-header {
  padding: 24px;
  background: linear-gradient(135deg, #effbfd, #ffffff);
  border-bottom: 1px solid var(--glad-border);
}

.wizard-card-header h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--glad-heading);
}

.wizard-card-header p { margin: 0; color: var(--glad-text); }
.wizard-card-body { padding: 24px; }

.wizard-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--glad-border);
  background: var(--glad-surface-soft);
}

.step-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.wizard-link, a.wizard-link {
  color: var(--glad-link);
  text-decoration: none;
  font-weight: 500;
}
.wizard-link:hover, a.wizard-link:hover {
  color: var(--glad-link-hover);
  text-decoration: underline;
}

.back-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.primary-button,
#save-account-button,
#EntityFormPanel .btn-primary,
#EntityFormPanel input[type="submit"] {
  width: fit-content;
  padding: 9px 18px;
  border: 1px solid var(--glad-primary);
  border-radius: 6px;
  background: var(--glad-primary);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.primary-button:hover,
#save-account-button:hover,
#EntityFormPanel .btn-primary:hover,
#EntityFormPanel input[type="submit"]:hover {
  background: var(--glad-primary-hover);
  border-color: var(--glad-primary-hover);
}

.secondary-button,
.ghost-button {
  width: fit-content;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
}
.secondary-button {
  border: 1px solid #98a2b3;
  background: #ffffff;
  color: #344054;
}
.secondary-button:hover { background: #f9fafb; }
.ghost-button { border: 1px solid transparent; background: transparent; color: #475467; }
.ghost-button:hover { background: #f2f4f7; }

#EntityFormPanel .tab-title { display: none; }
#EntityFormPanel {
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}
#EntityFormPanel fieldset { padding: 24px; border: none; }

#EntityFormPanel label,
#EntityFormPanel .control-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #344054;
  margin-bottom: 4px;
}

#EntityFormPanel input[type="text"],
#EntityFormPanel input[type="email"],
#EntityFormPanel input[type="number"],
#EntityFormPanel input[type="date"],
#EntityFormPanel input[type="datetime-local"],
#EntityFormPanel select,
#EntityFormPanel textarea {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--glad-border-strong);
  border-radius: 6px;
  font-size: 0.875rem;
  color: #1d2939;
  background: #fff;
  box-sizing: border-box;
}

#EntityFormPanel input[type="text"]:focus,
#EntityFormPanel input[type="email"]:focus,
#EntityFormPanel input[type="number"]:focus,
#EntityFormPanel input[type="date"]:focus,
#EntityFormPanel select:focus,
#EntityFormPanel textarea:focus {
  outline: none;
  border-color: var(--glad-primary);
  box-shadow: 0 0 0 3px rgba(27, 176, 206, 0.18);
}

#EntityFormPanel .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
}
#EntityFormPanel .input-group > input,
#EntityFormPanel .input-group > .form-control {
  flex: 1 1 auto;
  min-width: 0;
}
#EntityFormPanel .input-group-btn {
  display: flex;
  align-items: stretch;
}
#EntityFormPanel .input-group-btn .btn {
  padding: 8px 12px;
  border: 1px solid var(--glad-border-strong);
  border-left: none;
  border-radius: 0 6px 6px 0;
  background: #f9fafb;
  color: #475467;
  margin-left: -1px;
  height: 100%;
}

#EntityFormPanel .form-actions,
#EntityFormPanel .actions {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--glad-border);
  background: var(--glad-surface-soft);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#EntityFormPanel .validation-summary-errors,
#EntityFormPanel .field-validation-error {
  color: #b42318;
  font-size: 0.8125rem;
}

.sharepoint-data {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.sharepoint-data th,
.sharepoint-data td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--glad-border);
  font-size: 0.875rem;
  text-align: left;
}
.sharepoint-data th {
  color: #344054;
  font-weight: 500;
}

.wizard-table-wrap { overflow-x: auto; }
.wizard-table { width: 100%; border-collapse: collapse; }
.wizard-table th,
.wizard-table td {
  padding: 12px;
  border-bottom: 1px solid var(--glad-border);
  text-align: left;
  vertical-align: top;
}
.wizard-table th { color: #344054; font-size: 0.875rem; }

.wizard-empty-state {
  padding: 16px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-chip.success { background: #dcfce7; color: #166534; }
.status-chip.muted { background: #f2f4f7; color: #475467; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.review-card {
  padding: 16px;
  border: 1px solid var(--glad-border);
  border-radius: 10px;
  background: #fcfcfd;
}
.review-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--glad-heading);
}
.review-card p {
  margin: 0 0 8px;
  color: var(--glad-text);
}

.wizard-bank-form .entitylist,
.wizard-bank-form .entityform,
.wizard-bank-form .form-horizontal {
  width: 100%;
}

@media (max-width: 768px) {
  .wizard-progress-steps,
  .review-grid,
  .contact-select-row,
  .quick-contact-grid {
    grid-template-columns: 1fr;
  }

  .wizard-progress-line { display: none; }
  .wizard-navigation { flex-direction: column; }
}


.navbar-header a:not(.btn):hover {
  text-decoration: none !important;
}