.page-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.card-container {
  width: 100%;
  max-width: 1100px; 
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eef2f7;
}

.subtitle {
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.9rem;
}

.card-section {
  padding: 18px 24px;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 12px;
}

/* Tabs */
.tab-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tab-base {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.tab-active {
  background: #2563eb; 
  color: #fff;
  border-color: #2563eb;
}

.tab-inactive {
  background: #e5e7eb; 
  color: #374151;      
  border-color: #d1d5db;
}

.tab-inactive:hover {
  background: #d1d5db; 
}

.content-area {
  padding: 18px 24px 24px 24px;
  border-top: 1px solid #eef2f7;
}
@media (prefers-color-scheme: dark) {
  input {
    /* background-color: #1e1e1e; */
    color: #1e1e1e;
  }
  label{
    color: #1e1e1e;
  }
}.page-container {
  background-color: #f7faff;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.form-utility-page .card-container {
  width: 100%;
  height: fit-content;
  max-width: 1120px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.top-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
}

.breadcrumb-area {
  display: flex;
  align-items: center;
}

.card-header {
  margin-bottom: 24px;
}

.card-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
}

.subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #6b7280;
}

.card-section {
  background: #f9fafb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.card-section.light {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
}

.err-text {
  margin-top: 8px;
  padding: 0 10px;
  color: red;
}

.fu-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: start;
}

.fu-left {
  display: flex;
  flex-direction: column;
}

.fu-right {
  min-width: 0;
}

.fu-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.fu-label {
  font-size: 13px;
  color: #374151;
  font-weight: 600;
}

.fu-dd {
  width: 100%;
}

.fu-dd select,
.fu-dd .fu-dropdown-select,
.fu-dd select.fu-dropdown-select {
  width: 100%;
  height: 40px;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  outline: none;
  font-size: 14px;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
}

.fu-dd select:focus,
.fu-dd .fu-dropdown-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.fu-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #111827;
  font-weight: 600;
  margin: 8px 0 12px 0;
}

.fu-check input {
  width: 16px;
  height: 16px;
}

.fu-btns {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  min-width: 100px;
  height: 36px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.primary {
  background-color: #2563eb;
  color: #ffffff;
}

.btn.success {
  background-color: #15803d;
  color: #ffffff;
}

.btn.info {
  background-color: #6aa7ff;
  color: #ffffff;
}

.fu-update {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fu-input {
  height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  outline: none;
  background: #ffffff;
}

.fu-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.fu-update-btn {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.fu-grid-wrap {
  width: 100%;
  height: 560px;
}

@media (max-width: 1100px) {
  .form-utility-page .card-container {
    max-width: 980px;
  }
}

@media (max-width: 980px) {
  .fu-layout {
    grid-template-columns: 1fr;
  }

  .fu-grid-wrap {
    height: 460px;
  }
}/* Placeholder file to ensure CSS imports are working */

.MuiDataGrid {
  display: block;
}
.page-container {
  padding: 16px;
}

.card-container {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e6e6e6;
}

.card-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.subtitle {
  margin: 6px 0 0;
  color: #666;
  font-size: 13px;
}

.card-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

.uw-select,
.uw-input {
  height: 36px;
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 6px 10px;
  outline: none;
  font-size: 13px;
  background: #fff;
}

.uw-select:focus,
.uw-input:focus {
  border-color: #2f79c5;
  box-shadow: 0 0 0 2px rgba(47, 121, 197, 0.15);
}

.btn {
  height: 36px;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.primary {
  background: #2f79c5;
  color: #fff;
}

.btn.secondary {
  background: #2f79c5;
  color: #fff;
}

.btn.tertiary {
  background: #f2f2f2;
  color: #222;
  border-color: #d0d0d0;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.err-text {
  margin-top: 10px;
  color: #d93025;
  font-weight: 600;
}

.ok-text {
  margin-top: 10px;
  color: #188038;
  font-weight: 600;
}

.uw-search-row {
  display: grid;
  grid-template-columns: 240px 320px auto;
  gap: 12px;
  align-items: end;
  width: 100%;
}

.uw-search-btn {
  white-space: nowrap;
  min-width: 240px;
}

.uw-getpolicies-center {
  display: flex;
  justify-content: center;
  margin: 6px 0 8px;
}

.uw-get-btn {
  min-width: 120px;
}

.uw-grid {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-top: 10px;
}

.uw-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f3f5f7;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid #e6e6e6;
}

.uw-grid-title {
  font-size: 12px;
  color: black;
}

.uw-count {
  color: #666;
  font-weight: 600;
  font-size: 12px;
}

.uw-grid-body {
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.uw-grid-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.uw-radio {
  display: flex;
  align-items: center;
  justify-content: center;
}

.uw-name {
  font-size: 13px;
  color: #222;
}

body.uw-no-scroll {
  overflow: hidden;
}

.uw-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  overscroll-behavior: contain;
}

.uw-modal {
  width: min(1150px, 100%);
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.uw-modal-header {
  background: #2f79c5;
  color: #fff;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 2;
}

.uw-modal-title {
  font-weight: 700;
}

.uw-icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
}

.uw-modal-banner {
  margin: 12px 14px 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #eaf3fb;
  color: #2a5d91;
  font-size: 13px;
  flex: 0 0 auto;
}

.uw-modal-body {
  padding: 14px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
}

.uw-source-line {
  display: flex;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 10px;
  color: #333;
}

.uw-source-label {
  font-weight: 700;
}

.uw-source-value {
  font-weight: 600;
}

.uw-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 16px;
}

.uw-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.uw-req {
  color: #d11;
}

.uw-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.uw-table-wrap {
  margin-top: 14px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
}

.uw-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f3f5f7;
  font-weight: 700;
}

.uw-table-title {
  font-size: 13px;
}

.uw-selectall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;  
}

.uw-table-scroll {
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
}

.uw-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.uw-table th,
.uw-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.uw-table th {
  background: #f3f5f7;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

.uw-col-check {
  width: 40px;
  text-align: center;
}

.uw-empty-row {
  text-align: center;
  padding: 18px 10px;
  color: #666;
  font-size: 12px;
}

.uw-table-disabled {
  opacity: 0.95;
}

.uw-table-disabled-msg {
  padding: 18px 12px;
  text-align: center;
  color: #666;
  font-size: 12px;
  background: #fff;
  border-top: 1px solid #eee;
}

.uw-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #eee;
  flex: 0 0 auto;
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

@media (prefers-color-scheme: dark) {
  input,select {
    /* background-color: #1e1e1e; */
    color: #1e1e1e;
  }
 }.page-container {
    background-color: #F7FAFF;
    display: flex;
    justify-content: center;
    padding: 40px 16px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.card-container {
    width: 100%;
    height: fit-content;
    max-width: 900px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

/* Header */
.card-header {
    margin-bottom: 24px;
}
.top-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.breadcrumb-help-link {
  margin-left: auto;
  color: #2563eb;       
  text-decoration: none;   
  font-size: inherit;    
  font-weight: inherit;   
}

.breadcrumb-help-link:hover,
.breadcrumb-help-link:focus,
.breadcrumb-help-link:visited {
  color: #2563eb;        
  text-decoration: none;   
}

.card-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}

.subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #6b7280;
}

/* Sections */
.card-section {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-section.light {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid.single {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #374151;
}

.form-group input {
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.form-group input:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Details */
.details-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
    column-gap: 24px;
    font-size: 14px;
}

.detail-row span {
    color: #6b7280;
}

.detail-row strong {
    color: #111827;
}

/* Buttons */
.action-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.action-row.left {
    justify-content: flex-start;
}

.btn {
    min-width: 100px;
    height: 36px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 0.35rem 0.75rem;
}

.btn.primary {
    background-color: #2563eb;
    color: #ffffff;
}

.btn.secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.btn.tertiary {
    background-color: transparent;
    border: 1px dashed #c7d2fe;
    color: #2563eb;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.warning-text {
    margin-top: 16px;
    font-size: 13px;
    color: #92400e;
    background: #fef3c7;
    padding: 10px 12px;
    border-radius: 6px;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.btn.primary:disabled {
    /* background-color: #93c5fd; */
    color: #ffffff;
}

.btn.secondary:disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
}

.btn.tertiary:hover {
    background-color: #eff6ff;
}

.btn.tertiary:disabled {
    background-color: transparent;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.strong-value {
    padding-left: 0.5rem;
}

.err-text {
    margin-top: 8px;
    padding: 0 10px;
    color: red;
}

@media (prefers-color-scheme: dark) {
  input {
    /* background-color: #1e1e1e; */
    color: #1e1e1e;
  }
}
.page-container {
    background-color: #F7FAFF;
    display: flex;
    justify-content: center;
    padding: 40px 16px;
    font-family: "Segoe UI", Arial, sans-serif;
}


.card-container {
    width: 100%;
    height: fit-content;
    max-width: 900px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 24px;
}


.card-header {
    margin-bottom: 24px;
}

.card-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}

.subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #6b7280;
}


.card-section {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}


.form-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group label {
    margin-top: 1rem;
    font-size: 13px;
    margin-bottom: 3px;
    color: #374151;
    font-weight: 500;
}

.form-group input {
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}


.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}


.info-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 2rem;
    margin: 2rem;
    box-shadow: 0 0px 24px rgba(0, 0, 0, 0.12);
    /* border: 1px solid #2e2e38; */
    border-radius: 4px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    /* gap: 3rem; */
}

.info-label {
    color: #6b7280;
}

.info-value {
    font-weight: 500;
    color: #111827;
    padding-left: 1rem;
}


.action-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    min-width: 100px;
    height: 36px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 0.35rem 0.75rem;
}

.btn.primary {
    background-color: #2563eb;
    color: #ffffff;
}

.btn.secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.btn.tertiary {
    background-color: transparent;
    color: #2e2e38;
    border: 1px solid #c7d2fe;

}

.warning-text {
    margin-top: 16px;
    font-size: 13px;
    color: #92400e;
    background: #fef3c7;
    padding: 10px 12px;
    border-radius: 6px;
}

.err-text {
    margin-top: 8px;
    padding: 0 10px;
    color: red;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.btn.primary:disabled {
    /* background-color: #93c5fd; */
    color: #ffffff;
}

.btn.secondary:disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
}

.btn.tertiary:hover {
    background-color: #eff6ff;
}

.btn.tertiary:disabled {
    background-color: transparent;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
}#root{
    overflow:auto !important;
}

@media (prefers-color-scheme: dark) {
  input {
    /* background-color: #1e1e1e; */
    color: #1e1e1e;
  }
}/* Script Run UI Main Styles */
.script-run-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  padding: 2rem;
}

.script-run-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #0099CC 0%, #007BA7 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 153, 204, 0.25);
}

.script-run-title {
  color: white;
  font-size: 2.5rem;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.script-run-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  margin: 0;
  font-weight: 400;
}

.script-run-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section Controls */
.section-controls {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.control-btn {
  background: #17a2b8;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.control-btn:hover {
  background: #138496;
}

/* Collapsible Sections */
.collapsible-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.section-header {
  background: linear-gradient(135deg, #0099CC 0%, #007BA7 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.section-header:hover {
  background: linear-gradient(135deg, #007BA7 0%, #006690 100%);
}

.section-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.collapse-icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s;
}

/* Section Cards */
.script-section,
.parameters-section,
.incident-section,
.preview-section {
  animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.script-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.script-info-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
}

.script-info-box {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f2 100%);
  border: 2px solid #b8dce8;
  border-radius: 8px;
  color: #2c3e50;
  font-size: 1rem;
  line-height: 1.6;
}

.script-info-box.impact-box {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border-color: #17a2b8;
  font-weight: 600;
  text-align: left;
}

/* Parameters Grid */
.parameters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Incident Grid */
.incident-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Multi-Row Parameters */
.add-row-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.add-row-btn-top {
  min-width: 120px;
  height: 42px;
  font-weight: 600;
}

.parameter-row-wrapper {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.parameter-row-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.delete-row-icon-inline {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s;
  margin-top: 32px;
  align-self: start;
}

.delete-row-icon-inline:hover {
  transform: scale(1.2);
}

.publish-prod-wrapper {
  display: flex;
  align-items: center;
  padding-top: 1.75rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

/* Preview Table */
.preview-section {
  margin-top: 2rem;
}

.preview-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.95rem;
}

.preview-table thead {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  color: white;
}

.preview-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.preview-table td {
  padding: 1rem;
  border-bottom: 1px solid #e0e6ed;
  color: #2c3e50;
}

.preview-table tbody tr:last-child td {
  border-bottom: none;
}

.pre-change-row {
  background: #f8f9fa;
}

.post-change-row {
  background: #ffffff;
}

.snapshot-type {
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-warning {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: white;
}

.badge-success {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: white;
}

/* Modal Content Wrapper */
.modal-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-message {
  font-size: 1.1rem;
  color: #2c3e50;
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Success Modal */
.success-modal {
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3);
  animation: successPulse 0.6s ease;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Error Modal */
.error-modal {
  text-align: center;
}

.error-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
  animation: errorShake 0.6s ease;
}

@keyframes errorShake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}

.error-reason {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #e74c3c;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .parameters-grid,
  .incident-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .script-run-container {
    padding: 1rem;
  }

  .script-run-header {
    padding: 2rem 1.5rem;
  }

  .script-run-title {
    font-size: 2rem;
  }

  .script-run-subtitle {
    font-size: 1rem;
  }

  .parameters-grid,
  .incident-grid {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .action-buttons button {
    width: 100%;
  }

  .preview-table-wrapper {
    overflow-x: scroll;
  }

  .preview-table {
    min-width: 800px;
  }
}

@media (max-width: 480px) {
  .script-run-title {
    font-size: 1.5rem;
  }

  .modal-actions {
    flex-direction: column;
    width: 100%;
  }

  .modal-actions button {
    width: 100%;
  }
}

/* Loading Animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #0099CC;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Accessibility */
.reusable-input-field:focus-visible,
.reusable-dropdown-select:focus-visible,
.reusable-button:focus-visible {
  outline: 3px solid #0099CC;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .script-run-header,
  .action-buttons {
    display: none;
  }

  .script-run-container {
    background: white;
  }

  .reusable-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
