/* Project Authorization Header and Navigation Styles - Adapted for Consistency */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');




/* Theme 5: Turquoise Lagoon */
:root {
  --color-primary: #00BEC8;    /* Base turquoise - main brand color */
  --color-text: #234557;       /* Deep lagoon - text and headings */
  --color-surface: #E8F6F7;    /* Crystal water - backgrounds */
  --color-border: #96DDE2;     /* Lagoon blue - borders */
  --color-accent: #FFA41B;     /* Tropical sun - complementary accent */
}

/* Theme 4: Turquoise Breeze */
:root {
  --color-primary: #00BEC8;    /* Base turquoise - main brand color */
  --color-text: #2D4654;       /* Steel blue - text and headings */
  --color-surface: #F5FCFC;    /* Fresh mint - backgrounds */
  --color-border: #BCE7EA;     /* Airy turquoise - borders */
  --color-accent: #FF7E67;     /* Sunset orange - complementary accent */
}

/* Theme 3: Turquoise Night */
:root {
  --color-primary: #00BEC8;    /* Base turquoise - main brand color */
  --color-text: #253746;       /* Midnight blue - text and headings */
  --color-surface: #EAF8F9;    /* Moonlit turquoise - backgrounds */
  --color-border: #A8E4E8;     /* Muted turquoise - borders */
  --color-accent: #FFB400;     /* Golden yellow - complementary accent */
}

/* Theme 2: Turquoise Ocean */
:root {
  --color-primary: #00BEC8;    /* Base turquoise - main brand color */
  --color-text: #1B3A4B;       /* Dark ocean blue - text and headings */
  --color-surface: #E6F9FA;    /* Pale aqua - backgrounds */
  --color-border: #9FE1E5;     /* Light turquoise - borders */
  --color-accent: #4CAF50;     /* Forest green - complementary accent */
}

/* Theme 1: Turquoise Classic */
:root {
  --color-primary: #00BEC8;    /* Base turquoise - main brand color */
  --color-text: #2C3E50;       /* Deep navy - text and headings */
  --color-surface: #F0FAFB;    /* Light turquoise tint - backgrounds */
  --color-border: #B2E5E8;     /* Soft turquoise - borders */
  --color-accent: #FF9F1C;     /* Warm orange - complementary accent */
}


body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--color-surface);
  color: var(--color-text);
  line-height: 1.6;
}

.page-container {
  padding: 25px;
  background-color: var(--color-surface);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.pa-header {
  padding: 0;
  margin-bottom: 35px;
  border-bottom: none;
}
.pa-header h1 {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 15px 20px;
  color: var(--color-text);
  padding-bottom: 8px;
}
.pa-nav {
  display: flex;
  gap: 4px;
  padding: 0 15px;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
  margin: 35px 0 20px 0;
  overflow-x: auto;
  min-height: 52px;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
  position: relative;
  z-index: 1;
  clear: both;
}
.pa-nav::-webkit-scrollbar {
  height: 4px;
  background: transparent;
}
.pa-nav::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}
.pa-tab {
  padding: 10px 18px;
  border: none;
  background-color: transparent;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 20px;
  margin: 6px 0;
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.pa-tab:focus {
  outline: none;
}
.pa-tab.active {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 190, 200, 0.3);
}
.pa-tab:hover:not(.active) {
  background-color: rgba(0, 190, 200, 0.1);
  color: var(--color-primary);
}

#pa-content-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  padding: 15px;
  background-color: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 12px 12px;
}

.pa-title, .entity-list-heading {
  color: var(--color-text);
  font-size: 22px;
  margin: 10px 0 15px 0;
  padding: 0 0 10px 0;
  border-bottom: 2px solid var(--color-primary);
  font-weight: 500;
  line-height: 1.3;
}

.footer {
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  color: #666;
  font-size: 14px;
}

@media (max-width: 768px) {
  .page-container {
    padding: 10px;
  }
  .pa-header h1 {
    font-size: 24px;
    margin: 0 0 12px 10px;
  }
  .pa-nav {
    min-height: 48px;
    padding: 0 10px;
    margin: 30px 0 15px 0;
  }
  .pa-tab {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
  }
  #pa-content-container {
    padding: 10px;
  }
  .pa-title, .entity-list-heading {
    font-size: 20px;
    margin: 8px 0 12px 0;
  }
}

@media (max-width: 480px) {
  .pa-header h1 {
    font-size: 20px;
    text-align: center;
    margin: 0 0 10px 0;
  }
  .pa-nav {
    min-height: 44px;
    padding: 0 8px;
    margin: 25px 0 12px 0;
  }
  .pa-tab {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 34px;
  }
  .pa-title, .entity-list-heading {
    font-size: 18px;
    text-align: center;
  }
}

/* Project Authorization Cards Row and Card Styles */
.pa-cards-row {
  display: flex;
  gap: 32px;
  margin: 24px 0 32px 0;
  flex-wrap: wrap;
}
/* Card styles */
.pa-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 32px 28px 28px 28px;
  min-width: 240px;
  max-width: 280px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
  border: 1.5px solid var(--color-border);
}

.pa-card:hover {
  box-shadow: 0 4px 16px rgba(0, 190, 200, 0.10);
  border-color: var(--color-primary);
}

.pa-card-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.pa-card-green .pa-card-icon {
  color: #27ae60;
}
.pa-card-yellow .pa-card-icon {
  color: #f5b041;
}
.pa-card-blue .pa-card-icon {
  color: var(--color-primary);
}
.pa-card-coral .pa-card-icon {
  color: #FF7E67;
}
.pa-card-value {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.pa-card-green .pa-card-value {
  color: #27ae60;
}
.pa-card-yellow .pa-card-value {
  color: #f5b041;
}
.pa-card-blue .pa-card-value {
  color: var(--color-primary);
}
.pa-card-coral .pa-card-value {
  color: #FF7E67;
}
.pa-card-label {
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .pa-cards-row {
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .pa-card {
    min-width: 0;
    /* max-width: 100%; */
    width: 100%;
  }
}

/* --- Subtabs Styles --- */
.pa-subtabs {
  display: flex;
  gap: 4px;
  padding: 0 15px;
  border-bottom: 1.5px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: 18px;
  margin-top: 10px;
}
.pa-subtab {
  padding: 10px 18px;
  border: none;
  background: none;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 20px 20px 0 0;
  transition: all 0.2s;
  margin-bottom: -2px;
}
.pa-subtab.active {
  background: #fff;
  color: var(--color-primary);
  border-bottom: 2.5px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 190, 200, 0.08);
  z-index: 2;
}
.pa-subtab:hover:not(.active) {
  background: rgba(0, 190, 200, 0.08);
  color: var(--color-primary);
}

/* Table Filters */
.pa-table-filters {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 15px 0 15px;
  background: var(--color-surface);
  border-radius: 0 0 8px 8px;
  margin-bottom: 8px;
}
.pa-table-filters label {
  font-weight: 500;
  color: var(--color-text);
  margin-right: 6px;
}
#pa-status-filter, #pa-keyword-search {
  padding: 7px 12px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  background: #fff;
}
#pa-keyword-search {
  min-width: 180px;
}

/* Table Container */
.pa-table-container {
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0;
  margin: 0 0 24px 0;
}

/* Kendo Grid Customization */
.pa-table-container .k-grid {
  border: none;
  font-size: 15px;
  color: var(--color-text);
}
.pa-table-container .k-grid-header {
  background: var(--color-surface);
  border-radius: 8px 8px 0 0;
}
.pa-table-container .k-grid th {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1.5px solid var(--color-border);
  padding: 12px 10px;
}
.pa-table-container .k-grid td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--color-border);
}
.pa-table-container .k-grid tr:last-child td {
  border-bottom: none;
}
.pa-table-container .k-grid .k-pager-wrap {
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
  padding: 10px 0;
}

/* Status Colors */
.pa-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.08em;
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.2);
}
.pa-status-pending {
  background: #FF7E67;
  color: white;
}
.pa-status-tracker {
  background: var(--color-accent);
  color: white;
}
.pa-status-completed {
  background: var(--color-primary);
  color: white;
}
.pa-status-cancelled {
  background: #4A4A4A;
  color: white;
  opacity: 0.9;
  border: 1px solid #4A4A4A;
  position: relative;
  /* text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7), 0 0 2px rgba(255, 255, 255, 0.5); */
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
}

.pa-status-cancelled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.15) 3px,
    rgba(255, 255, 255, 0.15) 6px
  );
  pointer-events: none;
  z-index: 1;
}

.pa-status-cancelled * {
  position: relative;
  z-index: 2;
}
.pa-status i {
  margin-right: 6px;
  font-size: 1.1em;
}

/* Deadline Note */
.pa-deadline-note {
  color: #888;
  font-size: 0.95em;
  font-style: italic;
}

/* View/Update Link */
.pa-view-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s;
}
.pa-view-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Stronger selectors for clickable grid elements */
.k-grid td[data-field="project"],
.k-grid td[data-field="project"] span {
  cursor: pointer !important;
  color: var(--color-primary) !important;
  transition: all 0.2s ease !important;
}

.k-grid td[data-field="project"]:hover,
.k-grid td[data-field="project"] span:hover {
  color: var(--color-primary) !important;
  text-decoration: underline !important;
  background-color: rgba(0, 190, 200, 0.05) !important;
}

/* Make status badges clickable */
.k-grid .pa-status {
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.k-grid .pa-status:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Add subtle hover effect to entire row */
.k-grid tr:hover {
  background-color: rgba(0, 190, 200, 0.02) !important;
}

/* Ensure action links stand out */
.k-grid .pa-view-link,
.k-grid .pa-cancel-link {
  font-weight: 600 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}

.k-grid .pa-view-link:hover,
.k-grid .pa-cancel-link:hover {
  background-color: rgba(0, 190, 200, 0.1) !important;
  transform: translateY(-1px) !important;
}

/* Placeholder for empty tabs */
.pa-placeholder {
  padding: 40px;
  text-align: center;
  color: #888;
  font-style: italic;
}

@media (max-width: 900px) {
  .pa-table-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .pa-table-container {
    padding: 0;
  }
}

/* Wizard Steps Navigation */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 40px;
  position: relative;
  padding: 0 40px;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: #e0e6ed;
  z-index: 1;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wizard-step.completed {
  opacity: 1;
}

.wizard-step.active {
  opacity: 1;
}

.wizard-step.completed .step-number {
  background: var(--color-primary);
  color: white;
}

.wizard-step.active .step-number {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.step-number {
  width: 40px;
  height: 40px;
  background: white;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  max-width: 120px;
}

/* Wizard Content */
.wizard-content {
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.wizard-content.hidden {
  display: none;
}

.wizard-instruction {
  color: #666;
  margin-bottom: 25px;
  font-size: 15px;
}

/* Search Box */
.search-box {
  margin-bottom: 20px;
}

.pa-search-input {
  width: 100%;
  max-width: 300px;
  padding: 10px 15px;
  border: 1px solid #e0e6ed;
  border-radius: 4px;
  font-size: 14px;
}

/* Submit Button and Bypass Link */
.pa-submit-button {
  background: #00bec8;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 20px;
}

.pa-submit-button:hover {
  background: #00a7b0;
}

.pa-bypass-option {
  margin-top: 20px;
}

.pa-bypass-link {
  color: #00bec8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.pa-bypass-link:hover {
  color: #00a7b0;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .wizard-steps {
    padding: 0 20px;
  }
  
  .step-label {
    font-size: 12px;
  }
  
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Form Styles */
.pa-form-container {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
}

.pa-form-group {
  margin-bottom: 24px;
}

.pa-form-group label {
  display: block;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
  font-size: 14px;
}

.pa-form-group label.required::after {
  content: '*';
  color: #f5b041;
  margin-left: 4px;
}

.pa-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--color-text);
  transition: border-color 0.2s;
  margin-bottom: 8px;
}

.pa-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 190, 200, 0.1);
}

.pa-input:hover:not(:focus) {
  border-color: var(--color-primary);
}

.pa-input::placeholder {
  color: var(--color-text);
  opacity: 0.6;
}

select.pa-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232b3e50' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.pa-update-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  width: 100%;
  margin-top: 16px;
}

.pa-update-button:hover {
  background: var(--color-primary);
  opacity: 0.9;
  transform: translateY(-1px);
}

.pa-update-button:active {
  transform: translateY(0);
}

.pa-upload-button {
  background: #f8f9fa;
  color: #2b3e50;
  border: 1.5px solid #e0e6ed;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.pa-upload-button:hover {
  background: #e9ecef;
  border-color: #00bec8;
}

.pa-upload-status {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

.pa-readonly-group {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e0e6ed;
}

.pa-readonly-group label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.pa-readonly-value {
  font-size: 16px;
  color: #2b3e50;
  font-weight: 500;
}

.pa-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

.pa-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid #e0e6ed;
  border-radius: 3px;
  cursor: pointer;
}

.pa-checkbox-group label {
  font-size: 14px;
  color: #2b3e50;
  cursor: pointer;
}

@media (max-width: 768px) {
  .pa-form-container {
    padding: 15px;
  }
  
  .pa-form-group {
    margin-bottom: 20px;
  }
  
  .pa-input, .pa-update-button, .pa-upload-button {
    font-size: 13px;
  }
  
  .pa-readonly-value {
    font-size: 14px;
  }
}

/* Form Validation Styles */
.pa-input.error {
  border-color: #f5b041;
  background-color: #fff5eb;
}

.pa-input.error:focus {
  border-color: #f5b041;
  box-shadow: 0 0 0 3px rgba(245, 176, 65, 0.1);
}

.pa-form-group.has-error label {
  color: #f5b041;
}

.pa-error-message {
  color: #f5b041;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.pa-form-group.has-error .pa-error-message {
  display: block;
}

/* Project Header Styles */
.pa-project-header {
  background: #fff;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pa-project-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pa-project-title h2 {
  font-size: 24px;
  color: #2b3e50;
  margin: 0;
  font-weight: 600;
}

.pa-add-notes-btn {
  background: #00bec8;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pa-add-notes-btn:hover {
  background: #00a7b0;
}

.pa-project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.pa-detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pa-detail-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
}

.pa-detail-value {
  font-size: 14px;
  color: #2b3e50;
  font-weight: 500;
}

.pa-incomplete-indicator {
  display: inline-flex;
  align-items: center;
  background: #ffa50070;
  color: #000;
  padding: 6px 12px;
  border-radius: 4px;
  margin-left: 10px;
  font-weight: 500;
  font-size: 0.9em;
}

.pa-incomplete-indicator i {
  color: #f5b041;
  margin-right: 6px;
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .pa-project-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .pa-project-title h2 {
    font-size: 20px;
  }

  .pa-project-details {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.pa-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.pa-radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #2b3e50;
  cursor: pointer;
}

.pa-radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.pa-view-checklist-button {
  background: #f8f9fa;
  color: #2b3e50;
  border: 1.5px solid #e0e6ed;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pa-view-checklist-button:hover {
  background: #e9ecef;
  border-color: #00bec8;
  color: #00bec8;
}

.pa-view-checklist-button i {
  font-size: 16px;
}

/* Modal Overlay */
.pa-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 50px;
}

.pa-modal-content {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  width: 800px;
  max-width: 90vw;
  position: relative;
}

.pa-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pa-modal-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
}

.pa-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
}

/* Modal Tabs */
.pa-modal-tabs {
  display: flex;
  padding: 0;
  margin: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.pa-modal-tab {
  padding: 12px 25px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.pa-modal-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: #fff;
}

.pa-modal-tab:disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* Modal Content */
.pa-modal-tab-content {
  padding: 25px;
}

.pa-modal-flex-row {
  display: flex;
  gap: 40px;
}

.pa-modal-col {
  flex: 1;
}

.pa-modal-col-upload {
  border-right: 1px solid #e0e6ed;
  padding-right: 40px;
}

.pa-modal-col h4 {
  font-size: 15px;
  font-weight: 500;
  color: #2b3e50;
  margin: 0 0 10px 0;
}

.pa-modal-col p {
  font-size: 13px;
  color: #666;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* File Input Styling */
#modal-upload-file-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.choose-file-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.choose-file-btn:hover {
  border-color: #00bec8;
  color: #00bec8;
}

/* Upload Button */
#modal-upload-btn {
  background: #00bec8;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

#modal-upload-btn:hover {
  background: #00a7b0;
}

/* Clear Button */
#modal-upload-clear-btn {
  background: #f4f7fa;
  color: #666;
  border: 1px solid #e0e6ed;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.2s;
}

#modal-upload-clear-btn:hover {
  background: #e9ecef;
  border-color: #00bec8;
  color: #00bec8;
}

/* Tags Section */
#modal-upload-tags {
  width: 100%;
  min-height: 200px;
  border: 1px solid #e0e6ed;
  border-radius: 4px;
  padding: 8px;
  font-size: 14px;
  color: #2b3e50;
}

#modal-upload-tags option {
  padding: 6px 8px;
}

#modal-add-tag-link {
  color: #00bec8;
  text-decoration: none;
  font-weight: 500;
}

#modal-add-tag-link:hover {
  text-decoration: underline;
}

/* File Info Display */
#modal-upload-file-info {
  margin: 15px 0;
  padding: 10px;
  background: #f8f9fa;
  border: 1px solid #e0e6ed;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

#modal-upload-file-name {
  flex: 1;
  font-size: 14px;
  color: #2b3e50;
}

#modal-upload-file-remove {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 18px;
  cursor: pointer;
  padding: 0 0 0 10px;
  margin: 0;
}

/* Upload Progress */
.pa-modal-progress-bar {
  height: 4px;
  background: #e0e6ed;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}

#modal-upload-progress {
  height: 100%;
  background: #00bec8;
  transition: width 0.3s ease;
}

/* Complete Message */
#modal-upload-complete-msg {
  margin-top: 10px;
  color: #28a745;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .pa-modal-content {
    width: 95vw;
  }
  
  .pa-modal-flex-row {
    flex-direction: column;
    gap: 30px;
  }
  
  .pa-modal-col-upload {
    border-right: none;
    border-bottom: 1px solid #e0e6ed;
    padding-right: 0;
    padding-bottom: 30px;
  }
}

/* Tag Add Button */
.pa-tag-add-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background: #00bec8;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.pa-tag-add-btn:hover {
  background: #00a7b0;
}

/* Selected Tags Section */
.pa-selected-tags {
  margin-top: 20px;
}

.pa-selected-tags h5 {
  font-size: 14px;
  font-weight: 500;
  color: #2b3e50;
  margin: 0 0 10px 0;
}

.pa-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pa-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f4f7fa;
  border: 1px solid #e0e6ed;
  border-radius: 4px;
  font-size: 13px;
  color: #2b3e50;
}

.pa-tag-remove {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  transition: color 0.2s;
}

.pa-tag-remove:hover {
  color: #c82333;
}

/* Slide-in Modal Styles */
.pa-slide-modal {
  position: fixed;
  top: 0;
  right: -500px; /* Start off-screen */
  bottom: 0;
  width: 500px;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transition: right 0.3s ease;
}

.pa-slide-modal.active {
  right: 0;
}

.pa-slide-modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pa-slide-modal-header {
  padding: 20px;
  border-bottom: 1px solid #e0e6ed;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pa-slide-modal-header h2 {
  font-size: 20px;
  font-weight: 500;
  color: #2b3e50;
  margin: 0;
}

.pa-slide-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.pa-slide-modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

/* Sections within modal */
.pa-section {
  margin-bottom: 30px;
}

.pa-section h3 {
  font-size: 16px;
  font-weight: 500;
  color: #2b3e50;
  margin: 0 0 15px 0;
}

.pa-section-title {
  font-size: 14px;
  font-weight: 500;
  color: #2b3e50;
  margin: 20px 0 15px 0;
}

/* Notes Form */
.pa-note-form {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.pa-add-note-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.pa-add-note-btn:hover {
  background: #00a7b0;
}

/* Notes List */
.pa-notes-list {
  margin-bottom: 20px;
}

.pa-note-item {
  padding: 15px;
  border-bottom: 1px solid var(--color-border);
}

.pa-note-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}

.pa-note-author {
  font-weight: 500;
}

.pa-note-content {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
}

/* Pagination */
.pa-notes-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 0;
  border-top: 1px solid #e0e6ed;
}

.pa-page-btn {
  background: none;
  border: 1px solid var(--color-border);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--color-text);
}

.pa-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pa-page-number {
  padding: 4px 8px;
  color: #2b3e50;
}

.pa-page-number.active {
  background: var(--color-primary);
  color: white;
  border-radius: 4px;
}

.pa-page-size {
  padding: 4px 8px;
  border: 1px solid #e0e6ed;
  border-radius: 4px;
  margin: 0 8px;
}

.pa-items-label {
  color: #666;
  font-size: 13px;
}

.pa-items-count {
  margin-left: auto;
  color: #666;
  font-size: 13px;
}

/* Browse PPA Checklists Styles */
.pa-browse-container {
  padding: 20px;
}

/* Selection Steps */
.pa-selection-steps {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.pa-step {
  flex: 1;
  max-width: 400px;
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

.pa-step-number {
  position: absolute;
  top: -15px;
  left: 25px;
  width: 30px;
  height: 30px;
  background: #00bec8;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.pa-step-content {
  margin-top: 10px;
}

.pa-step h3 {
  font-size: 18px;
  font-weight: 500;
  color: #2b3e50;
  margin: 0 0 10px 0;
}

.pa-step p {
  font-size: 14px;
  color: #666;
  margin: 0 0 15px 0;
}

/* Select Dropdowns */
.pa-select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e0e6ed;
  border-radius: 4px;
  font-size: 14px;
  color: #2b3e50;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.pa-select:hover:not(:disabled) {
  border-color: #00bec8;
}

.pa-select:focus {
  outline: none;
  border-color: #00bec8;
  box-shadow: 0 0 0 3px rgba(0, 190, 200, 0.1);
}

.pa-select:disabled {
  background: #f4f7fa;
  cursor: not-allowed;
  color: #999;
}

/* PPA Checklist Table */
.pa-checklist-container {
  margin-top: 30px;
}

.pa-section-title {
  font-size: 20px;
  font-weight: 500;
  color: #2b3e50;
  margin: 0 0 20px 0;
}

.pa-table-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.pa-table {
  width: 100%;
  border-collapse: collapse;
}

.pa-table th {
  background: #f4f7fa;
  padding: 15px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #2b3e50;
  border-bottom: 1px solid #e0e6ed;
}

.pa-table td {
  padding: 12px 20px;
  font-size: 14px;
  color: #2b3e50;
  border-bottom: 1px solid #e0e6ed;
}

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

/* Status Indicators */
.pa-status-yes {
  background: var(--color-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.pa-status-no {
  background: var(--color-accent);
  color: var(--color-text);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

/* View Link */
.pa-view-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.pa-view-link:hover {
  color: #00a7b0;
  text-decoration: underline;
}

/* Cost Column */
.pa-cost {
  font-family: monospace;
  font-size: 14px;
}
